diff --git a/dev/External/User/ko.js b/dev/External/User/ko.js index 47a5a5de6..9728c8348 100644 --- a/dev/External/User/ko.js +++ b/dev/External/User/ko.js @@ -203,16 +203,14 @@ ko.bindingHandlers.initDom = { ko.bindingHandlers.onEsc = { init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => { - $(element).on('keyup.koOnEsc', event => { - if (event && 'Escape' === event.key) { - $(element).trigger('change'); + let fn = event => { + if ('Escape' == event.key) { + element.dispatchEvent(new Event('change')); fValueAccessor().call(viewModel); } - }); - - ko.utils.domNodeDisposal.addDisposeCallback(element, () => - $(element).off('keyup.koOnEsc') - ); + }; + element.addEventListener('keyup', fn); + ko.utils.domNodeDisposal.addDisposeCallback(element, () => element.removeEventListener('keyup', fn)); } }; diff --git a/dev/External/ko.js b/dev/External/ko.js index 6ddeec0d9..694adec48 100644 --- a/dev/External/ko.js +++ b/dev/External/ko.js @@ -1,5 +1,4 @@ const - $ = jQuery, doc = document, ko = window.ko, Translator = () => require('Common/Translator'), @@ -93,30 +92,26 @@ ko.bindingHandlers.popover = { ko.bindingHandlers.onEnter = { init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => { - $(element).on('keypress.koOnEnter', event => { - if (event && 'Enter' === event.key) { - $(element).trigger('change'); + let fn = event => { + if ('Enter' == event.key) { + element.dispatchEvent(new Event('change')); fValueAccessor().call(viewModel); } - }); - - ko.utils.domNodeDisposal.addDisposeCallback(element, () => { - $(element).off('keypress.koOnEnter'); - }); + }; + element.addEventListener('keydown', fn); + ko.utils.domNodeDisposal.addDisposeCallback(element, () => element.removeEventListener('keydown', fn)); } }; ko.bindingHandlers.onSpace = { init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => { - $(element).on('keyup.koOnSpace', event => { - if (event && ' ' === event.key) { + let fn = event => { + if (' ' == event.key) { fValueAccessor().call(viewModel, event); } - }); - - ko.utils.domNodeDisposal.addDisposeCallback(element, () => { - $(element).off('keyup.koOnSpace'); - }); + }; + element.addEventListener('keyup', fn); + ko.utils.domNodeDisposal.addDisposeCallback(element, () => element.removeEventListener('keyup', fn)); } }; diff --git a/vendors/knockout/build/output/knockout-latest.debug.js b/vendors/knockout/build/output/knockout-latest.debug.js index e884b7f74..9ffdeb49e 100644 --- a/vendors/knockout/build/output/knockout-latest.debug.js +++ b/vendors/knockout/build/output/knockout-latest.debug.js @@ -83,14 +83,6 @@ ko.utils = (function () { var canSetPrototype = ({ __proto__: [] } instanceof Array); - // Represent the known event types in a compact way, then at runtime transform it into a hash with event name as key (for fast lookup) - var ke = 'KeyboardEvent', me = 'MouseEvent', - knownEventTypesByEventName = { - keyup: ke, keydown: ke, keypress: ke, - click: me, dblclick: me, mousedown: me, mouseup: me, mousemove: me, - mouseover: me, mouseout: me, mouseenter: me, mouseleave: me - }; - function isClickOnCheckableElement(element, eventType) { if ((element.nodeName !== "INPUT") || !element.type) return false; if (eventType.toLowerCase() != "click") return false; @@ -332,10 +324,7 @@ ko.utils = (function () { if (!ko.options['useOnlyNativeEvents'] && jQuery && !useClickWorkaround) { jQuery(element)['trigger'](eventType); } else { - var eventCategory = knownEventTypesByEventName[eventType] || "HTMLEvents"; - var event = document.createEvent(eventCategory); - event.initEvent(eventType, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, element); - element.dispatchEvent(event); + element.dispatchEvent(new Event(eventType)); } }, diff --git a/vendors/knockout/build/output/knockout-latest.js b/vendors/knockout/build/output/knockout-latest.js index 8b83bb076..6287c0df0 100644 --- a/vendors/knockout/build/output/knockout-latest.js +++ b/vendors/knockout/build/output/knockout-latest.js @@ -4,119 +4,118 @@ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ -(function() {(function(n){var G=this||(0,eval)("this"),z=G.document,I=G.jQuery;I||"undefined"===typeof jQuery||(I=jQuery);(function(n){"function"===typeof define&&define.amd?define(["exports","require"],n):"object"===typeof exports&&"object"===typeof module?n(module.exports||exports):n(G.ko={})})(function(I,R){function L(a,c){return null===a||typeof a in U?a===c:!1}function V(b,c){var d;return function(){d||(d=a.a.setTimeout(function(){d=n;b()},c))}}function W(b,c){var d;return function(){clearTimeout(d);d=a.a.setTimeout(b, -c)}}function X(a,c){c&&"change"!==c?"beforeChange"===c?this.hc(a):this.bb(a,c):this.ic(a)}function Y(a,c){null!==c&&c.s&&c.s()}function Z(a,c){var d=this.bd,e=d[q];e.pa||(this.Jb&&this.ib[c]?(d.mc(c,a,this.ib[c]),this.ib[c]=null,--this.Jb):e.F[c]||d.mc(c,a,e.G?{aa:a}:d.Oc(a)),a.Ga&&a.Tc())}function O(a,c,d){if(c){var e=d?"add":"remove";c.split(/\s+/).forEach(function(c){a.classList[e](c)})}}var a="undefined"!==typeof I?I:{};a.b=function(b,c){for(var d=b.split("."),e=a,f=0;fa.length?!1:a.substring(0,b.length)===b},fd:function(a,b){return b.contains(1!==a.nodeType?a.parentNode:a)},Lb:function(b){return a.a.fd(b,b.ownerDocument.documentElement)},Wc:function(b){return!!a.a.Fb(b,a.a.Lb)},$:function(a){return a&& -a.tagName&&a.tagName.toLowerCase()},rc:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(c){throw a.onError&&a.onError(c),c;}}:b},setTimeout:function(b,c){return setTimeout(a.a.rc(b),c)},xc:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},H:function(b,c,d){d=a.a.rc(d);if(!a.options.useOnlyNativeEvents&&jQuery)jQuery(b).on(c,d);else b.addEventListener(c,d,!1)},zb:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent"); -var d;"INPUT"===b.nodeName&&b.type&&"click"==c.toLowerCase()?(d=b.type,d="checkbox"==d||"radio"==d):d=!1;a.options.useOnlyNativeEvents||!jQuery||d?(d=z.createEvent(e[c]||"HTMLEvents"),d.initEvent(c,!0,!0,G,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d)):jQuery(b).trigger(c)},g:function(b){return a.R(b)?b():b},Vb:function(b){return a.R(b)?b.v():b},xb:function(b,c){var d=a.a.g(c);if(null===d||d===n)d="";var e=a.f.firstChild(b);!e||3!=e.nodeType||a.f.nextSibling(e)?a.f.ta(b,[b.ownerDocument.createTextNode(d)]): -e.data=d},Ca:function(a){return Array.from(a)}}}();a.b("utils",a.a);a.b("utils.arrayForEach",a.a.K);a.b("utils.arrayFirst",a.a.Fb);a.b("utils.arrayFilter",a.a.fb);a.b("utils.arrayIndexOf",a.a.L);a.b("utils.arrayPushAll",a.a.Gb);a.b("utils.arrayRemoveItem",a.a.Ma);a.b("utils.cloneNodes",a.a.za);a.b("utils.extend",a.a.extend);a.b("utils.objectMap",a.a.Da);a.b("utils.peekObservable",a.a.Vb);a.b("utils.registerEventHandler",a.a.H);a.b("utils.stringifyJson",a.a.Sd);a.b("utils.triggerEvent",a.a.zb);a.b("utils.unwrapObservable", -a.a.g);a.b("utils.objectForEach",a.a.O);a.b("utils.setTextContent",a.a.xb);a.b("unwrap",a.a.g);a.a.h=new function(){var a=0,c="__ko__"+Date.now(),d;d=function(a,b){var d=a[c];!d&&b&&(d=a[c]={});return d};return{get:function(a,b){var c=d(a,!1);return c&&c[b]},set:function(a,b,c){(a=d(a,c!==n))&&(a[b]=c)},Nb:function(a,b,c){a=d(a,!0);return a[b]||(a[b]=c)},clear:function(a){return a[c]?(delete a[c],!0):!1},fa:function(){return a++ +c}}};a.b("utils.domData",a.a.h);a.b("utils.domData.clear",a.a.h.clear); -a.a.N=new function(){function b(b,c){var d=a.a.h.get(b,e);d===n&&c&&(d=[],a.a.h.set(b,e,d));return d}function c(c){var e=b(c,!1);if(e)for(var e=e.slice(0),k=0;k",""],d=[3,"","
"],e=[1,""],f={thead:c,tbody:c,tfoot:c,tr:[2,"","
"],td:d,th:d,option:e,optgroup:e};a.a.sa=function(c,d){var e=d;e||(e=z);var k=e.parentWindow||e.defaultView||G,l=a.a.$b(c).toLowerCase(),e=e.createElement("div"),p;p=(l=l.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&& -f[l[1]]||b;l=p[0];p="ignored
"+p[1]+c+p[2]+"
";for("function"==typeof k.innerShiv?e.appendChild(k.innerShiv(p)):e.innerHTML=p;l--;)e=e.lastChild;return a.a.Ca(e.lastChild.childNodes)};a.a.wd=function(b,c){var d=a.a.sa(b,c);return d.length&&d[0].parentElement||a.a.Rb(d)};a.a.Zb=function(b,c){a.a.Mb(b);c=a.a.g(c);if(null!==c&&c!==n){"string"!=typeof c&&(c=c.toString());for(var d=a.a.sa(c,b.ownerDocument),e=0;eb){if(5E3<=++c){h=f;a.a.xc(Error("'Too much recursion' after processing "+c+" task groups."));break}b=f}try{d()}catch(p){a.a.xc(p)}}}function c(){b();h=f=e.length=0}var d,e=[],f=0,g=1,h=0;G.MutationObserver?d=function(a){var b=z.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c): -d=z&&"onreadystatechange"in z.createElement("script")?function(a){var b=z.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;z.documentElement.removeChild(b);b=null;a()};z.documentElement.appendChild(b)}:function(a){setTimeout(a,0)};return{scheduler:d,vb:function(b){f||a.la.scheduler(c);e[f++]=b;return g++},cancel:function(a){a=a-(g-f);a>=h&&ad[0]?p+d[0]:d[0]),p);for(var p=1===h?p:Math.min(c+(d[1]||0),p),h=c+h-2,g=Math.max(p,h),S=[],T=[],n=2;c=h){c.push(p&&v.length?{key:p,value:v.join("")}:{unknown:p||v.join("")});p=h=0;v=[];continue}}else if(58===t){if(!h&&!p&&1===v.length){p=v.pop();continue}}else if(47===t&&1arguments.length){if(b=z.body,!b)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!b||1!==b.nodeType&&8!==b.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");k(v(a,c),b)};a.uc=function(b){return!b|| -1!==b.nodeType&&8!==b.nodeType?n:a.Ad(b)};a.vc=function(b){return(b=a.uc(b))?b.$data:n};a.b("bindingHandlers",a.c);a.b("bindingEvent",a.i);a.b("bindingEvent.subscribe",a.i.subscribe);a.b("bindingEvent.startPossiblyAsyncContentBinding",a.i.yb);a.b("applyBindings",a.nc);a.b("applyBindingsToDescendants",a.La);a.b("applyBindingAccessorsToNode",a.eb);a.b("applyBindingsToNode",a.Xc);a.b("contextFor",a.uc);a.b("dataFor",a.vc)})();(function(b){function c(c,e){var k=Object.prototype.hasOwnProperty.call(f, -c)?f[c]:b,l;k?k.subscribe(e):(k=f[c]=new a.S,k.subscribe(e),d(c,function(b,d){var e=!(!d||!d.synchronous);g[c]={definition:b,pd:e};delete f[c];l||e?k.notifySubscribers(b):a.la.vb(function(){k.notifySubscribers(b)})}),l=!0)}function d(a,b){e("getConfig",[a],function(c){c?e("loadComponent",[a,c],function(a){b(a,c)}):b(null,null)})}function e(c,d,f,l){l||(l=a.j.loaders.slice(0));var p=l.shift();if(p){var g=p[c];if(g){var r=!1;if(g.apply(p,d.concat(function(a){r?f(null):null!==a?f(a):e(c,d,f,l)}))!== -b&&(r=!0,!p.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else e(c,d,f,l)}else f(null)}var f={},g={};a.j={get:function(d,e){var f=Object.prototype.hasOwnProperty.call(g,d)?g[d]:b;f?f.pd?a.u.C(function(){e(f.definition)}):a.la.vb(function(){e(f.definition)}):c(d,e)},sc:function(a){delete g[a]},gc:e};a.j.loaders=[];a.b("components",a.j);a.b("components.get",a.j.get);a.b("components.clearCachedDefinition", -a.j.sc)})();(function(){function b(b,c,d,e){function g(){0===--u&&e(h)}var h={},u=2,t=d.template;d=d.viewModel;t?f(c,t,function(c){a.j.gc("loadTemplate",[b,c],function(a){h.template=a;g()})}):g();d?f(c,d,function(c){a.j.gc("loadViewModel",[b,c],function(a){h[m]=a;g()})}):g()}function c(a,b,d){if("function"===typeof b)d(function(a){return new b(a)});else if("function"===typeof b[m])d(b[m]);else if("instance"in b){var e=b.instance;d(function(){return e})}else"viewModel"in b?c(a,b.viewModel,d):a("Unknown viewModel value: "+ -b)}function d(b){switch(a.a.$(b)){case "script":return a.a.sa(b.text);case "textarea":return a.a.sa(b.value);case "template":if(e(b.content))return a.a.za(b.content.childNodes)}return a.a.za(b.childNodes)}function e(a){return G.DocumentFragment?a instanceof DocumentFragment:a&&11===a.nodeType}function f(a,b,c){"string"===typeof b.require?R||G.require?(R||G.require)([b.require],function(a){a&&"object"===typeof a&&a.Ed&&a["default"]&&(a=a["default"]);c(a)}):a("Uses require, but no AMD loader is present"): -c(b)}function g(a){return function(b){throw Error("Component '"+a+"': "+b);}}var h={};a.j.register=function(b,c){if(!c)throw Error("Invalid configuration for "+b);if(a.j.pb(b))throw Error("Component "+b+" is already registered");h[b]=c};a.j.pb=function(a){return Object.prototype.hasOwnProperty.call(h,a)};a.j.unregister=function(b){delete h[b];a.j.sc(b)};a.j.wc={getConfig:function(b,c){c(a.j.pb(b)?h[b]:null)},loadComponent:function(a,c,d){var e=g(a);f(e,c,function(c){b(a,e,c,d)})},loadTemplate:function(b, -c,f){b=g(b);if("string"===typeof c)f(a.a.sa(c));else if(c instanceof Array)f(c);else if(e(c))f(a.a.Ca(c.childNodes));else if(c.element)if(c=c.element,G.HTMLElement?c instanceof HTMLElement:c&&c.tagName&&1===c.nodeType)f(d(c));else if("string"===typeof c){var h=z.getElementById(c);h?f(d(h)):b("Cannot find element with ID "+c)}else b("Unknown element type: "+c);else b("Unknown template value: "+c)},loadViewModel:function(a,b,d){c(g(a),b,d)}};var m="createViewModel";a.b("components.register",a.j.register); -a.b("components.isRegistered",a.j.pb);a.b("components.unregister",a.j.unregister);a.b("components.defaultLoader",a.j.wc);a.j.loaders.push(a.j.wc);a.j.Fd=h})();(function(){function b(b,e){var f=b.getAttribute("params");if(f){var f=c.parseBindingsString(f,e,b,{valueAccessors:!0,bindingParams:!0}),f=a.a.Da(f,function(c){return a.o(c,null,{l:b})}),g=a.a.Da(f,function(c){var e=c.v();return c.ia()?a.o({read:function(){return a.a.g(c())},write:a.Wa(e)&&function(a){c()(a)},l:b}):e});Object.prototype.hasOwnProperty.call(g, -"$raw")||(g.$raw=f);return g}return{$raw:{}}}a.j.getComponentNameForNode=function(b){var c=a.a.$(b);if(a.j.pb(c)&&(-1!=c.indexOf("-")||"[object HTMLUnknownElement]"==""+b))return c};a.j.lc=function(c,e,f,g){if(1===e.nodeType){var h=a.j.getComponentNameForNode(e);if(h){c=c||{};if(c.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var m={name:h,params:b(e,f)};c.component=g?function(){return m}:m}}return c};var c=new a.da})();(function(){function b(b, -c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.a.za(c);a.f.ta(d,b)}function c(a,b,c){var d=a.createViewModel;return d?d.call(a,b,c):b}var d=0;a.c.component={init:function(e,f,g,h,m){function k(){var a=l&&l.dispose;"function"===typeof a&&a.call(l);v&&v.s();p=l=v=null}var l,p,v,r=a.a.Ca(a.f.childNodes(e));a.f.Aa(e);a.a.N.Ka(e,k);a.o(function(){var g=a.a.g(f()),h,t;"string"===typeof g?h=g:(h=a.a.g(g.name),t=a.a.g(g.params));if(!h)throw Error("No component name specified"); -var n=a.i.yb(e,m),A=p=++d;a.j.get(h,function(d){if(p===A){k();if(!d)throw Error("Unknown component '"+h+"'");b(h,d,e);var f=c(d,t,{element:e,templateNodes:r});d=n.createChildContext(f,{extend:function(a){a.$component=f;a.$componentTemplateNodes=r}});f&&f.koDescendantsComplete&&(v=a.i.subscribe(e,a.i.na,f.koDescendantsComplete,f));l=f;a.La(d,e)}})},null,{l:e});return{controlsDescendantBindings:!0}}};a.f.ba.component=!0})();a.c.attr={update:function(b,c){var d=a.a.g(c())||{};a.a.O(d,function(c,d){d= -a.a.g(d);var g=c.indexOf(":"),g="lookupNamespaceURI"in b&&0f?e&&b.push(d):e||b.splice(f,1)}a.c.checked={after:["value","attr"],init:function(c,d,e){function f(){var f=c.checked,g=h();if(!a.P.Va()&&(f||!k&&!a.P.oa())){var l=a.u.C(d); -if(p){var r=v?l.v():l,q=w;w=g;q!==g?f&&(b(r,g,!0),b(r,q,!1)):b(r,g,f);v&&a.Wa(l)&&l(r)}else m&&(g===n?g=f:f||(g=n)),a.m.$a(l,e,"checked",g,!0)}}function g(){var b=a.a.g(d()),e=h();p?(c.checked=0<=a.a.L(b,e),w=e):c.checked=m&&e===n?!!b:h()===b}var h=a.tb(function(){if(e.has("checkedValue"))return a.a.g(e.get("checkedValue"));if(r)return e.has("value")?a.a.g(e.get("value")):c.value}),m="checkbox"==c.type,k="radio"==c.type;if(m||k){var l=d(),p=m&&a.a.g(l)instanceof Array,v=!(p&&l.push&&l.splice),r=k|| -p,w=p?h():n;k&&!c.name&&a.c.uniqueName.init(c,function(){return!0});a.o(f,null,{l:c});a.a.H(c,"click",f);a.o(g,null,{l:c});l=n}}};a.m.ua.checked=!0;a.c.checkedValue={update:function(b,d){b.value=a.a.g(d())}}})();a.c["class"]={update:function(b,c){var d=a.a.$b(a.a.g(c()));O(b,b.__ko__cssValue,!1);b.__ko__cssValue=d;O(b,d,!0)}};a.c.css={update:function(b,c){var d=a.a.g(c());null!==d&&"object"==typeof d?a.a.O(d,function(c,d){d=a.a.g(d);O(b,c,d)}):a.c["class"].update(b,c)}};a.c.enable={update:function(b, -c){var d=a.a.g(c());d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.c.disable={update:function(b,c){a.c.enable.update(b,function(){return!a.a.g(c())})}};a.c.event={init:function(b,c,d,e,f){var g=c()||{};a.a.O(g,function(g){"string"==typeof g&&a.a.H(b,g,function(b){var k,l=c()[g];if(l){try{var p=a.a.Ca(arguments);e=f.$data;p.unshift(e);k=l.apply(e,p)}finally{!0!==k&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(g+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&& -b.stopPropagation())}})})}};a.c.foreach={Gc:function(b){return function(){var c=b(),d=a.a.Vb(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.Z.Ja};a.a.g(c);return{foreach:d.data,as:d.as,noChildContext:d.noChildContext,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.Z.Ja}}},init:function(b,c){return a.c.template.init(b,a.c.foreach.Gc(c))},update:function(b, -c,d,e,f){return a.c.template.update(b,a.c.foreach.Gc(c),d,e,f)}};a.m.Oa.foreach=!1;a.f.ba.foreach=!0;a.c.hasfocus={init:function(b,c,d){function e(e){b.__ko_hasfocusUpdating=!0;e=b.ownerDocument.activeElement===b;var f=c();a.m.$a(f,d,"hasfocus",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1}var f=e.bind(null,!0),g=e.bind(null,!1);a.a.H(b,"focus",f);a.a.H(b,"focusin",f);a.a.H(b,"blur",g);a.a.H(b,"focusout",g);b.__ko_hasfocusLastValue=!1},update:function(b,c){var d=!!a.a.g(c());b.__ko_hasfocusUpdating|| -b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.u.C(a.a.zb,null,[b,d?"focusin":"focusout"]))}};a.m.ua.hasfocus=!0;a.c.hasFocus=a.c.hasfocus;a.m.ua.hasFocus="hasfocus";a.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Zb(b,c())}};(function(){function b(b,d,e){a.c[b]={init:function(b,c,h,m,k){var l,p,v={},r,n,u;if(d){m=h.get("as");var t=h.get("noChildContext");u=!(m&&t);v={as:m,noChildContext:t, -exportDependencies:u}}n=(r="render"==h.get("completeOn"))||h.has(a.i.na);a.o(function(){var h=a.a.g(c()),m=!e!==!h,t=!p,q;if(u||m!==l){n&&(k=a.i.yb(b,k));if(m){if(!d||u)v.dataDependency=a.P.o();q=d?k.createChildContext("function"==typeof h?h:c,v):a.P.oa()?k.extend(null,v):k}t&&a.P.oa()&&(p=a.a.za(a.f.childNodes(b),!0));m?(t||a.f.ta(b,a.a.za(p)),a.La(q,b)):(a.f.Aa(b),r||a.i.ka(b,a.i.D));l=m}},null,{l:b});return{controlsDescendantBindings:!0}}};a.m.Oa[b]=!1;a.f.ba[b]=!0}b("if");b("ifnot",!1,!0);b("with", -!0)})();a.c.let={init:function(b,c,d,e,f){c=f.extend(c);a.La(c,b);return{controlsDescendantBindings:!0}}};a.f.ba.let=!0;var Q={};a.c.options={init:function(b){if("select"!==a.a.$(b))throw Error("options binding applies only to SELECT elements");for(;0]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{gd:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.cc.ud(b,c)},d)},ud:function(a,f){return a.replace(c,function(a,c,d,e,l){return b(l,c,d,f)}).replace(d,function(a,c){return b(c, -"\x3c!-- ko --\x3e","#comment",f)})},Yc:function(b,c){return a.Y.Qb(function(d,h){var m=d.nextSibling;m&&m.nodeName.toLowerCase()===c&&a.eb(m,b,h)})}}}();a.b("__tr_ambtns",a.cc.Yc);(function(){a.A={};a.A.B=function(b){if(this.B=b){var c=a.a.$(b);this.Xa="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.A.B.prototype.text=function(){var b=1===this.Xa?"text":2===this.Xa?"value":"innerHTML";if(0==arguments.length)return this.B[b];var c=arguments[0];"innerHTML"=== -b?a.a.Zb(this.B,c):this.B[b]=c};var b=a.a.h.fa()+"_";a.A.B.prototype.data=function(c){if(1===arguments.length)return a.a.h.get(this.B,b+c);a.a.h.set(this.B,b+c,arguments[1])};var c=a.a.h.fa();a.A.B.prototype.nodes=function(){var b=this.B;if(0==arguments.length){var e=a.a.h.get(b,c)||{},f=e.hb||(3===this.Xa?b.content:4===this.Xa?b:n);if(!f||e.Vc){var g=this.text();g&&g!==e.Ya&&(f=a.a.wd(g,b.ownerDocument),a.a.h.set(b,c,{hb:f,Ya:g,Vc:!0}))}return f}e=arguments[0];this.Xa!==n&&this.text("");a.a.h.set(b, -c,{hb:e})};a.A.ha=function(a){this.B=a};a.A.ha.prototype=new a.A.B;a.A.ha.prototype.constructor=a.A.ha;a.A.ha.prototype.text=function(){if(0==arguments.length){var b=a.a.h.get(this.B,c)||{};b.Ya===n&&b.hb&&(b.Ya=b.hb.innerHTML);return b.Ya}a.a.h.set(this.B,c,{Ya:arguments[0]})};a.b("templateSources",a.A);a.b("templateSources.domElement",a.A.B);a.b("templateSources.anonymousTemplate",a.A.ha)})();(function(){function b(b,c,d){var e;for(c=a.f.nextSibling(c);b&&(e=b)!==c;)b=a.f.nextSibling(e),d(e,b)} -function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],g=e.parentNode,h=a.da.instance,m=h.preprocessNode;if(m){b(e,f,function(a,b){var c=a.previousSibling,d=m.call(h,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;if(!e)return;e===f?c.push(e):(c.push(e,f),a.a.Ra(c,g))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.nc(d,b)});b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.Y.Qc(b,[d])});a.a.Ra(c,g)}}function d(a){return a.nodeType?a:0a.length?!1:a.substring(0,b.length)===b},fd:function(a,b){return b.contains(1!==a.nodeType?a.parentNode:a)},Lb:function(b){return a.a.fd(b,b.ownerDocument.documentElement)},Wc:function(b){return!!a.a.Fb(b,a.a.Lb)},$:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},rc:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(c){throw a.onError&&a.onError(c),c;}}:b},setTimeout:function(b,c){return setTimeout(a.a.rc(b),c)}, +xc:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},H:function(b,c,d){d=a.a.rc(d);if(!a.options.useOnlyNativeEvents&&jQuery)jQuery(b).on(c,d);else b.addEventListener(c,d,!1)},zb:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var d;"INPUT"===b.nodeName&&b.type&&"click"==c.toLowerCase()?(d=b.type,d="checkbox"==d||"radio"==d):d=!1;a.options.useOnlyNativeEvents||!jQuery||d?b.dispatchEvent(new Event(c)):jQuery(b).trigger(c)}, +g:function(b){return a.R(b)?b():b},Vb:function(b){return a.R(b)?b.v():b},xb:function(b,c){var d=a.a.g(c);if(null===d||d===n)d="";var h=a.f.firstChild(b);!h||3!=h.nodeType||a.f.nextSibling(h)?a.f.ta(b,[b.ownerDocument.createTextNode(d)]):h.data=d},Ca:function(a){return Array.from(a)}}}();a.b("utils",a.a);a.b("utils.arrayForEach",a.a.K);a.b("utils.arrayFirst",a.a.Fb);a.b("utils.arrayFilter",a.a.fb);a.b("utils.arrayIndexOf",a.a.L);a.b("utils.arrayPushAll",a.a.Gb);a.b("utils.arrayRemoveItem",a.a.Ma); +a.b("utils.cloneNodes",a.a.za);a.b("utils.extend",a.a.extend);a.b("utils.objectMap",a.a.Da);a.b("utils.peekObservable",a.a.Vb);a.b("utils.registerEventHandler",a.a.H);a.b("utils.stringifyJson",a.a.Hd);a.b("utils.triggerEvent",a.a.zb);a.b("utils.unwrapObservable",a.a.g);a.b("utils.objectForEach",a.a.O);a.b("utils.setTextContent",a.a.xb);a.b("unwrap",a.a.g);a.a.h=new function(){var a=0,c="__ko__"+Date.now(),d;d=function(a,b){var d=a[c];!d&&b&&(d=a[c]={});return d};return{get:function(a,b){var c=d(a, +!1);return c&&c[b]},set:function(a,b,c){(a=d(a,c!==n))&&(a[b]=c)},Nb:function(a,b,c){a=d(a,!0);return a[b]||(a[b]=c)},clear:function(a){return a[c]?(delete a[c],!0):!1},fa:function(){return a++ +c}}};a.b("utils.domData",a.a.h);a.b("utils.domData.clear",a.a.h.clear);a.a.N=new function(){function b(b,c){var d=a.a.h.get(b,e);d===n&&c&&(d=[],a.a.h.set(b,e,d));return d}function c(c){var e=b(c,!1);if(e)for(var e=e.slice(0),k=0;k",""],d=[3,"","
"], +e=[1,""],f={thead:c,tbody:c,tfoot:c,tr:[2,"","
"],td:d,th:d,option:e,optgroup:e};a.a.sa=function(c,d){var e=d;e||(e=z);var k=e.parentWindow||e.defaultView||F,m=a.a.$b(c).toLowerCase(),e=e.createElement("div"),p;p=(m=m.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&f[m[1]]||b;m=p[0];p="ignored
"+p[1]+c+p[2]+"
";for("function"==typeof k.innerShiv?e.appendChild(k.innerShiv(p)):e.innerHTML=p;m--;)e=e.lastChild;return a.a.Ca(e.lastChild.childNodes)}; +a.a.wd=function(b,c){var d=a.a.sa(b,c);return d.length&&d[0].parentElement||a.a.Rb(d)};a.a.Zb=function(b,c){a.a.Mb(b);c=a.a.g(c);if(null!==c&&c!==n){"string"!=typeof c&&(c=c.toString());for(var d=a.a.sa(c,b.ownerDocument),e=0;eb){if(5E3<= +++c){h=f;a.a.xc(Error("'Too much recursion' after processing "+c+" task groups."));break}b=f}try{d()}catch(p){a.a.xc(p)}}}function c(){b();h=f=e.length=0}var d,e=[],f=0,g=1,h=0;F.MutationObserver?d=function(a){var b=z.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c):d=z&&"onreadystatechange"in z.createElement("script")?function(a){var b=z.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;z.documentElement.removeChild(b); +b=null;a()};z.documentElement.appendChild(b)}:function(a){setTimeout(a,0)};return{scheduler:d,vb:function(b){f||a.la.scheduler(c);e[f++]=b;return g++},cancel:function(a){a=a-(g-f);a>=h&&ad[0]?p+d[0]: +d[0]),p);for(var p=1===h?p:Math.min(c+(d[1]||0),p),h=c+h-2,g=Math.max(p,h),R=[],S=[],n=2;c=r){c.push(p&&h.length?{key:p,value:h.join("")}:{unknown:p||h.join("")});p=r=0;h=[];continue}}else if(58===u){if(!r&&!p&&1===h.length){p= +h.pop();continue}}else if(47===u&&1arguments.length){if(b=z.body,!b)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!b||1!==b.nodeType&&8!==b.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");k(q(a,c),b)};a.uc=function(b){return!b||1!==b.nodeType&&8!==b.nodeType?n:a.Ad(b)};a.vc=function(b){return(b=a.uc(b))?b.$data:n};a.b("bindingHandlers", +a.c);a.b("bindingEvent",a.i);a.b("bindingEvent.subscribe",a.i.subscribe);a.b("bindingEvent.startPossiblyAsyncContentBinding",a.i.yb);a.b("applyBindings",a.nc);a.b("applyBindingsToDescendants",a.La);a.b("applyBindingAccessorsToNode",a.eb);a.b("applyBindingsToNode",a.Xc);a.b("contextFor",a.uc);a.b("dataFor",a.vc)})();(function(b){function c(c,e){var k=Object.prototype.hasOwnProperty.call(f,c)?f[c]:b,m;k?k.subscribe(e):(k=f[c]=new a.S,k.subscribe(e),d(c,function(b,d){var e=!(!d||!d.synchronous);g[c]= +{definition:b,pd:e};delete f[c];m||e?k.notifySubscribers(b):a.la.vb(function(){k.notifySubscribers(b)})}),m=!0)}function d(a,b){e("getConfig",[a],function(c){c?e("loadComponent",[a,c],function(a){b(a,c)}):b(null,null)})}function e(c,d,f,m){m||(m=a.j.loaders.slice(0));var g=m.shift();if(g){var q=g[c];if(q){var r=!1;if(q.apply(g,d.concat(function(a){r?f(null):null!==a?f(a):e(c,d,f,m)}))!==b&&(r=!0,!g.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously."); +}else e(c,d,f,m)}else f(null)}var f={},g={};a.j={get:function(d,e){var f=Object.prototype.hasOwnProperty.call(g,d)?g[d]:b;f?f.pd?a.u.C(function(){e(f.definition)}):a.la.vb(function(){e(f.definition)}):c(d,e)},sc:function(a){delete g[a]},gc:e};a.j.loaders=[];a.b("components",a.j);a.b("components.get",a.j.get);a.b("components.clearCachedDefinition",a.j.sc)})();(function(){function b(b,c,d,e){function h(){0===--v&&e(g)}var g={},v=2,u=d.template;d=d.viewModel;u?f(c,u,function(c){a.j.gc("loadTemplate", +[b,c],function(a){g.template=a;h()})}):h();d?f(c,d,function(c){a.j.gc("loadViewModel",[b,c],function(a){g[l]=a;h()})}):h()}function c(a,b,d){if("function"===typeof b)d(function(a){return new b(a)});else if("function"===typeof b[l])d(b[l]);else if("instance"in b){var e=b.instance;d(function(){return e})}else"viewModel"in b?c(a,b.viewModel,d):a("Unknown viewModel value: "+b)}function d(b){switch(a.a.$(b)){case "script":return a.a.sa(b.text);case "textarea":return a.a.sa(b.value);case "template":if(e(b.content))return a.a.za(b.content.childNodes)}return a.a.za(b.childNodes)} +function e(a){return F.DocumentFragment?a instanceof DocumentFragment:a&&11===a.nodeType}function f(a,b,c){"string"===typeof b.require?Q||F.require?(Q||F.require)([b.require],function(a){a&&"object"===typeof a&&a.Ed&&a["default"]&&(a=a["default"]);c(a)}):a("Uses require, but no AMD loader is present"):c(b)}function g(a){return function(b){throw Error("Component '"+a+"': "+b);}}var h={};a.j.register=function(b,c){if(!c)throw Error("Invalid configuration for "+b);if(a.j.pb(b))throw Error("Component "+ +b+" is already registered");h[b]=c};a.j.pb=function(a){return Object.prototype.hasOwnProperty.call(h,a)};a.j.unregister=function(b){delete h[b];a.j.sc(b)};a.j.wc={getConfig:function(b,c){c(a.j.pb(b)?h[b]:null)},loadComponent:function(a,c,d){var e=g(a);f(e,c,function(c){b(a,e,c,d)})},loadTemplate:function(b,c,f){b=g(b);if("string"===typeof c)f(a.a.sa(c));else if(c instanceof Array)f(c);else if(e(c))f(a.a.Ca(c.childNodes));else if(c.element)if(c=c.element,F.HTMLElement?c instanceof HTMLElement:c&&c.tagName&& +1===c.nodeType)f(d(c));else if("string"===typeof c){var h=z.getElementById(c);h?f(d(h)):b("Cannot find element with ID "+c)}else b("Unknown element type: "+c);else b("Unknown template value: "+c)},loadViewModel:function(a,b,d){c(g(a),b,d)}};var l="createViewModel";a.b("components.register",a.j.register);a.b("components.isRegistered",a.j.pb);a.b("components.unregister",a.j.unregister);a.b("components.defaultLoader",a.j.wc);a.j.loaders.push(a.j.wc);a.j.Fd=h})();(function(){function b(b,e){var f=b.getAttribute("params"); +if(f){var f=c.parseBindingsString(f,e,b,{valueAccessors:!0,bindingParams:!0}),f=a.a.Da(f,function(c){return a.o(c,null,{l:b})}),g=a.a.Da(f,function(c){var e=c.v();return c.ia()?a.o({read:function(){return a.a.g(c())},write:a.Wa(e)&&function(a){c()(a)},l:b}):e});Object.prototype.hasOwnProperty.call(g,"$raw")||(g.$raw=f);return g}return{$raw:{}}}a.j.getComponentNameForNode=function(b){var c=a.a.$(b);if(a.j.pb(c)&&(-1!=c.indexOf("-")||"[object HTMLUnknownElement]"==""+b))return c};a.j.lc=function(c, +e,f,g){if(1===e.nodeType){var h=a.j.getComponentNameForNode(e);if(h){c=c||{};if(c.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var l={name:h,params:b(e,f)};c.component=g?function(){return l}:l}}return c};var c=new a.da})();(function(){function b(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.a.za(c);a.f.ta(d,b)}function c(a,b,c){var d=a.createViewModel;return d?d.call(a,b,c):b}var d=0;a.c.component={init:function(e, +f,g,h,l){function k(){var a=m&&m.dispose;"function"===typeof a&&a.call(m);q&&q.s();p=m=q=null}var m,p,q,r=a.a.Ca(a.f.childNodes(e));a.f.Aa(e);a.a.N.Ka(e,k);a.o(function(){var h=a.a.g(f()),g,u;"string"===typeof h?g=h:(g=a.a.g(h.name),u=a.a.g(h.params));if(!g)throw Error("No component name specified");var n=a.i.yb(e,l),A=p=++d;a.j.get(g,function(d){if(p===A){k();if(!d)throw Error("Unknown component '"+g+"'");b(g,d,e);var f=c(d,u,{element:e,templateNodes:r});d=n.createChildContext(f,{extend:function(a){a.$component= +f;a.$componentTemplateNodes=r}});f&&f.koDescendantsComplete&&(q=a.i.subscribe(e,a.i.na,f.koDescendantsComplete,f));m=f;a.La(d,e)}})},null,{l:e});return{controlsDescendantBindings:!0}}};a.f.ba.component=!0})();a.c.attr={update:function(b,c){var d=a.a.g(c())||{};a.a.O(d,function(c,d){d=a.a.g(d);var g=c.indexOf(":"),g="lookupNamespaceURI"in b&&0f?e&&b.push(d):e||b.splice(f,1)}a.c.checked={after:["value","attr"],init:function(c,d,e){function f(){var f=c.checked,g=h();if(!a.P.Va()&&(f||!k&&!a.P.oa())){var m=a.u.C(d);if(p){var r=q?m.v():m,t=w;w=g;t!==g?f&&(b(r,g,!0),b(r,t,!1)):b(r,g,f);q&&a.Wa(m)&&m(r)}else l&&(g===n?g=f:f||(g=n)),a.m.$a(m,e,"checked",g,!0)}}function g(){var b=a.a.g(d()),e=h();p?(c.checked=0<=a.a.L(b,e),w=e):c.checked= +l&&e===n?!!b:h()===b}var h=a.tb(function(){if(e.has("checkedValue"))return a.a.g(e.get("checkedValue"));if(r)return e.has("value")?a.a.g(e.get("value")):c.value}),l="checkbox"==c.type,k="radio"==c.type;if(l||k){var m=d(),p=l&&a.a.g(m)instanceof Array,q=!(p&&m.push&&m.splice),r=k||p,w=p?h():n;k&&!c.name&&a.c.uniqueName.init(c,function(){return!0});a.o(f,null,{l:c});a.a.H(c,"click",f);a.o(g,null,{l:c});m=n}}};a.m.ua.checked=!0;a.c.checkedValue={update:function(b,d){b.value=a.a.g(d())}}})();a.c["class"]= +{update:function(b,c){var d=a.a.$b(a.a.g(c()));L(b,b.__ko__cssValue,!1);b.__ko__cssValue=d;L(b,d,!0)}};a.c.css={update:function(b,c){var d=a.a.g(c());null!==d&&"object"==typeof d?a.a.O(d,function(c,d){d=a.a.g(d);L(b,c,d)}):a.c["class"].update(b,c)}};a.c.enable={update:function(b,c){var d=a.a.g(c());d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.c.disable={update:function(b,c){a.c.enable.update(b,function(){return!a.a.g(c())})}};a.c.event={init:function(b,c,d,e,f){var g= +c()||{};a.a.O(g,function(g){"string"==typeof g&&a.a.H(b,g,function(b){var k,m=c()[g];if(m){try{var p=a.a.Ca(arguments);e=f.$data;p.unshift(e);k=m.apply(e,p)}finally{!0!==k&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(g+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.c.foreach={Gc:function(b){return function(){var c=b(),d=a.a.Vb(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.Z.Ja};a.a.g(c);return{foreach:d.data,as:d.as,noChildContext:d.noChildContext, +includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.Z.Ja}}},init:function(b,c){return a.c.template.init(b,a.c.foreach.Gc(c))},update:function(b,c,d,e,f){return a.c.template.update(b,a.c.foreach.Gc(c),d,e,f)}};a.m.Oa.foreach=!1;a.f.ba.foreach=!0;a.c.hasfocus={init:function(b,c,d){function e(e){b.__ko_hasfocusUpdating=!0;e=b.ownerDocument.activeElement===b;var f=c();a.m.$a(f,d,"hasfocus", +e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1}var f=e.bind(null,!0),g=e.bind(null,!1);a.a.H(b,"focus",f);a.a.H(b,"focusin",f);a.a.H(b,"blur",g);a.a.H(b,"focusout",g);b.__ko_hasfocusLastValue=!1},update:function(b,c){var d=!!a.a.g(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.u.C(a.a.zb,null,[b,d?"focusin":"focusout"]))}};a.m.ua.hasfocus=!0;a.c.hasFocus=a.c.hasfocus;a.m.ua.hasFocus="hasfocus"; +a.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Zb(b,c())}};(function(){function b(b,d,e){a.c[b]={init:function(b,c,h,l,k){var m,p,q={},r,n,v;if(d){l=h.get("as");var u=h.get("noChildContext");v=!(l&&u);q={as:l,noChildContext:u,exportDependencies:v}}n=(r="render"==h.get("completeOn"))||h.has(a.i.na);a.o(function(){var h=a.a.g(c()),l=!e!==!h,u=!p,t;if(v||l!==m){n&&(k=a.i.yb(b,k));if(l){if(!d||v)q.dataDependency=a.P.o();t=d?k.createChildContext("function"==typeof h? +h:c,q):a.P.oa()?k.extend(null,q):k}u&&a.P.oa()&&(p=a.a.za(a.f.childNodes(b),!0));l?(u||a.f.ta(b,a.a.za(p)),a.La(t,b)):(a.f.Aa(b),r||a.i.ka(b,a.i.D));m=l}},null,{l:b});return{controlsDescendantBindings:!0}}};a.m.Oa[b]=!1;a.f.ba[b]=!0}b("if");b("ifnot",!1,!0);b("with",!0)})();a.c.let={init:function(b,c,d,e,f){c=f.extend(c);a.La(c,b);return{controlsDescendantBindings:!0}}};a.f.ba.let=!0;var P={};a.c.options={init:function(b){if("select"!==a.a.$(b))throw Error("options binding applies only to SELECT elements"); +for(;0]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g; +return{gd:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.cc.ud(b,c)},d)},ud:function(a,f){return a.replace(c,function(a,c,d,e,m){return b(m,c,d,f)}).replace(d,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},Yc:function(b,c){return a.Y.Qb(function(d,h){var l=d.nextSibling;l&&l.nodeName.toLowerCase()===c&&a.eb(l,b,h)})}}}();a.b("__tr_ambtns",a.cc.Yc);(function(){a.A={};a.A.B=function(b){if(this.B=b){var c=a.a.$(b);this.Xa="script"===c?1:"textarea"=== +c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.A.B.prototype.text=function(){var b=1===this.Xa?"text":2===this.Xa?"value":"innerHTML";if(0==arguments.length)return this.B[b];var c=arguments[0];"innerHTML"===b?a.a.Zb(this.B,c):this.B[b]=c};var b=a.a.h.fa()+"_";a.A.B.prototype.data=function(c){if(1===arguments.length)return a.a.h.get(this.B,b+c);a.a.h.set(this.B,b+c,arguments[1])};var c=a.a.h.fa();a.A.B.prototype.nodes=function(){var b=this.B;if(0==arguments.length){var e=a.a.h.get(b, +c)||{},f=e.hb||(3===this.Xa?b.content:4===this.Xa?b:n);if(!f||e.Vc){var g=this.text();g&&g!==e.Ya&&(f=a.a.wd(g,b.ownerDocument),a.a.h.set(b,c,{hb:f,Ya:g,Vc:!0}))}return f}e=arguments[0];this.Xa!==n&&this.text("");a.a.h.set(b,c,{hb:e})};a.A.ha=function(a){this.B=a};a.A.ha.prototype=new a.A.B;a.A.ha.prototype.constructor=a.A.ha;a.A.ha.prototype.text=function(){if(0==arguments.length){var b=a.a.h.get(this.B,c)||{};b.Ya===n&&b.hb&&(b.Ya=b.hb.innerHTML);return b.Ya}a.a.h.set(this.B,c,{Ya:arguments[0]})}; +a.b("templateSources",a.A);a.b("templateSources.domElement",a.A.B);a.b("templateSources.anonymousTemplate",a.A.ha)})();(function(){function b(b,c,d){var e;for(c=a.f.nextSibling(c);b&&(e=b)!==c;)b=a.f.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],g=e.parentNode,h=a.da.instance,l=h.preprocessNode;if(l){b(e,f,function(a,b){var c=a.previousSibling,d=l.call(h,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;if(!e)return;e===f?c.push(e):(c.push(e,f),a.a.Ra(c, +g))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.nc(d,b)});b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.Y.Qc(b,[d])});a.a.Ra(c,g)}}function d(a){return a.nodeType?a:0