-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.min.js
More file actions
55 lines (46 loc) · 329 KB
/
embed.min.js
File metadata and controls
55 lines (46 loc) · 329 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/
// These are a subset of the easing equations found at
// https://raw.github.com/danro/easing-js - license info
// follows:
// --------------------------------------------------
// easing.js v0.5.4
// Generic set of easing functions with AMD support
// https://github.com/danro/easing-js
// This code may be freely distributed under the MIT license
// http://danro.mit-license.org/
// --------------------------------------------------
// All functions adapted from Thomas Fuchs & Jeremy Kahn
// Easing Equations (c) 2003 Robert Penner, BSD license
// https://raw.github.com/danro/easing-js/master/LICENSE
// --------------------------------------------------
/*
rv.js - v0.1.6 - 2014-12-28
==========================================================
https://github.com/ractivejs/rv
MIT licensed.
*/
/* toSource by Marcello Bastea-Forte - zlib license */
var requirejs,require,define;!function(t){function e(t,e){return y.call(t,e)}function n(t,e){var n,i,r,s,o,a,u,l,c,h,f,d,p=e&&e.split("/"),g=m.map,v=g&&g["*"]||{};if(t){for(t=t.split("/"),o=t.length-1,m.nodeIdCompat&&w.test(t[o])&&(t[o]=t[o].replace(w,"")),"."===t[0].charAt(0)&&p&&(d=p.slice(0,p.length-1),t=d.concat(t)),c=0;c<t.length;c++)if("."===(f=t[c]))t.splice(c,1),c-=1;else if(".."===f){if(0===c||1===c&&".."===t[2]||".."===t[c-1])continue;c>0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}if((p||v)&&g){for(n=t.split("/"),c=n.length;c>0;c-=1){if(i=n.slice(0,c).join("/"),p)for(h=p.length;h>0;h-=1)if((r=g[p.slice(0,h).join("/")])&&(r=r[i])){s=r,a=c;break}if(s)break;!u&&v&&v[i]&&(u=v[i],l=c)}!s&&u&&(s=u,a=l),s&&(n.splice(0,a,s),t=n.join("/"))}return t}function i(e,n){return function(){var i=b.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),h.apply(t,i.concat([e,n]))}}function r(t){return function(e){return n(e,t)}}function s(t){return function(e){p[t]=e}}function o(n){if(e(g,n)){var i=g[n];delete g[n],v[n]=!0,c.apply(t,i)}if(!e(p,n)&&!e(v,n))throw new Error("No "+n);return p[n]}function a(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function u(t){return t?a(t):[]}function l(t){return function(){return m&&m.config&&m.config[t]||{}}}var c,h,f,d,p={},g={},m={},v={},y=Object.prototype.hasOwnProperty,b=[].slice,w=/\.js$/;f=function(t,e){var i,s=a(t),u=s[0],l=e[1];return t=s[1],u&&(u=n(u,l),i=o(u)),u?t=i&&i.normalize?i.normalize(t,r(l)):n(t,l):(t=n(t,l),s=a(t),u=s[0],t=s[1],u&&(i=o(u))),{f:u?u+"!"+t:t,n:t,pr:u,p:i}},d={require:function(t){return i(t)},exports:function(t){var e=p[t];return void 0!==e?e:p[t]={}},module:function(t){return{id:t,uri:"",exports:p[t],config:l(t)}}},c=function(n,r,a,l){var c,h,m,y,b,w,x,k=[],E=typeof a;if(l=l||n,w=u(l),"undefined"===E||"function"===E){for(r=!r.length&&a.length?["require","exports","module"]:r,b=0;b<r.length;b+=1)if(y=f(r[b],w),"require"===(h=y.f))k[b]=d.require(n);else if("exports"===h)k[b]=d.exports(n),x=!0;else if("module"===h)c=k[b]=d.module(n);else if(e(p,h)||e(g,h)||e(v,h))k[b]=o(h);else{if(!y.p)throw new Error(n+" missing "+h);y.p.load(y.n,i(l,!0),s(h),{}),k[b]=p[h]}m=a?a.apply(p[n],k):void 0,n&&(c&&c.exports!==t&&c.exports!==p[n]?p[n]=c.exports:m===t&&x||(p[n]=m))}else n&&(p[n]=a)},requirejs=require=h=function(e,n,i,r,s){if("string"==typeof e)return d[e]?d[e](n):o(f(e,u(n)).f);if(!e.splice){if(m=e,m.deps&&h(m.deps,m.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=r,r=s),r?c(t,e,n,i):setTimeout(function(){c(t,e,n,i)},4),h},h.config=function(t){return h(t)},requirejs._defined=p,define=function(t,n,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");n.splice||(i=n,n=[]),e(p,t)||e(g,t)||(g[t]=[t,n,i])},define.amd={jQuery:!0}}(),define("node_modules/almond/almond",function(){}),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t,e,n){n=n||wt;var i,r,s=n.createElement("script");if(s.text=t,e)for(i in xt)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ft[dt.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,n=i(t);return!yt(t)&&!bt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function o(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function a(t,e,n){return yt(e)?Et.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?Et.grep(t,function(t){return t===e!==n}):"string"!=typeof e?Et.grep(t,function(t){return ht.call(e,t)>-1!==n}):Et.filter(e,t,n)}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function l(t){var e={};return Et.each(t.match(qt)||[],function(t,n){e[n]=!0}),e}function c(t){return t}function h(t){throw t}function f(t,e,n,i){var r;try{t&&yt(r=t.promise)?r.call(t).done(e).fail(n):t&&yt(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function d(){wt.removeEventListener("DOMContentLoaded",d),t.removeEventListener("load",d),Et.ready()}function p(t,e){return e.toUpperCase()}function g(t){return t.replace(Kt,"ms-").replace($t,p)}function m(){this.expando=Et.expando+m.uid++}function v(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Xt.test(t)?JSON.parse(t):t)}function y(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Gt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=v(n)}catch(t){}Zt.set(t,e,n)}else n=void 0;return n}function b(t,e,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return Et.css(t,e,"")},u=a(),l=n&&n[3]||(Et.cssNumber[e]?"":"px"),c=t.nodeType&&(Et.cssNumber[e]||"px"!==l&&+u)&&Yt.exec(Et.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;o--;)Et.style(t,e,c+l),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),c/=s;c*=2,Et.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}function w(t){var e,n=t.ownerDocument,i=t.nodeName,r=re[i];return r||(e=n.body.appendChild(n.createElement(i)),r=Et.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),re[i]=r,r)}function x(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)i=t[s],i.style&&(n=i.style.display,e?("none"===n&&(r[s]=Wt.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&ie(i)&&(r[s]=w(i))):"none"!==n&&(r[s]="none",Wt.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}function k(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&s(t,e)?Et.merge([t],n):n}function E(t,e){for(var n=0,i=t.length;n<i;n++)Wt.set(t[n],"globalEval",!e||Wt.get(e[n],"globalEval"))}function _(t,e,n,r,s){for(var o,a,u,l,c,h,f=e.createDocumentFragment(),d=[],p=0,g=t.length;p<g;p++)if((o=t[p])||0===o)if("object"===i(o))Et.merge(d,o.nodeType?[o]:o);else if(le.test(o)){for(a=a||f.appendChild(e.createElement("div")),u=(oe.exec(o)||["",""])[1].toLowerCase(),l=ue[u]||ue._default,a.innerHTML=l[1]+Et.htmlPrefilter(o)+l[2],h=l[0];h--;)a=a.lastChild;Et.merge(d,a.childNodes),a=f.firstChild,a.textContent=""}else d.push(e.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&Et.inArray(o,r)>-1)s&&s.push(o);else if(c=ee(o),a=k(f.appendChild(o),"script"),c&&E(a),n)for(h=0;o=a[h++];)ae.test(o.type||"")&&n.push(o);return f}function C(){return!0}function S(){return!1}function T(t,e,n,i,r,s){var o,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)T(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=S;else if(!r)return t;return 1===s&&(o=r,r=function(t){return Et().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Et.guid++)),t.each(function(){Et.event.add(this,e,r,i,n)})}function A(t,e,n){if(!n)return void(void 0===Wt.get(t,e)&&Et.event.add(t,e,C));Wt.set(t,e,!1),Et.event.add(t,e,{namespace:!1,handler:function(t){var n,i=Wt.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(Et.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=ut.call(arguments),Wt.set(this,e,i),this[e](),n=Wt.get(this,e),Wt.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(Wt.set(this,e,Et.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=C)}})}function j(t,e){return s(t,"table")&&s(11!==e.nodeType?e:e.firstChild,"tr")?Et(t).children("tbody")[0]||t:t}function N(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function O(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function P(t,e){var n,i,r,s,o,a,u;if(1===e.nodeType){if(Wt.hasData(t)&&(s=Wt.get(t),u=s.events)){Wt.remove(e,"handle events");for(r in u)for(n=0,i=u[r].length;n<i;n++)Et.event.add(e,r,u[r][n])}Zt.hasData(t)&&(o=Zt.access(t),a=Et.extend({},o),Zt.set(e,a))}}function D(t,e){var n=e.nodeName.toLowerCase();"input"===n&&se.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function M(t,e,i,r){e=lt(e);var s,o,a,u,l,c,h=0,f=t.length,d=f-1,p=e[0],g=yt(p);if(g||f>1&&"string"==typeof p&&!vt.checkClone&&fe.test(p))return t.each(function(n){var s=t.eq(n);g&&(e[0]=p.call(this,n,s.html())),M(s,e,i,r)});if(f&&(s=_(e,t[0].ownerDocument,!1,t,r),o=s.firstChild,1===s.childNodes.length&&(s=o),o||r)){for(a=Et.map(k(s,"script"),N),u=a.length;h<f;h++)l=s,h!==d&&(l=Et.clone(l,!0,!0),u&&Et.merge(a,k(l,"script"))),i.call(t[h],l,h);if(u)for(c=a[a.length-1].ownerDocument,Et.map(a,O),h=0;h<u;h++)l=a[h],ae.test(l.type||"")&&!Wt.access(l,"globalEval")&&Et.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Et._evalUrl&&!l.noModule&&Et._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):n(l.textContent.replace(de,""),l,c))}return t}function R(t,e,n){for(var i,r=e?Et.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||Et.cleanData(k(i)),i.parentNode&&(n&&ee(i)&&E(k(i,"script")),i.parentNode.removeChild(i));return t}function L(t,e,n){var i,r,s,o,a=ge.test(e),u=t.style;return n=n||me(t),n&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(At,"$1")||void 0),""!==o||ee(t)||(o=Et.style(t,e)),!vt.pixelBoxStyles()&&pe.test(o)&&ye.test(e)&&(i=u.width,r=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=i,u.minWidth=r,u.maxWidth=s)),void 0!==o?o+"":o}function I(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function V(t){for(var e=t[0].toUpperCase()+t.slice(1),n=be.length;n--;)if((t=be[n]+e)in we)return t}function B(t){var e=Et.cssProps[t]||xe[t];return e||(t in we?t:xe[t]=V(t)||t)}function q(t,e,n){var i=Yt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function F(t,e,n,i,r,s){var o="width"===e?1:0,a=0,u=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=Et.css(t,n+Jt[o],!0,r)),i?("content"===n&&(u-=Et.css(t,"padding"+Jt[o],!0,r)),"margin"!==n&&(u-=Et.css(t,"border"+Jt[o]+"Width",!0,r))):(u+=Et.css(t,"padding"+Jt[o],!0,r),"padding"!==n?u+=Et.css(t,"border"+Jt[o]+"Width",!0,r):a+=Et.css(t,"border"+Jt[o]+"Width",!0,r));return!i&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+l}function z(t,e,n){var i=me(t),r=!vt.boxSizingReliable()||n,o=r&&"border-box"===Et.css(t,"boxSizing",!1,i),a=o,u=L(t,e,i),l="offset"+e[0].toUpperCase()+e.slice(1);if(pe.test(u)){if(!n)return u;u="auto"}return(!vt.boxSizingReliable()&&o||!vt.reliableTrDimensions()&&s(t,"tr")||"auto"===u||!parseFloat(u)&&"inline"===Et.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===Et.css(t,"boxSizing",!1,i),(a=l in t)&&(u=t[l])),(u=parseFloat(u)||0)+F(t,e,n||(o?"border":"content"),a,i,u)+"px"}function H(t,e,n,i,r){return new H.prototype.init(t,e,n,i,r)}function K(){Se&&(!1===wt.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(K):t.setTimeout(K,Et.fx.interval),Et.fx.tick())}function $(){return t.setTimeout(function(){Ce=void 0}),Ce=Date.now()}function U(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Jt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function W(t,e,n){for(var i,r=(G.tweeners[e]||[]).concat(G.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function Z(t,e,n){var i,r,s,o,a,u,l,c,h="width"in e||"height"in e,f=this,d={},p=t.style,g=t.nodeType&&ie(t),m=Wt.get(t,"fxshow");n.queue||(o=Et._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,Et.queue(t,"fx").length||o.empty.fire()})}));for(i in e)if(r=e[i],Te.test(r)){if(delete e[i],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}d[i]=m&&m[i]||Et.style(t,i)}if((u=!Et.isEmptyObject(e))||!Et.isEmptyObject(d)){h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=m&&m.display,null==l&&(l=Wt.get(t,"display")),c=Et.css(t,"display"),"none"===c&&(l?c=l:(x([t],!0),l=t.style.display||l,c=Et.css(t,"display"),x([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Et.css(t,"float")&&(u||(f.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1;for(i in d)u||(m?"hidden"in m&&(g=m.hidden):m=Wt.access(t,"fxshow",{display:l}),s&&(m.hidden=!g),g&&x([t],!0),f.done(function(){g||x([t]),Wt.remove(t,"fxshow");for(i in d)Et.style(t,i,d[i])})),u=W(g?m[i]:0,i,f),i in m||(m[i]=u.start,g&&(u.end=u.start,u.start=0))}}function X(t,e){var n,i,r,s,o;for(n in t)if(i=g(n),r=e[i],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),(o=Et.cssHooks[i])&&"expand"in o){s=o.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=r)}else e[i]=r}function G(t,e,n){var i,r,s=0,o=G.prefilters.length,a=Et.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var e=Ce||$(),n=Math.max(0,l.startTime+l.duration-e),i=n/l.duration||0,s=1-i,o=0,u=l.tweens.length;o<u;o++)l.tweens[o].run(s);return a.notifyWith(t,[l,s,n]),s<1&&u?n:(u||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:Et.extend({},e),opts:Et.extend(!0,{specialEasing:{},easing:Et.easing._default},n),originalProperties:e,originalOptions:n,startTime:Ce||$(),duration:n.duration,tweens:[],createTween:function(e,n){var i=Et.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),c=l.props;for(X(c,l.opts.specialEasing);s<o;s++)if(i=G.prefilters[s].call(l,t,c,l.opts))return yt(i.stop)&&(Et._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return Et.map(c,W,l),yt(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Et.fx.timer(Et.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}function Q(t){return(t.match(qt)||[]).join(" ")}function Y(t){return t.getAttribute&&t.getAttribute("class")||""}function J(t){return Array.isArray(t)?t:"string"==typeof t?t.match(qt)||[]:[]}function tt(t,e,n,r){var s;if(Array.isArray(e))Et.each(e,function(e,i){n||Be.test(t)?r(t,i):tt(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==i(e))r(t,e);else for(s in e)tt(t+"["+s+"]",e[s],n,r)}function et(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(qt)||[];if(yt(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function nt(t,e,n,i){function r(a){var u;return s[a]=!0,Et.each(t[a]||[],function(t,a){var l=a(e,n,i);return"string"!=typeof l||o||s[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),r(l),!1)}),u}var s={},o=t===Qe;return r(e.dataTypes[0])||!s["*"]&&r("*")}function it(t,e){var n,i,r=Et.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&Et.extend(!0,t,i),t}function rt(t,e,n){for(var i,r,s,o,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)s=u[0];else{for(r in n){if(!u[0]||t.converters[r+" "+u[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}function st(t,e,n,i){var r,s,o,a,u,l={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)l[o.toLowerCase()]=t.converters[o];for(s=c.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=c.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=l[u+" "+s]||l["* "+s]))for(r in l)if(a=r.split(" "),a[1]===s&&(o=l[u+" "+a[0]]||l["* "+a[0]])){!0===o?o=l[r]:!0!==l[r]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+u+" to "+s}}}return{state:"success",data:e}}var ot=[],at=Object.getPrototypeOf,ut=ot.slice,lt=ot.flat?function(t){return ot.flat.call(t)}:function(t){return ot.concat.apply([],t)},ct=ot.push,ht=ot.indexOf,ft={},dt=ft.toString,pt=ft.hasOwnProperty,gt=pt.toString,mt=gt.call(Object),vt={},yt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},bt=function(t){return null!=t&&t===t.window},wt=t.document,xt={type:!0,src:!0,nonce:!0,noModule:!0},kt=/HTML$/i,Et=function(t,e){return new Et.fn.init(t,e)};Et.fn=Et.prototype={jquery:"3.7.1",constructor:Et,length:0,toArray:function(){return ut.call(this)},get:function(t){return null==t?ut.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=Et.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return Et.each(this,t)},map:function(t){return this.pushStack(Et.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(ut.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Et.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(Et.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ct,sort:ot.sort,splice:ot.splice},Et.extend=Et.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||yt(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(l&&i&&(Et.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],s=r&&!Array.isArray(n)?[]:r||Et.isPlainObject(n)?n:{},r=!1,o[e]=Et.extend(l,s,i)):void 0!==i&&(o[e]=i));return o},Et.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==dt.call(t))&&(!(e=at(t))||"function"==typeof(n=pt.call(e,"constructor")&&e.constructor)&>.call(n)===mt)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){n(t,{nonce:e&&e.nonce},i)},each:function(t,e){var n,i=0;if(r(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=Et.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?Et.merge(n,"string"==typeof t?[t]:t):ct.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:ht.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!kt.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,s=t.length,o=!n;r<s;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,s,o=0,a=[];if(r(t))for(i=t.length;o<i;o++)null!=(s=e(t[o],o,n))&&a.push(s);else for(o in t)null!=(s=e(t[o],o,n))&&a.push(s);return lt(a)},guid:1,support:vt}),"function"==typeof Symbol&&(Et.fn[Symbol.iterator]=ot[Symbol.iterator]),Et.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ft["[object "+e+"]"]=e.toLowerCase()});var _t=ot.pop,Ct=ot.sort,St=ot.splice,Tt="[\\x20\\t\\r\\n\\f]",At=new RegExp("^"+Tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Tt+"+$","g");Et.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var jt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;Et.escapeSelector=function(t){return(t+"").replace(jt,o)};var Nt=wt,Ot=ct;!function(){function e(){try{return A.activeElement}catch(t){}}function n(t,e,i,r){var s,o,a,u,h,p,g,m=e&&e.ownerDocument,v=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return i;if(!r&&(c(e),e=e||A,N)){if(11!==v&&(h=et.exec(t)))if(s=h[1]){if(9===v){if(!(a=e.getElementById(s)))return i;if(a.id===s)return D.call(i,a),i}else if(m&&(a=m.getElementById(s))&&n.contains(e,a)&&a.id===s)return D.call(i,a),i}else{if(h[2])return D.apply(i,e.getElementsByTagName(t)),i;if((s=h[3])&&e.getElementsByClassName)return D.apply(i,e.getElementsByClassName(s)),i}if(!(q[t+" "]||O&&O.test(t))){if(g=t,m=e,1===v&&(X.test(t)||Z.test(t))){for(m=nt.test(t)&&l(e.parentNode)||e,m==e&&vt.scope||((u=e.getAttribute("id"))?u=Et.escapeSelector(u):e.setAttribute("id",u=M)),p=f(t),o=p.length;o--;)p[o]=(u?"#"+u:":scope")+" "+d(p[o]);g=p.join(",")}try{return D.apply(i,m.querySelectorAll(g)),i}catch(e){q(t,!0)}finally{u===M&&e.removeAttribute("id")}}}return k(t.replace(At,"$1"),e,i,r)}function i(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function r(t){return t[M]=!0,t}function o(t){var e=A.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function u(t){return r(function(e){return e=+e,r(function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function c(t){var e,i=t?t.ownerDocument||t:Nt;return i!=A&&9===i.nodeType&&i.documentElement?(A=i,j=A.documentElement,N=!Et.isXMLDoc(A),P=j.matches||j.webkitMatchesSelector||j.msMatchesSelector,j.msMatchesSelector&&Nt!=A&&(e=A.defaultView)&&e.top!==e&&e.addEventListener("unload",st),vt.getById=o(function(t){return j.appendChild(t).id=Et.expando,!A.getElementsByName||!A.getElementsByName(Et.expando).length}),vt.disconnectedMatch=o(function(t){return P.call(t,"*")}),vt.scope=o(function(){return A.querySelectorAll(":scope")}),vt.cssHas=o(function(){try{return A.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),vt.getById?(_.filter.ID=function(t){var e=t.replace(it,rt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var e=t.replace(it,rt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var n,i,r,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),_.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},_.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&N)return e.getElementsByClassName(t)},O=[],o(function(t){var e;j.appendChild(t).innerHTML="<a id='"+M+"' href='' disabled='disabled'></a><select id='"+M+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||O.push("\\["+Tt+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+M+"-]").length||O.push("~="),t.querySelectorAll("a#"+M+"+*").length||O.push(".#.+[+~]"),t.querySelectorAll(":checked").length||O.push(":checked"),e=A.createElement("input"),e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),j.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e=A.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||O.push("\\["+Tt+"*name"+Tt+"*="+Tt+"*(?:''|\"\")")}),vt.cssHas||O.push(":has"),O=O.length&&new RegExp(O.join("|")),F=function(t,e){if(t===e)return T=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!vt.sortDetached&&e.compareDocumentPosition(t)===i?t===A||t.ownerDocument==Nt&&n.contains(Nt,t)?-1:e===A||e.ownerDocument==Nt&&n.contains(Nt,e)?1:S?ht.call(S,t)-ht.call(S,e):0:4&i?-1:1)},A):A}function h(){}function f(t,e){var i,r,s,o,a,u,l,c=V[t+" "];if(c)return e?0:c.slice(0);for(a=t,u=[],l=_.preFilter;a;){i&&!(r=W.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(s=[])),i=!1,(r=Z.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(At," ")}),a=a.slice(i.length));for(o in _.filter)!(r=Y[o].exec(a))||l[o]&&!(r=l[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?n.error(t):V(t,u).slice(0)}function d(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function p(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,u=L++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,h,f=[R,u];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(h=e[M]||(e[M]={}),r&&s(e,r))e=e[i]||e;else{if((c=h[o])&&c[0]===R&&c[1]===u)return f[2]=c[2];if(h[o]=f,f[2]=t(e,n,l))return!0}return!1}}function g(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,e,i){for(var r=0,s=e.length;r<s;r++)n(t,e[r],i);return i}function v(t,e,n,i,r){for(var s,o=[],a=0,u=t.length,l=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),l&&e.push(a)));return o}function y(t,e,n,i,s,o){return i&&!i[M]&&(i=y(i)),s&&!s[M]&&(s=y(s,o)),r(function(r,o,a,u){var l,c,h,f,d=[],p=[],g=o.length,y=r||m(e||"*",a.nodeType?[a]:a,[]),b=!t||!r&&e?y:v(y,d,t,a,u);if(n?(f=s||(r?t:g||i)?[]:o,n(b,f,a,u)):f=b,i)for(l=v(f,p),i(l,[],a,u),c=l.length;c--;)(h=l[c])&&(f[p[c]]=!(b[p[c]]=h));if(r){if(s||t){if(s){for(l=[],c=f.length;c--;)(h=f[c])&&l.push(b[c]=h);s(null,f=[],l,u)}for(c=f.length;c--;)(h=f[c])&&(l=s?ht.call(r,h):d[c])>-1&&(r[l]=!(o[l]=h))}}else f=v(f===o?f.splice(g,f.length):f),s?s(null,o,f,u):D.apply(o,f)})}function b(t){for(var e,n,i,r=t.length,s=_.relative[t[0].type],o=s||_.relative[" "],a=s?1:0,u=p(function(t){return t===e},o,!0),l=p(function(t){return ht.call(e,t)>-1},o,!0),c=[function(t,n,i){var r=!s&&(i||n!=C)||((e=n).nodeType?u(t,n,i):l(t,n,i));return e=null,r}];a<r;a++)if(n=_.relative[t[a].type])c=[p(g(c),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[M]){for(i=++a;i<r&&!_.relative[t[i].type];i++);return y(a>1&&g(c),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(At,"$1"),n,a<i&&b(t.slice(a,i)),i<r&&b(t=t.slice(i)),i<r&&d(t))}c.push(n)}return g(c)}function w(t,e){var n=e.length>0,i=t.length>0,s=function(r,s,o,a,u){var l,h,f,d=0,p="0",g=r&&[],m=[],y=C,b=r||i&&_.find.TAG("*",u),w=R+=null==y?1:Math.random()||.1,x=b.length;for(u&&(C=s==A||s||u);p!==x&&null!=(l=b[p]);p++){if(i&&l){for(h=0,s||l.ownerDocument==A||(c(l),o=!N);f=t[h++];)if(f(l,s||A,o)){D.call(a,l);break}u&&(R=w)}n&&((l=!f&&l)&&d--,r&&g.push(l))}if(d+=p,n&&p!==d){for(h=0;f=e[h++];)f(g,m,s,o);if(r){if(d>0)for(;p--;)g[p]||m[p]||(m[p]=_t.call(a));m=v(m)}D.apply(a,m),u&&!r&&m.length>0&&d+e.length>1&&Et.uniqueSort(a)}return u&&(R=w,C=y),g};return n?r(s):s}function x(t,e){var n,i=[],r=[],s=B[t+" "];if(!s){for(e||(e=f(t)),n=e.length;n--;)s=b(e[n]),s[M]?i.push(s):r.push(s);s=B(t,w(r,i)),s.selector=t}return s}function k(t,e,n,i){var r,s,o,a,u,c="function"==typeof t&&t,h=!i&&f(t=c.selector||t);if(n=n||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&9===e.nodeType&&N&&_.relative[s[1].type]){if(!(e=(_.find.ID(o.matches[0].replace(it,rt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=Y.needsContext.test(t)?0:s.length;r--&&(o=s[r],!_.relative[a=o.type]);)if((u=_.find[a])&&(i=u(o.matches[0].replace(it,rt),nt.test(s[0].type)&&l(e.parentNode)||e))){if(s.splice(r,1),!(t=i.length&&d(s)))return D.apply(n,i),n;break}}return(c||x(t,h))(i,e,!N,n,!e||nt.test(t)&&l(e.parentNode)||e),n}var E,_,C,S,T,A,j,N,O,P,D=Ot,M=Et.expando,R=0,L=0,I=i(),V=i(),B=i(),q=i(),F=function(t,e){return t===e&&(T=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="(?:\\\\[\\da-fA-F]{1,6}"+Tt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",K="\\["+Tt+"*("+H+")(?:"+Tt+"*([*^$|!~]?=)"+Tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+Tt+"*\\]",$=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+K+")*)|.*)\\)|)",U=new RegExp(Tt+"+","g"),W=new RegExp("^"+Tt+"*,"+Tt+"*"),Z=new RegExp("^"+Tt+"*([>+~]|"+Tt+")"+Tt+"*"),X=new RegExp(Tt+"|>"),G=new RegExp($),Q=new RegExp("^"+H+"$"),Y={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+K),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Tt+"*(even|odd|(([+-]|)(\\d*)n|)"+Tt+"*(?:([+-]|)"+Tt+"*(\\d+)|))"+Tt+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Tt+"*((?:-\\d)?\\d*)"+Tt+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,it=new RegExp("\\\\[\\da-fA-F]{1,6}"+Tt+"?|\\\\([^\\r\\n\\f])","g"),rt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},st=function(){c()},at=p(function(t){return!0===t.disabled&&s(t,"fieldset")},{dir:"parentNode",next:"legend"});try{D.apply(ot=ut.call(Nt.childNodes),Nt.childNodes),ot[Nt.childNodes.length].nodeType}catch(t){D={apply:function(t,e){Ot.apply(t,ut.call(e))},call:function(t){Ot.apply(t,ut.call(arguments,1))}}}n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if(c(t),N&&!q[e+" "]&&(!O||!O.test(e)))try{var i=P.call(t,e);if(i||vt.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){q(e,!0)}return n(e,A,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!=A&&c(t),Et.contains(t,e)},n.attr=function(t,e){(t.ownerDocument||t)!=A&&c(t);var n=_.attrHandle[e.toLowerCase()],i=n&&pt.call(_.attrHandle,e.toLowerCase())?n(t,e,!N):void 0;return void 0!==i?i:t.getAttribute(e)},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Et.uniqueSort=function(t){var e,n=[],i=0,r=0;if(T=!vt.sortStable,S=!vt.sortStable&&ut.call(t,0),Ct.call(t,F),T){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)St.call(t,n[i],1)}return S=null,t},Et.fn.uniqueSort=function(){return this.pushStack(Et.uniqueSort(ut.apply(this)))},_=Et.expr={cacheLength:50,createPseudo:r,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,rt),t[3]=(t[3]||t[4]||t[5]||"").replace(it,rt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){
var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=f(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,rt).toLowerCase();return"*"===t?function(){return!0}:function(t){return s(t,e)}},CLASS:function(t){var e=I[t+" "];return e||(e=new RegExp("(^|"+Tt+")"+t+"("+Tt+"|$)"))&&I(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(r){var s=n.attr(r,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(U," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,h,f,d,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=u&&e.nodeName.toLowerCase(),y=!l&&!u,b=!1;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(u?s(f,v):1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(h=m[M]||(m[M]={}),c=h[t]||[],d=c[0]===R&&c[1],b=d&&c[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===e){h[t]=[R,d,b];break}}else if(y&&(h=e[M]||(e[M]={}),c=h[t]||[],d=c[0]===R&&c[1],b=d),!1===b)for(;(f=++d&&f&&f[g]||(b=d=0)||p.pop())&&((u?!s(f,v):1!==f.nodeType)||!++b||(y&&(h=f[M]||(f[M]={}),h[t]=[R,b]),f!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var i,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return s[M]?s(e):s.length>1?(i=[t,t,"",e],_.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var i,r=s(t,e),o=r.length;o--;)i=ht.call(t,r[o]),t[i]=!(n[i]=r[o])}):function(t){return s(t,0,i)}):s}},pseudos:{not:r(function(t){var e=[],n=[],i=x(t.replace(At,"$1"));return i[M]?r(function(t,e,n,r){for(var s,o=i(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,r,s){return e[0]=t,i(e,null,s,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return t=t.replace(it,rt),function(e){return(e.textContent||Et.text(e)).indexOf(t)>-1}}),lang:r(function(t){return Q.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(it,rt).toLowerCase(),function(e){var n;do{if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===e()&&A.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){return s(t,"input")&&!!t.checked||s(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){return s(t,"input")&&"button"===t.type||s(t,"button")},text:function(t){var e;return s(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:u(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(E in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[E]=function(t){return function(e){return s(e,"input")&&e.type===t}}(E);for(E in{submit:!0,reset:!0})_.pseudos[E]=function(t){return function(e){return(s(e,"input")||s(e,"button"))&&e.type===t}}(E);h.prototype=_.filters=_.pseudos,_.setFilters=new h,vt.sortStable=M.split("").sort(F).join("")===M,c(),vt.sortDetached=o(function(t){return 1&t.compareDocumentPosition(A.createElement("fieldset"))}),Et.find=n,Et.expr[":"]=Et.expr.pseudos,Et.unique=Et.uniqueSort,n.compile=x,n.select=k,n.setDocument=c,n.tokenize=f,n.escape=Et.escapeSelector,n.getText=Et.text,n.isXML=Et.isXMLDoc,n.selectors=Et.expr,n.support=Et.support,n.uniqueSort=Et.uniqueSort}();var Pt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&Et(t).is(n))break;i.push(t)}return i},Dt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Mt=Et.expr.match.needsContext,Rt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Et.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?Et.find.matchesSelector(i,t)?[i]:[]:Et.find.matches(t,Et.grep(e,function(t){return 1===t.nodeType}))},Et.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(Et(t).filter(function(){for(e=0;e<i;e++)if(Et.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)Et.find(t,r[e],n);return i>1?Et.uniqueSort(n):n},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&Mt.test(t)?Et(t):t||[],!1).length}});var Lt,It=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Et.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Lt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:It.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof Et?e[0]:e,Et.merge(this,Et.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:wt,!0)),Rt.test(i[1])&&Et.isPlainObject(e))for(i in e)yt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=wt.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):yt(t)?void 0!==n.ready?n.ready(t):t(Et):Et.makeArray(t,this)}).prototype=Et.fn,Lt=Et(wt);var Vt=/^(?:parents|prev(?:Until|All))/,Bt={children:!0,contents:!0,next:!0,prev:!0};Et.fn.extend({has:function(t){var e=Et(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(Et.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&Et(t);if(!Mt.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Et.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?Et.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?ht.call(Et(t),this[0]):ht.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Et.uniqueSort(Et.merge(this.get(),Et(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Et.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Pt(t,"parentNode")},parentsUntil:function(t,e,n){return Pt(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return Pt(t,"nextSibling")},prevAll:function(t){return Pt(t,"previousSibling")},nextUntil:function(t,e,n){return Pt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Pt(t,"previousSibling",n)},siblings:function(t){return Dt((t.parentNode||{}).firstChild,t)},children:function(t){return Dt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&at(t.contentDocument)?t.contentDocument:(s(t,"template")&&(t=t.content||t),Et.merge([],t.childNodes))}},function(t,e){Et.fn[t]=function(n,i){var r=Et.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Et.filter(i,r)),this.length>1&&(Bt[t]||Et.uniqueSort(r),Vt.test(t)&&r.reverse()),this.pushStack(r)}});var qt=/[^\x20\t\r\n\f]+/g;Et.Callbacks=function(t){t="string"==typeof t?l(t):Et.extend({},t);var e,n,r,s,o=[],a=[],u=-1,c=function(){for(s=s||t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=o.length,n=!1);t.memory||(n=!1),e=!1,s&&(o=n?[]:"")},h={add:function(){return o&&(n&&!e&&(u=o.length-1,a.push(n)),function e(n){Et.each(n,function(n,r){yt(r)?t.unique&&h.has(r)||o.push(r):r&&r.length&&"string"!==i(r)&&e(r)})}(arguments),n&&!e&&c()),this},remove:function(){return Et.each(arguments,function(t,e){for(var n;(n=Et.inArray(e,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(t){return t?Et.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return s=a=[],n||e||(o=n=""),this},locked:function(){return!!s},fireWith:function(t,n){return s||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},Et.extend({Deferred:function(e){var n=[["notify","progress",Et.Callbacks("memory"),Et.Callbacks("memory"),2],["resolve","done",Et.Callbacks("once memory"),Et.Callbacks("once memory"),0,"resolved"],["reject","fail",Et.Callbacks("once memory"),Et.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return Et.Deferred(function(e){Et.each(n,function(n,i){var r=yt(t[i[4]])&&t[i[4]];s[i[1]](function(){var t=r&&r.apply(this,arguments);t&&yt(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){function s(e,n,i,r){return function(){var a=this,u=arguments,l=function(){var t,l;if(!(e<o)){if((t=i.apply(a,u))===n.promise())throw new TypeError("Thenable self-resolution");l=t&&("object"==typeof t||"function"==typeof t)&&t.then,yt(l)?r?l.call(t,s(o,n,c,r),s(o,n,h,r)):(o++,l.call(t,s(o,n,c,r),s(o,n,h,r),s(o,n,c,n.notifyWith))):(i!==c&&(a=void 0,u=[t]),(r||n.resolveWith)(a,u))}},f=r?l:function(){try{l()}catch(t){Et.Deferred.exceptionHook&&Et.Deferred.exceptionHook(t,f.error),e+1>=o&&(i!==h&&(a=void 0,u=[t]),n.rejectWith(a,u))}};e?f():(Et.Deferred.getErrorHook?f.error=Et.Deferred.getErrorHook():Et.Deferred.getStackHook&&(f.error=Et.Deferred.getStackHook()),t.setTimeout(f))}}var o=0;return Et.Deferred(function(t){n[0][3].add(s(0,t,yt(r)?r:c,t.notifyWith)),n[1][3].add(s(0,t,yt(e)?e:c)),n[2][3].add(s(0,t,yt(i)?i:h))}).promise()},promise:function(t){return null!=t?Et.extend(t,r):r}},s={};return Et.each(n,function(t,e){var o=e[2],a=e[5];r[e[1]]=o.add,a&&o.add(function(){i=a},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),o.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=o.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=ut.call(arguments),s=Et.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?ut.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(f(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||yt(r[n]&&r[n].then)))return s.then();for(;n--;)f(r[n],o(n),s.reject);return s.promise()}});var Ft=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Et.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&Ft.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},Et.readyException=function(e){t.setTimeout(function(){throw e})};var zt=Et.Deferred();Et.fn.ready=function(t){return zt.then(t).catch(function(t){Et.readyException(t)}),this},Et.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--Et.readyWait:Et.isReady)||(Et.isReady=!0,!0!==t&&--Et.readyWait>0||zt.resolveWith(wt,[Et]))}}),Et.ready.then=zt.then,"complete"===wt.readyState||"loading"!==wt.readyState&&!wt.documentElement.doScroll?t.setTimeout(Et.ready):(wt.addEventListener("DOMContentLoaded",d),t.addEventListener("load",d));var Ht=function(t,e,n,r,s,o,a){var u=0,l=t.length,c=null==n;if("object"===i(n)){s=!0;for(u in n)Ht(t,e,u,n[u],!0,o,a)}else if(void 0!==r&&(s=!0,yt(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(Et(t),n)})),e))for(;u<l;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return s?t:c?e.call(t):l?e(t[0],n):o},Kt=/^-ms-/,$t=/-([a-z])/g,Ut=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};m.uid=1,m.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Ut(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[g(e)]=n;else for(i in e)r[g(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][g(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(g):(e=g(e),e=e in i?[e]:e.match(qt)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||Et.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!Et.isEmptyObject(e)}};var Wt=new m,Zt=new m,Xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Gt=/[A-Z]/g;Et.extend({hasData:function(t){return Zt.hasData(t)||Wt.hasData(t)},data:function(t,e,n){return Zt.access(t,e,n)},removeData:function(t,e){Zt.remove(t,e)},_data:function(t,e,n){return Wt.access(t,e,n)},_removeData:function(t,e){Wt.remove(t,e)}}),Et.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=Zt.get(s),1===s.nodeType&&!Wt.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=g(i.slice(5)),y(s,i,r[i])));Wt.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Zt.set(this,t)}):Ht(this,function(e){var n;if(s&&void 0===e){if(void 0!==(n=Zt.get(s,t)))return n;if(void 0!==(n=y(s,t)))return n}else this.each(function(){Zt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Zt.remove(this,t)})}}),Et.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Wt.get(t,e),n&&(!i||Array.isArray(n)?i=Wt.access(t,e,Et.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=Et.queue(t,e),i=n.length,r=n.shift(),s=Et._queueHooks(t,e),o=function(){Et.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Wt.get(t,n)||Wt.access(t,n,{empty:Et.Callbacks("once memory").add(function(){Wt.remove(t,[e+"queue",n])})})}}),Et.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Et.queue(this[0],t):void 0===e?this:this.each(function(){var n=Et.queue(this,t,e);Et._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Et.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Et.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=Et.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=Wt.get(s[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var Qt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Yt=new RegExp("^(?:([+-])=|)("+Qt+")([a-z%]*)$","i"),Jt=["Top","Right","Bottom","Left"],te=wt.documentElement,ee=function(t){return Et.contains(t.ownerDocument,t)},ne={composed:!0};te.getRootNode&&(ee=function(t){return Et.contains(t.ownerDocument,t)||t.getRootNode(ne)===t.ownerDocument});var ie=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ee(t)&&"none"===Et.css(t,"display")},re={};Et.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ie(this)?Et(this).show():Et(this).hide()})}});var se=/^(?:checkbox|radio)$/i,oe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ae=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=wt.createDocumentFragment(),e=t.appendChild(wt.createElement("div")),n=wt.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),vt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",vt.option=!!e.lastChild}();var ue={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ue.tbody=ue.tfoot=ue.colgroup=ue.caption=ue.thead,ue.th=ue.td,vt.option||(ue.optgroup=ue.option=[1,"<select multiple='multiple'>","</select>"]);var le=/<|&#?\w+;/,ce=/^([^.]*)(?:\.(.+)|)/;Et.event={global:{},add:function(t,e,n,i,r){var s,o,a,u,l,c,h,f,d,p,g,m=Wt.get(t);if(Ut(t))for(n.handler&&(s=n,n=s.handler,r=s.selector),r&&Et.find.matchesSelector(te,r),n.guid||(n.guid=Et.guid++),(u=m.events)||(u=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return void 0!==Et&&Et.event.triggered!==e.type?Et.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(qt)||[""],l=e.length;l--;)a=ce.exec(e[l])||[],d=g=a[1],p=(a[2]||"").split(".").sort(),d&&(h=Et.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=Et.event.special[d]||{},c=Et.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Et.expr.match.needsContext.test(r),namespace:p.join(".")},s),(f=u[d])||(f=u[d]=[],f.delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,o)||t.addEventListener&&t.addEventListener(d,o)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),Et.event.global[d]=!0)},remove:function(t,e,n,i,r){var s,o,a,u,l,c,h,f,d,p,g,m=Wt.hasData(t)&&Wt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(qt)||[""],l=e.length;l--;)if(a=ce.exec(e[l])||[],d=g=a[1],p=(a[2]||"").split(".").sort(),d){for(h=Et.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,f=u[d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)c=f[s],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(s,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(t,c));o&&!f.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||Et.removeEvent(t,d,m.handle),delete u[d])}else for(d in u)Et.event.remove(t,d+e[l],n,i,!0);Et.isEmptyObject(u)&&Wt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=new Array(arguments.length),u=Et.event.fix(t),l=(Wt.get(this,"events")||Object.create(null))[u.type]||[],c=Et.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(o=Et.event.handlers.call(this,u,l),e=0;(r=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(i=((Et.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(u.result=i)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,i,r,s,o,a=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(s=[],o={},n=0;n<u;n++)i=e[n],r=i.selector+" ",void 0===o[r]&&(o[r]=i.needsContext?Et(r,this).index(l)>-1:Et.find(r,this,null,[l]).length),o[r]&&s.push(i);s.length&&a.push({elem:l,handlers:s})}return l=this,u<e.length&&a.push({elem:l,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(Et.Event.prototype,t,{enumerable:!0,configurable:!0,get:yt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[Et.expando]?t:new Et.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return se.test(e.type)&&e.click&&s(e,"input")&&A(e,"click",!0),!1},trigger:function(t){var e=this||t;return se.test(e.type)&&e.click&&s(e,"input")&&A(e,"click"),!0},_default:function(t){var e=t.target;return se.test(e.type)&&e.click&&s(e,"input")&&Wt.get(e,"click")||s(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},Et.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},Et.Event=function(t,e){if(!(this instanceof Et.Event))return new Et.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?C:S,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&Et.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[Et.expando]=!0},Et.Event.prototype={constructor:Et.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=C,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=C,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=C,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},Et.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Et.event.addProp),Et.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(wt.documentMode){var n=Wt.get(this,"handle"),i=Et.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else Et.event.simulate(e,t.target,Et.event.fix(t))}Et.event.special[t]={setup:function(){var i;if(A(this,t,!0),!wt.documentMode)return!1;i=Wt.get(this,e),i||this.addEventListener(e,n),Wt.set(this,e,(i||0)+1)},trigger:function(){return A(this,t),!0},teardown:function(){var t;if(!wt.documentMode)return!1;t=Wt.get(this,e)-1,t?Wt.set(this,e,t):(this.removeEventListener(e,n),Wt.remove(this,e))},_default:function(e){return Wt.get(e.target,t)},delegateType:e},Et.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=wt.documentMode?this:i,s=Wt.get(r,e);s||(wt.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),Wt.set(r,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=wt.documentMode?this:i,s=Wt.get(r,e)-1;s?Wt.set(r,e,s):(wt.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),Wt.remove(r,e))}}}),Et.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Et.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,s=t.handleObj;return r&&(r===i||Et.contains(i,r))||(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),Et.fn.extend({on:function(t,e,n,i){return T(this,t,e,n,i)},one:function(t,e,n,i){return T(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,Et(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=S),this.each(function(){Et.event.remove(this,t,n,e)})}});var he=/<script|<style|<link/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Et.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),u=ee(t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Et.isXMLDoc(t)))for(o=k(a),s=k(t),i=0,r=s.length;i<r;i++)D(s[i],o[i]);if(e)if(n)for(s=s||k(t),o=o||k(a),i=0,r=s.length;i<r;i++)P(s[i],o[i]);else P(t,a);return o=k(a,"script"),o.length>0&&E(o,!u&&k(t,"script")),a},cleanData:function(t){for(var e,n,i,r=Et.event.special,s=0;void 0!==(n=t[s]);s++)if(Ut(n)){if(e=n[Wt.expando]){if(e.events)for(i in e.events)r[i]?Et.event.remove(n,i):Et.removeEvent(n,i,e.handle);n[Wt.expando]=void 0}n[Zt.expando]&&(n[Zt.expando]=void 0)}}}),Et.fn.extend({detach:function(t){return R(this,t,!0)},remove:function(t){return R(this,t)},text:function(t){return Ht(this,function(t){return void 0===t?Et.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){j(this,t).appendChild(t)}})},prepend:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=j(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Et.cleanData(k(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Et.clone(this,t,e)})},html:function(t){return Ht(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!he.test(t)&&!ue[(oe.exec(t)||["",""])[1].toLowerCase()]){t=Et.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(Et.cleanData(k(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return M(this,arguments,function(e){var n=this.parentNode;Et.inArray(this,t)<0&&(Et.cleanData(k(this)),n&&n.replaceChild(e,this))},t)}}),Et.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Et.fn[t]=function(t){for(var n,i=[],r=Et(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),Et(r[o])[e](n),ct.apply(i,n.get());return this.pushStack(i)}});var pe=new RegExp("^("+Qt+")(?!px)[a-z%]+$","i"),ge=/^--/,me=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},ve=function(t,e,n){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];i=n.call(t);for(r in e)t.style[r]=s[r];return i},ye=new RegExp(Jt.join("|"),"i");!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",te.appendChild(l).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,u=12===n(e.marginLeft),c.style.right="60%",o=36===n(e.right),r=36===n(e.width),c.style.position="absolute",s=12===n(c.offsetWidth/3),te.removeChild(l),c=null}}function n(t){return Math.round(parseFloat(t))}var i,r,s,o,a,u,l=wt.createElement("div"),c=wt.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===c.style.backgroundClip,Et.extend(vt,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,n,i,r;return null==a&&(e=wt.createElement("table"),n=wt.createElement("tr"),i=wt.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",te.appendChild(e).appendChild(n).appendChild(i),r=t.getComputedStyle(n),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,te.removeChild(e)),a}}))}();var be=["Webkit","Moz","ms"],we=wt.createElement("div").style,xe={},ke=/^(none|table(?!-c[ea]).+)/,Ee={position:"absolute",visibility:"hidden",display:"block"},_e={letterSpacing:"0",fontWeight:"400"};Et.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=L(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=g(e),u=ge.test(e),l=t.style;if(u||(e=B(a)),o=Et.cssHooks[e]||Et.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:l[e];s=typeof n,"string"===s&&(r=Yt.exec(n))&&r[1]&&(n=b(t,e,r),s="number"),null!=n&&n===n&&("number"!==s||u||(n+=r&&r[3]||(Et.cssNumber[a]?"":"px")),vt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,s,o,a=g(e);return ge.test(e)||(e=B(a)),o=Et.cssHooks[e]||Et.cssHooks[a],o&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=L(t,e,i)),"normal"===r&&e in _e&&(r=_e[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),Et.each(["height","width"],function(t,e){Et.cssHooks[e]={get:function(t,n,i){if(n)return!ke.test(Et.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?z(t,e,i):ve(t,Ee,function(){return z(t,e,i)})},set:function(t,n,i){var r,s=me(t),o=!vt.scrollboxSize()&&"absolute"===s.position,a=o||i,u=a&&"border-box"===Et.css(t,"boxSizing",!1,s),l=i?F(t,e,i,u,s):0;return u&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-F(t,e,"border",!1,s)-.5)),l&&(r=Yt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=Et.css(t,e)),q(t,n,l)}}}),Et.cssHooks.marginLeft=I(vt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(L(t,"marginLeft"))||t.getBoundingClientRect().left-ve(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),Et.each({margin:"",padding:"",border:"Width"},function(t,e){Et.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Jt[i]+e]=s[i]||s[i-2]||s[0];return r}},"margin"!==t&&(Et.cssHooks[t+e].set=q)}),Et.fn.extend({css:function(t,e){return Ht(this,function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=me(t),r=e.length;o<r;o++)s[e[o]]=Et.css(t,e[o],!1,i);return s}return void 0!==n?Et.style(t,e,n):Et.css(t,e)},t,e,arguments.length>1)}}),Et.Tween=H,H.prototype={constructor:H,init:function(t,e,n,i,r,s){this.elem=t,
this.prop=n,this.easing=r||Et.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Et.cssNumber[n]?"":"px")},cur:function(){var t=H.propHooks[this.prop];return t&&t.get?t.get(this):H.propHooks._default.get(this)},run:function(t){var e,n=H.propHooks[this.prop];return this.options.duration?this.pos=e=Et.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=Et.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){Et.fx.step[t.prop]?Et.fx.step[t.prop](t):1!==t.elem.nodeType||!Et.cssHooks[t.prop]&&null==t.elem.style[B(t.prop)]?t.elem[t.prop]=t.now:Et.style(t.elem,t.prop,t.now+t.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Et.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},Et.fx=H.prototype.init,Et.fx.step={};var Ce,Se,Te=/^(?:toggle|show|hide)$/,Ae=/queueHooks$/;Et.Animation=Et.extend(G,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return b(n.elem,t,Yt.exec(e),n),n}]},tweener:function(t,e){yt(t)?(e=t,t=["*"]):t=t.match(qt);for(var n,i=0,r=t.length;i<r;i++)n=t[i],G.tweeners[n]=G.tweeners[n]||[],G.tweeners[n].unshift(e)},prefilters:[Z],prefilter:function(t,e){e?G.prefilters.unshift(t):G.prefilters.push(t)}}),Et.speed=function(t,e,n){var i=t&&"object"==typeof t?Et.extend({},t):{complete:n||!n&&e||yt(t)&&t,duration:t,easing:n&&e||e&&!yt(e)&&e};return Et.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Et.fx.speeds?i.duration=Et.fx.speeds[i.duration]:i.duration=Et.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){yt(i.old)&&i.old.call(this),i.queue&&Et.dequeue(this,i.queue)},i},Et.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ie).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=Et.isEmptyObject(t),s=Et.speed(e,n,i),o=function(){var e=G(this,Et.extend({},t),s);(r||Wt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=Et.timers,o=Wt.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&Ae.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||Et.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Wt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=Et.timers,o=i?i.length:0;for(n.finish=!0,Et.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),Et.each(["toggle","show","hide"],function(t,e){var n=Et.fn[e];Et.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(U(e,!0),t,i,r)}}),Et.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Et.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),Et.timers=[],Et.fx.tick=function(){var t,e=0,n=Et.timers;for(Ce=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||Et.fx.stop(),Ce=void 0},Et.fx.timer=function(t){Et.timers.push(t),Et.fx.start()},Et.fx.interval=13,Et.fx.start=function(){Se||(Se=!0,K())},Et.fx.stop=function(){Se=null},Et.fx.speeds={slow:600,fast:200,_default:400},Et.fn.delay=function(e,n){return e=Et.fx?Et.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=wt.createElement("input"),e=wt.createElement("select"),n=e.appendChild(wt.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=n.selected,t=wt.createElement("input"),t.value="t",t.type="radio",vt.radioValue="t"===t.value}();var je,Ne=Et.expr.attrHandle;Et.fn.extend({attr:function(t,e){return Ht(this,Et.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Et.removeAttr(this,t)})}}),Et.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?Et.prop(t,e,n):(1===s&&Et.isXMLDoc(t)||(r=Et.attrHooks[e.toLowerCase()]||(Et.expr.match.bool.test(e)?je:void 0)),void 0!==n?null===n?void Et.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Et.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!vt.radioValue&&"radio"===e&&s(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(qt);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),je={set:function(t,e,n){return!1===e?Et.removeAttr(t,n):t.setAttribute(n,n),n}},Et.each(Et.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ne[e]||Et.find.attr;Ne[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=Ne[o],Ne[o]=r,r=null!=n(t,e,i)?o:null,Ne[o]=s),r}});var Oe=/^(?:input|select|textarea|button)$/i,Pe=/^(?:a|area)$/i;Et.fn.extend({prop:function(t,e){return Ht(this,Et.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Et.propFix[t]||t]})}}),Et.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&Et.isXMLDoc(t)||(e=Et.propFix[e]||e,r=Et.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=Et.find.attr(t,"tabindex");return e?parseInt(e,10):Oe.test(t.nodeName)||Pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||(Et.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),Et.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Et.propFix[this.toLowerCase()]=this}),Et.fn.extend({addClass:function(t){var e,n,i,r,s,o;return yt(t)?this.each(function(e){Et(this).addClass(t.call(this,e,Y(this)))}):(e=J(t),e.length?this.each(function(){if(i=Y(this),n=1===this.nodeType&&" "+Q(i)+" "){for(s=0;s<e.length;s++)r=e[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Q(n),i!==o&&this.setAttribute("class",o)}}):this)},removeClass:function(t){var e,n,i,r,s,o;return yt(t)?this.each(function(e){Et(this).removeClass(t.call(this,e,Y(this)))}):arguments.length?(e=J(t),e.length?this.each(function(){if(i=Y(this),n=1===this.nodeType&&" "+Q(i)+" "){for(s=0;s<e.length;s++)for(r=e[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Q(n),i!==o&&this.setAttribute("class",o)}}):this):this.attr("class","")},toggleClass:function(t,e){var n,i,r,s,o=typeof t,a="string"===o||Array.isArray(t);return yt(t)?this.each(function(n){Et(this).toggleClass(t.call(this,n,Y(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=J(t),this.each(function(){if(a)for(s=Et(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==t&&"boolean"!==o||(i=Y(this),i&&Wt.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":Wt.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Q(Y(n))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;Et.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=yt(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,Et(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Et.map(r,function(t){return null==t?"":t+""})),(e=Et.valHooks[this.type]||Et.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return(e=Et.valHooks[r.type]||Et.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(De,""):null==n?"":n)}}}),Et.extend({valHooks:{option:{get:function(t){var e=Et.find.attr(t,"value");return null!=e?e:Q(Et.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(n=r[i],(n.selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!s(n.parentNode,"optgroup"))){if(e=Et(n).val(),a)return e;u.push(e)}return u},set:function(t,e){for(var n,i,r=t.options,s=Et.makeArray(e),o=r.length;o--;)i=r[o],(i.selected=Et.inArray(Et.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),Et.each(["radio","checkbox"],function(){Et.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=Et.inArray(Et(t).val(),e)>-1}},vt.checkOn||(Et.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Me=t.location,Re={guid:Date.now()},Le=/\?/;Et.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||Et.error("Invalid XML: "+(i?Et.map(i.childNodes,function(t){return t.textContent}).join("\n"):e)),n};var Ie=/^(?:focusinfocus|focusoutblur)$/,Ve=function(t){t.stopPropagation()};Et.extend(Et.event,{trigger:function(e,n,i,r){var s,o,a,u,l,c,h,f,d=[i||wt],p=pt.call(e,"type")?e.type:e,g=pt.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=i=i||wt,3!==i.nodeType&&8!==i.nodeType&&!Ie.test(p+Et.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[Et.expando]?e:new Et.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:Et.makeArray(n,[e]),h=Et.event.special[p]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!bt(i)){for(u=h.delegateType||p,Ie.test(u+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(i.ownerDocument||wt)&&d.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=d[s++])&&!e.isPropagationStopped();)f=o,e.type=s>1?u:h.bindType||p,c=(Wt.get(o,"events")||Object.create(null))[e.type]&&Wt.get(o,"handle"),c&&c.apply(o,n),(c=l&&o[l])&&c.apply&&Ut(o)&&(e.result=c.apply(o,n),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!Ut(i)||l&&yt(i[p])&&!bt(i)&&(a=i[l],a&&(i[l]=null),Et.event.triggered=p,e.isPropagationStopped()&&f.addEventListener(p,Ve),i[p](),e.isPropagationStopped()&&f.removeEventListener(p,Ve),Et.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(t,e,n){var i=Et.extend(new Et.Event,n,{type:t,isSimulated:!0});Et.event.trigger(i,null,e)}}),Et.fn.extend({trigger:function(t,e){return this.each(function(){Et.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Et.event.trigger(t,e,n,!0)}});var Be=/\[\]$/,qe=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,ze=/^(?:input|select|textarea|keygen)/i;Et.param=function(t,e){var n,i=[],r=function(t,e){var n=yt(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!Et.isPlainObject(t))Et.each(t,function(){r(this.name,this.value)});else for(n in t)tt(n,t[n],e,r);return i.join("&")},Et.fn.extend({serialize:function(){return Et.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Et.prop(this,"elements");return t?Et.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Et(this).is(":disabled")&&ze.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!se.test(t))}).map(function(t,e){var n=Et(this).val();return null==n?null:Array.isArray(n)?Et.map(n,function(t){return{name:e.name,value:t.replace(qe,"\r\n")}}):{name:e.name,value:n.replace(qe,"\r\n")}}).get()}});var He=/%20/g,Ke=/#.*$/,$e=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ze=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ge={},Qe={},Ye="*/".concat("*"),Je=wt.createElement("a");Je.href=Me.href,Et.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Me.href,type:"GET",isLocal:We.test(Me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Et.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?it(it(t,Et.ajaxSettings),e):it(Et.ajaxSettings,t)},ajaxPrefilter:et(Ge),ajaxTransport:et(Qe),ajax:function(e,n){function i(e,n,i,a){var l,f,d,w,x,k=n;c||(c=!0,u&&t.clearTimeout(u),r=void 0,o=a||"",E.readyState=e>0?4:0,l=e>=200&&e<300||304===e,i&&(w=rt(p,E,i)),!l&&Et.inArray("script",p.dataTypes)>-1&&Et.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=st(p,w,E,l),l?(p.ifModified&&(x=E.getResponseHeader("Last-Modified"),x&&(Et.lastModified[s]=x),(x=E.getResponseHeader("etag"))&&(Et.etag[s]=x)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=w.state,f=w.data,d=w.error,l=!d)):(d=k,!e&&k||(k="error",e<0&&(e=0))),E.status=e,E.statusText=(n||k)+"",l?v.resolveWith(g,[f,k,E]):v.rejectWith(g,[E,k,d]),E.statusCode(b),b=void 0,h&&m.trigger(l?"ajaxSuccess":"ajaxError",[E,p,l?f:d]),y.fireWith(g,[E,k]),h&&(m.trigger("ajaxComplete",[E,p]),--Et.active||Et.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,s,o,a,u,l,c,h,f,d,p=Et.ajaxSetup({},n),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?Et(g):Et.event,v=Et.Deferred(),y=Et.Callbacks("once memory"),b=p.statusCode||{},w={},x={},k="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ue.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)E.always(t[E.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),i(0,e),this}};if(v.promise(E),p.url=((e||p.url||Me.href)+"").replace(Xe,Me.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(qt)||[""],null==p.crossDomain){l=wt.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Je.protocol+"//"+Je.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=Et.param(p.data,p.traditional)),nt(Ge,p,n,E),c)return E;h=Et.event&&p.global,h&&0==Et.active++&&Et.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ze.test(p.type),s=p.url.replace(Ke,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(He,"+")):(d=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Le.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace($e,"$1"),d=(Le.test(s)?"&":"?")+"_="+Re.guid+++d),p.url=s+d),p.ifModified&&(Et.lastModified[s]&&E.setRequestHeader("If-Modified-Since",Et.lastModified[s]),Et.etag[s]&&E.setRequestHeader("If-None-Match",Et.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&E.setRequestHeader("Content-Type",p.contentType),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ye+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)E.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(g,E,p)||c))return E.abort();if(k="abort",y.add(p.complete),E.done(p.success),E.fail(p.error),r=nt(Qe,p,n,E)){if(E.readyState=1,h&&m.trigger("ajaxSend",[E,p]),c)return E;p.async&&p.timeout>0&&(u=t.setTimeout(function(){E.abort("timeout")},p.timeout));try{c=!1,r.send(w,i)}catch(t){if(c)throw t;i(-1,t)}}else i(-1,"No Transport");return E},getJSON:function(t,e,n){return Et.get(t,e,n,"json")},getScript:function(t,e){return Et.get(t,void 0,e,"script")}}),Et.each(["get","post"],function(t,e){Et[e]=function(t,n,i,r){return yt(n)&&(r=r||i,i=n,n=void 0),Et.ajax(Et.extend({url:t,type:e,dataType:r,data:n,success:i},Et.isPlainObject(t)&&t))}}),Et.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),Et._evalUrl=function(t,e,n){return Et.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){Et.globalEval(t,e,n)}})},Et.fn.extend({wrapAll:function(t){var e;return this[0]&&(yt(t)&&(t=t.call(this[0])),e=Et(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return yt(t)?this.each(function(e){Et(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Et(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=yt(t);return this.each(function(n){Et(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){Et(this).replaceWith(this.childNodes)}),this}}),Et.expr.pseudos.hidden=function(t){return!Et.expr.pseudos.visible(t)},Et.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},Et.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var tn={0:200,1223:204},en=Et.ajaxSettings.xhr();vt.cors=!!en&&"withCredentials"in en,vt.ajax=en=!!en,Et.ajaxTransport(function(e){var n,i;if(vt.cors||en&&!e.crossDomain)return{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)a.setRequestHeader(o,r[o]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(tn[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),Et.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),Et.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return Et.globalEval(t),t}}}),Et.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Et.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(i,r){e=Et("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),wt.head.appendChild(e[0])},abort:function(){n&&n()}}}});var nn=[],rn=/(=)\?(?=&|$)|\?\?/;Et.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=nn.pop()||Et.expando+"_"+Re.guid++;return this[t]=!0,t}}),Et.ajaxPrefilter("json jsonp",function(e,n,i){var r,s,o,a=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=yt(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(rn,"$1"+r):!1!==e.jsonp&&(e.url+=(Le.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||Et.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},i.always(function(){void 0===s?Et(t).removeProp(r):t[r]=s,e[r]&&(e.jsonpCallback=n.jsonpCallback,nn.push(r)),o&&yt(s)&&s(o[0]),o=s=void 0}),"script"}),vt.createHTMLDocument=function(){var t=wt.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),Et.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,r,s;return e||(vt.createHTMLDocument?(e=wt.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=wt.location.href,e.head.appendChild(i)):e=wt),r=Rt.exec(t),s=!n&&[],r?[e.createElement(r[1])]:(r=_([t],e,s),s&&s.length&&Et(s).remove(),Et.merge([],r.childNodes))},Et.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=Q(t.slice(a)),t=t.slice(0,a)),yt(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&Et.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(i?Et("<div>").append(Et.parseHTML(t)).find(i):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},Et.expr.pseudos.animated=function(t){return Et.grep(Et.timers,function(e){return t===e.elem}).length},Et.offset={setOffset:function(t,e,n){var i,r,s,o,a,u,l,c=Et.css(t,"position"),h=Et(t),f={};"static"===c&&(t.style.position="relative"),a=h.offset(),s=Et.css(t,"top"),u=Et.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(s+u).indexOf("auto")>-1,l?(i=h.position(),o=i.top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(u)||0),yt(e)&&(e=e.call(t,n,Et.extend({},a))),null!=e.top&&(f.top=e.top-a.top+o),null!=e.left&&(f.left=e.left-a.left+r),"using"in e?e.using.call(t,f):h.css(f)}},Et.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Et.offset.setOffset(this,t,e)});var e,n,i=this[0];if(i)return i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===Et.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===Et.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&(r=Et(t).offset(),r.top+=Et.css(t,"borderTopWidth",!0),r.left+=Et.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-Et.css(i,"marginTop",!0),left:e.left-r.left-Et.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===Et.css(t,"position");)t=t.offsetParent;return t||te})}}),Et.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;Et.fn[t]=function(i){return Ht(this,function(t,i,r){var s;if(bt(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r},t,i,arguments.length)}}),Et.each(["top","left"],function(t,e){Et.cssHooks[e]=I(vt.pixelPosition,function(t,n){if(n)return n=L(t,e),pe.test(n)?Et(t).position()[e]+"px":n})}),Et.each({Height:"height",Width:"width"},function(t,e){Et.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){Et.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return Ht(this,function(e,n,r){var s;return bt(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?Et.css(e,n,a):Et.style(e,n,r,a)},e,o?r:void 0,o)}})}),Et.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Et.fn[e]=function(t){return this.on(e,t)}}),Et.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),Et.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){Et.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var sn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Et.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),yt(t))return i=ut.call(arguments,2),r=function(){return t.apply(e||this,i.concat(ut.call(arguments)))},r.guid=t.guid=t.guid||Et.guid++,r},Et.holdReady=function(t){t?Et.readyWait++:Et.ready(!0)},Et.isArray=Array.isArray,Et.parseJSON=JSON.parse,Et.nodeName=s,Et.isFunction=yt,Et.isWindow=bt,Et.camelCase=g,Et.type=i,Et.now=Date.now,Et.isNumeric=function(t){var e=Et.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},Et.trim=function(t){return null==t?"":(t+"").replace(sn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Et});var on=t.jQuery,an=t.$;return Et.noConflict=function(e){return t.$===Et&&(t.$=an),e&&t.jQuery===Et&&(t.jQuery=on),Et},void 0===e&&(t.jQuery=t.$=Et),Et}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ractive",e):function(){var n=t.Ractive,i=e();t.Ractive=i,i.noConflict=function(){return t.Ractive=n,i}}()}(this,function(){"use strict";function t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function e(e){for(var n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];for(var r=0;r<n.length;r++){var s=n[r];for(var o in s)o in e||!t(s,o)||(e[o]=s[o])}return e}function n(e){void 0===e&&(e={});var n=[];for(var i in e)t(e,i)&&n.push([i,e[i]]);return n}function i(t,e){return null===t&&null===e||!a(t)&&!a(e)&&t===e}function r(t){return!isNaN(parseFloat(t))&&isFinite(t)}function s(t){return t&&"[object Object]"===Vo.call(t)}function o(t){return!(!t||!a(t)&&!u(t))}function a(t){return"object"==typeof t}function u(t){return"function"==typeof t}function l(t){return"string"==typeof t}function c(t){return"number"==typeof t}function h(){}function f(t,e){return t.replace(/%s/g,function(){return e.shift()})}function d(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];throw t=f(t,e),new Error(t)}function p(){Oo.DEBUG&&Xo.apply(null,arguments)}function g(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];t=f(t,e),Go(t,e)}function m(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];t=f(t,e),oa[t]||(oa[t]=!0,Go(t,e))}function v(){Oo.DEBUG&&g.apply(null,arguments)}function y(){Oo.DEBUG&&m.apply(null,arguments)}function b(t,e,n){var i=w(t,e,n);return i?i[t][n]:null}function w(t,e,n){for(;e;){if(n in e[t])return e;if(e.isolated)return null;e=e.parent}}function x(t,e,n,i){if(t===e)return null;if(i){var r=b("interpolators",n,i);if(r)return r(t,e)||null;d(ca(i,"interpolator"))}return ha.number(t,e)||ha.array(t,e)||ha.object(t,e)||null}function k(t){return l(t)?t.replace(pa,"\\$&"):t}function E(t){return t?t.replace(fa,".$1"):""}function _(t){var e,n=[];for(t=E(t);e=da.exec(t);){var i=e.index+e[1].length;n.push(t.substr(0,i)),t=t.substr(i+1)}return n.push(t),n}function C(t){return l(t)?t.replace(ga,"$1$2"):t}function S(t,e){-1===t.indexOf(e)&&t.push(e)}function T(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]==e)return!0;return!1}function A(t,e){var n;if(!Bo(t)||!Bo(e))return!1;if(t.length!==e.length)return!1;for(n=t.length;n--;)if(t[n]!==e[n])return!1;return!0}function j(t){return l(t)?[t]:void 0===t?[]:t}function N(t){return t[t.length-1]}function O(t,e){if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}function P(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=t.concat.apply([],t),i=n.length;i--;){var r=n.indexOf(n[i]);~r&&r<i&&n.splice(i,1)}return n}function D(t){for(var e=[],n=t.length;n--;)e[n]=t[n];return e}function M(t,e){for(var n=t.length,i=0;i<n;i++){var r=e(t[i]);if(r)return r}}function R(t,e,n){var i=t,r=e;n&&(i=i.map(n),r=r.map(n));var s=i.length,o={},a=0;return i.map(function(t){var e,n=a;do{if(-1===(e=r.indexOf(t,n)))return-1;n=e+1}while(!0===o[e]&&n<s);return e===a&&(a+=1),o[e]=!0,e})}function L(t,e){if(!/this/.test(t.toString()))return t;var n=ma.call(t,e);for(var i in t)n[i]=t[i];return n}function I(t,e,n){return n&&u(e)&&t.parent&&t.parent.isRoot?(t.boundValue||(t.boundValue=L(e._r_unbound||e,t.parent.ractive)),t.boundValue):e}function V(t){t.updateFromBindings(!0)}function B(t){for(var e=t.length;e--;)if(t[e].bound){var n=t[e].owner;if(n){var i="checked"===n.name?n.node.checked:n.node.value;return{value:i}}}}function q(t){if(t){var e=va[t];va[t]=[];for(var n=e.length;n--;)e[n]();var i=ya[t];for(ya[t]=[],n=i.length;n--;)i[n].model.register(i[n].item)}else q("early"),q("mark")}function F(t,e,n,i){t.shuffling=!0;for(var r=e.length;r--;){var s=e[r];r!==s&&(r in t.childByKey&&t.childByKey[r].rebind(~s?t.joinKey(s):void 0,t.childByKey[r],!i))}var o=t.source().length!==t.source().value.length;for(t.links.forEach(function(t){return t.shuffle(e)}),n||q("early"),r=t.deps.length;r--;)t.deps[r].shuffle&&t.deps[r].shuffle(e);t[n?"marked":"mark"](),n||q("mark"),o&&t.notifyUpstream(),t.shuffling=!1}function z(){Ea.push(ka=[])}function H(){var t=Ea.pop();return ka=Ea[Ea.length-1],t}function K(t){ka&&ka.push(t)}function $(t){t.bind()}function U(t){t.cancel()}function W(t){t.destroyed()}function Z(t){t.handleChange()}function X(t){t.mark()}function G(t){t.mark(!0)}function Q(t){t.marked()}function Y(t){t.markedAll()}function J(t){t.render()}function tt(t){t.shuffled()}function et(t){t.teardown()}function nt(t){t.unbind()}function it(t){t.unrender()}function rt(t){t.update()}function st(t){return t.toString()}function ot(t){return t.toString(!0)}function at(t,e,n,i){var r=t.r||t;if(!r||!l(r))return e;if("."===r||"@"===r[0]||(e||n).isKey||(e||n).isKeypath)return e;var s=r.split("/"),o=_(s[s.length-1]),a=o[o.length-1],u=e||n;u&&1===o.length&&a!==u.key&&i&&(o=ut(a,i)||o);for(var c=o.length,h=!0,f=!1;u&&c--;)u.shuffling&&(f=!0),o[c]!=u.key&&(h=!1),u=u.parent;return!e&&h&&f?n:e&&!h&&f?n:e}function ut(t,e){for(;e;){var n=e.aliases;if(n&&n[t]){for(var i=(e.owner.iterations?e.owner:e).owner.template.z,r=0;r<i.length;r++)if(i[r].n===t){var s=i[r].x;if(!s.r)return!1;var o=s.r.split("/");return _(o[o.length-1])}return}e=e.componentParent||e.parent}}function lt(t,e){void 0===e&&(e=0);for(var n=new Array(e);e--;)n[e]="_"+e;return new Function([],"return function ("+n.join(",")+"){return("+t+");};")()}function ct(t,e){return Sa[t]?Sa[t]:Sa[t]=Re(t,e)}function ht(t){if(t){var e=t.e;e&&Io(e).forEach(function(t){Sa[t]||(Sa[t]=e[t])})}}function ft(t){
if(!t.matchString("="))return null;var e=t.pos;t.sp();var n=t.matchPattern(Tu);if(!n)return t.pos=e,null;if(!t.matchPattern(Au))return null;var i=t.matchPattern(Tu);return i?(t.sp(),t.matchString("=")?[n,i]:(t.pos=e,null)):(t.pos=e,null)}function dt(t){var e;return(e=t.matchPattern(ju))?{t:nu,v:e}:null}function pt(t){return t.replace(Nu,"\\$&")}function gt(t,e){return t.search(Ou[e.join()]||(Ou[e.join()]=new RegExp(e.map(pt).join("|"))))}function mt(t){return t.replace(Lu,function(t,e){var n;return n="#"!==e[0]?Mu[e]:"x"===e[1]?parseInt(e.substring(2),16):parseInt(e.substring(1),10),n?Vu(yt(n)):t})}function vt(t){return t.replace(Fu,"&").replace(Bu,"<").replace(qu,">")}function yt(t){return t?10===t?32:t<128?t:t<=159?Ru[t-128]:t<55296?t:t<=57343?zu:t<=65535?t:Iu?t>=65536&&t<=131071?t:t>=131072&&t<=196607?t:zu:zu:zu}function bt(t){var e;return(e=t.matchPattern($u))?{t:Qa,v:e}:null}function wt(t){var e=t.remaining();return"true"===e.substr(0,4)?(t.pos+=4,{t:eu,v:"true"}):"false"===e.substr(0,5)?(t.pos+=5,{t:eu,v:"false"}):null}function xt(t){return function(e){for(var n,i='"',r=!1;!r;)n=e.matchPattern(Uu)||e.matchPattern(Wu)||e.matchString(t),n?i+='"'===n?'\\"':"\\'"===n?"'":n:(n=e.matchPattern(Zu),n?i+="\\u"+("000"+n.charCodeAt(1).toString(16)).slice(-4):r=!0);return i+='"',JSON.parse(i)}}function kt(t){var e=t.pos,n=t.matchString("'")||t.matchString('"');if(n){var i=("'"===n?Xu:Gu)(t);return t.matchString(n)?{t:Ya,v:i}:(t.pos=e,null)}return null}function Et(t){return JSON.parse('"'+t.replace(Yu,_t)+'"')}function _t(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f"}}function Ct(t){if(!t.matchString("`"))return null;for(var e,n="",i=!1,r=[];!i;)if(e=t.matchPattern(Qu)||t.matchPattern(Wu)||t.matchString("$")||t.matchString('"'))if('"'===e)n+='\\"';else if("\\`"===e)n+="`";else if("$"===e)if(t.matchString("{")){r.push({t:Ya,v:Et(n)}),n="",t.sp();var s=Vt(t);s||t.error("Expected valid expression"),r.push({t:lu,x:s}),t.sp(),t.matchString("}")||t.error("Expected closing '}' after interpolated expression")}else n+="$";else n+=e;else e=t.matchPattern(Zu),e?n+="\\u"+("000"+e.charCodeAt(1).toString(16)).slice(-4):i=!0;if(n.length&&r.push({t:Ya,v:Et(n)}),t.matchString("`")||t.error("Expected closing '`'"),1===r.length)return r[0];for(var o,a=r.pop();o=r.pop();)a={t:hu,s:"+",o:[o,a]};return{t:lu,x:a}}function St(t){var e;return(e=kt(t))?il.test(e.v)?e.v:'"'+e.v.replace(/"/g,'\\"')+'"':(e=bt(t))?e.v:(e=t.matchPattern(Ju))?e:null}function Tt(t){var e,n=t.pos;t.sp();var i="'"!==t.nextChar()&&'"'!==t.nextChar();i&&(e=t.matchPattern(tl));var r=e?Vt(t):St(t);if(null===r)return t.pos=n,null;if(t.sp(),i&&(","===t.nextChar()||"}"===t.nextChar())){e||Ju.test(r)||t.error("Expected a valid reference, but found '"+r+"' instead.");var s={t:ru,k:r,v:{t:su,n:r}};return e&&(s.p=!0),s}if(!t.matchString(":"))return t.pos=n,null;t.sp();var o=Vt(t);return null===o?(t.pos=n,null):{t:ru,k:r,v:o}}function At(t){var e=t.pos,n=Tt(t);if(null===n)return null;var i=[n];if(t.matchString(",")){var r=At(t);return r?i.concat(r):(t.pos=e,null)}return i}function jt(t){var e=t.pos;if(t.sp(),!t.matchString("{"))return t.pos=e,null;var n=At(t);return t.sp(),t.matchString("}")?{t:tu,m:n}:(t.pos=e,null)}function Nt(t){var e=t.pos;if(t.sp(),!t.matchString("["))return t.pos=e,null;var n=Bt(t,!0);return t.matchString("]")?{t:Ja,m:n}:(t.pos=e,null)}function Ot(t){return bt(t)||wt(t)||kt(t)||Ct(t)||jt(t)||Nt(t)||dt(t)}function Pt(t){var e,n,i,r,s,o=t.pos;e=t.matchPattern(ol)||"",n=!e&&t.relaxedNames&&t.matchPattern(nl)||t.matchPattern(el);var a=e.length+(n&&n.length||0);if("@."===e&&(e="@",n=n?"this."+n:"this"),!n&&e&&(n=e,e=""),!n)return null;if("@"===e)if(al.test(n))if(n.indexOf("event")&&n.indexOf("node")||t.inEvent){if(~n.indexOf("context"))return t.pos=t.pos-(n.length-7),{t:lu,x:{t:su,n:"@context"}}}else t.error("@event and @node are only valid references within an event directive");else t.error("Unrecognized special reference @"+n);if(!e&&!t.relaxedNames&&sl.test(n))return t.pos=o,null;if(!e&&rl.test(n))return i=rl.exec(n)[0],t.pos=o+i.length,{t:iu,v:i};if(r=(e||"")+E(n),t.matchString("("))if(-1!==(s=r.lastIndexOf("."))&&"]"!==n[n.length-1])if(0===s)r=".",t.pos=o;else{var u=r.length;r=r.substr(0,s),t.pos=o+(a-(u-s))}else t.pos-=1;return{t:su,n:r.replace(/^this\./,"./").replace(/^this$/,".")}}function Dt(t){if(!t.matchString("("))return null;t.sp();var e=Vt(t);return e||t.error(Hu),t.sp(),t.matchString(")")||t.error(Ku),{t:lu,x:e}}function Mt(t){return Ot(t)||Pt(t)||Dt(t)}function Rt(t){if(t.strictRefinement||t.sp(),t.matchString(".")){t.sp();var e=t.matchPattern(Ju);if(e)return{t:ou,n:e};t.error("Expected a property name")}if(t.matchString("[")){t.sp();var n=Vt(t);return n||t.error(Hu),t.sp(),t.matchString("]")||t.error("Expected ']'"),{t:ou,x:n}}return null}function Lt(t){var e=Mt(t);if(!e)return null;for(;e;){var n=Rt(t);if(n)e={t:au,x:e,r:n};else{if(!t.matchString("("))break;t.sp();var i=Bt(t,!0);t.sp(),t.matchString(")")||t.error(Ku),e={t:fu,x:e},i&&(e.o=i)}}return e}function It(t){var e=fl(t);if(!e)return null;var n=t.pos;if(t.sp(),!t.matchString("?"))return t.pos=n,e;t.sp();var i=Vt(t);i||t.error(Hu),t.sp(),t.matchString(":")||t.error('Expected ":"'),t.sp();var r=Vt(t);return r||t.error(Hu),{t:cu,o:[e,i,r]}}function Vt(t){if(!1===t.allowExpressions){var e=Pt(t);return t.sp(),e}return It(t)}function Bt(t,e){var n,i=[],r=t.pos;do{t.sp(),e&&(n=t.matchPattern(tl));var s=Vt(t);if(null===s&&i.length)t.error(Hu);else if(null===s)return t.pos=r,null;n&&(s.p=!0),i.push(s),t.sp()}while(t.matchString(","));return i}function qt(t,e){var n=t.pos,i=Vt(t);if(!i){var r=t.matchPattern(/^(\w+)/);return r?{t:su,n:r}:null}for(var s=0;s<e.length;s+=1)if(t.remaining().substr(0,e[s].length)===e[s])return i;return t.pos=n,Pt(t)}function Ft(t){function e(t){if(l(t))return t;switch(t.t){case eu:case iu:case Qa:case nu:return t.v;case Ya:return JSON.stringify(String(t.v));case Ja:return t.m&&zt(t.m)?"[].concat("+i(t.m,"[","]",e)+")":"["+(t.m?t.m.map(e).join(","):"")+"]";case tu:return t.m&&zt(t.m)?"Object.assign({},"+i(t.m,"{","}",n)+")":"{"+(t.m?t.m.map(function(t){return t.k+":"+e(t.v)}).join(","):"")+"}";case uu:return("typeof"===t.s?"typeof ":t.s)+e(t.o);case hu:return e(t.o[0])+("in"===t.s.substr(0,2)?" "+t.s+" ":t.s)+e(t.o[1]);case fu:if(t.o&&zt(t.o)){var o=s++;return"(x$"+o+"="+e(t.x)+").apply(x$"+o+","+e({t:Ja,m:t.o})+")"}return e(t.x)+"("+(t.o?t.o.map(e).join(","):"")+")";case lu:return"("+e(t.x)+")";case au:return e(t.x)+e(t.r);case ou:return t.n?"."+t.n:"["+e(t.x)+"]";case cu:return e(t.o[0])+"?"+e(t.o[1])+":"+e(t.o[2]);case su:return"_"+r.indexOf(t.n);default:throw new Error("Expected legal JavaScript")}}function n(t){return t.p?e(t.k):t.k+":"+e(t.v)}function i(t,e,n,i){var r=t.reduce(function(t,r){return r.p?t.str+=(t.open?n+",":t.str.length?",":"")+i(r):t.str+=""+(t.str.length?t.open?",":","+e:e)+i(r),t.open=!r.p,t},{open:!1,str:""});return r.open&&(r.str+=n),r.str}var r,s=0;Ht(t,r=[]);var o=e(t);return{r:r,s:function(t){for(var e=[],n=s-1;n>=0;n--)e.push("x$"+n);return e.length?"(function(){var "+e.join(",")+";return("+t+");})()":t}(o)}}function zt(t){for(var e=0;e<t.length;e++)if(t[e].p)return!0;return!1}function Ht(t,e){t.t===su&&l(t.n)&&(~e.indexOf(t.n)||e.unshift(t.n));var n=t.o||t.m;if(n)if(s(n))Ht(n,e);else for(var i=n.length;i--;)Ht(n[i],e);t.k&&t.t===ru&&!l(t.k)&&Ht(t.k,e),t.x&&Ht(t.x,e),t.r&&Ht(t.r,e),t.v&&Ht(t.v,e)}function Kt(t,e){var n;if(t){for(;t.t===lu&&t.x;)t=t.x;if(t.t===su){~t.n.indexOf("@context")?e.x=Ft(t):e.r=t.n}else(n=$t(t))?e.rx=n:e.x=Ft(t);return e}}function $t(t){for(var e,n=[];t.t===au&&t.r.t===ou;)e=t.r,e.x?e.x.t===su?n.unshift(e.x):n.unshift(Ft(e.x)):n.unshift(e.n),t=t.x;return t.t!==su?null:{r:t.n,m:n}}function Ut(t){for(var e=[],n=0,i=0;i<t.length;i++)"-"===t[i]&&"\\"!==t[i-1]&&(e.push(t.substring(n,i).replace(_l,"")),n=i+1);return e.push(t.substring(n).replace(_l,"")),e}function Wt(t){var e,n,i,r;if(t.sp(),!(e=t.matchPattern(dl)))return null;for(i=e.length,n=0;n<t.tags.length;n++)~(r=e.indexOf(t.tags[n].open))&&r<i&&(i=r);return i<e.length&&(t.pos-=e.length-i,!(e=e.substr(0,i)))?null:{n:e}}function Zt(t){var e=t.pos;if(/[=\/>\s]/.test(t.nextChar())||t.error("Expected `=`, `/`, `>` or whitespace"),t.sp(),!t.matchString("="))return t.pos=e,null;t.sp();var n=t.pos,i=t.sectionDepth,r=Qt(t,"'")||Qt(t,'"')||Gt(t);return null===r&&t.error("Expected valid attribute value"),t.sectionDepth!==i&&(t.pos=n,t.error("An attribute value must contain as many opening section tags as closing section tags")),r.length?1===r.length&&l(r[0])?mt(r[0]):r:""}function Xt(t){var e,n,i=t.pos;return(e=t.matchPattern(xl))?(-1!==(n=gt(e,t.tags.map(function(t){return t.open})))&&(e=e.substr(0,n),t.pos=i+e.length),e):null}function Gt(t){t.inAttribute=!0;for(var e=[],n=ne(t)||Xt(t);n;)e.push(n),n=ne(t)||Xt(t);return e.length?(t.inAttribute=!1,e):null}function Qt(t,e){var n=t.pos;if(!t.matchString(e))return null;t.inAttribute=e;for(var i=[],r=ne(t)||Yt(t,e);null!==r;)i.push(r),r=ne(t)||Yt(t,e);return t.matchString(e)?(t.inAttribute=!1,i):(t.pos=n,null)}function Yt(t,e){var n=t.remaining(),i=t.tags.map(function(t){return t.open});i.push(e);var r=gt(n,i);return-1===r&&t.error("Quoted attribute value must have a closing quote"),r?(t.pos+=r,n.substr(0,r)):null}function Jt(t){var e,n,i=Wt(t,!1);if(!i)return null;if(n=wl[i.n])i.t=n.t,n.v&&(i.v=n.v),delete i.n,t.sp(),"="===t.nextChar()&&(i.f=Zt(t));else if(e=vl.exec(i.n))i.n=e[1],i.t=Eu,ee(t,i);else if(e=yl.exec(i.n))i.n=e[1],i.t=_u,ee(t,i),i.v="in-out"===e[2]?"t0":"in"===e[2]?"t1":"t2";else if(e=gl.exec(i.n))i.n=Ut(e[1]),i.t=ku,t.matchString("(")&&(i.a=Ft({t:Ja,m:Bt(t)}),t.matchString(")")||t.error("Expected closing ')'")),t.inEvent=!0,te(t,i)?ml.test(i.f)&&(t.pos-=i.f.length,t.error("Cannot use reserved event names (change, reset, teardown, update, construct, config, init, render, unrender, complete, detach, insert, destruct, attachchild, detachchild)")):ee(t,i,!0),t.inEvent=!1;else if(e=bl.exec(i.n)){var r="bind"===e[2];i.n=r?e[3]:e[1],i.t=Ha,ee(t,i,!1,!0),!i.f&&r&&(i.f=[{t:Da,r:e[3]}])}else{t.sp();var s="="===t.nextChar()?Zt(t):null;if(i.f=null!=s?s:i.f,t.sanitizeEventAttributes&&pl.test(i.n))return{exclude:!0};i.f=i.f||(""===i.f?"":0),i.t=Ha}return i}function te(t,e){var n=t.pos;t.matchString("=")||t.error("Missing required directive arguments");var i=t.matchString("'")||t.matchString('"');t.sp();var r=t.matchPattern(kl);if(void 0!==r)if(i){if(t.sp(),t.matchString(i))return(e.f=r)||!0;t.pos=n}else{if(t.matchPattern(El))return(e.f=r)||!0;t.pos=n}else t.pos=n}function ee(t,e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),t.sp(),!t.matchString("="))return void(n&&t.error("Missing required directive arguments"));t.sp();var r=t.matchString('"')||t.matchString("'"),s=t.spreadArgs;t.spreadArgs=!0,t.inUnquotedAttribute=!r;var o=i?qt(t,[r||" ","/",">"]):{m:Bt(t),t:Ja};if(t.inUnquotedAttribute=!1,t.spreadArgs=s,r&&(t.sp(),t.matchString(r)!==r&&t.error("Expected matching quote '"+r+"'")),i){var a={t:Da};Kt(o,a),e.f=[a]}else e.f=Ft(o)}function ne(t){var e,n;if(!1===t.interpolate[t.inside])return null;for(n=0;n<t.tags.length;n+=1)if(e=ie(t,t.tags[n]))return e;return t.inTag&&!t.inAttribute&&(e=Jt(t))?(t.sp(),e):void 0}function ie(t,e){var n,i,r,s=t.pos;if(t.matchString("\\"+e.open)){if(0===s||"\\"!==t.str[s-1])return e.open}else if(!t.matchString(e.open))return null;if(n=ft(t))return t.matchString(e.close)?(e.open=n[0],e.close=n[1],t.sortMustacheTags(),Cl):null;if(t.sp(),t.matchString("/")){t.pos-=1;var o=t.pos;if(dt(t))t.pos=o;else{if(t.pos=o-e.close.length,t.inAttribute)return t.pos=s,null;t.error("Attempted to close a section that wasn't open")}}for(r=0;r<e.readers.length;r+=1)if(i=e.readers[r],n=i(t,e))return e.isStatic&&(n.s=1),t.includeLinePositions&&(n.q=t.getLinePos(s)),n;return t.pos=s,null}function re(t,e){var n=Vt(t);if(!n)return null;t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'");var i={t:Ma};return Kt(n,i),i}function se(t,e){if(!t.matchString("&"))return null;t.sp();var n=Vt(t);if(!n)return null;t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'");var i={t:Ma};return Kt(n,i),i}function oe(t){var e,n=[],i=t.pos;if(t.sp(),e=ae(t)){for(e.x=Kt(e.x,{}),n.push(e),t.sp();t.matchString(",");)e=ae(t),e||t.error("Expected another alias."),e.x=Kt(e.x,{}),n.push(e),t.sp();return n}return t.pos=i,null}function ae(t){var e=t.pos;t.sp();var n=Vt(t,[]);if(!n)return t.pos=e,null;t.sp(),t.matchPattern(Tl),t.sp();var i=t.matchPattern(Sl);return i?{n:i,x:n}:(t.pos=e,null)}function ue(t,e){var n,i=t.matchString(">")||t.matchString("yield"),r={t:">"===i?Ba:Ua};if(!i)return null;if(t.sp(),">"===i||!(n=t.matchString("with"))){t.relaxedNames=t.strictRefinement=!0;var s=Vt(t);if(t.relaxedNames=t.strictRefinement=!1,!s&&">"===i)return null;s&&(Kt(s,r),t.sp(),">"!==i&&(n=t.matchString("with")))}if(t.sp(),n||">"===i){if((n=oe(t))&&n.length)r.z=n;else{var o=Vt(t);o&&(r.c={},Kt(o,r.c))}">"===i||r.c||r.z||t.error("Expected a context or one or more aliases")}return t.sp(),t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'"),r}function le(t,e){if(!t.matchString("!"))return null;var n=t.remaining().indexOf(e.close);return-1!==n?(t.pos+=n+e.close.length,{t:qa}):void 0}function ce(t,e){var n,i,r=t.pos;try{n=qt(t,[e.close])}catch(t){i=t}if(!n){if("!"===t.str.charAt(r))return t.pos=r,null;if(i)throw i}if(!t.matchString(e.close)&&(t.error("Expected closing delimiter '"+e.close+"' after reference"),!n)){if("!"===t.nextChar())return null;t.error("Expected expression or legal reference")}var s={t:Da};return Kt(n,s),s}function he(t,e){var n=t.pos;if(!t.matchString(e.open))return null;if(t.sp(),!t.matchString("/"))return t.pos=n,null;t.sp();var i=t.remaining(),r=i.indexOf(e.close);if(-1!==r){var s={t:Ia,r:i.substr(0,r).split(" ")[0]};return t.pos+=r,t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'"),s}return t.pos=n,null}function fe(t,e,n){var i=t.pos;if(!t.matchString(e.open))return null;if(!t.matchPattern(Al[n]))return t.pos=i,null;var r={t:jl[n]};if("elseif"===n)r.x=Vt(t);else if("catch"===n||"then"===n){var s=t.matchPattern(Ju);s&&(r.n=s)}return t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'"),r}function de(t,e){var n,i,r,s,o,a,u,l,c,h,f,d,p,g=!1,m=t.pos;if(t.matchString("^")){if(t.matchString("^/"))return t.pos=m,null;i={t:Ra,f:[],n:pu}}else{if(!t.matchString("#"))return null;i={t:Ra,f:[]},t.matchString("partial")&&(t.pos=m-t.standardDelimiters[0].length,t.error("Partial definitions can only be at the top level of the template, or immediately inside components")),(a=t.matchString("await"))?(h=a,i.t=Ga):(a=t.matchPattern(Dl))&&(h=a,i.n=Nl[a])}if(t.sp(),"with"===a){var v=oe(t);v&&(g=!0,i.z=v,i.t=Xa)}else if("each"===a){var y=ae(t);y&&(i.z=[{n:y.n,x:{r:"."}}],n=y.x)}if(!g){if(n||(n=Vt(t)),n||t.error("Expected expression"),"each"===a&&t.matchString(",")){var b=oe(t);b&&(i.z&&b.unshift(i.z[0]),i.z=b)}if("each"!==a&&a||!(c=t.matchPattern(Ol)))"await"===a&&t.matchString("then")&&(t.sp(),f=!0,(p=t.matchPattern(Ju))||(p=!0));else{var w;(w=t.matchPattern(Pl))?i.i=c+","+w:i.i=c}!a&&n.n&&(h=n.n)}t.sp(),t.matchString(e.close)||t.error("Expected closing delimiter '"+e.close+"'"),t.sectionDepth+=1,s=i.f;var x;do{if(x=t.pos,r=he(t,e))h&&r.r!==h&&(a?(t.pos=x,t.error("Expected "+e.open+"/"+h+e.close)):r.r&&t.warn("Expected "+e.open+"/"+h+e.close+" but found "+e.open+"/"+r.r+e.close)),t.sectionDepth-=1,l=!0;else if(!g&&((r=fe(t,e,"elseif"))||(r=fe(t,e,"else"))||"await"===a&&((r=fe(t,e,"then"))||(r=fe(t,e,"catch"))))){if(i.n===pu&&t.error("{{else}} not allowed in {{#unless}}"),o&&(r.t===yu?t.error("there can only be one {{else}} block, at the end of a section"):r.t===bu&&t.error("illegal {{elseif...}} after {{else}}")),!u&&(p||!f)&&!d)if("await"===a){var k={f:s};i.f=[k],p?(k.t=wu,!0!==p&&(k.n=p)):k.t=Ra}else u=[];var E={t:Ra,f:s=[]};r.t===yu?("await"===a?(i.f.push(E),E.t=yu):(E.n=pu,u.push(E)),o=!0):r.t===bu?(E.n=du,Kt(r.x,E),u.push(E)):r.t===wu?(o&&t.error("{{then}} block must appear before any {{else}} block"),d&&t.error("{{then}} block must appear before any {{catch}} block"),f&&t.error("there can only be one {{then}} block per {{#await}}"),E.t=wu,f=!0,r.n&&(E.n=r.n),i.f.push(E)):r.t===xu&&(o&&t.error("{{catch}} block must appear before any {{else}} block"),d&&t.error("there can only be one {{catch}} block per {{#await}}"),E.t=xu,d=!0,E.n=r.n,i.f.push(E))}else{if(!(r=t.read(ec)))break;s.push(r)}}while(!l);if(u&&(i.l=u),g||Kt(n,i),"await"===a&&(p||!f)&&!d&&!o){var _={f:i.f};i.f=[_],p?(_.t=wu,!0!==p&&(_.n=p)):_.t=Ra}return i.f.length||delete i.f,i}function pe(t){var e=t.pos;if(t.textOnlyMode||!t.matchString(Ml))return null;var n=t.remaining(),i=n.indexOf(Rl);-1===i&&t.error("Illegal HTML - expected closing comment sequence ('--\x3e')");var r=n.substr(0,i);t.pos+=i+3;var s={t:qa,c:r};return t.includeLinePositions&&(s.q=t.getLinePos(e)),s}function ge(t){var e,n,i,r,s;for(e=1;e<t.length;e+=1)n=t[e],i=t[e-1],r=t[e-2],l(n)&&me(i)&&l(r)&&Il.test(r)&&Ll.test(n)&&(t[e-2]=r.replace(Il,"\n"),t[e]=n.replace(Ll,"")),ve(n)&&l(i)&&Il.test(i)&&l(n.f[0])&&Ll.test(n.f[0])&&(t[e-1]=i.replace(Il,"\n"),n.f[0]=n.f[0].replace(Ll,"")),l(n)&&ve(i)&&(s=N(i.f),l(s)&&Il.test(s)&&Ll.test(n)&&(i.f[i.f.length-1]=s.replace(Il,"\n"),t[e]=n.replace(Ll,"")));return t}function me(t){return t.t===qa||t.t===Fa}function ve(t){return(t.t===Ra||t.t===La)&&t.f}function ye(t,e,n){var i;e&&(i=t[0],l(i)&&(i=i.replace(e,""),i?t[0]=i:t.shift())),n&&(i=N(t),l(i)&&(i=i.replace(n,""),i?t[t.length-1]=i:t.pop()))}function be(t,e,n,i,r,s){if(!l(t)){var o,a,u,c,h,f,d;for(ge(t),o=t.length;o--;)a=t[o],a.exclude?t.splice(o,1):e&&a.t===qa&&t.splice(o,1);for(ye(t,i?Bl:null,r?ql:null),o=t.length;o--;){if(a=t[o],f=d=!1,a.f){var p=a.t===Va&&(s[a.e.toLowerCase()]||s[a.e]);h=n||p,!n&&p&&ye(a.f,Fl,zl),h||(u=t[o-1],c=t[o+1],(!u||l(u)&&ql.test(u))&&(f=!0),(!c||l(c)&&Bl.test(c))&&(d=!0)),be(a.f,e,h,f,d,s)}a.l&&(be(a.l,e,n,f,d,s),a.l.forEach(function(t){return t.l=1}),a.l.unshift(o+1,0),t.splice.apply(t,a.l),delete a.l),a.m&&(be(a.m,e,n,f,d,s),a.m.length<1&&delete a.m)}for(o=t.length;o--;)l(t[o])&&(l(t[o+1])&&(t[o]=t[o]+t[o+1],t.splice(o+1,1)),n||(t[o]=t[o].replace(Vl," ")),""===t[o]&&t.splice(o,1))}}function we(t){var e,n=t.pos;return t.matchString("</")?(e=t.matchPattern(Hl))?t.inside&&e!==t.inside?(t.pos=n,null):{t:Ka,e:e}:(t.pos-=2,void t.error("Illegal closing tag")):null}function xe(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function ke(t){var e,n,i,r,s,o,a,u,c,h,f,d=t.pos;if(t.inside||t.inAttribute||t.textOnlyMode)return null;if(!t.matchString("<"))return null;if("/"===t.nextChar())return null;var p={};if(t.includeLinePositions&&(p.q=t.getLinePos(d)),t.matchString("!"))return p.t=Za,t.matchPattern(/^doctype/i)||t.error("Expected DOCTYPE declaration"),p.a=t.matchPattern(/^(.+?)>/),p;if(f=t.matchString("#"))t.sp(),p.t=za,p.n=t.matchPattern($l);else if(p.t=Va,p.e=t.matchPattern(Kl),!p.e)return null;for(Ul.test(t.nextChar())||t.error("Illegal tag name"),t.sp(),t.inTag=!0;e=ne(t);)!1!==e&&(p.m||(p.m=[]),p.m.push(e)),t.sp();if(t.inTag=!1,t.sp(),t.matchString("/")&&(n=!0),!t.matchString(">"))return null;var g=(p.e||p.n).toLowerCase(),m=t.preserveWhitespace;if(!n&&(f||!Du[p.e.toLowerCase()])){f||(t.elementStack.push(g),g in t.interpolate&&(t.inside=g)),i=[],r=Mo(null);do{if(u=t.pos,!(c=t.remaining())){if("script"===t.inside){a=!0;break}t.error("Missing end "+(t.elementStack.length>1?"tags":"tag")+" ("+t.elementStack.reverse().map(function(t){return"</"+t+">"}).join("")+")")}if(f||Ee(g,c))if(!f&&(h=we(t))){a=!0;var v=h.e.toLowerCase();if(v!==g&&(t.pos=u,!~t.elementStack.indexOf(v))){var y="Unexpected closing tag";Du[v.toLowerCase()]&&(y+=" (<"+v+"> is a void element - it cannot contain children)"),t.error(y)}}else if(f&&_e(t,p.n))a=!0;else{var b={open:t.standardDelimiters[0],close:t.standardDelimiters[1]};he(t,b)||Ce(t,b)?(a=!0,t.pos=u):(o=t.read(nc))?(r[o.n]&&(t.pos=u,t.error("Duplicate partial definition")),be(o.f,t.stripComments,m,!m,!m,t.whiteSpaceElements),r[o.n]=o.f,s=!0):(o=t.read(ec))?i.push(o):a=!0}else a=!0}while(!a);i.length&&(p.f=i),s&&(p.p=r),t.elementStack.pop()}if(t.inside=null,t.sanitizeElements&&-1!==t.sanitizeElements.indexOf(g))return Zl;if(p.m&&"input"!==g&&"select"!==g&&"textarea"!==g&&"option"!==g){for(var w,x,k,E,_,C=p.m,S=0;S<C.length;)_=C[S],_.t===Ha?0!==_.n.indexOf("class-")||_.f?0===_.n.indexOf("style-")&&l(_.f)?((x||(x=[])).push(xe(_.n.slice(6))+": "+_.f+";"),C.splice(S,1)):"class"===_.n&&l(_.f)?((w||(w=[])).push(_.f),C.splice(S,1)):"style"===_.n&&l(_.f)?((x||(x=[])).push(_.f+(Wl.test(_.f)?"":";")),C.splice(S,1)):"class"===_.n?(k=_,S++):"style"===_.n?(E=_,S++):!~_.n.indexOf(":")&&"value"!==_.n&&"contenteditable"!==_.n&&l(_.f)?(_.g=1,S++):S++:((w||(w=[])).push(_.n.slice(6)),C.splice(S,1)):S++;w?k&&l(k.f)?k.f+=" "+w.join(" "):C.unshift({t:Ha,n:"class",f:w.join(" "),g:1}):k&&l(k.f)&&(k.g=1),x?E&&l(E.f)?E.f+="; "+x.join(" "):C.unshift({t:Ha,n:"style",f:x.join(" "),g:1}):E&&l(E.f)&&(E.g=1)}return p}function Ee(t,e){var n=/^<([a-zA-Z][a-zA-Z0-9]*)/.exec(e),i=Xl[t];return!n||!i||!~i.indexOf(n[1].toLowerCase())}function _e(t,e){var n=t.pos;return t.matchString("</")?(t.matchString("#"),t.sp(),t.matchString(e)?(t.sp(),!!t.matchString(">")||(t.pos=n,null)):(t.pos=n,null)):null}function Ce(t,e){var n=t.pos;if(t.matchString(e.open))return!!t.matchPattern(Gl)||void(t.pos=n)}function Se(t){var e,n,i,r=t.remaining();return t.textOnlyMode?(n=t.tags.map(function(t){return t.open}),n=n.concat(t.tags.map(function(t){return"\\"+t.open})),e=gt(r,n)):(i=t.inside?"</"+t.inside:"<",t.inside&&!t.interpolate[t.inside]?e=r.indexOf(i):(n=t.tags.map(function(t){return t.open}),n=n.concat(t.tags.map(function(t){return"\\"+t.open})),!0===t.inAttribute?n.push('"',"'","=","<",">","`"):t.inAttribute?n.push(t.inAttribute):n.push(i),e=gt(r,n))),e?(-1===e&&(e=r.length),t.pos+=e,t.inside&&"textarea"!==t.inside||t.textOnlyMode?r.substr(0,e):mt(r.substr(0,e))):null}function Te(t){var e,n,i=t.pos,r=t.standardDelimiters;if(!t.matchString(r[0]))return null;if(!t.matchPattern(Ql))return t.pos=i,null;var s=t.matchPattern(/^[a-zA-Z_$][a-zA-Z_$0-9\-\/]*/);s||t.error("expected legal partial name"),t.sp(),t.matchString(r[1])||t.error("Expected closing delimiter '"+r[1]+"'");var o=[],a=r[0],u=r[1];do{(e=he(t,{open:a,close:u}))?("partial"!==e.r&&t.error("Expected "+a+"/partial"+u),n=!0):(e=t.read(ec),e||t.error("Expected "+a+"/partial"+u),o.push(e))}while(!n);return{t:Wa,n:s,f:o}}function Ae(t){for(var e=[],n=Mo(null),i=!1,r=t.preserveWhitespace;t.pos<t.str.length;){var s=t.pos,o=void 0,a=void 0;(a=t.read(nc))?(n[a.n]&&(t.pos=s,t.error("Duplicated partial definition")),be(a.f,t.stripComments,r,!r,!r,t.whiteSpaceElements),n[a.n]=a.f,i=!0):(o=t.read(ec))?e.push(o):t.error("Unexpected template content")}var u={v:Ta,t:e};return i&&(u.p=n),u}function je(t,e){Io(t).forEach(function(n){if(Ne(n,t))return Oe(t,e);var i=t[n];Pe(i)&&je(i,e)})}function Ne(t,e){return"s"===t&&Bo(e.r)}function Oe(t,e){var n=t.s,i=t.r;e[n]||(e[n]=lt(n,i.length))}function Pe(t){return Bo(t)||s(t)}function De(t,e){return new sc(t,e||{}).result}function Me(t,e,n){t||d("Missing Ractive.parse - cannot parse "+e+". "+n)}function Re(t,e){return Me(lt,"new expression function",ac),lt(t,e)}function Le(t,e){Me(De,'compution string "${str}"',uc);var n=De(t,{expression:!0});return function(){return n.e.apply(e,n.r.map(function(t){return e.get(t)}))}}function Ie(t,e,n){var i,r,s,o,c;return u(n)&&(i=L(n,t),s=n.toString(),o=!0),l(n)&&(i=Le(n,t),s=n),a(n)&&(l(n.get)?(i=Le(n.get,t),s=n.get):u(n.get)?(i=L(n.get,t),s=n.get.toString(),o=!0):d("`%s` computation must have a `get()` method",e),u(n.set)&&(r=L(n.set,t),c=n.set.toString())),{getter:i,setter:r,getterString:s,setterString:c,getterUseStack:o}}function Ve(t){!t.started||t.outros.length||t.outroChildren||(t.outrosComplete||(t.outrosComplete=!0,t.parent&&t.parent.decrementOutros(t),t.parent&&!t.parent.outrosComplete||t.detachNodes()),t.intros.length||t.totalChildren||(u(t.callback)&&t.callback(),t.parent&&!t.notifiedTotal&&(t.notifiedTotal=!0,t.parent.decrementTotal())))}function Be(t){var e=t.detachQueue,n=qe(t);if(n.length){var i,r,s=e.length,o=0,a=t.detachQueue=[];t:for(;s--;){for(i=e[s].node,o=n.length;o--;)if((r=n[o].element.node)===i||r.contains(i)||i.contains(r)){a.push(e[s]);continue t}e[s].detach()}}else t.detachNodes()}function qe(t,e){var n=e;if(n){for(var i=t.children.length;i--;)n=qe(t.children[i],n);return t.outros.length&&(n=n.concat(t.outros)),n}n=[];for(var r=t;r.parent;)r=r.parent;return qe(r,n)}function Fe(t){t.dispatch()}function ze(){var t=dc.immediateObservers;dc.immediateObservers=[],t.forEach(Fe);var e,n=dc.fragments.length;for(t=dc.fragments,dc.fragments=[];n--;)e=t[n],e.update();dc.transitionManager.ready(),t=dc.deferredObservers,dc.deferredObservers=[],t.forEach(Fe);var i=dc.tasks;for(dc.tasks=[],n=0;n<i.length;n+=1)i[n]();if(dc.fragments.length||dc.immediateObservers.length||dc.deferredObservers.length||dc.tasks.length)return ze()}function He(){pc.start();var t,e,n=performance.now();for(t=0;t<gc.length;t+=1)e=gc[t],e.tick(n)||gc.splice(t--,1);pc.end(),gc.length?requestAnimationFrame(He):mc=!1}function Ke(e,n){var i={};if(!n)return e;n+=".";for(var r in e)t(e,r)&&(i[n+r]=e[r]);return i}function $e(t){var e;return bc[t]||(e=t?t+".":"",bc[t]=function(n,i){var r;return l(n)?(r={},r[e+n]=i,r):a(n)?e?Ke(n,t):n:void 0}),bc[t]}function Ue(t){for(var e=[],n=0;n<t.length;n++)e[n]=(t.childByKey[n]||{}).value;return e}function We(t){for(var e=t;e&&!e.context&&!e.aliases;)e=e.parent;return e}function Ze(e,n){var i=e;if("."===n)return e.findContext();if("~"===n[0])return e.ractive.viewmodel.joinAll(_(n.slice(2)));if("."===n[0]||"^"===n[0]){for(var r=e,s=n.split("/"),o="^^"===s[0];r&&!r.context;)r=Xe(r);for(var a=r&&r.context;r&&"^^"===s[0];){for(s.shift(),r=r.isIteration?r.parent.parent:Xe(r);r&&!r.context;)r=Xe(r);a=r&&r.context}if(!a&&o)throw new Error("Invalid context parent reference ('"+n+"'). There is not context at that level.");for(;"."===s[0]||".."===s[0];){".."===s.shift()&&(a=a.parent)}return n=s.join("/"),"."===n[0]&&(n=n.slice(1)),a.joinAll(_(n))}var l=_(n);if(l.length){var c=l.shift();if("@"===c[0]){if("@this"===c||"@"===c)return e.ractive.viewmodel.getRactiveModel().joinAll(l);if("@index"===c||"@key"===c){l.length&&Qe(c);var h=Ge(e);return h&&h["get"+("i"===c[1]?"Index":"Key")]()}if("@last"===c){var f=Ge(e);return f&&f.parent.getLast()}if("@global"===c)return Cc.joinAll(l);if("@shared"===c)return _c.joinAll(l);if("@keypath"===c||"@rootpath"===c){for(var d="r"===n[1]?e.ractive.root:null,p=e;p&&(!p.context||p.isRoot&&p.ractive.component&&(d||!p.ractive.isolated));)p=p.isRoot?p.componentParent:p.parent;return p.getKeypath(d)}if("@context"===c)return new Sc(e.getContext());if("@local"===c)return e.getContext()._data.joinAll(l);if("@style"===c)return e.ractive.constructor._cssModel.joinAll(l);if("@helpers"===c)return e.ractive.viewmodel.getHelpers().joinAll(l);throw new Error("Invalid special reference '"+c+"'")}if(c&&!l.length){var g=e.ractive.viewmodel.getHelpers();if(g.has(c))return g.joinKey(c)}var m=We(e);if(m)if(m.context){if(m=m.context,m.has(c))return m.joinKey(c).joinAll(l)}else m=e.findContext();else m=e.findContext();for(var y,b=!1,w=e.ractive.warnAboutAmbiguity,x=0;e;){if(e.isIteration&&(c===e.parent.keyRef?y=e.getKey():c===e.parent.indexRef&&(y=e.getIndex()),y&&l.length&&Qe(c)),!y&&e.aliases&&t(e.aliases,c)&&(y=e.aliases[c]),!y&&e.context&&e.context.has(c)&&(y=e.context.joinKey(c),b?w&&v("'"+n+"' resolved but is ambiguous and will create a mapping to a parent component."):w&&x&&v("'"+n+"' resolved but is ambiguous.")),y)return b&&(y=i.ractive.viewmodel.createLink(c,y,c,{implicit:!0})),l.length>0&&u(y.joinAll)&&(y=y.joinAll(l)),y;e.context&&!e.aliases&&(x=1),(e.componentParent||!e.parent&&e.ractive.component)&&!e.ractive.isolated?(e=e.componentParent||e.ractive.component.up,b=!0):e=e.parent}var k=i.ractive;return k.resolveInstanceMembers&&"data"!==c&&c in k?k.viewmodel.getRactiveModel().joinKey(c).joinAll(l):(w&&v("'"+n+"' is ambiguous and did not resolve."),m.joinKey(c).joinAll(l))}}function Xe(t){return t&&(!t.ractive.isolated&&t.componentParent||t.parent)}function Ge(t){for(var e,n=t;!n.isIteration&&(e=Xe(n));)n=e;return n.isIteration&&n}function Qe(t){throw new Error("An index or key reference ("+t+") cannot have child properties")}function Ye(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=t.fragment||t._fakeFragment||(t._fakeFragment=new Nc(t));return i.getContext.apply(i,e)}function Je(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return this.ctx||(this.ctx=new jc.Context(this)),t.unshift(Mo(this.ctx)),Do.apply(null,t)}function tn(t){for(var e=t;e&&!e.context;)e=e.parent;return e||t&&t.ractive.fragment}function en(t,e){var n=Pc,i=e&&e.deep,r=e&&e.shuffle,s=pc.start();e&&"keep"in e&&(Pc=e.keep);for(var o=t.length;o--;){var a=t[o][0],u=t[o][1],l=t[o][2];if(!a)throw pc.end(),new Error("Failed to set invalid keypath '"+l+"'");if(i)sn(a,u);else if(r){var c=u,h=a.get();if(c||(c=h),void 0===h)a.set(c);else{if(!Bo(h)||!Bo(c))throw pc.end(),new Error("You cannot merge an array with a non-array");var f=on(r);a.merge(c,f)}}else a.set(u)}return pc.end(),Pc=n,s}function nn(t,e,n,i){if(!n&&("."===e[0]||"^"===e[1]))return v("Attempted to set a relative keypath from a non-relative context. You can use a context object to set relative keypaths."),[];var r=_(e),s=n||t.viewmodel;return Dc.test(e)?s.findMatches(r):s===t.viewmodel?!t.component||t.isolated||s.has(r[0])||"@"===e[0]||!e[0]||i?[s.joinAll(r)]:[Ze(t.fragment||new Nc(t),e)]:[s.joinAll(r)]}function rn(e,n,i,r){var o=[];if(s(n)){for(var a in n)!function(i){t(n,i)&&o.push.apply(o,nn(e,i,null,r).map(function(t){return[t,n[i],i]}))}(a)}else o.push.apply(o,nn(e,n,null,r).map(function(t){return[t,i,n]}));return o}function sn(e,n){var i=e.get(!1,Mc);if(null==i||!a(n))return e.set(n);if(!a(i))return e.set(n);for(var r in n)t(n,r)&&sn(e.joinKey(r),n[r])}function on(t){if(!0===t)return null;if(u(t))return t;if(l(t))return Rc[t]||(Rc[t]=function(e){return e[t]});throw new Error("If supplied, options.compare must be a string, function, or true")}function an(t,e,n,i){if(!l(e)||!r(n))throw new Error("Bad arguments");return en(rn(t,e,n,i&&i.isolated).map(function(t){var e=t[0],n=t[1],i=e.get();if(!r(n)||!r(i))throw new Error(Lc);return[e,i+n]}))}function un(t,e,n){return an(this,t,c(e)?e:1,a(e)?e:n)}function ln(t){var e=Promise.resolve(t);return Ro(e,"stop",{value:h}),e}function cn(t,e){t=t||{};var n;return t.easing&&(n=u(t.easing)?t.easing:e.easing[t.easing]),{easing:n||Ic,duration:"duration"in t?t.duration:400,complete:t.complete||h,step:t.step||h,interpolator:t.interpolator}}function hn(t,e,n,r){r=cn(r,t);var s=e.get();if(i(s,n))return r.complete(r.to),ln(n);var o=x(s,n,t,r.interpolator);return o?e.animate(s,n,r,o):(pc.start(),e.set(n),pc.end(),ln(n))}function fn(t,e,n){if(a(t)){var i=Io(t);throw new Error("ractive.animate(...) no longer supports objects. Instead of ractive.animate({\n "+i.map(function(e){return"'"+e+"': "+t[e]}).join("\n ")+"\n}, {...}), do\n\n"+i.map(function(e){return"ractive.animate('"+e+"', "+t[e]+", {...});"}).join("\n")+"\n")}return hn(this,this.viewmodel.joinAll(_(t)),e,n)}function dn(t,e){t.event&&t._eventQueue.push(t.event),t.event=e}function pn(t){t._eventQueue.length?t.event=t._eventQueue.pop():t.event=null}function gn(t,e){var n=e?Vc:Bc;if(n[t])return n[t];var i=t.split("."),r=[],s=!1;e&&(i.unshift("this"),s=!0);for(var o=Math.pow(2,i.length)-(e?1:0),a=0;a<o;a++){for(var u=[],l=0;l<i.length;l++)u.push(1&a>>l?"*":i[l]);r.unshift(u.join("."))}return s&&(i.length>2?r.push.apply(r,gn(t,!1)):(r.push("*"),r.push(t))),n[t]=r,r}function mn(t,e,n,i){if(void 0===i&&(i=[]),e){n.name=e,i.unshift(n);return vn(t,t._nsSubs?gn(e,!0):["*",e],n,i,!0)}}function vn(t,e,n,i,r){
void 0===r&&(r=!1);var s=!0;if(r||t._nsSubs){dn(t,n);for(var o=e.length;o--;)e[o]in t._subs&&(s=yn(t,t._subs[e[o]],n,i)&&s);pn(t)}if(t.parent&&s){if(r&&t.component){e=gn(t.component.name+"."+e[e.length-1],!1),n&&!n.component&&(n.component=t)}s=vn(t.parent,e,n,i)}return s}function yn(t,e,n,i){var r=null,s=!1;e=e.slice();for(var o=0,a=e.length;o<a;o+=1)e[o].off||!1!==e[o].handler.apply(t,i)||(s=!0);return n&&s&&(r=n.event)&&(r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation()),!s}function bn(t,e){return t[e._guid]||(t[e._guid]=[])}function wn(t,e){var n=bn(t.queue,e);for(t.hook.fire(e);n.length;)wn(t,n.shift());delete t.queue[e._guid]}function xn(t,e){void 0===e&&(e=null);var n=[];return kn(t,e,n),n}function kn(t,e,n){t.isAnchor?e&&t.name!==e||n.push(t):t.items?t.items.forEach(function(t){return kn(t,e,n)}):t.iterations?t.iterations.forEach(function(t){return kn(t,e,n)}):t.fragment&&!t.component&&kn(t.fragment,e,n)}function En(t,e){void 0===e&&(e=null);var n=xn(t.fragment,e),i={},r=t._children.byName;n.forEach(function(t){var e=t.name;e in i||(i[e]=0);var n=i[e],s=(r[e]||[])[n];s&&s.lastBound!==t&&(s.lastBound&&s.lastBound.removeChild(s),t.addChild(s)),i[e]++})}function _n(t){t.instance.fragment.rendered&&(t.shouldDestroy=!0,t.instance.unrender()),t.instance.el=null}function Cn(t,e){void 0===e&&(e={});var n,i=this._children;if(t.parent&&t.parent!==this)throw new Error("Instance "+t._guid+" is already attached to a different instance "+t.parent._guid+". Please detach it from the other instance using detachChild first.");if(t.parent)throw new Error("Instance "+t._guid+" is already attached to this instance.");var r={instance:t,ractive:this,name:e.name||t.constructor.name||"Ractive",target:e.target||!1,bubble:Sn,findNextNode:Tn};if(r.nameOption=e.name,r.target){var s;(s=i.byName[r.target])||(s=[],this.set("@this.children.byName."+r.target,s)),n=e.prepend?0:void 0!==e.insertAt?e.insertAt:s.length}else r.up=this.fragment,r.external=!0;t.parent=this,t.root=this.root,t.component=r,i.push(r);var o=pc.start(),a=t.viewmodel.getRactiveModel();return a.joinKey("parent",{lastLink:!1}).link(this.viewmodel.getRactiveModel()),a.joinKey("root",{lastLink:!1}).link(this.root.viewmodel.getRactiveModel()),Hc.attachchild.fire(t),r.target?(_n(r),this.splice("@this.children.byName."+r.target,n,0,r),En(this,r.target)):t.isolated||t.viewmodel.attached(this.fragment),pc.end(),o.ractive=t,o.then(function(){return t})}function Sn(){pc.addFragment(this.instance.fragment)}function Tn(){if(this.anchor)return this.anchor.findNextNode()}function An(t,e){this.computed[t]=e,(l(e)||u(e))&&(e=this.computed[t]={get:e});var n=_(t);if(!~t.indexOf("*")){var i=n.pop();return this.viewmodel.joinAll(n).compute(i,e)}e.pattern=new RegExp("^"+n.map(function(t){return t.replace(/\*\*/g,"(.+)").replace(/\*/g,"((?:\\\\.|[^\\.])+)")}).join("\\.")+"$")}function jn(t,e){var n=pc.start(),i=An.call(this,t,e);if(i){var r=_(t);1!==r.length||i.isReadonly||i.set(this.viewmodel.value[r[0]]);var s=r.reduce(function(t,e){return t&&t.childByKey[e]},this.viewmodel);s&&(s.rebind(i,s,!1),s.parent&&delete s.parent.childByKey[s.key],q())}return pc.end(),n}function Nn(){return this.isDetached?this.el:(this.el&&O(this.el.__ractive_instances__,this),this.el=this.fragment.detach(),this.isDetached=!0,Hc.detach.fire(this),this.el)}function On(t){for(var e,n,i=this._children,r=i.length;r--;)if(i[r].instance===t){n=r,e=i[r];break}if(!e||t.parent!==this)throw new Error("Instance "+t._guid+" is not attached to this instance.");var s=pc.start();e.anchor&&e.anchor.removeChild(e),t.isolated||t.viewmodel.detached(),i.splice(n,1),e.target&&(this.splice("@this.children.byName."+e.target,i.byName[e.target].indexOf(e),1),En(this,e.target));var o=t.viewmodel.getRactiveModel();return o.joinKey("parent",{lastLink:!1}).unlink(),o.joinKey("root",{lastLink:!1}).link(o),t.root=t,t.parent=null,t.component=null,Hc.detachchild.fire(t),pc.end(),s.ractive=t,s.then(function(){return t})}function Pn(t,e){var n=this;if(void 0===e&&(e={}),!this.rendered)throw new Error("Cannot call ractive.find('"+t+"') unless instance is rendered to the DOM");var i=this.fragment.find(t,e);if(i)return i;if(e.remote)for(var r=0;r<this._children.length;r++)if(n._children[r].instance.fragment.rendered&&(i=n._children[r].instance.find(t,e)))return i}function Dn(t,e){if(void 0===e&&(e={}),!this.rendered)throw new Error("Cannot call ractive.findAll('"+t+"', ...) unless instance is rendered to the DOM");return Bo(e.result)||(e.result=[]),this.fragment.findAll(t,e),e.remote&&this._children.forEach(function(n){!n.target&&n.instance.fragment&&n.instance.fragment.rendered&&n.instance.findAll(t,e)}),e.result}function Mn(t,e){return!e&&a(t)&&(e=t,t=""),e=e||{},Bo(e.result)||(e.result=[]),this.fragment.findAllComponents(t,e),e.remote&&this._children.forEach(function(n){!n.target&&n.instance.fragment&&n.instance.fragment.rendered&&(t&&n.name!==t||e.result.push(n.instance),n.instance.findAllComponents(t,e))}),e.result}function Rn(t,e){var n=this;void 0===e&&(e={}),a(t)&&(e=t,t="");var i=this.fragment.findComponent(t,e);if(i)return i;if(e.remote){if(!t&&this._children.length)return this._children[0].instance;for(var r=0;r<this._children.length;r++)if(!n._children[r].target){if(n._children[r].name===t)return n._children[r].instance;if(i=n._children[r].instance.findComponent(t,e))return i}}}function Ln(t){return this.container?this.container.component&&this.container.component.name===t?this.container:this.container.findContainer(t):null}function In(t){return this.parent?this.parent.component&&this.parent.component.name===t?this.parent:this.parent.findParent(t):null}function Vn(t,e,n){for(void 0===e&&(e=!0);t&&(t.type!==Va||n&&t.name!==n)&&(!e||t.type!==$a&&t.type!==za);)t=t.owner?t.owner:t.component?t.containerFragment||t.component.up:t.parent?t.parent:t.up?t.up:void 0;return t}function Bn(t,e,n){var i=[],r=qn(t,e,n);if(!r)return null;var s=r.length-2-r[1],o=Math.min(t,r[0]),a=o+r[1];i.startIndex=o;var u;for(u=0;u<o;u+=1)i.push(u);for(;u<a;u+=1)i.push(-1);for(;u<t;u+=1)i.push(u+s);return i.touchedFrom=0!==s?r[0]:t,i}function qn(t,e,n){switch(e){case"splice":for(void 0!==n[0]&&n[0]<0&&(n[0]=t+Math.max(n[0],-t)),void 0===n[0]&&(n[0]=0);n.length<2;)n.push(t-n[0]);return c(n[1])||(n[1]=t-n[0]),n[1]=Math.min(n[1],t-n[0]),n;case"sort":case"reverse":return null;case"pop":return t?[t-1,1]:[0,0];case"push":return[t,0].concat(n);case"shift":return[0,t?1:0];case"unshift":return[0,0].concat(n)}}function Fn(t){function e(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return n(this.viewmodel.joinAll(_(t)),e)}function n(e,n){var i=e.get();if(!Bo(i)){if(void 0===i){i=[];var r=Kc[t].apply(i,n),s=pc.start().then(function(){return r});return e.set(i),pc.end(),s}throw new Error("shuffle array method "+t+" called on non-array at "+e.getKeypath())}var o=Bn(i.length,t,n),a=Kc[t].apply(i,n),u=pc.start().then(function(){return a});return u.result=a,o?e.shuffle?e.shuffle(o):e.mark():e.set(a),pc.end(),u}return{path:e,model:n}}function zn(t,e,n){e.parent&&e.parent.wrapper&&e.parent.adapt();var i=pc.start();return e.mark(n&&n.force),e.notifyUpstream(),pc.end(),Hc.update.fire(t,e),i}function Hn(t,e){var n,i;return l(t)?(i=_(t),n=e):n=t,zn(this,i?this.viewmodel.joinAll(i):this.viewmodel,n)}function Kn(e,n,i){var r=[];if(s(n))for(var o in n)t(n,o)&&r.push([$n(e,o).model,n[o]]);else r.push([$n(e,n).model,i]);return r}function $n(t,e){var n=t.fragment;return l(e)?{model:Ze(n,e),instance:n.ractive}:{model:n.findContext(),instance:e}}function Un(t,e){return t.events&&t.events.find&&t.events.find(function(t){return~t.template.n.indexOf(e)})}function Wn(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i;if(e[0]instanceof Jc){var r=e.shift();i=Mo(r),Do(i,r)}else i=!a(e[0])||null!==e[0]&&e[0].constructor!==Object?Jc.forRactive(this):Jc.forRactive(this,e.shift());return mn(this,t,i,e)}function Zn(t,e){if(!l(t))return this.viewmodel.get(!0,t);var n,i=_(t),r=i[0];return this.viewmodel.has(r)||this.component&&!this.isolated&&(n=Ze(this.fragment||new Nc(this),r)),n=this.viewmodel.joinAll(i),n.get(!0,e)}function Xn(t){l(t)&&hh&&(t=hh.call(document,t));var e;if(t){if(t._ractive)return t._ractive.proxy.getContext();if(!(e=t.__ractive_instances__))return Xn(t.parentNode);if(1===e.length)return Ye(e[0])}}function Gn(t,e){return t?(l(t)&&(t=this.find(t,e)),Xn(t)):Ye(this)}function Qn(){return ea.createDocumentFragment()}function Yn(t){var e;if(t&&"boolean"!=typeof t){if(!ta||!ea||!t)return null;if(t.nodeType)return t;if(l(t)){if(!(e=ea.getElementById(t))&&ea.querySelector)try{e=ea.querySelector(t)}catch(t){}if(e&&e.nodeType)return e}return t[0]&&t[0].nodeType?t[0]:null}}function Jn(t){return t&&"unknown"!=typeof t.parentNode&&t.parentNode&&t.parentNode.removeChild(t),t}function ti(t){return null==t||c(t)&&isNaN(t)||!t.toString?"":""+t}function ei(t){return ti(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'")}function ni(t,e){if(!this.fragment.rendered)throw new Error("The API has changed - you must call `ractive.render(target[, anchor])` to render your Ractive instance. Once rendered you can use `ractive.insert()`.");if(t=Yn(t),e=Yn(e)||null,!t)throw new Error("You must specify a valid target to insert into");t.insertBefore(this.detach(),e),this.el=t,(t.__ractive_instances__||(t.__ractive_instances__=[])).push(this),this.isDetached=!1,ii(this)}function ii(t){Hc.insert.fire(t),t.findAllComponents("*").forEach(function(t){ii(t.instance)})}function ri(t,e,n){var i,r=n&&(n.ractive||n.instance)||this,s=_(t);!r.viewmodel.has(s[0])&&r.component&&(i=Ze(r.component.up,s[0]),i=i.joinAll(s.slice(1)));var o=i||r.viewmodel.joinAll(s),a=this.viewmodel.joinAll(_(e),{lastLink:!1});if(si(o,a)||si(a,o))throw new Error("A keypath cannot be linked to itself.");var u=pc.start();return a.link(o,n&&n.keypath||t),pc.end(),u}function si(t,e){for(var n=e;n;){if(n===t||n.owner===t)return!0;n=n.target||n.parent}}function oi(t,e){var n=e&&t.model?t.model.get():t.newValue;t.oldValue=t.oldFn?t.oldFn.call(t.oldContext,void 0,n,t.keypath):n}function ai(t,e,n){var i=t.oldValues;t.oldFn?(n||(t.oldValues={}),Io(e).forEach(function(n){var r=[i[n],e[n],n],s=t.pattern.exec(n);s&&r.push.apply(r,s.slice(1)),t.oldValues[n]=t.oldFn.apply(t.oldContext,r)})):n?Io(e).forEach(function(t){return i[t]=e[t]}):t.oldValues=e}function ui(){return-1}function li(t,e,n){var i,r,o=this,a=[];s(t)?(i=t,r=e||{}):u(t)?(i={"":t},r=e||{}):(i={},i[t]=e,r=n||{});var l=!1;return Io(i).forEach(function(t){var e=i[t],n=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(!l)return e.apply(this,t)},s=t.split(" ");s.length>1&&(s=s.filter(function(t){return t})),s.forEach(function(t){r.keypath=t;var e=ci(o,t,n,r);e&&a.push(e)})}),this._observers.push.apply(this._observers,a),{cancel:function(){return a.forEach(function(t){return t.cancel()})},isSilenced:function(){return l},silence:function(){return l=!0},resume:function(){return l=!1}}}function ci(t,e,n,i){var r=_(e),s=r.indexOf("*");~s||(s=r.indexOf("**")),i.fragment=i.fragment||t.fragment;var o;if(i.fragment?~r[0].indexOf(".*")?(o=i.fragment.findContext(),s=0,r[0]=r[0].slice(1)):o=0===s?i.fragment.findContext():Ze(i.fragment,r[0]):o=t.viewmodel.joinKey(r[0]),o||(o=t.viewmodel.joinKey(r[0])),~s){var a=r.indexOf("**");return~a&&(a+1!==r.length||~r.indexOf("*"))?void y("Recursive observers may only specify a single '**' at the end of the path."):(o=o.joinAll(r.slice(1,s)),new yh(t,o,r.slice(s),n,i))}return o=o.joinAll(r.slice(1)),i.array?new wh(t,o,n,i):new gh(t,o,n,i)}function hi(t,e,n){return s(t)||u(t)?(n=Do(e||{},kh),this.observe(t,n)):(n=Do(n||{},kh),this.observe(t,e,n))}function fi(t,e){var n=this;if(t){t.split(" ").map(Eh).filter(_h).forEach(function(t){var i=n._subs[t];if(i&&e){var r=i.find(function(t){return t.callback===e});r&&(O(i,r),r.off=!0,t.indexOf(".")&&n._nsSubs--)}else i&&(t.indexOf(".")&&(n._nsSubs-=i.length),i.length=0)})}else this._subs={};return this}function di(e,n){var i=this,r=a(e)?e:{};l(e)&&(r[e]=n);var s=!1,o=[];for(var u in r)!function(e){var n=r[e],a=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(!s)return n.apply(this,t)},u={callback:n,handler:a};if(t(r,e)){e.split(" ").map(Eh).filter(_h).forEach(function(t){(i._subs[t]||(i._subs[t]=[])).push(u),t.indexOf(".")&&i._nsSubs++,o.push([t,u])})}}(u);return{cancel:function(){return o.forEach(function(t){return i.off(t[0],t[1].callback)})},isSilenced:function(){return s},silence:function(){return s=!0},resume:function(){return s=!1}}}function pi(t,e){var n=this.on(t,function(){e.apply(this,arguments),n.cancel()});return n}function gi(t,e){void 0===e&&(e={});var n=_(t);if(this.viewmodel.has(n[0])){var i=this.viewmodel.joinAll(n);if(!i.isLink)return;for(;(i=i.target)&&!1!==e.canonical&&i.isLink;);if(i)return{ractive:i.root.ractive,keypath:i.getKeypath()}}}function mi(t){Ah.push(t),jh=!0}function vi(t){var e=bi();e&&(t||jh)&&(Oh?e.styleSheet.cssText=yi(null):e.innerHTML=yi(null),jh=!1)}function yi(t){var e=t?Ah.filter(function(e){return~t.indexOf(e.id)}):Ah;return e.forEach(function(t){return t.applied=!0}),e.reduce(function(t,e){return t?t+"\n\n/* {"+e.id+"} */\n"+e.styles:""},Th)}function bi(){return ea&&!Nh&&(Nh=ea.createElement("style"),Nh.type="text/css",Nh.setAttribute("data-ractive-css",""),ea.getElementsByTagName("head")[0].appendChild(Nh),Oh=!!Nh.styleSheet),Nh}function wi(t,e,n){void 0===n&&(n=[]);var i=[],r=function(t){return t.replace(Rh,function(t,e){return i[e]})};return t=t.replace(Mh,function(t){return"\0"+(i.push(t)-1)}).replace(Dh,""),n.forEach(function(e){t=t.replace(e,function(t){return"\0"+(i.push(t)-1)})}),e(t,r)}function xi(t){return t.trim()}function ki(t){return t.str}function Ei(t,e){for(var n,i=[];n=qh.exec(t);)i.push({str:n[0],base:n[1],modifiers:n[2]});for(var r=i.map(ki),s=[],o=i.length;o--;){var a=r.slice(),u=i[o];a[o]=u.base+e+u.modifiers||"";var l=r.slice();l[o]=e+" "+l[o],s.push(a.join(" "),l.join(" "))}return s.join(", ")}function _i(t,e){var n='[data-ractive-css~="{'+e+'}"]';return zh.test(t)?t.replace(zh,n):wi(t,function(t,e){return t=t.replace(Ih,"$&").replace(Lh,function(t,e){if(Fh.test(e))return t;var i=e.split(",").map(xi),r=i.map(function(t){return Ei(t,n)}).join(", ")+" ";return t.replace(e,r)}).replace(Vh,""),e(t)},[Bh])}function Ci(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function Si(){return Ci()+Ci()+"-"+Ci()+"-"+Ci()+"-"+Ci()+"-"+Ci()+Ci()+Ci()}function Ti(t,e,n){var i=a(t)?e:n,r=this._cssModel;r.locked=!0;var s=en(rn({viewmodel:r},t,e,!0),i);r.locked=!1;var o=pc.start();return this.extensions.forEach(function(t){var e=t._cssModel;e.mark(),e.downstreamChanged("",1)}),pc.end(),Ai(this,!i||!1!==i.apply),s.then(function(){return o})}function Ai(t,e){var n=ji(t),i=t.extensions.map(function(t){return Ai(t,!1)}).reduce(function(t,e){return e||t},!1);if(e&&(n||i)){var r=t._cssDef;(!r||r&&r.applied)&&vi(!0)}return n||i}function ji(t){var e=t.css;if(u(e)){var n=t._cssDef,i=Oi(t,e),r=n.transform?_i(i,n.id):i;if(n.styles!==r)return n.styles=r,!0}}function Ni(t){for(var e=t,n=[];e;)e.prototype.cssId&&n.push(e.prototype.cssId),e=e.Parent;return n}function Oi(t,e){if(l(e))return e;var n=t.cssData,i=t._cssModel,r=function(t){return i.joinAll(_(t)).get()};r.__proto__=n;var s=e.call(t,r);return l(s)?s:""}function Pi(t,e,n){var i=!0===t.css?"":l(t.css)&&!Kh.test(t.css)?Yn(t.css)||t.css:t.css,r=i,s=t.cssId||Si();a(i)?(i="textContent"in i?i.textContent:i.innerHTML,r=i):u(i)&&(r=i,i=Oi(e,i));var o={transform:!t.noCssTransform};Ro(e,"_cssDef",{configurable:!0,value:o}),Ro(e,"css",{get:function(){return r},set:function(t){r=t;var n=Oi(e,r),i=o.styles;o.styles=o.transform?_i(n,s):n,o.applied&&i!==o.styles&&vi(!0)}}),o.styles=o.transform?_i(i,s):i,o.id=n.cssId=s,e._cssIds.push(s),mi(e._cssDef)}function Di(t){t&&t.constructor!==Object&&(u(t)||(a(t)?v("If supplied, options.data should be a plain JavaScript object - using a non-POJO as the root object may work, but is discouraged"):d("data option must be an object or a function, `"+t+"` is not valid")))}function Mi(){return{}}function Ri(t,e){Di(e);var n=u(t);e||n||(e=Mi);var i=u(e);return n||i?function(){return Ii(i?Li(e,this):e,n?Li(t,this):t)}:Ii(e,t)}function Li(t,e){var n=t.call(e);if(n)return a(n)||d("Data function must return an object"),n.constructor!==Object&&y("Data function returned something other than a plain JavaScript object. This might work, but is strongly discouraged"),n}function Ii(t,e){if(t&&e){for(var n in e)n in t||(t[n]=e[n]);return t}return t||e}function Vi(t){var e=t._config.template;if(e&&e.fn){var n=Bi(t,e.fn);return n!==e.result?(e.result=n,n):void 0}}function Bi(t,e){return e.call(t,{fromId:lc.fromId,isParsed:lc.isParsed,parse:function(e,n){return void 0===n&&(n=lc.getParseOptions(t)),lc.parse(e,n)}})}function qi(t,e){return l(t)?t=Fi(t,e):(zi(t),ht(t)),t}function Fi(t,e){return"#"===t[0]&&(t=lc.fromId(t)),lc.parseFor(t,e)}function zi(t){if(void 0==t)throw new Error("The template cannot be "+t+".");if(!c(t.v))throw new Error("The template parser was passed a non-string template, but the template doesn't have a version. Make sure you're passing in the template you think you are.");if(t.v!==Ta)throw new Error("Mismatched template version (expected "+Ta+", got "+t.v+") Please ensure you are using the latest version of Ractive.js in your build process as well as in your app")}function Hi(e,n,i){if(n)for(var r in n)!i&&t(e,r)||(e[r]=n[r])}function Ki(t,e,n){function i(){var t=$i(i._parent,e),r="_super"in this,s=this._super;this._super=t;var o=n.apply(this,arguments);return r?this._super=s:delete this._super,o}return/_super/.test(n)?(i._parent=t,i._method=n,i):n}function $i(t,e){if(e in t){var n=t[e];return u(n)?n:function(){return n}}return h}function Ui(t,e,n){return"options."+t+" has been deprecated in favour of options."+e+"."+(n?" You cannot specify both options, please use options."+e+".":"")}function Wi(t,e,n){if(e in t){if(n in t)throw new Error(Ui(e,n,!0));v(Ui(e,n)),t[n]=t[e]}}function Zi(t){Wi(t,"beforeInit","onconstruct"),Wi(t,"init","onrender"),Wi(t,"complete","oncomplete"),Wi(t,"eventDefinitions","events"),Bo(t.adaptors)&&Wi(t,"adaptors","adapt")}function Xi(e,n,i,r,s){Zi(r);for(var o in r)if(t(nf,o)){var a=r[o];"el"!==o&&u(a)?v(o+" is a Ractive option that does not expect a function and will be ignored","init"===e?i:null):i[o]=a}if(i.append&&i.enhance)throw new Error("Cannot use append and enhance at the same time");Yh.forEach(function(t){t[e](n,i,r,s)}),Ph[e](n,i,r,s),Wh[e](n,i,r,s),$h[e](n,i,r,s),Gi(n.prototype,i,r)}function Gi(e,n,i){for(var r in i)if(!rf[r]&&t(i,r)){var s=i[r];u(s)&&((r in Rp||"on"===r.slice(0,2)&&r.slice(2)in Hc&&r in n)&&!of.test(s.toString())&&v("Overriding Ractive prototype function '"+r+"' without calling the '"+of+"' method can be very dangerous."),s=Ki(e,r,s)),n[r]=s}}function Qi(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function Yi(t){t.deps.length||t.refs||t.links.length||t.teardown()}function Ji(t){t.base&&t.base.unregister(t.proxy),t.models&&t.models.forEach(function(e){e.unregister&&e.unregister(t)})}function tr(t){var e,n,i=t.deps.length;for(e=0;e<i;e++)n=t.deps[e],n.pathChanged&&n.pathChanged(),n.fragment&&n.fragment.pathModel&&n.fragment.pathModel.applyValue(t.getKeypath());for(i=t.children.length,e=0;e<i;e++)tr(t.children[e])}function er(t,e){return e.r?Ze(t,e.r):e.x?new pf(t,e.x):e.rx?new vf(t,e.rx):void 0}function nr(t,e,n){void 0===n&&(n={});for(var i=0;i<t.length;i++)if(!n[t[i].n]){var r=er(e,t[i].x);n[t[i].n]=r,r.reference()}return n}function ir(t){return l(t)?wi(t,function(t,e){return t.split(";").filter(function(t){return!!t.trim()}).map(e).reduce(function(t,e){var n=e.indexOf(":");return t[e.substr(0,n).trim()]=e.substr(n+1).trim(),t},{})}):{}}function rr(t){for(var e=t.split(xf),n=e.length;n--;)e[n]||e.splice(n,1);return e}function sr(t){var e=t.element,n=t.name;if("value"===n){if(t.interpolator&&(t.interpolator.bound=!0),"select"===e.name&&"value"===n)return e.getAttribute("multiple")?or:ar;if("textarea"===e.name)return hr;if(null!=e.getAttribute("contenteditable"))return ur;if("input"===e.name){var i=e.getAttribute("type");if("file"===i)return h;if("radio"===i&&e.binding&&"name"===e.binding.attribute.name)return lr;if(~kf.indexOf(i))return hr}return cr}var r=e.node;if(t.isTwoway&&"name"===n){if("radio"===r.type)return fr;if("checkbox"===r.type)return dr}if("style"===n)return pr;if(0===n.indexOf("style-"))return gr;if("class"===n&&(!r.namespaceURI||r.namespaceURI===fh))return mr;if(0===n.indexOf("class-"))return vr;if(t.isBoolean){var s=e.getAttribute("type");return!t.interpolator||"checked"!==n||"checkbox"!==s&&"radio"!==s||(t.interpolator.bound=!0),yr}return t.namespace&&t.namespace!==t.node.namespaceURI?wr:br}function or(t){var e=this.getValue();Bo(e)||(e=[e]);var n=this.node.options,i=n.length;if(t)for(;i--;)n[i].selected=!1;else for(;i--;){var r=n[i],s=r._ractive?r._ractive.value:r.value;r.selected=T(e,s)}}function ar(t){var e=this.getValue();if(!this.locked){this.node._ractive.value=e;var n=this.node.options,i=n.length,r=!1;if(t)for(;i--;)n[i].selected=!1;else for(;i--;){var s=n[i],o=s._ractive?s._ractive.value:s.value;if(s.disabled&&s.selected&&(r=!0),o==e)return void(s.selected=!0)}r||(this.node.selectedIndex=-1)}}function ur(t){var e=this.getValue();this.locked||(this.node.innerHTML=t?"":void 0===e?"":e)}function lr(t){var e=this.node,n=e.checked,i=this.getValue();if(t)return e.checked=!1;e.value=this.node._ractive.value=i,e.checked=this.element.compare(i,this.element.getAttribute("name")),n&&!e.checked&&this.element.binding&&this.element.binding.rendered&&this.element.binding.group.model.set(this.element.binding.group.getValue())}function cr(t){if(!this.locked)if(t)this.node.removeAttribute("value"),this.node.value=this.node._ractive.value=null;else{var e=this.getValue();this.node.value=this.node._ractive.value=e,this.node.setAttribute("value",ti(e))}}function hr(t){if(!this.locked)if(t)this.node._ractive.value="",this.node.removeAttribute("value");else{var e=this.getValue();this.node._ractive.value=e;var n=ti(e);this.node.value!==n&&(this.node.value=n),this.node.setAttribute("value",n)}}function fr(t){this.node.checked=!t&&this.element.compare(this.getValue(),this.element.binding.getValue())}function dr(t){var e=this,n=e.element,i=e.node,r=n.binding,s=this.getValue(),o=n.getAttribute("value");if(Bo(s)){for(var a=s.length;a--;)if(n.compare(o,s[a]))return void(r.isChecked=i.checked=!0);r.isChecked=i.checked=!1}else r.isChecked=i.checked=n.compare(s,o)}function pr(t){for(var e=t?{}:ir(this.getValue()||""),n=this.node.style,i=Io(e),r=this.previous||[],s=0;s<i.length;){if(i[s]in n){var o=e[i[s]].replace("!important","");n.setProperty(i[s],o,o.length!==e[i[s]].length?"important":"")}s++}for(s=r.length;s--;)!~i.indexOf(r[s])&&r[s]in n&&n.setProperty(r[s],"","");this.previous=i}function gr(t){if(this.style||(this.style=xe(this.name.substr(6))),!t||this.node.style.getPropertyValue(this.style)===this.last){var e=t?"":ti(this.getValue()),n=e.replace("!important","");this.node.style.setProperty(this.style,n,n.length!==e.length?"important":""),this.last=this.node.style.getPropertyValue(this.style)}}function mr(t){var e=t?[]:rr(ti(this.getValue())),n=this.node.className;n=void 0!==n.baseVal?n.baseVal:n;var i=rr(n),r=this.previous||[],s=e.concat(i.filter(function(t){return!~r.indexOf(t)})).join(" ");s!==n&&(l(this.node.className)?this.node.className=s:this.node.className.baseVal=s),this.previous=e}function vr(t){var e=this.name.substr(6),n=this.node.className;n=void 0!==n.baseVal?n.baseVal:n;var i=rr(n),r=!t&&this.getValue();this.inlineClass||(this.inlineClass=e),r&&!~i.indexOf(e)?i.push(e):!r&&~i.indexOf(e)&&i.splice(i.indexOf(e),1),l(this.node.className)?this.node.className=i.join(" "):this.node.className.baseVal=i.join(" ")}function yr(t){if(!this.locked)if(t)this.useProperty&&(this.node[this.propertyName]=!1),this.node.removeAttribute(this.propertyName);else if(this.useProperty)this.node[this.propertyName]=this.getValue();else{var e=this.getValue();e?this.node.setAttribute(this.propertyName,l(e)?e:""):this.node.removeAttribute(this.propertyName)}}function br(t){t?this.node.getAttribute(this.name)===this.value&&this.node.removeAttribute(this.name):(this.value=ti(this.getString()),this.node.setAttribute(this.name,this.value))}function wr(t){t?this.value===this.node.getAttributeNS(this.namespace,this.name.slice(this.name.indexOf(":")+1))&&this.node.removeAttributeNS(this.namespace,this.name.slice(this.name.indexOf(":")+1)):(this.value=ti(this.getString()),this.node.setAttributeNS(this.namespace,this.name.slice(this.name.indexOf(":")+1),this.value))}function xr(){return Cf}function kr(t,e){if(Tf.test(t))return[];var n=e?"svg":"div";return t?(_f.innerHTML="<"+n+" "+t+"></"+n+">")&&D(_f.childNodes[0].attributes):[]}function Er(t,e){for(var n=t.length;n--;)if(t[n].name===e.name)return!1;return!0}function _r(t,e){for(var n="xmlns:"+e;t;){if(t.hasAttribute&&t.hasAttribute(n))return t.getAttribute(n);t=t.parentNode}return ph[e]}function Cr(){return Af}function Sr(t,e,n){t.value=0===e||("true"===e||"false"!==e&&"0"!==e&&e);var i=t.element[t.flag];return t.element[t.flag]=t.value,n&&!t.element.attributes.binding&&i!==t.value&&t.element.recreateTwowayBinding(),t.value}function Tr(t){af.call(this,t)}function Ar(){var t=this;return this.torndown?(v("ractive.teardown() was called on a Ractive instance that was already torn down"),Promise.resolve()):(this.shouldDestroy=!0,jr(this,function(){return t.fragment.rendered?t.unrender():Promise.resolve()}))}function jr(t,e){t.torndown=!0,t.fragment.unbind(),t._observers.slice().forEach(U),t.el&&t.el.__ractive_instances__&&O(t.el.__ractive_instances__,t);var n=e();return Hc.teardown.fire(t),n.then(function(){Hc.destruct.fire(t),t.viewmodel.teardown()}),n}function Nr(t,e){if(t.applyValue=function(t){this.parent.value[e]=t,t&&t.viewmodel?(this.link(t.viewmodel.getRactiveModel(),e),this._link.markedAll()):(this.link(Mo(_a),e),this._link.markedAll())},"root"===e){var n=t.mark;t.mark=function(t){this._marking||(this._marking=!0,n.apply(this,t),this._marking=!1)}}return t.applyValue(t.parent.ractive[e],e),t._link.set=function(e){return t.applyValue(e)},t._link.applyValue=function(e){return t.applyValue(e)},t._link}function Or(t,e){t._link&&t._link.implicit&&t._link.isDetached()&&t.attach(e);for(var n in t.childByKey)if(t.value)if(n in t.value)Or(t.childByKey[n],e);else if(!t.childByKey[n]._link||t.childByKey[n]._link.isDetached()){var i=Ze(e,n);i&&t.childByKey[n].link(i,n,{implicit:!0})}}function Pr(t){t._link&&t._link.implicit&&t.unlink();for(var e in t.childByKey)Pr(t.childByKey[e])}function Dr(t,e,i){var r="on"===i?"once":i+"Once";(t.constructor["_"+i]||[]).concat(n(e[i]||[])).forEach(function(e){var n=e[0],s=e[1];u(s)?t[i](n,s):a(s)&&u(s.handler)&&t[s.once?r:i](n,s.handler,Mo(s))})}function Mr(e,n){Oo.DEBUG&&Qo(),Lr(e),Ir(e),Dr(e,n,"on"),!t(n,"delegate")&&e.parent&&e.parent.delegate!==e.delegate&&(e.delegate=!1),Bo(n.use)&&e.use.apply(e,n.use.filter(function(t){return t.construct})),Hc.construct.fire(e,n),n.onconstruct&&n.onconstruct.call(e,Ye(e),n);for(var i=Rf.length;i--;){var r=Rf[i];e[r]=Do(Mo(e.constructor[r]||null),n[r])}for(i=Lf.length;i--;){var s=Lf[i];e[s]=Do(Mo(e.constructor.prototype[s]),n[s])}e._attributePartial&&(e.partials["extra-attributes"]=e._attributePartial,delete e._attributePartial);var o=new Mf({adapt:Rr(e,e.adapt,n),data:Uh.init(e.constructor,e,n),ractive:e});e.adapt=o.adaptors,e.viewmodel=o;for(var a in e.computed)An.call(e,a,e.computed[a])}function Rr(t,e,n){function i(e){return l(e)&&((e=b("adaptors",t,e))||d(ca(e,"adaptor"))),e}e=e.map(i);var r=j(n.adapt).map(i),s=[e,r];return t.parent&&!t.isolated&&s.push(t.parent.viewmodel.adaptors),P.apply(null,s)}function Lr(t){t._guid="r-"+If++,t._subs=Mo(null),t._nsSubs=0,t._config={},t.event=null,t._eventQueue=[],t._observers=[],t._children=[],t._children.byName={},t.children=t._children,t.component||(t.root=t,t.parent=t.container=null)}function Ir(t){var e=t.component,n=t.constructor.attributes;if(n&&e){var i=e.template,r=i.m?i.m.slice():[],s=r.filter(function(t){return t.t===Ha}).map(function(t){return t.n});n.required.forEach(function(t){~s.indexOf(t)||v("Component '"+e.name+"' requires attribute '"+t+"' to be provided")});for(var o=n.optional.concat(n.required),a=[],u=r.length;u--;){var l=r[u];l.t!==Ha||~o.indexOf(l.n)?n.mapAll||l.t!==Eu&&l.t!==_u&&l.t!==Cu||a.unshift(r.splice(u,1)[0]):n.mapAll?a.unshift({t:Ha,n:l.n,f:[{t:Da,r:"~/"+l.n}]}):a.unshift(r.splice(u,1)[0])}a.length&&(e.template={t:i.t,e:i.e,f:i.f,m:r,p:i.p}),t._attributePartial=a}}function Vr(t){this.item&&this.removeChild(this.item);var e=t.instance;t.anchor=this,t.up=this.up,t.name=t.nameOption||this.name,this.name=t.name,e.isolated||e.viewmodel.attached(this.up),this.rendered&&qr(this,t)}function Br(t){this.item===t&&(Fr(this,t),this.name=this.template.n)}function qr(t,e){if(t.rendered){e.shouldDestroy=!1,e.up=t.up,t.item=e,t.instance=e.instance;var n=t.up.findNextNode(t);e.instance.fragment.rendered&&e.instance.unrender(),e.partials=e.instance.partials,e.instance.partials=Do(Mo(e.partials),e.partials,t._partials),e.instance.fragment.unbind(!0),e.instance.fragment.componentParent=t.up,e.instance.fragment.bind(e.instance.viewmodel),t.attributes.forEach($),t.eventHandlers.forEach($),t.attributes.forEach(J),t.eventHandlers.forEach(J);var i=t.up.findParentNode();Ys(e.instance,i,i.contains(n)?n:null,t.occupants),e.lastBound!==t&&(e.lastBound=t)}}function Fr(t,e){t.rendered&&(e.shouldDestroy=!0,e.instance.unrender(),t.eventHandlers.forEach(it),t.attributes.forEach(it),t.eventHandlers.forEach(nt),t.attributes.forEach(nt),e.instance.el=e.instance.anchor=null,e.instance.fragment.componentParent=null,e.up=null,e.anchor=null,t.item=null,t.instance=null)}function zr(){var t=Bf;Bf=[],t.forEach(En)}function Hr(t,e,n,i){void 0===i&&(i={}),e&&e.f&&e.f.s&&(t.fn=ct(e.f.s,e.f.r.length),!0===i.register&&(t.models=Kr(t,e,n,i)))}function Kr(t,e,n,i){return void 0===i&&(i={}),e.f.r.map(function(e,r){var s;return i.specialRef&&(s=i.specialRef(e,r))?s:(s=Ze(n,e),!0===i.register&&s.register(t),s)})}function $r(t,e){e&&e.f&&e.f.s&&(t.models&&t.models.forEach(function(e){e&&e.unregister&&e.unregister(t)}),t.models=null)}function Ur(){this._ractive.binding.handleChange()}function Wr(t,e,n){var i=t+"-bindingGroup";return e[i]||(e[i]=new Zf(i,e,n))}function Zr(){var t=this,e=this.bindings.filter(function(t){return t.node&&t.node.checked}).map(function(t){return t.element.getAttribute("value")}),n=[];return e.forEach(function(e){t.bindings[0].arrayContains(n,e)||n.push(e)}),n}function Xr(){Ur.call(this);var t=this._ractive.binding.model.get();this.value=void 0==t?"":t}function Gr(t){var e;return function(){var n=this;e&&clearTimeout(e),e=setTimeout(function(){n._ractive.binding.rendered&&Ur.call(n),e=null},t)}}function Qr(t){return t.selectedOptions?D(t.selectedOptions):t.options?D(t.options).filter(function(t){return t.selected}):[]}function Yr(t){return id[t]||(id[t]=[])}function Jr(){var t=this.bindings.filter(function(t){return t.node.checked});if(t.length>0)return t[0].element.getAttribute("value")}function ts(t){return!(!t||!t.template.f||1!==t.template.f.length||t.template.f[0].s)&&(t.template.f[0].t===Da||(t.template.f[0].t===Ma&&v("It is not possible create a binding using a triple mustache."),!1))}function es(t){var e=t.name,n=t.attributeByName;if("input"===e||"textarea"===e||"select"===e||n.contenteditable){var i=ts(n.value),r=ts(n.contenteditable);if((t.getAttribute("contenteditable")||r)&&i)return Yf;if("input"===e){var s=t.getAttribute("type");if("radio"===s){var o=ts(n.name),a=ts(n.checked);return o&&a?(v("A radio input can have two-way binding on its name attribute, or its checked attribute - not both",{ractive:t.root}),sd):o?sd:a?rd:null}if("checkbox"===s){var u=ts(n.name),l=ts(n.checked);return u&&l?Wf:u?Qf:l?Wf:null}
return"file"===s&&i?td:"number"===s&&i?nd:"range"===s&&i?nd:i?Jf:null}return"select"===e&&i?t.getAttribute("multiple")?ed:od:"textarea"===e&&i?Jf:null}}function ns(t){var e=t.attributeByName.name;return"radio"===t.getAttribute("type")&&(e||{}).interpolator&&t.getAttribute("value")===e.interpolator.model.get()}function is(t){var e=t.toString();return e?" "+e:""}function rs(t){var e=t.getAttribute("xmlns");if(e)return e;if("svg"===t.name)return dh;var n=t.parent;return n?"foreignobject"===n.name?fh:n.node.namespaceURI:t.ractive.el.namespaceURI}function ss(t){for(var e,n=t.type,i=t.currentTarget,r=i._ractive&&i._ractive.proxy,s=t.target,o=!0;o&&s&&s!==i;){var a=s._ractive&&s._ractive.proxy;if(a&&a.up.delegate===r&&os(t,s,i)&&(e=a.listeners&&a.listeners[n]))for(var u=e.length,l=0;l<u;l++)o=!1!==e[l].call(s,t)&&o;s=s.parentNode||s.correspondingUseElement}return o}function os(t,e,n){if(ld&&t instanceof ld)for(var i=e;i&&i!==n;){if(i.disabled)return!1;i=i.parentNode||i.correspondingUseElement}return!0}function as(t){var e,n=this,i=this._ractive.proxy;if(i.listeners&&(e=i.listeners[t.type]))for(var r=e.length,s=0;s<r;s++)e[s].call(n,t)}function us(){var t=this._ractive.proxy;pc.start(),t.formBindings.forEach(ls),pc.end()}function ls(t){t.model.set(t.resetValue)}function cs(t,e,n,i){if(n){var r=n[0];if(r&&3===r.nodeType){var s=r.nodeValue.indexOf(i);n.shift(),0===s?r.nodeValue.length!==i.length&&n.unshift(r.splitText(i.length)):r.nodeValue=i}else r=t.node=ea.createTextNode(i),n[0]?e.insertBefore(r,n[0]):e.appendChild(r);t.node=r}else t.node||(t.node=ea.createTextNode(i)),e.appendChild(t.node)}function hs(t){kd.call(this,t)}function fs(t){t.sp();var e=St(t);if(!e)return null;var n={key:e};if(t.sp(),!t.matchString(":"))return null;t.sp();var i=t.read();return i?(n.value=i.v,n):null}function ds(t,e){return new Pd(t,{values:e}).result}function ps(t){var e=t.template.f,n=t.element.instance.viewmodel,i=n.value;if(1===e.length&&e[0].t===Da){var r=er(t.up,e[0]),s=r.get(!1);e[0].s?!a(s)||e[0].x?n.joinKey(_(t.name)).set(s):v("Cannot copy non-computed object value from static mapping '"+t.name+"'"):(t.model=r,t.link=n.createLink(t.name,r,e[0].r,{mapping:!0}),void 0===s&&!r.isReadonly&&t.name in i&&r.set(i[t.name])),r!==t.model&&r.unregister()}else t.boundFragment=new Tp({owner:t,template:e}).bind(),t.model=n.joinKey(_(t.name)),t.model.set(t.boundFragment.valueOf()),t.boundFragment.bubble=function(){Tp.prototype.bubble.call(t.boundFragment),pc.scheduleTask(function(){t.boundFragment.update(),t.model.set(t.boundFragment.valueOf())})}}function gs(t,n,i){var r=ms(t,n,i||{});if(r)return r;if(r=lc.fromId(n,{noThrow:!0})){var s=lc.parseFor(r,t);return s.p&&e(t.partials,s.p),t.partials[n]=s.t}}function ms(e,n,i){var r=bs(n,i.owner);if(r)return r;var s=w("partials",e,n);if(s){r=s.partials[n];var o;if(u(r)){if(o=r,o.styleSet)return o;o=r.bind(s),o.isOwner=t(s.partials,n),r=o.call(e,lc)}if(!r&&""!==r)return void v(la,n,"partial","partial",{ractive:e});if(!lc.isParsed(r)){var a=lc.parseFor(r,s);a.p&&v("Partials ({{>%s}}) cannot contain nested inline partials",n,{ractive:e});(o?s:vs(s,n)).partials[n]=r=a.t}return o&&(r._fn=o),r.v?r.t:r}}function vs(e,n){return t(e.partials,n)?e:ys(e.constructor,n)}function ys(e,n){if(e)return t(e.partials,n)?e:ys(e.Parent,n)}function bs(e,n){if(n){if(n.template&&n.template.p&&!Bo(n.template.p)&&t(n.template.p,e))return n.template.p[e];if(n.up&&n.up.owner)return bs(e,n.up.owner)}}function ws(t){hs.call(this,t);var e=t.template;e.t===Ua?this.yielder=1:e.t===Va&&(this.type=Ba,this.macro=t.macro)}function xs(t,e){t.partial=e,ks(t);var n={owner:t,template:t.partial};t.yielder&&(n.ractive=t.container.parent),t.fn&&(n.cssIds=t.fn._cssIds);var i=t.fragment=new Tp(n);t.template.z&&(i.aliases=nr(t.template.z,t.containerFragment||t.up))}function ks(t){t.template.c&&(t.partial=[{t:Ra,n:mu,f:t.partial}],Do(t.partial[0],t.template.c),t.yielder&&(t.partial[0].y=t))}function Es(t,e,n){var i=e;return Bo(i)?t.partial=i:i&&a(i)?Bo(i.t)?t.partial=i.t:l(i.template)&&(t.partial=Ts(i.template,i.template,t.ractive).t):u(i)&&i.styleSet?(t.fn=i,t.fragment&&(t.fragment.cssIds=i._cssIds)):null!=i&&(i=gs(t.ractive,""+i,t.containerFragment||t.up),i?(t.name=e,i.styleSet?(t.fn=i,t.fragment&&(t.fragment.cssIds=i._cssIds)):t.partial=i):n?t.partial=Ts(""+e,""+e,t.ractive).t:t.name=e),t.partial}function _s(t){if(Es(this,t,!0),!this.initing){if(this.dirtyTemplate=!0,this.fnTemplate=this.partial,!this.updating){var e=pc.start();return this.bubble(),pc.end(),e}this.bubble(),pc.promise()}}function Cs(t,e){var n=this.fragment.aliases||(this.fragment.aliases={});e?n[e]=this._data.joinAll(_(t)):n[t]=this._data}function Ss(e){var n=e.fn,i=e.fragment,r=e.template=Do({},e.template),s=e.handle=i.getContext({proxy:e,aliasLocal:Cs,name:e.template.e||e.name,attributes:{},setTemplate:_s.bind(e),template:r});if(r.p||(r.p={}),r.p=s.partials=Do({},r.p),t(r.p,"content")||(r.p.content=r.f||[]),Bo(n.attributes)){e._attrs={};var o=function(){this.dirty=!0,e.dirtyAttrs=!0,e.bubble()};if(Bo(r.m)){var a=r.m;r.p[Ld]=r.m=a.filter(function(t){return!~n.attributes.indexOf(t.n)}),a.filter(function(t){return~n.attributes.indexOf(t.n)}).forEach(function(t){var n=new Tp({template:t.f,owner:e});n.bubble=o,n.findFirstNode=h,e._attrs[t.n]=n})}else r.p[Ld]=[]}else r.p[Ld]=r.m;e._attrs&&(Io(e._attrs).forEach(function(t){e._attrs[t].bind()}),e.refreshAttrs()),e.initing=1,e.proxy=n(s,s.attributes)||{},e.partial||(e.partial=[]),e.fnTemplate=e.partial,e.initing=0,ks(e),i.resetTemplate(e.partial)}function Ts(t,e,n){var i;try{i=lc.parse(e,lc.getParseOptions(n))}catch(e){v("Could not parse partial from expression '"+t+"'\n"+e.message)}return i||{t:[]}}function As(t){var e,n,i=t;t:for(;i;){for(n=0;!n&&i;){if(i.owner.type===Va&&(n=i.owner),i.owner.ractive&&!1===i.owner.ractive.delegate)break t;i=i.parent||i.componentParent}if(!1===n.delegate)break t;for(e=n.delegate||n;i&&!i.iterations;){if(i.owner.ractive&&!1===i.owner.ractive.delegate)break t;i=i.parent||i.componentParent}}return e}function js(t,e,n){for(var i=e.length,r=t;r<i;r++)if(~e[r]&&n[r]&&n[r].rendered)return r}function Ns(t,e,n,i){var r=t.context?Ps(t,e,n):void 0;e.key=n,e.index=i,e.context=r,t.source&&(e.lastValue=r&&r.get()),e.idxModel&&e.idxModel.applyValue(i),e.keyModel&&e.keyModel.applyValue(n),e.pathModel&&(e.pathModel.context=r,e.pathModel.applyValue(r.getKeypath())),e.rootModel&&(e.rootModel.context=r,e.rootModel.applyValue(r.getKeypath(e.ractive.root)));var s=e.aliases;t.aliases&&t.aliases.forEach(function(t){"."===t.x.r?s[t.n]=r:"@index"===t.x.r?s[t.n]=e.getIndex():"@key"===t.x.r?s[t.n]=e.getKey():"@keypath"===t.x.r?s[t.n]=e.getKeypath():"@rootpath"===t.x.r&&(s[t.n]=e.getKeypath(!0))})}function Os(t,e){return!0===e?t.context.get().slice():t.context.get().map(function(t){return e.reduce(function(t,e){return t&&t[e]},t)})}function Ps(t,e,n){if(t.source){var i,r=t.source.model.get();if(r.indexOf&&~(i=r.indexOf(t.context.joinKey(n).get())))return t.source.model.joinKey(i)}return t.context.joinKey(n)}function Ds(t){return!t||Bo(t)&&0===t.length||s(t)&&0===Io(t).length}function Ms(t,e){return e||Bo(t)?gu:o(t)?vu:void 0===t?null:du}function Rs(t,e){var n=t.up.findNextNode(t);if(n){var i=Qn();e.render(i),n.parentNode.insertBefore(i,n)}else e.render(t.up.findParentNode())}function Ls(){Wd=!ea[Zd]}function Is(){Wd=!1}function Vs(){Wd=!0}function Bs(t){return t?(ip.test(t)&&(t="-"+t),t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})):""}function qs(e,n,i){for(var r=n;r;){if(t(r,e)&&(void 0===i||i?r.rendering:r.unrendering))return r[e];r=r.component&&r.component.ractive}return n[e]}function Fs(t,e){var n=[];if(null==t||""===t)return n;var i,r,s;xp&&(r=kp[e.tagName])?(i=zs("DIV"),i.innerHTML=r[0]+t+r[1],i=i.querySelector(".x"),"SELECT"===i.tagName&&(s=i.options[i.selectedIndex])):e.namespaceURI===dh?(i=zs("DIV"),i.innerHTML='<svg class="x">'+t+"</svg>",i=i.querySelector(".x")):"TEXTAREA"===e.tagName?(i=nh("div"),void 0!==i.textContent?i.textContent=t:i.innerHTML=t):(i=zs(e.tagName),i.innerHTML=t,"SELECT"===i.tagName&&(s=i.options[i.selectedIndex]));for(var o;o=i.firstChild;)n.push(o),i.removeChild(o);var a;if("SELECT"===e.tagName)for(a=n.length;a--;)n[a]!==s&&(n[a].selected=!1);return n}function zs(t){return Ep[t]||(Ep[t]=nh(t))}function Hs(e,n){var i,r=w("components",e,n);if(r&&(i=r.components[n])&&!i.isInstance)if(i.default&&i.default.isInstance)i=i.default;else if(!i.then&&u(i)){var s=i.bind(r);if(s.isOwner=t(r.components,n),!(i=s()))return void v(la,n,"component","component",{ractive:e});l(i)&&(i=Hs(e,i)),i._fn=s,r.components[n]=i}return i}function Ks(t,e){var n=e.template.p||{},i=e.template.e;return new ws(Do({},e,{template:{t:Va,e:i},macro:function(r){r.setTemplate(n["async-loading"]||[]),t.then(function(t){e.up.ractive.components[i]=t,n["async-loaded"]?(r.partials.component=[e.template],r.setTemplate(n["async-loaded"])):r.setTemplate([e.template])},function(t){n["async-failed"]?(r.aliasLocal("error","error"),r.set("@local.error",t),r.setTemplate(n["async-failed"])):r.setTemplate([])})}}))}function $s(t,e,n){var i=t.f.find(function(t){return t.t===e});return i?i.n?[{t:19,n:54,f:i.f||[],z:[{n:i.n,x:{r:"__await."+n}}]}]:i.f||[]:[]}function Us(t){var e=t.template,n=$s(e,wu,"value"),i=$s(e,xu,"error"),r=$s(e,Ra),s=$s(e,yu),o=Do({},t,{template:{t:Va,m:[{t:Ha,n:"for",f:[{t:Da,r:e.r,rx:e.rx,x:e.x}]}]},macro:function(t,e){function o(e){e.for&&u(e.for.then)?(t.setTemplate(r),e.for.then(function(e){t.set("@local.value",e),t.setTemplate(n)},function(e){t.set("@local.error",e),t.setTemplate(i)})):void 0===e.for?t.setTemplate(s):(t.set("@local.value",e.for),t.setTemplate(n))}return t.aliasLocal("__await"),o(e),{update:o}}});return o.macro.attributes=["for"],new ws(o)}function Ws(t){if(l(t.template))return new $d(t);var e,n,i=t.template.t;if(i===Va){if(n=t.template.e,(e=w("partials",t.up.ractive,n))&&(e=e.partials[n],e.styleSet))return t.macro=e,new ws(t);if(e=Hs(t.up.ractive,n)){if(u(e.then))return Ks(e,t);if(u(e))return new Vf(t,e)}return new(e=Sp[n.toLowerCase()]||ud)(t)}var r;if(i===Ha){var s=t.owner;(!s||s.type!==za&&s.type!==$a&&s.type!==Va)&&(s=Vn(t.up)),t.element=s,r=s.type===$a||s.type===za?Dd:jf}else r=Cp[i];if(!r)throw new Error("Unrecognised item type "+i);return new r(t)}function Zs(t,e,n,i){return void 0===i&&(i=0),t.map(function(t){if(t.type===Pa)return t.template;if(t.fragment)return t.fragment.iterations?t.fragment.iterations.map(function(t){return Zs(t.items,e,n,i)}).join(""):Zs(t.fragment.items,e,n,i);var r=n+"-"+i++,s=t.model||t.newModel;return e[r]=s?s.wrapper?s.wrapperValue:s.get():void 0,"${"+r+"}"}).join("")}function Xs(t){var e,n=tn(this);if(t){if(this.rootModel)return this.rootModel;this.rootModel=new Id(this.context.getKeypath(this.ractive.root),this.context,this.ractive.root),e=this.rootModel}else{if(this.pathModel)return this.pathModel;this.pathModel=new Id(this.context.getKeypath(),this.context),e=this.pathModel}return n&&n.context&&n.getKeypath(t).registerChild(e),e}function Gs(t,e,n){var i=t.viewmodel.computed;if(i)for(var r in i)r in t.viewmodel.value&&i[r]&&!i[r].isReadonly&&i[r].set(t.viewmodel.value[r]);Jh.init(t.constructor,t,e),Bo(e.use)&&t.use.apply(t,e.use.filter(function(t){return!t.construct})),Hc.config.fire(t),Hc.init.begin(t);var s=t.fragment=Qs(t,n);if(s&&s.bind(t.viewmodel),Hc.init.end(t),Dr(t,e,"observe"),s){var o=t.el=t.target=Yn(t.el||t.target);if(o&&!t.component){var a=t.render(o,t.append);Oo.DEBUG_PROMISES&&a.catch(function(e){throw y("Promise debugging is enabled, to help solve errors that happen asynchronously. Some browsers will log unhandled promise rejections, in which case you can safely disable promise debugging:\n Ractive.DEBUG_PROMISES = false;"),v("An error happened during rendering",{ractive:t}),p(e),e})}}}function Qs(t,e){if(void 0===e&&(e={}),t.template){var n=[].concat(t.constructor._cssIds||[],e.cssIds||[]);return new Tp({owner:t,template:t.template,cssIds:n})}}function Ys(t,e,n,i){t.rendering=!0;var r=pc.start();if(pc.scheduleTask(function(){return Hc.render.fire(t)},!0),t.fragment.rendered)throw new Error("You cannot call ractive.render() on an already rendered instance! Call ractive.unrender() first");if(t.destroyed&&(t.destroyed=!1,t.fragment=Qs(t).bind(t.viewmodel)),n=Yn(n)||t.anchor,t.el=t.target=e,t.anchor=n,t.cssId&&vi(),e)if((e.__ractive_instances__||(e.__ractive_instances__=[])).push(t),n){var s=ea.createDocumentFragment();t.fragment.render(s),e.insertBefore(s,n)}else t.fragment.render(e,i);return pc.end(),t.rendering=!1,r.then(function(){t.torndown||Hc.complete.fire(t)})}function Js(t,e){if(this.torndown)return v("ractive.render() was called on a Ractive instance that was already torn down"),Promise.resolve();if(t=Yn(t)||this.el,!this.append&&t){var n=t.__ractive_instances__;n&&n.forEach(et),this.enhance||(t.innerHTML="")}var i=this.enhance?D(t.childNodes):null,r=Ys(this,t,e,i);if(i)for(;i.length;)t.removeChild(i.pop());return r}function to(t){if(t=t||{},!a(t))throw new Error("The reset method takes either no arguments, or an object containing new data");t=Uh.init(this.constructor,this,{data:t});var e=pc.start(),n=this.viewmodel.wrapper;n&&n.reset?!1===n.reset(t)&&this.viewmodel.set(t):this.viewmodel.set(t);for(var i,r=Jh.reset(this),s=r.length;s--;)if(jp.indexOf(r[s])>-1){i=!0;break}return i&&(Hc.unrender.fire(this),this.fragment.resetTemplate(this.template),Hc.render.fire(this),Hc.complete.fire(this)),pc.end(),Hc.reset.fire(this,t),e}function eo(t,e,n,i){t.forEach(function(t){if(t.type===Ba&&(t.refName===e||t.name===e))return t.inAttribute=n,void i.push(t);if(t.fragment)eo(t.fragment.iterations||t.fragment.items,e,n,i);else if(Bo(t.items))eo(t.items,e,n,i);else if(t.type===$a&&t.instance){if(t.instance.partials[e])return;eo(t.instance.fragment.items,e,n,i)}t.type===Va&&Bo(t.attributes)&&eo(t.attributes,e,!0,i)})}function no(t,e){var n=[];eo(this.fragment.items,t,!1,n);var i=pc.start();return this.partials[t]=e,n.forEach(Z),pc.end(),i}function io(t){Wh.init(null,this,{template:t});var e=this.transitionsEnabled;this.transitionsEnabled=!1;var n=this.component;n&&(n.shouldDestroy=!0),this.unrender(),n&&(n.shouldDestroy=!1);var i=pc.start();this.fragment.unbind().unrender(!0),this.fragment=new Tp({template:this.template,root:this,owner:this});var r=Qn();return this.fragment.bind(this.viewmodel).render(r),n&&!n.external?this.fragment.findParentNode().insertBefore(r,n.findNextNode()):this.el.insertBefore(r,this.anchor),pc.end(),this.transitionsEnabled=e,i}function ro(t,e,n){var i=this,r=a(t)?e:n;return en(rn(i,t,e,r&&r.isolated),r)}function so(t,e,n){return an(this,t,c(e)?-e:-1,a(e)?e:n)}function oo(t,e){if(!l(t))throw new TypeError(ua);return en(nn(this,t,null,e&&e.isolated).map(function(t){return[t,!t.get()]}),e)}function ao(){var t=[this.cssId].concat(this.findAllComponents().map(function(t){return t.cssId}));return yi(Io(t.reduce(function(t,e){return t[e]=!0,t},{})))}function uo(){return this.fragment.toString(!0)}function lo(){return this.fragment.toString(!1)}function co(t,e,n){e instanceof HTMLElement||s(e)&&(n=e),e=e||this.event.node,e&&e._ractive||d("No node was supplied for transition "+t),n=n||{};var i=e._ractive.proxy,r=new yp({owner:i,up:i.up,name:t,params:n});r.bind();var o=pc.start();return pc.registerTransition(r),pc.end(),o.then(function(){return r.unbind()}),o}function ho(t){var e=pc.start();return this.viewmodel.joinAll(_(t),{lastLink:!1}).unlink(),pc.end(),e}function fo(){if(!this.fragment.rendered)return v("ractive.unrender() was called on a Ractive instance that was not rendered"),Promise.resolve();this.unrendering=!0;var t=pc.start();Hc.unrendering.fire(this);var e=!this.component||(this.component.anchor||{}).shouldDestroy||this.component.shouldDestroy||this.shouldDestroy;return this.fragment.unrender(e),e&&(this.destroyed=!0),O(this.el.__ractive_instances__,this),Hc.unrender.fire(this),pc.end(),this.unrendering=!1,t}function po(t,e){var n=pc.start();return t?this.viewmodel.joinAll(_(t)).updateFromBindings(!1!==e):this.viewmodel.updateFromBindings(!0),pc.end(),n}function go(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){e({proto:t,Ractive:t.constructor.Ractive,instance:t})}),this}function mo(t){return t&&t instanceof this}function vo(t,e){return this._cssModel.joinAll(_(t)).get(!0,e)}function yo(t,e){if(Lp.find(function(e){return e.id===t}))throw new Error("Extra styles with the id '"+t+"' have already been added.");Lp.push({id:t,css:e}),this.css||Object.defineProperty(this,"css",{configurable:!1,writable:!1,value:bo}),this._cssDef||(Object.defineProperty(this,"_cssDef",{configurable:!0,writable:!1,value:{transform:!1,id:"Ractive.addStyle"}}),mi(this._cssDef)),ji(this),vi(!0)}function bo(t){return Lp.map(function(e){return"\n/* ---- extra style "+e.id+" */\n"+(u(e.css)?e.css(t):e.css)}).join("")}function wo(t){return!!Lp.find(function(e){return e.id===t})}function xo(t,e,n){var i=a(t)?e:n;return en(rn({viewmodel:_c},t,e,!0),i)}function ko(t,e){return _c.joinAll(_(t)).get(!0,e)}function Eo(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){u(e)&&e({proto:t.prototype,Ractive:t.Ractive,instance:t})}),this}function _o(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.length?t.reduce(So,this):So(this)}function Co(t,e){return void 0===e&&(e={}),So(this,e,t)}function So(t,e,i){void 0===e&&(e={});var r,s=u(i)&&i;if(e.prototype instanceof Oo)throw new Error("Ractive no longer supports multiple inheritance.");if(s){if(!(s.prototype instanceof t))throw new Error("Only classes that inherit the appropriate prototype may be used with extend");if(!Ip.test(s.toString()))throw new Error("Only classes that call super in their constructor may be used with extend");r=s.prototype}else s=function(t){if(!(this instanceof s))return new s(t);Mr(this,t||{}),Gs(this,t||{},{})},r=Mo(t.prototype),r.constructor=s,s.prototype=r;if(Lo(s,{defaults:{value:r},extend:{value:_o,writable:!0,configurable:!0},extendWith:{value:Co,writable:!0,configurable:!0},extensions:{value:[]},use:{value:Eo},isInstance:{value:mo},Parent:{value:t},Ractive:{value:Oo},styleGet:{value:vo.bind(s),configurable:!0},styleSet:{value:Ti.bind(s),configurable:!0}}),Jh.extend(t,r,e,s),s._on=(t._on||[]).concat(n(e.on)),s._observe=(t._observe||[]).concat(n(e.observe)),t.extensions.push(s),e.attributes){var o;o=Bo(e.attributes)?{optional:e.attributes,required:[]}:e.attributes,Bo(o.required)||(o.required=[]),Bo(o.optional)||(o.optional=[]),s.attributes=o}return Uh.extend(t,r,e,s),Ro(s,"helpers",{writable:!0,value:r.helpers}),Bo(e.use)&&s.use.apply(s,e.use),s}function To(t,e){if(!u(t))throw new Error("The macro must be a function");return Do(t,e),Lo(t,{extensions:{value:[]},_cssIds:{value:[]},cssData:{value:Do(Mo(this.cssData),t.cssData||{})},styleGet:{value:vo.bind(t)},styleSet:{value:Ti.bind(t)}}),Ro(t,"_cssModel",{value:new Hh(t)}),t.css&&Pi(t,t,t),this.extensions.push(t),t}function Ao(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.map(k).join(".")}function jo(t){return _(t).map(C)}function No(t,e,n){return b(e,n,t)}function Oo(t){if(!(this instanceof Oo))return new Oo(t);Mr(this,t||{}),Gs(this,t||{},{})}Object.assign||(Object.assign=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),r=e.length,s=0;s<r;s++){var o=e[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i});var Po=Object,Do=Po.assign,Mo=Po.create,Ro=Po.defineProperty,Lo=Po.defineProperties,Io=Po.keys,Vo=Object.prototype.toString,Bo=Array.isArray;if(Array.prototype.find||Ro(Array.prototype,"find",{value:function(e,n){if(null===this||void 0===this)throw new TypeError("Array.prototype.find called on null or undefined");if(!u(e))throw new TypeError(e+" is not a function");for(var i=Object(this),r=i.length>>>0,s=0;s<r;s++)if(t(i,s)&&e.call(n,i[s],s,i))return i[s]},configurable:!0,writable:!0}),"undefined"!=typeof window&&window.Node&&window.Node.prototype&&!window.Node.prototype.contains&&(Node.prototype.contains=function(t){var e=this;if(!t)throw new TypeError("node required");do{if(e===t)return!0}while(t=t&&t.parentNode);return!1}),"undefined"!=typeof window&&window.performance&&!window.performance.now){window.performance=window.performance||{};var qo=Date.now();window.performance.now=function(){return Date.now()-qo}}if("undefined"!=typeof window&&!window.Promise){var Fo={},zo={},Ho={},Ko=window.Promise=function(t){var e,n,i=[],r=[],s=Fo,o=function(t){return function(o){s===Fo&&(e=o,s=t,n=Uo(s===zo?i:r,e),$o(n))}},a=o(zo),l=o(Ho);try{t(a,l)}catch(t){l(t)}return{then:function(t,e){var o=new Ko(function(a,l){var c=function(t,e,n){u(t)?e.push(function(e){try{Wo(o,t(e),a,l)}catch(t){l(t)}}):e.push(n)};c(t,i,a),c(e,r,l),s!==Fo&&$o(n)});return o},catch:function(t){return this.then(null,t)}}};Ko.all=function(t){return new Ko(function(e,n){var i,r,s=[];if(!t.length)return void e(s);for(i=r=t.length;r--;)!function(t,r){t&&u(t.then)?t.then(function(t){s[r]=t,--i||e(s)},n):(s[r]=t,--i||e(s))}(t[r],r)})},Ko.resolve=function(t){return new Ko(function(e){e(t)})},Ko.reject=function(t){return new Ko(function(e,n){n(t)})};var $o=function(t){setTimeout(t,0)},Uo=function(t,e){return function(){for(var n=void 0;n=t.shift();)n(e)}},Wo=function(t,e,n,i){var r;if(e===t)throw new TypeError("A promise's fulfillment handler cannot return the same promise");if(e instanceof Ko)e.then(n,i);else if(e&&(a(e)||u(e))){try{r=e.then}catch(t){return void i(t)}if(u(r)){var s,o=function(e){s||(s=!0,Wo(t,e,n,i))},l=function(t){s||(s=!0,i(t))};try{r.call(e,o,l)}catch(t){if(!s)return i(t),void(s=!0)}}else n(e)}else n(e)}}if(!("undefined"==typeof window||window.requestAnimationFrame&&window.cancelAnimationFrame)){var Zo=0;window.requestAnimationFrame=function(t){var e=Date.now(),n=Math.max(0,16-(e-Zo)),i=window.setTimeout(function(){t(e+n)},n);return Zo=e+n,i},window.cancelAnimationFrame=function(t){clearTimeout(t)}}var Xo,Go,Qo,Yo={el:void 0,append:!1,delegate:!0,enhance:!1,template:null,allowExpressions:!0,delimiters:["{{","}}"],tripleDelimiters:["{{{","}}}"],staticDelimiters:["[[","]]"],staticTripleDelimiters:["[[[","]]]"],csp:!0,interpolate:!1,preserveWhitespace:!1,sanitize:!1,stripComments:!0,contextLines:0,data:Mo(null),helpers:Mo(null),computed:Mo(null),syncComputedChildren:!1,resolveInstanceMembers:!1,warnAboutAmbiguity:!1,adapt:[],isolated:!0,twoway:!0,lazy:!1,noIntro:!1,noOutro:!1,transitionsEnabled:!0,complete:void 0,nestedTransitions:!0,css:null,noCssTransform:!1},Jo={linear:function(t){return t},easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)}},ta="undefined"!=typeof window?window:null,ea=ta?document:null,na=!!ea,ia="undefined"!=typeof console&&u(console.warn)&&u(console.warn.apply),ra=!!ea&&ea.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),sa=["o","ms","moz","webkit"],oa={};if(ia){var aa=["%cRactive.js %c0.10.14 %cin debug mode, %cmore...","color: rgb(114, 157, 52); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(82, 140, 224); font-weight: normal; text-decoration: underline;"];Qo=function(){if(!1===Oo.WELCOME_MESSAGE)return void(Qo=h);var t="WELCOME_MESSAGE"in Oo?Oo.WELCOME_MESSAGE:"You're running Ractive 0.10.14 in debug mode - messages will be printed to the console to help you fix problems and optimise your application.\n\nTo disable debug mode, add this line at the start of your app:\n Ractive.DEBUG = false;\n\nTo disable debug mode when your app is minified, add this snippet:\n Ractive.DEBUG = /unminified/.test(function(){/*unminified*/});\n\nGet help and support:\n http://ractive.js.org\n http://stackoverflow.com/questions/tagged/ractivejs\n http://groups.google.com/forum/#!forum/ractive-js\n http://twitter.com/ractivejs\n\nFound a bug? Raise an issue:\n https://github.com/ractivejs/ractive/issues\n\n",e=!!console.groupCollapsed;e&&console.groupCollapsed.apply(console,aa),console.log(t),e&&console.groupEnd(aa),Qo=h},Go=function(t,e){if(Qo(),a(e[e.length-1])){var n=e.pop(),i=n?n.ractive:null;if(i){var r;i.component&&(r=i.component.name)&&(t="<"+r+"> "+t);var s;(s=n.node||i.fragment&&i.fragment.rendered&&i.find("*"))&&e.push(s)}}console.warn.apply(console,["%cRactive.js: %c"+t,"color: rgb(114, 157, 52);","color: rgb(85, 85, 85);"].concat(e))},Xo=function(){console.log.apply(console,arguments)}}else Go=Xo=Qo=h;var ua="Bad arguments",la='A function was specified for "%s" %s, but no %s was returned',ca=function(t,e){return'Missing "'+t+'" '+e+" plugin. You may need to download a plugin via http://ractive.js.org/integrations/#"+e+"s"},ha={number:function(t,e){if(!r(t)||!r(e))return null;t=+t,e=+e;var n=e-t;return n?function(e){return t+e*n}:function(){return t}},array:function(t,e){var n,i;if(!Bo(t)||!Bo(e))return null;var r=[],s=[];for(i=n=Math.min(t.length,e.length);i--;)s[i]=x(t[i],e[i]);for(i=n;i<t.length;i+=1)r[i]=t[i];for(i=n;i<e.length;i+=1)r[i]=e[i];return function(t){for(var e=n;e--;)r[e]=s[e](t);return r}},object:function(e,n){if(!s(e)||!s(n))return null;var i=[],r={},o={};for(var a in e)!function(s){t(e,s)&&(t(n,s)?(i.push(s),o[s]=x(e[s],n[s])||function(){return n[s]}):r[s]=e[s])}(a);for(var u in n)t(n,u)&&!t(e,u)&&(r[u]=n[u]);var l=i.length;return function(t){for(var e=l;e--;){var n=i[e];r[n]=o[n](t)}return r}}},fa=/\[\s*(\*|[0-9]|[1-9][0-9]+)\s*\]/g,da=/([^\\](?:\\\\)*)\./,pa=/\\|\./g,ga=/((?:\\)+)\1|\\(\.)/g,ma=Function.prototype.bind,va={early:[],mark:[]},ya={early:[],mark:[]},ba={virtual:!1},wa=function(t){this.deps=[],this.children=[],this.childByKey={},this.links=[],this.bindings=[],t&&(this.parent=t,this.root=t.root)},xa=wa.prototype;xa.addShuffleTask=function(t,e){void 0===e&&(e="early"),va[e].push(t)},xa.addShuffleRegister=function(t,e){void 0===e&&(e="early"),ya[e].push({model:this,item:t})},xa.downstreamChanged=function(){},xa.findMatches=function(t){var e,n,i=t.length,r=[this];for(n=0;n<i;n+=1)!function(){var i=t[n];"*"===i?(e=[],r.forEach(function(t){e.push.apply(e,t.getValueChildren(t.get()))})):e=r.map(function(t){return t.joinKey(i)}),r=e}();return e},xa.getKeypath=function(t){if(t!==this.ractive&&this._link)return this._link.target.getKeypath(t);if(!this.keypath){var e=this.parent&&this.parent.getKeypath(t);this.keypath=e?this.parent.getKeypath(t)+"."+k(this.key):k(this.key)}return this.keypath},xa.getValueChildren=function(t){var e,n=this;Bo(t)?(e=[],"length"in this&&this.length!==t.length&&e.push(this.joinKey("length")),t.forEach(function(t,i){e.push(n.joinKey(i))})):s(t)||u(t)?e=Io(t).map(function(t){return n.joinKey(t)}):null!=t&&(e=[]);var i=this.computed;return i&&e.push.apply(e,Io(i).map(function(t){return n.joinKey(t)})),e},xa.getVirtual=function(t){var e=this,n=this.get(t,{virtual:!1});if(s(n)){for(var i=Bo(n)?[]:Mo(null),r=Io(n),o=r.length;o--;){var a=e.childByKey[r[o]];a?a._link?i[r[o]]=a._link.getVirtual():i[r[o]]=a.getVirtual():i[r[o]]=n[r[o]]}for(o=this.children.length;o--;){var u=e.children[o];u.key in i||!u._link||(i[u.key]=u._link.getVirtual())}if(this.computed)for(r=Io(this.computed),o=r.length;o--;)i[r[o]]=e.computed[r[o]].get();return i}return n},xa.has=function(t){var e=this;if(this._link)return this._link.has(t);var n=this.get(!1,ba);if(!n)return!1;if(t=C(t),(u(n)||s(n))&&t in n)return!0;var i=this.computed;return!!(i&&t in this.computed)||(i=this.root.ractive&&this.root.ractive.computed,i&&Io(i).forEach(function(t){if(i[t].pattern&&i[t].pattern.test(e.getKeypath()))return!0}),!1)},xa.joinAll=function(t,e){for(var n=this,i=0;i<t.length;i+=1){if(e&&!1===e.lastLink&&i+1===t.length&&n.childByKey[t[i]]&&n.childByKey[t[i]]._link)return n.childByKey[t[i]];n=n.joinKey(t[i],e)}return n},xa.notifyUpstream=function(t){for(var e=this,n=this.parent,i=t||[this.key];n;)n.patterns&&n.patterns.forEach(function(t){return t.notify(i.slice())}),i.unshift(n.key),n.links.forEach(function(t){return t.notifiedUpstream(i,e.root)}),n.deps.forEach(function(t){return t.handleChange(i)}),n.downstreamChanged(t),n=n.parent},xa.rebind=function(t,e,n){var i=this;this._link&&this._link.rebind(t,e,!1);for(var r=this.deps.length;r--;)i.deps[r].rebind&&i.deps[r].rebind(t,e,n);for(r=this.links.length;r--;){var s=i.links[r];s.owner&&s.owner._link&&s.relinking(t,n)}for(r=this.children.length;r--;){var o=i.children[r];o.rebind(t?t.joinKey(o.key):void 0,o,n)}for(r=this.bindings.length;r--;)i.bindings[r].rebind(t,e,n)},xa.reference=function(){"refs"in this?this.refs++:this.refs=1},xa.register=function(t){this.deps.push(t)},xa.registerLink=function(t){S(this.links,t)},xa.registerPatternObserver=function(t){(this.patterns||(this.patterns=[])).push(t),this.register(t)},xa.registerTwowayBinding=function(t){this.bindings.push(t)},xa.unreference=function(){"refs"in this&&this.refs--},xa.unregister=function(t){O(this.deps,t)},xa.unregisterLink=function(t){O(this.links,t)},xa.unregisterPatternObserver=function(t){O(this.patterns,t),this.unregister(t)},xa.unregisterTwowayBinding=function(t){O(this.bindings,t)},xa.updateFromBindings=function(t){for(var e=this,n=this.bindings.length;n--;){var i=e.bindings[n].getValue();i!==e.value&&e.set(i)}if(!this.bindings.length){var r=B(this.deps);r&&r.value!==this.value&&this.set(r.value)}t&&(this.children.forEach(V),this.links.forEach(V),this._link&&this._link.updateFromBindings(t))};var ka,Ea=[],_a={key:"@missing",animate:h,applyValue:h,get:h,getKeypath:function(){return this.key},joinAll:function(){return this},joinKey:function(){return this},mark:h,registerLink:h,shufle:h,set:h,unregisterLink:h};_a.parent=_a;var Ca=function(e){function n(t,n,i,r){e.call(this,t),this.owner=n,this.target=i,this.key=void 0===r?n.key:r,n&&n.isLink&&(this.sourcePath=n.sourcePath+"."+this.key),i&&i.registerLink(this),t&&(this.isReadonly=t.isReadonly),this.isLink=!0}e&&(n.__proto__=e);var i=n.prototype=Object.create(e&&e.prototype);return i.constructor=n,i.animate=function(t,e,n,i){return this.target.animate(t,e,n,i)},i.applyValue=function(t){this.boundValue&&(this.boundValue=null),this.target.applyValue(t)},i.attach=function(t){var e=Ze(t,this.key);e?this.relinking(e,!1):this.owner.unlink()},i.detach=function(){this.relinking(_a,!1)},i.get=function(t,e){void 0===e&&(e={}),t&&(K(this),e.unwrap=!("unwrap"in e)||e.unwrap);var n=!("shouldBind"in e)||e.shouldBind;return e.shouldBind=this.mapping&&this.target.parent&&this.target.parent.isRoot,I(this,this.target.get(!1,e),n)},i.getKeypath=function(t){return t&&t!==this.root.ractive?this.target.getKeypath(t):e.prototype.getKeypath.call(this,t)},i.handleChange=function(){this.deps.forEach(Z),this.links.forEach(Z),this.notifyUpstream()},i.isDetached=function(){return this.virtual&&this.target===_a},i.joinKey=function(e){if(void 0===e||""===e)return this;if(!t(this.childByKey,e)){var i=new n(this,this,this.target.joinKey(e),e);this.children.push(i),this.childByKey[e]=i}return this.childByKey[e]},i.mark=function(t){this.target.mark(t)},i.marked=function(){this.boundValue&&(this.boundValue=null),this.links.forEach(Q),this.deps.forEach(Z)},i.markedAll=function(){this.children.forEach(Y),this.marked()},i.notifiedUpstream=function(t,e){var n=this;if(this.links.forEach(function(e){return e.notifiedUpstream(t,n.root)}),this.deps.forEach(Z),t&&this.rootLink&&this.root!==e){var i=t.slice(1);i.unshift(this.key),this.notifyUpstream(i)}},i.relinked=function(){this.target.registerLink(this),this.children.forEach(function(t){return t.relinked()})},i.relinking=function(t,e){var n=this;this.rootLink&&this.sourcePath&&(t=at(this.sourcePath,t,this.target)),t&&this.target!==t&&(this.target&&this.target.unregisterLink(this),this.target=t,this.children.forEach(function(n){n.relinking(t.joinKey(n.key),e)}),this.rootLink&&this.addShuffleTask(function(){n.relinked(),e||(n.markedAll(),
n.notifyUpstream())}))},i.set=function(t){this.boundValue&&(this.boundValue=null),this.target.set(t)},i.shuffle=function(t){this.shuffling||(this.target.shuffling?F(this,t,!0):this.target.shuffle?this.target.shuffle(t):this.target.mark())},i.source=function(){return this.target.source?this.target.source():this.target},i.teardown=function(){this._link&&this._link.teardown(),this.target.unregisterLink(this),this.children.forEach(et)},n}(wa);wa.prototype.link=function(t,e,n){var i=this._link||new Ca(this.parent,this,t,this.key);return i.implicit=n&&n.implicit,i.mapping=n&&n.mapping,i.sourcePath=e,i.rootLink=!0,this._link&&this._link.relinking(t,!1),this.rebind(i,this,!1),q(),this._link=i,i.markedAll(),this.notifyUpstream(),i},wa.prototype.unlink=function(){if(this._link){var t=this._link;this._link=void 0,t.rebind(this,t,!1),q(),t.teardown(),this.notifyUpstream()}};var Sa=Mo(null),Ta=4,Aa=/^\s+/,ja=function(t){this.name="ParseError",this.message=t;try{throw new Error(t)}catch(t){this.stack=t.stack}};ja.prototype=Error.prototype;var Na=function(t,e){var n,i=0;this.str=t,this.options=e||{},this.pos=0,this.lines=this.str.split("\n"),this.lineEnds=this.lines.map(function(t){var e=i+t.length+1;return i=e,e},0),this.init&&this.init(t,e);for(var r=[];this.pos<this.str.length&&(n=this.read());)r.push(n);this.leftover=this.remaining(),this.result=this.postProcess?this.postProcess(r,e):r};Na.prototype={read:function(t){var e,n,i=this;t||(t=this.converters);var r=this.pos,s=t.length;for(e=0;e<s;e+=1)if(i.pos=r,n=t[e](i))return n;return null},getContextMessage:function(t,e){var n=this.getLinePos(t),i=n[0],r=n[1];if(-1===this.options.contextLines)return[i,r,e+" at line "+i+" character "+r];var s=this.lines[i-1],o="",a="";if(this.options.contextLines){var u=i-1-this.options.contextLines<0?0:i-1-this.options.contextLines;o=this.lines.slice(u,i-1-u).join("\n").replace(/\t/g," "),a=this.lines.slice(i,i+this.options.contextLines).join("\n").replace(/\t/g," "),o&&(o+="\n"),a&&(a="\n"+a)}var l=0,c=o+s.replace(/\t/g,function(t,e){return e<r&&(l+=1)," "})+"\n"+new Array(r+l).join(" ")+"^----"+a;return[i,r,e+" at line "+i+" character "+r+":\n"+c]},getLinePos:function(t){for(var e=this,n=0,i=0;t>=this.lineEnds[n];)i=e.lineEnds[n],n+=1;return[n+1,t-i+1,t]},error:function(t){var e=this.getContextMessage(this.pos,t),n=e[0],i=e[1],r=e[2],s=new ja(r);throw s.line=n,s.character=i,s.shortMessage=t,s},matchString:function(t){if(this.str.substr(this.pos,t.length)===t)return this.pos+=t.length,t},matchPattern:function(t){var e;if(e=t.exec(this.remaining()))return this.pos+=e[0].length,e[1]||e[0]},sp:function(){this.matchPattern(Aa)},remaining:function(){return this.str.substring(this.pos)},nextChar:function(){return this.str.charAt(this.pos)},warn:function(t){v(this.getContextMessage(this.pos,t)[2])}},Na.extend=function(e){var n=this,i=function(t,e){Na.call(this,t,e)};i.prototype=Mo(n.prototype);for(var r in e)t(e,r)&&(i.prototype[r]=e[r]);return i.extend=Na.extend,i};var Oa,Pa=1,Da=2,Ma=3,Ra=4,La=5,Ia=6,Va=7,Ba=8,qa=9,Fa=10,za=11,Ha=13,Ka=14,$a=15,Ua=16,Wa=17,Za=18,Xa=19,Ga=55,Qa=20,Ya=21,Ja=22,tu=23,eu=24,nu=25,iu=26,ru=27,su=30,ou=31,au=32,uu=33,lu=34,cu=35,hu=36,fu=40,du=50,pu=51,gu=52,mu=53,vu=54,yu=60,bu=61,wu=62,xu=63,ku=70,Eu=71,_u=72,Cu=73,Su=74,Tu=/^[^\s=]+/,Au=/^\s+/,ju=/^(\/(?:[^\n\r\u2028\u2029/\\[]|\\.|\[(?:[^\n\r\u2028\u2029\]\\]|\\.)*])+\/(?:([gimuy])(?![a-z]*\2))*(?![a-zA-Z_$0-9]))/,Nu=/[-/\\^$*+?.()|[\]{}]/g,Ou={},Pu={allowfullscreen:1,async:1,autofocus:1,autoplay:1,checked:1,compact:1,controls:1,declare:1,default:1,defaultchecked:1,defaultmuted:1,defaultselected:1,defer:1,disabled:1,enabled:1,formnovalidate:1,hidden:1,indeterminate:1,inert:1,ismap:1,itemscope:1,loop:1,multiple:1,muted:1,nohref:1,noresize:1,noshade:1,novalidate:1,nowrap:1,open:1,pauseonexit:1,readonly:1,required:1,reversed:1,scoped:1,seamless:1,selected:1,sortable:1,translate:1,truespeed:1,typemustmatch:1,visible:1},Du={area:1,base:1,br:1,col:1,command:1,doctype:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},Mu={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Ru=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376],Lu=new RegExp("&(#?(?:x[\\w\\d]+|\\d+|"+Io(Mu).join("|")+"));?","g"),Iu=u(String.fromCodePoint),Vu=Iu?String.fromCodePoint:String.fromCharCode,Bu=/</g,qu=/>/g,Fu=/&/g,zu=65533,Hu="Expected a JavaScript expression",Ku="Expected closing paren",$u=/^(?:[+-]?)0*(?:(?:(?:[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/,Uu=/^(?=.)[^"'\\]+?(?:(?!.)|(?=["'\\]))/,Wu=/^\\(?:[`'"\\bfnrt]|0(?![0-9])|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|(?=.)[^ux0-9])/,Zu=/^\\(?:\r\n|[\u000A\u000D\u2028\u2029])/,Xu=xt('"'),Gu=xt("'"),Qu=/^[^`"\\\$]+?(?:(?=[`"\\\$]))/,Yu=/[\r\n\t\b\f]/g,Ju=/^[a-zA-Z_$][a-zA-Z_$0-9]*/,tl=/^\s*\.{3}/,el=/^(?:[a-zA-Z$_0-9]|\\\.)+(?:(?:\.(?:[a-zA-Z$_0-9]|\\\.)+)|(?:\[[0-9]+\]))*/,nl=/^[a-zA-Z_$][-\/a-zA-Z_$0-9]*(?:\.(?:[a-zA-Z_$][-\/a-zA-Z_$0-9]*))*/,il=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,rl=/^(?:Array|console|Date|RegExp|decodeURIComponent|decodeURI|encodeURIComponent|encodeURI|isFinite|isNaN|parseFloat|parseInt|JSON|Math|NaN|undefined|null|Object|Number|String|Boolean)\b/,sl=/^(?:break|case|catch|continue|debugger|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|var|void|while|with)$/,ol=/^(?:\@\.|\@|~\/|(?:\^\^\/(?:\^\^\/)*(?:\.\.\/)*)|(?:\.\.\/)+|\.\/(?:\.\.\/)*|\.)/,al=/^(key|index|keypath|rootpath|this|global|shared|context|event|node|local|style|helpers|last)/,ul=function(t,e){return function(n){var i;return(i=e(n))?i:n.matchString(t)?(n.sp(),i=Vt(n),i||n.error(Hu),{s:t,o:i,t:uu}):null}};!function(){var t,e,n,i,r="! ~ + - typeof".split(" ");for(i=Lt,t=0,e=r.length;t<e;t+=1)n=ul(r[t],i),i=n;Oa=i}();var ll,cl=Oa,hl=function(t,e){return function(n){if(n.inUnquotedAttribute&&(">"===t||"/"===t))return e(n);var i,r,s;if(!(r=e(n)))return null;for(;;){if(i=n.pos,n.sp(),!n.matchString(t))return n.pos=i,r;if("in"===t&&/[a-zA-Z_$0-9]/.test(n.remaining().charAt(0)))return n.pos=i,r;if(n.sp(),!(s=e(n)))return n.pos=i,r;r={t:hu,s:t,o:[r,s]}}}};!function(){var t,e,n,i,r="* / % + - << >> >>> < <= > >= in instanceof == != === !== & ^ | && ||".split(" ");for(i=cl,t=0,e=r.length;t<e;t+=1)n=hl(r[t],i),i=n;ll=i}();var fl=ll,dl=/^[^\s"'>\/=(]+/,pl=/^on/,gl=/^on-([a-zA-Z\*\.$_]((?:[a-zA-Z\*\.$_0-9\-]|\\-)+))$/,ml=/^(?:change|reset|teardown|update|construct|config|init|render|complete|unrender|detach|insert|destruct|attachchild|detachchild)$/,vl=/^as-([a-z-A-Z][-a-zA-Z_0-9]*)$/,yl=/^([a-zA-Z](?:(?!-in-out)[-a-zA-Z_0-9])*)-(in|out|in-out)$/,bl=/^((bind|class)-(([-a-zA-Z0-9_])+))$/,wl={lazy:{t:Cu,v:"l"},twoway:{t:Cu,v:"t"},"no-delegation":{t:Su}},xl=/^[^\s"'=<>\/`]+/,kl=/^[^\s"'=<>@\[\]()]*/,El=/^\s+/,_l=/\\/g,Cl={t:Fa,exclude:!0},Sl=/^(?:[a-zA-Z$_0-9]|\\\.)+(?:(?:(?:[a-zA-Z$_0-9]|\\\.)+)|(?:\[[0-9]+\]))*/,Tl=/^as/i,Al={else:/^\s*else\s*/,elseif:/^\s*elseif\s+/,then:/^\s*then\s*/,catch:/^\s*catch\s*/},jl={else:yu,elseif:bu,then:wu,catch:xu},Nl={each:gu,if:du,with:vu,unless:pu},Ol=/^\s*:\s*([a-zA-Z_$][a-zA-Z_$0-9]*)/,Pl=/^\s*,\s*([a-zA-Z_$][a-zA-Z_$0-9]*)/,Dl=new RegExp("^("+Io(Nl).join("|")+")\\b"),Ml="\x3c!--",Rl="--\x3e",Ll=/^[ \t\f\r\n]*\r?\n/,Il=/\r?\n[ \t\f\r\n]*$/,Vl=/[ \t\f\r\n]+/g,Bl=/^[ \t\f\r\n]+/,ql=/[ \t\f\r\n]+$/,Fl=/^(?:\r\n|\r|\n)/,zl=/(?:\r\n|\r|\n)$/,Hl=/^([a-zA-Z]{1,}:?[a-zA-Z0-9\-]*)\s*\>/,Kl=/^[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/,$l=/^[a-zA-Z_$][-a-zA-Z0-9_$]*/,Ul=/^[\s\n\/>]/,Wl=/;\s*$/,Zl={exclude:!0},Xl={li:["li"],dt:["dt","dd"],dd:["dt","dd"],p:"address article aside blockquote div dl fieldset footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav ol p pre section table ul".split(" "),rt:["rt","rp"],rp:["rt","rp"],optgroup:["optgroup"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tfoot:["tbody"],tr:["tr","tbody"],td:["td","th","tr"],th:["td","th","tr"]},Gl=/^\s*(elseif|else|then|catch)\s*/,Ql=/^\s*#\s*partial\s+/,Yl={},Jl=[ue,se,de,ce,le],tc=[re],ec=[ne,pe,ke,Se],nc=[Te],ic={pre:1,script:1,style:1,textarea:1},rc={textarea:!0,script:!0,style:!0,template:!0},sc=Na.extend({init:function(t,e){var n=e.tripleDelimiters||Yl.defaults.tripleDelimiters,i=e.staticDelimiters||Yl.defaults.staticDelimiters,r=e.staticTripleDelimiters||Yl.defaults.staticTripleDelimiters;this.standardDelimiters=e.delimiters||Yl.defaults.delimiters,this.tags=[{isStatic:!1,isTriple:!1,open:this.standardDelimiters[0],close:this.standardDelimiters[1],readers:Jl},{isStatic:!1,isTriple:!0,open:n[0],close:n[1],readers:tc},{isStatic:!0,isTriple:!1,open:i[0],close:i[1],readers:Jl},{isStatic:!0,isTriple:!0,open:r[0],close:r[1],readers:tc}],this.contextLines=e.contextLines||Yl.defaults.contextLines,this.sortMustacheTags(),this.sectionDepth=0,this.elementStack=[],this.interpolate=Do({},rc,Yl.defaults.interpolate,e.interpolate),!0===e.sanitize&&(e.sanitize={elements:"applet base basefont body frame frameset head html isindex link meta noframes noscript object param script style title".split(" "),eventAttributes:!0}),this.stripComments=!1!==e.stripComments,this.preserveWhitespace=!a(e.preserveWhitespace)&&e.preserveWhitespace,this.sanitizeElements=e.sanitize&&e.sanitize.elements,this.sanitizeEventAttributes=e.sanitize&&e.sanitize.eventAttributes,this.includeLinePositions=e.includeLinePositions,this.textOnlyMode=e.textOnlyMode,this.csp=e.csp,this.allowExpressions=e.allowExpressions,e.expression&&(this.converters=[Vt]),e.attributes&&(this.inTag=!0),this.whiteSpaceElements=Do({},e.preserveWhitespace,ic)},postProcess:function(t,e){var n=t[0];if(e.expression){var i=Ft(n);return i.e=lt(i.s,i.r.length),i}if(!t.length)return{t:[],v:Ta};if(this.sectionDepth>0&&this.error("A section was left open"),be(n.t,this.stripComments,this.preserveWhitespace,!this.preserveWhitespace,!this.preserveWhitespace,this.whiteSpaceElements),!1!==this.csp){var r={};je(n.t,r),je(n.p||{},r),Io(r).length&&(n.e=r)}return n},converters:[Ae],sortMustacheTags:function(){this.tags.sort(function(t,e){return e.open.length-t.open.length})}}),oc=["delimiters","tripleDelimiters","staticDelimiters","staticTripleDelimiters","csp","interpolate","preserveWhitespace","sanitize","stripComments","contextLines","allowExpressions","attributes"],ac="Either preparse or use a ractive runtime source that includes the parser. ",uc="Either include a version of Ractive that can parse or convert your computation strings to functions.",lc={fromId:function(t,e){if(!ea){if(e&&e.noThrow)return;throw new Error("Cannot retrieve template #"+t+" as Ractive is not running in a browser.")}t&&(t=t.replace(/^#/,""));var n;if(!(n=ea.getElementById(t))){if(e&&e.noThrow)return;throw new Error("Could not find template element with id #"+t)}if("SCRIPT"!==n.tagName.toUpperCase()){if(e&&e.noThrow)return;throw new Error("Template element with id #"+t+", must be a <script> element")}return"textContent"in n?n.textContent:n.innerHTML},isParsed:function(t){return!l(t)},getParseOptions:function(t){return t.defaults&&(t=t.defaults),oc.reduce(function(e,n){return e[n]=t[n],e},{})},parse:function(t,e){Me(De,"template",ac);var n=De(t,e);return ht(n),n},parseFor:function(t,e){return this.parse(t,this.getParseOptions(e))}},cc=0,hc=function(t,e){this.callback=t,this.parent=e,this.intros=[],this.outros=[],this.children=[],this.totalChildren=this.outroChildren=0,this.detachQueue=[],this.outrosComplete=!1,this.id=cc++,e&&e.addChild(this)},fc=hc.prototype;fc.add=function(t){var e=t.isIntro?this.intros:this.outros;t.starting=!0,e.push(t)},fc.addChild=function(t){this.children.push(t),this.totalChildren+=1,this.outroChildren+=1},fc.checkStart=function(){this.parent&&this.parent.started&&this.start()},fc.decrementOutros=function(){this.outroChildren-=1,Ve(this)},fc.decrementTotal=function(){this.totalChildren-=1,Ve(this)},fc.detachNodes=function(){for(var t=this,e=this.detachQueue.length,n=0;n<e;n++)t.detachQueue[n].detach();e=this.children.length;for(var i=0;i<e;i++)t.children[i].detachNodes();this.detachQueue=[]},fc.ready=function(){this.detachQueue.length&&Be(this)},fc.remove=function(t){O(t.isIntro?this.intros:this.outros,t),Ve(this)},fc.start=function(){this.started=!0,this.children.forEach(function(t){return t.start()}),this.intros.concat(this.outros).forEach(function(t){return t.start()}),Ve(this)};var dc,pc={active:function(){return!!dc},start:function(){var t,e=new Promise(function(e){return t=e});return dc={previousBatch:dc,transitionManager:new hc(t,dc&&dc.transitionManager),fragments:[],tasks:[],immediateObservers:[],deferredObservers:[],promise:e},e},end:function(){ze(),dc.previousBatch?dc.transitionManager.checkStart():dc.transitionManager.start(),dc=dc.previousBatch},addFragment:function(t){S(dc.fragments,t)},addFragmentToRoot:function(t){if(dc){for(var e=dc;e.previousBatch;)e=e.previousBatch;S(e.fragments,t)}},addObserver:function(t,e){dc?S(e?dc.deferredObservers:dc.immediateObservers,t):t.dispatch()},registerTransition:function(t){t._manager=dc.transitionManager,dc.transitionManager.add(t)},detachWhenReady:function(t){dc.transitionManager.detachQueue.push(t)},scheduleTask:function(t,e){var n;if(dc){for(n=dc;e&&n.previousBatch;)n=n.previousBatch;n.tasks.push(t)}else t()},promise:function(){if(!dc)return Promise.resolve();for(var t=dc;t.previousBatch;)t=t.previousBatch;return t.promise||Promise.resolve()}},gc=[],mc=!1,vc=function(t){this.duration=t.duration,this.step=t.step,this.complete=t.complete,this.easing=t.easing,this.start=performance.now(),this.end=this.start+this.duration,this.running=!0,gc.push(this),mc||requestAnimationFrame(He)},yc=vc.prototype;yc.tick=function(t){if(!this.running)return!1;if(t>this.end)return this.step&&this.step(1),this.complete&&this.complete(1),!1;var e=t-this.start,n=this.easing(e/this.duration);return this.step&&this.step(n),!0},yc.stop=function(){this.abort&&this.abort(),this.running=!1};var bc={},wc={},xc=function(e){function n(t,n){e.call(this,t),this.ticker=null,t&&(this.key=C(n),this.isReadonly=t.isReadonly,t.value&&(this.value=t.value[this.key],Bo(this.value)&&(this.length=this.value.length),this.adapt()))}e&&(n.__proto__=e);var s=n.prototype=Object.create(e&&e.prototype);return s.constructor=n,s.adapt=function(){var t=this,e=this.root.adaptors,n=e.length;if(this.rewrap=!1,0!==n){var i=this.wrapper?"newWrapperValue"in this?this.newWrapperValue:this.wrapperValue:this.value,r=this.root.ractive,s=this.getKeypath();if(this.wrapper){if(!(this.wrapperValue!==i&&(!this.wrapper.reset||!1===this.wrapper.reset(i))))return delete this.newWrapperValue,void(this.value=this.wrapper.get());if(this.wrapper.teardown(),delete this.wrapper,delete this.wrapperValue,delete this.newWrapperValue,void 0!==this.value){var o=this.parent.value||this.parent.createBranch(this.key);o[this.key]!==i&&(o[this.key]=i),this.value=i}}var a;for(a=0;a<n;a+=1){var u=e[a];if(u.filter(i,s,r)){t.wrapper=u.wrap(r,i,s,$e(s)),t.wrapperValue=i,t.wrapper.__model=t,t.value=t.wrapper.get();break}}}},s.animate=function(t,e,n,i){var r=this;this.ticker&&this.ticker.stop();var s,o=new Promise(function(t){return s=t});return this.ticker=new vc({duration:n.duration,easing:n.easing,step:function(t){var e=i(t);r.applyValue(e),n.step&&n.step(t,e)},complete:function(){r.applyValue(e),n.complete&&n.complete(e),r.ticker=null,s(e)}}),o.stop=this.ticker.stop,o},s.applyValue=function(t,e){if(void 0===e&&(e=!0),!i(t,this.value)){if(this.boundValue&&(this.boundValue=null),this.parent.wrapper&&this.parent.wrapper.set)this.parent.wrapper.set(this.key,t),this.parent.value=this.parent.wrapper.get(),this.value=this.parent.value[this.key],this.wrapper&&(this.newWrapperValue=this.value),this.adapt();else if(this.wrapper)this.newWrapperValue=t,this.adapt();else{var n=this.parent.value||this.parent.createBranch(this.key);if(!o(n))return void v("Attempted to set a property of a non-object '"+this.getKeypath()+"'");n[this.key]=t,this.value=t,this.adapt()}Bo(t)?(this.length=t.length,this.isArray=!0):this.isArray=!1,this.links.forEach(Z),this.children.forEach(X),this.deps.forEach(Z),e&&this.notifyUpstream(),this.parent.isArray&&("length"===this.key?this.parent.length=t:this.parent.joinKey("length").mark())}},s.compute=function(t,e){var n=this.computed||(this.computed={});return n[t]?(n[t].signature=Ie(this.root.ractive,t,e),n[t].mark()):n[t]=new wc.Computation(this,Ie(this.root.ractive,t,e),t),n[t]},s.createBranch=function(t){var e=r(t)?[]:{};return this.applyValue(e,!1),e},s.get=function(t,e){return this._link?this._link.get(t,e):(t&&K(this),e&&e.virtual?this.getVirtual(!1):I(this,(e&&"unwrap"in e?!1!==e.unwrap:t)&&this.wrapper?this.wrapperValue:this.value,!e||!1!==e.shouldBind))},s.joinKey=function(e,i){var r=this;if(this._link)return!i||!1===i.lastLink||void 0!==e&&""!==e?this._link.joinKey(e):this;if(void 0===e||""===e)return this;var s;if(!(s=t(this.childByKey,e)?this.childByKey[e]:this.computed&&this.computed[e])){var o;if(this.isRoot&&this.ractive&&(o=this.ractive.computed[e]))s=this.compute(e,o);else if(!this.isRoot&&this.root.ractive){var a=this.root.ractive.computed;for(var u in a)o=a[u],o.pattern&&o.pattern.test(r.getKeypath()+"."+e)&&(s=r.compute(e,o))}}return s||(s=new n(this,e),this.children.push(s),this.childByKey[e]=s),!s._link||i&&!1===i.lastLink?s:s._link},s.mark=function(t){if(this._link)return this._link.mark(t);var e=this.value,n=this.retrieve();!t&&i(n,e)||(this.value=n,this.boundValue&&(this.boundValue=null),(e!==n||this.rewrap)&&(this.wrapper&&(this.newWrapperValue=n),this.adapt()),Bo(n)?(this.length=n.length,this.isArray=!0):this.isArray=!1,this.children.forEach(t?G:X),this.links.forEach(Q),this.deps.forEach(Z))},s.merge=function(t,e){var n=R(this.value===t?Ue(this):this.value,t,e);this.parent.value[this.key]=t,this.shuffle(n,!0)},s.retrieve=function(){return this.parent.value?this.parent.value[this.key]:void 0},s.set=function(t){this.ticker&&this.ticker.stop(),this.applyValue(t)},s.shuffle=function(t,e){F(this,t,!1,e)},s.source=function(){return this},s.teardown=function(){var t=this;this._link&&(this._link.teardown(),this._link=null),this.children.forEach(et),this.wrapper&&this.wrapper.teardown(),this.computed&&Io(this.computed).forEach(function(e){return t.computed[e].teardown()})},n}(wa),kc={},Ec=function(t){function e(e,n,i){t.call(this,null,"@"+n),this.key="@"+n,this.value=e,this.isRoot=!0,this.root=this,this.adaptors=[],this.ractive=i}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getKeypath=function(){return this.key},n.retrieve=function(){return this.value},e}(xc),_c=new Ec(kc,"shared"),Cc=new Ec("undefined"!=typeof global?global:window,"global"),Sc=function(t){this.context=t},Tc=Sc.prototype;Tc.get=function(){return this.context},Tc.getKeypath=function(){return"@context"};var Ac=Sc.prototype;Ac.register=h,Ac.unregister=h;var jc={},Nc=function(t){this.ractive=t};Nc.prototype.findContext=function(){return this.ractive.viewmodel};var Oc=Nc.prototype;Oc.getContext=Je,Oc.find=Oc.findComponent=Oc.findAll=Oc.findAllComponents=h;var Pc=!1,Dc=/\*/,Mc={virtual:!1},Rc={},Lc="Cannot add to a non-numeric value",Ic=Jo.linear,Vc={},Bc={},qc=function(t){this.event=t,this.method="on"+t};qc.prototype.fire=function(t,e){var n=Ye(t),i=this.method;t[i]&&(e?t[i](n,e):t[i](n)),mn(t,this.event,n,e?[e,t]:[t])};var Fc=function(t){this.hook=new qc(t),this.inProcess={},this.queue={}},zc=Fc.prototype;zc.begin=function(t){this.inProcess[t._guid]=!0},zc.end=function(t){var e=t.parent;e&&this.inProcess[e._guid]?bn(this.queue,e).push(t):wn(this,t),delete this.inProcess[t._guid]};var Hc={};["construct","config","attachchild","detach","detachchild","insert","complete","reset","render","unrendering","unrender","teardown","destruct","update"].forEach(function(t){Hc[t]=new qc(t)}),Hc.init=new Fc("init");var Kc=Array.prototype,$c=Fn("push").model,Uc=Fn("pop").model,Wc=Fn("shift").model,Zc=Fn("unshift").model,Xc=Fn("sort").model,Gc=Fn("splice").model,Qc=Fn("reverse").model,Yc=function(t){function e(e){t.call(this,null,null),this.isRoot=!0,this.root=this,this.value={},this.ractive=e.ractive,this.adaptors=[],this.context=e.context}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getKeypath=function(){return"@context.data"},n.rebound=function(){},e}(xc),Jc=function(t,e){this.fragment=t,this.element=e||Vn(t),this.node=this.element&&this.element.node,this.ractive=t.ractive,this.root=this},th=Jc.prototype,eh={decorators:{},_data:{}};eh.decorators.get=function(){var t={};return this.element?(this.element.decorators.forEach(function(e){return t[e.name]=e.handle}),t):t},eh._data.get=function(){return this.model||(this.root.model=new Yc({ractive:this.ractive,context:this.root}))},th.add=function(t,e,n){var i=c(e)?+e:1,s=a(e)?e:n;return en(Kn(this,t,i).map(function(t){var e=t[0],n=t[1],i=e.get();if(!r(n)||!r(i))throw new Error("Cannot add non-numeric value");return[e,i+n]}),s)},th.animate=function(t,e,n){var i=$n(this,t).model;return hn(this.ractive,i,e,n)},th.get=function(t){if(!t)return this.fragment.findContext().get(!0);var e=$n(this,t),n=e.model;return n?n.get(!0):void 0},th.getParent=function(t){var e=this.fragment;return e.context?e=tn(e.parent||t&&e.componentParent):(e=tn(e.parent||t&&e.componentParent))&&(e=tn(e.parent||t&&e.componentParent)),e&&e!==this.fragment?e.getContext():void 0},th.hasListener=function(t,e){var n,i=this.fragment.owner.component?this.fragment.owner:this.element||this.fragment.owner;do{if(n=i.component||i,n.template.t===Va&&Un(n,t))return!0;i=i.up&&i.up.owner,i&&i.component&&(i=i.component)}while(i&&e)},th.link=function(t,e){var n=$n(this,t).model,i=$n(this,e).model,r=pc.start();return i.link(n,t),pc.end(),r},th.listen=function(t,e){var n=this.element;return n.on(t,e),{cancel:function(){n.off(t,e)}}},th.observe=function(t,e,n){return void 0===n&&(n={}),s(t)&&(n=e||{}),n.fragment=this.fragment,this.ractive.observe(t,e,n)},th.observeOnce=function(t,e,n){return void 0===n&&(n={}),s(t)&&(n=e||{}),n.fragment=this.fragment,this.ractive.observeOnce(t,e,n)},th.pop=function(t){return Uc($n(this,t).model,[])},th.push=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return $c($n(this,t).model,e)},th.raise=function(t,e){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];for(var r,s=this.element;s;){if(s.component&&(s=s.component),r=Un(s,t))return r.fire(r.element.getContext(e||{},!e||"original"in e?{}:{original:{}}),n);s=s.up&&s.up.owner}},th.readLink=function(t,e){return this.ractive.readLink(this.resolve(t),e)},th.resolve=function(t,e){var n=$n(this,t),i=n.model,r=n.instance;return i?i.getKeypath(e||r):t},th.reverse=function(t){return Qc($n(this,t).model,[])},th.set=function(t,e,n){return en(Kn(this,t,e),n)},th.shift=function(t){return Wc($n(this,t).model,[])},th.splice=function(t,e,n){for(var i=[],r=arguments.length-3;r-- >0;)i[r]=arguments[r+3];return i.unshift(e,n),Gc($n(this,t).model,i)},th.sort=function(t){return Xc($n(this,t).model,[])},th.subtract=function(t,e,n){var i=c(e)?e:1,s=a(e)?e:n;return en(Kn(this,t,i).map(function(t){var e=t[0],n=t[1],i=e.get();if(!r(n)||!r(i))throw new Error("Cannot add non-numeric value");return[e,i-n]}),s)},th.toggle=function(t,e){var n=$n(this,t),i=n.model;return en([[i,!i.get()]],e)},th.unlink=function(t){var e=$n(this,t).model,n=pc.start();return e.owner&&e.owner._link&&e.owner.unlink(),pc.end(),n},th.unlisten=function(t,e){this.element.off(t,e)},th.unshift=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Zc($n(this,t).model,e)},th.update=function(t,e){return zn(this.ractive,$n(this,t).model,e)},th.updateModel=function(t,e){var n=$n(this,t),i=n.model,r=pc.start();return i.updateFromBindings(e),pc.end(),r},th.isBound=function(){return!!this.getBindingModel(this).model},th.getBindingPath=function(t){var e=this.getBindingModel(this),n=e.model,i=e.instance;if(n)return n.getKeypath(t||i)},th.getBinding=function(){var t=this.getBindingModel(this),e=t.model;if(e)return e.get(!0)},th.getBindingModel=function(t){var e=t.element;return{model:e.binding&&e.binding.model,instance:e.up.ractive}},th.setBinding=function(t){return en([[this.getBindingModel(this).model,t]])},Object.defineProperties(th,eh),Jc.forRactive=Ye,jc.Context=Jc;var nh,ih,rh,sh,oh,ah,uh,lh,ch,hh=ea&&ea.querySelector,fh="http://www.w3.org/1999/xhtml",dh="http://www.w3.org/2000/svg",ph={html:fh,mathml:"http://www.w3.org/1998/Math/MathML",svg:dh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns"};if(nh=ra?function(t,e,n){return e&&e!==fh?n?ea.createElementNS(e,t,n):ea.createElementNS(e,t):n?ea.createElement(t,n):ea.createElement(t)}:function(t,e,n){if(e&&e!==fh)throw"This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likely cause of this error is that you're trying to render SVG in an older browser. See http://ractive.js.org/support/#svgs for more information";return n?ea.createElement(t,n):ea.createElement(t)},na){for(rh=nh("div"),sh=["matches","matchesSelector"],ch=function(t){return function(e,n){return e[t](n)}},uh=sh.length;uh--&&!ih;)if(oh=sh[uh],rh[oh])ih=ch(oh);else for(lh=sa.length;lh--;)if(ah=sa[uh]+oh.substr(0,1).toUpperCase()+oh.substring(1),rh[ah]){ih=ch(ah);break}ih||(ih=function(t,e){var n,i;(n=t.parentNode)||(rh.innerHTML="",n=rh,t=t.cloneNode(),rh.appendChild(t));var r=n.querySelectorAll(e);for(i=r.length;i--;)if(r[i]===t)return!0;return!1})}else ih=null;var gh=function(t,e,n,i){this.context=i.context||t,this.callback=n,this.ractive=t,this.keypath=i.keypath,this.options=i,e&&this.resolved(e),u(i.old)&&(this.oldContext=Mo(t),this.oldFn=i.old),!1!==i.init?(this.dirty=!0,this.dispatch()):oi(this),this.dirty=!1},mh=gh.prototype;mh.cancel=function(){this.cancelled=!0,this.model?this.model.unregister(this):this.resolver.unbind(),O(this.ractive._observers,this)},mh.dispatch=function(){this.cancelled||(this.callback.call(this.context,this.newValue,this.oldValue,this.keypath),oi(this,!0),this.dirty=!1)},mh.handleChange=function(){var t=this;if(this.dirty)this.newValue=this.model.get();else{var e=this.model.get();if(i(e,this.oldValue))return;if(this.newValue=e,this.options.strict&&this.newValue===this.oldValue)return;pc.addObserver(this,this.options.defer),this.dirty=!0,this.options.once&&pc.scheduleTask(function(){return t.cancel()})}},mh.rebind=function(t,e){var n=this;if((t=at(this.keypath,t,e))===this.model)return!1;this.model&&this.model.unregister(this),t&&t.addShuffleTask(function(){return n.resolved(t)})},mh.resolved=function(t){this.model=t,this.oldValue=void 0,this.newValue=t.get(),t.register(this)};var vh=/\*+/g,yh=function(t,e,n,i,r){var s=this;this.context=r.context||t,this.ractive=t,this.baseModel=e,this.keys=n,this.callback=i;var o=n.join("\\.").replace(vh,"(.+)"),a=this.baseKeypath=e.getKeypath(t);this.pattern=new RegExp("^"+(a?a+"\\.":"")+o+"$"),this.recursive=1===n.length&&"**"===n[0],this.recursive&&(this.keys=["*"]),r.old&&(this.oldContext=Mo(t),this.oldFn=r.old),this.oldValues={},this.newValues={},this.defer=r.defer,this.once=r.once,this.strict=r.strict,this.dirty=!1,this.changed=[],this.partial=!1,this.links=r.links,e.findMatches(this.keys).forEach(function(t){s.newValues[t.getKeypath(s.ractive)]=t.get()}),!1!==r.init?this.dispatch():ai(this,this.newValues),e.registerPatternObserver(this)},bh=yh.prototype;bh.cancel=function(){this.baseModel.unregisterPatternObserver(this),O(this.ractive._observers,this)},bh.dispatch=function(){var t=this,e=this.newValues;this.newValues={},Io(e).forEach(function(n){var r=e[n],s=t.oldValues[n];if(!(t.strict&&r===s||i(r,s))){var o=[r,s,n];if(n){var a=t.pattern.exec(n);a&&(o=o.concat(a.slice(1)))}t.callback.apply(t.context,o)}}),ai(this,e,this.partial),this.dirty=!1},bh.notify=function(t){this.changed.push(t)},bh.shuffle=function(t){var e=this;if(Bo(this.baseModel.value)){for(var n=this.baseModel.value.length,i=0;i<t.length;i++)-1!==t[i]&&t[i]!==i&&e.changed.push([i]);for(var r=t.touchedFrom;r<n;r++)e.changed.push([r])}},bh.handleChange=function(){var t=this;if(!this.dirty||this.changed.length){if(this.dirty||(this.newValues={}),this.changed.length){var e=0;if(this.recursive)this.changed.forEach(function(n){var i=t.baseModel.joinAll(n);i.isLink&&!t.links||(e++,t.newValues[i.getKeypath(t.ractive)]=i.get())});else{var n=this.baseModel.isRoot?this.changed.map(function(t){return t.map(k).join(".")}):this.changed.map(function(e){return t.baseKeypath+"."+e.map(k).join(".")});this.baseModel.findMatches(this.keys).forEach(function(i){var r=i.getKeypath(t.ractive),s=function(t){return 0===t.indexOf(r)&&(t.length===r.length||"."===t[r.length])||0===r.indexOf(t)&&(t.length===r.length||"."===r[t.length])};n.filter(s).length&&(e++,t.newValues[r]=i.get())})}if(!e)return;this.partial=!0}else this.baseModel.findMatches(this.keys).forEach(function(e){var n=e.getKeypath(t.ractive);t.newValues[n]=e.get()}),this.partial=!1;pc.addObserver(this,this.defer),this.dirty=!0,this.changed.length=0,this.once&&this.cancel()}};var wh=function(t,e,n,i){this.ractive=t,this.model=e,this.keypath=e.getKeypath(),this.callback=n,this.options=i,this.pending=null,e.register(this),!1!==i.init?(this.sliced=[],this.shuffle([]),this.dispatch()):this.sliced=this.slice()},xh=wh.prototype;xh.cancel=function(){this.model.unregister(this),O(this.ractive._observers,this)},xh.dispatch=function(){this.callback(this.pending),this.pending=null,this.options.once&&this.cancel()},
xh.handleChange=function(t){this.pending?pc.addObserver(this,this.options.defer):t||(this.shuffle(this.sliced.map(ui)),this.handleChange())},xh.shuffle=function(t){var e,n=this,i=this.slice(),r=[],s=[],o={};t.forEach(function(t,i){o[t]=!0,t!==i&&void 0===e&&(e=i),-1===t&&s.push(n.sliced[i])}),void 0===e&&(e=t.length);for(var a=i.length,u=0;u<a;u+=1)o[u]||r.push(i[u]);this.pending={inserted:r,deleted:s,start:e},this.sliced=i},xh.slice=function(){var t=this.model.get();return Bo(t)?t.slice():[]};var kh={init:!1,once:!0},Eh=function(t){return t.trim()},_h=function(t){return""!==t},Ch=Fn("pop").path,Sh=Fn("push").path,Th="/* Ractive.js component styles */",Ah=[],jh=!1,Nh=null,Oh=null,Ph={extend:function(t,e,n){e.adapt=P(e.adapt,j(n.adapt))},init:function(){}},Dh=/\/\*(?:[\s\S]*?)\*\//g,Mh=/url\(\s*(['"])(?:\\[\s\S]|(?!\1).)*\1\s*\)|url\((?:\\[\s\S]|[^)])*\)|(['"])(?:\\[\s\S]|(?!\2).)*\2/gi,Rh=/\0(\d+)/g,Lh=/(?:^|\}|\{|\x01)\s*([^\{\}\0\x01]+)\s*(?=\{)/g,Ih=/@import\s*\([^)]*\)\s*;?/gi,Vh=/\x01/g,Bh=/@keyframes\s+[^\{\}]+\s*\{(?:[^{}]+|\{[^{}]+})*}/gi,qh=/((?:(?:\[[^\]]+\])|(?:[^\s\+\>~:]))+)((?:::?[^\s\+\>\~\(:]+(?:\([^\)]+\))?)*\s*[\s\+\>\~]?)\s*/g,Fh=/^(?:@|\d+%)/,zh=/\[data-ractive-css~="\{[a-z0-9-]+\}"]/g,Hh=function(t){function e(e){t.call(this,e.cssData,"@style"),this.component=e}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.downstreamChanged=function(t,e){if(!this.locked){var n=this.component;n.extensions.forEach(function(n){var i=n._cssModel;i.mark(),i.downstreamChanged(t,e||1)}),e||Ai(n,!0)}},e}(Ec),Kh=/\{/,$h={name:"css",extend:function(t,e,n,i){i._cssIds=Ni(t),Ro(i,"cssData",{configurable:!0,value:Do(Mo(t.cssData),n.cssData||{})}),Ro(i,"_cssModel",{configurable:!0,value:new Hh(i)}),n.css&&Pi(n,i,e)},init:function(t,e,n){n.css&&v("\nThe css option is currently not supported on a per-instance basis and will be discarded. Instead, we recommend instantiating from a component definition with a css option.\n\nconst Component = Ractive.extend({\n\t...\n\tcss: '/* your css */',\n\t...\n});\n\nconst componentInstance = new Component({ ... })\n\t\t")}},Uh={name:"data",extend:function(t,e,n){var i,r;if(n.data&&s(n.data))for(i in n.data)(r=n.data[i])&&a(r)&&(s(r)||Bo(r))&&v("Passing a `data` option with object and array properties to Ractive.extend() is discouraged, as mutating them is likely to cause bugs. Consider using a data function instead:\n\n // this...\n data: function () {\n return {\n myObject: {}\n };\n })\n\n // instead of this:\n data: {\n myObject: {}\n }");e.data=Ri(e.data,n.data)},init:function(t,e,n){var i=Ri(t.prototype.data,n.data);if(u(i)&&(i=i.call(e)),i&&i.constructor===Object)for(var r in i)if(u(i[r])){var s=i[r];i[r]=L(s,e),i[r]._r_unbound=s}return i||{}},reset:function(t){var e=this.init(t.constructor,t,t.viewmodel);return t.viewmodel.root.set(e),!0}},Wh={name:"template",extend:function(t,e,n){if("template"in n){var i=n.template;u(i)?e.template=i:e.template=qi(i,e)}},init:function(t,e,n){var i="template"in n?n.template:t.prototype.template;if(i=i||{v:Ta,t:[]},u(i)){var r=i;i=Bi(e,r),e._config.template={fn:r,result:i}}i=qi(i,e),e.template=i.t,i.p&&Hi(e.partials,i.p)},reset:function(t){var e=Vi(t);if(e){var n=qi(e,t);return t.template=n.t,Hi(t.partials,n.p,!0),!0}}},Zh=["adaptors","components","computed","decorators","easing","events","helpers","interpolators","partials","transitions"],Xh=["computed","helpers"],Gh=function(t,e){this.name=t,this.useDefaults=e},Qh=Gh.prototype;Qh.extend=function(t,e,n){var i=this.useDefaults?t.defaults:t,r=this.useDefaults?e:e.constructor;this.configure(i,r,n)},Qh.init=function(){},Qh.configure=function(t,e,n){var i=this.name,r=n[i],s=Mo(t[i]);Do(s,r),e[i]=s,"partials"===i&&e[i]&&Io(e[i]).forEach(function(t){ht(e[i][t])})},Qh.reset=function(t){var e=t[this.name],n=!1;return Io(e).forEach(function(t){var i=e[t];i._fn&&(i._fn.isOwner?e[t]=i._fn:delete e[t],n=!0)}),n};var Yh=Zh.map(function(t){var e=Xh.indexOf(t)>-1;return new Gh(t,e)}),Jh={extend:function(t,e,n,i){return Xi("extend",t,e,n,i)},init:function(t,e,n){return Xi("init",t,e,n)},reset:function(t){return sf.filter(function(e){return e.reset&&e.reset(t)}).map(function(t){return t.name})}},tf={adapt:Ph,computed:Jh,css:$h,data:Uh,helpers:Jh,template:Wh},ef=Io(Yo),nf=Qi(ef.filter(function(t){return!tf[t]})),rf=Qi(ef.concat(Yh.map(function(t){return t.name}),["on","observe","attributes","cssData","use"])),sf=[].concat(ef.filter(function(t){return!Yh[t]&&!tf[t]}),Yh,tf.template,tf.css),of=/\b_super\b/,af=function(t){this.up=t.up,this.ractive=t.up.ractive,this.template=t.template,this.index=t.index,this.type=t.template.t,this.dirty=!1},uf=af.prototype;uf.bubble=function(){this.dirty||(this.dirty=!0,this.up.bubble())},uf.destroyed=function(){this.fragment&&this.fragment.destroyed()},uf.find=function(){return null},uf.findComponent=function(){return null},uf.findNextNode=function(){return this.up.findNextNode(this)},uf.rebound=function(t){this.fragment&&this.fragment.rebound(t)},uf.shuffled=function(){this.fragment&&this.fragment.shuffled()},uf.valueOf=function(){return this.toString()},af.prototype.findAll=h,af.prototype.findAllComponents=h;var lf=function(t){function e(e){t.call(this,e)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.detach=function(){return this.fragment?this.fragment.detach():Qn()},n.find=function(t){if(this.fragment)return this.fragment.find(t)},n.findAll=function(t,e){this.fragment&&this.fragment.findAll(t,e)},n.findComponent=function(t){if(this.fragment)return this.fragment.findComponent(t)},n.findAllComponents=function(t,e){this.fragment&&this.fragment.findAllComponents(t,e)},n.firstNode=function(t){return this.fragment&&this.fragment.firstNode(t)},n.toString=function(t){return this.fragment?this.fragment.toString(t):""},e}(af),cf=function(e){function n(t,n){e.call(this,t,n),this.isReadonly=!this.root.ractive.syncComputedChildren,this.dirty=!0,this.isComputed=!0}e&&(n.__proto__=e);var i=n.prototype=Object.create(e&&e.prototype);i.constructor=n;var r={setRoot:{}};return r.setRoot.get=function(){return this.parent.setRoot},i.applyValue=function(t){if(e.prototype.applyValue.call(this,t),!this.isReadonly){for(var n=this.parent;n&&n.shuffle;)n=n.parent;n&&n.dependencies.forEach(X)}this.setRoot&&this.setRoot.set(this.setRoot.value)},i.get=function(t,e){if(t&&K(this),this.dirty){this.dirty=!1;var n=this.parent.get();this.value=n?n[this.key]:void 0,this.wrapper&&(this.newWrapperValue=this.value),this.adapt()}return(e&&"unwrap"in e?!1!==e.unwrap:t)&&this.wrapper?this.wrapperValue:this.value},i.handleChange=function(){this.dirty||(this.dirty=!0,this.boundValue&&(this.boundValue=null),this.links.forEach(Q),this.deps.forEach(Z),this.children.forEach(Z))},i.joinKey=function(e){if(void 0===e||""===e)return this;if(!t(this.childByKey,e)){var i=new n(this,e);this.children.push(i),this.childByKey[e]=i}return this.childByKey[e]},Object.defineProperties(i,r),n}(xc),hf=function(t){function e(e,n,i){t.call(this,e,i),this.signature=n,this.isReadonly=!this.signature.setter,this.isComputed=!0,this.dependencies=[],this.children=[],this.childByKey={},this.deps=[],this.dirty=!0,this.shuffle=void 0}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);n.constructor=e;var r={setRoot:{}};return r.setRoot.get=function(){if(this.signature.setter)return this},n.get=function(t,e){if(t&&K(this),this.dirty){this.dirty=!1;var n=this.value;this.value=this.getValue(),pc.active()?i(n,this.value)||this.notifyUpstream():(pc.start(),i(n,this.value)||this.notifyUpstream(),pc.end()),this.wrapper&&(this.newWrapperValue=this.value),this.adapt()}return I(this,this.wrapper&&(e&&"unwrap"in e?!1!==e.unwrap:t)?this.wrapperValue:this.value,!e||!1!==e.shouldBind)},n.getContext=function(){return this.parent.isRoot?this.root.ractive:this.parent.get(!1,ba)},n.getValue=function(){z();var t;try{t=this.signature.getter.call(this.root.ractive,this.getContext())}catch(t){if(v("Failed to compute "+this.getKeypath()+": "+(t.message||t)),ia){console.groupCollapsed&&console.groupCollapsed("%cshow details","color: rgb(82, 140, 224); font-weight: normal; text-decoration: underline;");var e=this.signature;console.error(t.name+": "+t.message+"\n\n"+e.getterString+(e.getterUseStack?"\n\n"+t.stack:"")),console.groupCollapsed&&console.groupEnd()}}var n=H();return this.setDependencies(n),t},n.mark=function(){this.handleChange()},n.rebind=function(t,e){t!==e&&this.handleChange()},n.set=function(t){if(this.isReadonly)throw new Error("Cannot set read-only computed value '"+this.key+"'");this.signature.setter(t),this.mark()},n.setDependencies=function(t){for(var e=this,n=this.dependencies.length;n--;){var i=e.dependencies[n];~t.indexOf(i)||i.unregister(e)}for(n=t.length;n--;){var r=t[n];~e.dependencies.indexOf(r)||r.register(e)}this.dependencies=t},n.teardown=function(){for(var e=this,n=this.dependencies.length;n--;)e.dependencies[n]&&e.dependencies[n].unregister(e);this.parent.computed[this.key]===this&&delete this.parent.computed[this.key],t.prototype.teardown.call(this)},Object.defineProperties(n,r),e}(xc),ff=hf.prototype,df=cf.prototype;ff.handleChange=df.handleChange,ff.joinKey=df.joinKey,wc.Computation=hf;var pf=function(t){function e(e,n){var i=this;t.call(this,e.ractive.viewmodel,null),this.fragment=e,this.template=n,this.isReadonly=!0,this.isComputed=!0,this.dirty=!0,this.fn=!1===e.ractive.allowExpressions?h:ct(n.s,n.r.length),this.models=this.template.r.map(function(t){return Ze(i.fragment,t)}),this.dependencies=[],this.shuffle=void 0,this.bubble()}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bubble=function(t){void 0===t&&(t=!0),this.keypath=void 0,t&&this.handleChange()},n.getKeypath=function(){var t=this;return this.template?(this.keypath||(this.keypath="@"+this.template.s.replace(/_(\d+)/g,function(e,n){if(n>=t.models.length)return e;var i=t.models[n];return i?i.getKeypath():"@undefined"})),this.keypath):"@undefined"},n.getValue=function(){var t=this;z();var e;try{var n=this.models.map(function(t){return t?t.get(!0):void 0});e=this.fn.apply(this.fragment.ractive,n)}catch(t){v("Failed to compute "+this.getKeypath()+": "+(t.message||t))}var i=H();return this.dependencies.filter(function(t){return!~i.indexOf(t)}).forEach(function(e){e.unregister(t),O(t.dependencies,e)}),i.filter(function(e){return!~t.dependencies.indexOf(e)}).forEach(function(e){e.register(t),t.dependencies.push(e)}),e},n.notifyUpstream=function(){},n.rebind=function(t,e,n){var i=this.models.indexOf(e);~i&&(t=at(this.template.r[i],t,e))!==e&&(e.unregister(this),this.models.splice(i,1,t),t&&t.addShuffleRegister(this,"mark")),this.bubble(!n)},n.rebound=function(t){var e=this;this.models=this.template.r.map(function(t){return Ze(e.fragment,t)}),t&&this.bubble(!0)},n.retrieve=function(){return this.get()},n.teardown=function(){var e=this;this.fragment=void 0,this.dependencies&&this.dependencies.forEach(function(t){return t.unregister(e)}),t.prototype.teardown.call(this)},n.unreference=function(){t.prototype.unreference.call(this),Yi(this)},n.unregister=function(e){t.prototype.unregister.call(this,e),Yi(this)},n.unregisterLink=function(e){t.prototype.unregisterLink.call(this,e),Yi(this)},e}(xc),gf=pf.prototype,mf=hf.prototype;gf.get=mf.get,gf.handleChange=mf.handleChange,gf.joinKey=mf.joinKey,gf.mark=mf.mark,gf.unbind=h;var vf=function(t){function e(e,n){t.call(this,null,null,null,"@undefined"),this.root=e.ractive.viewmodel,this.template=n,this.rootLink=!0,this.template=n,this.fragment=e,this.rebound()}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getKeypath=function(){return this.model?this.model.getKeypath():"@undefined"},n.rebound=function(){var t,e=this,n=this.fragment,i=this.template,r=this.base=er(n,i);this.proxy&&Ji(this);var s=this.proxy={rebind:function(n,a){a===r?(n=at(i,n,a))!==r&&(e.base=r=n):~(t=o.indexOf(a))&&(n=at(i.m[t].n,n,a))!==o[t]&&o.splice(t,1,n||_a),n!==a&&(a.unregister(s),n&&n.addShuffleTask(function(){return n.register(s)}))},handleChange:function(){a()}};r.register(s);var o=this.members=i.m.map(function(t){if(l(t))return{get:function(){return t}};var e;return t.t===su?(e=Ze(n,t.n),e.register(s),e):(e=new pf(n,t),e.register(s),e)}),a=function(){var t=r.joinAll(o.reduce(function(t,e){var n=e.get();return Bo(n)?t.concat(n):(t.push(k(String(n))),t)},[]));t!==e.model&&(e.model=t,e.relinking(t),q(),tr(e))};a()},n.teardown=function(){Ji(this),t.prototype.teardown.call(this)},n.unreference=function(){t.prototype.unreference.call(this),this.deps.length||this.refs||this.teardown()},n.unregister=function(e){t.prototype.unregister.call(this,e),this.deps.length||this.refs||this.teardown()},e}(Ca),yf=pf.prototype,bf=vf.prototype;bf.unreference=yf.unreference,bf.unregister=yf.unregister,bf.unregisterLink=yf.unregisterLink;var wf=function(t){function e(e){t.call(this,e),this.fragment=null}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.fragment=new Tp({owner:this,template:this.template.f}),this.fragment.aliases=nr(this.template.z,this.up),this.fragment.bind()},n.rebound=function(t){var e=this.fragment.aliases;for(var n in e)e[n].rebound?e[n].rebound(t):(e[n].unreference(),e[n]=0);nr(this.template.z,this.up,e),this.fragment&&this.fragment.rebound(t)},n.render=function(t,e){this.rendered=!0,this.fragment&&this.fragment.render(t,e)},n.unbind=function(t){var e=this;for(var n in e.fragment.aliases)e.fragment.aliases[n].unreference();this.fragment.aliases={},this.fragment&&this.fragment.unbind(t)},n.unrender=function(t){this.rendered&&this.fragment&&this.fragment.unrender(t),this.rendered=!1},n.update=function(){this.dirty&&(this.dirty=!1,this.fragment.update())},e}(lf),xf=/\s+/,kf=[void 0,"text","search","url","email","hidden","password","search","reset","submit"],Ef={"accept-charset":"acceptCharset",accesskey:"accessKey",bgcolor:"bgColor",class:"className",codebase:"codeBase",colspan:"colSpan",contenteditable:"contentEditable",datetime:"dateTime",dirname:"dirName",for:"htmlFor","http-equiv":"httpEquiv",ismap:"isMap",maxlength:"maxLength",novalidate:"noValidate",pubdate:"pubDate",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"},_f=ea?nh("div"):null,Cf=!1,Sf=function(t){function e(e){t.call(this,e),this.attributes=[],this.owner=e.owner,this.fragment=new Tp({ractive:this.ractive,owner:this,template:this.template}),this.fragment.findNextNode=h,this.dirty=!1}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.fragment.bind()},n.bubble=function(){this.dirty||(this.dirty=!0,this.owner.bubble())},n.destroyed=function(){this.unrender()},n.render=function(){this.node=this.owner.node,this.node&&(this.isSvg=this.node.namespaceURI===dh),Cf=!0,this.rendered||this.fragment.render(),this.rendered=!0,this.dirty=!0,this.update(),Cf=!1},n.toString=function(){return this.fragment.toString()},n.unbind=function(t){this.fragment.unbind(t)},n.unrender=function(){this.rendered=!1,this.fragment.unrender()},n.update=function(){var t,e,n=this;if(this.dirty){this.dirty=!1;var i=Cf;Cf=!0,this.fragment.update(),this.rendered&&this.node&&(t=this.fragment.toString(),e=kr(t,this.isSvg),this.attributes.filter(function(t){return Er(e,t)}).forEach(function(t){n.node.removeAttribute(t.name)}),e.forEach(function(t){n.node.setAttribute(t.name,t.value)}),this.attributes=e),Cf=i||!1}},e}(af),Tf=/^\s*$/,Af=!1,jf=function(t){function e(e){if(t.call(this,e),this.name=e.template.n,this.namespace=null,this.owner=e.owner||e.up.owner||e.element||Vn(e.up),this.element=e.element||(this.owner.attributeByName?this.owner:Vn(e.up)),this.up=e.up,this.ractive=this.up.ractive,this.rendered=!1,this.updateDelegate=null,this.fragment=null,this.element.attributeByName[this.name]=this,!Bo(e.template.f))return this.value=e.template.f,void(0===this.value?this.value="":void 0===this.value&&(this.value=!0));this.fragment=new Tp({owner:this,template:e.template.f}),this.interpolator=this.fragment&&1===this.fragment.items.length&&this.fragment.items[0].type===Da&&this.fragment.items[0],this.interpolator&&(this.interpolator.owner=this)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.fragment&&this.fragment.bind()},n.bubble=function(){this.dirty||(this.up.bubble(),this.element.bubble(),this.dirty=!0)},n.firstNode=function(){},n.getString=function(){Af=!0;var t=this.fragment?this.fragment.toString():null!=this.value?""+this.value:"";return Af=!1,t},n.getValue=function(){Af=!0;var t=this.fragment?this.fragment.valueOf():!!Pu[this.name.toLowerCase()]||this.value;return Af=!1,t},n.render=function(){var t=this.element.node;if(this.node=t,t.namespaceURI&&t.namespaceURI!==ph.html||(this.propertyName=Ef[this.name]||this.name,void 0!==t[this.propertyName]&&(this.useProperty=!0),(Pu[this.name.toLowerCase()]||this.isTwoway)&&(this.isBoolean=!0),"value"===this.propertyName&&(t._ractive.value=this.value)),t.namespaceURI){var e=this.name.indexOf(":");this.namespace=-1!==e?_r(t,this.name.slice(0,e)):t.namespaceURI}this.rendered=!0,this.updateDelegate=sr(this),this.updateDelegate()},n.toString=function(){if(xr())return"";Af=!0;var t=this.getValue();if("value"!==this.name||void 0===this.element.getAttribute("contenteditable")&&"select"!==this.element.name&&"textarea"!==this.element.name){if("name"===this.name&&"input"===this.element.name&&this.interpolator&&"radio"===this.element.getAttribute("type"))return'name="{{'+this.interpolator.model.getKeypath()+'}}"';if(this.owner!==this.element||"style"!==this.name&&"class"!==this.name&&!this.style&&!this.inlineClass){if(!(this.rendered||this.owner!==this.element||this.name.indexOf("style-")&&this.name.indexOf("class-")))return void(this.name.indexOf("style-")?this.inlineClass=this.name.substr(6):this.style=xe(this.name.substr(6)));if(Pu[this.name.toLowerCase()])return t?l(t)?this.name+'="'+ei(t)+'"':this.name:"";if(null==t)return"";var e=ei(this.getString());return Af=!1,e?this.name+'="'+e+'"':this.name}}},n.unbind=function(t){this.fragment&&this.fragment.unbind(t)},n.unrender=function(){this.updateDelegate(!0),this.rendered=!1},n.update=function(){if(this.dirty){var t;if(this.dirty=!1,this.fragment&&this.fragment.update(),this.rendered&&this.updateDelegate(),this.isTwoway&&!this.locked)this.interpolator.twowayBinding.lastVal(!0,this.interpolator.model.get());else if("value"===this.name&&(t=this.element.binding)){var e=t.attribute;e&&!e.dirty&&e.rendered&&this.element.binding.attribute.updateDelegate()}}},e}(af),Nf=function(t){function e(e){t.call(this,e),this.owner=e.owner||e.up.owner||Vn(e.up),this.element=this.owner.attributeByName?this.owner:Vn(e.up),this.flag="l"===e.template.v?"lazy":"twoway",this.bubbler=this.owner===this.element?this.element:this.up,this.element.type===Va&&(Bo(e.template.f)&&(this.fragment=new Tp({owner:this,template:e.template.f})),this.interpolator=this.fragment&&1===this.fragment.items.length&&this.fragment.items[0].type===Da&&this.fragment.items[0])}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.fragment&&this.fragment.bind(),Sr(this,this.getValue(),!0)},n.bubble=function(){this.dirty||(this.bubbler.bubble(),this.dirty=!0)},n.getValue=function(){return this.fragment?this.fragment.valueOf():"value"in this?this.value:!("f"in this.template)||this.template.f},n.render=function(){Sr(this,this.getValue(),!0)},n.toString=function(){return""},n.unbind=function(t){this.fragment&&this.fragment.unbind(t),delete this.element[this.flag]},n.unrender=function(){this.element.rendered&&this.element.recreateTwowayBinding()},n.update=function(){this.dirty&&(this.dirty=!1,this.fragment&&this.fragment.update(),Sr(this,this.getValue(),!0))},e}(af),Of=Mo(af.prototype);Do(Of,{bind:h,unbind:h,update:h,detach:function(){return Jn(this.node)},firstNode:function(){return this.node},render:function(t){this.rendered=!0,this.node=ea.createComment(this.template.c),t.appendChild(this.node)},toString:function(){return"\x3c!-- "+this.template.c+" --\x3e"},unrender:function(t){this.rendered&&t&&this.detach(),this.rendered=!1}}),Tr.prototype=Of;var Pf=function(t){function e(e){t.call(this,e,"@this"),this.ractive=e}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.joinKey=function(e){var n=t.prototype.joinKey.call(this,e);return"root"!==e&&"parent"!==e||n.isLink?"data"===e?this.ractive.viewmodel:"cssData"===e?this.ractive.constructor._cssModel:n:Nr(n,e)},e}(Ec),Df={"@this":function(t){return t.getRactiveModel()},"@global":function(){return Cc},"@shared":function(){return _c},"@style":function(t){return t.getRactiveModel().joinKey("cssData")},"@helpers":function(t){return t.getHelpers()}};Df["@"]=Df["@this"];var Mf=function(t){function e(e){t.call(this,null,null),this.isRoot=!0,this.root=this,this.ractive=e.ractive,this.value=e.data,this.adaptors=e.adapt,this.adapt()}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.attached=function(t){Or(this,t)},n.createLink=function(t,e,n,i){for(var r=_(t),s=this;r.length;){var o=r.shift();s=s.childByKey[o]||s.joinKey(o)}return s.link(e,n,i)},n.detached=function(){Pr(this)},n.get=function(t,e){return t&&K(this),e&&!1===e.virtual?this.value:this.getVirtual()},n.getHelpers=function(){return this.helpers||(this.helpers=new Ec(this.ractive.helpers,"helpers",this.ractive)),this.helpers},n.getKeypath=function(){return""},n.getRactiveModel=function(){return this.ractiveModel||(this.ractiveModel=new Pf(this.ractive))},n.getValueChildren=function(){var e=t.prototype.getValueChildren.call(this,this.value);return this.children.forEach(function(t){if(t._link){var n=e.indexOf(t);~n?e.splice(n,1,t._link):e.push(t._link)}}),e},n.has=function(e){if("~"===e[0]&&"/"===e[1]&&(e=e.slice(2)),Df[e]||""===e)return!0;if(t.prototype.has.call(this,e))return!0;var n=C(e);return!(!this.childByKey[n]||!this.childByKey[n]._link)||void 0},n.joinKey=function(e,n){if("~"===e[0]&&"/"===e[1]&&(e=e.slice(2)),"@"!==e[0])return t.prototype.joinKey.call(this,e,n);var i=Df[e];return i?i(this):void 0},n.set=function(t){var e=this.wrapper;if(e){(!e.reset||!1===e.reset(t))&&(e.teardown(),this.wrapper=null,this.value=t,this.adapt())}else this.value=t,this.adapt();this.deps.forEach(Z),this.children.forEach(X)},n.retrieve=function(){return this.wrapper?this.wrapper.get():this.value},n.teardown=function(){t.prototype.teardown.call(this),this.ractiveModel&&this.ractiveModel.teardown()},e}(xc);Mf.prototype.update=h;var Rf=["adaptors","components","decorators","easing","events","interpolators","partials","transitions"],Lf=["computed","helpers"],If=0,Vf=function(t){function e(e,n){var i=this;t.call(this,e);var r=e.template;this.isAnchor=r.t===za,this.type=this.isAnchor?za:$a;var s=r.m,o=r.p||{};if("content"in o||(o.content=r.f||[]),this._partials=o,this.isAnchor)this.name=r.n,this.addChild=Vr,this.removeChild=Br;else{var a=Mo(n.prototype);this.instance=a,this.name=r.e,(a.el||a.target)&&(v("The <"+this.name+"> component has a default '"+(a.el?"el":"target")+"' property; it has been disregarded"),a.el=a.target=null);for(var u,c=e.up;c;){if(c.owner.type===Ua){u=c.owner.container;break}c=c.parent}a.parent=this.up.ractive,a.container=u||null,a.root=a.parent.root,a.component=this,Mr(this.instance,{partials:o}),r=this.template,s=r.m,Bo(this.mappings)?s=(s||[]).concat(this.mappings):l(this.mappings)&&(s=(s||[]).concat(lc.parse(this.mappings,{attributes:!0}).t)),a._inlinePartials=o}if(this.attributeByName={},this.attributes=[],s){var h=[];s.forEach(function(t){switch(t.t){case Ha:case ku:i.attributes.push(Ws({owner:i,up:i.up,template:t}));break;case _u:case Cu:case Eu:break;default:h.push(t)}}),h.length&&this.attributes.push(new Sf({owner:this,up:this.up,template:h}))}this.eventHandlers=[]}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.isAnchor||(this.attributes.forEach($),this.eventHandlers.forEach($),Gs(this.instance,{partials:this._partials},{cssIds:this.up.cssIds}),(this.instance.target||this.instance.el)&&(this.extern=!0),this.bound=!0)},n.bubble=function(){this.dirty||(this.dirty=!0,this.up.bubble())},n.destroyed=function(){!this.isAnchor&&this.instance.fragment&&this.instance.fragment.destroyed()},n.detach=function(){return this.isAnchor?this.instance?this.instance.fragment.detach():Qn():this.instance.fragment.detach()},n.find=function(t,e){if(this.instance)return this.instance.fragment.find(t,e)},n.findAll=function(t,e){this.instance&&this.instance.fragment.findAll(t,e)},n.findComponent=function(t,e){return t&&this.name!==t?this.instance.fragment?this.instance.fragment.findComponent(t,e):void 0:this.instance},n.findAllComponents=function(t,e){var n=e.result;!this.instance||t&&this.name!==t||n.push(this.instance),this.instance&&this.instance.findAllComponents(t,e)},n.firstNode=function(t){if(this.instance)return this.instance.fragment.firstNode(t)},n.getContext=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.unshift(this.instance),Ye.apply(null,t)},n.rebound=function(t){this.attributes.forEach(function(e){return e.rebound(t)})},n.render=function(t,e){this.isAnchor?(this.rendered=!0,this.target=t,Bf.length||(Bf.push(this.ractive),e?(this.occupants=e,zr(),this.occupants=null):pc.scheduleTask(zr,!0))):(this.attributes.forEach(J),this.eventHandlers.forEach(J),this.extern?(this.instance.delegate=!1,this.instance.render()):Ys(this.instance,t,null,e),this.rendered=!0)},n.shuffled=function(){t.prototype.shuffled.call(this),this.instance&&!this.instance.isolated&&this.instance.fragment&&this.instance.fragment.shuffled()},n.toString=function(){if(this.instance)return this.instance.toHTML()},n.unbind=function(t){this.isAnchor||(this.bound=!1,this.attributes.forEach(nt),t?this.instance.fragment.unbind():jr(this.instance,function(){return pc.promise()}))},n.unrender=function(t){this.shouldDestroy=t,this.isAnchor?(this.item&&Fr(this,this.item),this.target=null,Bf.length||(Bf.push(this.ractive),pc.scheduleTask(zr,!0))):(this.instance.unrender(),this.instance.el=this.instance.target=null,this.attributes.forEach(it),this.eventHandlers.forEach(it)),this.rendered=!1},n.update=function(){this.dirty=!1,this.instance&&(this.instance.fragment.update(),this.attributes.forEach(rt),this.eventHandlers.forEach(rt))},e}(af),Bf=[],qf={update:h,teardown:h},Ff=function(t){this.owner=t.owner||t.up.owner||Vn(t.up),this.element=this.owner.attributeByName?this.owner:Vn(t.up),this.up=t.up||this.owner.up,this.ractive=this.owner.ractive;var e=this.template=t.template;this.name=e.n,this.node=null,this.handle=null,this.element.decorators.push(this)},zf=Ff.prototype;zf.bind=function(){var t=this.element===this.owner?new Tp({owner:this.owner}):this.up;Hr(this,this.template,t,{register:!0})},zf.bubble=function(){this.dirty||(this.dirty=!0,this.owner.bubble(),this.up.bubble())},zf.destroyed=function(){this.handle&&(this.handle.teardown(),this.handle=null),this.shouldDestroy=!0},zf.handleChange=function(){this.bubble()},zf.rebind=function(t,e,n){var i=this.models.indexOf(e);~i&&(t=at(this.template.f.r[i],t,e))!==e&&(e.unregister(this),this.models.splice(i,1,t),t&&t.addShuffleRegister(this,"mark"),n||this.bubble())},zf.rebound=function(t){$r(this,this.template),Hr(this,this.template,this.up,{register:!0}),t&&this.bubble()},zf.render=function(){var t=this;this.shouldDestroy=!1,this.handle&&this.unrender(),pc.scheduleTask(function(){if(t.element.rendered){var e=b("decorators",t.ractive,t.name);if(!e)return m(ca(t.name,"decorator")),void(t.handle=qf);t.node=t.element.node;var n;if(t.fn&&(n=t.models.map(function(t){if(t)return t.get()}),n=t.fn.apply(t.ractive,n)),t.handle=e.apply(t.ractive,[t.node].concat(n)),!t.handle||!t.handle.teardown)throw new Error("The '"+t.name+"' decorator must return an object with a teardown method");t.shouldDestroy&&t.destroyed()}},!0)},zf.toString=function(){return""},zf.unbind=function(){$r(this,this.template)},zf.unrender=function(t){t&&!this.element.rendered||!this.handle||(this.handle.teardown(),this.handle=null)},zf.update=function(){var t=this.handle;if(!this.dirty)return void(t&&t.invalidate&&pc.scheduleTask(function(){return t.invalidate()},!0));if(this.dirty=!1,t)if(t.update){var e=this.models.map(function(t){return t&&t.get()});t.update.apply(this.ractive,this.fn.apply(this.ractive,e))}else this.unrender(),this.render()},Ff.prototype.firstNode=h;var Hf=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.toString=function(){return"<!DOCTYPE"+this.template.a+">"},e}(af),Kf=Hf.prototype;Kf.bind=Kf.render=Kf.teardown=Kf.unbind=Kf.unrender=Kf.update=h;var $f=function(t,e){void 0===e&&(e="value"),this.element=t,this.ractive=t.ractive,this.attribute=t.attributeByName[e];var n=this.attribute.interpolator;n.twowayBinding=this;var i=n.model;if(i.isReadonly&&!i.setRoot){var r=i.getKeypath().replace(/^@/,"");return y("Cannot use two-way binding on <"+t.name+"> element: "+r+" is read-only. To suppress this warning use <"+t.name+" twoway='false'...>",{ractive:this.ractive}),!1}this.attribute.isTwoway=!0,this.model=i;var s=i.get();this.wasUndefined=void 0===s,void 0===s&&this.getInitialValue&&(s=this.getInitialValue(),i.set(s)),this.lastVal(!0,s);var o=Vn(this.element,!1,"form");o&&(this.resetValue=s,o.formBindings.push(this))},Uf=$f.prototype;Uf.bind=function(){this.model.registerTwowayBinding(this)},Uf.handleChange=function(){var t=this,e=this.getValue();this.lastVal()!==e&&(pc.start(),this.attribute.locked=!0,this.model.set(e),this.lastVal(!0,e),this.model.get()!==e?this.attribute.locked=!1:pc.scheduleTask(function(){return t.attribute.locked=!1}),pc.end())},Uf.lastVal=function(t,e){if(!t)return this.lastValue;this.lastValue=e},Uf.rebind=function(t,e){var n=this;this.model&&this.model===e&&e.unregisterTwowayBinding(this),t&&(this.model=t,pc.scheduleTask(function(){return t.registerTwowayBinding(n)}))},Uf.rebound=function(){this.model&&this.model.unregisterTwowayBinding(this),this.model=this.attribute.interpolator.model,this.model.registerTwowayBinding(this)},Uf.render=function(){this.node=this.element.node,this.node._ractive.binding=this,this.rendered=!0},Uf.setFromNode=function(t){this.model.set(t.value)},Uf.unbind=function(){this.model.unregisterTwowayBinding(this)},$f.prototype.unrender=h;var Wf=function(t){function e(e){t.call(this,e,"checked")}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.render=function(){t.prototype.render.call(this),this.element.on("change",Ur),this.node.attachEvent&&this.element.on("click",Ur)},n.unrender=function(){this.element.off("change",Ur),this.element.off("click",Ur)},n.getInitialValue=function(){return!!this.element.getAttribute("checked")},n.getValue=function(){return this.node.checked},n.setFromNode=function(t){this.model.set(t.checked)},e}($f),Zf=function(t,e,n){var i=this;this.model=e,this.hash=t,this.getValue=function(){return i.value=n.call(i),i.value},this.bindings=[]},Xf=Zf.prototype;Xf.add=function(t){this.bindings.push(t)},Xf.bind=function(){this.value=this.model.get(),this.model.registerTwowayBinding(this),this.bound=!0},Xf.remove=function(t){O(this.bindings,t),this.bindings.length||this.unbind()},Xf.unbind=function(){this.model.unregisterTwowayBinding(this),this.bound=!1,delete this.model[this.hash]},Zf.prototype.rebind=$f.prototype.rebind;var Gf=[].push,Qf=function(t){function e(e){if(t.call(this,e,"name"),this.checkboxName=!0,this.group=Wr("checkboxes",this.model,Zr),this.group.add(this),this.noInitialValue&&(this.group.noInitialValue=!0),this.group.noInitialValue&&this.element.getAttribute("checked")){var n=this.model.get(),i=this.element.getAttribute("value");this.arrayContains(n,i)||Gf.call(n,i)}}
t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.group.bound||this.group.bind()},n.getInitialValue=function(){return this.noInitialValue=!0,[]},n.getValue=function(){return this.group.value},n.handleChange=function(){this.isChecked=this.element.node.checked,this.group.value=this.model.get().slice();var e=this.element.getAttribute("value");this.isChecked&&!this.arrayContains(this.group.value,e)?this.group.value.push(e):!this.isChecked&&this.arrayContains(this.group.value,e)&&this.removeFromArray(this.group.value,e),this.lastValue=null,t.prototype.handleChange.call(this)},n.render=function(){t.prototype.render.call(this);var e=this.node,n=this.model.get(),i=this.element.getAttribute("value");Bo(n)?this.isChecked=this.arrayContains(n,i):this.isChecked=this.element.compare(n,i),e.name="{{"+this.model.getKeypath()+"}}",e.checked=this.isChecked,this.element.on("change",Ur),this.node.attachEvent&&this.element.on("click",Ur)},n.setFromNode=function(t){if(this.group.bindings.forEach(function(t){return t.wasUndefined=!0}),t.checked){var e=this.group.getValue();e.push(this.element.getAttribute("value")),this.group.model.set(e)}},n.unbind=function(){this.group.remove(this)},n.unrender=function(){var t=this.element;t.off("change",Ur),t.off("click",Ur)},n.arrayContains=function(t,e){for(var n=this,i=t.length;i--;)if(n.element.compare(e,t[i]))return!0;return!1},n.removeFromArray=function(t,e){var n=this;if(t)for(var i=t.length;i--;)n.element.compare(e,t[i])&&t.splice(i,1)},e}($f),Yf=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getInitialValue=function(){return this.element.fragment?this.element.fragment.toString():""},n.getValue=function(){return this.element.node.innerHTML},n.render=function(){t.prototype.render.call(this);var e=this.element;e.on("change",Ur),e.on("blur",Ur),this.ractive.lazy||(e.on("input",Ur),this.node.attachEvent&&e.on("keyup",Ur))},n.setFromNode=function(t){this.model.set(t.innerHTML)},n.unrender=function(){var t=this.element;t.off("blur",Ur),t.off("change",Ur),t.off("input",Ur),t.off("keyup",Ur)},e}($f),Jf=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getInitialValue=function(){return""},n.getValue=function(){return this.node.value},n.render=function(){t.prototype.render.call(this);var e=this.ractive.lazy,n=!1,i=this.element;"lazy"in this.element&&(e=this.element.lazy),r(e)&&(n=+e,e=!1),this.handler=n?Gr(n):Ur;var s=this.node;i.on("change",Ur),"file"!==s.type&&(e||(i.on("input",this.handler),s.attachEvent&&i.on("keyup",this.handler)),i.on("blur",Xr))},n.unrender=function(){var t=this.element;this.rendered=!1,t.off("change",Ur),t.off("input",this.handler),t.off("keyup",this.handler),t.off("blur",Xr)},e}($f),td=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getInitialValue=function(){},n.getValue=function(){return this.node.files},n.render=function(){this.element.lazy=!1,t.prototype.render.call(this)},n.setFromNode=function(t){this.model.set(t.files)},e}(Jf),ed=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getInitialValue=function(){return this.element.options.filter(function(t){return t.getAttribute("selected")}).map(function(t){return t.getAttribute("value")})},n.getValue=function(){for(var t=this.element.node.options,e=t.length,n=[],i=0;i<e;i+=1){var r=t[i];if(r.selected){var s=r._ractive?r._ractive.value:r.value;n.push(s)}}return n},n.handleChange=function(){var e=this.attribute,n=e.getValue(),i=this.getValue();return void 0!==n&&A(i,n)||t.prototype.handleChange.call(this),this},n.render=function(){t.prototype.render.call(this),this.element.on("change",Ur),void 0===this.model.get()&&this.handleChange()},n.setFromNode=function(t){for(var e=Qr(t),n=e.length,i=new Array(n);n--;){var r=e[n];i[n]=r._ractive?r._ractive.value:r.value}this.model.set(i)},n.unrender=function(){this.element.off("change",Ur)},e}($f),nd=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getInitialValue=function(){},n.getValue=function(){var t=parseFloat(this.node.value);return isNaN(t)?void 0:t},n.setFromNode=function(t){var e=parseFloat(t.value);isNaN(e)||this.model.set(e)},e}(Jf),id={},rd=function(t){function e(e){t.call(this,e,"checked"),this.siblings=Yr(this.ractive._guid+this.element.getAttribute("name")),this.siblings.push(this)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.getValue=function(){return this.node.checked},n.handleChange=function(){pc.start(),this.siblings.forEach(function(t){t.model.set(t.getValue())}),pc.end()},n.render=function(){t.prototype.render.call(this),this.element.on("change",Ur),this.node.attachEvent&&this.element.on("click",Ur)},n.setFromNode=function(t){this.model.set(t.checked)},n.unbind=function(){O(this.siblings,this)},n.unrender=function(){this.element.off("change",Ur),this.element.off("click",Ur)},e}($f),sd=function(t){function e(e){var n=this;t.call(this,e,"name"),this.group=Wr("radioname",this.model,Jr),this.group.add(this),e.checked&&(this.group.value=this.getValue()),this.attribute.interpolator.pathChanged=function(){return n.updateName()}}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){this.group.bound||this.group.bind()},n.getInitialValue=function(){if(this.element.getAttribute("checked"))return this.element.getAttribute("value")},n.getValue=function(){return this.element.getAttribute("value")},n.handleChange=function(){this.node.checked&&(this.group.value=this.getValue(),t.prototype.handleChange.call(this)),this.updateName()},n.lastVal=function(t,e){if(this.group)return t?void(this.group.lastValue=e):this.group.lastValue},n.rebind=function(e,n){t.prototype.rebind.call(this,e,n),this.updateName()},n.rebound=function(e){t.prototype.rebound.call(this,e),this.updateName()},n.render=function(){t.prototype.render.call(this);var e=this.node;this.updateName(),e.checked=this.element.compare(this.model.get(),this.element.getAttribute("value")),this.element.on("change",Ur),e.attachEvent&&this.element.on("click",Ur)},n.setFromNode=function(t){t.checked&&this.group.model.set(this.element.getAttribute("value"))},n.unbind=function(){this.group.remove(this)},n.unrender=function(){var t=this.element;t.off("change",Ur),t.off("click",Ur)},n.updateName=function(){this.node&&(this.node.name="{{"+this.model.getKeypath()+"}}")},e}($f),od=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.forceUpdate=function(){var t=this,e=this.getValue();void 0!==e&&(this.attribute.locked=!0,pc.scheduleTask(function(){return t.attribute.locked=!1}),this.model.set(e))},n.getInitialValue=function(){if(void 0===this.element.getAttribute("value")){var t=this.element.options,e=t.length;if(e){for(var n,i,r=e;r--;){var s=t[r];if(s.getAttribute("selected")){s.getAttribute("disabled")||(n=s.getAttribute("value")),i=!0;break}}if(!i)for(;++r<e;)if(!t[r].getAttribute("disabled")){n=t[r].getAttribute("value");break}return void 0!==n&&(this.element.attributeByName.value.value=n),n}}},n.getValue=function(){var t,e=this.node.options,n=e.length;for(t=0;t<n;t+=1){var i=e[t];if(e[t].selected&&!e[t].disabled)return i._ractive?i._ractive.value:i.value}},n.render=function(){t.prototype.render.call(this),this.element.on("change",Ur)},n.setFromNode=function(t){var e=Qr(t)[0];this.model.set(e._ractive?e._ractive.value:e.value)},n.unrender=function(){this.element.off("change",Ur)},e}($f),ad=/;\s*$/,ud=function(t){function e(e){var n=this;if(t.call(this,e),this.name=e.template.e.toLowerCase(),this.parent=Vn(this.up,!1),this.parent&&"option"===this.parent.name)throw new Error("An <option> element cannot contain other elements (encountered <"+this.name+">)");this.decorators=[],this.attributeByName={};for(var i,r,s,o,a,u,c,h,f=this.template.m,d=f&&f.length||0,p=0;p<d;p++)if(c=f[p],c.g)(n.statics||(n.statics={}))[c.n]=l(c.f)?c.f:c.n;else switch(c.t){case Ha:case Cu:case Eu:case ku:case _u:s=Ws({owner:n,up:n.up,template:c}),r=c.n,i=i||(i=n.attributes=[]),"value"===r?o=s:"name"===r?u=s:"class"===r?a=s:i.push(s);break;case Su:n.delegate=!1;break;default:(h||(h=[])).push(c)}o&&i.push(o),u&&i.push(u),a&&i.unshift(a),h&&((i||(this.attributes=[])).push(new Sf({owner:this,up:this.up,template:h})),h=[]),e.template.f&&!e.deferContent&&(this.fragment=new Tp({template:e.template.f,owner:this,cssIds:null})),this.binding=null}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){var t=this.attributes;if(t){t.binding=!0;for(var e=t.length,n=0;n<e;n++)t[n].bind();t.binding=!1}this.fragment&&this.fragment.bind(),this.binding?this.binding.bind():this.recreateTwowayBinding()},n.createTwowayBinding=function(){if("twoway"in this?this.twoway:this.ractive.twoway){var t=es(this);if(t){var e=new t(this);if(e&&e.model)return e}}},n.destroyed=function(){this.attributes&&this.attributes.forEach(W),this.fragment&&this.fragment.destroyed()},n.detach=function(){return this.rendered||this.destroyed(),Jn(this.node)},n.find=function(t,e){return this.node&&ih(this.node,t)?this.node:this.fragment?this.fragment.find(t,e):void 0},n.findAll=function(t,e){var n=e.result;ih(this.node,t)&&n.push(this.node),this.fragment&&this.fragment.findAll(t,e)},n.findNextNode=function(){return null},n.firstNode=function(){return this.node},n.getAttribute=function(t){if(this.statics&&t in this.statics)return this.statics[t];var e=this.attributeByName[t];return e?e.getValue():void 0},n.getContext=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return this.fragment?(n=this.fragment).getContext.apply(n,t):(this.ctx||(this.ctx=new Jc(this.up,this)),t.unshift(Mo(this.ctx)),Do.apply(null,t));var n},n.off=function(t,e,n){void 0===n&&(n=!1);var i=this.up.delegate,r=this.listeners&&this.listeners[t];if(r)if(O(r,e),i){var s=(i.listeners||(i.listeners=[]))&&(i.listeners[t]||(i.listeners[t]=[]));s.refs&&!--s.refs&&i.off(t,ss,!0)}else if(this.rendered){var o=this.node,a=o.addEventListener,u=o.removeEventListener;r.length?r.length&&!r.refs&&n&&(u.call(o,t,as,!0),a.call(o,t,as,!1)):u.call(o,t,as,n)}},n.on=function(t,e,n){void 0===n&&(n=!1);var i=this.up.delegate,r=(this.listeners||(this.listeners={}))[t]||(this.listeners[t]=[]);if(i){var s=(i.listeners||(i.listeners=[]))&&i.listeners[t]||(i.listeners[t]=[]);s.refs?s.refs++:(s.refs=0,i.on(t,ss,!0),s.refs++)}else if(this.rendered){var o=this.node,a=o.addEventListener,u=o.removeEventListener;r.length?r.length&&!r.refs&&n&&(u.call(o,t,as,!1),a.call(o,t,as,!0)):a.call(o,t,as,n)}S(this.listeners[t],e)},n.recreateTwowayBinding=function(){this.binding&&(this.binding.unbind(),this.binding.unrender()),(this.binding=this.createTwowayBinding())&&(this.binding.bind(),this.rendered&&this.binding.render())},n.rebound=function(e){t.prototype.rebound.call(this,e),this.attributes&&this.attributes.forEach(function(t){return t.rebound(e)}),this.binding&&this.binding.rebound(e)},n.render=function(t,e){var n=this;this.namespace=rs(this);var i,r=!1;if(e)for(var s;s=e.shift();){if(s.nodeName.toUpperCase()===n.template.e.toUpperCase()&&s.namespaceURI===n.namespace){n.node=i=s,r=!0;break}Jn(s)}if(!r&&this.node&&(i=this.node,t.appendChild(i),r=!0),!i){var o=this.template.e;i=nh(this.namespace===fh?o.toLowerCase():o,this.namespace,this.getAttribute("is")),this.node=i}Ro(i,"_ractive",{value:{proxy:this},configurable:!0}),this.statics&&Io(this.statics).forEach(function(t){i.setAttribute(t,n.statics[t])}),r&&this.foundNode&&this.foundNode(i);var a=this.intro;if(a&&a.shouldFire("intro")&&(a.isIntro=!0,a.isOutro=!1,pc.registerTransition(a)),this.fragment){var u=r?D(i.childNodes):void 0;this.fragment.render(i,u),u&&u.forEach(Jn)}if(r){this.binding&&this.binding.wasUndefined&&this.binding.setFromNode(i);for(var l=i.attributes.length;l--;){var c=i.attributes[l].name;c in n.attributeByName||n.statics&&c in n.statics||i.removeAttribute(c)}}if(this.up.cssIds&&i.setAttribute("data-ractive-css",this.up.cssIds.map(function(t){return"{"+t+"}"}).join(" ")),this.attributes)for(var h=this.attributes.length,f=0;f<h;f++)n.attributes[f].render();if(this.binding&&this.binding.render(),!this.up.delegate&&this.listeners){var d=this.listeners;for(var p in d)d[p]&&d[p].length&&n.node.addEventListener(p,as,!!d[p].refs)}r||t.appendChild(i),this.rendered=!0},n.toString=function(){var t=this,e=this.template.e,n=this.attributes&&this.attributes.map(is).join("")||"";this.statics&&Io(this.statics).forEach(function(e){return"class"!==e&&"style"!==e&&(n=" "+e+'="'+t.statics[e]+'"'+n)}),"option"===this.name&&this.isSelected()&&(n+=" selected"),"input"===this.name&&ns(this)&&(n+=" checked");var i=this.statics?this.statics.style:void 0,r=this.statics?this.statics.class:void 0;this.attributes&&this.attributes.forEach(function(t){"class"===t.name?r=(r||"")+(r?" ":"")+ei(t.getString()):"style"===t.name?(i=(i||"")+(i?" ":"")+ei(t.getString()))&&!ad.test(i)&&(i+=";"):t.style?i=(i||"")+(i?" ":"")+t.style+": "+ei(t.getString())+";":t.inlineClass&&t.getValue()&&(r=(r||"")+(r?" ":"")+t.inlineClass)}),void 0!==i&&(n=" style"+(i?'="'+i+'"':"")+n),void 0!==r&&(n=" class"+(r?'="'+r+'"':"")+n),this.up.cssIds&&(n+=' data-ractive-css="'+this.up.cssIds.map(function(t){return"{"+t+"}"}).join(" ")+'"');var s="<"+e+n+">";return Du[this.name.toLowerCase()]?s:("textarea"===this.name&&void 0!==this.getAttribute("value")?s+=vt(this.getAttribute("value")):void 0!==this.getAttribute("contenteditable")&&(s+=this.getAttribute("value")||""),this.fragment&&(s+=this.fragment.toString(!/^(?:script|style)$/i.test(this.template.e))),s+="</"+e+">")},n.unbind=function(t){var e=this.attributes;if(e){e.unbinding=!0;for(var n=e.length,i=0;i<n;i++)e[i].unbind(t);e.unbinding=!1}this.binding&&this.binding.unbind(t),this.fragment&&this.fragment.unbind(t)},n.unrender=function(t){if(this.rendered){this.rendered=!1;var e=this.intro;e&&e.complete&&e.complete(),"option"===this.name?this.detach():t&&pc.detachWhenReady(this);var n=this.outro;n&&n.shouldFire("outro")&&(n.isIntro=!1,n.isOutro=!0,pc.registerTransition(n)),this.fragment&&this.fragment.unrender(),this.binding&&this.binding.unrender()}},n.update=function(){if(this.dirty){this.dirty=!1;var t=this.attributes;if(t)for(var e=t.length,n=0;n<e;n++)t[n].update();this.fragment&&this.fragment.update()}},e}(lf),ld=null!==ta?ta.UIEvent:null,cd=function(t){function e(e){t.call(this,e),this.formBindings=[]}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.render=function(e,n){t.prototype.render.call(this,e,n),this.on("reset",us)},n.unrender=function(e){this.off("reset",us),t.prototype.unrender.call(this,e)},e}(ud),hd=function(t,e){-1!==t.indexOf("*")&&d('Only component proxy-events may contain "*" wildcards, <'+e.name+" on-"+t+'="..."/> is not valid'),this.name=t,this.owner=e,this.handler=null},fd=hd.prototype;fd.bind=function(){},fd.render=function(t){var e=this,n=this.name,i=function(){var i=e.owner.node;e.owner.on(n,e.handler=function(e){return t.fire({node:i,original:e,event:e,name:n})})};"load"!==n?pc.scheduleTask(i,!0):i()},fd.unbind=function(){},fd.unrender=function(){this.handler&&this.owner.off(this.name,this.handler)};var dd=function(t,e,n,i){this.eventPlugin=t,this.owner=e,this.name=n,this.handler=null,this.args=i},pd=dd.prototype;pd.bind=function(){},pd.render=function(t){var e=this;pc.scheduleTask(function(){var n=e.owner.node;e.handler=e.eventPlugin.apply(e.owner.ractive,[n,function(i){return void 0===i&&(i={}),i.original?i.event=i.original:i.original=i.event,i.name=e.name,i.node=i.node||n,t.fire(i)}].concat(e.args||[]))})},pd.unbind=function(){},pd.unrender=function(){this.handler.teardown()};var gd=function(t,e){this.component=t,this.name=e,this.handler=null},md=gd.prototype;md.bind=function(t){var e=this.component.instance;this.handler=e.on(this.name,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n[0]instanceof Jc){var r=n.shift();r.component=e,t.fire(r,n)}else t.fire({},n);return!1})},md.render=function(){},md.unbind=function(){this.handler.cancel()},md.unrender=function(){};var vd=/^(event|arguments|@node|@event|@context)(\..+)?$/,yd=/^\$(\d+)(\..+)?$/,bd=function(t){this.owner=t.owner||t.up.owner||Vn(t.up),this.element=this.owner.attributeByName?this.owner:Vn(t.up,!0),this.template=t.template,this.up=t.up,this.ractive=t.up.ractive,this.events=[]},wd=bd.prototype;wd.bind=function(){var t=this;if(this.events.length&&(this.events.forEach(function(t){return t.unrender()}),this.events=[]),this.element.type===$a||this.element.type===za)this.template.n.forEach(function(e){t.events.push(new gd(t.element,e))});else{var e;if(e=this.template.a){var n=e.r.map(function(e){var n=Ze(t.up,e);return n?n.get():void 0});try{e=ct(e.s,n.length).apply(null,n)}catch(t){e=null,v("Failed to compute args for event on-"+this.template.n.join("- ")+": "+(t.message||t))}}this.template.n.forEach(function(n){var i=b("events",t.ractive,n);i?t.events.push(new dd(i,t.element,n,e)):t.events.push(new hd(n,t.element))})}this.models=null,S(this.element.events||(this.element.events=[]),this),Hr(this,this.template),this.fn||(this.action=this.template.f),this.events.forEach(function(e){return e.bind(t)})},wd.destroyed=function(){this.events.forEach(function(t){return t.unrender()})},wd.fire=function(t,e){var n=this;void 0===e&&(e=[]);var i=t instanceof Jc&&t.refire?t:this.element.getContext(t);if(this.fn){var r=[],s=Kr(this,this.template,this.up,{specialRef:function(t){var e=vd.exec(t);if(e)return{special:e[1],keys:e[2]?_(e[2].substr(1)):[]};var n=yd.exec(t);return n?{special:"arguments",keys:[n[1]-1].concat(n[2]?_(n[2].substr(1)):[])}:void 0}});s&&s.forEach(function(s){if(!s)return r.push(void 0);if(s.special){var o,a=s.special;"@node"===a?o=n.element.node:"@event"===a?o=t&&t.event:"event"===a?(y("The event reference available to event directives is deprecated and should be replaced with @context and @event"),o=i):o="@context"===a?i:e;for(var u=s.keys.slice();o&&u.length;)o=o[u.shift()];return r.push(o)}if(s.wrapper)return r.push(s.wrapperValue);r.push(s.get())});var o=this.ractive,a=o.event;o.event=i;var u=this.fn.apply(o,r),c=u.pop();if(!1===c){var h=t?t.original:void 0;h?(h.preventDefault&&h.preventDefault(),h.stopPropagation&&h.stopPropagation()):y("handler '"+this.template.n.join(" ")+"' returned false, but there is no event available to cancel")}else!u.length&&Bo(c)&&l(c[0])&&(c=mn(this.ractive,c.shift(),i,c));return o.event=a,c}return mn(this.ractive,this.action,i,e)},wd.handleChange=function(){},wd.render=function(){var t=this;this.events.forEach(function(e){return e.render(t)})},wd.toString=function(){return""},wd.unbind=function(t){O(this.element.events,this),this.events.forEach(function(e){return e.unbind(t)})},wd.unrender=function(){this.events.forEach(function(t){return t.unrender()})};var xd=bd.prototype;xd.firstNode=xd.rebound=xd.update=h;var kd=function(t){function e(e){t.call(this,e),e.owner&&(this.parent=e.owner),this.isStatic=!!e.template.s,this.model=null,this.dirty=!1}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(t){var e=this.template.y?this.template.y.containerFragment:this.containerFragment||this.up,n=t||er(e,this.template);if(n){var i=n.get();if(this.isStatic)return this.model={get:function(){return i}},void n.unreference();n.register(this),this.model=n}},n.handleChange=function(){this.bubble()},n.rebind=function(t,e,n){if(!this.isStatic)return(t=at(this.template,t,e,this.up))!==this.model&&(this.model&&this.model.unregister(this),t&&t.addShuffleRegister(this,"mark"),this.model=t,n||this.handleChange(),!0)},n.rebound=function(t){if(this.model){if(this.model.rebound)this.model.rebound(t);else{var e=this.template.y?this.template.y.containerFragment:this.containerFragment||this.up,n=er(e,this.template);n!==this.model&&(this.model.unregister(this),this.bind(n))}t&&this.bubble()}this.fragment&&this.fragment.rebound(t)},n.unbind=function(){this.isStatic||(this.model&&this.model.unregister(this),this.model=void 0)},e}(af),Ed=hs.prototype=Object.create(lf.prototype);Do(Ed,kd.prototype,{constructor:hs});var _d=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bubble=function(){this.owner&&this.owner.bubble(),t.prototype.bubble.call(this)},n.detach=function(){return Jn(this.node)},n.firstNode=function(){return this.node},n.getString=function(){return this.model?ti(this.model.get()):""},n.render=function(t,e){if(!xr()){var n=this.value=this.getString();this.rendered=!0,cs(this,t,e,n)}},n.toString=function(t){var e=this.getString();return t?vt(e):e},n.unrender=function(t){t&&this.detach(),this.rendered=!1},n.update=function(){if(this.dirty&&(this.dirty=!1,this.rendered)){var t=this.getString();t!==this.value&&(this.node.data=this.value=t)}},n.valueOf=function(){return this.model?this.model.get():void 0},e}(kd),Cd=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.render=function(e,n){t.prototype.render.call(this,e,n),this.node.defaultValue=this.node.value},n.compare=function(t,e){var n=this.getAttribute("value-comparator");if(n){if(u(n))return n(t,e);if(t&&e)return t[n]==e[n]}return t==e},e}(ud),Sd={true:!0,false:!1,null:null,undefined:void 0},Td=new RegExp("^(?:"+Io(Sd).join("|")+")"),Ad=/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/,jd=/\$\{([^\}]+)\}/g,Nd=/^\$\{([^\}]+)\}/,Od=/^\s*$/,Pd=Na.extend({init:function(t,e){this.values=e.values,this.sp()},postProcess:function(t){return 1===t.length&&Od.test(this.leftover)?{value:t[0].v}:null},converters:[function(e){if(!e.values)return null;var n=e.matchPattern(Nd);return n&&t(e.values,n)?{v:e.values[n]}:void 0},function(t){var e=t.matchPattern(Td);if(e)return{v:Sd[e]}},function(t){var e=t.matchPattern(Ad);if(e)return{v:+e}},function(t){var e=kt(t),n=t.values;return e&&n?{v:e.v.replace(jd,function(t,e){return e in n?n[e]:e})}:e},function(t){if(!t.matchString("{"))return null;var e={};if(t.sp(),t.matchString("}"))return{v:e};for(var n;n=fs(t);){if(e[n.key]=n.value,t.sp(),t.matchString("}"))return{v:e};if(!t.matchString(","))return null}return null},function(t){if(!t.matchString("["))return null;var e=[];if(t.sp(),t.matchString("]"))return{v:e};for(var n;n=t.read();){if(e.push(n.v),t.sp(),t.matchString("]"))return{v:e};if(!t.matchString(","))return null;t.sp()}return null}]}),Dd=function(t){function e(e){t.call(this,e),this.name=e.template.n,this.owner=e.owner||e.up.owner||e.element||Vn(e.up),this.element=e.element||(this.owner.attributeByName?this.owner:Vn(e.up)),this.up=this.element.up,this.ractive=this.up.ractive,this.element.attributeByName[this.name]=this,this.value=e.template.f}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){var t=this.template.f,e=this.element.instance.viewmodel;if(0===t)e.joinKey(this.name).set(!0);else if(l(t)){var n=ds(t);e.joinKey(this.name).set(n?n.value:t)}else Bo(t)&&ps(this)},n.rebound=function(t){if(this.boundFragment&&this.boundFragment.rebound(t),this.link){this.model=er(this.up,this.template.f[0]);this.element.instance.viewmodel.joinAll(_(this.name)).link(this.model,this.name,{mapping:!0})}},n.render=function(){},n.unbind=function(t){this.model&&this.model.unregister(this),this.boundFragment&&this.boundFragment.unbind(t),this.element.bound&&this.link.target===this.model&&this.link.owner.unlink()},n.unrender=function(){},n.update=function(){this.dirty&&(this.dirty=!1,this.boundFragment&&this.boundFragment.update())},e}(af),Md=function(t){function e(e){var n=e.template;n.a||(n.a={}),void 0!==n.a.value||"disabled"in n.a||(n.a.value=n.f||""),t.call(this,e),this.select=Vn(this.parent||this.up,!1,"select")}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){if(!this.select)return void t.prototype.bind.call(this);var e=this.attributeByName.selected;if(e&&void 0!==this.select.getAttribute("value")){var n=this.attributes.indexOf(e);this.attributes.splice(n,1),delete this.attributeByName.selected}t.prototype.bind.call(this),this.select.options.push(this)},n.bubble=function(){var e=this.getAttribute("value");this.node&&this.node.value!==e&&(this.node._ractive.value=e),t.prototype.bubble.call(this)},n.getAttribute=function(t){var e=this.attributeByName[t];return e?e.getValue():"value"===t&&this.fragment?this.fragment.valueOf():void 0},n.isSelected=function(){var t=this,e=this.getAttribute("value");if(void 0===e||!this.select)return!1;var n=this.select.getAttribute("value");if(this.select.compare(n,e))return!0;if(this.select.getAttribute("multiple")&&Bo(n))for(var i=n.length;i--;)if(t.select.compare(n[i],e))return!0},n.render=function(e,n){t.prototype.render.call(this,e,n),this.attributeByName.value||(this.node._ractive.value=this.getAttribute("value"))},n.unbind=function(e){t.prototype.unbind.call(this,e),this.select&&O(this.select.options,this)},e}(ud),Rd=ws.prototype=Mo(hs.prototype);Do(Rd,{constructor:ws,bind:function(){var t=this.template;if(this.yielder){if(this.container=this.up.ractive,this.component=this.container.component,this.containerFragment=this.up,!this.component)return this.fragment=new Tp({owner:this,template:[]}),void this.fragment.bind();this.up=this.component.up,t.r||t.x||t.tx||(this.refName="content")}this.macro?this.fn=this.macro:(this.refName||(this.refName=t.r),this.refName&&Es(this,this.refName),this.partial||this.fn||(hs.prototype.bind.call(this),this.model&&Es(this,this.model.get()))),this.partial||this.fn||y("Could not find template for partial '"+this.name+"'"),xs(this,this.partial||[]),this.fn&&Ss(this),this.fragment.bind()},bubble:function(){this.dirty||(this.dirty=!0,this.yielder?this.containerFragment.bubble():this.up.bubble())},findNextNode:function(){return(this.containerFragment||this.up).findNextNode(this)},handleChange:function(){this.dirtyTemplate=!0,this.externalChange=!0,this.bubble()},rebound:function(t){var e=this,n=this.fragment&&this.fragment.aliases;if(n){for(var i in n)n[i].rebound?n[i].rebound(t):(n[i].unreference(),n[i]=0);this.template.z&&nr(this.template.z,this.containerFragment||this.up,n)}this._attrs&&Io(this._attrs).forEach(function(n){return e._attrs[n].rebound(t)}),hs.prototype.rebound.call(this,t)},refreshAttrs:function(){var t=this;Io(this._attrs).forEach(function(e){t.handle.attributes[e]=!t._attrs[e].items.length||t._attrs[e].valueOf()})},resetTemplate:function(){var t=this;if(this.fn&&this.proxy){if(!this.externalChange)return this.partial=this.fnTemplate,!0;u(this.proxy.teardown)&&this.proxy.teardown(),this.fn=this.proxy=null}var e=this.partial;return this.partial=null,this.refName&&(this.partial=gs(this.ractive,this.refName,this.up)),!this.partial&&this.model&&Es(this,this.model.get()),!(!this.fn&&e===this.partial)&&(this.unbindAttrs(),this.fn?(Ss(this),u(this.proxy.render)&&pc.scheduleTask(function(){return t.proxy.render()})):this.partial||y("Could not find template for partial '"+this.name+"'"),!0)},render:function(t,e){this.fn&&this.fn._cssDef&&!this.fn._cssDef.applied&&vi(),this.fragment.render(t,e),this.proxy&&u(this.proxy.render)&&this.proxy.render()},unbind:function(t){this.fragment.unbind(t),this.fragment.aliases=null,this.unbindAttrs(t),hs.prototype.unbind.call(this,t)},unbindAttrs:function(t){var e=this;this._attrs&&Io(this._attrs).forEach(function(n){e._attrs[n].unbind(t)})},unrender:function(t){this.proxy&&u(this.proxy.teardown)&&this.proxy.teardown(),this.fragment.unrender(t)},update:function(){var t=this,e=this.proxy;this.updating=1,this.dirtyAttrs&&(this.dirtyAttrs=!1,Io(this._attrs).forEach(function(e){return t._attrs[e].update()}),this.refreshAttrs(),u(e.update)&&e.update(this.handle.attributes)),this.dirtyTemplate&&(this.dirtyTemplate=!1,this.resetTemplate()&&this.fragment.resetTemplate(this.partial||[])),this.dirty&&(this.dirty=!1,e&&u(e.invalidate)&&e.invalidate(),this.fragment.update()),this.externalChange=!1,this.updating=0}});var Ld="extra-attributes",Id=function(t,e,n){this.value=this.key=t,this.context=e,this.isReadonly=this.isKey=!0,this.deps=[],this.links=[],this.children=[],this.instance=n},Vd=Id.prototype;Vd.applyValue=function(t){t!==this.value&&(this.value=this.key=t,this.deps.forEach(Z),this.links.forEach(Z),this.children.forEach(function(t){t.applyValue(t.context.getKeypath(t.instance))}))},Vd.destroyed=function(){this.upstream&&this.upstream.unregisterChild(this)},Vd.get=function(t){return t&&K(this),C(this.value)},Vd.getKeypath=function(){return C(this.value)},Vd.has=function(){return!1},Vd.rebind=function(t,e){for(var n=this,i=this.deps.length;i--;)n.deps[i].rebind(t,e,!1);for(i=this.links.length;i--;)n.links[i].relinking(t,!1)},Vd.register=function(t){this.deps.push(t)},Vd.registerChild=function(t){S(this.children,t),t.upstream=this},Vd.registerLink=function(t){S(this.links,t)},Vd.unregister=function(t){O(this.deps,t)},Vd.unregisterChild=function(t){O(this.children,t)},Vd.unregisterLink=function(t){O(this.links,t)},Id.prototype.reference=h,Id.prototype.unreference=h;var Bd=/^"(\\"|[^"])+"$/,qd=function(t){this.parent=t.owner.up,this.up=this,this.owner=t.owner,this.ractive=this.parent.ractive,this.delegate=!1!==this.ractive.delegate&&(this.parent.delegate||As(this.parent)),this.delegate&&!1===this.delegate.delegate&&(this.delegate=!1),this.delegate&&(this.delegate.delegate=this.delegate),this.cssIds="cssIds"in t?t.cssIds:this.parent?this.parent.cssIds:null,this.context=null,this.rendered=!1,this.iterations=[],this.template=t.template,this.indexRef=t.indexRef,this.keyRef=t.keyRef,this.pendingNewIndices=null,this.previousIterations=null,this.isArray=!1},Fd=qd.prototype;Fd.bind=function(t){var e=this;this.context=t,this.bound=!0;var n=t.get(),i=this.aliases=this.owner.template.z&&this.owner.template.z.slice(),r=i&&i.find(function(t){return"shuffle"===t.n});r&&r.x&&r.x.x&&("true"===r.x.x.s?this.shuffler=!0:Bd.test(r.x.x.s)&&(this.shuffler=_(r.x.x.s.slice(1,-1)))),this.shuffler&&(this.values=Os(this,this.shuffler)),this.source&&this.source.model.unbind(this.source);var o=t.isComputed&&i&&i.find(function(t){return"source"===t.n});if(o&&o.x&&o.x.r){var a=er(this,o.x);this.source={handleChange:function(){},rebind:function(t){this.model.unregister(this),this.model=t,t.register(this)}},this.source.model=a,a.register(this.source)}if(this.isArray=Bo(n)){this.iterations=[];for(var u=this.length=n.length,l=0;l<u;l+=1)e.iterations[l]=e.createIteration(l,l)}else if(s(n)){if(this.isArray=!1,this.indexRef){var c=this.indexRef.split(",");this.keyRef=c[0],this.indexRef=c[1]}var h=Io(n);this.length=h.length,this.iterations=h.map(function(t,n){return e.createIteration(t,n)})}return this},Fd.bubble=function(t){this.bubbled||(this.bubbled=[]),this.bubbled.push(t),this.rebounding||this.owner.bubble()},Fd.createIteration=function(t,e){var n=new Tp({owner:this,template:this.template});return n.isIteration=!0,n.delegate=this.delegate,this.aliases&&(n.aliases={}),Ns(this,n,t,e),n.bind(n.context)},Fd.destroyed=function(){for(var t=this,e=this.iterations.length,n=0;n<e;n++)t.iterations[n].destroyed();this.pathModel&&this.pathModel.destroyed(),this.rootModel&&this.rootModel.destroyed()},Fd.detach=function(){var t=Qn();return this.iterations.forEach(function(e){return t.appendChild(e.detach())}),t},Fd.find=function(t,e){return M(this.iterations,function(n){return n.find(t,e)})},Fd.findAll=function(t,e){
return this.iterations.forEach(function(n){return n.findAll(t,e)})},Fd.findAllComponents=function(t,e){return this.iterations.forEach(function(n){return n.findAllComponents(t,e)})},Fd.findComponent=function(t,e){return M(this.iterations,function(n){return n.findComponent(t,e)})},Fd.findContext=function(){return this.context},Fd.findNextNode=function(t){var e=this;if(t.index<this.iterations.length-1)for(var n=t.index+1;n<this.iterations.length;n++){var i=e.iterations[n].firstNode(!0);if(i)return i}return this.owner.findNextNode()},Fd.firstNode=function(t){return this.iterations[0]?this.iterations[0].firstNode(t):null},Fd.getLast=function(){return this.lastModel||(this.lastModel=new Id(this.length-1))},Fd.rebind=function(t){var e=this;this.context=t,this.source||this.iterations.forEach(function(t){Ns(e,t,t.key,t.index)})},Fd.rebound=function(t){var e=this;this.context=this.owner.model,this.iterations.forEach(function(n,i){n.context=Ps(e,n,i),n.rebound(t)})},Fd.render=function(t,e){var n=this.iterations;if(n)for(var i=n.length,r=0;r<i;r++)n[r].render(t,e);this.rendered=!0},Fd.shuffle=function(t,e){var n=this;this.pendingNewIndices||(this.previousIterations=this.iterations.slice()),this.pendingNewIndices||(this.pendingNewIndices=[]),this.pendingNewIndices.push(t);var i=[];t.forEach(function(t,r){if(-1!==t){var s=n.iterations[r];i[t]=s,t!==r&&s&&(s.dirty=!0,e&&(s.shouldRebind=1))}}),this.iterations=i,e||this.bubble()},Fd.shuffled=function(){this.iterations.forEach(tt)},Fd.toString=function(t){return this.iterations?this.iterations.map(t?ot:st).join(""):""},Fd.unbind=function(t){this.bound=!1,this.source&&this.source.model.unregister(this.source);for(var e=this.pendingNewIndices?this.previousIterations:this.iterations,n=e.length,i=0;i<n;i++)e[i].unbind(t);return this},Fd.unrender=function(t){for(var e=this,n=this.iterations.length,i=0;i<n;i++)e.iterations[i].unrender(t);if(this.pendingNewIndices&&this.previousIterations){n=this.previousIterations.length;for(var r=0;r<n;r++)e.previousIterations[r].unrender(t)}this.rendered=!1},Fd.update=function(){var t=this;if(this.pendingNewIndices)return this.bubbled.length=0,void this.updatePostShuffle();if(!this.updating){if(this.updating=!0,this.shuffler){var e=Os(this,this.shuffler);this.shuffle(R(this.values,e),!0),this.updatePostShuffle()}else{for(var n=this.iterations.length,i=0;i<n;i++){var r=t.iterations[i];r&&r.idxModel&&r.idxModel.applyValue(i)}var o,a,u,l=this.context.get(),c=this.isArray,h=!0;if(this.isArray=Bo(l)){if(this.source){this.rebounding=1;var f=this.source.model.get();this.iterations.forEach(function(e,n){n<l.length&&e.lastValue!==l[n]&&~(u=f.indexOf(l[n]))&&(Ns(t,e,n,n),e.rebound(!0))}),this.rebounding=0}c&&(h=!1,this.iterations.length>l.length&&(o=this.iterations.splice(l.length)))}else if(s(l)&&!c)for(h=!1,o=[],a={},u=this.iterations.length;u--;){var d=t.iterations[u];d.key in l?a[d.key]=!0:(t.iterations.splice(u,1),o.push(d))}var p=Bo(l)?l.length:s(l)?Io(l).length:0;if(this.length=p,this.updateLast(),h&&(o=this.iterations,this.iterations=[]),o){n=o.length;for(var g=0;g<n;g++)o[g].unbind().unrender(!0)}if(!h&&this.isArray&&this.bubbled&&this.bubbled.length){var m=this.bubbled;this.bubbled=[],n=m.length;for(var v=0;v<n;v++)t.iterations[m[v]]&&t.iterations[m[v]].update()}else{n=this.iterations.length;for(var y=0;y<n;y++)t.iterations[y].update()}var b,w;if(p>this.iterations.length){if(b=this.rendered?Qn():null,u=this.iterations.length,Bo(l))for(;u<l.length;)w=t.createIteration(u,u),t.iterations.push(w),t.rendered&&w.render(b),u+=1;else if(s(l)){if(this.indexRef&&!this.keyRef){var x=this.indexRef.split(",");this.keyRef=x[0],this.indexRef=x[1]}Io(l).forEach(function(e){a&&e in a||(w=t.createIteration(e,u),t.iterations.push(w),t.rendered&&w.render(b),u+=1)})}if(this.rendered){var k=this.parent.findParentNode(),E=this.parent.findNextNode(this.owner);k.insertBefore(b,E)}}}this.updating=!1}},Fd.updateLast=function(){this.lastModel&&this.lastModel.applyValue(this.length-1)},Fd.updatePostShuffle=function(){var t=this,e=this.pendingNewIndices[0],n=this.rendered?this.parent.findParentNode():null,i=n&&this.owner.findNextNode(),r=n?Qn():null;this.pendingNewIndices.slice(1).forEach(function(t){e.forEach(function(n,i){e[i]=t[n]})});var s,o,u,l,c,h,f=this.length=this.context.get().length,d=this.previousIterations,p=this.iterations,g=this.context.get(),m={},v=new Array(e.length);for(e.forEach(function(t,e){return v[t]=e}),this.updateLast(),s=u=0;s<f;)o=e[u],l=null,h=!1,-1===o?(d[u].unbind().unrender(!0),d[u++]=0):o>s?(l=e[u+1],l<=o?(m[o]=d[u],d[u++]=null):(l=m[s]||d[v[s]],d[v[s]]=null,c=d[js(u,e,d)],c=c&&n&&c.firstNode()||i,l?(h=t.source&&l.lastValue!==g[s],Ns(t,l,s,s),n&&n.insertBefore(l.detach(),c)):(l=p[s]=t.createIteration(s,s),n&&(l.render(r),n.insertBefore(r,c))),s++)):(l=p[s],c=d[js(u,e,d)],c=c&&n&&c.firstNode()||i,l?(u!==s||m[s])&&(h=t.source&&l.lastValue!==g[s],Ns(t,l,s,s),m[s]&&n&&n.insertBefore(l.detach(),c)):(l=p[s]=t.createIteration(s,s),n&&(l.render(r),n.insertBefore(r,c))),s++,d[u++]=null),l&&a(l)&&((l.shouldRebind||h)&&(l.rebound(h),l.shouldRebind=0),l.update(),l.shuffled());for(var y=d.length,b=0;b<y;b++)d[b]&&d[b].unbind().unrender(!0);this.shuffler&&(this.values=Os(this,this.shuffler)),this.pendingNewIndices=null,this.previousIterations=null},qd.prototype.getContext=Je,qd.prototype.getKeypath=Xs;var zd=function(t){function e(e){t.call(this,e),this.sectionType=e.template.n||null,this.templateSectionType=this.sectionType,this.subordinate=1===e.template.l,this.fragment=null}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bind=function(){t.prototype.bind.call(this),this.subordinate&&(this.sibling=this.up.items[this.up.items.indexOf(this)-1],this.sibling.nextSibling=this),this.model?(this.dirty=!0,this.update()):!this.sectionType||this.sectionType!==pu||this.sibling&&this.sibling.isTruthy()||(this.fragment=new Tp({owner:this,template:this.template.f}).bind())},n.detach=function(){var e=this.fragment||this.detached;return e?e.detach():t.prototype.detach.call(this)},n.isTruthy=function(){if(this.subordinate&&this.sibling.isTruthy())return!0;var t=this.model?this.model.isRoot?this.model.value:this.model.get():void 0;return!(!t||this.templateSectionType!==vu&&Ds(t))},n.rebind=function(e,n,i){t.prototype.rebind.call(this,e,n,i)&&this.fragment&&this.sectionType!==du&&this.sectionType!==pu&&this.fragment.rebind(e)},n.rebound=function(e){this.model&&(this.model.rebound?this.model.rebound(e):(t.prototype.unbind.call(this),t.prototype.bind.call(this),this.sectionType!==mu&&this.sectionType!==vu&&this.sectionType!==gu||this.fragment&&this.fragment.rebind(this.model),e&&this.bubble())),this.fragment&&this.fragment.rebound(e)},n.render=function(t,e){this.rendered=!0,this.fragment&&this.fragment.render(t,e)},n.shuffle=function(t){this.fragment&&this.sectionType===gu&&this.fragment.shuffle(t)},n.unbind=function(e){t.prototype.unbind.call(this,e),this.fragment&&this.fragment.unbind(e)},n.unrender=function(t){this.rendered&&this.fragment&&this.fragment.unrender(t),this.rendered=!1},n.update=function(){var t=this;if(this.dirty&&(this.fragment&&this.sectionType!==du&&this.sectionType!==pu&&(this.fragment.context=this.model),this.model||this.sectionType===pu)){this.dirty=!1;var e=this.model?this.model.isRoot?this.model.value:this.model.get():void 0,n=!this.subordinate||!this.sibling.isTruthy(),i=this.sectionType;null!==this.sectionType&&null!==this.templateSectionType||(this.sectionType=Ms(e,this.template.i)),i&&i!==this.sectionType&&this.fragment&&(this.rendered&&this.fragment.unbind().unrender(!0),this.fragment=null);var r;if(this.sectionType===gu||this.sectionType===mu||n&&(this.sectionType===pu?!this.isTruthy():this.isTruthy()))if(this.fragment||(this.fragment=this.detached),this.fragment)this.detached&&(Rs(this,this.fragment),this.detached=!1,this.rendered=!0),this.fragment.bound||this.fragment.bind(this.model),this.fragment.update();else if(this.sectionType===gu)r=new qd({owner:this,template:this.template.f,indexRef:this.template.i}).bind(this.model);else{var s=this.sectionType!==du&&this.sectionType!==pu?this.model:null;r=new Tp({owner:this,template:this.template.f}).bind(s)}else this.fragment&&this.rendered?!0!==Pc?this.fragment.unbind().unrender(!0):(this.unrender(!1),this.detached=this.fragment,pc.promise().then(function(){t.detached&&t.detach()})):this.fragment&&this.fragment.unbind(),this.fragment=null;r&&(this.rendered&&Rs(this,r),this.fragment=r),this.nextSibling&&(this.nextSibling.dirty=!0,this.nextSibling.update())}},e}(hs),Hd=function(t){function e(e){t.call(this,e),this.options=[]}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.foundNode=function(t){if(this.binding){var e=Qr(t);e.length>0&&(this.selectedOptions=e)}},n.render=function(e,n){t.prototype.render.call(this,e,n),this.sync();for(var i=this.node,r=i.options.length;r--;)i.options[r].defaultSelected=i.options[r].selected;this.rendered=!0},n.sync=function(){var t=this,e=this.node;if(e){var n=D(e.options);if(this.selectedOptions)return n.forEach(function(e){t.selectedOptions.indexOf(e)>=0?e.selected=!0:e.selected=!1}),this.binding.setFromNode(e),void delete this.selectedOptions;var i=this.getAttribute("value"),r=this.getAttribute("multiple"),s=r&&Bo(i);if(void 0!==i){var o;n.forEach(function(e){var n=e._ractive?e._ractive.value:e.value,a=r?s&&t.valueContains(i,n):t.compare(i,n);a&&(o=!0),e.selected=a}),o||r||this.binding&&this.binding.forceUpdate()}else this.binding&&this.binding.forceUpdate&&this.binding.forceUpdate()}},n.valueContains=function(t,e){for(var n=this,i=t.length;i--;)if(n.compare(e,t[i]))return!0},n.compare=function(t,e){var n=this.getAttribute("value-comparator");if(n){if(u(n))return n(e,t);if(e&&t)return e[n]==t[n]}return e==t},n.update=function(){var e=this.dirty;t.prototype.update.call(this),e&&this.sync()},e}(ud),Kd=function(t){function e(e){var n=e.template;e.deferContent=!0,t.call(this,e),this.attributeByName.value||(n.f&&ts({template:n})?(this.attributes||(this.attributes=[])).push(Ws({owner:this,template:{t:Ha,f:n.f,n:"value"},up:this.up})):this.fragment=new Tp({owner:this,cssIds:null,template:n.f}))}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.bubble=function(){var t=this;this.dirty||(this.dirty=!0,this.rendered&&!this.binding&&this.fragment&&pc.scheduleTask(function(){t.dirty=!1,t.node.value=t.fragment.toString()}),this.up.bubble())},e}(Cd),$d=function(t){function e(e){t.call(this,e),this.type=Pa}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.detach=function(){return Jn(this.node)},n.firstNode=function(){return this.node},n.render=function(t,e){xr()||(this.rendered=!0,cs(this,t,e,this.template))},n.toString=function(t){return t?vt(this.template):this.template},n.unrender=function(t){this.rendered&&t&&this.detach(),this.rendered=!1},n.valueOf=function(){return this.template},e}(af),Ud=$d.prototype;Ud.bind=Ud.unbind=Ud.update=h;var Wd,Zd="hidden";if(ea){var Xd;if(Zd in ea)Xd="";else for(var Gd=sa.length;Gd--;){var Qd=sa[Gd];if((Zd=Qd+"Hidden")in ea){Xd=Qd;break}}void 0!==Xd?(ea.addEventListener(Xd+"visibilitychange",Ls),Ls()):("onfocusout"in ea?(ea.addEventListener("focusout",Is),ea.addEventListener("focusin",Vs)):(ta.addEventListener("pagehide",Is),ta.addEventListener("blur",Is),ta.addEventListener("pageshow",Vs),ta.addEventListener("focus",Vs)),Wd=!0)}var Yd;if(na){var Jd={},tp=nh("div").style;Yd=function(t){if(!Jd[t]){var e=xe(t);if(void 0!==tp[t])Jd[t]=e;else for(var n=sa.length;n--;){var i="-"+sa[n]+"-"+e;if(void 0!==tp[i]){Jd[t]=i;break}}}return Jd[t]}}else Yd=null;var ep,np=Yd,ip=new RegExp("^(?:"+sa.join("|")+")([A-Z])");if(na){var rp,sp,op,ap,up,lp,cp=nh("div").style,hp=function(t){return t},fp={},dp={};void 0!==cp.transition?(rp="transition",sp="transitionend",op=!0):void 0!==cp.webkitTransition?(rp="webkitTransition",sp="webkitTransitionEnd",op=!0):op=!1,rp&&(ap=rp+"Duration",up=rp+"Property",lp=rp+"TimingFunction"),ep=function(t,e,n,i,r){setTimeout(function(){function s(){clearTimeout(d)}function o(){h&&f&&(t.unregisterCompleteHandler(s),t.ractive.fire(t.name+":end",t.node,t.isIntro),r())}function a(t){var e=i.indexOf(t.propertyName);-1!==e&&i.splice(e,1),i.length||(clearTimeout(d),c())}function c(){g[up]=m.property,g[lp]=m.duration,g[ap]=m.timing,t.node.removeEventListener(sp,a,!1),f=!0,o()}var h,f,d,p=(t.node.namespaceURI||"")+t.node.tagName,g=t.node.style,m={property:g[up],timing:g[lp],duration:g[ap]};t.node.addEventListener(sp,a,!1),d=setTimeout(function(){i=[],c()},n.duration+(n.delay||0)+50),t.registerCompleteHandler(s),g[up]=i.join(",");var b=Bs(n.easing||"linear");g[lp]=b;var w=g[lp]===b;g[ap]=n.duration/1e3+"s",setTimeout(function(){for(var r,s,c,d,m,b=i.length,k=null,E=[];b--;){if(c=i[b],r=p+c,w&&op&&!dp[r]){var _=g[c];g[c]=e[c],r in fp||(k=t.getStyle(c),fp[r]=t.getStyle(c)!=e[c],dp[r]=!fp[r],dp[r]&&(g[c]=_))}w&&op&&!dp[r]||(null===k&&(k=t.getStyle(c)),s=i.indexOf(c),-1===s?v("Something very strange happened with transitions. Please raise an issue at https://github.com/ractivejs/ractive/issues - thanks!",{node:t.node}):i.splice(s,1),d=/[^\d]*$/.exec(k)[0],m=x(parseFloat(k),parseFloat(e[c])),m?E.push({name:c,interpolator:m,suffix:d}):g[c]=e[c],k=null)}if(E.length){var C;l(n.easing)?(C=t.ractive.easing[n.easing])||(y(ca(n.easing,"easing")),C=hp):C=u(n.easing)?n.easing:hp,new vc({duration:n.duration,easing:C,step:function(t){for(var e=E.length;e--;){var n=E[e];g[n.name]=n.interpolator(t)+n.suffix}},complete:function(){h=!0,o()}})}else h=!0;i.length?g[up]=i.join(","):(g[up]="none",t.node.removeEventListener(sp,a,!1),f=!0,o())},0)},n.delay||0)}}else ep=null;var pp=ep,gp=ta&&ta.getComputedStyle,mp=Promise.resolve(),vp={t0:"intro-outro",t1:"intro",t2:"outro"},yp=function(t){this.owner=t.owner||t.up.owner||Vn(t.up),this.element=this.owner.attributeByName?this.owner:Vn(t.up),this.ractive=this.owner.ractive,this.template=t.template,this.up=t.up,this.options=t,this.onComplete=[]},bp=yp.prototype;bp.animateStyle=function(t,e,n){var i=this;if(4===arguments.length)throw new Error("t.animateStyle() returns a promise - use .then() instead of passing a callback");if(!Wd)return this.setStyle(t,e),mp;var r;return l(t)?(r={},r[t]=e):(r=t,n=e),new Promise(function(t){if(!n.duration)return i.setStyle(r),void t();for(var e=Io(r),s=[],o=gp(i.node),a=e.length;a--;){var u=e[a],l=np(u),c=o[np(u)],h=i.node.style[l];l in i.originals||(i.originals[l]=i.node.style[l]),i.node.style[l]=r[u],i.targets[l]=i.node.style[l],i.node.style[l]=h,c!=r[u]&&(s.push(l),r[l]=r[u],i.node.style[l]=c)}if(!s.length)return void t();pp(i,r,n,s,t)})},bp.bind=function(){var t=this.options,e=t.template&&t.template.v;e&&("t0"!==e&&"t1"!==e||(this.element.intro=this),"t0"!==e&&"t2"!==e||(this.element.outro=this),this.eventName=vp[e]);var n=this.owner.ractive;this.name=t.name||t.template.n,t.params&&(this.params=t.params),u(this.name)?(this._fn=this.name,this.name=this._fn.name):this._fn=b("transitions",n,this.name),this._fn||y(ca(this.name,"transition"),{ractive:n}),Hr(this,t.template)},bp.getParams=function(){if(this.params)return this.params;if(this.fn){var t=Kr(this,this.template,this.up).map(function(t){if(t)return t.get()});return this.fn.apply(this.ractive,t)}},bp.getStyle=function(t){var e=gp(this.node);if(l(t))return e[np(t)];if(!Bo(t))throw new Error("Transition$getStyle must be passed a string, or an array of strings representing CSS properties");for(var n={},i=t.length;i--;){var r=t[i],s=e[np(r)];"0px"===s&&(s=0),n[r]=s}return n},bp.processParams=function(t,e){return c(t)?t={duration:t}:l(t)?t="slow"===t?{duration:600}:"fast"===t?{duration:200}:{duration:400}:t||(t={}),Do({},e,t)},bp.registerCompleteHandler=function(t){S(this.onComplete,t)},bp.setStyle=function(e,n){var i=this;if(l(e)){var r=np(e);t(this.originals,r)||(this.originals[r]=this.node.style[r]),this.node.style[r]=n,this.targets[r]=this.node.style[r]}else{var s;for(s in e)t(e,s)&&i.setStyle(s,e[s])}return this},bp.shouldFire=function(t){if(!this.ractive.transitionsEnabled)return!1;if("intro"===t&&this.ractive.rendering&&qs("noIntro",this.ractive,!0))return!1;if("outro"===t&&this.ractive.unrendering&&qs("noOutro",this.ractive,!1))return!1;var e=this.getParams();if(!this.element.parent)return!0;if(e&&e[0]&&s(e[0])&&"nested"in e[0]){if(!1!==e[0].nested)return!0}else if(!1!==qs("nestedTransitions",this.ractive))return!0;for(var n=this.element.parent;n;){if(n[t]&&n[t].starting)return!1;n=n.parent}return!0},bp.start=function(){var t,e=this,n=this.node=this.element.node,i=this.originals={},r=this.targets={},s=this.getParams();if(this.complete=function(s){if(e.starting=!1,!t){if(e.onComplete.forEach(function(t){return t()}),!s&&e.isIntro)for(var o in r)n.style[o]===r[o]&&(n.style[o]=i[o]);e._manager.remove(e),t=!0}},!this._fn)return void this.complete();var o=this._fn.apply(this.ractive,[this].concat(s));o&&o.then(this.complete)},bp.toString=function(){return""},bp.unbind=function(){if(!this.element.attributes.unbinding){var t=this.options&&this.options.template&&this.options.template.v;"t0"!==t&&"t1"!==t||(this.element.intro=null),"t0"!==t&&"t2"!==t||(this.element.outro=null)}},bp.unregisterCompleteHandler=function(t){O(this.onComplete,t)};var wp=yp.prototype;wp.destroyed=wp.firstNode=wp.rebound=wp.render=wp.unrender=wp.update=h;var xp,kp,Ep={};try{nh("table").innerHTML="foo"}catch(t){xp=!0,kp={TABLE:['<table class="x">',"</table>"],THEAD:['<table><thead class="x">',"</thead></table>"],TBODY:['<table><tbody class="x">',"</tbody></table>"],TR:['<table><tr class="x">',"</tr></table>"],SELECT:['<select class="x">',"</select>"]}}var _p=function(t){function e(e){t.call(this,e)}t&&(e.__proto__=t);var n=e.prototype=Object.create(t&&t.prototype);return n.constructor=e,n.detach=function(){var t=Qn();return this.nodes&&this.nodes.forEach(function(e){return t.appendChild(e)}),t},n.find=function(t){var e,n=this,i=this.nodes.length;for(e=0;e<i;e+=1){var r=n.nodes[e];if(1===r.nodeType){if(ih(r,t))return r;var s=r.querySelector(t);if(s)return s}}return null},n.findAll=function(t,e){var n,i=this,r=e.result,s=this.nodes.length;for(n=0;n<s;n+=1){var o=i.nodes[n];if(1===o.nodeType){ih(o,t)&&r.push(o);var a=o.querySelectorAll(t);a&&r.push.apply(r,a)}}},n.findComponent=function(){return null},n.firstNode=function(){return this.rendered&&this.nodes[0]},n.render=function(t,e,n){var i=this;if(!this.nodes){var r=this.model?this.model.get():"";this.nodes=Fs(r,t)}var s=this.nodes;if(e){for(var o,a=-1;e.length&&(o=this.nodes[a+1]);)for(var u=void 0;u=e.shift();){var l=u.nodeType;if(l===o.nodeType&&(1===l&&u.outerHTML===o.outerHTML||(3===l||8===l)&&u.nodeValue===o.nodeValue)){i.nodes.splice(++a,1,u);break}t.removeChild(u)}a>=0&&(s=this.nodes.slice(a)),e.length&&(n=e[0])}if(s.length){var c=Qn();s.forEach(function(t){return c.appendChild(t)}),n?t.insertBefore(c,n):t.appendChild(c)}this.rendered=!0},n.toString=function(){var t=this.model&&this.model.get();return t=null!=t?""+t:"",Cr()?mt(t):t},n.unrender=function(){this.nodes&&this.nodes.forEach(function(t){pc.detachWhenReady({node:t,detach:function(){Jn(t)}})}),this.rendered=!1,this.nodes=null},n.update=function(){this.rendered&&this.dirty?(this.dirty=!1,this.unrender(),this.render(this.up.findParentNode(),null,this.up.findNextNode(this))):this.dirty=!1},e}(kd),Cp={};Cp[Xa]=wf,Cp[za]=Vf,Cp[Ga]=Us,Cp[Za]=Hf,Cp[Da]=_d,Cp[Ba]=ws,Cp[Ra]=zd,Cp[Ma]=_p,Cp[Ua]=ws,Cp[Ha]=jf,Cp[Cu]=Nf,Cp[Eu]=Ff,Cp[ku]=bd,Cp[_u]=yp,Cp[qa]=Tr;var Sp={doctype:Hf,form:cd,input:Cd,option:Md,select:Hd,textarea:Kd},Tp=function(t){this.owner=t.owner,this.isRoot=!t.owner.up,this.parent=this.isRoot?null:this.owner.up,this.ractive=t.ractive||(this.isRoot?t.owner:this.parent.ractive),this.componentParent=this.isRoot&&this.ractive.component?this.ractive.component.up:null,!this.isRoot||this.ractive.delegate?this.delegate=this.owner.containerFragment?this.owner.containerFragment&&this.owner.containerFragment.delegate:this.componentParent&&this.componentParent.delegate||this.parent&&this.parent.delegate:this.delegate=!1,this.context=null,this.rendered=!1,this.cssIds="cssIds"in t?t.cssIds&&t.cssIds.length&&t.cssIds:this.parent?this.parent.cssIds:null,this.dirty=!1,this.dirtyValue=!0,this.template=t.template||[],this.createItems()},Ap=Tp.prototype;Ap.bind=function(t){var e=this;this.context=t;for(var n=this.items.length,i=0;i<n;i++)e.items[i].bind();return this.bound=!0,this.dirty&&this.update(),this},Ap.bubble=function(){this.dirtyValue=!0,this.dirty||(this.dirty=!0,this.isRoot?this.ractive.component?this.ractive.component.bubble():this.bound&&pc.addFragment(this):this.owner.bubble(this.index))},Ap.createItems=function(){var t=this,e=this.template.length;this.items=[];for(var n=0;n<e;n++)t.items[n]=Ws({up:t,template:t.template[n],index:n})},Ap.destroyed=function(){for(var t=this,e=this.items.length,n=0;n<e;n++)t.items[n].destroyed();this.pathModel&&this.pathModel.destroyed(),this.rootModel&&this.rootModel.destroyed()},Ap.detach=function(){for(var t=Qn(),e=this.items,n=e.length,i=0;i<n;i++)t.appendChild(e[i].detach());return t},Ap.find=function(t,e){return M(this.items,function(n){return n.find(t,e)})},Ap.findAll=function(t,e){this.items&&this.items.forEach(function(n){return n.findAll&&n.findAll(t,e)})},Ap.findComponent=function(t,e){return M(this.items,function(n){return n.findComponent(t,e)})},Ap.findAllComponents=function(t,e){this.items&&this.items.forEach(function(n){return n.findAllComponents&&n.findAllComponents(t,e)})},Ap.findContext=function(){var t=tn(this);return t&&t.context?t.context:this.ractive.viewmodel},Ap.findNextNode=function(t){var e=this;if(t)for(var n,i=t.index+1;i<this.items.length;i++)if((n=e.items[i])&&n.firstNode){var r=n.firstNode(!0);if(r)return r}return this.isRoot?this.ractive.component?this.ractive.component.up.findNextNode(this.ractive.component):null:this.parent?this.owner.findNextNode(this):void 0},Ap.findParentNode=function(){var t=this;do{if(t.owner.type===Va)return t.owner.node;if(t.isRoot&&!t.ractive.component)return t.ractive.el;t=t.owner.type===Ua?t.owner.containerFragment:t.componentParent||t.parent}while(t);throw new Error("Could not find parent node")},Ap.firstNode=function(t){var e=M(this.items,function(t){return t.firstNode(!0)});return e||(t?null:this.parent.findNextNode(this.owner))},Ap.getKey=function(){return this.keyModel||(this.keyModel=new Id(this.key))},Ap.getIndex=function(){return this.idxModel||(this.idxModel=new Id(this.index))},Ap.rebind=function(t){this.context=t,this.rootModel&&(this.rootModel.context=this.context),this.pathModel&&(this.pathModel.context=this.context)},Ap.rebound=function(t){this.items.forEach(function(e){return e.rebound(t)}),t&&(this.rootModel&&this.rootModel.applyValue(this.context.getKeypath(this.ractive.root)),this.pathModel&&this.pathModel.applyValue(this.context.getKeypath()))},Ap.render=function(t,e){if(this.rendered)throw new Error("Fragment is already rendered!");this.rendered=!0;for(var n=this.items,i=n.length,r=0;r<i;r++)n[r].render(t,e)},Ap.resetTemplate=function(t){var e=this.bound,n=this.rendered;if(e&&(n&&this.unrender(!0),this.unbind()),this.template=t,this.createItems(),e&&(this.bind(this.context),n)){var i=this.findParentNode(),r=this.findNextNode();if(r){var s=Qn();this.render(s),i.insertBefore(s,r)}else this.render(i)}},Ap.shuffled=function(){this.items.forEach(tt),this.rootModel&&this.rootModel.applyValue(this.context.getKeypath(this.ractive.root)),this.pathModel&&this.pathModel.applyValue(this.context.getKeypath())},Ap.toString=function(t){return this.items.map(t?ot:st).join("")},Ap.unbind=function(t){var e=this;this.context=null;for(var n=this.items.length,i=0;i<n;i++)e.items[i].unbind(t);return this.bound=!1,this},Ap.unrender=function(t){for(var e=this,n=this.items.length,i=0;i<n;i++)e.items[i].unrender(t);this.rendered=!1},Ap.update=function(){var t=this;if(this.dirty)if(this.updating)this.isRoot&&pc.addFragmentToRoot(this);else{this.dirty=!1,this.updating=!0;for(var e=this.items.length,n=0;n<e;n++)t.items[n].update();this.updating=!1}},Ap.valueOf=function(){if(1===this.items.length)return this.items[0].valueOf();if(this.dirtyValue){var t={},e=Zs(this.items,t,this.ractive._guid),n=ds(e,t);this.value=n?n.value:this.toString(),this.dirtyValue=!1}return this.value},Tp.prototype.getContext=Je,Tp.prototype.getKeypath=Xs;var jp=["template","partials","components","decorators","events"],Np=Fn("reverse").path,Op=Fn("shift").path,Pp=Fn("sort").path,Dp=Fn("splice").path,Mp=Fn("unshift").path,Rp={add:un,animate:fn,attachChild:Cn,compute:jn,detach:Nn,detachChild:On,find:Pn,findAll:Dn,findAllComponents:Mn,findComponent:Rn,findContainer:Ln,findParent:In,fire:Wn,get:Zn,getContext:Gn,insert:ni,link:ri,observe:li,observeOnce:hi,off:fi,on:di,once:pi,pop:Ch,push:Sh,readLink:gi,render:Js,reset:to,resetPartial:no,resetTemplate:io,reverse:Np,set:ro,shift:Op,sort:Pp,splice:Dp,subtract:so,teardown:Ar,toggle:oo,toCSS:ao,toCss:ao,toHTML:uo,toHtml:uo,toText:lo,transition:co,unlink:ho,unrender:fo,unshift:Mp,update:Hn,updateModel:po,use:go},Lp=[],Ip=/super\s*\(|\.call\s*\(\s*this/;if(Lo(Oo,{sharedGet:{value:ko},sharedSet:{value:xo},styleGet:{configurable:!0,value:vo.bind(Oo)},styleSet:{configurable:!0,value:Ti.bind(Oo)},addCSS:{configurable:!1,value:yo.bind(Oo)},hasCSS:{configurable:!1,value:wo.bind(Oo)}}),ta&&!ta.Ractive){var Vp="",Bp=document.currentScript||document.querySelector("script[data-ractive-options]");Bp&&(Vp=Bp.getAttribute("data-ractive-options")||""),~Vp.indexOf("ForceGlobal")&&(ta.Ractive=Oo)}else ta&&g("Ractive already appears to be loaded while loading 0.10.14.");return Do(Oo.prototype,Rp,Yo),Oo.prototype.constructor=Oo,Oo.defaults=Oo.prototype,Yl.defaults=Oo.defaults,Yl.Ractive=Oo,Lo(Oo,{DEBUG:{writable:!0,value:!0},DEBUG_PROMISES:{writable:!0,value:!0},extend:{value:_o},extendWith:{value:Co},escapeKey:{value:k},evalObjectString:{value:ds},findPlugin:{value:No},getContext:{value:Xn},getCSS:{value:yi},isInstance:{value:mo},joinKeys:{value:Ao},macro:{value:To},normaliseKeypath:{value:E},parse:{value:De},splitKeypath:{value:jo},unescapeKey:{value:C},use:{value:Eo},enhance:{writable:!0,value:!1},svg:{value:ra},VERSION:{value:"0.10.14"},adaptors:{writable:!0,value:{}},components:{writable:!0,value:{}},decorators:{writable:!0,value:{}},easing:{writable:!0,value:Jo},events:{writable:!0,value:{}},extensions:{value:[]},helpers:{writable:!0,value:Yo.helpers},interpolators:{writable:!0,value:ha},partials:{writable:!0,value:{}},transitions:{writable:!0,value:{}},cssData:{configurable:!0,value:{}},sharedData:{value:kc},Ractive:{value:Oo},Context:{value:jc.Context.prototype}}),Ro(Oo,"_cssModel",{configurable:!0,value:new Hh(Oo)}),Ro(Oo.prototype,"rendered",{get:function(){return this.fragment&&this.fragment.rendered}}),Oo}),define("rv",["ractive"],function(t){var e,n;return e=function(){var t=function(e,n,i,r){return 3==arguments.length?(r=i,i=void 0):2==arguments.length&&(r=n,n=i=void 0),{buildCache:{},load:function(s,o,a,u){var l=o.toUrl(s),c="";if(-1!=l.indexOf("?")&&(c=l.substr(l.indexOf("?")),l=l.substr(0,l.length-c.length)),u.precompiled instanceof Array){for(var h=0;h<u.precompiled.length;h++)if(l.substr(0,u.precompiled[h].length)==u.precompiled[h])return require([l+"."+e+".js"+c],a,a.error)}else if(!0===u.precompiled)return require([l+"."+e+".js"+c],a,a.error);if(n&&"/"!=s.substr(0,1)&&!s.match(/:\/\//)){var f=!1;if(i)for(var h=0;h<i.length;h++)s.substr(s.length-i[h].length-1)=="."+i[h]&&(f=!0);l+=f?c:"."+n+c}else l+=c;var d=this;t.fetch(l,function(t){r(s,t,o,function(t){"string"==typeof t?(u.isBuild&&(d.buildCache[s]=t),a.fromText(t)):a(t)},a.error,u)},a.error)},write:function(t,e,n){var i=this.buildCache[e];i&&n.asModule(t+"!"+e,i)},writeFile:function(t,n,i,r){r.asModule(t+"!"+n,i.toUrl(n+"."+e+".js"),this.buildCache[n])}}};if("undefined"!=typeof window){var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=function(t){var n=!0,i=/^(\w+:)?\/\/([^\/]+)/.exec(t);"undefined"!=typeof window&&i&&(n=i[2]===window.location.host,i[1]&&(n&=i[1]===window.location.protocol));var r;if("undefined"!=typeof XMLHttpRequest)r=new XMLHttpRequest;else for(var s,o=0;o<3;o+=1){s=e[o];try{r=new ActiveXObject(s)}catch(t){}if(r){e=[s];break}}if(!n)if("undefined"!=typeof XDomainRequest)r=new XDomainRequest;else if(!("withCredentials"in r))throw new Error("getXhr(): Cross Origin XHR not supported.");if(!r)throw new Error("getXhr(): XMLHttpRequest not available");return r};t.fetch=function(t,e,i){var r=n(t);r.open("GET",t,!requirejs.inlineRequire),r.onreadystatechange=function(n){var s,o;if(4===r.readyState)if((s=r.status)>399&&s<600)o=new Error(t+" HTTP status: "+s),o.xhr=r,i&&i(o);else{if(""==r.responseText)return i(new Error(t+" empty response"));e(r.responseText)}},r.send(null)}}else if("undefined"!=typeof process&&process.versions&&process.versions.node){var i=requirejs.nodeRequire("fs");t.fetch=function(t,e,n){try{e(i.readFileSync(t,"utf8"))}catch(t){n(t)}}}else"undefined"!=typeof Packages?t.fetch=function(t,e,n){var i,r,s=new java.io.File(t),o=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),"utf-8")),u="";try{for(i=new java.lang.StringBuffer,r=a.readLine(),r&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),i.append(r);null!==(r=a.readLine());)i.append(o),i.append(r);u=String(i.toString())}catch(t){n&&n(t)}finally{a.close()}e(u)}:t.fetch=function(){throw new Error("Environment unsupported.")};return t}(),n=function(){function t(t){return/^[a-z_$][0-9a-z_$]*$/gi.test(t)&&!e.test(t)}var e=/^(abstract|boolean|break|byte|case|catch|char|class|const|continue|debugger|default|delete|do|double|else|enum|export|extends|false|final|finally|float|for|function|goto|if|implements|import|in|instanceof|int|interface|long|native|new|null|package|private|protected|public|return|short|static|super|switch|synchronized|this|throw|throws|transient|true|try|typeof|undefined|var|void|volatile|while|with)$/;return function(e,n,i,r){function s(e,n,i,r,o){function a(t){return i.slice(1)+t.join(","+(i&&"\n")+u)+(i?" ":"")}var u=r+i;switch(typeof(e=n?n(e):e)){case"string":return JSON.stringify(e);case"boolean":case"number":case"undefined":return""+e;case"function":return e.toString()}if(null===e)return"null";if(e instanceof RegExp)return e.toString();if(e instanceof Date)return"new Date("+e.getTime()+")";var l=o.indexOf(e)+1;if(l>0)return"{$circularReference:"+l+"}";if(o.push(e),Array.isArray(e))return"["+a(e.map(function(t){return s(t,n,i,u,o.slice())}))+"]";var c=Object.keys(e);return c.length?"{"+a(c.map(function(r){return(t(r)?r:JSON.stringify(r))+":"+s(e[r],n,i,u,o.slice())}))+"}":"{}"}var o=[];return s(e,n,void 0===i?" ":i||"",r||"",o)}}(),function(e,n){return e("rv","html",function(e,i,r,s,o,a){var u=t.parse(i);s(a.isBuild?'define("rv!'+e+'",function(){return '+n(u)+";})":u)})}(e,n)}),define("rv!templates/template",[],function(){return{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-search-wrapper",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-search-bar-wrapper",g:1}],f:[{t:7,e:"input",m:[{n:"value",f:[{t:2,r:"term"}],t:13},{n:["keyup"],t:70,f:"search"},{n:"type",f:"text",t:13},{n:"id",f:"search-bar-input",t:13},{n:"placeholder",f:"Search this site",t:13}]}," ",{t:7,e:"i",m:[{t:13,n:"class",f:"fa fa-times ossw-search-bar-close",g:1},{n:["click"],t:70,f:"clear"}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-search-suggestions-wrapper",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-search-suggestions",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-results",g:1}],f:[{t:4,f:[{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-result-item",g:1},{n:"href",f:[{t:2,r:"link"}],t:13}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-result-heading",g:1}],f:[{t:3,r:"title"}]}]}],r:"suggestions"}]}]}],n:50,r:"suggestions.length"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-search-results",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",
f:"ossw-overlay",g:1}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-container",g:1}],f:[" ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-header-wrapper",g:1}],f:[{t:7,e:"section",m:[{t:13,n:"class",f:"ossw-header",g:1}],f:[{t:7,e:"input",m:[{n:"value",f:[{t:2,r:"term"}],t:13},{n:["keyup"],t:70,f:"searchPopup"},{n:"type",f:"text",t:13},{n:"placeholder",f:"Search OpenStack",t:13},{n:"id",f:"search-popup-input",t:13}]}," ",{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-search-icon",g:1}],f:[{t:7,e:"i",m:[{t:13,n:"class",f:"fa fa-search",g:1}]}]}," ",{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-close-icon",g:1},{n:["click"],t:70,f:"closePopup"}],f:[{t:7,e:"i",m:[{t:13,n:"class",f:"fa fa-times",g:1}]}]}]}]}," ",{t:7,e:"div",f:[{t:7,e:"section",m:[{t:13,n:"style",f:"display: none;",g:1},{t:13,n:"class",f:"ossw-suggestions-wrapper",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-heading",g:1}],f:["suggested results"]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-suggestions",g:1}],f:[{t:4,f:[{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-result-item",g:1},{n:"href",f:[{t:2,r:"link"}],t:13}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-result-heading",g:1}],f:[{t:3,r:"title"}]}]}],r:"suggestions"}]}]}," ",{t:7,e:"section",m:[{t:13,n:"class",f:"ossw-results-wrapper",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"style",f:"display: block;",g:1},{t:13,n:"class",f:"ossw-results",g:1}],f:[{t:4,f:[{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-result-item",g:1},{n:"href",f:[{t:2,r:"link"}],t:13}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-result-heading",g:1}],f:[{t:3,r:"title"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-result-detail",g:1}],f:[{t:3,r:"detail"}]}]}],r:"results"}]}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"ossw-footer-wrapper",g:1}],f:[{t:7,e:"section",m:[{t:13,n:"class",f:"ossw-footer",g:1}],f:[{t:4,f:[{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-summary",g:1}],f:[{t:7,e:"div",f:["Showing ",{t:7,e:"strong",f:[{t:2,r:"fromResult"}]},"–",{t:7,e:"strong",f:[{t:2,r:"toResult"}]}," of ",{t:7,e:"strong",f:[{t:2,r:"total"}]}," ",{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-summary-query",g:1}],f:["for “",{t:2,r:"term"},"”"]}]}]}," ",{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-pagination",g:1}],f:[{t:7,e:"div",f:[{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-page-link next",g:1},{n:["click"],t:70,f:{r:["page"],s:'[["changePage",_0-1]]'}},{n:"href",f:"#",t:13,g:1}],f:[{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-right-arrow",g:1}],f:["<"]}]}," ",{t:4,f:[{t:7,e:"a",m:[{n:"class",f:["ossw-page-link ",{t:4,f:["ossw-active"],x:{r:[".","page"],s:"_0==_1"}}],t:13},{n:["click"],t:70,f:{r:["."],s:'[["changePage",_0]]'}},{n:"href",f:"#",t:13,g:1}],f:[{t:2,r:"."}]}],n:52,r:"pagesToShow"}," ",{t:7,e:"a",m:[{t:13,n:"class",f:"ossw-page-link next",g:1},{n:["click"],t:70,f:{r:["page"],s:'[["changePage",_0+1]]'}},{n:"href",f:"#",t:13,g:1}],f:[{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-right-arrow",g:1}],f:[">"]}]}]}]}],n:50,r:"results.length"},{t:4,f:[{t:7,e:"span",m:[{t:13,n:"class",f:"ossw-summary",g:1}],f:[{t:7,e:"div",f:["No results found for “",{t:2,r:"term"},"”"]}]}],n:51,l:1}]}]}]}]}]}],e:{'[["changePage",_0-1]]':function(t){return[["changePage",t-1]]},"_0==_1":function(t,e){return t==e},'[["changePage",_0]]':function(t){return[["changePage",t]]},'[["changePage",_0+1]]':function(t){return[["changePage",t+1]]}}}}),define("text",{load:function(t){throw new Error("Dynamic load not allowed: "+t)}}),define("text!css/widget-styles.css",[],function(){return'\n.ossw-search-bar-wrapper {\n\tposition: relative;\n}\n\n#search-bar-input {\n\twidth: 100%;\n\tborder: 2px solid #dae5ee;\n\tborder-radius: 4px;\n\theight: 37px;\n\tpadding: 0 0 0 10px;\n\tbackground: #fff;\n\tcolor: #30739C;\n\tfont-size: 12px;\n\ttext-transform: lowercase;\n\tfont-weight: 400;\n}\n\n#search-bar-input::placeholder {\n\tcolor: #C7CAE0;\n}\n\n#search-bar-input:focus {\n\tborder-color: #30739C;\n\toutline: none;\n}\n\n.ossw-search-bar-close {\n\tcursor:\tpointer;\n\tposition: absolute;\n\ttop: 10px;\n\tright: 15px;\n\tcolor: #dae5ee;\n\tz-index: 1001;\n\tfont-size: 16px;\n}\n\n.ossw-search-bar-close:hover {\n\tcolor: #30739C;\n}\n\n.ossw-no-results {\n\tfont-size: 12px;\n\tfont-weight: 500;\n\tline-height: 1;\n\tcolor: #8B9BAD;\n}\n\n.ossw-search-suggestions-wrapper {\n\tdisplay: none;\n}\n\n.ossw-search-suggestions {\n\tborder: 1px solid #DDDDDD;\n\tpadding: 5px;\n\tposition: relative;\n\ttop: 10px;\n\tz-index: 9999;\n\tbackground: white;\n\twidth: 100%;\n}\n\n.ossw-result-item {\n\tpadding:10px 5px;\n\tdisplay:block;\n\tposition:relative;\n\tcursor:pointer;\n\tborder-bottom:1px solid #E9EDF2;\n\ttext-align:left;\n\ttext-decoration:none\n}\n\n.ossw-result-item:before{\n\tright:22px;\n\ttop:50%;\n\tmargin-top:-3px;\n\twidth:6px;\n\theight:6px;\n\tborder-style:solid;\n\tborder-width:1px 1px 0 0;\n\tborder-color:#C5D1DE;\n\t-webkit-transform:rotate(45deg);\n\t-moz-transform:rotate(45deg);\n\t-ms-transform:rotate(45deg);\n\ttransform:rotate(45deg);\n\tdisplay:block;\n\tposition:absolute;\n\tcontent:""\n}\n\n.ossw-result-item:after{\n\tdisplay:table;\n\tcontent:"";\n\twidth:0;\n\theight:0;\n\tclear:both\n}\n\n.ossw-result-item:hover {\n\tbackground-color: rgba(0,0,0,0.05);\n}\n.ossw-result-item:hover:before {\n\tborder-color:#8B9BAD\n}\n.ossw-result-item:hover .ossw-result-detail {\n\tcolor:#3B454F\n}\n\n.ossw-result-item em{\n\tfont-style:normal;\n\t-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);\n\t-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);\n\tbox-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);\n\tfont-weight: bold;\n\tbackground-color: #f6fcfe;\n}\n\n.ossw-result-heading {\n\twidth: 90%;\n\tfont-weight:500;\n\tfont-size:13px;\n\tline-height:1.2;\n\tmargin-bottom:4px;\n\tcolor:#258BF8;\n\twhite-space:nowrap;\n\toverflow:hidden;\n\t-ms-text-overflow:ellipsis;\n\ttext-overflow:ellipsis;\n}\n\n\n.ossw-result-detail {\n\twidth: 90%;\n\tmax-height:31px;\n\toverflow:hidden;\n\tfont-size:12px;\n\tfont-weight:400;\n\tline-height:1.4;\n\tcolor:#8B9BAD\n}\n\n.ossw-search-results {\n\tdisplay: none;\n}\n\n.ossw-search-results .ossw-overlay {\n\tposition:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:99999991\n}\n\n.ossw-search-results .ossw-overlay.ossw-dismiss {\n\tdisplay:none\n}\n\n.ossw-search-results .ossw-overlay.ossw-dismiss .ossw-container {\n\topacity:0;\n\t-webkit-animation:st-ui-fade-out ease-in-out 0.5s;\n\t-moz-animation:st-ui-fade-out ease-in-out 0.5s;\n\tanimation:st-ui-fade-out ease-in-out 0.5s\n}\n\n.ossw-search-results .ossw-container {\n\tposition: fixed;\n\ttop: 0;\n\tmargin: 64px 0 0 0;\n\twidth: 60%;\n\theight: 80%;\n\tmax-width: 800px;\n\t-webkit-box-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tbackground: #fff;\n\tz-index: 99999992;\n\t-webkit-animation: st-ui-fade-in ease-in-out 0.5s;\n\t-moz-animation: st-ui-fade-in ease-in-out 0.5s;\n\tanimation: st-ui-fade-in ease-in-out 0.5s;\n\toverflow: hidden;\n\t-webkit-text-size-adjust: none;\n\t-ms-text-size-adjust: none;\n\ttext-size-adjust: none;\n\t-webkit-border-radius: 5px;\n\t-moz-border-radius: 5px;\n\tborder-radius: 5px;\n\tfont-family: system, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", sans-serif;\n}\n\n@media (max-width: 660px) {\n\t.ossw-pagination .ossw-page-link:not(.ossw-active):not(.next) {\n\t\tdisplay: none !important;\n\t}\n}\n\n@media only screen and (orientation: portrait) {\n\t.ossw-search-results .ossw-container {\n\t\theight: 60%;\n\t}\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\t-webkit-box-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\t-webkit-font-smoothing: antialiased;\n\t-webkit-text-size-adjust: none;\n\t-ms-text-size-adjust: none;\n\ttext-size-adjust: none;\n\tfont-family: system, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", sans-serif;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header {\n\tposition: relative;\n\twidth: 100%;\n\theight: 49px;\n\tborder-bottom: 1px solid rgba(0,0,0,0.1);\n\tz-index: 99999997;\n\tbackground: #F9FAFB;\n\t-moz-background-clip: padding-box;\n\tbackground-clip: padding-box;\n\t-webkit-backface-visibility: hidden;\n\t-moz-backface-visibility: hidden;\n\tbackface-visibility: hidden;\n\t-webkit-border-radius: 5px 5px 0 0;\n\t-moz-border-radius: 5px 5px 0 0;\n\tborder-radius: 5px 5px 0 0;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header input{\n\tpadding: 0 120px 0 36px;\n\twidth: 100%;\n\theight: 48px;\n\tbackground: transparent;\n\tborder: 0;\n\toutline: none;\n\tcolor: #3B454F;\n\tfont-size: 15px;\n\tfont-weight: 500;\n\tline-height: 19px;\n\t-webkit-border-radius: 5px 5px 0 0;\n\t-moz-border-radius: 5px 5px 0 0;\n\tborder-radius: 5px 5px 0 0;\n\tfont-family: system, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", sans-serif;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header input:focus{\n\theight:50px;border-bottom:2px solid #33AAFF\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header .ossw-search-icon {\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 18px;\n\tleft: 15px;\n\twidth: 13px;\n\theight: 13px;\n\tpointer-events: none;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header .ossw-search-icon .fa {\n\topacity: 0.6;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header .ossw-close-icon {\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 16px;\n\tright: 14px;\n\twidth: 16px;\n\theight: 16px;\n\tcursor: pointer;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header .ossw-close-icon .fa {\n\topacity: 0.6;\n}\n\n.ossw-search-results .ossw-container .ossw-header-wrapper .ossw-header .ossw-close-icon .fa:hover {\n\topacity: 1;\n}\n\n.ossw-search-results .ossw-suggestions-wrapper {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tmargin: 0;\n\tpadding: 68px 10px;\n\twidth: 50%;\n\theight: 100%;\n\tz-index: 99999995;\n\tbackground: #fff;\n\t-webkit-box-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tborder: 0;\n\t-webkit-animation: st-ui-slide-in ease-in-out 0.5s;\n\t-moz-animation: st-ui-slide-in ease-in-out 0.5s;\n\tanimation: st-ui-slide-in ease-in-out 0.5s;\n\t-webkit-box-shadow: 1px 0 3px rgba(0,0,0,0.2);\n\t-moz-box-shadow: 1px 0 3px rgba(0,0,0,0.2);\n\tbox-shadow: 1px 0 3px rgba(0,0,0,0.2);\n\t-webkit-border-radius: 5px;\n\t-moz-border-radius: 5px;\n\tborder-radius: 5px;\n}\n\n.ossw-search-results .ossw-suggestions-wrapper .ossw-heading {\n\tmargin-bottom: 0;\n\tpadding: 6px 18px 14px 0;\n\tborder-bottom: 1px solid #E9EDF2;\n\tcolor: rgba(0,0,0,0.4);\n}\n\n.ossw-search-results .ossw-results-wrapper {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tpadding: 50px 0px;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: auto;\n\t-webkit-overflow-scrolling: touch;\n\t-webkit-border-radius: 5px;\n\t-moz-border-radius: 5px;\n\tborder-radius: 5px;\n}\n\n.ossw-search-results .ossw-results-wrapper .ossw-results {\n\tpadding: 0 10px 50px 10px;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer {\n\tposition: absolute;\n\tbottom: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 49px;\n\tborder-top: 1px solid rgba(0,0,0,0.1);\n\tbackground: #F9FAFB;\n\tz-index: 99999996;\n\t-moz-background-clip: padding-box;\n\tbackground-clip: padding-box;\n\t-webkit-backface-visibility: hidden;\n\t-moz-backface-visibility: hidden;\n\tbackface-visibility: hidden;\n\t-webkit-border-radius: 0 0 5px 5px;\n\t-moz-border-radius: 0 0 5px 5px;\n\tborder-radius: 0 0 5px 5px;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer .ossw-summary {\n\tdisplay: block;\n\tposition: absolute;\n\twidth: 65%;\n\ttop: 18px;\n\tleft: 16px;\n\tfloat: left;\n\tfont-size: 12px;\n\tfont-weight: 500;\n\tline-height: 1;\n\tcolor: #8B9BAD;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer .ossw-pagination {\n\tdisplay: block;\n\tpadding-right: 9px;\n\tfloat: right;\n\ttext-align: right;\n\tfont-size: 12px;\n\tfont-weight: 500;\n\tcolor: #8B9BAD;\n\tline-height: 1;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer .ossw-pagination .ossw-page-link {\n\tdisplay: inline-block;\n\tpadding: 18px 7px;\n\ttext-decoration: none;\n\tcolor: #258BF8;\n\ttext-transform: uppercase;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer .ossw-pagination .ossw-page-link.ossw-active {\n\tcolor: #8B9BAD;\n}\n\n.ossw-search-results .ossw-footer-wrapper .ossw-footer .ossw-pagination .ossw-page-link .ossw-right-arrow {\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: 6px;\n\theight: 6px;\n\tmargin: 0 0 0 2px;\n}\n'}),define("app/app",["jquery","ractive","rv!templates/template","text!css/widget-styles.css"],function(t,e,n,i){"use strict";function r(e,n){var i=e.get("term"),r=e.get("page"),s=e.get("perPage"),a="https://"+e.baseUrl+"/api/public/v1/search/"+e.context;t.ajax({url:a+"/"+i+"?page="+r+"&page_size="+s,dataType:"json"}).done(function(t){var i=t.results.map(function(t){var e=t.hasOwnProperty("meta_description")?t.meta_description:t.content;e=e.length>l?e.substring(0,l)+"...":e;var n=t.hasOwnProperty("meta_title")?t.meta_title:t.title;return{link:t.url,title:n,detail:e}});e.set("total",t.qty),e.set("results",i),n&&o(e)}).fail(function(t){})}function s(e){c&&c.abort();var n=e.get("term");c=t.ajax({url:"https://"+e.baseUrl+"/api/public/v1/suggestions/"+e.context+"/"+n,dataType:"json"}).done(function(t){var n=t.results.map(function(t){return{link:t.payload,title:t.term}});c=null,e.set("suggestions",n)}).fail(function(t){})}function o(t){for(var e=t.get("total"),n=t.get("perPage"),i=Math.ceil(e/n),r=i<5?i:5,s=[],o=1;o<=r;o++)s.push(o);t.set("page",1),t.set("pagesToShow",s);var a=n;a=a>e?e:a,t.set("fromResult",1),t.set("toResult",a)}function a(t,e){var n=t.get("total"),i=t.get("pagesToShow"),r=t.get("perPage"),s=i[i.length-1],o=i[0],a=Math.ceil(n/r),u=[];t.set("page",e);var l=e*r;if(l=l>n?n:l,t.set("fromResult",(e-1)*r+1),t.set("toResult",l),e>s-1||e<o+1){var c,h=e+2<5?5:e+2;u=[],h>a&&(h=a),c=h-4<1?1:h-4;for(var f=c;f<=h;f++)u.push(f);t.set("pagesToShow",u)}}function u(e){var n=t(window).width(),i=.8*n,r=parseInt(t(".ossw-container",e).css("max-width").slice(0,-2));if(t(".ossw-search-results",e).show(),t(".ossw-suggestions-wrapper",e).hide(),t(".ossw-search-suggestions-wrapper",e).hide(),i<r)t(".ossw-container",e).css("left",.1*n),t(".ossw-container",e).css("width",.8*n);else{var s=n/2,o=r/2;t(".ossw-container",e).css("left",s-o)}}t.noConflict();var l=100,c=null,h=null;return{init:function(o){var l=t("<style></style>",{type:"text/css"});l.text(i),t("head").append(l),e.DEBUG=/unminified/.test(function(){}),t(".openstack-search-bar").each(function(){var i=t(this),o=i.data("baseurl")?i.data("baseurl"):"search.openstack.org",l=i.data("context")?i.data("context"):"www-openstack";this.ractive=new e({el:i,baseUrl:o,context:l,template:n,data:{term:"",page:1,perPage:10,pagesToShow:[1,2,3,4,5],fromResult:1,toResult:10,total:88,results:[],suggestions:[]}}),this.ractive.on({clear:function(e){e.original.preventDefault(),t(".ossw-search-suggestions-wrapper",i).hide(),this.set("term","")},search:function(e){var n=this;e.original.preventDefault(),13==e.original.keyCode?(c&&c.abort(),h&&clearTimeout(h),r(n,!0),u(i)):(t(".ossw-search-suggestions-wrapper",i).show(),h&&clearTimeout(h),h=window.setTimeout(s,500,n))},searchPopup:function(e){var n=this;e.original.preventDefault(),13==e.original.keyCode?(r(n,!0),t(".ossw-suggestions-wrapper",i).hide()):(t(".ossw-suggestions-wrapper",i).show(),h&&clearTimeout(h),h=window.setTimeout(s,500,n))},closePopup:function(e){t(".ossw-search-results",i).hide()},changePage:function(t,e){var n=this.get("total"),i=this.get("perPage"),s=Math.ceil(n/i),o=this;if(t.original.preventDefault(),e>s||e<1)return!1;a(o,e),r(o,!1)}})})}}}),require(["jquery","app/app"],function(t,e){"use strict";t(function(){e.init()})}),define("embed",function(){});