diff --git a/_data/project.yml b/_data/project.yml
index b53b1953ac..e01434e841 100644
--- a/_data/project.yml
+++ b/_data/project.yml
@@ -5,7 +5,7 @@ project:
github: https://github.com/vivliostyle
viewer:
name: Vivliostyle Viewer
- version: v2.29.0
+ version: v2.30.0
github: https://github.com/vivliostyle/vivliostyle.js/tree/master/packages/viewer
url: https://vivliostyle.org/viewer
sample:
@@ -33,7 +33,7 @@ pub:
screenshot: /assets/projects/screenshot-pub.png
core:
name: Vivliostyle Core
- version: v2.29.0
+ version: v2.30.0
github: https://github.com/vivliostyle/vivliostyle.js/tree/master/packages/core
thumbnail: /assets/projects/thumbnail-core.png
# screenshot:
diff --git a/downloads/vivliostyle-viewer-latest.zip b/downloads/vivliostyle-viewer-latest.zip
index f19fb91d67..7f09867cb2 100644
Binary files a/downloads/vivliostyle-viewer-latest.zip and b/downloads/vivliostyle-viewer-latest.zip differ
diff --git a/viewer/index.html b/viewer/index.html
index 64b4290c2f..e8c64ead57 100644
--- a/viewer/index.html
+++ b/viewer/index.html
@@ -30,7 +30,7 @@
- Vivliostyle Viewer (version: 2.29.0)
+ Vivliostyle Viewer (version: 2.30.0)
@@ -299,7 +299,7 @@
Vivliostyle Viewer (version: 2.29.0)
diff --git a/viewer/js/vivliostyle-viewer.js b/viewer/js/vivliostyle-viewer.js
index bc1f007692..f1105ec252 100644
--- a/viewer/js/vivliostyle-viewer.js
+++ b/viewer/js/vivliostyle-viewer.js
@@ -1,15 +1,15 @@
/**
- * @vivliostyle/viewer v2.29.0
+ * @vivliostyle/viewer v2.30.0
* Vivliostyle Viewer - HTML+CSS typesetting and rich paged viewing with EPUB/Web publications support
*
* @author Vivliostyle Foundation
* @license AGPL-3.0
* @preserve
*/
-!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n,u,i={exports:{}};
+!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n,i,u={exports:{}};
/*!
* Knockout JavaScript library v3.5.1
* (c) The Knockout.js team - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */n=i,u=i.exports,function(t){var e=this||(0,eval)("this"),i=e.document,r=e.navigator,o=e.jQuery,a=e.JSON;o||"undefined"==typeof jQuery||(o=jQuery),function(t){t(n.exports||u)}((function(n,u){function s(t,e){return(null===t||typeof t in m)&&t===e}function l(e,n){var u;return function(){u||(u=F.a.setTimeout((function(){u=t,e()}),n))}}function c(t,e){var n;return function(){clearTimeout(n),n=F.a.setTimeout(t,e)}}function h(t,e){e&&"change"!==e?"beforeChange"===e?this.pc(t):this.gb(t,e):this.qc(t)}function D(t,e){null!==e&&e.s&&e.s()}function d(t,e){var n=this.qd,u=n[w];u.ra||(this.Qb&&this.mb[e]?(n.uc(e,t,this.mb[e]),this.mb[e]=null,--this.Qb):u.I[e]||n.uc(e,t,u.J?{da:t}:n.$c(t)),t.Ja&&t.gd())}var f,p,g,E,C,v,F=void 0!==n?n:{};F.b=function(t,e){for(var n=t.split("."),u=F,i=0;iF.a.A(e,t)&&e.push(t)})),e},Mb:function(t,e,n){var u=[];if(t)for(var i=0,r=t.length;iu?n&&t.push(e):n||t.splice(u,1)},Ba:h,extend:u,setPrototypeOf:s,Ab:h?s:u,P:n,Ga:function(t,e,n){if(!t)return t;var u,i={};for(u in t)c.call(t,u)&&(i[u]=e.call(n,t[u],u,t));return i},Tb:function(t){for(;t.firstChild;)F.removeNode(t.firstChild)},Yb:function(t){for(var e=((t=F.a.la(t))[0]&&t[0].ownerDocument||i).createElement("div"),n=0,u=t.length;nE?t.setAttribute("selected",e):t.selected=e},Db:function(e){return null===e||e===t?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(t,e){return t=t||"",!(e.length>t.length)&&t.substring(0,e.length)===e},vd:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(1!==t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},Sb:function(t){return F.a.vd(t,t.ownerDocument.documentElement)},kd:function(t){return!!F.a.Lb(t,F.a.Sb)},R:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},Ac:function(t){return F.onError?function(){try{return t.apply(this,arguments)}catch(t){throw F.onError&&F.onError(t),t}}:t},setTimeout:function(t,e){return setTimeout(F.a.Ac(t),e)},Gc:function(t){setTimeout((function(){throw F.onError&&F.onError(t),t}),0)},B:function(t,e,n){var u=F.a.Ac(n);if(n=g[e],F.options.useOnlyNativeEvents||n||!o)if(n||"function"!=typeof t.addEventListener){if(void 0===t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(e){u.call(t,e)},r="on"+e;t.attachEvent(r,i),F.a.K.za(t,(function(){t.detachEvent(r,i)}))}else t.addEventListener(e,u,!1);else p||(p="function"==typeof o(t).on?"on":"bind"),o(t)[p](e,u)},Fb:function(t,n){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var u;if(u=!("input"!==F.a.R(t)||!t.type||"click"!=n.toLowerCase()||"checkbox"!=(u=t.type)&&"radio"!=u),F.options.useOnlyNativeEvents||!o||u)if("function"==typeof i.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(u=i.createEvent(f[n]||"HTMLEvents")).initEvent(n,!0,!0,e,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(u)}else if(u&&t.click)t.click();else{if(void 0===t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+n)}else o(t).trigger(n)},f:function(t){return F.O(t)?t():t},bc:function(t){return F.O(t)?t.v():t},Eb:function(t,e,n){var u;e&&("object"==typeof t.classList?(u=t.classList[n?"add":"remove"],F.a.D(e.match(C),(function(e){u.call(t.classList,e)}))):"string"==typeof t.className.baseVal?l(t.className,"baseVal",e,n):l(t,"className",e,n))},Bb:function(e,n){var u=F.a.f(n);null!==u&&u!==t||(u="");var i=F.h.firstChild(e);!i||3!=i.nodeType||F.h.nextSibling(i)?F.h.va(e,[e.ownerDocument.createTextNode(u)]):i.data=u,F.a.Ad(e)},Yc:function(t,e){if(t.name=e,7>=E)try{var n=t.name.replace(/[&<>'"]/g,(function(t){return""+t.charCodeAt(0)+";"}));t.mergeAttributes(i.createElement(""),!1)}catch(t){}},Ad:function(t){9<=E&&(t=1==t.nodeType?t:t.parentNode).style&&(t.style.zoom=t.style.zoom)},wd:function(t){if(E){var e=t.style.width;t.style.width=0,t.style.width=e}},Pd:function(t,e){t=F.a.f(t),e=F.a.f(e);for(var n=[],u=t;u<=e;u++)n.push(u);return n},la:function(t){for(var e=[],n=0,u=t.length;n",""],tbody:p,tfoot:p,tr:[2,""],td:g=[3,""],th:g,option:E=[1,""],optgroup:E},v=8>=F.a.W,F.a.ua=function(t,n){var u;if(o){if(o.parseHTML)u=o.parseHTML(t,n)||[];else if((u=o.clean([t],n))&&u[0]){for(var r=u[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(u=n)||(u=i),r=u.parentWindow||u.defaultView||e;var a,s=F.a.Db(t).toLowerCase(),l=u.createElement("div");for(a=(s=s.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&C[s[1]]||f,s=a[0],a="ignored"+a[1]+t+a[2]+"
","function"==typeof r.innerShiv?l.appendChild(r.innerShiv(a)):(v&&u.body.appendChild(l),l.innerHTML=a,v&&l.parentNode.removeChild(l));s--;)l=l.lastChild;u=F.a.la(l.lastChild.childNodes)}return u},F.a.Md=function(t,e){var n=F.a.ua(t,e);return n.length&&n[0].parentElement||F.a.Yb(n)},F.a.fc=function(e,n){if(F.a.Tb(e),null!==(n=F.a.f(n))&&n!==t)if("string"!=typeof n&&(n=n.toString()),o)o(e).html(n);else for(var u=F.a.ua(n,e.ownerDocument),i=0;ie){if(5e3<=++n){s=o,F.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}e=o}try{t()}catch(t){F.a.Gc(t)}}}function n(){t(),s=o=r.length=0}var u,r=[],o=0,a=1,s=0;return u=e.MutationObserver?function(t){var e=i.createElement("div");return new MutationObserver(t).observe(e,{attributes:!0}),function(){e.classList.toggle("foo")}}(n):i&&"onreadystatechange"in i.createElement("script")?function(t){var e=i.createElement("script");e.onreadystatechange=function(){e.onreadystatechange=null,i.documentElement.removeChild(e),e=null,t()},i.documentElement.appendChild(e)}:function(t){setTimeout(t,0)},{scheduler:u,zb:function(t){return o||F.na.scheduler(n),r[o++]=t,a++},cancel:function(t){(t-=a-o)>=s&&tn[0]?r+n[0]:n[0]),r),r=1===o?r:Math.min(e+(n[1]||0),r),o=e+o-2,c=Math.max(r,o);for(var h=[],D=[],d=2;ee;e++)t=t();return t}))},F.toJSON=function(t,e,n){return t=F.ad(t),F.a.hc(t,e,n)},n.prototype={constructor:n,save:function(t,e){var n=F.a.A(this.keys,t);0<=n?this.values[n]=e:(this.keys.push(t),this.values.push(e))},get:function(e){return 0<=(e=F.a.A(this.keys,e))?this.values[e]:t}}}(),F.b("toJS",F.ad),F.b("toJSON",F.toJSON),F.Wd=function(t,e,n){function u(e){var u=F.xb(t,n).extend({ma:"always"}),i=u.subscribe((function(t){t&&(i.s(),e(t))}));return u.notifySubscribers(u.v()),i}return"function"!=typeof Promise||e?u(e.bind(n)):new Promise(u)},F.b("when",F.Wd),F.w={M:function(e){switch(F.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?F.a.g.get(e,F.c.options.$b):7>=F.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?F.w.M(e.options[e.selectedIndex]):t;default:return e.value}},cb:function(e,n,u){switch(F.a.R(e)){case"option":"string"==typeof n?(F.a.g.set(e,F.c.options.$b,t),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(F.a.g.set(e,F.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=t);for(var i,r=-1,o=0,a=e.options.length;o=s){n.push(e&&a.length?{key:e,value:a.join("")}:{unknown:e||a.join("")}),e=s=0,a=[];continue}}else if(58===h){if(!s&&!e&&1===a.length){e=a.pop();continue}}else{if(47===h&&1arguments.length){if(!(n=i.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");D(f(t,u),n)},F.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?t:F.Td(e)},F.Ec=function(e){return(e=F.Dc(e))?e.$data:t},F.b("bindingHandlers",F.c),F.b("bindingEvent",F.i),F.b("bindingEvent.subscribe",F.i.subscribe),F.b("bindingEvent.startPossiblyAsyncContentBinding",F.i.Cb),F.b("applyBindings",F.vc),F.b("applyBindingsToDescendants",F.Oa),F.b("applyBindingAccessorsToNode",F.ib),F.b("applyBindingsToNode",F.ld),F.b("contextFor",F.Dc),F.b("dataFor",F.Ec)}(),function(t){function e(e,u){var o,a=Object.prototype.hasOwnProperty.call(i,e)?i[e]:t;a?a.subscribe(u):((a=i[e]=new F.T).subscribe(u),n(e,(function(t,n){var u=!(!n||!n.synchronous);r[e]={definition:t,Gd:u},delete i[e],o||u?a.notifySubscribers(t):F.na.zb((function(){a.notifySubscribers(t)}))})),o=!0)}function n(t,e){u("getConfig",[t],(function(n){n?u("loadComponent",[t,n],(function(t){e(t,n)})):e(null,null)}))}function u(e,n,i,r){r||(r=F.j.loaders.slice(0));var o=r.shift();if(o){var a=o[e];if(a){var s=!1;if(a.apply(o,n.concat((function(t){s?i(null):null!==t?i(t):u(e,n,i,r)})))!==t&&(s=!0,!o.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else u(e,n,i,r)}else i(null)}var i={},r={};F.j={get:function(n,u){var i=Object.prototype.hasOwnProperty.call(r,n)?r[n]:t;i?i.Gd?F.u.G((function(){u(i.definition)})):F.na.zb((function(){u(i.definition)})):e(n,u)},Bc:function(t){delete r[t]},oc:u},F.j.loaders=[],F.b("components",F.j),F.b("components.get",F.j.get),F.b("components.clearCachedDefinition",F.j.Bc)}(),function(){function t(t,e,n,u){function i(){0==--o&&u(r)}var r={},o=2,s=n.template;n=n.viewModel,s?a(e,s,(function(e){F.j.oc("loadTemplate",[t,e],(function(t){r.template=t,i()}))})):i(),n?a(e,n,(function(e){F.j.oc("loadViewModel",[t,e],(function(t){r[c]=t,i()}))})):i()}function n(t,e,u){if("function"==typeof e)u((function(t){return new e(t)}));else if("function"==typeof e[c])u(e[c]);else if("instance"in e){var i=e.instance;u((function(){return i}))}else"viewModel"in e?n(t,e.viewModel,u):t("Unknown viewModel value: "+e)}function r(t){switch(F.a.R(t)){case"script":return F.a.ua(t.text);case"textarea":return F.a.ua(t.value);case"template":if(o(t.content))return F.a.Ca(t.content.childNodes)}return F.a.Ca(t.childNodes)}function o(t){return e.DocumentFragment?t instanceof DocumentFragment:t&&11===t.nodeType}function a(t,n,i){"string"==typeof n.require?u||e.require?(u||e.require)([n.require],(function(t){t&&"object"==typeof t&&t.Xd&&t.default&&(t=t.default),i(t)})):t("Uses require, but no AMD loader is present"):i(n)}function s(t){return function(e){throw Error("Component '"+t+"': "+e)}}var l={};F.j.register=function(t,e){if(!e)throw Error("Invalid configuration for "+t);if(F.j.tb(t))throw Error("Component "+t+" is already registered");l[t]=e},F.j.tb=function(t){return Object.prototype.hasOwnProperty.call(l,t)},F.j.unregister=function(t){delete l[t],F.j.Bc(t)},F.j.Fc={getConfig:function(t,e){e(F.j.tb(t)?l[t]:null)},loadComponent:function(e,n,u){var i=s(e);a(i,n,(function(n){t(e,i,n,u)}))},loadTemplate:function(t,n,u){if(t=s(t),"string"==typeof n)u(F.a.ua(n));else if(n instanceof Array)u(n);else if(o(n))u(F.a.la(n.childNodes));else if(n.element)if(n=n.element,e.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)u(r(n));else if("string"==typeof n){var a=i.getElementById(n);a?u(r(a)):t("Cannot find element with ID "+n)}else t("Unknown element type: "+n);else t("Unknown template value: "+n)},loadViewModel:function(t,e,u){n(s(t),e,u)}};var c="createViewModel";F.b("components.register",F.j.register),F.b("components.isRegistered",F.j.tb),F.b("components.unregister",F.j.unregister),F.b("components.defaultLoader",F.j.Fc),F.j.loaders.push(F.j.Fc),F.j.dd=l}(),function(){function t(t,n){if(u=t.getAttribute("params")){var u=e.parseBindingsString(u,n,t,{valueAccessors:!0,bindingParams:!0}),i=(u=F.a.Ga(u,(function(e){return F.o(e,null,{l:t})})),F.a.Ga(u,(function(e){var n=e.v();return e.ja()?F.o({read:function(){return F.a.f(e())},write:F.Za(n)&&function(t){e()(t)},l:t}):n})));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=u),i}return{$raw:{}}}F.j.getComponentNameForNode=function(t){var e=F.a.R(t);if(F.j.tb(e)&&(-1!=e.indexOf("-")||"[object HTMLUnknownElement]"==""+t||8>=F.a.W&&t.tagName===e))return e},F.j.tc=function(e,n,u,i){if(1===n.nodeType){var r=F.j.getComponentNameForNode(n);if(r){if((e=e||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var o={name:r,params:t(n,u)};e.component=i?function(){return o}:o}}return e};var e=new F.ga;9>F.a.W&&(F.j.register=function(t){return function(e){return t.apply(this,arguments)}}(F.j.register),i.createDocumentFragment=function(t){return function(){var e=t();return F.j.dd,e}}(i.createDocumentFragment))}(),function(){var t=0;F.c.component={init:function(e,n,u,i,r){function o(){var t=a&&a.dispose;"function"==typeof t&&t.call(a),l&&l.s(),s=a=l=null}var a,s,l,c=F.a.la(F.h.childNodes(e));return F.h.Ea(e),F.a.K.za(e,o),F.o((function(){var u,i,h=F.a.f(n());if("string"==typeof h?u=h:(u=F.a.f(h.name),i=F.a.f(h.params)),!u)throw Error("No component name specified");var D=F.i.Cb(e,r),d=s=++t;F.j.get(u,(function(t){if(s===d){if(o(),!t)throw Error("Unknown component '"+u+"'");!function(t,e,n){if(!(e=e.template))throw Error("Component '"+t+"' has no template");t=F.a.Ca(e),F.h.va(n,t)}(u,t,e);var n=function(t,e,n){var u=t.createViewModel;return u?u.call(t,e,n):e}(t,i,{element:e,templateNodes:c});t=D.createChildContext(n,{extend:function(t){t.$component=n,t.$componentTemplateNodes=c}}),n&&n.koDescendantsComplete&&(l=F.i.subscribe(e,F.i.pa,n.koDescendantsComplete,n)),a=n,F.Oa(t,e)}}))}),null,{l:e}),{controlsDescendantBindings:!0}}},F.h.ea.component=!0}();var I={class:"className",for:"htmlFor"};F.c.attr={update:function(e,n){var u=F.a.f(n())||{};F.a.P(u,(function(n,u){u=F.a.f(u);var i=n.indexOf(":"),r=(i="lookupNamespaceURI"in e&&0=F.a.W&&n in I?(n=I[n],r?e.removeAttribute(n):e[n]=u):r||(i?e.setAttributeNS(i,n,u):e.setAttribute(n,u)),"name"===n&&F.a.Yc(e,r?"":u)}))}},F.c.checked={after:["value","attr"],init:function(e,n,u){function i(){var i=e.checked,s=r();if(!F.S.Ya()&&(i||!a&&!F.S.qa())){var h=F.u.G(n);if(l){var d=c?h.v():h,f=D;D=s,f!==s?i&&(F.a.Na(d,s,!0),F.a.Na(d,f,!1)):F.a.Na(d,s,i),c&&F.Za(h)&&h(d)}else o&&(s===t?s=i:i||(s=t)),F.m.eb(h,u,"checked",s,!0)}}var r=F.xb((function(){return u.has("checkedValue")?F.a.f(u.get("checkedValue")):h?u.has("value")?F.a.f(u.get("value")):e.value:void 0})),o="checkbox"==e.type,a="radio"==e.type;if(o||a){var s=n(),l=o&&F.a.f(s)instanceof Array,c=!(l&&s.push&&s.splice),h=a||l,D=l?r():t;a&&!e.name&&F.c.uniqueName.init(e,(function(){return!0})),F.o(i,null,{l:e}),F.a.B(e,"click",i),F.o((function(){var u=F.a.f(n()),i=r();l?(e.checked=0<=F.a.A(u,i),D=i):e.checked=o&&i===t?!!u:r()===u}),null,{l:e}),s=t}}},F.m.wa.checked=!0,F.c.checkedValue={update:function(t,e){t.value=F.a.f(e())}},F.c.class={update:function(t,e){var n=F.a.Db(F.a.f(e()));F.a.Eb(t,t.__ko__cssValue,!1),t.__ko__cssValue=n,F.a.Eb(t,n,!0)}},F.c.css={update:function(t,e){var n=F.a.f(e());null!==n&&"object"==typeof n?F.a.P(n,(function(e,n){n=F.a.f(n),F.a.Eb(t,e,n)})):F.c.class.update(t,e)}},F.c.enable={update:function(t,e){var n=F.a.f(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},F.c.disable={update:function(t,e){F.c.enable.update(t,(function(){return!F.a.f(e())}))}},F.c.event={init:function(t,e,n,u,i){var r=e()||{};F.a.P(r,(function(r){"string"==typeof r&&F.a.B(t,r,(function(t){var o,a=e()[r];if(a){try{var s=F.a.la(arguments);u=i.$data,s.unshift(u),o=a.apply(u,s)}finally{!0!==o&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===n.get(r+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}}))}))}},F.c.foreach={Rc:function(t){return function(){var e=t(),n=F.a.bc(e);return n&&"number"!=typeof n.length?(F.a.f(e),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:F.ba.Ma}):{foreach:e,templateEngine:F.ba.Ma}}},init:function(t,e){return F.c.template.init(t,F.c.foreach.Rc(e))},update:function(t,e,n,u,i){return F.c.template.update(t,F.c.foreach.Rc(e),n,u,i)}},F.m.Ra.foreach=!1,F.h.ea.foreach=!0,F.c.hasfocus={init:function(t,e,n){function u(u){t.__ko_hasfocusUpdating=!0;var i=t.ownerDocument;if("activeElement"in i){var r;try{r=i.activeElement}catch(t){r=i.body}u=r===t}i=e(),F.m.eb(i,n,"hasfocus",u,!0),t.__ko_hasfocusLastValue=u,t.__ko_hasfocusUpdating=!1}var i=u.bind(null,!0),r=u.bind(null,!1);F.a.B(t,"focus",i),F.a.B(t,"focusin",i),F.a.B(t,"blur",r),F.a.B(t,"focusout",r),t.__ko_hasfocusLastValue=!1},update:function(t,e){var n=!!F.a.f(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),!n&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),F.u.G(F.a.Fb,null,[t,n?"focusin":"focusout"]))}},F.m.wa.hasfocus=!0,F.c.hasFocus=F.c.hasfocus,F.m.wa.hasFocus="hasfocus",F.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){F.a.fc(t,e())}},function(){function t(t,e,n){F.c[t]={init:function(t,u,i,r,o){var a,s,l,c,h,D={};if(e){r=i.get("as");var d=i.get("noChildContext");D={as:r,noChildContext:d,exportDependencies:h=!(r&&d)}}return c=(l="render"==i.get("completeOn"))||i.has(F.i.pa),F.o((function(){var i,r=F.a.f(u()),d=!n!=!r,f=!s;(h||d!==a)&&(c&&(o=F.i.Cb(t,o)),d&&(e&&!h||(D.dataDependency=F.S.o()),i=e?o.createChildContext("function"==typeof r?r:u,D):F.S.qa()?o.extend(null,D):o),f&&F.S.qa()&&(s=F.a.Ca(F.h.childNodes(t),!0)),d?(f||F.h.va(t,F.a.Ca(s)),F.Oa(i,t)):(F.h.Ea(t),l||F.i.ma(t,F.i.H)),a=d)}),null,{l:t}),{controlsDescendantBindings:!0}}},F.m.Ra[t]=!1,F.h.ea[t]=!0}t("if"),t("ifnot",!1,!0),t("with",!0)}(),F.c.let={init:function(t,e,n,u,i){return e=i.extend(e),F.Oa(e,t),{controlsDescendantBindings:!0}}},F.h.ea.let=!0;var P={};F.c.options={init:function(t){if("select"!==F.a.R(t))throw Error("options binding applies only to SELECT elements");for(;0r)var l=F.a.g.Z(),c=F.a.g.Z(),h=function(t){var e=this.activeElement;(e=e&&F.a.g.get(e,c))&&e(t)},D=function(t,e){var n=t.ownerDocument;F.a.g.get(n,l)||(F.a.g.set(n,l,!0),F.a.B(n,"selectionchange",h)),F.a.g.set(t,c,e)};F.c.textInput={init:function(e,a,s){function l(t,n){F.a.B(e,t,n)}function c(){d||(f=e.value,d=F.a.setTimeout(h,4))}function h(){clearTimeout(d),f=d=t;var n=e.value;p!==n&&(p=n,F.m.eb(a(),s,"textInput",n))}var d,f,p=e.value,g=9==F.a.W?c:h,E=!1;r&&l("keypress",h),11>r&&l("propertychange",(function(t){E||"value"!==t.propertyName||g()})),8==r&&(l("keyup",h),l("keydown",h)),D&&(D(e,g),l("dragend",c)),(!r||9<=r)&&l("input",g),5>u&&"textarea"===F.a.R(e)?(l("keydown",c),l("paste",c),l("cut",c)):11>n?l("keydown",c):4>i?(l("DOMAutoComplete",h),l("dragdrop",h),l("drop",h)):o&&"number"===e.type&&l("keydown",c),l("change",h),l("blur",h),F.o((function n(){var u=F.a.f(a());null!==u&&u!==t||(u=""),f!==t&&u===f?F.a.setTimeout(n,4):e.value!==u&&(E=!0,e.value=u,E=!1,p=e.value)}),null,{l:e})}},F.m.wa.textInput=!0,F.c.textinput={preprocess:function(t,e,n){n("textInput",t)}}}(),F.c.uniqueName={init:function(t,e){if(e()){var n="ko_unique_"+ ++F.c.uniqueName.rd;F.a.Yc(t,n)}}},F.c.uniqueName.rd=0,F.c.using={init:function(t,e,n,u,i){var r;return n.has("as")&&(r={as:n.get("as"),noChildContext:n.get("noChildContext")}),e=i.createChildContext(e,r),F.Oa(e,t),{controlsDescendantBindings:!0}}},F.h.ea.using=!0,F.c.value={init:function(e,n,u){var i=F.a.R(e),r="input"==i;if(!r||"checkbox"!=e.type&&"radio"!=e.type){var o=[],a=u.get("valueUpdate"),s=!1,l=null;a&&(o="string"==typeof a?[a]:F.a.wc(a),F.a.Pa(o,"change"));var c,h,D=function(){l=null,s=!1;var t=n(),i=F.w.M(e);F.m.eb(t,u,"value",i)};!F.a.W||!r||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=F.a.A(o,"propertychange")||(F.a.B(e,"propertychange",(function(){s=!0})),F.a.B(e,"focus",(function(){s=!1})),F.a.B(e,"blur",(function(){s&&D()}))),F.a.D(o,(function(t){var n=D;F.a.Ud(t,"after")&&(n=function(){l=F.w.M(e),F.a.setTimeout(D,0)},t=t.substring(5)),F.a.B(e,t,n)})),c=r&&"file"==e.type?function(){var u=F.a.f(n());null===u||u===t||""===u?e.value="":F.u.G(D)}:function(){var r=F.a.f(n()),o=F.w.M(e);null!==l&&r===l?F.a.setTimeout(c,0):r===o&&o!==t||("select"===i?(o=u.get("valueAllowUnset"),F.w.cb(e,r,o),o||r===F.w.M(e)||F.u.G(D)):F.w.cb(e,r))},"select"===i?F.i.subscribe(e,F.i.H,(function(){h?u.get("valueAllowUnset")?c():D():(F.a.B(e,"change",D),h=F.o(c,null,{l:e}))}),null,{notifyImmediately:!0}):(F.a.B(e,"change",D),F.o(c,null,{l:e}))}else F.ib(e,{checkedValue:n})},update:function(){}},F.m.wa.value=!0,F.c.visible={update:function(t,e){var n=F.a.f(e()),u="none"!=t.style.display;n&&!u?t.style.display="":!n&&u&&(t.style.display="none")}},F.c.hidden={update:function(t,e){F.c.visible.update(t,(function(){return!F.a.f(e())}))}},function(t){F.c[t]={init:function(e,n,u,i,r){return F.c.event.init.call(this,e,(function(){var e={};return e[t]=n(),e}),u,i,r)}}}("click"),F.ca=function(){},F.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},F.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},F.ca.prototype.makeTemplateSource=function(t,e){if("string"==typeof t){var n=(e=e||i).getElementById(t);if(!n)throw Error("Cannot find template with ID "+t);return new F.C.F(n)}if(1==t.nodeType||8==t.nodeType)return new F.C.ia(t);throw Error("Unknown template type: "+t)},F.ca.prototype.renderTemplate=function(t,e,n,u){return t=this.makeTemplateSource(t,u),this.renderTemplateSource(t,e,n,u)},F.ca.prototype.isTemplateRewritten=function(t,e){return!1===this.allowTemplateRewriting||this.makeTemplateSource(t,e).data("isRewritten")},F.ca.prototype.rewriteTemplate=function(t,e,n){e=e((t=this.makeTemplateSource(t,n)).text()),t.text(e),t.data("isRewritten",!0)},F.b("templateEngine",F.ca),F.kc=function(){function t(t,e,n,u){t=F.m.ac(t);for(var i=F.m.Ra,r=0;r]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(t,e,n){e.isTemplateRewritten(t,n)||e.rewriteTemplate(t,(function(t){return F.kc.Ld(t,e)}),n)},Ld:function(u,i){return u.replace(e,(function(e,n,u,r,o){return t(o,n,u,i)})).replace(n,(function(e,n){return t(n,"\x3c!-- ko --\x3e","#comment",i)}))},md:function(t,e){return F.aa.Xb((function(n,u){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===e&&F.ib(i,t,u)}))}}}(),F.b("__tr_ambtns",F.kc.md),function(){F.C={},F.C.F=function(t){if(this.F=t){var e=F.a.R(t);this.ab="script"===e?1:"textarea"===e?2:"template"==e&&t.content&&11===t.content.nodeType?3:4}},F.C.F.prototype.text=function(){var t=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[t];var e=arguments[0];"innerHTML"===t?F.a.fc(this.F,e):this.F[t]=e};var e=F.a.g.Z()+"_";F.C.F.prototype.data=function(t){if(1===arguments.length)return F.a.g.get(this.F,e+t);F.a.g.set(this.F,e+t,arguments[1])};var n=F.a.g.Z();F.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var u=F.a.g.get(e,n)||{},i=u.lb||(3===this.ab?e.content:4===this.ab?e:t);if(!i||u.jd){var r=this.text();r&&r!==u.bb&&(i=F.a.Md(r,e.ownerDocument),F.a.g.set(e,n,{lb:i,bb:r,jd:!0}))}return i}u=arguments[0],this.ab!==t&&this.text(""),F.a.g.set(e,n,{lb:u})},F.C.ia=function(t){this.F=t},F.C.ia.prototype=new F.C.F,F.C.ia.prototype.constructor=F.C.ia,F.C.ia.prototype.text=function(){if(0==arguments.length){var e=F.a.g.get(this.F,n)||{};return e.bb===t&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}F.a.g.set(this.F,n,{bb:arguments[0]})},F.b("templateSources",F.C),F.b("templateSources.domElement",F.C.F),F.b("templateSources.anonymousTemplate",F.C.ia)}(),function(){function e(t,e,n){var u;for(e=F.h.nextSibling(e);t&&(u=t)!==e;)n(u,t=F.h.nextSibling(u))}function n(t,n){if(t.length){var u=t[0],i=t[t.length-1],r=u.parentNode,o=F.ga.instance,a=o.preprocessNode;if(a){if(e(u,i,(function(t,e){var n=t.previousSibling,r=a.call(o,t);r&&(t===u&&(u=r[0]||e),t===i&&(i=r[r.length-1]||n))})),t.length=0,!u)return;u===i?t.push(u):(t.push(u,i),F.a.Ua(t,r))}e(u,i,(function(t){1!==t.nodeType&&8!==t.nodeType||F.vc(n,t)})),e(u,i,(function(t){1!==t.nodeType&&8!==t.nodeType||F.aa.cd(t,[n])})),F.a.Ua(t,r)}}function u(t){return t.nodeType?t:0F.a.W||!t.nodes?null:t.nodes())?F.a.la(e.cloneNode(!0).childNodes):(t=t.text(),F.a.ua(t,u))},F.ba.Ma=new F.ba,F.gc(F.ba.Ma),F.b("nativeTemplateEngine",F.ba),function(){F.$a=function(){var t=this.Hd=function(){if(!o||!o.tmpl)return 0;try{if(0<=o.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(e,n,u,r){if(r=r||i,u=u||{},2>t)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var a=e.data("precompiled");return a||(a=e.text()||"",a=o.template(null,"{{ko_with $item.koBindingContext}}"+a+"{{/ko_with}}"),e.data("precompiled",a)),e=[n.$data],n=o.extend({koBindingContext:n},u.templateOptions),(n=o.tmpl(a,e,n)).appendTo(r.createElement("div")),o.fragments={},n},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){i.write("