function truncate(n,t){var i=n.length>t,r=i?n.substr(0,t-1):n;return i?r.substr(0,r.lastIndexOf(" ")):n}function getCookie(n){var t=document.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]+)");return t?decodeURIComponent(t.pop()):""}function getValueFromCookie(n,t){for(var f,u=null,r=n.split("&"),i=0;i<r.length;i++)if(f=r[i].split("=")[0],f===t){u=r[i].split("=")[1];break}return u}function updateCookie(n,t){$.removeCookie(n,{path:"/"});$.cookie(n,t,{expires:14,path:"/"})}function CategoriesData(){this.categories=[];this.categoryNotFound=null}function getSelectedCategoriesFromResponse(n){var t=$.grep(n.Results,function(n){return n.TemplateName=="Breadcrumbs"}),r=[],i;if(t[0]&&t[0].Data&&t[0].Data.Categories)for(i=0;i<t[0].Data.Categories.length;i++)r.push(t[0].Data.Categories[i].Id);return r}function getSelectedCategoriesTypeFromResponse(n){var t=$.grep(n.Results,function(n){return n.TemplateName=="Breadcrumbs"});return t[0]&&t[0].Data&&t[0].Data.categorySelectedType?t[0].Data.categorySelectedType:""}function getSelectedRefinementsFromResponse(n){var t=$.grep(n.Results,function(n){return n.TemplateName=="Breadcrumbs"}),r=[],i;if(t[0]&&t[0].Data&&t[0].Data.Refinements)for(i=0;i<t[0].Data.Refinements.length;i++)r.push(t[0].Data.Refinements[i].Id);return r}function getCategoriesFromResponse(n,t){var i=$.grep(n.Results,function(n){return n.TemplateName=="CategoryRefinements"}),r=[];return i[0]&&i[0].Data&&i[0].Data.Children&&(r=t.length?getLeafCategories(i[0].Data.Children,t):getRootCategories(i[0].Data.Children)),r}function getLeafCategories(n,t){var r=[],i=recursivelyGetCategoryById(n,t[t.length-1]),u;return i?(i.Children&&(u=$.grep(i.Children,function(n){return n.Label&&n.Id}),r=$.map(u,function(n){return{Id:n.Id,Label:n.Label,Count:n.Count,MultiLevel:n.MultiLevel,Children:getRootCategories(n.Children)}})),r):getRootCategories(n)}function getRootCategories(n){if(!n)return null;var t=[];return $.each(n,function(n,i){i.Label&&i.Id&&t.push({Id:i.Id,Label:i.Label,Count:i.Count,MultiLevel:i.MultiLevel,Children:getRootCategories(i.Children)})}),t}function recursivelyGetCategoryById(n,t){for(var r,i=0;i<n.length;i++){if(n[i].Id==t)return n[i];if(r=recursivelyGetCategoryById(n[i].Children,t),r)return r}return null}function getRefinementsFromResponse(n){var t=$.grep(n.Results,function(n){return n.TemplateName=="taxnavbrwssnp"||n.TemplateName=="taxonomyislandnavigator"||n.TemplateName=="refinements"});return t[0]&&t[0].Data?sortRefinementsByEnabledState(t[0].Data):[]}function sortRefinementsByEnabledState(n){return $.grep(n,function(n){return n.Refinements=$.grep(n.Refinements,function(n){return n.Enabled}).concat($.grep(n.Refinements,function(n){return!n.Enabled})),n.Refinements.length>0})}function showMore(n,t){var i=$(t.delegateTarget);i.parent().siblings("li").show();i.parent().hide()}function displayAllSelectedRefiners(n){function t(){return n.find(function(n,t){if(t>4&&n.Selected)return!0})==undefined}return n.length<=5?!1:t()}function setCartHeaders(n){islegacyPremierCartEnabled||n.setRequestHeader(correlationIdField,correlationId);n.setRequestHeader("dell-sec-premier",csrfToken)}function trackClick(n){setIsPromotedValueForOmniture(n);addTrackingInfo(n.currentTarget.id);var t=getLinkTo(n,this),i=$($(n.target).closest("a")).attr("target"),r=new EventDataParser(n).getData();submitClickTrackingData(r,t,i)}function setIsPromotedValueForOmniture(n){var i=$(n.target).closest("[ispromoted]").attr("ispromoted"),r=$(n.target).closest("[ispopular]").attr("ispopular"),t;Dell.Metrics.sc.Experiments!==undefined&&(t=Dell.Metrics.sc.Experiments,t=t.replace("|promoted",""),t=t.replace("|popular",""),i!==undefined&&i==="true"&&(t=t+"|promoted"),r!==undefined&&r==="true"&&(t=t+"|popular"),Dell.Metrics.sc.Experiments=t)}function EventDataParser(n){function r(){var t;return $(n.currentTarget).attr("catid")&&(t=$.map($(n.currentTarget).attr("catid").split("/"),function(n){return{Id:n}})),t||$.map(ko.toJS(resultsViewModel.selectedCategories()),function(n){return{Id:n}})}function u(){if(footerViewModel.Experiments()!=null){var n=$.map($.grep(footerViewModel.Experiments(),function(n){return footerViewModel.AppliedExperiments()!=null&&footerViewModel.AppliedExperiments().indexOf(n.Id)!=-1}),function(n){return n.Layer+"=>"+n.Id}).join(",");return n||"No Experiments"}}function f(){var n=function(n){return{Id:n}},t=ko.toJS(resultsViewModel.selectedRefinements());return $.map(t,n)}function e(){return n.target.textContent==""?undefined:$.trim(n.target.textContent)}function o(){var t=$(n.target).closest("[ispopular]").attr("ispopular");return t===undefined?!1:t}function s(){var t=$(n.target).closest("[ispromoted]").attr("ispromoted");return t===undefined?!1:t}function i(){return t.attr("itemIndex")}function h(){return t.attr("productIndex")}function c(){return sessionStorage.SearchNextUrlReferrer||""}function l(){return document.location.href.replace(document.location.hash,"")+"#notracking"}function a(){return $("#build-number").text()}var t=$(n.target).closest("li.unified-search-result");this.getData=function(){var t=$(n.target).closest("a").attr("href"),v=$(n.target).closest("[template]").attr("template"),y=$(n.target).closest("[productid]").attr("productid"),p=$(n.target).closest("[variant]").attr("variant"),w=$(n.target).closest(".unified-search-result").find("[id^='dell-price']").attr("value"),b=resultsViewModel.Page()+1,k=$("#sorting-dropdown").children(":selected").attr("id");return{Categories:r(),location:geolocation(),IsPopular:o(),IsPromoted:s(),ItemIndex:i(),ProductIndex:h(),Referrer:c(),Refinements:f(),ElementText:e(),ExperimentInfo:u(),UXBuildNumber:a(),Term:mastheadViewModel.Term(),Url:l(),Country:profile.Country,CustomerSet:profile.CustomerSet,ElementHref:t,ElementId:n.currentTarget.id,TagName:n.currentTarget.tagName,Influencers:getInfluencers(i()),Language:profile.Language,Segment:profile.Segment,Variant:p,PageNum:b,Price:w,ProductId:y,SortId:k,UserName:userName,TemplateName:v,VirtualAssistantId:virtualAssistantViewModel.AutoSuggest().TemplateId,CategorySelectedType:resultsViewModel.selectedCategoriesType()}}}function getLinkTo(n,t){if($(t).is("a")&&!n.ctrlKey)return n.preventDefault(),$(t).attr("href")}function submitClickTrackingData(n,t,i){$.ajax({type:"POST",cache:!1,url:clickTrackingUrl,xhrFields:{withCredentials:!0},data:n,dataType:"text",beforeSend:function(n){n.setRequestHeader(correlationIdField,correlationId)},complete:function(){typeof t!="undefined"&&(i&&i=="_blank"?window.open(t,"_new"):location.href=t)}})}function addTrackingInfo(n){$("#clickTrackingData").length==0&&$("body").prepend("<div id='clickTrackingData' style='display: none'><\/div>");$("#clickTrackingData").append('<span class="'+n+'"><\/span>')}function getInfluencers(n){if(n!=null)return resultsViewModel.Results()[n].Data.Influencers}function getLocation(){navigator.geolocation?navigator.geolocation.getCurrentPosition(showPosition,locationErrors):geolocation(null)}function showPosition(n){geolocation(n.coords.latitude+", "+n.coords.longitude)}function locationErrors(){geolocation(null)}var $,CategoryRefinementsViewModel,count,topScrollValueForLeftNav;if(function(){(function(n){var i=this||eval("this"),r=i.document,f=i.navigator,t=i.jQuery,u=i.JSON;(function(n){"function"==typeof define&&define.amd?define(["exports","require"],n):"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):n(i.ko={})})(function(e,o){function a(n,t){return null===n||typeof n in p?n===t:!1}function w(t,i){var r;return function(){r||(r=setTimeout(function(){r=n;t()},i))}}function b(n,t){var i;return function(){clearTimeout(i);i=setTimeout(n,t)}}function v(n,t,i,r){s.d[n]={init:function(n,u,f,e,o){var c,h;return s.w(function(){var l=s.a.c(u()),f=!i!=!l,e=!h;(e||t||f!==c)&&(e&&s.Z.oa()&&(h=s.a.la(s.e.childNodes(n),!0)),f?(e||s.e.T(n,s.a.la(h)),s.Ja(r?r(o,l):o,n)):s.e.ma(n),c=f)},null,{q:n}),{controlsDescendantBindings:!0}}};s.h.ka[n]=!1;s.e.R[n]=!0}var s="undefined"!=typeof e?e:{},p,h,c,y,l;s.b=function(n,t){for(var i=n.split("."),r=s,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};s.D=function(n,t,i){n[t]=i};s.version="3.3.0";s.b("version",s.version);s.a=function(){function o(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])}function l(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function a(n,t){return n.__proto__=t,n}function v(n,t,i,r){var u=n[t].match(c)||[];s.a.o(i.match(c),function(n){s.a.ga(u,n,r)});n[t]=u.join(" ")}var y={__proto__:[]}instanceof Array,h={},p={};h[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");o(h,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)p[t[i]]=n});var w={propertychange:!0},e=r&&function(){for(var t=3,i=r.createElement("div"),u=i.getElementsByTagName("i");i.innerHTML="<!--[if gt IE "+ ++t+"]><i><\/i><![endif]-->",u[0];);return 4<t?t:n}(),c=/\S+/g;return{Bb:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],o:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i],i)},m:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},vb:function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r))return n[r];return null},ya:function(n,t){var i=s.a.m(n,t);0<i?n.splice(i,1):0===i&&n.shift()},wb:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>s.a.m(i,n[t])&&i.push(n[t]);return i},Ka:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i],i));return r},xa:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i],i)&&r.push(n[i]);return r},ia:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},ga:function(n,t,i){var r=s.a.m(s.a.cb(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},za:y,extend:l,Fa:a,Ga:y?a:l,A:o,pa:function(n,t){if(!n)return n;var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i],i,n));return r},Ra:function(n){for(;n.firstChild;)s.removeNode(n.firstChild)},Jb:function(n){n=s.a.O(n);for(var i=(n[0]&&n[0].ownerDocument||r).createElement("div"),t=0,u=n.length;t<u;t++)i.appendChild(s.S(n[t]));return i},la:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?s.S(r):r);return u},T:function(n,t){if(s.a.Ra(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},Qb:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)s.removeNode(r[i])}},na:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)if(n.push(i),i=i.nextSibling,!i)return;n.push(r)}}return n},Sb:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},ib:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Dc:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},jc:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(3===n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},Qa:function(n){return s.a.jc(n,n.ownerDocument.documentElement)},tb:function(n){return!!s.a.vb(n,s.a.Qa)},v:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},n:function(n,i,r){var o=e&&w[i],u,f;if(!o&&t)t(n).bind(i,r);else if(o||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)u=function(t){r.call(n,t)},f="on"+i,n.attachEvent(f,u),s.a.C.fa(n,function(){n.detachEvent(f,u)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(i,r,!1)},qa:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var f;if("input"===s.a.v(n)&&n.type&&"click"==u.toLowerCase()?(f=n.type,f="checkbox"==f||"radio"==f):f=!1,t&&!f)t(n).trigger(u);else if("function"==typeof r.createEvent)if("function"==typeof n.dispatchEvent)f=r.createEvent(p[u]||"HTMLEvents"),f.initEvent(u,!0,!0,i,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if(f&&n.click)n.click();else if("undefined"!=typeof n.fireEvent)n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");},c:function(n){return s.F(n)?n():n},cb:function(n){return s.F(n)?n.B():n},Ia:function(n,t,i){var r;t&&("object"==typeof n.classList?(r=n.classList[i?"add":"remove"],s.a.o(t.match(c),function(t){r.call(n.classList,t)})):"string"==typeof n.className.baseVal?v(n.className,"baseVal",t,i):v(n,"className",t,i))},Ha:function(t,i){var r=s.a.c(i),u;(null===r||r===n)&&(r="");u=s.e.firstChild(t);!u||3!=u.nodeType||s.e.nextSibling(u)?s.e.T(t,[t.ownerDocument.createTextNode(r)]):u.data=r;s.a.mc(t)},Rb:function(n,t){if(n.name=t,7>=e)try{n.mergeAttributes(r.createElement("<input name='"+n.name+"'/>"),!1)}catch(i){}},mc:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},kc:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},Bc:function(n,t){n=s.a.c(n);t=s.a.c(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},O:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},Hc:6===e,Ic:7===e,M:e,Db:function(n,t){for(var r=s.a.O(n.getElementsByTagName("input")).concat(s.a.O(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},yc:function(n){return"string"==typeof n&&(n=s.a.ib(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},jb:function(n,t,i){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(n),t,i)},zc:function(n,t,i){var v,e,h,f,u,c;i=i||{};var l=i.params||{},a=i.includeFields||this.Bb,v=n;if("object"==typeof n&&"form"===s.a.v(n))for(v=n.action,e=a.length-1;0<=e;e--)for(h=s.a.Db(n,a[e]),f=h.length-1;0<=f;f--)l[h[f].name]=h[f].value;t=s.a.c(t);u=r.createElement("form");u.style.display="none";u.action=v;u.method="post";for(c in t)n=r.createElement("input"),n.type="hidden",n.name=c,n.value=s.a.jb(s.a.c(t[c])),u.appendChild(n);o(l,function(n,t){var i=r.createElement("input");i.type="hidden";i.name=n;i.value=t;u.appendChild(i)});r.body.appendChild(u);i.submitter?i.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();s.b("utils",s.a);s.b("utils.arrayForEach",s.a.o);s.b("utils.arrayFirst",s.a.vb);s.b("utils.arrayFilter",s.a.xa);s.b("utils.arrayGetDistinctValues",s.a.wb);s.b("utils.arrayIndexOf",s.a.m);s.b("utils.arrayMap",s.a.Ka);s.b("utils.arrayPushAll",s.a.ia);s.b("utils.arrayRemoveItem",s.a.ya);s.b("utils.extend",s.a.extend);s.b("utils.fieldsIncludedWithJsonPost",s.a.Bb);s.b("utils.getFormFields",s.a.Db);s.b("utils.peekObservable",s.a.cb);s.b("utils.postJson",s.a.zc);s.b("utils.parseJson",s.a.yc);s.b("utils.registerEventHandler",s.a.n);s.b("utils.stringifyJson",s.a.jb);s.b("utils.range",s.a.Bc);s.b("utils.toggleDomNodeCssClass",s.a.Ia);s.b("utils.triggerEvent",s.a.qa);s.b("utils.unwrapObservable",s.a.c);s.b("utils.objectForEach",s.a.A);s.b("utils.addOrRemoveItem",s.a.ga);s.b("utils.setTextContent",s.a.Ha);s.b("unwrap",s.a.c);Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i;return 1===arguments.length?function(){return t.apply(n,arguments)}:(i=Array.prototype.slice.call(arguments,1),function(){var r=i.slice(0);return r.push.apply(r,arguments),t.apply(n,r)})});s.a.f=new function(){function r(r,f){var e=r[t];if(!e||"null"===e||!i[e]){if(!f)return n;e=r[t]="ko"+u++;i[e]={}}return i[e]}var u=0,t="__ko__"+(new Date).getTime(),i={};return{get:function(t,i){var u=r(t,!1);return u===n?n:u[i]},set:function(t,i,u){(u!==n||r(t,!1)!==n)&&(r(t,!0)[i]=u)},clear:function(n){var r=n[t];return r?(delete i[r],n[t]=null,!0):!1},I:function(){return u+++t}}};s.b("utils.domData",s.a.f);s.b("utils.domData.clear",s.a.f.clear);s.a.C=new function(){function i(t,i){var r=s.a.f.get(t,u);return r===n&&i&&(r=[],s.a.f.set(t,u,r)),r}function r(n){var t=i(n,!1),u;if(t)for(t=t.slice(0),u=0;u<t.length;u++)t[u](n);if(s.a.f.clear(n),s.a.C.cleanExternalData(n),f[n.nodeType])for(t=n.firstChild;n=t;)t=n.nextSibling,8===n.nodeType&&r(n)}var u=s.a.f.I(),e={1:!0,8:!0,9:!0},f={1:!0,9:!0};return{fa:function(n,t){if("function"!=typeof t)throw Error("Callback must be a function");i(n,!0).push(t)},Pb:function(t,r){var f=i(t,!1);f&&(s.a.ya(f,r),0==f.length&&s.a.f.set(t,u,n))},S:function(n){var t,i,u;if(e[n.nodeType]&&(r(n),f[n.nodeType]))for(t=[],s.a.ia(t,n.getElementsByTagName("*")),i=0,u=t.length;i<u;i++)r(t[i]);return n},removeNode:function(n){s.S(n);n.parentNode&&n.parentNode.removeChild(n)},cleanExternalData:function(n){t&&"function"==typeof t.cleanData&&t.cleanData([n])}}};s.S=s.a.C.S;s.removeNode=s.a.C.removeNode;s.b("cleanNode",s.S);s.b("removeNode",s.removeNode);s.b("utils.domNodeDisposal",s.a.C);s.b("utils.domNodeDisposal.addDisposeCallback",s.a.C.fa);s.b("utils.domNodeDisposal.removeDisposeCallback",s.a.C.Pb),function(){s.a.ca=function(n,u){var e,f;if(t){if(t.parseHTML)e=t.parseHTML(n,u)||[];else if((e=t.clean([n],u))&&e[0]){for(f=e[0];f.parentNode&&11!==f.parentNode.nodeType;)f=f.parentNode;f.parentNode&&f.parentNode.removeChild(f)}}else{(f=u)||(f=r);e=f.parentWindow||f.defaultView||i;var o=s.a.ib(n).toLowerCase(),f=f.createElement("div"),o=o.match(/^<(thead|tbody|tfoot)/)&&[1,"<table>","<\/table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","<\/tbody><\/table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"]||[0,"",""],h="ignored<div>"+o[1]+n+o[2]+"<\/div>";for("function"==typeof e.innerShiv?f.appendChild(e.innerShiv(h)):f.innerHTML=h;o[0]--;)f=f.lastChild;e=s.a.O(f.lastChild.childNodes)}return e};s.a.gb=function(i,r){if(s.a.Ra(i),r=s.a.c(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),t)t(i).html(r);else for(var f=s.a.ca(r,i.ownerDocument),u=0;u<f.length;u++)i.appendChild(f[u])}}();s.b("utils.parseHtmlFragment",s.a.ca);s.b("utils.setHtml",s.a.gb);s.H=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=s.H.Lb(n.nodeValue),null!=r&&t.push({ic:n,wc:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{$a:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},Wb:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},Xb:function(n,t){var f=[],u,o,r,e;for(i(n,f),u=0,o=f.length;u<o;u++)r=f[u].ic,e=[r],t&&s.a.ia(e,t),s.H.Wb(f[u].wc,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},Lb:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();s.b("memoization",s.H);s.b("memoization.memoize",s.H.$a);s.b("memoization.unmemoize",s.H.Wb);s.b("memoization.parseMemoText",s.H.Lb);s.b("memoization.unmemoizeDomNodeAndDescendants",s.H.Xb);s.Sa={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return s.j({read:n,write:function(r){clearTimeout(i);i=setTimeout(function(){n(r)},t)}})},rateLimit:function(n,t){var i,r,u;"number"==typeof t?i=t:(i=t.timeout,r=t.method);u="notifyWhenChangesStop"==r?b:w;n.Za(function(n){return u(n,i)})},notify:function(n,t){n.equalityComparer="always"==t?null:a}};p={undefined:1,boolean:1,number:1,string:1};s.b("extenders",s.Sa);s.Ub=function(n,t,i){this.da=n;this.La=t;this.hc=i;this.Gb=!1;s.D(this,"dispose",this.p)};s.Ub.prototype.p=function(){this.Gb=!0;this.hc()};s.Q=function(){s.a.Ga(this,s.Q.fn);this.G={};this.rb=1};h={U:function(n,t,i){var r=this,u;return i=i||"change",u=new s.Ub(r,t?n.bind(t):n,function(){s.a.ya(r.G[i],u);r.ua&&r.ua(i)}),r.ja&&r.ja(i),r.G[i]||(r.G[i]=[]),r.G[i].push(u),u},notifySubscribers:function(n,t){if(t=t||"change","change"===t&&this.Yb(),this.Ba(t))try{s.k.xb();for(var u=this.G[t].slice(0),r=0,i;i=u[r];++r)i.Gb||i.La(n)}finally{s.k.end()}},Aa:function(){return this.rb},pc:function(n){return this.Aa()!==n},Yb:function(){++this.rb},Za:function(n){var t=this,e=s.F(t),r,u,i,f;t.ta||(t.ta=t.notifySubscribers,t.notifySubscribers=function(n,i){i&&"change"!==i?"beforeChange"===i?t.pb(n):t.ta(n,i):t.qb(n)});f=n(function(){e&&i===t&&(i=t());r=!1;t.Wa(u,i)&&t.ta(u=i)});t.qb=function(n){r=!0;i=n;f()};t.pb=function(n){r||(u=n,t.ta(n,"beforeChange"))}},Ba:function(n){return this.G[n]&&this.G[n].length},nc:function(n){if(n)return this.G[n]&&this.G[n].length||0;var t=0;return s.a.A(this.G,function(n,i){t+=i.length}),t},Wa:function(n,t){return!this.equalityComparer||!this.equalityComparer(n,t)},extend:function(n){var t=this;return n&&s.a.A(n,function(n,i){var r=s.Sa[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};s.D(h,"subscribe",h.U);s.D(h,"extend",h.extend);s.D(h,"getSubscriptionsCount",h.nc);s.a.za&&s.a.Fa(h,Function.prototype);s.Q.fn=h;s.Hb=function(n){return null!=n&&"function"==typeof n.U&&"function"==typeof n.notifySubscribers};s.b("subscribable",s.Q);s.b("isSubscribable",s.Hb);s.Z=s.k=function(){function t(t){r.push(n);n=t}function i(){n=r.pop()}var r=[],n,u=0;return{xb:t,end:i,Ob:function(t){if(n){if(!s.Hb(t))throw Error("Only subscribable things can act as dependencies");n.La(t,t.ac||(t.ac=++u))}},u:function(n,r,u){try{return t(),n.apply(r,u||[])}finally{i()}},oa:function(){if(n)return n.w.oa()},Ca:function(){if(n)return n.Ca}}}();s.b("computedContext",s.Z);s.b("computedContext.getDependenciesCount",s.Z.oa);s.b("computedContext.isInitial",s.Z.Ca);s.b("computedContext.isSleeping",s.Z.Jc);s.b("ignoreDependencies",s.Gc=s.k.u);s.r=function(n){function t(){return 0<arguments.length?(t.Wa(i,arguments[0])&&(t.X(),i=arguments[0],t.W()),this):(s.k.Ob(t),i)}var i=n;return s.Q.call(t),s.a.Ga(t,s.r.fn),t.B=function(){return i},t.W=function(){t.notifySubscribers(i)},t.X=function(){t.notifySubscribers(i,"beforeChange")},s.D(t,"peek",t.B),s.D(t,"valueHasMutated",t.W),s.D(t,"valueWillMutate",t.X),t};s.r.fn={equalityComparer:a};c=s.r.Ac="__ko_proto__";s.r.fn[c]=s.r;s.a.za&&s.a.Fa(s.r.fn,s.Q.fn);s.Ta=function(t,i){return null===t||t===n||t[c]===n?!1:t[c]===i?!0:s.Ta(t[c],i)};s.F=function(n){return s.Ta(n,s.r)};s.Da=function(n){return"function"==typeof n&&n[c]===s.r||"function"==typeof n&&n[c]===s.j&&n.qc?!0:!1};s.b("observable",s.r);s.b("isObservable",s.F);s.b("isWriteableObservable",s.Da);s.b("isWritableObservable",s.Da);s.ba=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=s.r(n),s.a.Ga(n,s.ba.fn),n.extend({trackArrayChanges:!0})};s.ba.fn={remove:function(n){for(var u,r=this.B(),i=[],f="function"!=typeof n||s.F(n)?function(t){return t===n}:n,t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.X(),i.push(u),r.splice(t,1),t--);return i.length&&this.W(),i},removeAll:function(t){if(t===n){var i=this.B(),r=i.slice(0);return this.X(),i.splice(0,i.length),this.W(),r}return t?this.remove(function(n){return 0<=s.a.m(t,n)}):[]},destroy:function(n){var i=this.B(),r="function"!=typeof n||s.F(n)?function(t){return t===n}:n,t;for(this.X(),t=i.length-1;0<=t;t--)r(i[t])&&(i[t]._destroy=!0);this.W()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=s.a.m(t,n)}):[]},indexOf:function(n){var t=this();return s.a.m(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.X(),this.B()[i]=t,this.W())}};s.a.o("pop push reverse shift sort splice unshift".split(" "),function(n){s.ba.fn[n]=function(){var t=this.B();return this.X(),this.yb(t,n,arguments),t=t[n].apply(t,arguments),this.W(),t}});s.a.o(["slice"],function(n){s.ba.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});s.a.za&&s.a.Fa(s.ba.fn,s.r.fn);s.b("observableArray",s.ba);s.Sa.trackArrayChanges=function(n){function o(){var e,f;i||(i=!0,e=n.notifySubscribers,n.notifySubscribers=function(n,t){return t&&"change"!==t||++r,e.apply(this,arguments)},f=[].concat(n.B()||[]),t=null,u=n.U(function(i){if(i=[].concat(i||[]),n.Ba("arrayChange")){var u;(!t||1<r)&&(t=s.a.Ma(f,i,{sparse:!0}));u=t}f=i;t=null;r=0;u&&u.length&&n.notifySubscribers(u,"arrayChange")}))}if(!n.yb){var i=!1,t=null,u,r=0,f=n.ja,e=n.ua;n.ja=function(t){f&&f.call(n,t);"arrayChange"===t&&o()};n.ua=function(t){e&&e.call(n,t);"arrayChange"!==t||n.Ba("arrayChange")||(u.p(),i=!1)};n.yb=function(n,u,f){function c(n,t,i){return l[l.length]={status:n,value:t,index:i}}if(i&&!r){var l=[],e=n.length,h=f.length,o=0;switch(u){case"push":o=e;case"unshift":for(u=0;u<h;u++)c("added",f[u],o+u);break;case"pop":o=e-1;case"shift":e&&c("deleted",n[o],o);break;case"splice":u=Math.min(Math.max(0,0>f[0]?e+f[0]:f[0]),e);for(var e=1===h?e:Math.min(u+(f[1]||0),e),h=u+h-2,o=Math.max(e,h),a=[],v=[],y=2;u<o;++u,++y)u<e&&v.push(c("deleted",n[u],u)),u<h&&a.push(c("added",f[y],u));s.a.Cb(v,a);break;default:return}t=l}}}};s.w=s.j=function(t,i,r){function rt(n,t,i){if(g&&t===u)throw Error("A 'pure' computed must not be called recursively");f[n]=i;i.sa=o++;i.ea=t.Aa()}function b(){var n,t;for(n in f)if(f.hasOwnProperty(n)&&(t=f[n],t.da.pc(t.ea)))return!0}function ut(){!e&&f&&s.a.A(f,function(n,t){t.p&&t.p()});f=null;o=0;y=!0;e=c=!1}function ft(){var n=u.throttleEvaluation;n&&0<=n?(clearTimeout(st),st=setTimeout(function(){a(!0)},n)):u.nb?u.nb():a(!0)}function a(t){var v;if(!k&&!y){if(it&&it()){if(!d){p();return}}else d=!1;k=!0;try{var r=f,a=o,b=g?n:!o;s.k.xb({La:function(n,t){y||(a&&r[t]?(rt(t,n,r[t]),delete r[t],--a):f[t]||rt(t,n,e?{da:n}:n.U(ft)))},w:u,Ca:b});f={};o=0;try{v=i?l.call(i):l()}finally{s.k.end();a&&!e&&s.a.A(r,function(n,t){t.p&&t.p()});c=!1}u.Wa(h,v)&&(e||w(h,"beforeChange"),h=v,e?u.Yb():t&&w(h));b&&w(h,"awake")}finally{k=!1}o||p()}}function u(){if(0<arguments.length){if("function"==typeof nt)nt.apply(i,arguments);else 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 this}return s.k.Ob(u),(c||e&&b())&&a(),h}function et(){return(c&&!o||e&&b())&&a(),h}function ot(){return c||0<o}function w(n,t){u.notifySubscribers(n,t)}var h,c=!0,k=!1,d=!1,y=!1,l=t,g=!1,e=!1,ht;if(l&&"object"==typeof l?(r=l,l=r.read):(r=r||{},l||(l=r.read)),"function"!=typeof l)throw Error("Pass a function that returns the value of the ko.computed");var nt=r.write,v=r.disposeWhenNodeIsRemoved||r.q||null,tt=r.disposeWhen||r.Pa,it=tt,p=ut,f={},o=0,st=null;return i||(i=r.owner),s.Q.call(u),s.a.Ga(u,s.j.fn),u.B=et,u.oa=function(){return o},u.qc="function"==typeof nt,u.p=function(){p()},u.$=ot,ht=u.Za,u.Za=function(n){ht.call(u,n);u.nb=function(){u.pb(h);c=!0;u.qb(u)}},r.pure?(e=g=!0,u.ja=function(n){if(!y&&e&&"change"==n){if(e=!1,c||b())f=null,o=0,c=!0,a();else{var t=[];s.a.A(f,function(n,i){t[i.sa]=n});s.a.o(t,function(n,t){var r=f[n],i=r.da.U(ft);i.sa=t;i.ea=r.ea;f[n]=i})}y||w(h,"awake")}},u.ua=function(t){y||"change"!=t||u.Ba("change")||(s.a.A(f,function(n,t){t.p&&(f[n]={da:t.da,sa:t.sa,ea:t.ea},t.p())}),e=!0,w(n,"asleep"))},u.bc=u.Aa,u.Aa=function(){return e&&(c||b())&&a(),u.bc()}):r.deferEvaluation&&(u.ja=function(n){"change"!=n&&"beforeChange"!=n||et()}),s.D(u,"peek",u.B),s.D(u,"dispose",u.p),s.D(u,"isActive",u.$),s.D(u,"getDependenciesCount",u.oa),v&&(d=!0,v.nodeType&&(it=function(){return!s.a.Qa(v)||tt&&tt()})),e||r.deferEvaluation||a(),v&&ot()&&v.nodeType&&(p=function(){s.a.C.Pb(v,p);ut()},s.a.C.fa(v,p)),u};s.sc=function(n){return s.Ta(n,s.j)};h=s.r.Ac;s.j[h]=s.r;s.j.fn={equalityComparer:a};s.j.fn[h]=s.j;s.a.za&&s.a.Fa(s.j.fn,s.Q.fn);s.b("dependentObservable",s.j);s.b("computed",s.j);s.b("isComputed",s.sc);s.Nb=function(n,t){return"function"==typeof n?s.w(n,t,{pure:!0}):(n=s.a.extend({},n),n.pure=!0,s.w(n,t))};s.b("pureComputed",s.Nb),function(){function t(u,f,e){if(e=e||new i,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(i){var r=f(u[i]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[i]=r;break;case"object":case"undefined":s=e.get(r);o[i]=s!==n?s:t(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function i(){this.keys=[];this.mb=[]}s.Vb=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(n,function(n){for(var t=0;s.F(n)&&10>t;t++)n=n();return n})};s.toJSON=function(n,t,i){return n=s.Vb(n),s.a.jb(n,t,i)};i.prototype={save:function(n,t){var i=s.a.m(this.keys,n);0<=i?this.mb[i]=t:(this.keys.push(n),this.mb.push(t))},get:function(t){return t=s.a.m(this.keys,t),0<=t?this.mb[t]:n}}}();s.b("toJS",s.Vb);s.b("toJSON",s.toJSON),function(){s.i={s:function(t){switch(s.a.v(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?s.a.f.get(t,s.d.options.ab):7>=s.a.M?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?s.i.s(t.options[t.selectedIndex]):n;default:return t.value}},Y:function(t,i,r){switch(s.a.v(t)){case"option":switch(typeof i){case"string":s.a.f.set(t,s.d.options.ab,n);"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__;t.value=i;break;default:s.a.f.set(t,s.d.options.ab,i);t.__ko__hasDomDataOptionValue__=!0;t.value="number"==typeof i?i:""}break;case"select":(""===i||null===i)&&(i=n);for(var f=-1,u=0,o=t.options.length,e;u<o;++u)if(e=s.i.s(t.options[u]),e==i||""==e&&i===n){f=u;break}(r||0<=f||i===n&&1<t.size)&&(t.selectedIndex=f);break;default:(null===i||i===n)&&(i="");t.value=i}}}}();s.b("selectExtensions",s.i);s.b("selectExtensions.readValue",s.i.s);s.b("selectExtensions.writeValue",s.i.Y);s.h=function(){function n(n){var c,u,i;n=s.a.ib(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));var a=[],h=n.match(t),o,r=[],l=0;if(h)for(h.push(","),c=0;u=h[c];++c){if(i=u.charCodeAt(0),44===i){if(0>=l){a.push(o&&r.length?{key:o,value:r.join("")}:{unknown:o||r.join("")});o=l=0;r=[];continue}}else if(58===i){if(!l&&!o&&1===r.length){o=r.pop();continue}}else 47===i&&c&&1<u.length?(i=h[c-1].match(f))&&!e[i[0]]&&(n=n.substr(n.indexOf(u)+1),h=n.match(t),h.push(","),c=-1,u="/"):40===i||123===i||91===i?++l:41===i||125===i||93===i?--l:o||r.length||34!==i&&39!==i||(u=u.slice(1,-1));r.push(u)}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,t=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},i={};return{ka:[],V:i,bb:n,Ea:function(t,f){function e(n,t){var a,f;if(!l){if(f=s.getBindingHandler(n),f&&f.preprocess&&!(t=f.preprocess(t,n,e)))return;(f=i[n])&&(a=t,0<=s.a.m(r,a)?a=!1:(f=a.match(u),a=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:a),f=a);f&&o.push("'"+n+"':function(_z){"+a+"=_z}")}c&&(t="function(){return "+t+" }");h.push("'"+n+"':"+t)}f=f||{};var h=[],o=[],c=f.valueAccessors,l=f.bindingParams,a="string"==typeof t?n(t):t;return s.a.o(a,function(n){e(n.key||n.unknown,n.value)}),o.length&&e("_ko_property_writers","{"+o.join(",")+" }"),h.join(",")},vc:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},ra:function(n,t,i,r,u){n&&s.F(n)?!s.Da(n)||u&&n.B()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();s.b("expressionRewriting",s.h);s.b("expressionRewriting.bindingRewriteValidators",s.h.ka);s.b("expressionRewriting.parseObjectLiteral",s.h.bb);s.b("expressionRewriting.preProcessBindings",s.h.Ea);s.b("expressionRewriting._twoWayBindings",s.h.V);s.b("jsonExpressionRewriting",s.h);s.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",s.h.Ea),function(){function n(n){return 8==n.nodeType&&e.test(t?n.text:n.nodeValue)}function i(n){return 8==n.nodeType&&o.test(t?n.text:n.nodeValue)}function u(t,r){for(var u=t,f=1,e=[];u=u.nextSibling;){if(i(u)&&(f--,0===f))return e;e.push(u);n(u)&&f++}if(!r)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var t=r&&"<!--test-->"===r.createComment("test").text,e=t?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=t?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,h={ul:!0,ol:!0};s.e={R:{},childNodes:function(t){return n(t)?u(t):t.childNodes},ma:function(t){if(n(t)){t=s.e.childNodes(t);for(var i=0,r=t.length;i<r;i++)s.removeNode(t[i])}else s.a.Ra(t)},T:function(t,i){if(n(t)){s.e.ma(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else s.a.T(t,i)},Mb:function(t,i){n(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},Fb:function(t,i,r){r?n(t)?t.parentNode.insertBefore(i,r.nextSibling):r.nextSibling?t.insertBefore(i,r.nextSibling):t.appendChild(i):s.e.Mb(t,i)},firstChild:function(t){return n(t)?!t.nextSibling||i(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return n(t)&&(t=f(t)),t.nextSibling&&i(t.nextSibling)?null:t.nextSibling},oc:n,Fc:function(n){return(n=(t?n.text:n.nodeValue).match(e))?n[1]:null},Kb:function(t){var o,r,u,e;if(h[s.a.v(t)]&&(o=t.firstChild,o))do if(1===o.nodeType){if(r=o.firstChild,u=null,r)do u?u.push(r):n(r)?(e=f(r,!0),e?r=e:u=[r]):i(r)&&(u=[r]);while(r=r.nextSibling);if(r=u)for(u=o.nextSibling,e=0;e<r.length;e++)u?t.insertBefore(r[e],u):t.appendChild(r[e])}while(o=o.nextSibling)}}}();s.b("virtualElements",s.e);s.b("virtualElements.allowedBindings",s.e.R);s.b("virtualElements.emptyNode",s.e.ma);s.b("virtualElements.insertAfter",s.e.Fb);s.b("virtualElements.prepend",s.e.Mb);s.b("virtualElements.setDomNodeChildren",s.e.T),function(){s.L=function(){this.ec={}};s.a.extend(s.L.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind")||s.g.getComponentNameForNode(n);case 8:return s.e.oc(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n):null;return s.g.sb(i,n,t,!1)},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null;return s.g.sb(i,n,t,!0)},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return s.e.Fc(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.ec,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+s.h.Ea(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(o){throw o.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+o.message,o;}}});s.L.instance=new s.L}();s.b("bindingProvider",s.L),function(){function v(n){return function(){return n}}function u(n){return n()}function o(n){return s.a.pa(s.k.u(n),function(t,i){return function(){return n()[i]}})}function y(n,t,i){return"function"==typeof n?o(n.bind(null,t,i)):s.a.pa(n,v)}function p(n,t){return o(this.getBindings.bind(this,n,t))}function h(n,t,i){var r,u=s.e.firstChild(t),f=s.L.instance,e=f.preprocessNode;if(e){for(;r=u;)u=s.e.nextSibling(r),e.call(f,r);u=s.e.firstChild(t)}for(;r=u;)u=s.e.nextSibling(r),c(n,r,i)}function c(n,t,i){var u=!0,r=1===t.nodeType;r&&s.e.Kb(t);(r&&i||s.L.instance.nodeHasBindings(t))&&(u=l(t,null,n,i).shouldBindDescendants);u&&!a[s.a.v(t)]&&h(n,t,!r)}function w(n){var i=[],r={},t=[];return s.a.A(n,function u(f){if(!r[f]){var e=s.getBindingHandler(f);e&&(e.after&&(t.push(f),s.a.o(e.after,function(i){if(n[i]){if(-1!==s.a.m(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.length--),i.push({key:f,Eb:e}));r[f]=!0}}),i}function l(t,i,r,e){var v=s.a.f.get(t,f),o,l,a,c;if(!i){if(v)throw Error("You cannot apply bindings multiple times to the same element.");s.a.f.set(t,f,!0)}if(!v&&e&&s.Tb(t,r),i&&"function"!=typeof i)o=i;else{var y=s.L.instance,b=y.getBindingAccessors||p,h=s.j(function(){return(o=i?i(r,t):b.call(y,t,r))&&r.K&&r.K(),o},null,{q:t});o&&h.$()||(h=null)}return o&&(a=h?function(n){return function(){return u(h()[n])}}:function(n){return o[n]},c=function(){return s.a.pa(h?h():o,u)},c.get=function(n){return o[n]&&u(a(n))},c.has=function(n){return n in o},e=w(o),s.a.o(e,function(i){var e=i.Eb.init,h=i.Eb.update,u=i.key;if(8===t.nodeType&&!s.e.R[u])throw Error("The binding '"+u+"' cannot be used with virtual elements");try{"function"==typeof e&&s.k.u(function(){var i=e(t,a(u),c,r.$data,r);if(i&&i.controlsDescendantBindings){if(l!==n)throw Error("Multiple bindings ("+l+" and "+u+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");l=u}});"function"==typeof h&&s.j(function(){h(t,a(u),c,r.$data,r)},null,{q:t})}catch(f){throw f.message='Unable to process binding "'+u+": "+o[u]+'"\nMessage: '+f.message,f;}})),{shouldBindDescendants:l===n}}function r(n){return n&&n instanceof s.N?n:new s.N(n)}var a,f,e;s.d={};a={script:!0,textarea:!0};s.getBindingHandler=function(n){return s.d[n]};s.N=function(t,i,r,u){var f=this,h="function"==typeof t&&!s.F(t),o,e=s.j(function(){var o=h?t():t,n=s.a.c(o);return i?(i.K&&i.K(),s.a.extend(f,i),e&&(f.K=e)):(f.$parents=[],f.$root=n,f.ko=s),f.$rawData=o,f.$data=n,r&&(f[r]=n),u&&u(f,i,n),f.$data},null,{Pa:function(){return o&&!s.a.tb(o)},q:!0});e.$()&&(f.K=e,e.equalityComparer=null,o=[],e.Zb=function(t){o.push(t);s.a.C.fa(t,function(t){s.a.ya(o,t);o.length||(e.p(),f.K=e=n)})})};s.N.prototype.createChildContext=function(n,t,i){return new s.N(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)})};s.N.prototype.extend=function(n){return new s.N(this.K||this.$data,this,null,function(t,i){t.$rawData=i.$rawData;s.a.extend(t,"function"==typeof n?n():n)})};f=s.a.f.I();e=s.a.f.I();s.Tb=function(n,t){if(2==arguments.length)s.a.f.set(n,e,t),t.K&&t.K.Zb(n);else return s.a.f.get(n,e)};s.va=function(n,t,i){return 1===n.nodeType&&s.e.Kb(n),l(n,t,r(i),!0)};s.cc=function(n,t,i){return i=r(i),s.va(n,y(t,i,n),i)};s.Ja=function(n,t){1!==t.nodeType&&8!==t.nodeType||h(r(n),t,!0)};s.ub=function(n,u){if(!t&&i.jQuery&&(t=i.jQuery),u&&1!==u.nodeType&&8!==u.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u=u||i.document.body;c(r(n),u,!0)};s.Oa=function(t){switch(t.nodeType){case 1:case 8:var i=s.Tb(t);if(i)return i;if(t.parentNode)return s.Oa(t.parentNode)}return n};s.gc=function(t){return(t=s.Oa(t))?t.$data:n};s.b("bindingHandlers",s.d);s.b("applyBindings",s.ub);s.b("applyBindingsToDescendants",s.Ja);s.b("applyBindingAccessorsToNode",s.va);s.b("applyBindingsToNode",s.cc);s.b("contextFor",s.Oa);s.b("dataFor",s.gc)}(),function(n){function u(t,u){var e=i.hasOwnProperty(t)?i[t]:n,o;e?e.U(u):(e=i[t]=new s.Q,e.U(u),f(t,function(n,u){var f=!(!u||!u.synchronous);r[t]={definition:n,tc:f};delete i[t];o||f?e.notifySubscribers(n):setTimeout(function(){e.notifySubscribers(n)},0)}),o=!0)}function f(n,i){t("getConfig",[n],function(r){r?t("loadComponent",[n,r],function(n){i(n,r)}):i(null,null)})}function t(i,r,u,f){var e,o,h;if(f||(f=s.g.loaders.slice(0)),e=f.shift(),e)if(o=e[i],o){if(h=!1,o.apply(e,r.concat(function(n){h?u(null):null!==n?u(n):t(i,r,u,f)}))!==n&&(h=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else t(i,r,u,f);else u(null)}var i={},r={};s.g={get:function(t,i){var f=r.hasOwnProperty(t)?r[t]:n;f?f.tc?s.k.u(function(){i(f.definition)}):setTimeout(function(){i(f.definition)},0):u(t,i)},zb:function(n){delete r[n]},ob:t};s.g.loaders=[];s.b("components",s.g);s.b("components.get",s.g.get);s.b("components.clearCachedDefinition",s.g.zb)}(),function(){function l(n,i,r,f){function e(){0==--c&&f(o)}var o={},c=2,h=r.template;r=r.viewModel;h?u(i,h,function(t){s.g.ob("loadTemplate",[n,t],function(n){o.template=n;e()})}):e();r?u(i,r,function(i){s.g.ob("loadViewModel",[n,i],function(n){o[t]=n;e()})}):e()}function e(n,i,r){if("function"==typeof i)r(function(n){return new i(n)});else if("function"==typeof i[t])r(i[t]);else if("instance"in i){var u=i.instance;r(function(){return u})}else"viewModel"in i?e(n,i.viewModel,r):n("Unknown viewModel value: "+i)}function h(n){switch(s.a.v(n)){case"script":return s.a.ca(n.text);case"textarea":return s.a.ca(n.value);case"template":if(c(n.content))return s.a.la(n.content.childNodes)}return s.a.la(n.childNodes)}function c(n){return i.DocumentFragment?n instanceof DocumentFragment:n&&11===n.nodeType}function u(n,t,r){"string"==typeof t.require?o||i.require?(o||i.require)([t.require],r):n("Uses require, but no AMD loader is present"):r(t)}function f(n){return function(t){throw Error("Component '"+n+"': "+t);}}var n={},t;s.g.register=function(t,i){if(!i)throw Error("Invalid configuration for "+t);if(s.g.Xa(t))throw Error("Component "+t+" is already registered");n[t]=i};s.g.Xa=function(t){return t in n};s.g.Ec=function(t){delete n[t];s.g.zb(t)};s.g.Ab={getConfig:function(t,i){i(n.hasOwnProperty(t)?n[t]:null)},loadComponent:function(n,t,i){var r=f(n);u(r,t,function(t){l(n,r,t,i)})},loadTemplate:function(n,t,u){if(n=f(n),"string"==typeof t)u(s.a.ca(t));else if(t instanceof Array)u(t);else if(c(t))u(s.a.O(t.childNodes));else if(t.element)if(t=t.element,i.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)u(h(t));else if("string"==typeof t){var e=r.getElementById(t);e?u(h(e)):n("Cannot find element with ID "+t)}else n("Unknown element type: "+t);else n("Unknown template value: "+t)},loadViewModel:function(n,t,i){e(f(n),t,i)}};t="createViewModel";s.b("components.register",s.g.register);s.b("components.isRegistered",s.g.Xa);s.b("components.unregister",s.g.Ec);s.b("components.defaultLoader",s.g.Ab);s.g.loaders.push(s.g.Ab);s.g.$b=n}(),function(){function n(n,i){var r=n.getAttribute("params");if(r){var r=t.parseBindingsString(r,i,n,{valueAccessors:!0,bindingParams:!0}),r=s.a.pa(r,function(t){return s.w(t,null,{q:n})}),u=s.a.pa(r,function(t){var i=t.B();return t.$()?s.w({read:function(){return s.a.c(t())},write:s.Da(i)&&function(n){t()(n)},q:n}):i});return u.hasOwnProperty("$raw")||(u.$raw=r),u}return{$raw:{}}}s.g.getComponentNameForNode=function(n){return n=s.a.v(n),s.g.Xa(n)&&n};s.g.sb=function(t,i,r,u){var f,e;if(1===i.nodeType&&(f=s.g.getComponentNameForNode(i),f)){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');e={name:f,params:n(i,r)};t.component=u?function(){return e}:e}return t};var t=new s.L;9>s.a.M&&(s.g.register=function(n){return function(t){return r.createElement(t),n.apply(this,arguments)}}(s.g.register),r.createDocumentFragment=function(n){return function(){var t=n(),i=s.g.$b;for(var r in i)i.hasOwnProperty(r)&&t.createElement(r);return t}}(r.createDocumentFragment))}(),function(n){function t(n,t,i){if(t=t.template,!t)throw Error("Component '"+n+"' has no template");n=s.a.la(t);s.e.T(i,n)}function i(n,t,i,r){var u=n.createViewModel;return u?u.call(n,r,{element:t,templateNodes:i}):r}var r=0;s.d.component={init:function(u,f,e,o,h){function a(){var n=c&&c.dispose;"function"==typeof n&&n.call(c);l=null}var c,l,v=s.a.O(s.e.childNodes(u));return s.a.C.fa(u,a),s.w(function(){var o=s.a.c(f()),e,y,p;if("string"==typeof o?e=o:(e=s.a.c(o.name),y=s.a.c(o.params)),!e)throw Error("No component name specified");p=l=++r;s.g.get(e,function(r){if(l===p){if(a(),!r)throw Error("Unknown component '"+e+"'");t(e,r,u);var f=i(r,u,v,y);r=h.createChildContext(f,n,function(n){n.$component=f;n.$componentTemplateNodes=v});c=f;s.Ja(r,u)}})},null,{q:u}),{controlsDescendantBindings:!0}}};s.e.R.component=!0}();y={"class":"className","for":"htmlFor"};s.d.attr={update:function(t,i){var r=s.a.c(i())||{};s.a.A(r,function(i,r){r=s.a.c(r);var u=!1===r||null===r||r===n;u&&t.removeAttribute(i);8>=s.a.M&&i in y?(i=y[i],u?t.removeAttribute(i):t[i]=r):u||t.setAttribute(i,r.toString());"name"===i&&s.a.Rb(t,u?"":r.toString())})}},function(){s.d.checked={after:["value","attr"],init:function(t,i,r){function c(){var c=t.checked,n=a?u():c,o;s.Z.Ca()||f&&!c||(o=s.k.u(i),e?h!==n?(c&&(s.a.ga(o,n,!0),s.a.ga(o,h,!1)),h=n):s.a.ga(o,n,c):s.h.ra(o,r,"checked",n,!0))}function l(){var n=s.a.c(i());t.checked=e?0<=s.a.m(n,u()):o?n:u()===n}var u=s.Nb(function(){return r.has("checkedValue")?s.a.c(r.get("checkedValue")):r.has("value")?s.a.c(r.get("value")):t.value}),o="checkbox"==t.type,f="radio"==t.type;if(o||f){var e=o&&s.a.c(i())instanceof Array,h=e?u():n,a=f||e;f&&!t.name&&s.d.uniqueName.init(t,function(){return!0});s.w(c,null,{q:t});s.a.n(t,"click",c);s.w(l,null,{q:t})}}};s.h.V.checked=!0;s.d.checkedValue={update:function(n,t){n.value=s.a.c(t())}}}();s.d.css={update:function(n,t){var i=s.a.c(t());null!==i&&"object"==typeof i?s.a.A(i,function(t,i){i=s.a.c(i);s.a.Ia(n,t,i)}):(i=String(i||""),s.a.Ia(n,n.__ko__cssValue,!1),n.__ko__cssValue=i,s.a.Ia(n,i,!0))}};s.d.enable={update:function(n,t){var i=s.a.c(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};s.d.disable={update:function(n,t){s.d.enable.update(n,function(){return!s.a.c(t())})}};s.d.event={init:function(n,t,i,r,u){var f=t()||{};s.a.A(f,function(f){"string"==typeof f&&s.a.n(n,f,function(n){var o,h=t()[f],e;if(h){try{e=s.a.O(arguments);r=u.$data;e.unshift(r);o=h.apply(r,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};s.d.foreach={Ib:function(n){return function(){var i=n(),t=s.a.cb(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:s.P.Va}:(s.a.c(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:s.P.Va})}},init:function(n,t){return s.d.template.init(n,s.d.foreach.Ib(t))},update:function(n,t,i,r,u){return s.d.template.update(n,s.d.foreach.Ib(t),i,r,u)}};s.h.ka.foreach=!1;s.e.R.foreach=!0;s.d.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();s.h.ra(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);s.a.n(n,"focus",u);s.a.n(n,"focusin",u);s.a.n(n,"blur",f);s.a.n(n,"focusout",f)},update:function(n,t){var i=!!s.a.c(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),s.k.u(s.a.qa,null,[n,i?"focusin":"focusout"]))}};s.h.V.hasfocus=!0;s.d.hasFocus=s.d.hasfocus;s.h.V.hasFocus=!0;s.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.gb(n,t())}};v("if");v("ifnot",!1,!0);v("with",!0,!1,function(n,t){return n.createChildContext(t)});l={};s.d.options={init:function(n){if("select"!==s.a.v(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,r){function v(){return s.a.xa(t.options,function(n){return n.selected})}function y(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function p(n,i){if(o&&e)s.i.Y(t,s.a.c(r.get("value")),!0);else if(f.length){var u=0<=s.a.m(f,s.i.s(i[0]));s.a.Sb(i[0],u);o&&!u&&s.k.u(s.a.qa,null,[t,"change"])}}var h=t.multiple,c=0!=t.length&&h?t.scrollTop:null,u=s.a.c(i()),e=r.get("valueAllowUnset")&&r.has("value"),w=r.get("optionsIncludeDestroyed"),a,f,o;i={};f=[];e||(h?f=s.a.Ka(v(),s.i.s):0<=t.selectedIndex&&f.push(s.i.s(t.options[t.selectedIndex])));u&&("undefined"==typeof u.length&&(u=[u]),a=s.a.xa(u,function(t){return w||t===n||null===t||!s.a.c(t._destroy)}),r.has("optionsCaption")&&(u=s.a.c(r.get("optionsCaption")),null!==u&&u!==n&&a.unshift(l)));o=!1;i.beforeRemove=function(n){t.removeChild(n)};u=p;r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(u=function(t,i){p(0,i);s.k.u(r.get("optionsAfterRender"),null,[i[0],t!==l?t:n])});s.a.fb(t,a,function(i,u,h){return h.length&&(f=!e&&h[0].selected?[s.i.s(h[0])]:[],o=!0),u=t.ownerDocument.createElement("option"),i===l?(s.a.Ha(u,r.get("optionsCaption")),s.i.Y(u,n)):(h=y(i,r.get("optionsValue"),i),s.i.Y(u,s.a.c(h)),i=y(i,r.get("optionsText"),h),s.a.Ha(u,i)),[u]},i,u);s.k.u(function(){e?s.i.Y(t,s.a.c(r.get("value")),!0):(h?f.length&&v().length<f.length:f.length&&0<=t.selectedIndex?s.i.s(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&s.a.qa(t,"change")});s.a.kc(t);c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}};s.d.options.ab=s.a.f.I();s.d.selectedOptions={after:["options","foreach"],init:function(n,t,i){s.a.n(n,"change",function(){var u=t(),r=[];s.a.o(n.getElementsByTagName("option"),function(n){n.selected&&r.push(s.i.s(n))});s.h.ra(u,i,"selectedOptions",r)})},update:function(n,t){if("select"!=s.a.v(n))throw Error("values binding applies only to SELECT elements");var i=s.a.c(t());i&&"number"==typeof i.length&&s.a.o(n.getElementsByTagName("option"),function(n){var t=0<=s.a.m(i,s.i.s(n));s.a.Sb(n,t)})}};s.h.V.selectedOptions=!0;s.d.style={update:function(t,i){var r=s.a.c(i()||{});s.a.A(r,function(i,r){r=s.a.c(r);(null===r||r===n||!1===r)&&(r="");t.style[i]=r})}};s.d.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");s.a.n(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};s.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Ha(n,t())}};s.e.R.text=!0,function(){if(i&&i.navigator)var t=function(n){if(n)return parseFloat(n[1])},e=i.opera&&i.opera.version&&parseInt(i.opera.version()),r=i.navigator.userAgent,o=t(r.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),h=t(r.match(/Firefox\/([^ ]*)/));if(10>s.a.M)var u=s.a.f.I(),f=s.a.f.I(),c=function(n){var t=this.activeElement;(t=t&&s.a.f.get(t,f))&&t(n)},l=function(n,t){var i=n.ownerDocument;s.a.f.get(i,u)||(s.a.f.set(i,u,!0),s.a.n(i,"selectionchange",c));s.a.f.set(n,f,t)};s.d.textInput={init:function(t,i,r){function u(n,i){s.a.n(t,n,i)}function p(){var r=s.a.c(i());(null===r||r===n)&&(r="");v!==n&&r===v?setTimeout(p,4):t.value!==r&&(y=r,t.value=r)}function c(){a||(v=t.value,a=setTimeout(f,4))}function f(){clearTimeout(a);v=a=n;var u=t.value;y!==u&&(y=u,s.h.ra(i(),r,"textInput",u))}var y=t.value,a,v;10>s.a.M?(u("propertychange",function(n){"value"===n.propertyName&&f()}),8==s.a.M&&(u("keyup",f),u("keydown",f)),8<=s.a.M&&(l(t,f),u("dragend",c))):(u("input",f),5>o&&"textarea"===s.a.v(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>e?u("keydown",c):4>h&&(u("DOMAutoComplete",f),u("dragdrop",f),u("drop",f)));u("change",f);s.w(p,null,{q:t})}};s.h.V.textInput=!0;s.d.textinput={preprocess:function(n,t,i){i("textInput",n)}}}();s.d.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++s.d.uniqueName.fc;s.a.Rb(n,i)}}};s.d.uniqueName.fc=0;s.d.value={after:["options","foreach"],init:function(n,t,i){var o,h;if("input"!=n.tagName.toLowerCase()||"checkbox"!=n.type&&"radio"!=n.type){var r=["change"],u=i.get("valueUpdate"),f=!1,e=null;u&&("string"==typeof u&&(u=[u]),s.a.ia(r,u),r=s.a.wb(r));o=function(){e=null;f=!1;var r=t(),u=s.i.s(n);s.h.ra(r,i,"value",u)};!s.a.M||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=s.a.m(r,"propertychange")||(s.a.n(n,"propertychange",function(){f=!0}),s.a.n(n,"focus",function(){f=!1}),s.a.n(n,"blur",function(){f&&o()}));s.a.o(r,function(t){var i=o;s.a.Dc(t,"after")&&(i=function(){e=s.i.s(n);setTimeout(o,0)},t=t.substring(5));s.a.n(n,t,i)});h=function(){var r=s.a.c(t()),u=s.i.s(n),f;null!==e&&r===e?setTimeout(h,0):r!==u&&("select"===s.a.v(n)?(f=i.get("valueAllowUnset"),u=function(){s.i.Y(n,r,f)},u(),f||r===s.i.s(n)?setTimeout(u,0):s.k.u(s.a.qa,null,[n,"change"])):s.i.Y(n,r))};s.w(h,null,{q:n})}else s.va(n,{checkedValue:t})},update:function(){}};s.h.V.value=!0;s.d.visible={update:function(n,t){var i=s.a.c(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},function(n){s.d[n]={init:function(t,i,r,u,f){return s.d.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("click");s.J=function(){};s.J.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};s.J.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};s.J.prototype.makeTemplateSource=function(n,t){if("string"==typeof n){t=t||r;var i=t.getElementById(n);if(!i)throw Error("Cannot find template with ID "+n);return new s.t.l(i)}if(1==n.nodeType||8==n.nodeType)return new s.t.ha(n);throw Error("Unknown template type: "+n);};s.J.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i,r)};s.J.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};s.J.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};s.b("templateEngine",s.J);s.kb=function(){function n(n,t,i,r){var o,f,u,e;for(n=s.h.bb(n),o=s.h.ka,f=0;f<n.length;f++)if(u=n[f].key,o.hasOwnProperty(u))if(e=o[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+s.h.Ea(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{lc:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return s.kb.xc(n,t)},i)},xc:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},dc:function(n,t){return s.H.$a(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&s.va(u,n,r)})}}}();s.b("__tr_ambtns",s.kb.dc),function(){var i,t;s.t={};s.t.l=function(n){this.l=n};s.t.l.prototype.text=function(){var n=s.a.v(this.l),n="script"===n?"text":"textarea"===n?"value":"innerHTML",t;if(0==arguments.length)return this.l[n];t=arguments[0];"innerHTML"===n?s.a.gb(this.l,t):this.l[n]=t};i=s.a.f.I()+"_";s.t.l.prototype.data=function(n){if(1===arguments.length)return s.a.f.get(this.l,i+n);s.a.f.set(this.l,i+n,arguments[1])};t=s.a.f.I();s.t.ha=function(n){this.l=n};s.t.ha.prototype=new s.t.l;s.t.ha.prototype.text=function(){if(0==arguments.length){var i=s.a.f.get(this.l,t)||{};return i.lb===n&&i.Na&&(i.lb=i.Na.innerHTML),i.lb}s.a.f.set(this.l,t,{lb:arguments[0]})};s.t.l.prototype.nodes=function(){if(0==arguments.length)return(s.a.f.get(this.l,t)||{}).Na;s.a.f.set(this.l,t,{Na:arguments[0]})};s.b("templateSources",s.t);s.b("templateSources.domElement",s.t.l);s.b("templateSources.anonymousTemplate",s.t.ha)}(),function(){function t(n,t,i){var r;for(t=s.e.nextSibling(t);n&&(r=n)!==t;)n=s.e.nextSibling(r),i(r,n)}function f(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=s.L.instance,o=e.preprocessNode;if(o){if(t(r,u,function(n,t){var f=n.previousSibling,i=o.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),s.a.na(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.ub(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.H.Xb(n,[i])});s.a.na(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function e(n,t,u,e,o){o=o||{};var h=(n&&i(n)||u||{}).ownerDocument,c=o.templateEngine||r;if(s.kb.lc(u,c,h),u=c.renderTemplate(u,e,o,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":s.e.T(n,u);h=!0;break;case"replaceNode":s.a.Qb(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(f(u,e),o.afterRender&&s.k.u(o.afterRender,null,[u,e.$data])),u}function o(n,t,i){return s.F(n)?n():"function"==typeof n?n(t,i):n}var r,u;s.hb=function(t){if(t!=n&&!(t instanceof s.J))throw Error("templateEngine must inherit from ko.templateEngine");r=t};s.eb=function(t,u,f,h,c){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",h){var l=i(h);return s.j(function(){var n=u&&u instanceof s.N?u:new s.N(s.a.c(u)),r=o(t,n.$data,n),n=e(h,c,r,n,f);"replaceNode"==c&&(h=n,l=i(h))},null,{Pa:function(){return!l||!s.a.Qa(l)},q:l&&"replaceNode"==c?l.parentNode:l})}return s.H.$a(function(n){s.eb(t,u,f,n,"replaceNode")})};s.Cc=function(t,i,r,u,h){function l(n,t){f(t,c);r.afterRender&&r.afterRender(t,n);c=null}function a(n,i){c=h.createChildContext(n,r.as,function(n){n.$index=i});var u=o(t,n,c);return e(null,"ignoreTargetNode",u,c,r)}var c;return s.j(function(){var t=s.a.c(i)||[];"undefined"==typeof t.length&&(t=[t]);t=s.a.xa(t,function(t){return r.includeDestroyed||t===n||null===t||!s.a.c(t._destroy)});s.k.u(s.a.fb,null,[u,t,a,r,l])},null,{q:u})};u=s.a.f.I();s.d.template={init:function(n,t){var i=s.a.c(t());if("string"==typeof i||i.name)s.e.ma(n);else{if("nodes"in i){if(i=i.nodes||[],s.F(i))throw Error('The "nodes" option must be a plain, non-observable array.');}else i=s.e.childNodes(n);i=s.a.Jb(i);new s.t.ha(n).nodes(i)}return{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){var h=i(),o;i=s.a.c(h);r=!0;f=null;"string"==typeof i?i={}:(h=i.name,"if"in i&&(r=s.a.c(i["if"])),r&&"ifnot"in i&&(r=!s.a.c(i.ifnot)),o=s.a.c(i.data));"foreach"in i?f=s.Cc(h||t,r&&i.foreach||[],i,t,e):r?(e="data"in i?e.createChildContext(o,i.as):e,f=s.eb(h||t,e,i,t)):s.e.ma(t);e=f;(o=s.a.f.get(t,u))&&"function"==typeof o.p&&o.p();s.a.f.set(t,u,e&&e.$()?e:n)}};s.h.ka.template=function(n){return n=s.h.bb(n),1==n.length&&n[0].unknown||s.h.vc(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};s.e.R.template=!0}();s.b("setTemplateEngine",s.hb);s.b("renderTemplate",s.eb);s.a.Cb=function(n,t,i){if(n.length&&t.length)for(var o,r,f,e,u=o=0;(!i||u<i)&&(f=n[o]);++o){for(r=0;e=t[r];++r)if(f.value===e.value){f.moved=e.index;e.moved=f.index;t.splice(r,1);u=r=0;break}u+=r}};s.a.Ma=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,a=[],c=n.length,f,h=t.length,v=h-c||1,w=c+h+1,y,p,b,e=0;e<=c;e++)for(p=y,a.push(y=[]),b=o(h,e+v),f=l(0,e-1);f<=b;f++)y[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,y[f-1]||w)+1:f+1:e+1;for(o=[],l=[],v=[],e=c,f=h;e||f;)h=a[e][f]-1,f&&h===a[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===a[e-1][f]?v.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));return s.a.Cb(l,v,10*c),o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<=i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();s.b("utils.compareArrays",s.a.Ma),function(){function i(t,i,r,u,f){var e=[],o=s.j(function(){var n=i(r,f,s.a.na(e,t))||[];0<e.length&&(s.a.Qb(e,n),u&&s.k.u(u,null,[r,n,f]));e.length=0;s.a.ia(e,n)},null,{q:t,Pa:function(){return!s.a.tb(e)}});return{aa:e,j:o.$()?o:n}}var t=s.a.f.I();s.a.fb=function(r,u,f,e,o){function rt(n,t){h=k[t];nt!==t&&(it[n]=h);h.Ua(nt++);s.a.na(h.aa,r);g.push(h);p.push(h)}function v(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&s.a.o(t[i].aa,function(r){n(r,i,t[i].wa)})}var c,y,ut;u=u||[];e=e||{};var y=s.a.f.get(r,t)===n,k=s.a.f.get(r,t)||[],d=s.a.Ka(k,function(n){return n.wa}),l=s.a.Ma(d,u,e.dontLimitMoves),g=[],a=0,nt=0,tt=[],p=[];u=[];for(var it=[],d=[],h,c=0,w,b;w=l[c];c++)switch(b=w.moved,w.status){case"deleted":b===n&&(h=k[a],h.j&&h.j.p(),tt.push.apply(tt,s.a.na(h.aa,r)),e.beforeRemove&&(u[c]=h,p.push(h)));a++;break;case"retained":rt(c,a++);break;case"added":b!==n?rt(c,b):(h={wa:w.value,Ua:s.r(nt++)},g.push(h),p.push(h),y||(d[c]=h))}for(v(e.beforeMove,it),s.a.o(tt,e.beforeRemove?s.S:s.removeNode),c=0,y=s.e.firstChild(r);h=p[c];c++){for(h.aa||s.a.extend(h,i(r,f,h.wa,o,h.Ua)),a=0;l=h.aa[a];y=l.nextSibling,ut=l,a++)l!==y&&s.e.Fb(r,l,ut);!h.rc&&o&&(o(h.wa,h.aa,h.Ua),h.rc=!0)}v(e.beforeRemove,u);v(e.afterMove,it);v(e.afterAdd,d);s.a.f.set(r,t,g)}}();s.b("utils.setDomNodeChildrenFromArrayMapping",s.a.fb);s.P=function(){this.allowTemplateRewriting=!1};s.P.prototype=new s.J;s.P.prototype.renderTemplateSource=function(n,t,i,r){return(t=(9>s.a.M?0:n.nodes)?n.nodes():null)?s.a.O(t.cloneNode(!0).childNodes):(n=n.text(),s.a.ca(n,r))};s.P.Va=new s.P;s.hb(s.P.Va);s.b("nativeTemplateEngine",s.P),function(){s.Ya=function(){var n=this.uc=function(){if(!t||!t.tmpl)return 0;try{if(0<=t.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(i,u,f,e){if(e=e||r,f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=i.data("precompiled");return o||(o=i.text()||"",o=t.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),i.data("precompiled",o)),i=[u.$data],u=t.extend({koBindingContext:u},f.templateOptions),u=t.tmpl(o,i,u),u.appendTo(e.createElement("div")),t.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,t){r.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")};0<n&&(t.tmpl.tag.ko_code={open:"__.push($1 || '');"},t.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};s.Ya.prototype=new s.J;var n=new s.Ya;0<n.uc&&s.hb(n);s.b("jqueryTmplTemplateEngine",s.Ya)}()})})()}(),function(){(function(n){var r=this||eval("this"),i=r.document,f=r.navigator,t=r.jQuery,u=r.JSON;t||"undefined"==typeof jQuery||(t=jQuery),function(n){"function"==typeof define&&define.amd?define(["exports","require"],n):"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):n(r.ko={})}(function(e,o){function b(n,t){return null===n||typeof n in d?n===t:!1}function g(t,i){var r;return function(){r||(r=s.a.setTimeout(function(){r=n;t()},i))}}function nt(n,t){var i;return function(){clearTimeout(i);i=s.a.setTimeout(n,t)}}function tt(n,t){t&&"change"!==t?"beforeChange"===t?this.pc(n):this.gb(n,t):this.qc(n)}function it(n,t){null!==t&&t.s&&t.s()}function rt(n,t){var i=this.qd,r=i[h];r.ra||(this.Qb&&this.mb[t]?(i.uc(t,n,this.mb[t]),this.mb[t]=null,--this.Qb):r.I[t]||i.uc(t,n,r.J?{da:n}:i.$c(n)),n.Ja&&n.gd())}var s="undefined"!=typeof e?e:{},d,l,v,a,y,h,p,k,w;s.b=function(n,t){for(var i=n.split("."),r=s,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};s.L=function(n,t,i){n[t]=i};s.version="3.5.1";s.b("version",s.version);s.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1};s.a=function(){function o(n,t){for(var i in n)h.call(n,i)&&t(i,n[i])}function v(n,t){if(t)for(var i in t)h.call(t,i)&&(n[i]=t[i]);return n}function y(n,t){return n.__proto__=t,n}function p(n,t,i,r){var u=n[t].match(l)||[];s.a.D(i.match(l),function(n){s.a.Na(u,n,r)});n[t]=u.join(" ")}var h=Object.prototype.hasOwnProperty,w={__proto__:[]}instanceof Array,k="function"==typeof Symbol,c={},b={};c[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];c.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");o(c,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)b[t[i]]=n});var d={propertychange:!0},e=i&&function(){for(var t=3,r=i.createElement("div"),u=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++t+"]><i><\/i><![endif]-->",u[0];);return 4<t?t:n}(),l=/\S+/g,a;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n[r],r,n)},A:"function"==typeof Array.prototype.indexOf?function(n,t){return Array.prototype.indexOf.call(n,t)}:function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},Lb:function(t,i,r){for(var u=0,f=t.length;u<f;u++)if(i.call(r,t[u],u,t))return t[u];return n},Pa:function(n,t){var i=s.a.A(n,t);0<i?n.splice(i,1):0===i&&n.shift()},wc:function(n){var t=[];return n&&s.a.D(n,function(n){0>s.a.A(t,n)&&t.push(n)}),t},Mb:function(n,t,i){var u=[],r,f;if(n)for(r=0,f=n.length;r<f;r++)u.push(t.call(i,n[r],r));return u},jb:function(n,t,i){var u=[],r,f;if(n)for(r=0,f=n.length;r<f;r++)t.call(i,n[r],r)&&u.push(n[r]);return u},Nb:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},Na:function(n,t,i){var r=s.a.A(s.a.bc(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},Ba:w,extend:v,setPrototypeOf:y,Ab:w?y:v,P:o,Ga:function(n,t,i){if(!n)return n;var u={};for(var r in n)h.call(n,r)&&(u[r]=t.call(i,n[r],r,n));return u},Tb:function(n){for(;n.firstChild;)s.removeNode(n.firstChild)},Yb:function(n){n=s.a.la(n);for(var r=(n[0]&&n[0].ownerDocument||i).createElement("div"),t=0,u=n.length;t<u;t++)r.appendChild(s.oa(n[t]));return r},Ca:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?s.oa(r):r);return u},va:function(n,t){if(s.a.Tb(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},Xc:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)s.removeNode(r[i])}},Ua:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);for(;1<n.length&&n[n.length-1].parentNode!==t;)n.length--;if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)n.push(i),i=i.nextSibling;n.push(r)}}return n},Zc:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},Db:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},vd:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(1!==n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},Sb:function(n){return s.a.vd(n,n.ownerDocument.documentElement)},kd:function(n){return!!s.a.Lb(n,s.a.Sb)},R:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},Ac:function(n){return s.onError?function(){try{return n.apply(this,arguments)}catch(t){throw s.onError&&s.onError(t),t;}}:n},setTimeout:function(n,t){return setTimeout(s.a.Ac(n),t)},Gc:function(n){setTimeout(function(){s.onError&&s.onError(n);throw n;},0)},B:function(n,i,r){var u=s.a.Ac(r),f,e;if(r=d[i],s.options.useOnlyNativeEvents||r||!t)if(r||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)f=function(t){u.call(n,t)},e="on"+i,n.attachEvent(e,f),s.a.K.za(n,function(){n.detachEvent(e,f)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(i,u,!1);else a||(a="function"==typeof t(n).on?"on":"bind"),t(n)[a](i,u)},Fb:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var f;if("input"===s.a.R(n)&&n.type&&"click"==u.toLowerCase()?(f=n.type,f="checkbox"==f||"radio"==f):f=!1,s.options.useOnlyNativeEvents||!t||f)if("function"==typeof i.createEvent)if("function"==typeof n.dispatchEvent)f=i.createEvent(b[u]||"HTMLEvents"),f.initEvent(u,!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if(f&&n.click)n.click();else if("undefined"!=typeof n.fireEvent)n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");else t(n).trigger(u)},f:function(n){return s.O(n)?n():n},bc:function(n){return s.O(n)?n.v():n},Eb:function(n,t,i){var r;t&&("object"==typeof n.classList?(r=n.classList[i?"add":"remove"],s.a.D(t.match(l),function(t){r.call(n.classList,t)})):"string"==typeof n.className.baseVal?p(n.className,"baseVal",t,i):p(n,"className",t,i))},Bb:function(t,i){var r=s.a.f(i),u;(null===r||r===n)&&(r="");u=s.h.firstChild(t);!u||3!=u.nodeType||s.h.nextSibling(u)?s.h.va(t,[t.ownerDocument.createTextNode(r)]):u.data=r;s.a.Ad(t)},Yc:function(n,t){if(n.name=t,7>=e)try{var r=n.name.replace(/[&<>'"]/g,function(n){return"&#"+n.charCodeAt(0)+";"});n.mergeAttributes(i.createElement("<input name='"+r+"'/>"),!1)}catch(u){}},Ad:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},wd:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},Pd:function(n,t){n=s.a.f(n);t=s.a.f(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},la:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},Da:function(n){return k?Symbol(n):n},Zd:6===e,$d:7===e,W:e,Lc:function(n,t){for(var r=s.a.la(n.getElementsByTagName("input")).concat(s.a.la(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},Nd:function(n){return"string"==typeof n&&(n=s.a.Db(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},hc:function(n,t,i){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.f(n),t,i)},Od:function(n,t,r){var v,e,h,f,u,c;r=r||{};var l=r.params||{},a=r.includeFields||this.Jc,v=n;if("object"==typeof n&&"form"===s.a.R(n))for(v=n.action,e=a.length-1;0<=e;e--)for(h=s.a.Lc(n,a[e]),f=h.length-1;0<=f;f--)l[h[f].name]=h[f].value;t=s.a.f(t);u=i.createElement("form");u.style.display="none";u.action=v;u.method="post";for(c in t)n=i.createElement("input"),n.type="hidden",n.name=c,n.value=s.a.hc(s.a.f(t[c])),u.appendChild(n);o(l,function(n,t){var r=i.createElement("input");r.type="hidden";r.name=n;r.value=t;u.appendChild(r)});i.body.appendChild(u);r.submitter?r.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();s.b("utils",s.a);s.b("utils.arrayForEach",s.a.D);s.b("utils.arrayFirst",s.a.Lb);s.b("utils.arrayFilter",s.a.jb);s.b("utils.arrayGetDistinctValues",s.a.wc);s.b("utils.arrayIndexOf",s.a.A);s.b("utils.arrayMap",s.a.Mb);s.b("utils.arrayPushAll",s.a.Nb);s.b("utils.arrayRemoveItem",s.a.Pa);s.b("utils.cloneNodes",s.a.Ca);s.b("utils.createSymbolOrString",s.a.Da);s.b("utils.extend",s.a.extend);s.b("utils.fieldsIncludedWithJsonPost",s.a.Jc);s.b("utils.getFormFields",s.a.Lc);s.b("utils.objectMap",s.a.Ga);s.b("utils.peekObservable",s.a.bc);s.b("utils.postJson",s.a.Od);s.b("utils.parseJson",s.a.Nd);s.b("utils.registerEventHandler",s.a.B);s.b("utils.stringifyJson",s.a.hc);s.b("utils.range",s.a.Pd);s.b("utils.toggleDomNodeCssClass",s.a.Eb);s.b("utils.triggerEvent",s.a.Fb);s.b("utils.unwrapObservable",s.a.f);s.b("utils.objectForEach",s.a.P);s.b("utils.addOrRemoveItem",s.a.Na);s.b("utils.setTextContent",s.a.Bb);s.b("unwrap",s.a.f);Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i;return 1===arguments.length?function(){return t.apply(n,arguments)}:(i=Array.prototype.slice.call(arguments,1),function(){var r=i.slice(0);return r.push.apply(r,arguments),t.apply(n,r)})});s.a.g=new function(){var f=0,t="__ko__"+(new Date).getTime(),r={},i,u;return s.a.W?(i=function(i,u){var e=i[t];if(!e||"null"===e||!r[e]){if(!u)return n;e=i[t]="ko"+f++;r[e]={}}return r[e]},u=function(n){var i=n[t];return i?(delete r[i],n[t]=null,!0):!1}):(i=function(n,i){var r=n[t];return!r&&i&&(r=n[t]={}),r},u=function(n){return n[t]?(delete n[t],!0):!1}),{get:function(n,t){var r=i(n,!1);return r&&r[t]},set:function(t,r,u){(t=i(t,u!==n))&&(t[r]=u)},Ub:function(n,t,r){return n=i(n,!0),n[t]||(n[t]=r)},clear:u,Z:function(){return f+++t}}};s.b("utils.domData",s.a.g);s.b("utils.domData.clear",s.a.g.clear);s.a.K=new function(){function i(t,i){var u=s.a.g.get(t,r);return u===n&&i&&(u=[],s.a.g.set(t,r,u)),u}function u(n){var t=i(n,!1),r;if(t)for(t=t.slice(0),r=0;r<t.length;r++)t[r](n);s.a.g.clear(n);s.a.K.cleanExternalData(n);e[n.nodeType]&&f(n.childNodes,!0)}function f(n,t){for(var r=[],f,i=0;i<n.length;i++)if((!t||8===n[i].nodeType)&&(u(r[r.length]=f=n[i]),n[i]!==f))for(;i--&&-1==s.a.A(r,n[i]););}var r=s.a.g.Z(),o={1:!0,8:!0,9:!0},e={1:!0,9:!0};return{za:function(n,t){if("function"!=typeof t)throw Error("Callback must be a function");i(n,!0).push(t)},yb:function(t,u){var f=i(t,!1);f&&(s.a.Pa(f,u),0==f.length&&s.a.g.set(t,r,n))},oa:function(n){return s.u.G(function(){o[n.nodeType]&&(u(n),e[n.nodeType]&&f(n.getElementsByTagName("*")))}),n},removeNode:function(n){s.oa(n);n.parentNode&&n.parentNode.removeChild(n)},cleanExternalData:function(n){t&&"function"==typeof t.cleanData&&t.cleanData([n])}}};s.oa=s.a.K.oa;s.removeNode=s.a.K.removeNode;s.b("cleanNode",s.oa);s.b("removeNode",s.removeNode);s.b("utils.domNodeDisposal",s.a.K);s.b("utils.domNodeDisposal.addDisposeCallback",s.a.K.za);s.b("utils.domNodeDisposal.removeDisposeCallback",s.a.K.yb),function(){var h=[0,"",""],u=[1,"<table>","<\/table>"],f=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],e=[1,"<select multiple='multiple'>","<\/select>"],c={thead:u,tbody:u,tfoot:u,tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:f,th:f,option:e,optgroup:e},o=8>=s.a.W;s.a.ua=function(n,u){var f,e;if(t){if(t.parseHTML)f=t.parseHTML(n,u)||[];else if((f=t.clean([n],u))&&f[0]){for(e=f[0];e.parentNode&&11!==e.parentNode.nodeType;)e=e.parentNode;e.parentNode&&e.parentNode.removeChild(e)}}else{(f=u)||(f=i);var e=f.parentWindow||f.defaultView||r,v=s.a.Db(n).toLowerCase(),l=f.createElement("div"),a;for(a=(v=v.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&c[v[1]]||h,v=a[0],a="ignored<div>"+a[1]+n+a[2]+"<\/div>","function"==typeof e.innerShiv?l.appendChild(e.innerShiv(a)):(o&&f.body.appendChild(l),l.innerHTML=a,o&&l.parentNode.removeChild(l));v--;)l=l.lastChild;f=s.a.la(l.lastChild.childNodes)}return f};s.a.Md=function(n,t){var i=s.a.ua(n,t);return i.length&&i[0].parentElement||s.a.Yb(i)};s.a.fc=function(i,r){if(s.a.Tb(i),r=s.a.f(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),t)t(i).html(r);else for(var f=s.a.ua(r,i.ownerDocument),u=0;u<f.length;u++)i.appendChild(f[u])}}();s.b("utils.parseHtmlFragment",s.a.ua);s.b("utils.setHtml",s.a.fc);s.aa=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=s.aa.Uc(n.nodeValue),null!=r&&t.push({ud:n,Kd:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{Xb:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},bd:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},cd:function(n,t){var f=[],u,o,r,e;for(i(n,f),u=0,o=f.length;u<o;u++)r=f[u].ud,e=[r],t&&s.a.Nb(e,t),s.aa.bd(f[u].Kd,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},Uc:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();s.b("memoization",s.aa);s.b("memoization.memoize",s.aa.Xb);s.b("memoization.unmemoize",s.aa.bd);s.b("memoization.parseMemoText",s.aa.Uc);s.b("memoization.unmemoizeDomNodeAndDescendants",s.aa.cd);s.na=function(){function f(){if(n)for(var i=n,r=0,f;t<n;)if(f=u[t++]){if(t>i){if(5e3<=++r){t=n;s.a.Gc(Error("'Too much recursion' after processing "+r+" task groups."));break}i=n}try{f()}catch(e){s.a.Gc(e)}}}function e(){f();t=n=u.length=0}var o,u=[],n=0,h=1,t=0;return o=r.MutationObserver?function(n){var t=i.createElement("div");return new MutationObserver(n).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(e):i&&"onreadystatechange"in i.createElement("script")?function(n){var t=i.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null;i.documentElement.removeChild(t);t=null;n()};i.documentElement.appendChild(t)}:function(n){setTimeout(n,0)},{scheduler:o,zb:function(t){return n||s.na.scheduler(e),u[n++]=t,h++},cancel:function(i){i=i-(h-n);i>=t&&i<n&&(u[i]=null)},resetForTesting:function(){var i=n-t;return t=n=u.length=0,i},Sd:f}}();s.b("tasks",s.na);s.b("tasks.schedule",s.na.zb);s.b("tasks.runEarly",s.na.Sd);s.Ta={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return s.$({read:n,write:function(r){clearTimeout(i);i=s.a.setTimeout(function(){n(r)},t)}})},rateLimit:function(n,t){var r,i,u;"number"==typeof t?r=t:(r=t.timeout,i=t.method);n.Hb=!1;u="function"==typeof i?i:"notifyWhenChangesStop"==i?nt:g;n.ub(function(n){return u(n,r,t)})},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.Hb||(t.Hb=!0,t.ub(function(i){var u,r=!1;return function(){if(!r){s.na.cancel(u);u=s.na.zb(i);try{r=!0;t.notifySubscribers(n,"dirty")}finally{r=!1}}}}))},notify:function(n,t){n.equalityComparer="always"==t?null:b}};d={undefined:1,boolean:1,number:1,string:1};s.b("extenders",s.Ta);s.ic=function(n,t,i){this.da=n;this.lc=t;this.mc=i;this.Ib=!1;this.fb=this.Jb=null;s.L(this,"dispose",this.s);s.L(this,"disposeWhenNodeIsRemoved",this.l)};s.ic.prototype.s=function(){this.Ib||(this.fb&&s.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)};s.ic.prototype.l=function(n){this.Jb=n;s.a.K.za(n,this.fb=this.s.bind(this))};s.T=function(){s.a.Ab(this,l);l.qb(this)};l={qb:function(n){n.U={change:[]};n.sc=1},subscribe:function(n,t,i){var r=this,u;return i=i||"change",u=new s.ic(r,t?n.bind(t):n,function(){s.a.Pa(r.U[i],u);r.hb&&r.hb(i)}),r.Qa&&r.Qa(i),r.U[i]||(r.U[i]=[]),r.U[i].push(u),u},notifySubscribers:function(n,t){var u,i,r;if(t=t||"change","change"===t&&this.Gb(),this.Wa(t)){u="change"===t&&this.ed||this.U[t].slice(0);try{for(s.u.xc(),i=0;r=u[i];++i)r.Ib||r.lc(n)}finally{s.u.end()}}},ob:function(){return this.sc},Dd:function(n){return this.ob()!==n},Gb:function(){++this.sc},ub:function(n){var t=this,h=s.O(t),f,e,r,i,u,o;t.gb||(t.gb=t.notifySubscribers,t.notifySubscribers=tt);o=n(function(){t.Ja=!1;h&&i===t&&(i=t.nc?t.nc():t());var n=e||u&&t.sb(r,i);u=e=f=!1;n&&t.gb(r=i)});t.qc=function(n,r){r&&t.Ja||(u=!r);t.ed=t.U.change.slice(0);t.Ja=f=!0;i=n;o()};t.pc=function(n){f||(r=n,t.gb(n,"beforeChange"))};t.rc=function(){u=!0};t.gd=function(){t.sb(r,t.v(!0))&&(e=!0)}},Wa:function(n){return this.U[n]&&this.U[n].length},Bd:function(n){if(n)return this.U[n]&&this.U[n].length||0;var t=0;return s.a.P(this.U,function(n,i){"dirty"!==n&&(t+=i.length)}),t},sb:function(n,t){return!this.equalityComparer||!this.equalityComparer(n,t)},toString:function(){return"[object Object]"},extend:function(n){var t=this;return n&&s.a.P(n,function(n,i){var r=s.Ta[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};s.L(l,"init",l.qb);s.L(l,"subscribe",l.subscribe);s.L(l,"extend",l.extend);s.L(l,"getSubscriptionsCount",l.Bd);s.a.Ba&&s.a.setPrototypeOf(l,Function.prototype);s.T.fn=l;s.Qc=function(n){return null!=n&&"function"==typeof n.subscribe&&"function"==typeof n.notifySubscribers};s.b("subscribable",s.T);s.b("isSubscribable",s.Qc);s.S=s.u=function(){function t(t){r.push(n);n=t}function i(){n=r.pop()}var r=[],n,u=0;return{xc:t,end:i,cc:function(t){if(n){if(!s.Qc(t))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,t,t.fd||(t.fd=++u))}},G:function(n,r,u){try{return t(),n.apply(r,u||[])}finally{i()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}();s.b("computedContext",s.S);s.b("computedContext.getDependenciesCount",s.S.qa);s.b("computedContext.getDependencies",s.S.Va);s.b("computedContext.isInitial",s.S.Ya);s.b("computedContext.registerDependency",s.S.cc);s.b("ignoreDependencies",s.Yd=s.u.G);v=s.a.Da("_latestValue");s.ta=function(n){function t(){return 0<arguments.length?(t.sb(t[v],arguments[0])&&(t.ya(),t[v]=arguments[0],t.xa()),this):(s.u.cc(t),t[v])}return t[v]=n,s.a.Ba||s.a.extend(t,s.T.fn),s.T.fn.qb(t),s.a.Ab(t,a),s.options.deferUpdates&&s.Ta.deferred(t,!0),t};a={equalityComparer:b,v:function(){return this[v]},xa:function(){this.notifySubscribers(this[v],"spectate");this.notifySubscribers(this[v])},ya:function(){this.notifySubscribers(this[v],"beforeChange")}};s.a.Ba&&s.a.setPrototypeOf(a,s.T.fn);y=s.ta.Ma="__ko_proto__";a[y]=s.ta;s.O=function(n){if((n="function"==typeof n&&n[y])&&n!==a[y]&&n!==s.o.fn[y])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!n};s.Za=function(n){return"function"==typeof n&&(n[y]===a[y]||n[y]===s.o.fn[y]&&n.Nc)};s.b("observable",s.ta);s.b("isObservable",s.O);s.b("isWriteableObservable",s.Za);s.b("isWritableObservable",s.Za);s.b("observable.fn",a);s.L(a,"peek",a.v);s.L(a,"valueHasMutated",a.xa);s.L(a,"valueWillMutate",a.ya);s.Ha=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=s.ta(n),s.a.Ab(n,s.Ha.fn),n.extend({trackArrayChanges:!0})};s.Ha.fn={remove:function(n){for(var u,i=this.v(),r=[],f="function"!=typeof n||s.O(n)?function(t){return t===n}:n,t=0;t<i.length;t++)if(u=i[t],f(u)){if(0===r.length&&this.ya(),i[t]!==u)throw Error("Array modified during remove; cannot remove item");r.push(u);i.splice(t,1);t--}return r.length&&this.xa(),r},removeAll:function(t){if(t===n){var i=this.v(),r=i.slice(0);return this.ya(),i.splice(0,i.length),this.xa(),r}return t?this.remove(function(n){return 0<=s.a.A(t,n)}):[]},destroy:function(n){var r=this.v(),u="function"!=typeof n||s.O(n)?function(t){return t===n}:n,t,i;for(this.ya(),t=r.length-1;0<=t;t--)i=r[t],u(i)&&(i._destroy=!0);this.xa()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=s.a.A(t,n)}):[]},indexOf:function(n){var t=this();return s.a.A(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.ya(),this.v()[i]=t,this.xa())},sorted:function(n){var t=this().slice(0);return n?t.sort(n):t.sort()},reversed:function(){return this().slice(0).reverse()}};s.a.Ba&&s.a.setPrototypeOf(s.Ha.fn,s.ta.fn);s.a.D("pop push reverse shift sort splice unshift".split(" "),function(n){s.Ha.fn[n]=function(){var t=this.v(),i;return this.ya(),this.zc(t,n,arguments),i=t[n].apply(t,arguments),this.xa(),i===t?this:i}});s.a.D(["slice"],function(n){s.Ha.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});s.Pc=function(n){return s.O(n)&&"function"==typeof n.remove&&"function"==typeof n.push};s.b("observableArray",s.Ha);s.b("isObservableArray",s.Pc);s.Ta.trackArrayChanges=function(t,i){function a(){function n(){if(u){var i=[].concat(t.v()||[]),n;t.Wa("arrayChange")&&((!r||1<u)&&(r=s.a.Pb(h,i,t.Ob)),n=r);h=i;r=null;u=0;n&&n.length&&t.notifySubscribers(n,"arrayChange")}}f?n():(f=!0,o=t.subscribe(function(){++u},null,"spectate"),h=[].concat(t.v()||[]),r=null,e=t.subscribe(n))}if(t.Ob={},i&&"object"==typeof i&&s.a.extend(t.Ob,i),t.Ob.sparse=!0,!t.zc){var f=!1,r=null,e,o,u=0,h,c=t.Qa,l=t.hb;t.Qa=function(n){c&&c.call(t,n);"arrayChange"===n&&a()};t.hb=function(i){l&&l.call(t,i);"arrayChange"!==i||t.Wa("arrayChange")||(e&&e.s(),o&&o.s(),o=e=null,f=!1,h=n)};t.zc=function(n,t,i){function c(n,t,i){return l[l.length]={status:n,value:t,index:i}}if(f&&!u){var l=[],e=n.length,h=i.length,o=0;switch(t){case"push":o=e;case"unshift":for(t=0;t<h;t++)c("added",i[t],o+t);break;case"pop":o=e-1;case"shift":e&&c("deleted",n[o],o);break;case"splice":t=Math.min(Math.max(0,0>i[0]?e+i[0]:i[0]),e);for(var e=1===h?e:Math.min(t+(i[1]||0),e),h=t+h-2,o=Math.max(e,h),a=[],v=[],y=2;t<o;++t,++y)t<e&&v.push(c("deleted",n[t],t)),t<h&&a.push(c("added",i[y],t));s.a.Kc(v,a);break;default:return}r=l}}}};h=s.a.Da("_state");s.o=s.$=function(t,i,r){function f(){if(0<arguments.length){if("function"==typeof e)e.apply(u.nb,arguments);else 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 this}return u.ra||s.u.cc(f),(u.ka||u.J&&f.Xa())&&f.ha(),u.X}if("object"==typeof t?r=t:(r=r||{},t&&(r.read=t)),"function"!=typeof r.read)throw Error("Pass a function that returns the value of the ko.computed");var e=r.write,u={X:n,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:r.read,nb:i||r.owner,l:r.disposeWhenNodeIsRemoved||r.l||null,Sa:r.disposeWhen||r.Sa,Rb:null,I:{},V:0,Ic:null};return f[h]=u,f.Nc="function"==typeof e,s.a.Ba||s.a.extend(f,s.T.fn),s.T.fn.qb(f),s.a.Ab(f,c),r.pure?(u.wb=!0,u.J=!0,s.a.extend(f,ut)):r.deferEvaluation&&s.a.extend(f,ft),s.options.deferUpdates&&s.Ta.deferred(f,!0),u.l&&(u.jc=!0,u.l.nodeType||(u.l=null)),u.J||r.deferEvaluation||f.ha(),u.l&&f.ja()&&s.a.K.za(u.l,u.Rb=function(){f.s()}),f};var c={equalityComparer:b,qa:function(){return this[h].V},Va:function(){var n=[];return s.a.P(this[h].I,function(t,i){n[i.Ka]=i.da}),n},Vb:function(n){if(!this[h].V)return!1;var t=this.Va();return-1!==s.a.A(t,n)?!0:!!s.a.Lb(t,function(t){return t.Vb&&t.Vb(n)})},uc:function(n,t,i){if(this[h].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[h].I[n]=i;i.Ka=this[h].V++;i.La=t.ob()},Xa:function(){var t,n,i=this[h].I;for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&(n=i[t],this.Ia&&n.da.Ja||n.da.Dd(n.La)))return!0},Jd:function(){this.Ia&&!this[h].rb&&this.Ia(!1)},ja:function(){var n=this[h];return n.ka||0<n.V},Rd:function(){this.Ja?this[h].ka&&(this[h].sa=!0):this.Hc()},$c:function(n){if(n.Hb){var t=n.subscribe(this.Jd,this,"dirty"),i=n.subscribe(this.Rd,this);return{da:n,s:function(){t.s();i.s()}}}return n.subscribe(this.Hc,this)},Hc:function(){var n=this,t=n.throttleEvaluation;t&&0<=t?(clearTimeout(this[h].Ic),this[h].Ic=s.a.setTimeout(function(){n.ha(!0)},t)):n.Ia?n.Ia(!0):n.ha(!0)},ha:function(n){var t=this[h],i=t.Sa,r=!1;if(!t.rb&&!t.ra){if(t.l&&!s.a.Sb(t.l)||i&&i()){if(!t.jc){this.s();return}}else t.jc=!1;t.rb=!0;try{r=this.zd(n)}finally{t.rb=!1}return r}},zd:function(t){var i=this[h],r=!1,f=i.wb?n:!i.V,r={qd:this,mb:i.I,Qb:i.V},u;return s.u.xc({pd:r,od:rt,o:this,Ya:f}),i.I={},i.V=0,u=this.yd(i,r),i.V?r=this.sb(i.X,u):(this.s(),r=!0),r&&(i.J?this.Gb():this.notifySubscribers(i.X,"beforeChange"),i.X=u,this.notifySubscribers(i.X,"spectate"),!i.J&&t&&this.notifySubscribers(i.X),this.rc&&this.rc()),f&&this.notifySubscribers(i.X,"awake"),r},yd:function(n,t){try{var i=n.Wc;return n.nb?i.call(n.nb):i()}finally{s.u.end();t.Qb&&!n.J&&s.a.P(t.mb,it);n.sa=n.ka=!1}},v:function(n){var t=this[h];return(t.ka&&(n||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(n){s.T.fn.ub.call(this,n);this.nc=function(){return this[h].J||(this[h].sa?this.ha():this[h].ka=!1),this[h].X};this.Ia=function(n){this.pc(this[h].X);this[h].ka=!0;n&&(this[h].sa=!0);this.qc(this,!n)}},s:function(){var t=this[h];!t.J&&t.I&&s.a.P(t.I,function(n,t){t.s&&t.s()});t.l&&t.Rb&&s.a.K.yb(t.l,t.Rb);t.I=n;t.V=0;t.ra=!0;t.sa=!1;t.ka=!1;t.J=!1;t.l=n;t.Sa=n;t.Wc=n;this.Nc||(t.nb=n)}},ut={Qa:function(n){var i=this,t=i[h],r;!t.ra&&t.J&&"change"==n&&(t.J=!1,t.sa||i.Xa()?(t.I=null,t.V=0,i.ha()&&i.Gb()):(r=[],s.a.P(t.I,function(n,t){r[t.Ka]=n}),s.a.D(r,function(n,r){var f=t.I[n],u=i.$c(f.da);u.Ka=r;u.La=f.La;t.I[n]=u}),i.Xa()&&i.ha()&&i.Gb()),t.ra||i.notifySubscribers(t.X,"awake"))},hb:function(t){var i=this[h];i.ra||"change"!=t||this.Wa("change")||(s.a.P(i.I,function(n,t){t.s&&(i.I[n]={da:t.da,Ka:t.Ka,La:t.La},t.s())}),i.J=!0,this.notifySubscribers(n,"asleep"))},ob:function(){var n=this[h];return n.J&&(n.sa||this.Xa())&&this.ha(),s.T.fn.ob.call(this)}},ft={Qa:function(n){"change"!=n&&"beforeChange"!=n||this.v()}};s.a.Ba&&s.a.setPrototypeOf(c,s.T.fn);p=s.ta.Ma;c[p]=s.o;s.Oc=function(n){return"function"==typeof n&&n[p]===c[p]};s.Fd=function(n){return s.Oc(n)&&n[h]&&n[h].wb};s.b("computed",s.o);s.b("dependentObservable",s.o);s.b("isComputed",s.Oc);s.b("isPureComputed",s.Fd);s.b("computed.fn",c);s.L(c,"peek",c.v);s.L(c,"dispose",c.s);s.L(c,"isActive",c.ja);s.L(c,"getDependenciesCount",c.qa);s.L(c,"getDependencies",c.Va);s.xb=function(n,t){return"function"==typeof n?s.o(n,t,{pure:!0}):(n=s.a.extend({},n),n.pure=!0,s.o(n,t))};s.b("pureComputed",s.xb),function(){function i(u,f,e){if(e=e||new t,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof RegExp||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(t){var r=f(u[t]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[t]=r;break;case"object":case"undefined":s=e.get(r);o[t]=s!==n?s:i(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function t(){this.keys=[];this.values=[]}s.ad=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return i(n,function(n){for(var t=0;s.O(n)&&10>t;t++)n=n();return n})};s.toJSON=function(n,t,i){return n=s.ad(n),s.a.hc(n,t,i)};t.prototype={constructor:t,save:function(n,t){var i=s.a.A(this.keys,n);0<=i?this.values[i]=t:(this.keys.push(n),this.values.push(t))},get:function(t){return t=s.a.A(this.keys,t),0<=t?this.values[t]:n}}}();s.b("toJS",s.ad);s.b("toJSON",s.toJSON);s.Wd=function(n,t,i){function r(t){var r=s.xb(n,i).extend({ma:"always"}),u=r.subscribe(function(n){n&&(u.s(),t(n))});return r.notifySubscribers(r.v()),u}return"function"!=typeof Promise||t?r(t.bind(i)):new Promise(r)};s.b("when",s.Wd),function(){s.w={M:function(t){switch(s.a.R(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?s.a.g.get(t,s.c.options.$b):7>=s.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?s.w.M(t.options[t.selectedIndex]):n;default:return t.value}},cb:function(t,i,r){switch(s.a.R(t)){case"option":"string"==typeof i?(s.a.g.set(t,s.c.options.$b,n),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=i):(s.a.g.set(t,s.c.options.$b,i),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof i?i:"");break;case"select":(""===i||null===i)&&(i=n);for(var u=-1,f=0,o=t.options.length,e;f<o;++f)if(e=s.w.M(t.options[f]),e==i||""===e&&i===n){u=f;break}(r||0<=u||i===n&&1<t.size)&&(t.selectedIndex=u,6===s.a.W&&s.a.setTimeout(function(){t.selectedIndex=u},0));break;default:(null===i||i===n)&&(i="");t.value=i}}}}();s.b("selectExtensions",s.w);s.b("selectExtensions.readValue",s.w.M);s.b("selectExtensions.writeValue",s.w.cb);s.m=function(){function t(n){var c,r,t;n=s.a.Db(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));n+="\n,";var a=[],l=n.match(i),o,u=[],h=0;if(1<l.length){for(c=0;r=l[c];++c){if(t=r.charCodeAt(0),44===t){if(0>=h){a.push(o&&u.length?{key:o,value:u.join("")}:{unknown:o||u.join("")});o=h=0;u=[];continue}}else if(58===t){if(!h&&!o&&1===u.length){o=u.pop();continue}}else if(47===t&&1<r.length&&(47===r.charCodeAt(1)||42===r.charCodeAt(1)))continue;else 47===t&&c&&1<r.length?(t=l[c-1].match(f))&&!e[t[0]]&&(n=n.substr(n.indexOf(r)+1),l=n.match(i),c=-1,r="/"):40===t||123===t||91===t?++h:41===t||125===t||93===t?--h:o||u.length||34!==t&&39!==t||(r=r.slice(1,-1));u.push(r)}if(0<h)throw Error("Unbalanced parentheses, braces, or brackets");}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,i=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},n={};return{Ra:[],wa:n,ac:t,vb:function(i,f){function e(t,i){var a,f;if(!l){if(f=s.getBindingHandler(t),f&&f.preprocess&&!(i=f.preprocess(i,t,e)))return;(f=n[t])&&(a=i,0<=s.a.A(r,a)?a=!1:(f=a.match(u),a=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:a),f=a);f&&o.push("'"+("string"==typeof n[t]?n[t]:t)+"':function(_z){"+a+"=_z}")}c&&(i="function(){return "+i+" }");h.push("'"+t+"':"+i)}f=f||{};var h=[],o=[],c=f.valueAccessors,l=f.bindingParams,a="string"==typeof i?t(i):i;return s.a.D(a,function(n){e(n.key||n.unknown,n.value)}),o.length&&e("_ko_property_writers","{"+o.join(",")+" }"),h.join(",")},Id:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},eb:function(n,t,i,r,u){n&&s.O(n)?!s.Za(n)||u&&n.v()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();s.b("expressionRewriting",s.m);s.b("expressionRewriting.bindingRewriteValidators",s.m.Ra);s.b("expressionRewriting.parseObjectLiteral",s.m.ac);s.b("expressionRewriting.preProcessBindings",s.m.vb);s.b("expressionRewriting._twoWayBindings",s.m.wa);s.b("jsonExpressionRewriting",s.m);s.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",s.m.vb),function(){function n(n){return 8==n.nodeType&&e.test(r?n.text:n.nodeValue)}function t(n){return 8==n.nodeType&&h.test(r?n.text:n.nodeValue)}function u(i,r){for(var u=i,f=1,e=[];u=u.nextSibling;){if(t(u)&&(s.a.g.set(u,o,!0),f--,0===f))return e;e.push(u);n(u)&&f++}if(!r)throw Error("Cannot find closing comment tag to match: "+i.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var r=i&&"<!--test-->"===i.createComment("test").text,e=r?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,h=r?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,c={ul:!0,ol:!0},o="__ko_matchedEndComment__";s.h={ea:{},childNodes:function(t){return n(t)?u(t):t.childNodes},Ea:function(t){if(n(t)){t=s.h.childNodes(t);for(var i=0,r=t.length;i<r;i++)s.removeNode(t[i])}else s.a.Tb(t)},va:function(t,i){if(n(t)){s.h.Ea(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else s.a.va(t,i)},Vc:function(t,i){var r;n(t)?(r=t.nextSibling,t=t.parentNode):r=t.firstChild;r?i!==r&&t.insertBefore(i,r):t.appendChild(i)},Wb:function(t,i,r){r?(r=r.nextSibling,n(t)&&(t=t.parentNode),r?i!==r&&t.insertBefore(i,r):t.appendChild(i)):s.h.Vc(t,i)},firstChild:function(i){if(n(i))return!i.nextSibling||t(i.nextSibling)?null:i.nextSibling;if(i.firstChild&&t(i.firstChild))throw Error("Found invalid end comment, as the first child of "+i);return i.firstChild},nextSibling:function(i){if(n(i)&&(i=f(i)),i.nextSibling&&t(i.nextSibling)){var r=i.nextSibling;if(t(r)&&!s.a.g.get(r,o))throw Error("Found end comment without a matching opening comment, as child of "+i);return null}return i.nextSibling},Cd:n,Vd:function(n){return(n=(r?n.text:n.nodeValue).match(e))?n[1]:null},Sc:function(i){var o,r,u,e;if(c[s.a.R(i)]&&(o=i.firstChild,o))do if(1===o.nodeType){if(r=o.firstChild,u=null,r)do u?u.push(r):n(r)?(e=f(r,!0),e?r=e:u=[r]):t(r)&&(u=[r]);while(r=r.nextSibling);if(r=u)for(u=o.nextSibling,e=0;e<r.length;e++)u?i.insertBefore(r[e],u):i.appendChild(r[e])}while(o=o.nextSibling)}}}();s.b("virtualElements",s.h);s.b("virtualElements.allowedBindings",s.h.ea);s.b("virtualElements.emptyNode",s.h.Ea);s.b("virtualElements.insertAfter",s.h.Wb);s.b("virtualElements.prepend",s.h.Vc);s.b("virtualElements.setDomNodeChildren",s.h.va),function(){s.ga=function(){this.nd={}};s.a.extend(s.ga.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind")||s.j.getComponentNameForNode(n);case 8:return s.h.Cd(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n):null;return s.j.tc(i,n,t,!1)},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null;return s.j.tc(i,n,t,!0)},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return s.h.Vd(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.nd,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+s.m.vb(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(o){throw o.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+o.message,o;}}});s.ga.instance=new s.ga}();s.b("bindingProvider",s.ga),function(){function v(n){var t=(n=s.a.g.get(n,f))&&n.N;t&&(n.N=null,t.Tc())}function o(n,t,i){this.node=n;this.yc=t;this.kb=[];this.H=!1;t.N||s.a.K.za(n,v);i&&i.N&&(i.N.kb.push(n),this.Kb=i)}function d(n){return function(){return n}}function l(n){return n()}function y(n){return s.a.Ga(s.u.G(n),function(t,i){return function(){return n()[i]}})}function g(n,t,i){return"function"==typeof n?y(n.bind(null,t,i)):s.a.Ga(n,d)}function nt(n,t){return y(this.getBindings.bind(this,n,t))}function p(n,t){var i=s.h.firstChild(t),r,u,f;if(i){if(u=s.ga.instance,f=u.preprocessNode,f){for(;r=i;)i=s.h.nextSibling(r),f.call(u,r);i=s.h.firstChild(t)}for(;r=i;)i=s.h.nextSibling(r),w(n,r)}s.i.ma(t,s.i.H)}function w(n,t){var i=n,r=1===t.nodeType;r&&s.h.Sc(t);(r||s.ga.instance.nodeHasBindings(t))&&(i=b(t,null,n).bindingContextForDescendants);i&&!k[s.a.R(t)]&&p(i,t)}function tt(n){var i=[],r={},t=[];return s.a.P(n,function u(f){if(!r[f]){var e=s.getBindingHandler(f);e&&(e.after&&(t.push(f),s.a.D(e.after,function(i){if(n[i]){if(-1!==s.a.A(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.length--),i.push({key:f,Mc:e}));r[f]=!0}}),i}function b(t,i,r){var o=s.a.g.Ub(t,f,{}),w=o.hd,e,h,y,v,p;if(!i){if(w)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(w||(o.context=r),o.Zb||(o.Zb={}),i&&"function"!=typeof i)e=i;else{var b=s.ga.instance,k=b.getBindingAccessors||nt,c=s.$(function(){return(e=i?i(r,t):k.call(b,t,r))&&(r[u]&&r[u](),r[a]&&r[a]()),e},null,{l:t});e&&c.ja()||(c=null)}return h=r,e&&(v=function(){return s.a.Ga(c?c():e,l)},p=c?function(n){return function(){return l(c()[n])}}:function(n){return e[n]},v.get=function(n){return e[n]&&l(p(n))},v.has=function(n){return n in e},s.i.H in e&&s.i.subscribe(t,s.i.H,function(){var i=e[s.i.H](),n;i&&(n=s.h.childNodes(t),n.length&&i(n,s.Ec(n[0])))}),s.i.pa in e&&(h=s.i.Cb(t,r),s.i.subscribe(t,s.i.pa,function(){var n=e[s.i.pa]();n&&s.h.firstChild(t)&&n(t)})),o=tt(e),s.a.D(o,function(i){var f=i.Mc.init,o=i.Mc.update,r=i.key;if(8===t.nodeType&&!s.h.ea[r])throw Error("The binding '"+r+"' cannot be used with virtual elements");try{"function"==typeof f&&s.u.G(function(){var i=f(t,p(r),v,h.$data,h);if(i&&i.controlsDescendantBindings){if(y!==n)throw Error("Multiple bindings ("+y+" and "+r+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");y=r}});"function"==typeof o&&s.$(function(){o(t,p(r),v,h.$data,h)},null,{l:t})}catch(u){throw u.message='Unable to process binding "'+r+": "+e[r]+'"\nMessage: '+u.message,u;}})),o=y===n,{shouldBindDescendants:o,bindingContextForDescendants:o&&h}}function h(t,i){return t&&t instanceof s.fa?t:new s.fa(t,n,n,i)}var u=s.a.Da("_subscribable"),e=s.a.Da("_ancestorBindingInfo"),a=s.a.Da("_dataDependency"),k,c,f;s.c={};k={script:!0,textarea:!0,template:!0};s.getBindingHandler=function(n){return s.c[n]};c={};s.fa=function(t,i,r,f,o){function y(){var t=b?v():v,n=s.a.f(t);return i?(s.a.extend(h,i),e in i&&(h[e]=i[e])):(h.$parents=[],h.$root=n,h.ko=s),h[u]=l,p?n=h.$data:(h.$rawData=t,h.$data=n),r&&(h[r]=n),f&&f(h,i,n),i&&i[u]&&!s.S.o().Vb(i[u])&&i[u](),w&&(h[a]=w),h.$data}var h=this,p=t===c,v=p?n:t,b="function"==typeof v&&!s.O(v),l,w=o&&o.dataDependency;o&&o.exportDependencies?y():(l=s.xb(y),l.v(),l.ja()?l.equalityComparer=null:h[u]=n)};s.fa.prototype.createChildContext=function(n,t,i,r){if(!r&&t&&"object"==typeof t&&(r=t,t=r.as,i=r.extend),t&&r&&r.noChildContext){var u="function"==typeof n&&!s.O(n);return new s.fa(c,this,null,function(r){i&&i(r);r[t]=u?n():n},r)}return new s.fa(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)},r)};s.fa.prototype.extend=function(n,t){return new s.fa(c,this,null,function(t){s.a.extend(t,"function"==typeof n?n(t):n)},t)};f=s.a.g.Z();o.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)};o.prototype.sd=function(n){s.a.Pa(this.kb,n);!this.kb.length&&this.H&&this.Cc()};o.prototype.Cc=function(){this.H=!0;this.yc.N&&!this.kb.length&&(this.yc.N=null,s.a.K.yb(this.node,v),s.i.ma(this.node,s.i.pa),this.Tc())};s.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(n,t,i,r,u){var e=s.a.g.Ub(n,f,{});return e.Fa||(e.Fa=new s.T),u&&u.notifyImmediately&&e.Zb[t]&&s.u.G(i,r,[n]),e.Fa.subscribe(i,r,t)},ma:function(t,i){var r=s.a.g.get(t,f);if(r&&(r.Zb[i]=!0,r.Fa&&r.Fa.notifySubscribers(t,i),i==s.i.H))if(r.N)r.N.Cc();else if(r.N===n&&r.Fa&&r.Fa.Wa(s.i.pa))throw Error("descendantsComplete event not supported for bindings on this node");},Cb:function(n,t){var i=s.a.g.Ub(n,f,{});return i.N||(i.N=new o(n,i,t[e])),t[e]==i?t:t.extend(function(n){n[e]=i})}};s.Td=function(n){return(n=s.a.g.get(n,f))&&n.context};s.ib=function(n,t,i){return 1===n.nodeType&&s.h.Sc(n),b(n,t,h(i))};s.ld=function(n,t,i){return i=h(i),s.ib(n,g(t,i,n),i)};s.Oa=function(n,t){1!==t.nodeType&&8!==t.nodeType||p(h(n),t)};s.vc=function(n,u,f){if(!t&&r.jQuery&&(t=r.jQuery),2>arguments.length){if(u=i.body,!u)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!u||1!==u.nodeType&&8!==u.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");w(h(n,f),u)};s.Dc=function(t){return!t||1!==t.nodeType&&8!==t.nodeType?n:s.Td(t)};s.Ec=function(t){return(t=s.Dc(t))?t.$data:n};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(n){function u(t,u){var e=Object.prototype.hasOwnProperty.call(i,t)?i[t]:n,o;e?e.subscribe(u):(e=i[t]=new s.T,e.subscribe(u),f(t,function(n,u){var f=!(!u||!u.synchronous);r[t]={definition:n,Gd:f};delete i[t];o||f?e.notifySubscribers(n):s.na.zb(function(){e.notifySubscribers(n)})}),o=!0)}function f(n,i){t("getConfig",[n],function(r){r?t("loadComponent",[n,r],function(n){i(n,r)}):i(null,null)})}function t(i,r,u,f){var e,o,h;if(f||(f=s.j.loaders.slice(0)),e=f.shift(),e)if(o=e[i],o){if(h=!1,o.apply(e,r.concat(function(n){h?u(null):null!==n?u(n):t(i,r,u,f)}))!==n&&(h=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else t(i,r,u,f);else u(null)}var i={},r={};s.j={get:function(t,i){var f=Object.prototype.hasOwnProperty.call(r,t)?r[t]:n;f?f.Gd?s.u.G(function(){i(f.definition)}):s.na.zb(function(){i(f.definition)}):u(t,i)},Bc:function(n){delete r[n]},oc:t};s.j.loaders=[];s.b("components",s.j);s.b("components.get",s.j.get);s.b("components.clearCachedDefinition",s.j.Bc)}(),function(){function l(n,i,r,f){function e(){0==--c&&f(o)}var o={},c=2,h=r.template;r=r.viewModel;h?u(i,h,function(t){s.j.oc("loadTemplate",[n,t],function(n){o.template=n;e()})}):e();r?u(i,r,function(i){s.j.oc("loadViewModel",[n,i],function(n){o[t]=n;e()})}):e()}function e(n,i,r){if("function"==typeof i)r(function(n){return new i(n)});else if("function"==typeof i[t])r(i[t]);else if("instance"in i){var u=i.instance;r(function(){return u})}else"viewModel"in i?e(n,i.viewModel,r):n("Unknown viewModel value: "+i)}function h(n){switch(s.a.R(n)){case"script":return s.a.ua(n.text);case"textarea":return s.a.ua(n.value);case"template":if(c(n.content))return s.a.Ca(n.content.childNodes)}return s.a.Ca(n.childNodes)}function c(n){return r.DocumentFragment?n instanceof DocumentFragment:n&&11===n.nodeType}function u(n,t,i){"string"==typeof t.require?o||r.require?(o||r.require)([t.require],function(n){n&&"object"==typeof n&&n.Xd&&n["default"]&&(n=n["default"]);i(n)}):n("Uses require, but no AMD loader is present"):i(t)}function f(n){return function(t){throw Error("Component '"+n+"': "+t);}}var n={},t;s.j.register=function(t,i){if(!i)throw Error("Invalid configuration for "+t);if(s.j.tb(t))throw Error("Component "+t+" is already registered");n[t]=i};s.j.tb=function(t){return Object.prototype.hasOwnProperty.call(n,t)};s.j.unregister=function(t){delete n[t];s.j.Bc(t)};s.j.Fc={getConfig:function(t,i){i(s.j.tb(t)?n[t]:null)},loadComponent:function(n,t,i){var r=f(n);u(r,t,function(t){l(n,r,t,i)})},loadTemplate:function(n,t,u){if(n=f(n),"string"==typeof t)u(s.a.ua(t));else if(t instanceof Array)u(t);else if(c(t))u(s.a.la(t.childNodes));else if(t.element)if(t=t.element,r.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)u(h(t));else if("string"==typeof t){var e=i.getElementById(t);e?u(h(e)):n("Cannot find element with ID "+t)}else n("Unknown element type: "+t);else n("Unknown template value: "+t)},loadViewModel:function(n,t,i){e(f(n),t,i)}};t="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=n}(),function(){function n(n,i){var r=n.getAttribute("params");if(r){var r=t.parseBindingsString(r,i,n,{valueAccessors:!0,bindingParams:!0}),r=s.a.Ga(r,function(t){return s.o(t,null,{l:n})}),u=s.a.Ga(r,function(t){var i=t.v();return t.ja()?s.o({read:function(){return s.a.f(t())},write:s.Za(i)&&function(n){t()(n)},l:n}):i});return Object.prototype.hasOwnProperty.call(u,"$raw")||(u.$raw=r),u}return{$raw:{}}}s.j.getComponentNameForNode=function(n){var t=s.a.R(n);if(s.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+n||8>=s.a.W&&n.tagName===t))return t};s.j.tc=function(t,i,r,u){var f,e;if(1===i.nodeType&&(f=s.j.getComponentNameForNode(i),f)){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');e={name:f,params:n(i,r)};t.component=u?function(){return e}:e}return t};var t=new s.ga;9>s.a.W&&(s.j.register=function(n){return function(){return n.apply(this,arguments)}}(s.j.register),i.createDocumentFragment=function(n){return function(){var t=n(),i=s.j.dd;for(var r in i);return t}}(i.createDocumentFragment))}(),function(){function n(n,t,i){if(t=t.template,!t)throw Error("Component '"+n+"' has no template");n=s.a.Ca(t);s.h.va(i,n)}function t(n,t,i){var r=n.createViewModel;return r?r.call(n,t,i):t}var i=0;s.c.component={init:function(r,u,f,e,o){function a(){var n=h&&h.dispose;"function"==typeof n&&n.call(h);c&&c.s();l=h=c=null}var h,l,c,v=s.a.la(s.h.childNodes(r));return s.h.Ea(r),s.a.K.za(r,a),s.o(function(){var e=s.a.f(u()),f,y,p,w;if("string"==typeof e?f=e:(f=s.a.f(e.name),y=s.a.f(e.params)),!f)throw Error("No component name specified");p=s.i.Cb(r,o);w=l=++i;s.j.get(f,function(i){if(l===w){if(a(),!i)throw Error("Unknown component '"+f+"'");n(f,i,r);var u=t(i,y,{element:r,templateNodes:v});i=p.createChildContext(u,{extend:function(n){n.$component=u;n.$componentTemplateNodes=v}});u&&u.koDescendantsComplete&&(c=s.i.subscribe(r,s.i.pa,u.koDescendantsComplete,u));h=u;s.Oa(i,r)}})},null,{l:r}),{controlsDescendantBindings:!0}}};s.h.ea.component=!0}();k={"class":"className","for":"htmlFor"};s.c.attr={update:function(t,i){var r=s.a.f(i())||{};s.a.P(r,function(i,r){r=s.a.f(r);var u=i.indexOf(":"),u="lookupNamespaceURI"in t&&0<u&&t.lookupNamespaceURI(i.substr(0,u)),f=!1===r||null===r||r===n;f?u?t.removeAttributeNS(u,i):t.removeAttribute(i):r=r.toString();8>=s.a.W&&i in k?(i=k[i],f?t.removeAttribute(i):t[i]=r):f||(u?t.setAttributeNS(u,i,r):t.setAttribute(i,r));"name"===i&&s.a.Yc(t,f?"":r)})}},function(){s.c.checked={after:["value","attr"],init:function(t,i,r){function l(){var v=t.checked,h=f(),l,y,p;s.S.Ya()||!v&&(o||s.S.qa())||(l=s.u.G(i),u?(y=a?l.v():l,p=c,c=h,p!==h?v&&(s.a.Na(y,h,!0),s.a.Na(y,p,!1)):s.a.Na(y,h,v),a&&s.Za(l)&&l(y)):(e&&(h===n?h=v:v||(h=n)),s.m.eb(l,r,"checked",h,!0)))}function v(){var r=s.a.f(i()),o=f();u?(t.checked=0<=s.a.A(r,o),c=o):t.checked=e&&o===n?!!r:f()===r}var f=s.xb(function(){return r.has("checkedValue")?s.a.f(r.get("checkedValue")):y?r.has("value")?s.a.f(r.get("value")):t.value:void 0}),e="checkbox"==t.type,o="radio"==t.type;if(e||o){var h=i(),u=e&&s.a.f(h)instanceof Array,a=!(u&&h.push&&h.splice),y=o||u,c=u?f():n;o&&!t.name&&s.c.uniqueName.init(t,function(){return!0});s.o(l,null,{l:t});s.a.B(t,"click",l);s.o(v,null,{l:t});h=n}}};s.m.wa.checked=!0;s.c.checkedValue={update:function(n,t){n.value=s.a.f(t())}}}();s.c["class"]={update:function(n,t){var i=s.a.Db(s.a.f(t()));s.a.Eb(n,n.__ko__cssValue,!1);n.__ko__cssValue=i;s.a.Eb(n,i,!0)}};s.c.css={update:function(n,t){var i=s.a.f(t());null!==i&&"object"==typeof i?s.a.P(i,function(t,i){i=s.a.f(i);s.a.Eb(n,t,i)}):s.c["class"].update(n,t)}};s.c.enable={update:function(n,t){var i=s.a.f(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};s.c.disable={update:function(n,t){s.c.enable.update(n,function(){return!s.a.f(t())})}};s.c.event={init:function(n,t,i,r,u){var f=t()||{};s.a.P(f,function(f){"string"==typeof f&&s.a.B(n,f,function(n){var o,h=t()[f],e;if(h){try{e=s.a.la(arguments);r=u.$data;e.unshift(r);o=h.apply(r,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};s.c.foreach={Rc:function(n){return function(){var i=n(),t=s.a.bc(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:s.ba.Ma}:(s.a.f(i),{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})}},init:function(n,t){return s.c.template.init(n,s.c.foreach.Rc(t))},update:function(n,t,i,r,u){return s.c.template.update(n,s.c.foreach.Rc(t),i,r,u)}};s.m.Ra.foreach=!1;s.h.ea.foreach=!0;s.c.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();s.m.eb(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);s.a.B(n,"focus",u);s.a.B(n,"focusin",u);s.a.B(n,"blur",f);s.a.B(n,"focusout",f);n.__ko_hasfocusLastValue=!1},update:function(n,t){var i=!!s.a.f(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),!i&&n.__ko_hasfocusLastValue&&n.ownerDocument.body.focus(),s.u.G(s.a.Fb,null,[n,i?"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(n,t){s.a.fc(n,t())}},function(){function n(n,t,i){s.c[n]={init:function(n,r,u,f,e){var a,c,o={},v,y,h,l;return t&&(f=u.get("as"),l=u.get("noChildContext"),h=!(f&&l),o={as:f,noChildContext:l,exportDependencies:h}),y=(v="render"==u.get("completeOn"))||u.has(s.i.pa),s.o(function(){var f=s.a.f(r()),u=!i!=!f,l=!c,p;(h||u!==a)&&(y&&(e=s.i.Cb(n,e)),u&&((!t||h)&&(o.dataDependency=s.S.o()),p=t?e.createChildContext("function"==typeof f?f:r,o):s.S.qa()?e.extend(null,o):e),l&&s.S.qa()&&(c=s.a.Ca(s.h.childNodes(n),!0)),u?(l||s.h.va(n,s.a.Ca(c)),s.Oa(p,n)):(s.h.Ea(n),v||s.i.ma(n,s.i.H)),a=u)},null,{l:n}),{controlsDescendantBindings:!0}}};s.m.Ra[n]=!1;s.h.ea[n]=!0}n("if");n("ifnot",!1,!0);n("with",!0)}();s.c.let={init:function(n,t,i,r,u){return t=u.extend(t),s.Oa(t,n),{controlsDescendantBindings:!0}}};s.h.ea.let=!0;w={};s.c.options={init:function(n){if("select"!==s.a.R(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,r){function a(){return s.a.jb(t.options,function(n){return n.selected})}function v(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function y(n,i){if(o&&e)s.i.ma(t,s.i.H);else if(f.length){var r=0<=s.a.A(f,s.w.M(i[0]));s.a.Zc(i[0],r);o&&!r&&s.u.G(s.a.Fb,null,[t,"change"])}}var h=t.multiple,c=0!=t.length&&h?t.scrollTop:null,u=s.a.f(i()),e=r.get("valueAllowUnset")&&r.has("value"),b=r.get("optionsIncludeDestroyed"),l,f,o,p;i={};f=[];e||(h?f=s.a.Mb(a(),s.w.M):0<=t.selectedIndex&&f.push(s.w.M(t.options[t.selectedIndex])));u&&("undefined"==typeof u.length&&(u=[u]),l=s.a.jb(u,function(t){return b||t===n||null===t||!s.a.f(t._destroy)}),r.has("optionsCaption")&&(u=s.a.f(r.get("optionsCaption")),null!==u&&u!==n&&l.unshift(w)));o=!1;i.beforeRemove=function(n){t.removeChild(n)};u=y;r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(u=function(t,i){y(0,i);s.u.G(r.get("optionsAfterRender"),null,[i[0],t!==w?t:n])});s.a.ec(t,l,function(i,u,h){return h.length&&(f=!e&&h[0].selected?[s.w.M(h[0])]:[],o=!0),u=t.ownerDocument.createElement("option"),i===w?(s.a.Bb(u,r.get("optionsCaption")),s.w.cb(u,n)):(h=v(i,r.get("optionsValue"),i),s.w.cb(u,s.a.f(h)),i=v(i,r.get("optionsText"),h),s.a.Bb(u,i)),[u]},i,u);e||(p=h?f.length&&a().length<f.length:f.length&&0<=t.selectedIndex?s.w.M(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex,p&&s.u.G(s.a.Fb,null,[t,"change"]));(e||s.S.Ya())&&s.i.ma(t,s.i.H);s.a.wd(t);c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}};s.c.options.$b=s.a.g.Z();s.c.selectedOptions={init:function(n,t,i){function r(){var u=t(),r=[];s.a.D(n.getElementsByTagName("option"),function(n){n.selected&&r.push(s.w.M(n))});s.m.eb(u,i,"selectedOptions",r)}function f(){var i=s.a.f(t()),r=n.scrollTop;i&&"number"==typeof i.length&&s.a.D(n.getElementsByTagName("option"),function(n){var t=0<=s.a.A(i,s.w.M(n));n.selected!=t&&s.a.Zc(n,t)});n.scrollTop=r}if("select"!=s.a.R(n))throw Error("selectedOptions binding applies only to SELECT elements");var u;s.i.subscribe(n,s.i.H,function(){u?r():(s.a.B(n,"change",r),u=s.o(f,null,{l:n}))},null,{notifyImmediately:!0})},update:function(){}};s.m.wa.selectedOptions=!0;s.c.style={update:function(i,r){var u=s.a.f(r()||{});s.a.P(u,function(r,u){if(u=s.a.f(u),(null===u||u===n||!1===u)&&(u=""),t)t(i).css(r,u);else if(/^--/.test(r))i.style.setProperty(r,u);else{r=r.replace(/-(\w)/g,function(n,t){return t.toUpperCase()});var f=i.style[r];i.style[r]=u;u===f||i.style[r]!=f||isNaN(u)||(i.style[r]=u+"px")}})}};s.c.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");s.a.B(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};s.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Bb(n,t())}};s.h.ea.text=!0,function(){var i,u,f,e,o,t,h;if(r&&r.navigator&&(i=function(n){if(n)return parseFloat(n[1])},u=r.navigator.userAgent,(f=r.opera&&r.opera.version&&parseInt(r.opera.version()))||(h=i(u.match(/Edge\/([^ ]+)$/)))||i(u.match(/Chrome\/([^ ]+)/))||(e=i(u.match(/Version\/([^ ]+) Safari/)))||(o=i(u.match(/Firefox\/([^ ]+)/)))||(t=s.a.W||i(u.match(/MSIE ([^ ]+)/)))||(t=i(u.match(/rv:([^ )]+)/)))),8<=t&&10>t)var c=s.a.g.Z(),l=s.a.g.Z(),v=function(n){var t=this.activeElement;(t=t&&s.a.g.get(t,l))&&t(n)},a=function(n,t){var i=n.ownerDocument;s.a.g.get(i,c)||(s.a.g.set(i,c,!0),s.a.B(i,"selectionchange",v));s.a.g.set(n,l,t)};s.c.textInput={init:function(i,r,u){function c(n,t){s.a.B(i,n,t)}function d(){var t=s.a.f(r());(null===t||t===n)&&(t="");p!==n&&t===p?s.a.setTimeout(d,4):i.value!==t&&(k=!0,i.value=t,k=!1,w=i.value)}function v(){y||(p=i.value,y=s.a.setTimeout(l,4))}function l(){clearTimeout(y);p=y=n;var t=i.value;w!==t&&(w=t,s.m.eb(r(),u,"textInput",t))}var w=i.value,y,p,b=9==s.a.W?v:l,k=!1;t&&c("keypress",l);11>t&&c("propertychange",function(n){k||"value"!==n.propertyName||b(n)});8==t&&(c("keyup",l),c("keydown",l));a&&(a(i,b),c("dragend",v));(!t||9<=t)&&c("input",b);5>e&&"textarea"===s.a.R(i)?(c("keydown",v),c("paste",v),c("cut",v)):11>f?c("keydown",v):4>o?(c("DOMAutoComplete",l),c("dragdrop",l),c("drop",l)):h&&"number"===i.type&&c("keydown",v);c("change",l);c("blur",l);s.o(d,null,{l:i})}};s.m.wa.textInput=!0;s.c.textinput={preprocess:function(n,t,i){i("textInput",n)}}}();s.c.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++s.c.uniqueName.rd;s.a.Yc(n,i)}}};s.c.uniqueName.rd=0;s.c.using={init:function(n,t,i,r,u){var f;return i.has("as")&&(f={as:i.get("as"),noChildContext:i.get("noChildContext")}),t=u.createChildContext(t,f),s.Oa(t,n),{controlsDescendantBindings:!0}}};s.h.ea.using=!0;s.c.value={init:function(t,i,r){var l=s.a.R(t),a="input"==l,u,f,v;if(a&&("checkbox"==t.type||"radio"==t.type))s.ib(t,{checkedValue:i});else{var e=[],o=r.get("valueUpdate"),h=!1,c=null;o&&(e="string"==typeof o?[o]:s.a.wc(o),s.a.Pa(e,"change"));u=function(){c=null;h=!1;var n=i(),u=s.w.M(t);s.m.eb(n,r,"value",u)};s.a.W&&a&&"text"==t.type&&"off"!=t.autocomplete&&(!t.form||"off"!=t.form.autocomplete)&&-1==s.a.A(e,"propertychange")&&(s.a.B(t,"propertychange",function(){h=!0}),s.a.B(t,"focus",function(){h=!1}),s.a.B(t,"blur",function(){h&&u()}));s.a.D(e,function(n){var i=u;s.a.Ud(n,"after")&&(i=function(){c=s.w.M(t);s.a.setTimeout(u,0)},n=n.substring(5));s.a.B(t,n,i)});f=a&&"file"==t.type?function(){var r=s.a.f(i());null===r||r===n||""===r?t.value="":s.u.G(u)}:function(){var e=s.a.f(i()),o=s.w.M(t);null!==c&&e===c?s.a.setTimeout(f,0):(e!==o||o===n)&&("select"===l?(o=r.get("valueAllowUnset"),s.w.cb(t,e,o),o||e===s.w.M(t)||s.u.G(u)):s.w.cb(t,e))};"select"===l?s.i.subscribe(t,s.i.H,function(){v?r.get("valueAllowUnset")?f():u():(s.a.B(t,"change",u),v=s.o(f,null,{l:t}))},null,{notifyImmediately:!0}):(s.a.B(t,"change",u),s.o(f,null,{l:t}))}},update:function(){}};s.m.wa.value=!0;s.c.visible={update:function(n,t){var i=s.a.f(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}};s.c.hidden={update:function(n,t){s.c.visible.update(n,function(){return!s.a.f(t())})}},function(n){s.c[n]={init:function(t,i,r,u,f){return s.c.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("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(n,t){if("string"==typeof n){t=t||i;var r=t.getElementById(n);if(!r)throw Error("Cannot find template with ID "+n);return new s.C.F(r)}if(1==n.nodeType||8==n.nodeType)return new s.C.ia(n);throw Error("Unknown template type: "+n);};s.ca.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i,r)};s.ca.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};s.ca.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};s.b("templateEngine",s.ca);s.kc=function(){function n(n,t,i,r){var o,f,u,e;for(n=s.m.ac(n),o=s.m.Ra,f=0;f<n.length;f++)if(u=n[f].key,Object.prototype.hasOwnProperty.call(o,u))if(e=o[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+s.m.vb(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return s.kc.Ld(n,t)},i)},Ld:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},md:function(n,t){return s.aa.Xb(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&s.ib(u,n,r)})}}}();s.b("__tr_ambtns",s.kc.md),function(){var i,t;s.C={};s.C.F=function(n){if(this.F=n){var t=s.a.R(n);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&n.content&&11===n.content.nodeType?3:4}};s.C.F.prototype.text=function(){var n=1===this.ab?"text":2===this.ab?"value":"innerHTML",t;if(0==arguments.length)return this.F[n];t=arguments[0];"innerHTML"===n?s.a.fc(this.F,t):this.F[n]=t};i=s.a.g.Z()+"_";s.C.F.prototype.data=function(n){if(1===arguments.length)return s.a.g.get(this.F,i+n);s.a.g.set(this.F,i+n,arguments[1])};t=s.a.g.Z();s.C.F.prototype.nodes=function(){var i=this.F,r,u,f;if(0==arguments.length)return r=s.a.g.get(i,t)||{},u=r.lb||(3===this.ab?i.content:4===this.ab?i:n),(!u||r.jd)&&(f=this.text(),f&&f!==r.bb&&(u=s.a.Md(f,i.ownerDocument),s.a.g.set(i,t,{lb:u,bb:f,jd:!0}))),u;r=arguments[0];this.ab!==n&&this.text("");s.a.g.set(i,t,{lb:r})};s.C.ia=function(n){this.F=n};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 i=s.a.g.get(this.F,t)||{};return i.bb===n&&i.lb&&(i.bb=i.lb.innerHTML),i.bb}s.a.g.set(this.F,t,{bb:arguments[0]})};s.b("templateSources",s.C);s.b("templateSources.domElement",s.C.F);s.b("templateSources.anonymousTemplate",s.C.ia)}(),function(){function t(n,t,i){var r;for(t=s.h.nextSibling(t);n&&(r=n)!==t;)n=s.h.nextSibling(r),i(r,n)}function e(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=s.ga.instance,o=e.preprocessNode;if(o){if(t(r,u,function(n,t){var f=n.previousSibling,i=o.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),s.a.Ua(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.vc(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.aa.cd(n,[i])});s.a.Ua(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function o(n,t,u,f,o){o=o||{};var h=(n&&i(n)||u||{}).ownerDocument,c=o.templateEngine||r;if(s.kc.xd(u,c,h),u=c.renderTemplate(u,f,o,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":s.h.va(n,u);h=!0;break;case"replaceNode":s.a.Xc(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(e(u,f),o.afterRender&&s.u.G(o.afterRender,null,[u,f[o.as||"$data"]]),"replaceChildren"==t&&s.i.ma(n,s.i.H)),u}function h(n,t,i){return s.O(n)?n():"function"==typeof n?n(t,i):n}var r,u,f;s.gc=function(t){if(t!=n&&!(t instanceof s.ca))throw Error("templateEngine must inherit from ko.templateEngine");r=t};s.dc=function(t,u,f,e,c){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",e){var l=i(e);return s.$(function(){var n=u&&u instanceof s.fa?u:new s.fa(u,null,null,null,{exportDependencies:!0}),r=h(t,n.$data,n),n=o(e,c,r,n,f);"replaceNode"==c&&(e=n,l=i(e))},null,{Sa:function(){return!l||!s.a.Sb(l)},l:l&&"replaceNode"==c?l.parentNode:l})}return s.aa.Xb(function(n){s.dc(t,u,f,n,"replaceNode")})};s.Qd=function(t,i,r,u,f){function l(n,t){s.u.G(s.a.ec,null,[u,n,w,r,p,t]);s.i.ma(u,s.i.H)}function p(n,t){e(t,c);r.afterRender&&r.afterRender(t,n);c=null}function w(n,i){c=f.createChildContext(n,{as:a,noChildContext:r.noChildContext,extend:function(n){n.$index=i;a&&(n[a+"Index"]=i)}});var e=h(t,n,c);return o(u,"ignoreTargetNode",e,c,r)}var c,a=r.as,y=!1===r.includeDestroyed||s.options.foreachHidesDestroyed&&!r.includeDestroyed,v;return y||r.beforeRemove||!s.Pc(i)?s.$(function(){var t=s.a.f(i)||[];"undefined"==typeof t.length&&(t=[t]);y&&(t=s.a.jb(t,function(t){return t===n||null===t||!s.a.f(t._destroy)}));l(t)},null,{l:u}):(l(i.v()),v=i.subscribe(function(n){l(i(),n)},null,"arrayChange"),v.l(u),v)};u=s.a.g.Z();f=s.a.g.Z();s.c.template={init:function(n,t){var i=s.a.f(t()),r;if("string"==typeof i||"name"in i)s.h.Ea(n);else if("nodes"in i){if(i=i.nodes||[],s.O(i))throw Error('The "nodes" option must be a plain, non-observable array.');r=i[0]&&i[0].parentNode;r&&s.a.g.get(r,f)||(r=s.a.Yb(i),s.a.g.set(r,f,!0));new s.C.ia(n).nodes(r)}else if(i=s.h.childNodes(n),0<i.length)r=s.a.Yb(i),new s.C.ia(n).nodes(r);else throw Error("Anonymous template defined, but no template content was provided");return{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){var o=i();i=s.a.f(o);r=!0;f=null;"string"==typeof i?i={}:(o="name"in i?i.name:t,"if"in i&&(r=s.a.f(i["if"])),r&&"ifnot"in i&&(r=!s.a.f(i.ifnot)),r&&!o&&(r=!1));"foreach"in i?f=s.Qd(o,r&&i.foreach||[],i,t,e):r?(r=e,"data"in i&&(r=e.createChildContext(i.data,{as:i.as,noChildContext:i.noChildContext,exportDependencies:!0})),f=s.dc(o,r,i,t)):s.h.Ea(t);e=f;(i=s.a.g.get(t,u))&&"function"==typeof i.s&&i.s();s.a.g.set(t,u,!e||e.ja&&!e.ja()?n:e)}};s.m.Ra.template=function(n){return n=s.m.ac(n),1==n.length&&n[0].unknown||s.m.Id(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};s.h.ea.template=!0}();s.b("setTemplateEngine",s.gc);s.b("renderTemplate",s.dc);s.a.Kc=function(n,t,i){if(n.length&&t.length)for(var o,r,f,e,u=o=0;(!i||u<i)&&(f=n[o]);++o){for(r=0;e=t[r];++r)if(f.value===e.value){f.moved=e.index;e.moved=f.index;t.splice(r,1);u=r=0;break}u+=r}};s.a.Pb=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,a=[],c=n.length,f,h=t.length,v=h-c||1,w=c+h+1,y,p,b,e=0;e<=c;e++)for(p=y,a.push(y=[]),b=o(h,e+v),f=l(0,e-1);f<=b;f++)y[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,y[f-1]||w)+1:f+1:e+1;for(o=[],l=[],v=[],e=c,f=h;e||f;)h=a[e][f]-1,f&&h===a[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===a[e-1][f]?v.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));return s.a.Kc(v,l,!u.dontLimitMoves&&10*c),o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();s.b("utils.compareArrays",s.a.Pb),function(){function r(t,i,r,u,f){var e=[],o=s.$(function(){var n=i(r,f,s.a.Ua(e,t))||[];0<e.length&&(s.a.Xc(e,n),u&&s.u.G(u,null,[r,n,f]));e.length=0;s.a.Nb(e,n)},null,{l:t,Sa:function(){return!s.a.kd(e)}});return{Y:e,$:o.ja()?o:n}}var t=s.a.g.Z(),i=s.a.g.Z();s.a.ec=function(u,f,e,o,h,c){function st(n){l={Aa:n,pb:s.ta(b++)};y.push(l);ht||ct.push(l)}function d(n){l=w[n];b!==l.pb.v()&&et.push(l);l.pb(b++);s.a.Ua(l.Y,u);y.push(l)}function g(n,t){if(n)for(var i=0,r=t.length;i<r;i++)s.a.D(t[i].Y,function(r){n(r,i,t[i].Aa)})}var a,k,tt,ot,p,it,rt;f=f||[];"undefined"==typeof f.length&&(f=[f]);o=o||{};var w=s.a.g.get(u,t),ht=!w,y=[],v=0,b=0,ut=[],ft=[],nt=[],et=[],ct=[],l,lt=0;if(ht)s.a.D(f,st);else{for((!c||w&&w._countWaitingForRemove)&&(a=s.a.Mb(w,function(n){return n.Aa}),c=s.a.Pb(a,f,{dontLimitMoves:o.dontLimitMoves,sparse:!0})),a=0;k=c[a];a++)switch(tt=k.moved,ot=k.index,k.status){case"deleted":for(;v<ot;)d(v++);tt===n&&(l=w[v],l.$&&(l.$.s(),l.$=n),s.a.Ua(l.Y,u).length&&(o.beforeRemove&&(y.push(l),lt++,l.Aa===i?l=null:nt.push(l)),l&&ut.push.apply(ut,l.Y)));v++;break;case"added":for(;b<ot;)d(v++);tt!==n?(ft.push(y.length),d(tt)):st(k.value)}for(;b<f.length;)d(v++);y._countWaitingForRemove=lt}s.a.g.set(u,t,y);g(o.beforeMove,et);s.a.D(ut,o.beforeRemove?s.oa:s.removeNode);try{rt=u.ownerDocument.activeElement}catch(at){}if(ft.length)for(;(a=ft.shift())!=n;){for(l=y[a],p=n;a;)if((it=y[--a].Y)&&it.length){p=it[it.length-1];break}for(f=0;v=l.Y[f];p=v,f++)s.h.Wb(u,v,p)}for(a=0;l=y[a];a++){for(l.Y||s.a.extend(l,r(u,e,l.Aa,h,l.pb)),f=0;v=l.Y[f];p=v,f++)s.h.Wb(u,v,p);!l.Ed&&h&&(h(l.Aa,l.Y,l.pb),l.Ed=!0,p=l.Y[l.Y.length-1])}for(rt&&u.ownerDocument.activeElement!=rt&&rt.focus(),g(o.beforeRemove,nt),a=0;a<nt.length;++a)nt[a].Aa=i;g(o.afterMove,et);g(o.afterAdd,ct)}}();s.b("utils.setDomNodeChildrenFromArrayMapping",s.a.ec);s.ba=function(){this.allowTemplateRewriting=!1};s.ba.prototype=new s.ca;s.ba.prototype.constructor=s.ba;s.ba.prototype.renderTemplateSource=function(n,t,i,r){return(t=(9>s.a.W?0:n.nodes)?n.nodes():null)?s.a.la(t.cloneNode(!0).childNodes):(n=n.text(),s.a.ua(n,r))};s.ba.Ma=new s.ba;s.gc(s.ba.Ma);s.b("nativeTemplateEngine",s.ba),function(){s.$a=function(){var n=this.Hd=function(){if(!t||!t.tmpl)return 0;try{if(0<=t.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(r,u,f,e){if(e=e||i,f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=r.data("precompiled");return o||(o=r.text()||"",o=t.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),r.data("precompiled",o)),r=[u.$data],u=t.extend({koBindingContext:u},f.templateOptions),u=t.tmpl(o,r,u),u.appendTo(e.createElement("div")),t.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,t){i.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")};0<n&&(t.tmpl.tag.ko_code={open:"__.push($1 || '');"},t.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};s.$a.prototype=new s.ca;s.$a.prototype.constructor=s.$a;var n=new s.$a;0<n.Hd&&s.gc(n);s.b("jqueryTmplTemplateEngine",s.$a)}()})})()}(),ko.components.register("truncate",{viewModel:function(n){var t=this;t.showFullText=ko.observable(!1);t.textTooLong=ko.computed(function(){return(ko.unwrap(n.text)||"").length>parseInt(ko.unwrap(n.maxLength))});t.shortText=ko.computed(function(){var i=parseInt(ko.unwrap(n.maxLength)),t=ko.unwrap(n.text)||"";return t.length>i?truncate(t,i):t});t.longText=ko.computed(function(){return t.showFullText(!1),(ko.unwrap(n.text)||"").replace(t.shortText(),"")});t.showMore=function(){t.showFullText(!0)};t.dispose=function(){t.shortText.dispose();t.longText.dispose()}},template:'<span data-bind="html: shortText"><\/span><\/span><span data-bind="visible: textTooLong() && !showFullText()"><button data-bind="click: showMore">[ &hellip; ]<\/button><\/span><span data-bind="html: longText, visible: showFullText">'}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.6";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.6";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.6";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f)))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.6";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=u.hoverState&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.6";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.6";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.6";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n,t){var r,i;return i=t.document,r=function(){function r(i){var r;try{r=t.localStorage}catch(u){r=!1}this._options=n.extend({name:"tour",steps:[],container:"body",autoscroll:!0,keyboard:!0,storage:r,debug:!1,backdrop:!1,backdropContainer:"body",backdropPadding:0,redirect:!0,orphan:!1,duration:!1,delay:!1,basePath:"",template:'<div class="popover" role="tooltip"> <div class="arrow"><\/div> <h3 class="popover-title"><\/h3> <div class="popover-content"><\/div> <div class="popover-navigation"> <div class="btn-group"> <button class="btn btn-sm btn-default" data-role="prev">&laquo; Prev<\/button> <button class="btn btn-sm btn-default" data-role="next">Next &raquo;<\/button> <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause<\/button> <\/div> <button class="btn btn-sm btn-default" data-role="end">End tour<\/button> <\/div> <\/div>',afterSetState:function(){},afterGetState:function(){},afterRemoveState:function(){},onStart:function(){},onEnd:function(){},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNext:function(){},onPrev:function(){},onPause:function(){},onResume:function(){}},i);this._force=!1;this._inited=!1;this.backdrop={overlay:null,$element:null,$background:null,backgroundShown:!1,overlayElementShown:!1};this}return r.prototype.addSteps=function(n){for(var i,t=0,r=n.length;t<r;t++)i=n[t],this.addStep(i);return this},r.prototype.addStep=function(n){return this._options.steps.push(n),this},r.prototype.getStep=function(t){if(this._options.steps[t]!=null)return n.extend({id:"step-"+t,path:"",placement:"right",title:"",content:"<p><\/p>",next:t===this._options.steps.length-1?-1:t+1,prev:t-1,animation:!0,container:this._options.container,autoscroll:this._options.autoscroll,backdrop:this._options.backdrop,backdropContainer:this._options.backdropContainer,backdropPadding:this._options.backdropPadding,redirect:this._options.redirect,orphan:this._options.orphan,duration:this._options.duration,delay:this._options.delay,template:this._options.template,onShow:this._options.onShow,onShown:this._options.onShown,onHide:this._options.onHide,onHidden:this._options.onHidden,onNext:this._options.onNext,onPrev:this._options.onPrev,onPause:this._options.onPause,onResume:this._options.onResume},this._options.steps[t])},r.prototype.init=function(n){return(this._force=n,this.ended())?(this._debug("Tour ended, init prevented."),this):(this.setCurrentStep(),this._initMouseNavigation(),this._initKeyboardNavigation(),this._onResize(function(n){return function(){return n.showStep(n._current)}}(this)),this._current!==null&&this.showStep(this._current),this._inited=!0,this)},r.prototype.start=function(n){var t;return n==null&&(n=!1),this._inited||this.init(n),this._current===null&&(t=this._makePromise(this._options.onStart!=null?this._options.onStart(this):void 0),this._callOnPromiseDone(t,this.showStep,0)),this},r.prototype.next=function(){var n;return n=this.hideStep(this._current),this._callOnPromiseDone(n,this._showNextStep)},r.prototype.prev=function(){var n;return n=this.hideStep(this._current),this._callOnPromiseDone(n,this._showPrevStep)},r.prototype.goTo=function(n){var t;return t=this.hideStep(this._current),this._callOnPromiseDone(t,this.showStep,n)},r.prototype.end=function(){var r,u;return r=function(r){return function(){if(n(i).off("click.tour-"+r._options.name),n(i).off("keyup.tour-"+r._options.name),n(t).off("resize.tour-"+r._options.name),r._setState("end","yes"),r._inited=!1,r._force=!1,r._clearTimer(),r._options.onEnd!=null)return r._options.onEnd(r)}}(this),u=this.hideStep(this._current),this._callOnPromiseDone(u,r)},r.prototype.ended=function(){return!this._force&&!!this._getState("end")},r.prototype.restart=function(){return this._removeState("current_step"),this._removeState("end"),this.start()},r.prototype.pause=function(){var n;if(n=this.getStep(this._current),!(n&&n.duration))return this;if(this._paused=!0,this._duration-=(new Date).getTime()-this._start,t.clearTimeout(this._timer),this._debug("Paused/Stopped step "+(this._current+1)+" timer ("+this._duration+" remaining)."),n.onPause!=null)return n.onPause(this,this._duration)},r.prototype.resume=function(){var n;if(n=this.getStep(this._current),!(n&&n.duration))return this;if(this._paused=!1,this._start=(new Date).getTime(),this._duration=this._duration||n.duration,this._timer=t.setTimeout(function(n){return function(){return n._isLast()?n.next():n.end()}}(this),this._duration),this._debug("Started step "+(this._current+1)+" timer with duration "+this._duration),n.onResume!=null&&this._duration!==n.duration)return n.onResume(this,this._duration)},r.prototype.hideStep=function(t){var u,r,i;if(i=this.getStep(t),i)return this._clearTimer(),r=this._makePromise(i.onHide!=null?i.onHide(this,t):void 0),u=function(r){return function(){var u;if(u=n(i.element),u.data("bs.popover")||u.data("popover")||(u=n("body")),u.popover("destroy").removeClass("tour-"+r._options.name+"-element tour-"+r._options.name+"-"+t+"-element"),i.reflex&&u.removeClass("tour-step-element-reflex").off(""+r._reflexEvent(i.reflex)+".tour-"+r._options.name),i.backdrop&&r._hideBackdrop(),i.onHidden!=null)return i.onHidden(r)}}(this),this._callOnPromiseDone(r,u),r},r.prototype.showStep=function(n){var u,f,e,r;return this.ended()?(this._debug("Tour ended, showStep prevented."),this):(r=this.getStep(n),!r)?void 0:(e=n<this._current,u=this._makePromise(r.onShow!=null?r.onShow(this,n):void 0),f=function(t){return function(){var o,u,f;if(t.setCurrentStep(n),u=function(){switch({}.toString.call(r.path)){case"[object Function]":return r.path();case"[object String]":return this._options.basePath+r.path;default:return r.path}}.call(t),o=[i.location.pathname,i.location.hash].join(""),t._isRedirect(u,o)){t._redirect(r,u);return}if(t._isOrphan(r)){if(!r.orphan){t._debug("Skip the orphan step "+(t._current+1)+".\nOrphan option is false and the element does not exist or is hidden.");e?t._showPrevStep():t._showNextStep();return}t._debug("Show the orphan step "+(t._current+1)+". Orphans option is true.")}return r.backdrop&&t._showBackdrop(r),f=function(){if(t.getCurrentStep()===n){if(r.element!=null&&r.backdrop&&t._showOverlayElement(r),t._showPopover(r,n),r.onShown!=null)r.onShown(t);return t._debug("Step "+(t._current+1)+" of "+t._options.steps.length)}},r.autoscroll?t._scrollIntoView(r.element,f):f(),r.duration?t.resume():void 0}}(this),r.delay?(this._debug("Wait "+r.delay+" milliseconds to show the step "+(this._current+1)),t.setTimeout(function(n){return function(){return n._callOnPromiseDone(u,f)}}(this),r.delay)):this._callOnPromiseDone(u,f),u)},r.prototype.getCurrentStep=function(){return this._current},r.prototype.setCurrentStep=function(n){return n!=null?(this._current=n,this._setState("current_step",n)):(this._current=this._getState("current_step"),this._current=this._current===null?null:parseInt(this._current,10)),this},r.prototype._setState=function(n,t){var r,i;if(this._options.storage){i=""+this._options.name+"_"+n;try{this._options.storage.setItem(i,t)}catch(u){r=u;r.code===DOMException.QUOTA_EXCEEDED_ERR&&this._debug("LocalStorage quota exceeded. State storage failed.")}return this._options.afterSetState(i,t)}return this._state==null&&(this._state={}),this._state[n]=t},r.prototype._removeState=function(n){var t;return this._options.storage?(t=""+this._options.name+"_"+n,this._options.storage.removeItem(t),this._options.afterRemoveState(t)):this._state!=null?delete this._state[n]:void 0},r.prototype._getState=function(n){var i,t;return this._options.storage?(i=""+this._options.name+"_"+n,t=this._options.storage.getItem(i)):this._state!=null&&(t=this._state[n]),(t===void 0||t==="null")&&(t=null),this._options.afterGetState(n,t),t},r.prototype._showNextStep=function(){var t,i,n;return n=this.getStep(this._current),i=function(t){return function(){return t.showStep(n.next)}}(this),t=this._makePromise(n.onNext!=null?n.onNext(this):void 0),this._callOnPromiseDone(t,i)},r.prototype._showPrevStep=function(){var t,i,n;return n=this.getStep(this._current),i=function(t){return function(){return t.showStep(n.prev)}}(this),t=this._makePromise(n.onPrev!=null?n.onPrev(this):void 0),this._callOnPromiseDone(t,i)},r.prototype._debug=function(n){if(this._options.debug)return t.console.log("Bootstrap Tour '"+this._options.name+"' | "+n)},r.prototype._isRedirect=function(n,t){return n!=null&&n!==""&&({}.toString.call(n)==="[object RegExp]"&&!n.test(t)||{}.toString.call(n)==="[object String]"&&n.replace(/\?.*$/,"").replace(/\/?$/,"")!==t.replace(/\/?$/,""))},r.prototype._redirect=function(t,r){return n.isFunction(t.redirect)?t.redirect.call(this,r):t.redirect===!0?(this._debug("Redirect to "+r),i.location.href=r):void 0},r.prototype._isOrphan=function(t){return t.element==null||!n(t.element).length||n(t.element).is(":hidden")&&n(t.element)[0].namespaceURI!=="http://www.w3.org/2000/svg"},r.prototype._isLast=function(){return this._current<this._options.steps.length-1},r.prototype._showPopover=function(t,i){var r,u,f,e;if(n(".tour-"+this._options.name).remove(),e=n.extend({},this._options),f=this._isOrphan(t),t.template=this._template(t,i),f&&(t.element="body",t.placement="top"),r=n(t.element),r.addClass("tour-"+this._options.name+"-element tour-"+this._options.name+"-"+i+"-element"),t.options&&n.extend(e,t.options),t.reflex&&!f){r.addClass("tour-step-element-reflex");r.off(""+this._reflexEvent(t.reflex)+".tour-"+this._options.name);r.on(""+this._reflexEvent(t.reflex)+".tour-"+this._options.name,function(n){return function(){return n._isLast()?n.next():n.end()}}(this))}return r.popover({placement:t.placement,trigger:"manual",title:t.title,content:t.content,html:!0,animation:t.animation,container:t.container,template:t.template,selector:t.element}).popover("show"),u=r.data("bs.popover")?r.data("bs.popover").tip():r.data("popover").tip(),u.attr("id",t.id),this._reposition(u,t),f?this._center(u):void 0},r.prototype._template=function(t,i){var u,f,e,o,r;return r=n.isFunction(t.template)?n(t.template(i,t)):n(t.template),u=r.find(".popover-navigation"),e=u.find('[data-role="prev"]'),f=u.find('[data-role="next"]'),o=u.find('[data-role="pause-resume"]'),this._isOrphan(t)&&r.addClass("orphan"),r.addClass("tour-"+this._options.name+" tour-"+this._options.name+"-"+i),t.prev<0&&e.addClass("disabled"),t.next<0&&f.addClass("disabled"),t.duration||o.remove(),r.clone().wrap("<div>").parent().html()},r.prototype._reflexEvent=function(n){return{}.toString.call(n)==="[object Boolean]"?"click":n},r.prototype._reposition=function(t,r){var f,h,e,c,o,s,u;if(c=t[0].offsetWidth,h=t[0].offsetHeight,u=t.offset(),o=u.left,s=u.top,f=n(i).outerHeight()-u.top-t.outerHeight(),f<0&&(u.top=u.top+f),e=n("html").outerWidth()-u.left-t.outerWidth(),e<0&&(u.left=u.left+e),u.top<0&&(u.top=0),u.left<0&&(u.left=0),t.offset(u),r.placement==="bottom"||r.placement==="top"){if(o!==u.left)return this._replaceArrow(t,(u.left-o)*2,c,"left")}else if(s!==u.top)return this._replaceArrow(t,(u.top-s)*2,h,"top")},r.prototype._center=function(i){return i.css("top",n(t).outerHeight()/2-i.outerHeight()/2)},r.prototype._replaceArrow=function(n,t,i,r){return n.find(".arrow").css(r,t?50*(1-t/i)+"%":"")},r.prototype._scrollIntoView=function(i,r){var u,f,h,e,o,s;return(u=n(i),!u.length)?r():(f=n(t),e=u.offset().top,s=f.height(),o=Math.max(0,e-s/2),this._debug("Scroll into view. ScrollTop: "+o+". Element offset: "+e+". Window height: "+s+"."),h=0,n("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(o)},function(n){return function(){if(++h==2)return r(),n._debug("Scroll into view.\nAnimation end element offset: "+u.offset().top+".\nWindow height: "+f.height()+".")}}(this)))},r.prototype._onResize=function(i,r){return n(t).on("resize.tour-"+this._options.name,function(){return clearTimeout(r),r=setTimeout(i,100)})},r.prototype._initMouseNavigation=function(){var t=this;return n(i).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",function(n){return function(t){return t.preventDefault(),n.next()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",function(n){return function(t){return t.preventDefault(),n.prev()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",function(n){return function(t){return t.preventDefault(),n.end()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",function(i){var r;return i.preventDefault(),r=n(this),r.text(t._paused?r.data("pause-text"):r.data("resume-text")),t._paused?t.resume():t.pause()})},r.prototype._initKeyboardNavigation=function(){if(this._options.keyboard)return n(i).on("keyup.tour-"+this._options.name,function(n){return function(t){if(t.which)switch(t.which){case 39:return t.preventDefault(),n._isLast()?n.next():n.end();case 37:if(t.preventDefault(),n._current>0)return n.prev();break;case 27:return t.preventDefault(),n.end()}}}(this))},r.prototype._makePromise=function(t){return t&&n.isFunction(t.then)?t:null},r.prototype._callOnPromiseDone=function(n,t,i){return n?n.then(function(n){return function(){return t.call(n,i)}}(this)):t.call(this,i)},r.prototype._showBackdrop=function(t){if(!this.backdrop.backgroundShown)return this.backdrop=n("<div>",{"class":"tour-backdrop"}),this.backdrop.backgroundShown=!0,n(t.backdropContainer).append(this.backdrop)},r.prototype._hideBackdrop=function(){return this._hideOverlayElement(),this._hideBackground()},r.prototype._hideBackground=function(){if(this.backdrop)return this.backdrop.remove(),this.backdrop.overlay=null,this.backdrop.backgroundShown=!1},r.prototype._showOverlayElement=function(t){var i,r;if(i=n(t.element),i&&i.length!==0&&!this.backdrop.overlayElementShown)return this.backdrop.overlayElementShown=!0,this.backdrop.$element=i.addClass("tour-step-backdrop"),this.backdrop.$background=n("<div>",{"class":"tour-step-background"}),r={width:i.innerWidth(),height:i.innerHeight(),offset:i.offset()},this.backdrop.$background.appendTo(t.backdropContainer),t.backdropPadding&&(r=this._applyBackdropPadding(t.backdropPadding,r)),this.backdrop.$background.width(r.width).height(r.height).offset(r.offset)},r.prototype._hideOverlayElement=function(){if(this.backdrop.overlayElementShown)return this.backdrop.$element.removeClass("tour-step-backdrop"),this.backdrop.$background.remove(),this.backdrop.$element=null,this.backdrop.$background=null,this.backdrop.overlayElementShown=!1},r.prototype._applyBackdropPadding=function(n,t){return typeof n=="object"?(n.top==null&&(n.top=0),n.right==null&&(n.right=0),n.bottom==null&&(n.bottom=0),n.left==null&&(n.left=0),t.offset.top=t.offset.top-n.top,t.offset.left=t.offset.left-n.left,t.width=t.width+n.left+n.right,t.height=t.height+n.top+n.bottom):(t.offset.top=t.offset.top-n,t.offset.left=t.offset.left-n,t.width=t.width+n*2,t.height=t.height+n*2),t},r.prototype._clearTimer=function(){return t.clearTimeout(this._timer),this._timer=null,this._duration=null},r}(),t.Tour=r}(jQuery,window),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(){(function(n){"use strict";function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function r(n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r="(?:"+Object.keys(i).join("|")+")",u=new RegExp(r),f=new RegExp(r,"g"),t=n==null?"":""+n;return u.test(t)?t.replace(f,function(n){return i[n]}):t}function u(i,r){var e=arguments,u=i,s=r,f,o;return[].shift.apply(e),o=this.each(function(){var o=n(this),i,r,c,h;if(o.is("select")){if(i=o.data("selectpicker"),r=typeof u=="object"&&u,i){if(r)for(h in r)r.hasOwnProperty(h)&&(i.options[h]=r[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),r),o.data("selectpicker",i=new t(this,c,s));typeof u=="string"&&(f=i[u]instanceof Function?i[u].apply(i,e):i.options[u])}}),typeof f!="undefined"?f:o}var t,f;String.prototype.includes||function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(this==null)throw TypeError();if(u=String(this),n&&i.call(n)=="[object RegExp]")throw TypeError();var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:undefined,t=o?Number(o):0;return(t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f)?!1:r.call(u,e,t)!=-1};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(this==null)throw TypeError();if(u=String(this),n&&i.call(n)=="[object RegExp]")throw TypeError();var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:undefined,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});n.expr[":"].icontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].ibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr[":"].aicontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].aibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;this.options.title===null&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.remove;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.7.2";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return n==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[n==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",t==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1};t.prototype={constructor:t,init:function(){var t=this,i="bsselect-"+this.$element.attr("id");this.$element.addClass("bs-select-hidden");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");typeof i!="undefined"&&(this.$button.attr("id",i),n('label[for="'+i+'"]').click(function(n){n.preventDefault();t.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on("hide.bs.dropdown",function(n){t.$element.trigger("hide.bs.select",n)});this.$newElement.on("hidden.bs.dropdown",function(n){t.$element.trigger("hidden.bs.select",n)});this.$newElement.on("show.bs.dropdown",function(n){t.$element.trigger("show.bs.select",n)});this.$newElement.on("shown.bs.dropdown",function(n){t.$element.trigger("shown.bs.select",n)});setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+"><\/div>":"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+u+'><span class="filter-option pull-left"><\/span>&nbsp;<span class="caret"><\/span><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner" role="menu"><\/ul>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul")[0].innerHTML=t,n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menuInner[0].innerHTML=n},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var u=this,t=[],o=0,s=document.createElement("option"),f=-1,e=function(n,t,i,r,u){return"<li"+(typeof i!="undefined"&""!==i?' class="'+i+'"':"")+(typeof t!="undefined"&null!==t?' data-original-index="'+t+'"':"")+(typeof r!="undefined"&null!==r?'data-optgroup="'+r+'"':"")+(typeof u!="undefined"&null!==u?'id="'+u+'"':"")+">"+n+"<\/li>"},c=function(n,t,f,e){return'<a tabindex="0"'+(typeof t!="undefined"?' class="'+t+'"':"")+(typeof f!="undefined"?' style="'+f+'"':"")+(u.options.liveSearchNormalize?' data-normalized-text="'+i(r(n))+'"':"")+(typeof e!="undefined"||e!==null?' data-tokens="'+e+'"':"")+">"+n+'<span class="'+u.options.iconBase+" "+u.options.tickIcon+' check-mark"><\/span><\/a>'},h;return this.options.title&&!this.multiple&&(f--,this.$element.find(".bs-title-option").length||(h=this.$element[0],s.className="bs-title-option",s.appendChild(document.createTextNode(this.options.title)),s.value="",h.insertBefore(s,h.firstChild),h.options[h.selectedIndex].getAttribute("selected")===null&&(s.selected=!0))),this.$element.find("option").each(function(i){var r=n(this),s="bsoption-"+r.attr("id");if(f++,!r.hasClass("bs-title-option")){var a=this.className||"",v=this.style.cssText,h=r.data("content")?r.data("content"):r.html(),y=r.data("tokens")?r.data("tokens"):null,k=typeof r.data("subtext")!="undefined"?'<small class="text-muted">'+r.data("subtext")+"<\/small>":"",l=typeof r.data("icon")!="undefined"?'<span class="'+u.options.iconBase+" "+r.data("icon")+'"><\/span> ':"",w=this.disabled||this.parentElement.tagName==="OPTGROUP"&&this.parentElement.disabled;if(l!==""&&w&&(l="<span>"+l+"<\/span>"),u.options.hideDisabled&&w){f--;return}if(r.data("content")||(h=l+'<span class="text">'+h+k+"<\/span>"),this.parentElement.tagName==="OPTGROUP"&&r.data("divider")!==!0){if(r.index()===0){o+=1;var p=this.parentElement.label,d=typeof r.parent().data("subtext")!="undefined"?'<small class="text-muted">'+r.parent().data("subtext")+"<\/small>":"",g=r.parent().data("icon")?'<span class="'+u.options.iconBase+" "+r.parent().data("icon")+'"><\/span> ':"",b=" "+this.parentElement.className||"";p=g+'<span class="text">'+p+d+"<\/span>";i!==0&&t.length>0&&(f++,t.push(e("",null,"divider",o+"div",s)));f++;t.push(e(p,null,"dropdown-header"+b,o,s))}t.push(e(c(h,"opt "+a+b,v,y),i,"",o,s))}else r.data("divider")===!0?t.push(e("",i,"divider",null,s)):r.data("hidden")===!0?t.push(e(c(h,a,v,y),i,"hidden is-hidden",null,s)):(this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP"&&(f++,t.push(e("",null,"divider",o+"div",s))),t.push(e(c(h,a,v,y),i,"",null,s)));u.liObj[i]=f}}),this.multiple||this.$element.find("option:selected").length!==0||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),t.join("")},findLis:function(){return this.$lis==null&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var i=this,o,r,u,f,e,s;t!==!1&&this.$element.find("option").each(function(n){var t=i.findLis().eq(i.liObj[n]);i.setDisabled(n,this.disabled||this.parentElement.tagName==="OPTGROUP"&&this.parentElement.disabled,t);i.setSelected(n,this.selected,t)});this.tabIndex();r=this.$element.find("option").map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||this.parentElement.tagName==="OPTGROUP"&&this.parentElement.disabled))return!1;var t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"",r;return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"",typeof t.attr("title")!="undefined"?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):u+t.html()+r}}).toArray();u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||f.length==1&&r.length>=2)&&(o=this.options.hideDisabled?", [disabled]":"",e=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+o).length,s=typeof this.options.countSelectedText=="function"?this.options.countSelectedText(r.length,e):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",e.toString())));this.options.title==undefined&&(this.options.title=this.$element.attr("title"));this.options.selectedTextFormat=="static"&&(u=this.options.title);u||(u=typeof this.options.title!="undefined"?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(u.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(u);this.$element.trigger("rendered.bs.select")},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=n?n:this.options.style;t=="add"?this.$button.addClass(i):t=="remove"?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){var y;if(t||this.options.size!==!1&&!this.sizeInfo){var e=document.createElement("div"),r=document.createElement("div"),o=document.createElement("ul"),l=document.createElement("li"),p=document.createElement("li"),a=document.createElement("a"),v=document.createElement("span"),s=this.options.header?this.$menu.find(".popover-title")[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,h=this.options.actionsBox&&this.multiple?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,c=this.options.doneButton&&this.multiple?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;v.className="text";e.className=this.$menu[0].parentNode.className+" open";r.className="dropdown-menu open";o.className="dropdown-menu inner";l.className="divider";v.appendChild(document.createTextNode("Inner text"));a.appendChild(v);p.appendChild(a);o.appendChild(p);o.appendChild(l);s&&r.appendChild(s);u&&(y=document.createElement("span"),u.className="bs-searchbox",y.className="form-control",u.appendChild(y),r.appendChild(u));h&&r.appendChild(h);r.appendChild(o);c&&r.appendChild(c);e.appendChild(r);document.body.appendChild(e);var b=a.offsetHeight,k=s?s.offsetHeight:0,d=u?u.offsetHeight:0,g=h?h.offsetHeight:0,nt=c?c.offsetHeight:0,tt=n(l).outerHeight(!0),i=getComputedStyle?getComputedStyle(r):!1,f=i?n(r):null,w=parseInt(i?i.paddingTop:f.css("paddingTop"))+parseInt(i?i.paddingBottom:f.css("paddingBottom"))+parseInt(i?i.borderTopWidth:f.css("borderTopWidth"))+parseInt(i?i.borderBottomWidth:f.css("borderBottomWidth")),it=w+parseInt(i?i.marginTop:f.css("marginTop"))+parseInt(i?i.marginBottom:f.css("marginBottom"))+2;document.body.removeChild(e);this.sizeInfo={liHeight:b,headerHeight:k,searchHeight:d,actionsHeight:g,doneButtonHeight:nt,dividerHeight:tt,menuPadding:w,menuExtras:it}}},setSize:function(){var h,d,g;this.findLis();this.liHeight();var i=this,t=this.$menu,p=this.$menuInner,c=n(window),nt=this.$newElement[0].offsetHeight,w=this.sizeInfo.liHeight,l=this.sizeInfo.headerHeight,a=this.sizeInfo.searchHeight,v=this.sizeInfo.actionsHeight,y=this.sizeInfo.doneButtonHeight,tt=this.sizeInfo.dividerHeight,o=this.sizeInfo.menuPadding,f=this.sizeInfo.menuExtras,b=this.options.hideDisabled?".disabled":"",r,u,e,s,k=function(){e=i.$newElement.offset().top-c.scrollTop();s=c.height()-e-nt};if(k(),this.options.header&&t.css("padding-top",0),this.options.size==="auto"){h=function(){var h,b=function(t,i){return function(r){return i?r.classList?r.classList.contains(t):n(r).hasClass(t):!(r.classList?r.classList.contains(t):n(r).hasClass(t))}},d=i.$menuInner[0].getElementsByTagName("li"),c=Array.prototype.filter?Array.prototype.filter.call(d,b("hidden",!1)):i.$lis.not(".hidden"),g=Array.prototype.filter?Array.prototype.filter.call(c,b("dropdown-header",!0)):c.filter(".dropdown-header");k();r=s-f;i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height();i.options.dropupAuto&&i.$newElement.toggleClass("dropup",e>s&&r-f<u);i.$newElement.hasClass("dropup")&&(r=e-f);h=c.length+g.length>3?w*3+f-2:0;t.css({"max-height":r+"px",overflow:"hidden","min-height":h+l+a+v+y+"px"});p.css({"max-height":r-l-a-v-y-o+"px","overflow-y":"auto","min-height":Math.max(h-o,0)+"px"})};h();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",h);c.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",h)}else this.options.size&&this.options.size!="auto"&&this.$lis.not(b).length>this.options.size&&(d=this.$lis.not(".divider").not(b).children().slice(0,this.options.size).last().parent().index(),g=this.$lis.slice(0,d+1).filter(".divider").length,r=w*this.options.size+g*tt+o,i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height(),i.options.dropupAuto&&this.$newElement.toggleClass("dropup",e>s&&r-f<u),t.css({"max-height":r+l+a+v+y+"px",overflow:"hidden","min-height":""}),p.css({"max-height":r-o+"px","overflow-y":"auto","min-height":""}))},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var n=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):n,i=n.children(".dropdown-menu").outerWidth(),r=t.css("width","auto").children("button").outerWidth();n.remove();t.remove();this.$newElement.css("width",Math.max(i,r)+"px")}else this.options.width==="fit"?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var t=this,i=n("<div />"),r,u,f=function(n){i.addClass(n.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",n.hasClass("dropup"));r=n.offset();u=n.hasClass("dropup")?0:n[0].offsetHeight;i.css({top:r.top+u,left:r.left,width:n[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){t.isDisabled()||(f(n(this)),i.appendTo(t.options.container),i.toggleClass("open",!n(this).hasClass("open")),i.append(t.$menu))});n(window).on("resize scroll",function(){f(t.$newElement)});this.$element.on("hide.bs.select",function(){t.$menu.data("height",t.$menu.height());i.detach()})},setSelected:function(n,t,i){if(!i)var i=this.findLis().eq(this.liObj[n]);i.toggleClass("selected",t)},setDisabled:function(n,t,i){if(!i)var i=this.findLis().eq(this.liObj[n]);t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var t=this,i=n(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});i.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&i.data("spaceSelect")&&(n.preventDefault(),i.data("spaceSelect",!1))});this.$newElement.on("click",function(){t.setSize();t.$element.on("shown.bs.select",function(){var i,n;if(t.options.liveSearch||t.multiple){if(!t.multiple){if(i=t.liObj[t.$element[0].selectedIndex],typeof i!="number")return;n=t.$lis.eq(i)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2;t.$menuInner[0].scrollTop=n}}else t.$menu.find(".selected a").focus()})});this.$menu.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),v,y,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),l=f.prop("selected"),a=f.parent("optgroup"),r=t.options.maxOptions,u=a.data("maxOptions")||!1;if(t.multiple){if(f.prop("selected",!l),t.setSelected(e,!l),s.blur(),(r!==!1||u!==!1)&&(v=r<h.filter(":selected").length,y=u<a.find("option:selected").length,r&&v||u&&y))if(r&&r==1)h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&u==1)a.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.parent().data("optgroup"),t.$menu.find('[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o=typeof t.options.maxOptionsText=="function"?t.options.maxOptionsText(r,u):t.options.maxOptionsText,p=o[0].replace("{n}",r),w=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(p=p.replace("{var}",o[2][r>1?0:1]),w=w.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&y&&(c.append(n("<div>"+w+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&(t.$element.change(),t.$element.trigger("changed.bs.select",[e,f.prop("selected"),l]))}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!n(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())});this.$menu.on("click","li.divider, li.dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.click()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll();t.$element.change()});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,u=n('<li class="no-results"><\/li>');this.$newElement.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){t.$menuInner.find(".active").removeClass("active");!t.$searchbox.val()||(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.multiple||t.$menuInner.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var f,e;t.$searchbox.val()?(f=t.$lis.not(".is-hidden").removeClass("hidden").children("a"),f=t.options.liveSearchNormalize?f.not(":a"+t._searchStyle()+"("+i(t.$searchbox.val())+")"):f.not(":"+t._searchStyle()+"("+t.$searchbox.val()+")"),f.parent().addClass("hidden"),t.$lis.filter(".dropdown-header").each(function(){var i=n(this),r=i.data("optgroup");t.$lis.filter("[data-optgroup="+r+"]").not(i).not(".hidden").length===0&&(i.addClass("hidden"),t.$lis.filter("[data-optgroup="+r+"div]").addClass("hidden"))}),e=t.$lis.not(".hidden"),e.each(function(t){var i=n(this);i.hasClass("divider")&&(i.index()===e.eq(0).index()||i.index()===e.last().index()||e.eq(t+1).hasClass("divider"))&&i.addClass("hidden")}),t.$lis.not(".hidden, .no-results").length?!u.parent().length||u.remove():(!u.parent().length||u.remove(),u.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')).show(),t.$menuInner.append(u))):(t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.$lis.filter(".active").removeClass("active");t.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus();n(this).focus()})},_searchStyle:function(){var n="icontains";switch(this.options.liveSearchStyle){case"begins":case"startsWith":n="ibegins"}return n},val:function(n){return typeof n!="undefined"?(this.$element.val(n),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis();this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!0);this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").addClass("selected");this.render(!1)},deselectAll:function(){this.findLis();this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!1);this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").removeClass("selected");this.render(!1)},keydown:function(t){var e=n(this),c=e.is("input")?e.parent().parent():e.parent(),u,r=c.data("this"),f,h,l,a,p,w,k,s,v=":not(.disabled, .hidden, .dropdown-header, .divider)",b={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},y,o,g,d;(r.options.liveSearch&&(c=e.parent().parent()),r.options.container&&(c=r.$menu),u=n("[role=menu] li a",c),s=r.$menu.parent().hasClass("open"),!s&&(t.keyCode>=48&&t.keyCode<=57||event.keyCode>=65&&event.keyCode<=90)&&(r.options.container?r.$newElement.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&r.$menu.find(".active").length===0&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()),u=n("[role=menu] li:not(.disabled, .hidden, .dropdown-header, .divider)",c),e.val()||/(38|40)/.test(t.keyCode.toString(10))||u.filter(".active").length===0&&(u=r.$newElement.find("li"),u=r.options.liveSearchNormalize?u.filter(":a"+r._searchStyle()+"("+i(b[t.keyCode])+")"):u.filter(":"+r._searchStyle()+"("+b[t.keyCode]+")"))),u.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(f=u.index(u.filter(":focus")),l=u.parent(v).first().data("originalIndex"),a=u.parent(v).last().data("originalIndex"),h=u.eq(f).parent().nextAll(v).eq(0).data("originalIndex"),p=u.eq(f).parent().prevAll(v).eq(0).data("originalIndex"),w=u.eq(h).parent().prevAll(v).eq(0).data("originalIndex"),r.options.liveSearch&&(u.each(function(t){n(this).hasClass("disabled")||n(this).data("index",t)}),f=u.index(u.filter(".active")),l=u.first().data("index"),a=u.last().data("index"),h=u.eq(f).nextAll().eq(0).data("index"),p=u.eq(f).prevAll().eq(0).data("index"),w=u.eq(h).prevAll().eq(0).data("index")),k=e.data("prevIndex"),t.keyCode==38?(r.options.liveSearch&&(f-=1),f!=w&&f>p&&(f=p),f<l&&(f=l),f==k&&(f=a)):t.keyCode==40&&(r.options.liveSearch&&(f+=1),f==-1&&(f=0),f!=w&&f<h&&(f=h),f>a&&(f=a),f==k&&(f=l)),e.data("prevIndex",f),r.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(u.removeClass("active").eq(f).addClass("active").children("a").focus(),e.focus())):u.eq(f).focus()):e.is("input")||(y=[],u.each(function(){n(this).parent().hasClass("disabled")||n.trim(n(this).text().toLowerCase()).substring(0,1)==b[t.keyCode]&&y.push(n(this).parent().index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),g=n.trim(n(":focus").text().toLowerCase()).substring(0,1),g!=b[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=y.length&&(n(document).data("keycount",0),o>y.length&&(o=1)),u.eq(y[o-1]).focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(r.$menu.find(".active a").click(),e.focus()):(d=n(":focus"),d.click(),d.focus(),t.preventDefault(),n(document).data("spaceSelect",!0)),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement);this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null;this.reloadLi();this.render();this.checkDisabled();this.liHeight(!0);this.setStyle();this.setWidth();this.$lis&&this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',t.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})})(jQuery)}),function(){ko.observable.fn.GetConfiguratorParams=function(n,t){var i="",r;try{if(Dell!=undefined&&Dell.SearchUx!=undefined&&Dell.SearchUx.InfrastructureProductCategory!=undefined&&Dell.SearchUx.InfrastructureProductCategory!=""&&Array.isArray(n)&&n.length>0)for(r in n)if(n[r].IdPath.toLowerCase().indexOf(Dell.SearchUx.InfrastructureProductCategory)>-1){i="&pt=i&pv="+t;break}}catch(u){console.log("Error while GetConfiguratorParams:- variant:"+t+" Error:"+u)}return i}}();typeof require!="undefined"&&($=require("jquery"),require("jquery.cookie"));String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});typeof module=="undefined"&&(module={exports:null});module.exports={getSelectedCategoriesFromResponse:getSelectedCategoriesFromResponse,getSelectedRefinementsFromResponse:getSelectedRefinementsFromResponse,getCookie:getCookie,updateCookie:updateCookie,displayAllSelectedRefiners:displayAllSelectedRefiners,sortRefinementsByEnabledState:sortRefinementsByEnabledState};window.utils=module.exports;CategoryRefinementsViewModel=function(){self.selectedCategories=ko.observableArray(resultsViewModel.selectedCategories());self.categories=ko.observableArray(resultsViewModel.categories());self.selectedCategoriesType=ko.observable(resultsViewModel.selectedCategoriesType);self.selectedRefinements=ko.observableArray(resultsViewModel.selectedRefinements());self.refinements=ko.observableArray(resultsViewModel.refinements());self.showRefinements=ko.observable(resultsViewModel.showRefinements());self.toggleMenu=function(n,t){resultsViewModel.toggleMenu(n,t)}};$(function(){var n=$(window).width();$(window).resize(function(){var t=$(window).width();n!==t&&($(".left-nav .glyphicon, .left-nav ul, .filter-results-button .glyphicon, .left-nav").removeAttr("style"),resultsViewModel.leftNavVisible(!0))})});!function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function p(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),w=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))};if(t.ajax=w,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&null!==n.matchMedia("only all")&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var c,b,l,i=n.document,r=i.documentElement,e=[],o=[],u=[],a={},k=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),v=function(){var u,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,f=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),f&&r.insertBefore(n,r.firstChild),u=t.offsetWidth,f?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),u=l=parseFloat(u)},y=function(t){var rt="clientWidth",ut=r[rt],ft="CSS1Compat"===i.compatMode&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&c&&k>et-c)return n.clearTimeout(b),b=n.setTimeout(y,k),void 0;c=et;for(tt in e)if(e.hasOwnProperty(tt)){var a=e[tt],w=a.minw,d=a.maxw,ot=null===w,st=null===d,ht="em";w&&(w=parseFloat(w)*(w.indexOf(ht)>-1?l||v():1));d&&(d=parseFloat(d)*(d.indexOf(ht)>-1?l||v():1));a.hasquery&&(ot&&st||!(ot||ft>=w)||!(st||d>=ft))||(p[a.media]||(p[a.media]=[]),p[a.media].push(o[a.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},d=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;c>f;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;w>s;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},g=function(){if(f.length){var t=f.shift();w(t.href,function(i){d(i,t.href,t.media);a[t.href]=!0;n.setTimeout(function(){g()},0)})}},nt=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&"stylesheet"===i.rel.toLowerCase();t&&e&&!a[t]&&(i.styleSheet&&i.styleSheet.rawCssText?(d(i.styleSheet.rawCssText,t,u),a[t]=!0):(!/^([a-zA-Z:]*\/\/)/.test(t)&&!it||t.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&("//"===t.substring(0,2)&&(t=n.location.protocol+t),f.push({href:t,media:u})))}g()};nt();t.update=nt;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",p,!1):n.attachEvent&&n.attachEvent("onresize",p)}}(this);$(document).ready(function(){var n="";$("#offCanvasId-0").click(function(){n=$("#offCanvasId-0").attr("data-iframeUrlValue");$("#offCanvasWrapper").show();$("iframe.iframe-off-canvas").prop("id","offCanvas-0");$("iframe.iframe-off-canvas").prop("src",n);$(".body-overlay-off-canvas").toggle();$("#offCanvasWrapper").toggleClass("offCanvasTransition")});$("#offCanvasId-1").click(function(){n=$("#offCanvasId-1").attr("data-iframeUrlValue");$("#offCanvasWrapper").show();$("iframe.iframe-off-canvas").prop("id","offCanvas-1");$("iframe.iframe-off-canvas").prop("src",n);$(".body-overlay-off-canvas").toggle();$("#offCanvasWrapper").toggleClass("offCanvasTransitionSmall")});$(".body-overlay-off-canvas").click(function(){$("iframe.iframe-off-canvas").prop("src","about:blank");$(".body-overlay-off-canvas").toggle();$("#offCanvasWrapper").hasClass("offCanvasTransition")?$("#offCanvasWrapper").toggleClass("offCanvasTransition"):$("#offCanvasWrapper").toggleClass("offCanvasTransitionSmall")});$(".offcanvas-back-button").click(function(){$(".body-overlay-off-canvas").toggle();$("#offCanvasWrapper").hasClass("offCanvasTransition")?$("#offCanvasWrapper").toggleClass("offCanvasTransition"):$("#offCanvasWrapper").toggleClass("offCanvasTransitionSmall");$("iframe.iframe-off-canvas").prop("src","about:blank")})});count=0;$(document).ready(function(){if($("#mobile-responsive-container-scroller").length){var n=$("#mobile-responsive-container-scroller").position().top;$(window).scroll(function(){$(window).scrollTop()>n?$("#mobile-responsive-container-scroller").addClass("responsive-nav-dropdown"):$("#mobile-responsive-container-scroller").removeClass("responsive-nav-dropdown")})}else $(window).scroll(function(){$(".filter-results-button").length&&(count++,count===1&&(topScrollValueForLeftNav=$(".filter-results-button").position().top),$(window).scrollTop()>topScrollValueForLeftNav?isMobileFiltersOverlay?$(".filter-results-button").addClass("responsive-nav-dropdown"):($(".filter-results-button").addClass("responsive-nav-dropdown"),$("#resultsLeftNav").addClass("responsive-nav-dropdown")):isMobileFiltersOverlay?$(".filter-results-button").removeClass("responsive-nav-dropdown"):($(".filter-results-button").removeClass("responsive-nav-dropdown"),$("#resultsLeftNav").removeClass("responsive-nav-dropdown")))})}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var v,c;if(arguments.length>1&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(v=s.expires,c=s.expires=new Date,c.setMilliseconds(c.getMilliseconds()+v*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(var l=u?undefined:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=f(p.shift()),h=p.join("=");if(u===w){l=r(h,o);break}u||(h=r(h))===undefined||(l[w]=h)}return l};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t)}});jQuery.fn.enter=function(n){n&&$(this).keydown(function(t){var i=t||event;if(i.keyCode==13)return n(),!1})};!function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};t.m=n;t.c=i;t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})};t.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})};t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i};t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};t.p="";t(t.s=36)}([function(n){"use strict";n.exports=new Function("return this;")()},function(n,t){"use strict";t.a={deployment:{client:"dellglobal",site:"main_site",environment:"production",locale:"en_US"},dataEnvironment:"prod",serverEnvironment:"prod",vpc:"prod",piiDataRegion:"unitedStates",displayCode:"17580",domains:[{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".dell.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".bazaarvoice.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".akamai-access.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"translate.googleusercontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"webcache.googleusercontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"translate.baiducontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".bazaarvoice.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"localhost"}],scoutVersion:"10.2.1",splitTestingEnabled:!1,isConversations:!0,isPreview:!1,legacyScoutUrl:"https://display.ugc.bazaarvoice.com/static/dellglobal/main_site/en_US/bvapi.js",paths:{root:"https://apps.bazaarvoice.com",splitTests:"https://apps.bazaarvoice.com/splitTests.json",components:"https://apps.bazaarvoice.com/components/components-3.0.0.js",render:"https://apps.bazaarvoice.com/render/render-3.0.0.min.js",layoutRoot:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/layouts"},webAnalyticsIntegrationConfigs:[],apps:[{name:"inline_ratings",version:"2.1.5",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/inline_ratings/inline_ratings-2.1.5.js",legacyPath:null,publicName:"inline_rating",configUrl:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/inline_ratings-config.js"},{name:"product_picker",version:"0.2.0",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/product_picker/product_picker-0.2.0.js",legacyPath:null,publicName:"product_picker",configUrl:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/product_picker-config.js"},{name:"questions",version:"0.2.2",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/questions/questions-0.2.2.js",legacyPath:null,publicName:"questions",configUrl:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/questions-config.js"},{name:"rating_summary",version:"2.13.0",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/rating_summary/rating_summary-2.13.0.js",legacyPath:null,publicName:"rating_summary",configUrl:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/rating_summary-config.js"},{name:"reviews",version:"0.2.2",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/reviews/reviews-0.2.2.js",legacyPath:null,publicName:"reviews",configUrl:"https://apps.bazaarvoice.com/deployments/dellglobal/main_site/production/en_US/reviews-config.js"}]}},function(n,t,i){"use strict";var f=i(15),e=i.n(f),o=i(0),r=i.n(o),s=i(1),h=console.warn.bind(console),c=["API_BASE_URL","Date","_bvapijs","_internal","_options","_staticAssetRegistry","configure","define","easyXDM","extensions","global","initialData","name","options","performance","pixel","registerProperty","requestAnimationFrame","require","requirejs","serverRender","staticAssetLoader","ud","ui"].concat(s.a.apps.map(function(n){return n.name})),u;"Proxy"in r.a&&(u=r.a.Proxy,r.a.BV=new u(r.a.BV||{},{set:function(n,t,i){return~c.indexOf(t)||h("Unexpected property '"+t+"' assigned to window.BV. Valid assignment to the BV variable requires approval from the BV Loader Team."),n[t]=i,!0}}));t.a=e.a.namespace("BV")},function(n,t,i){"use strict";n.exports.getEntries=i(14).getEntries;n.exports.getEntriesByName=i(35).getEntriesByName;n.exports.getEntriesByType=i(24).getEntriesByType;n.exports.now=i(12).now;n.exports.mark=i(33).mark;n.exports.measure=i(32).measure},function(n,t,i){"use strict";i.d(t,"d",function(){return e});i.d(t,"a",function(){return o});i.d(t,"b",function(){return s});i.d(t,"c",function(){return h});var u=i(5),r=i.n(u),f=/[,\s]\s*/,e=function(){if(!r.a)return[];var n=r.a.getAttribute("data-bv-preload");return n?n.split(f):[]}(),o=r.a&&r.a.getAttribute("data-bv-callback")||"bvCallback",s=r.a&&r.a.getAttribute("data-bv-display-code"),h=r.a&&r.a.getAttribute("data-bv-hostname")},function(n,t,i){var r=i(0),u=r.document&&(r.document.currentScript||r.document.querySelector('script[src*="bv.js"]'));n.exports=u},function(n,t,i){"use strict";var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e=i(0);if(void 0!==e.Promise&&e.Promise.toString().match(/\[native code]/))n.exports=e.Promise;else{var l=function(){},r=function(n){if("object"!==f(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0;this._handled=!1;this._value=void 0;this._deferreds=[];c(n,this)},h=function(n,t){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,r._immediateFn(function(){var i=1===n._state?t.onFulfilled:t.onRejected,r;if(null!==i){try{r=i(n._value)}catch(n){return void u(t.promise,n)}o(t.promise,r)}else(1===n._state?o:u)(t.promise,n._value)})):n._deferreds.push(t)},o=function(n,t){var i,e,o;try{if(t===n)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":f(t))||"function"==typeof t)){if(i=t.then,t instanceof r)return n._state=3,n._value=t,void s(n);if("function"==typeof i)return void c((e=i,o=t,function(){e.apply(o,arguments)}),n)}n._state=1;n._value=t;s(n)}catch(t){u(n,t)}},u=function(n,t){n._state=2;n._value=t;s(n)},s=function(n){2===n._state&&0===n._deferreds.length&&r._immediateFn(function(){n._handled||r._unhandledRejectionFn(n._value)});for(var t=0,i=n._deferreds.length;t<i;t++)h(n,n._deferreds[t]);n._deferreds=null},c=function(n,t){var i=!1;try{n(function(n){i||(i=!0,o(t,n))},function(n){i||(i=!0,u(t,n))})}catch(n){if(i)return;i=!0;u(t,n)}},a=setTimeout;r.prototype.catch=function(n){return this.then(null,n)};r.prototype.then=function(n,t){var i=new this.constructor(l);return h(this,new function(n,t,i){this.onFulfilled="function"==typeof n?n:null;this.onRejected="function"==typeof t?t:null;this.promise=i}(n,t,i)),i};r.all=function(n){var t=Array.prototype.slice.call(n);return new r(function(n,i){function e(r,o){try{if(o&&("object"===(void 0===o?"undefined":f(o))||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(n){e(r,n)},i)}t[r]=o;0==--u&&n(t)}catch(n){i(n)}}var u,r;if(0===t.length)return n([]);for(u=t.length,r=0;r<t.length;r++)e(r,t[r])})};r.resolve=function(n){return n&&"object"===(void 0===n?"undefined":f(n))&&n.constructor===r?n:new r(function(t){t(n)})};r.reject=function(n){return new r(function(t,i){i(n)})};r.race=function(n){return new r(function(t,i){for(var r=0,u=n.length;r<u;r++)n[r].then(t,i)})};r._immediateFn="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){a(n,0)};r._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};n.exports=r}},function(n,t,i){"use strict";function o(){return f.getElementsByTagName("script")[0]}function s(n){return!n||"loaded"===n||"complete"===n||"uninitialized"===n}function h(n,t,i){if(!n||"string"!=typeof n)throw new Error("`url` must be a string");if(t.namespaceName&&"string"!=typeof t.namespaceName)throw new Error("`options.namespaceName` must be a string");if(t.forceLoad&&"boolean"!=typeof t.forceLoad)throw new Error("`options.forceLoad` must be a boolean");if("number"!=typeof t.timeout)throw new Error("`options.timeout` must be a number");if(i&&"function"!=typeof i)throw new Error("`callback` must be a function");}var e=i(0),u=i(15),f=e.document,r={};n.exports={_clearLoadedUrls:function(n){n?u.namespace(n).loadedUrls={}:r={}},loadScript:function(n,t,i){function y(u){l=!0;clearTimeout(p);e.onload=e.onreadystatechange=e.onerror=null;e.parentNode&&e.parentNode.removeChild(e);u||(c[n]=!0,t.namespaceName?a.loadedUrls=c:r=c);"function"==typeof i&&i(u)}var a,c=r,v,e,l,p;if("function"==typeof t&&(i=t,t=null),(t=t||{}).timeout=t.timeout||1e4,h(n,t,i),t.namespaceName&&(a=u.namespace(t.namespaceName),c=a.loadedUrls||{}),t.forceLoad||!c[n]){if(e=f.createElement("script"),l=!1,t.attributes)for(v in t.attributes)e.setAttribute(v,t.attributes[v]);e.onreadystatechange=e.onload=function(){!l&&s(e.readyState)&&y()};e.onerror=function(){l||y(new Error("Error: could not load "+n))};p=setTimeout(function(){l||y(new Error("Error: script timeout "+n))},t.timeout);setTimeout(function(){e.src=n;var t=o();t.parentNode.insertBefore(e,t)},0)}else"function"==typeof i&&i()},loadStyleSheet:function(n,t,i){function p(u){a=!0;clearTimeout(w);c.onload=c.onreadystatechange=c.onerror=null;u||(l[n]=!0,t.namespaceName?v.loadedUrls=l:r=l);"function"==typeof i&&i(u)}var v,l=r,y,c,a,w;if("function"==typeof t&&(i=t,t=null),(t=t||{}).timeout=t.timeout||1e4,h(n,t,i),"injectionNode"in t&&!(t.injectionNode instanceof e.Element))throw new Error("`options.injectionNode` must be a DOM node");if(t.namespaceName&&(v=u.namespace(t.namespaceName),l=v.loadedUrls||{}),t.forceLoad||!l[n]){if(c=f.createElement("link"),a=!1,t.attributes)for(y in t.attributes)c.setAttribute(y,t.attributes[y]);c.onreadystatechange=c.onload=function(){!a&&s(c.readyState)&&p()};c.onerror=function(){a||p(new Error("Error: could not load "+n))};w=setTimeout(c.onerror,t.timeout);setTimeout(function(){c.media="only x";c.rel="stylesheet";c.type="text/css";c.href=n;setTimeout(function(){c.media="all"},0);var i=t.injectionNode||o().parentNode;try{i.appendChild(c)}catch(n){p(new Error("Error: could not append LINK element"))}},0)}else"function"==typeof i&&i()}}},function(n,t,i){"use strict";var r=i(0);n.exports={create:function(n,t,i,u,f){var e=new Date,o,s;e.setTime(e.getTime()+864e5*i);o=i?";expires="+e.toGMTString():"";s=encodeURIComponent(n)+"="+encodeURIComponent(t)+o+";path=/"+(u?";domain="+u:"")+(f?";secure":"");r.document.cookie=s},read:function(n){for(var u=encodeURIComponent(n)+"=",f=r.document.cookie.split(";"),t,i=0;i<f.length;i++){for(t=f[i];" "===t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(u))return decodeURIComponent(t.substring(u.length,t.length))}return null},remove:function(n){this.create(n,"",-1)}}},function(n,t,i){"use strict";function u(n,t){if("."===n.charAt(0)&&t){var i=("."+t).lastIndexOf(n);return i>=0&&i===1+t.length-n.length}return t===n||t==="www."+n}var r=i(31);n.exports=function(n,t){var i={},o={isValid:!1,get:function(n){return i[n]}},f=function(n,t){for(var f=r(n).host,i=0;i<t.length;i++)if(u(t[i].domain,f))return t[i]}(n,t),e;if(f){for(e in o.isValid=!0,f)f.hasOwnProperty(e)&&(i[e]=f[e]);i.domain.match(/^(\.\d+){4}$/)&&(i.domain=i.domain.substr(1))}return o}},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});i.d(t,"c",function(){return f});var r="color:black; font-size:1.1em; font-weight:bold;",u="color: #0b6392; font-size:1.1em; text-decoration:none; font-weight:normal;",f="font-size:1.0em; font-weight:lighter;"},function(n){"use strict";var t,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"===("undefined"==typeof window?"undefined":i(window))&&(t=window)}n.exports=t},function(n,t,i){"use strict";function h(){return f.call(r)}function c(){return u.now()-e}var o=i(0),u=i(34),r=o.performance,f=r&&r.now,s="function"==typeof f,e=u.now();r&&r.timing&&"number"==typeof r.timing.navigationStart&&(e=r.timing.navigationStart);n.exports={now:function(){return(s?h:c)()}}},function(n){"use strict";n.exports={timeline:[]}},function(n,t,i){"use strict";function s(){return u.call(r)}function h(){return e}var f=i(0),e=i(13).timeline,r=f.performance,u=r&&r.getEntries,o="function"==typeof u;n.exports={getEntries:function(){return(o?s:h)()}}},function(n,t,i){"use strict";function u(n){this.name=n}var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r=i(0);u.prototype.registerProperty=function(n,t){if(this.hasOwnProperty(n))throw new Error("Cannot register "+n+" because a property with that name already exists on window."+this.name);return this[n]=t,this};n.exports={namespace:function(n){if(void 0===r[n])Object.defineProperty(r,n,{value:new u(n)});else{if("object"!==f(r[n]))throw new Error("Namespace "+n+" cannot be created. A non-object variable is already assigned to window."+n);if(!(r[n]instanceof u))for(var t in u.call(r[n],n),u.prototype)r[n][t]=u.prototype[t]}return r[n]}}},function(n,t,i){"use strict";(function(t){function r(n,t,i){function u(){var r=n.shift();i?t(r):setTimeout(function(){t(r)},0)}if("function"!=typeof t)throw new Error("A function must be provided to process the queue");for(var r=n.length;n.length>0;)u();return r}function i(n){return this.config=n,this._readyQueue=[],this._renderQueue=[],this._configQueue=[],this._promise=new t(function(n,t){this._resolve=n;this._reject=t}.bind(this)),this}i.prototype.ready=function(n){return"function"==typeof n&&this._readyQueue.push(n),this._promise};i.prototype.render=function(n){return this._renderQueue.push(n)};i.prototype.configure=function(n){return this._configQueue.push(n)};i.prototype.processReady=function(n){var t=function(n,t){"function"==typeof t&&t(n,this)}.bind(this,n);r.call(this,this._readyQueue,t,!0);this._readyQueue.push=t;this.ready=function(n){return t(n),this._promise};n?this._reject(n):this._resolve(this)};i.prototype.processQueue=function(n){r.call(this,this._renderQueue,n);this.render=this._renderQueue.push=n};i.prototype.processConfig=function(n){r.call(this,this._configQueue,n,!0);this.configure=this._configQueue.push=n};n.exports=i}).call(this,i(6))},function(n,t,i){"use strict";i.d(t,"c",function(){return y});i.d(t,"b",function(){return p});i.d(t,"a",function(){return w});var h=i(0),u=i.n(h),c=i(1),l=i(2),s=i(23),a=i(3),f=i.n(a),v=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},e=function(n){return n.map(function(n){return v({},n,{value:String(n.value)})})},o=function(n){return Object.keys(n).map(function(t){return{name:t,value:n[t]}}).filter(function(n){return void 0!==n.value})},r=function(n){return n&&n!==Math.floor(n)?Number(n.toFixed(2)):n},y=function(){var s=u.a.devicePixelRatio,h=u.a.innerHeight,c=u.a.innerWidth,t=u.a.navigator,n={devicePixelRatio:s,screenHeight:h,screenWidth:c},i;return t.connection&&(n.effectiveType=t.connection.effectiveType,n.downlink=t.connection.downlink),i=f.a.getEntriesByType("navigation").shift(),i&&["connectEnd","connectStart","domainLookupStart","domainLookupEnd","domComplete","domInteractive","domContentLoadedEventStart","fetchStart","loadEventEnd","requestStart","responseStart","responseEnd","secureConnectionStart"].forEach(function(t){n[t]=r(i[t])}),e(o(n))},p=function(){var n={},t=f.a.getEntriesByType("resource").filter(function(n){return!!n.name.match(s.a.bvLoaderRegex)}).shift(),i,u,h;return t&&["connectEnd","connectStart","domainLookupStart","domainLookupEnd","domComplete","domInteractive","domContentLoadedEventStart","fetchStart","loadEventEnd","requestStart","responseStart","responseEnd","secureConnectionStart"].forEach(function(i){n[i]=r(t[i])}),h=(i="requestedApp",u=c.a.apps.map(function(n){return n.name}),u.map(function(n){return{name:i,value:n}})).concat(o(n)),e(h)},w=function(n){var i={},t=l.a[n].perfMark,u=f.a.getEntriesByType("resource").filter(function(n){return!!n.name.match(s.a.appNameRegex)}).shift();return t.load.measures.length&&(i.loadTime=r(t.load.measures.shift().duration)),t.configure.measures.length&&(i.configurationTime=r(t.configuration.measures.shift().duration)),t.render.measures.length&&(i.avgRender=r(t.render.measures.reduce(function(n,t){return n+t.duration},0)/t.render.measures.length),i.render=t.render.measures.map(function(n){return r(n.duration)})),u&&(i.fetchStart=r(u.fetchStart),i.transferSize=u.transferSize),e(o(i))}},function(n,t,i){"use strict";var r=i(22),u=i(1),f=r.a.createTracker({commonData:{bvProduct:"bv-loader",bvProductVersion:u.a.scoutVersion},name:"bv-loader",source:"bv-loader"});t.a=f},function(n,t,i){"use strict";i.d(t,"b",function(){return u});i.d(t,"a",function(){return f});var r=i(8),u=function(){return r.create("bv_metrics",!0,72e5/864e5),!0},f=!!r.read("bv_metrics")||!Math.floor(1e3*Math.random())&&u()},function(n,t,i){"use strict";var r=i(19),u=i(18);t.a=function(n,t,i,f){if(r.a&&t.length){Object(r.b)();var e={type:"performance",name:"Display",scope:n,metrics:t};i&&(e.bvProduct=i);f&&(e.bvProductVersion=f);u.a.trackEvent("Diagnostic",e)}}},function(n,t,i){"use strict";i.d(t,"b",function(){return e});i.d(t,"c",function(){return o});i.d(t,"a",function(){return s});var u=i(0),f=i.n(u),r=function(n){var t=f.a.document.querySelector('meta[name="bv:'+n+'"]');return t&&t.getAttribute("content")||void 0},e=function(){return r("pageType")},o=function(){return r("userToken")},s=function(){return(n=r("disabled"))&&n.split(",").map(function(n){return n.trim()})||[];var n}},function(n,t,i){"use strict";var f=i(43),e=i(27),o=i.n(e),s=i(0),h=i.n(s),r=i(1),c=i(9),l=i.n(c),a=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=l()(h.a.location.host,r.a.domains);t.a={createTracker:function(n){var s=n.commonData,h=n.name,c=n.source,i=a({},s),e,t;return i.locale=r.a.deployment.locale,e={name:h,client:r.a.deployment.client,display:r.a.displayCode,environment:r.a.vpc,source:c,staging:"stg"===r.a.dataEnvironment||"qa"===r.a.vpc,anonymous:f.a.anonymous,brandDomain:u.get("firstPartyCookieEnabled")?u.get("domain"):"",commonData:i},t=new o.a(e),"europe"===r.a.piiDataRegion&&t.setEU(!0),r.a.webAnalyticsIntegrationConfigs&&r.a.webAnalyticsIntegrationConfigs.length&&r.a.webAnalyticsIntegrationConfigs.forEach(function(n){t.configureSCIProvider(n.name,n)}),t}}},function(n,t,i){"use strict";var r=i(1),u=new RegExp("/deployments/([^/]+)/(?:[^/]+/){3}bv\\.js"),f="dev"===r.a.serverEnvironment?"development":"production.min",e={appNameRegex:function(n){return new RegExp("/"+r.a.paths.root+"/apps/"+n+"/"+n+"-[^/]+.js")},bvLoaderRegex:u,parseClient:function(n){var t=u.exec(n);if(t)return t[1]},react:"https://apps.bazaarvoice.com/vendor/react@16.3.2/react."+f+".js",reactDOM:"https://apps.bazaarvoice.com/vendor/react-dom@16.3.2/react-dom."+f+".js"};t.a=e},function(n,t,i){"use strict";function s(n){return u.call(r,n)}function h(n){if(0===arguments.length)throw new TypeError("Failed to execute 'getEntriesByType' on 'Performance': 1 argument required, but only 0 present.");return e().filter(function(t){return t.entryType===n})}var f=i(0),e=i(14).getEntries,r=f.performance,u=r&&r.getEntriesByType,o="function"==typeof u;n.exports={getEntriesByType:function(n){var i=arguments.length>0,t=o?s:h;return i?t(n):t()}}},function(n,t,i){"use strict";(function(t){var r,f=i(30),u={},e=/function\s+([^\(\s]+)/;n.exports=function(n){return new t(function(t){f(function(){var i=n.name;i||(i=e.exec(n.toString())[1]);r||((r=document.createElement("iframe")).src="about:blank",r.style.display="none",document.body.appendChild(r));u[i]||(u[i]=r.contentWindow[i]);t(u[i])})})}}).call(this,i(6))},function(n){"use strict";function u(n,t){for(var r,u=this.events=this.events||{},f=n.split(/\s+/),e=f.length,i=0;i<e;i++)u[r=f[i]]=u[r]||[],u[r].push(t);return this}function f(n,t){return this.on(n,function i(){this.off(n,i);t.apply(this,r.call(arguments))}),this}function e(n,t){var u,i,f,e,o,r=this.events;if(r){for(i=0,e=(o=n.split(/\s+/)).length;i<e;i++)(u=o[i])in r!=!1&&-1!==(f=t?s(r[u],t):0)&&r[u].splice(f,1);return this}}function o(n){var u,t,i=this.events;if(i&&n in i!=!1){for(u=r.call(arguments,1),t=i[n].length-1;t>=0;t--)try{i[n][t].apply(this,u)}catch(n){}return this}}function s(n,t){var r,u;if(i&&n.indexOf===i)return n.indexOf(t);for(r=0,u=n.length;r<u;r++)if(n[r]===t)return r;return-1}var t=Array.prototype,i=t.indexOf,r=t.slice;n.exports=function(){return this.on=u,this.off=e,this.trigger=this.emit=o,this.one=this.once=f,this}},function(n,t){"use strict";var i,r,u,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};r=[];void 0===(u="function"==typeof(i=function(){function n(n){if(!(n=n||{}).name||"string"!=typeof n.name)throw new TypeError("config.name is required and must be string");this.name=n.name;this.commonData=n.commonData||{};this._verify();this.q.push(["create",n]);for(var t,r,u=["Staging","Audience","Anonymous"],i=0;i<u.length;i++)((r=n[(t=u[i]).toLowerCase()])||n.hasOwnProperty(t.toLowerCase()))&&this["set"+t](r);n.validationCallback&&this.enableValidation(n.validationCallback);!1===n.timing&&this.disableTiming();n.brandDomain&&this.setBrandDomain(n.brandDomain);n.eventClassFilter&&this.setEventClassFilter(n.eventClassFilter)}return function(){function t(){for(var i,n=s(arguments),t=1;t<n.length;t++)if(null!==n[t]&&"object"===f(n[t]))for(i in n[t])n[t].hasOwnProperty(i)&&(n[0][i]=n[t][i]);return n[0]}function s(n){return Array.prototype.slice.call(n)}function y(n){return function(){this._verify();var t=s(arguments);t.unshift(n);t.push(this.name);this.q.push(t)}}for(var r,a,v,i,h,u,c=["setClient","setDisplay","setAnonymous","setBrandDomain","setSource","setEnvironment","setAudience","setStaging","setEventClassFilter","setEU"],e={},l,o=0;o<c.length;o++)e[l=c[o]]=y(l);t(e,{_verify:function(){window._bvaq=window._bvaq||[];this.q=window._bvaq},_flushBatch:(r=function(){this._verify();this.q.push(["flushBatch",this.name])},u=a||250,function(){var t=v||this,n=+new Date,f=arguments;i&&n<i+u?(clearTimeout(h),h=setTimeout(function(){i=n;r.apply(t,f)},u)):(i=n,r.apply(t,f))}),loadScript:function(n){var u=n||"latest",t=document.createElement("script"),i,r;t.type="text/javascript";t.async=!0;i="http:";"https:"===window.location.protocol&&(i="https:");t.src=i+"//analytics-static.ugc.bazaarvoice.com/prod/static/"+u+"/bv-analytics.js";r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)},setCommonData:function(n){t(this.commonData,n)},configureSCIProvider:function(n,t){this._verify();this.q.push(["configureSCIProvider",n,t,this.name])},enableValidation:function(n){this._verify();this.q.push(["enableValidation",n,this.name])},disableValidation:function(){this._verify();this.q.push(["disableValidation",this.name])},enableTiming:function(){this._verify();this.q.push(["enableTiming",this.name])},disableTiming:function(){this._verify();this.q.push(["disableTiming",this.name])},addMeta:function(n,t){this._verify();this.q.push(["addMeta",n,t,this.name])},removeMeta:function(n){this._verify();this.q.push(["removeMeta",n,this.name])},trackEvent:function(n,i){this._verify();this.q.push(["addBatchItem",n,t({},this.commonData,i),this.name]);this._flushBatch()},trackPageView:function(n){this._verify();this.q.push(["trackPageView",t({},this.commonData,n),this.name])},trackError:function(n){this._verify();this.q.push(["trackEvent","Error",t({},this.commonData,n),this.name])},trackConversion:function(n){this._verify();this.q.push(["trackConversion",t({},this.commonData,n),this.name])},trackTransaction:function(n){this._verify();this.q.push(["trackTransaction",t({},this.commonData,n),this.name])},trackImpression:function(n){this._verify();this.trackEvent("Impression",t({},this.commonData,n),this.name)},doNotTrack:function(n){this._verify();this.q.push(["doNotTrack",n,this.name])}});t(n.prototype,e),function(){function f(n,r){if(!(n=t({minPixels:100,minTime:5e3},n)).containerId)throw new Error("No containerId specified.");return n.observerId=h++,n.callback=function(t){o(n.observerId);r(t)},i.push(n),e(),n.observerId}function e(){var n="number"==typeof r;i.length>=1&&!n?r=setInterval(a,c):0===i.length&&n&&(clearInterval(r),r=null)}function o(n){for(var t=0;t<i.length;t++)i[t].observerId===n&&(i.splice(t,1),e())}function s(){var n=window.document&&window.document.documentElement;return{height:window.innerHeight||n.clientHeight,width:window.innerWidth||n.clientWidth}}function l(n){var i,t=n.getBoundingClientRect(),r=s().height;return t.top<=0?(i=Math.max(t.top+t.height,0),i=Math.min(i,r)):t.top>=r?0:Math.min(r-t.top,t.height)}function a(){for(var r,e,n,u,t,f,o=0;o<i.length;o++)n=i[o],r=document.getElementById(n.containerId),e=+new Date,r?(u=void 0,t=r.getBoundingClientRect(),f=s().width,(t.left<=0?(u=Math.max(t.left+t.width,0),u=Math.min(u,f)):t.left>=f?0:Math.min(f-t.left,t.width))<=0?delete n.inViewAt:l(r)<n.minPixels?delete n.inViewAt:n.inViewAt?e-n.inViewAt>n.minTime&&n.callback():(n.inViewAt=e,0===n.minTime&&n.callback())):delete n.inViewAt}function u(n){this.id=n}var r,i=[],h=0,c=250;u.prototype.remove=function(){o(this.id)};n.prototype.trackEventWhenVisible=function(n,i){var r=this;if(!n||"string"!=typeof n.cl)throw new TypeError("data.cl must exist and be a string");return new u(f(i,function(){var i=t({},r.commonData,n);r.trackEvent(i.cl,i)}))};n.prototype.trackInView=function(n,i){var r=this;return new u(f(i=t({},i,{minTime:0}),function(){var i=t({},r.commonData,n,{name:"InView",type:"Used",interaction:"0"});r.trackEvent("Feature",i)}))};n.prototype.trackViewedCGC=function(n,i){var r=this;return new u(f(i,function(){var i=t({},r.commonData,n,{name:"ViewedUGC",type:"Used",interaction:"1"});r.trackEvent("Feature",i)}))}}()}(),n})?i.apply(t,r):i)||(n.exports=u)},function(n,t,i){"use strict";function h(n,t){document.body&&(t.disconnect(),n())}function e(n){var t=new MutationObserver(function(){h(n,t)});t.observe(document.documentElement,{childList:!0,subtree:!0});h(n,t)}var p=i(25),r={},u={},c=i.n(p)()(Array),o=function(n){return c.then(function(t){var i=[];return t.prototype.filter.call(n,function(n){if(1===n.nodeType){n.dataset&&n.dataset.bvShow&&i.push(n);var r=n.querySelectorAll("[data-bv-show]");i=i.concat(t.prototype.slice.call(r))}}),i})},l=function(n){n.filter(function(n){return!n.dataset.bvReady}).forEach(function(n){var t=n.dataset.bvShow;r[t]&&r[t].forEach(function(t){t(n);n.dataset.bvReady=!0})})},w=function(n){n.filter(function(n){return n.dataset.bvReady}).forEach(function(n){var t=n.dataset.bvShow;u[t]&&u[t].forEach(function(t){t(n);delete n.dataset.bvReady})})},b=new MutationObserver(function(n){n.forEach(function(n){var t=n.addedNodes,i=n.removedNodes;t&&o(t).then(l);i&&o(i).then(w)})});e(function(){b.observe(document.body,{childList:!0,subtree:!0})});var a=function(n){return c.then(function(t){var i=document.querySelectorAll("[data-bv-show]");return t.prototype.filter.call(i,function(t){return!n||t.dataset.bvShow===n})})},k=function(n,t){r[n]||(r[n]=[]);r[n].push(t);a(n).then(l)},d=function(n,t){u[n]||(u[n]=[]);u[n].push(t)},g=i(1);i.d(t,"a",function(){return nt});i.d(t,"b",function(){return y});i.d(t,!1,function(){return e});var s=g.a.apps.reduce(function(n,t){var i=t.publicName;return n[t.name]=i,n},{}),f=Object.keys(s).reduce(function(n,t){return n[s[t]]=function(){},n},{}),nt=function(n,t){var r=n.config.name,i=s[r];i&&(f[i]=function(){t()();n.ready(function(){k(i,function(t){n.trigger("container_added",t)});d(i,function(t){n.trigger("container_removed",t)})});f[i]=function(){}})},v=function(n){n.forEach(function(n){var t=n.dataset.bvShow;f[t]&&f[t]()})},tt=new MutationObserver(function(n){n.forEach(function(n){n.addedNodes&&o(n.addedNodes).then(v)})}),y=function(){e(function(){tt.observe(document.body,{childList:!0,subtree:!0});a().then(v);y=function(){}})}},function(n,t){"use strict";t.a=function(n,t){Object.keys(t).forEach(function(i){void 0!==t[i]&&Object.defineProperty(n,i,{value:t[i]})})}},function(n){"use strict";function t(n,t){document.body&&(t.disconnect(),n())}n.exports=function(n){if(document.body)n();else{var i=new MutationObserver(function(){t(n,i)});i.observe(document.documentElement,{childList:!0,subtree:!0});t(n,i)}}},function(n){"use strict";function t(n){for(var i=t.options,f=i.parser[i.strictMode?"strict":"loose"].exec(n),r={},u=14;u--;)r[i.key[u]]=f[u]||"";return r[i.q.name]={},r[i.key[12]].replace(i.q.parser,function(n,t,u){t&&(r[i.q.name][t]=u)}),r}t.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};n.exports=t},function(n,t,i){"use strict";function c(n,t,i){return void 0===t?u.call(r,n):void 0===i?u.call(r,n,t):u.call(r,n,t,i)}function l(n,t,i){var c;if(arguments.length<1)throw new TypeError("Failed to execute 'measure' on 'Performance': 1 argument required, but only 0 present.");var r,f=o("mark"),u=0,h=e();if(void 0!==t){if(!(r=f.filter(function(n){return n.entryName===t})).length)throw new Error("Failed to execute 'measure' on 'Performance': The mark '"+t+"' does not exist.");u=r[r.length-1].startTime}if(void 0!==i){if(!(r=f.filter(function(n){return n.entryName===i})).length)throw new Error("Failed to execute 'measure' on 'Performance': The mark '"+i+"' does not exist.");h=r[r.length-1].startTime}c={entryType:"measure",name:n,startTime:u,duration:h-u};s.push(c)}var f=i(0),e=i(12).now,o=i(24).getEntriesByType,s=i(13).timeline,r=f.performance,u=r&&r.measure,h="function"==typeof u;n.exports={measure:function(n,t,i){var u=arguments.length>0,r=h?c:l;return u?r(n,t,i):r()}}},function(n,t,i){"use strict";function c(n){return u.call(r,n)}function l(n){if(arguments.length<1)throw new SyntaxError("Cannot set mark without a name");if(n in h)throw new SyntaxError('Cannot set mark with reserved name "'+n+'"');var t={entryType:"mark",name:n,startTime:e.now(),duration:0};o.push(t)}var f=i(0),e=i(12),o=i(13).timeline,r=f.performance,u=r&&r.mark,s="function"==typeof u,h={navigationStart:1,unloadEventStart:1,unloadEventEnd:1,redirectStart:1,redirectEnd:1,fetchStart:1,domainLookupStart:1,domainLookupEnd:1,connectStart:1,connectEnd:1,secureConnectionStart:1,requestStart:1,responseStart:1,responseEnd:1,domLoading:1,domInteractive:1,domContentLoadedEventStart:1,domContentLoadedEventEnd:1,domComplete:1,loadEventStart:1,loadEventEnd:1};n.exports={mark:function(n){var i=arguments.length>0,t=s?c:l;return i?t(n):t()}}},function(n,t,i){"use strict";function e(){return u.call(r)}function o(){return(new r).getTime()}var r=i(0).Date,u=r&&r.now,f="function"==typeof u;n.exports={now:function(){return(f?e:o)()}}},function(n,t,i){"use strict";function s(n,t){return u.call(r,n,t)}function h(n,t){if(0===arguments.length)throw new TypeError("Failed to execute 'getEntriesByName' on 'Performance': 1 argument required, but only 0 present.");return e().filter(function(i){if(i.name===n&&(void 0===t||i.entryType===t))return i})}var f=i(0),e=i(14).getEntries,r=f.performance,u=r&&r.getEntriesByName,o="function"==typeof u;n.exports={getEntriesByName:function(n,t){var r=arguments.length>0,i=o?s:h;return r?i(n,t):i()}}},function(n,t,i){"use strict";i.r(t),function(n){function v(n){if("function"!=typeof n)throw Error("The BV Callback must be a function.");setTimeout(function(){n.call(null,h.a)})}var y=i(45),o=i(17),s=i(20),p=i(19),f=i(1),h=i(2),w=i(7),b=i.n(w),k=i(0),t=i.n(k),d=i(22),u=i(4),g=i(28),nt=i(38),tt=i(18),it=i(21),rt=i(44),ut=i(40),ft=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),et=t.a.document,r=y.a.createMark("bv_loader"),e;Object(rt.a)();r.end=r.start();t.a.navigator.userAgent.indexOf("MSIE")>-1||t.a.navigator.userAgent.indexOf("Trident/");(h.a.pixel=d.a.createTracker({commonData:{bvProduct:"pixel"},name:"pixel",source:"bv-loader"}),f.a.apps.forEach(function(n){return Object(ut.a)(n,r)}),Object(g.b)(),t.a.$BV&&"ui"in t.a.$BV||f.a.isPreview||(t.a.$BV=Object(nt.a)()),"container"===it.b()&&(f.a.isConversations?t.a.$BV.container("global",{}):t.a.$BV.ui("submission_container",{})),b.a.loadScript("https://analytics-static.ugc.bazaarvoice.com/prod/static/3/bv-analytics.js"),u.a)&&(t.a[u.a]?v(t.a[u.a]):(e=void 0,Object.defineProperty(t.a,u.a,{get:function(){return e},set:function(n){e=n;v(n)}})));r.end();var c=ft(r.measures,1)[0],l=c.duration,a=c.startTime,ot=a+l;try{tt.a.trackEvent("Diagnostic",{name:"timeToRunScout",type:"Performance",startTime:a.toFixed(4),endTime:ot.toFixed(4),elapsedMs:l.toFixed(4)})}catch(n){}p.a&&(new n(function(n){et.addEventListener("DOMContentLoaded",function(){n()});setTimeout(function(){n()},3e3)}).then(function(){Object(s.a)("page",Object(o.c)())}),setTimeout(function(){Object(s.a)("bv-loader",Object(o.b)())},0))}.call(this,i(6))},function(n,t,i){"use strict";function l(n,t,i){var u,r;i.load.end=i.load.start();u=n.sourcePath;(n.legacyPath&&!o.doModernLoad&&(u=n.legacyPath),e.a.loadScript(u,function(r){Object(h.a)(r,n,t,i)}),n.configUrl)&&(r=i.createMark("load","config"),r.end=r.start(),e.a.loadScript(n.configUrl,function(){r.end()}))}var s=i(7),e=i.n(s),h=i(39),f=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),c=document.createElement("script"),u=window.navigator.userAgent.toLowerCase(),r={noModule:"noModule"in c,isFirefox:!!~u.indexOf("firefox"),isChrome:!!~u.indexOf("chrome")},o;r.isSafari=!r.isChrome&&!!~u.indexOf("safari");r.doModernLoad=r.isSafari&&r.noModule?function(){var n=u.match(/macintosh.+mac os x (\d+)_(\d+)_\d+\)/),t=u.match(/version\/(\d+)\.\d+\.\d+ safari\/\d+\.\d+\.\d/),r;if(n){var i=f(n,3),e=i[1],o=i[2];return Number(e)>=10&&Number(o)>=13&&t?(r=f(t,2)[1],Number(r)>=11):!1}return!0}():!r.noModule&&r.isFirefox?function(){var n=u.match(/(?:firefox\/)([\d.]+)/),t;return n&&n.length?(t=f(n,2)[1],Number(t)>54):!1}():r.noModule;o=r;i.d(t,"a",function(){return l})},function(n,t,i){"use strict";(function(n){function s(){var t=this;this.promiseRef=new n(function(n,i){v(t,{resolve:n,reject:i})})}var h=i(0),e=i.n(h),c=i(7),l=i.n(c),r=i(1),u=i(4),a=i(21),v=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},f=e.a.console,o=!1;t.a=function(){return function(){var i=e.a.$BV||[],n={_apiQueue:[],log:function(){f&&f.log&&f.log(arguments)},push:function(t){o||function(){if(!r.a.isConversations&&(u.c&&(r.a.legacyScoutUrl=r.a.legacyScoutUrl.replace(/^(https?:\/\/)([^/]+)/,"$1"+u.c)),u.b&&(r.a.legacyScoutUrl=r.a.legacyScoutUrl.replace(/\/+([^/]+)\/bvapi.js/,"/"+u.b+"/bvapi.js")),/\[HOSTNAME\]/.test(r.a.legacyScoutUrl)||/\[DISPLAYCODE\]/.test(r.a.legacyScoutUrl)))throw Error('Could not determine display code and hostname. Contact Bazaarvoice Support to configure your implementation, or provide explicit "data-bv-display-code" and "data-bv-hostname" attributes.');o=!0;l.a.loadScript(r.a.legacyScoutUrl)}();n._apiQueue.push(t)}},t=a.c();return t&&n._apiQueue.push(["configure","global",{userToken:t}]),i.forEach(function(t){n.push(t)}),["ui","configure","container","ready","SI.trackProductPageView","SI.trackGenericPageView","SI.trackTransactionPageView","SI.disable","SI.enable","SI.setDebugEnabled","SI.trackConversion","DSI.trackBVPageView","DSI.trackProduct","DSI.trackTransaction"].forEach(function(t){!function(t,i){for(var u,f=i.split("."),e=f.pop(),r=f.shift();r;)t=t[r]=t[r]||{},r=f.shift();t[e]=(u=i.replace(/\./g,"_"),function(){for(var i=void 0,t=[u],r=0,f=arguments.length;r<f;r++)t.push(arguments[r]);return"ui"!==u?n.push(t):((i=t[3]=t[3]||{}).loadedDeferred=i.loadedDeferred||new s,n.push(t),i.loadedDeferred.promise())})}(n,t)}),n}()};s.prototype.promise=function(){return this.promiseRef}}).call(this,i(6))},function(n,t,i){"use strict";(function(n){function f(t,i,f,e){return e.load.end(),t&&f.processReady(t),new n(function(n){f.ready(function(){setTimeout(function(){n()},0)});setTimeout(function(){n()},3e3)}).then(function(){Object(u.a)(i.name,Object(r.a)(i.name),i.name,i.version)})}i.d(t,"a",function(){return f});var r=i(17),u=i(20)}).call(this,i(6))},function(n,t,i){"use strict";(function(n){function w(n,t){var o=t.createMark("register",n.name),i,e;o.end=o.start();i=new u.a({name:n.name});r.a.registerProperty(n.name,i);var f=t.createMark("app",n.name),h=f.createMark("configure"),w=f.createMark("load"),b=f.createMark("render");if(f.configure=h,f.load=w,f.render=b,r.a[n.name].perfMark=f,r.a[n.name]._analytics=s.a.createTracker({name:n.name,source:"bv-loader"}),y.global.loadUserSegment.then(function(t){r.a[n.name]._analytics.setCommonData({displaySegment:t})}),"api"===n.name&&(r.a[n.name].analytics=r.a[n.name]._analytics),e=function(){p.some(function(t){return~[n.name,n.publicName].indexOf(t)})?v.a.trackEvent("Feature",{type:"Used",name:"AppDisabled",detail1:n.name}):Object(a.a)(n,i,f);e=function(){}},c.d.some(function(t){return t===n.name})||!n.defer)e();else{var k=i.configure,d=i.ready,g=i.render;["configure","ready","render"].forEach(function(n){i[n]=function(){return function(n,t){return e(),i.configure=k,i.ready=d,i.render=g,i[n].apply(this,t)}.call(this,n,arguments)}})}Object(l.a)(i,function(){return e});o.end()}i.d(t,"a",function(){return w});var f=i(16),u=i.n(f),e=i(26),o=i.n(e),r=i(2),s=i(22),h=i(21),c=i(4),l=i(28),a=i(37),v=i(18),y=n.BV,p=h.a();o.a.call(u.a.prototype)}).call(this,i(11))},function(n,t,i){"use strict";(function(n){function f(t){var f=r.get(t),i;return f?f:(i=new XMLHttpRequest,f=new n(function(n,r){i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200===i.status){var t=void 0;try{t=JSON.parse(i.responseText)}catch(n){r("Unable to JSON.parse server response: "+i.responseText+".")}n(t)}else r("The call to the server was not successful.")};i.open("GET",t);i.timeout=u;i.ontimeout=function(){i.abort()};i.send()}),r.set(t,f),f)}i.d(t,"a",function(){return f});var u=1e4,r=new Map}).call(this,i(6))},function(n,t,i){"use strict";(function(n){function s(){return Object(v.a)(o.a.paths.splitTests).then(function(n){return n.tests},function(){return[]})}function d(n){var t=void 0;try{var i=n.filter(function(n){return t=n,!(new Date(t.start).getTime()+(t.duration||w)<Date.now()||t.forceExpire);var t}),r=i.filter(function(n){var t=n.clients;return t?-1!==t.indexOf(a.a.global.client):!1}),f=i.filter(function(n){return!n.clients}),u=r.length>0?r:f;u.sort(function(n,t){return new Date(n.startDate)-new Date(t.startDate)});t=u.shift()}catch(n){throw new Error("Something went wrong when choosing a split test.\n      Please ensure that all defined tests are valid. "+n);}return t}function g(){var v,i,h,t,c,a;if(!o.a.splitTestingEnabled)return n.resolve(r);if(i=(v=b,l.a.location.search.substr(1).split("&").filter(function(n){return n.split("=")[0]===v}).map(function(n){return n.split("=")[1]})[0]),i)return n.resolve(i);if(h=u.a.read(e),h){t=void 0;try{t=JSON.parse(h)}catch(n){}if(t&&(c=t.segment,c))return a=n.resolve(c),a.then(function(){return n=t.testId,void s().then(function(t){var r=t.filter(function(t){return t.id===n}),i=y(r,1)[0];i&&i.forceExpire&&u.a.remove(e)});var n}),a}return s().then(d).then(function(n){var t,i;if(!n)return r;if(t=new Date(n.start).getTime(),t<=Date.now()&&(i=function(n){return((arguments.length>1&&void 0!==arguments[1]?arguments[1]:p*f)-(Date.now()-n))/f}(t,n.duration),i>0)){var s=n.id,o=function(){for(var n,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=0,f=Object.keys(i).sort();f.length;){if(n=f.pop(),t=i[n],k<=u+t)return n;u+=t}return r}(n.splits),h=JSON.stringify({testId:s,segment:o});return u.a.create(e,h,i),o||r}})}i.d(t,"a",function(){return g});var h=i(8),u=i.n(h),c=i(0),l=i.n(c),a=i(2),o=i(1),v=i(41),y=function(){return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{!u&&i.return&&i.return()}finally{if(f)throw e;}}return r}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),p=14,r="baseline",f=864e5,w=60*f,e="bv_segment",b="bv_segment",k=Math.random()}).call(this,i(6))},function(n,t,i){"use strict";(function(n,r){var o=i(42),s=i(9),h=i.n(s),u=i(1),f=i(2),e=i(29);Object.assign;f.a.global={};Object(e.a)(f.a.global,{client:u.a.deployment.client,dataEnvironment:u.a.dataEnvironment,serverEnvironment:u.a.serverEnvironment,locale:u.a.deployment.locale,anonymous:!h()(n.location.host,u.a.domains).get("thirdPartyCookieEnabled"),siteId:u.a.deployment.site,virtualEnvironment:u.a.deployment.virtualEnvironment,ponyfills:{Promise:r},SystemJS:{}});Object(e.a)(f.a.global,{loadUserSegment:Object(o.a)()});Object.freeze(f.a.global);t.a=f.a.global}).call(this,i(11),i(6))},function(n,t,i){"use strict";(function(n){function y(){!function(n){if(!n.isValid)throw"Bazaarvoice is not configured for the domain "+l+".";}(v),function(n){var t,i,u;n&&n.src&&(t=c.a.parseClient(n.src),i=t&&t.toLowerCase(),t&&t!==i&&(u=n.src.replace("/deployments/"+t,"/deployments/"+i),console.warn("%cYou are using a cased client name (%c"+t+"%c) in the bv.js URL.\n        Please use this URL instead: %c"+u+"%c.\n        For details, see the Conversations Implementation section of https://knowledge.bazaarvoice.com.",r.b,r.a,r.b,r.c,r.b)))}(h.a)}i.d(t,"a",function(){return y});var f=i(9),e=i.n(f),o=i(1),s=i(5),h=i.n(s),c=i(23),r=i(10),u=n.location,l=u.host,a=u.href,v=e()(a,o.a.domains)}).call(this,i(11))},function(n,t,i){"use strict";var o=i(3),r=i.n(o),f=void 0,s=0,h=function(n){r.a.mark(n)},u=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.join("_")},c=u("BV","PERF","MARK"),e=function n(t){for(var l,s=arguments.length,i=Array(s>1?s-1:0),e=1;e<s;e++)i[e-1]=arguments[e];if(i.length)return l=u(t,i.shift()),n.call.apply(n,[f,l].concat(i));var c=[],a=[],o=function(n){h(n?u(t,n):t);var i=r.a.getEntriesByType("mark"),f=i[i.length-1];return c.push(f),f},v={createMark:{configurable:!0,enumerable:!0,value:n.bind(f,t)},marks:{configurable:!0,enumerable:!0,get:function(){return c}},measures:{configurable:!0,enumerable:!0,get:function(){return a}},start:{configurable:!0,enumerable:!0,value:function(){return n=o("start"),function(){var i=o("end"),u,f;return r.a.measure(t),u=r.a.getEntriesByType("measure"),f=u[u.length-1],Object.defineProperties(f,{startTime:{configurable:!0,enumerable:!0,value:n.startTime,writable:!1},duration:{configurable:!0,enumerable:!0,value:i.startTime-n.startTime,writable:!1}}),c.push(i),a.push(f),i};var n}}};return Object.defineProperties(o,v),o};t.a={createMark:function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];return e.call.apply(e,[f,u(c,n||++s)].concat(r))}}}])