PageSourceSearch

https://www.mataro.cat/++plone++production/++unique++2025-03-04T14:52:29.232531/default.js

js mataro.cat collected 2026-10-01 10:31:04 UTC 719,605 bytes, 3,234 lines download raw bytes

vendor: 4,550 bytes, lines 1-2
1/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
2!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*ne
vendor: 18,010 bytes, line 2
2w Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")}
vendor: 16,844 bytes, lines 2-4
2)||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
3
4return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{}
vendor: 1,726 bytes, line 4
4,e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>
vendor: 54,827 bytes, lines 4-5
4=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
5return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
6//# sourceMappingURL=jquery.min.map
7/** vim: et:ts=4:sw=4:sts=4
8 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
9 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
10 */
11//Not using strict: uneven strict support in browsers, #392, and causes
12//problems with requirejs.exec()/transpiler plugins that may not be strict.
13/*jslint regexp: true, nomen: true, sloppy: true */
14/*global window, navigator, document, importScripts, setTimeout, opera */
15
16var requirejs, require, define;
17(function (global, setTimeout) {
18    var req, s, head, baseElement, dataMain, src,
19        interactiveScript, currentlyAddingScript, mainScript, subPath,
20        version = '2.3.6',
21        commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
22        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
23        jsSuffixRegExp = /\.js$/,
24        currDirRegExp = /^\.\//,
25        op = Object.prototype,
26        ostring = op.toString,
27        hasOwn = op.hasOwnProperty,
28        isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
29        isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
30        //PS3 indicates loaded and complete, but need to wait for complete
31        //specifically. Sequence is 'loading', 'loaded', execution,
32        // then 'complete'. The UA check is unfortunate, but not sure how
33        //to feature test w/o causing perf issues.
34        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
35                      /^complete$/ : /^(complete|loaded)$/,
36        defContextName = '_',
37        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
38        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
39        contexts = {},
40        cfg = {},
41        globalDefQueue = [],
42        useInteractive = false;
vendor: 1,631 bytes, lines 43-103
43
44    //Could match something like ')//comment', do not lose the prefix to comment.
45    function commentReplace(match, singlePrefix) {
46        return singlePrefix || '';
47    }
48
49    function isFunction(it) {
50        return ostring.call(it) === '[object Function]';
51    }
52
53    function isArray(it) {
54        return ostring.call(it) === '[object Array]';
55    }
56
57    /**
58     * Helper function for iterating over an array. If the func returns
59     * a true value, it will break out of the loop.
60     */
61    function each(ary, func) {
62        if (ary) {
63            var i;
64            for (i = 0; i < ary.length; i += 1) {
65                if (ary[i] && func(ary[i], i, ary)) {
66                    break;
67                }
68            }
69        }
70    }
71
72    /**
73     * Helper function for iterating over an array backwards. If the func
74     * returns a true value, it will break out of the loop.
75     */
76    function eachReverse(ary, func) {
77        if (ary) {
78            var i;
79            for (i = ary.length - 1; i > -1; i -= 1) {
80                if (ary[i] && func(ary[i], i, ary)) {
81                    break;
82                }
83            }
84        }
85    }
86
87    function hasProp(obj, prop) {
88        return hasOwn.call(obj, prop);
89    }
90
91    function getOwn(obj, prop) {
92        return hasProp(obj, prop) && obj[prop];
93    }
94
95    /**
96     * Cycles over properties in an object and calls a function for each
97     * property value. If the function returns a truthy value, then the
98     * iteration is stopped.
99     */
100    function eachProp(obj, func) {
101        var prop;
102        for (prop in obj) {
103            if (hasProp(obj, prop)
vendor: 82,966 bytes, lines 103-2151
103) {
104                if (func(obj[prop], prop)) {
105                    break;
106                }
107            }
108        }
109    }
110
111    /**
112     * Simple function to mix in properties from source into target,
113     * but only if target does not already have a property of the same name.
114     */
115    function mixin(target, source, force, deepStringMixin) {
116        if (source) {
117            eachProp(source, function (value, prop) {
118                if (force || !hasProp(target, prop)) {
119                    if (deepStringMixin && typeof value === 'object' && value &&
120                        !isArray(value) && !isFunction(value) &&
121                        !(value instanceof RegExp)) {
122
123                        if (!target[prop]) {
124                            target[prop] = {};
125                        }
126                        mixin(target[prop], value, force, deepStringMixin);
127                    } else {
128                        target[prop] = value;
129                    }
130                }
131            });
132        }
133        return target;
134    }
135
136    //Similar to Function.prototype.bind, but the 'this' object is specified
137    //first, since it is easier to read/figure out what 'this' will be.
138    function bind(obj, fn) {
139        return function () {
140            return fn.apply(obj, arguments);
141        };
142    }
143
144    function scripts() {
145        return document.getElementsByTagName('script');
146    }
147
148    function defaultOnError(err) {
149        throw err;
150    }
151
152    //Allow getting a global that is expressed in
153    //dot notation, like 'a.b.c'.
154    function getGlobal(value) {
155        if (!value) {
156            return value;
157        }
158        var g = global;
159        each(value.split('.'), function (part) {
160            g = g[part];
161        });
162        return g;
163    }
164
165    /**
166     * Constructs an error with a pointer to an URL with more information.
167     * @param {String} id the error ID that maps to an ID on a web page.
168     * @param {String} message human readable error.
169     * @param {Error} [err] the original error, if there is one.
170     *
171     * @returns {Error}
172     */
173    function makeError(id, msg, err, requireModules) {
174        var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id);
175        e.requireType = id;
176        e.requireModules = requireModules;
177        if (err) {
178            e.originalError = err;
179        }
180        return e;
181    }
182
183    if (typeof define !== 'undefined') {
184        //If a define is already in play via another AMD loader,
185        //do not overwrite.
186        return;
187    }
188
189    if (typeof requirejs !== 'undefined') {
190        if (isFunction(requirejs)) {
191            //Do not overwrite an existing requirejs instance.
192            return;
193        }
194        cfg = requirejs;
195        requirejs = undefined;
196    }
197
198    //Allow for a require config object
199    if (typeof require !== 'undefined' && !isFunction(require)) {
200        //assume it is a config object.
201        cfg = require;
202        require = undefined;
203    }
204
205    function newContext(contextName) {
206        var inCheckLoaded, Module, context, handlers,
207            checkLoadedTimeoutId,
208            config = {
209                //Defaults. Do not set a default for map
210                //config to speed up normalize(), which
211                //will run faster if there is no default.
212                waitSeconds: 7,
213                baseUrl: './',
214                paths: {},
215                bundles: {},
216                pkgs: {},
217                shim: {},
218                config: {}
219            },
220            registry = {},
221            //registry of just enabled modules, to speed
222            //cycle breaking code when lots of modules
223            //are registered, but not activated.
224            enabledRegistry = {},
225            undefEvents = {},
226            defQueue = [],
227            defined = {},
228            urlFetched = {},
229            bundlesMap = {},
230            requireCounter = 1,
231            unnormalizedCounter = 1;
232
233        /**
234         * Trims the . and .. from an array of path segments.
235         * It will keep a leading path segment if a .. will become
236         * the first path segment, to help with module name lookups,
237         * which act like paths, but can be remapped. But the end result,
238         * all paths that use this function should look normalized.
239         * NOTE: this method MODIFIES the input array.
240         * @param {Array} ary the array of path segments.
241         */
242        function trimDots(ary) {
243            var i, part;
244            for (i = 0; i < ary.length; i++) {
245                part = ary[i];
246                if (part === '.') {
247                    ary.splice(i, 1);
248                    i -= 1;
249                } else if (part === '..') {
250                    // If at the start, or previous value is still ..,
251                    // keep them so that when converted to a path it may
252                    // still work when converted to a path, even though
253                    // as an ID it is less than ideal. In larger point
254                    // releases, may be better to just kick out an error.
255                    if (i === 0 || (i === 1 && ary[2] === '..') || ary[i - 1] === '..') {
256                        continue;
257                    } else if (i > 0) {
258                        ary.splice(i - 1, 2);
259                        i -= 2;
260                    }
261                }
262            }
263        }
264
265        /**
266         * Given a relative module name, like ./something, normalize it to
267         * a real name that can be mapped to a path.
268         * @param {String} name the relative name
269         * @param {String} baseName a real name that the name arg is relative
270         * to.
271         * @param {Boolean} applyMap apply the map config to the value. Should
272         * only be done if this normalization is for a dependency ID.
273         * @returns {String} normalized name
274         */
275        function normalize(name, baseName, applyMap) {
276            var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
277                foundMap, foundI, foundStarMap, starI, normalizedBaseParts,
278                baseParts = (baseName && baseName.split('/')),
279                map = config.map,
280                starMap = map && map['*'];
281
282            //Adjust any relative paths.
283            if (name) {
284                name = name.split('/');
285                lastIndex = name.length - 1;
286
287                // If wanting node ID compatibility, strip .js from end
288                // of IDs. Have to do this here, and not in nameToUrl
289                // because node allows either .js or non .js to map
290                // to same file.
291                if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
292                    name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
293                }
294
295                // Starts with a '.' so need the baseName
296                if (name[0].charAt(0) === '.' && baseParts) {
297                    //Convert baseName to array, and lop off the last part,
298                    //so that . matches that 'directory' and not name of the baseName's
299                    //module. For instance, baseName of 'one/two/three', maps to
300                    //'one/two/three.js', but we want the directory, 'one/two' for
301                    //this normalization.
302                    normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
303                    name = normalizedBaseParts.concat(name);
304                }
305
306                trimDots(name);
307                name = name.join('/');
308            }
309
310            //Apply map config if available.
311            if (applyMap && map && (baseParts || starMap)) {
312                nameParts = name.split('/');
313
314                outerLoop: for (i = nameParts.length; i > 0; i -= 1) {
315                    nameSegment = nameParts.slice(0, i).join('/');
316
317                    if (baseParts) {
318                        //Find the longest baseName segment match in the config.
319                        //So, do joins on the biggest to smallest lengths of baseParts.
320                        for (j = baseParts.length; j > 0; j -= 1) {
321                            mapValue = getOwn(map, baseParts.slice(0, j).join('/'));
322
323                            //baseName segment has config, find if it has one for
324                            //this name.
325                            if (mapValue) {
326                                mapValue = getOwn(mapValue, nameSegment);
327                                if (mapValue) {
328                                    //Match, update name to the new value.
329                                    foundMap = mapValue;
330                                    foundI = i;
331                                    break outerLoop;
332                                }
333                            }
334                        }
335                    }
336
337                    //Check for a star map match, but just hold on to it,
338                    //if there is a shorter segment match later in a matching
339                    //config, then favor over this star map.
340                    if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {
341                        foundStarMap = getOwn(starMap, nameSegment);
342                        starI = i;
343                    }
344                }
345
346                if (!foundMap && foundStarMap) {
347                    foundMap = foundStarMap;
348                    foundI = starI;
349                }
350
351                if (foundMap) {
352                    nameParts.splice(0, foundI, foundMap);
353                    name = nameParts.join('/');
354                }
355            }
356
357            // If the name points to a package's name, use
358            // the package main instead.
359            pkgMain = getOwn(config.pkgs, name);
360
361            return pkgMain ? pkgMain : name;
362        }
363
364        function removeScript(name) {
365            if (isBrowser) {
366                each(scripts(), function (scriptNode) {
367                    if (scriptNode.getAttribute('data-requiremodule') === name &&
368                            scriptNode.getAttribute('data-requirecontext') === context.contextName) {
369                        scriptNode.parentNode.removeChild(scriptNode);
370                        return true;
371                    }
372                });
373            }
374        }
375
376        function hasPathFallback(id) {
377            var pathConfig = getOwn(config.paths, id);
378            if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
379                //Pop off the first array value, since it failed, and
380                //retry
381                pathConfig.shift();
382                context.require.undef(id);
383
384                //Custom require that does not do map translation, since
385                //ID is "absolute", already mapped/resolved.
386                context.makeRequire(null, {
387                    skipMap: true
388                })([id]);
389
390                return true;
391            }
392        }
393
394        //Turns a plugin!resource to [plugin, resource]
395        //with the plugin being undefined if the name
396        //did not have a plugin prefix.
397        function splitPrefix(name) {
398            var prefix,
399                index = name ? name.indexOf('!') : -1;
400            if (index > -1) {
401                prefix = name.substring(0, index);
402                name = name.substring(index + 1, name.length);
403            }
404            return [prefix, name];
405        }
406
407        /**
408         * Creates a module mapping that includes plugin prefix, module
409         * name, and path. If parentModuleMap is provided it will
410         * also normalize the name via require.normalize()
411         *
412         * @param {String} name the module name
413         * @param {String} [parentModuleMap] parent module map
414         * for the module name, used to resolve relative names.
415         * @param {Boolean} isNormalized: is the ID already normalized.
416         * This is true if this call is done for a define() module ID.
417         * @param {Boolean} applyMap: apply the map config to the ID.
418         * Should only be true if this map is for a dependency.
419         *
420         * @returns {Object}
421         */
422        function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
423            var url, pluginModule, suffix, nameParts,
424                prefix = null,
425                parentName = parentModuleMap ? parentModuleMap.name : null,
426                originalName = name,
427                isDefine = true,
428                normalizedName = '';
429
430            //If no name, then it means it is a require call, generate an
431            //internal name.
432            if (!name) {
433                isDefine = false;
434                name = '_@r' + (requireCounter += 1);
435            }
436
437            nameParts = splitPrefix(name);
438            prefix = nameParts[0];
439            name = nameParts[1];
440
441            if (prefix) {
442                prefix = normalize(prefix, parentName, applyMap);
443                pluginModule = getOwn(defined, prefix);
444            }
445
446            //Account for relative paths if there is a base name.
447            if (name) {
448                if (prefix) {
449                    if (isNormalized) {
450                        normalizedName = name;
451                    } else if (pluginModule && pluginModule.normalize) {
452                        //Plugin is loaded, use its normalize method.
453                        normalizedName = pluginModule.normalize(name, function (name) {
454                            return normalize(name, parentName, applyMap);
455                        });
456                    } else {
457                        // If nested plugin references, then do not try to
458                        // normalize, as it will not normalize correctly. This
459                        // places a restriction on resourceIds, and the longer
460                        // term solution is not to normalize until plugins are
461                        // loaded and all normalizations to allow for async
462                        // loading of a loader plugin. But for now, fixes the
463                        // common uses. Details in #1131
464                        normalizedName = name.indexOf('!') === -1 ?
465                                         normalize(name, parentName, applyMap) :
466                                         name;
467                    }
468                } else {
469                    //A regular module.
470                    normalizedName = normalize(name, parentName, applyMap);
471
472                    //Normalized name may be a plugin ID due to map config
473                    //application in normalize. The map config values must
474                    //already be normalized, so do not need to redo that part.
475                    nameParts = splitPrefix(normalizedName);
476                    prefix = nameParts[0];
477                    normalizedName = nameParts[1];
478                    isNormalized = true;
479
480                    url = context.nameToUrl(normalizedName);
481                }
482            }
483
484            //If the id is a plugin id that cannot be determined if it needs
485            //normalization, stamp it with a unique ID so two matching relative
486            //ids that may conflict can be separate.
487            suffix = prefix && !pluginModule && !isNormalized ?
488                     '_unnormalized' + (unnormalizedCounter += 1) :
489                     '';
490
491            return {
492                prefix: prefix,
493                name: normalizedName,
494                parentMap: parentModuleMap,
495                unnormalized: !!suffix,
496                url: url,
497                originalName: originalName,
498                isDefine: isDefine,
499                id: (prefix ?
500                        prefix + '!' + normalizedName :
501                        normalizedName) + suffix
502            };
503        }
504
505        function getModule(depMap) {
506            var id = depMap.id,
507                mod = getOwn(registry, id);
508
509            if (!mod) {
510                mod = registry[id] = new context.Module(depMap);
511            }
512
513            return mod;
514        }
515
516        function on(depMap, name, fn) {
517            var id = depMap.id,
518                mod = getOwn(registry, id);
519
520            if (hasProp(defined, id) &&
521                    (!mod || mod.defineEmitComplete)) {
522                if (name === 'defined') {
523                    fn(defined[id]);
524                }
525            } else {
526                mod = getModule(depMap);
527                if (mod.error && name === 'error') {
528                    fn(mod.error);
529                } else {
530                    mod.on(name, fn);
531                }
532            }
533        }
534
535        function onError(err, errback) {
536            var ids = err.requireModules,
537                notified = false;
538
539            if (errback) {
540                errback(err);
541            } else {
542                each(ids, function (id) {
543                    var mod = getOwn(registry, id);
544                    if (mod) {
545                        //Set error on module, so it skips timeout checks.
546                        mod.error = err;
547                        if (mod.events.error) {
548                            notified = true;
549                            mod.emit('error', err);
550                        }
551                    }
552                });
553
554                if (!notified) {
555                    req.onError(err);
556                }
557            }
558        }
559
560        /**
561         * Internal method to transfer globalQueue items to this context's
562         * defQueue.
563         */
564        function takeGlobalQueue() {
565            //Push all the globalDefQueue items into the context's defQueue
566            if (globalDefQueue.length) {
567                each(globalDefQueue, function(queueItem) {
568                    var id = queueItem[0];
569                    if (typeof id === 'string') {
570                        context.defQueueMap[id] = true;
571                    }
572                    defQueue.push(queueItem);
573                });
574                globalDefQueue = [];
575            }
576        }
577
578        handlers = {
579            'require': function (mod) {
580                if (mod.require) {
581                    return mod.require;
582                } else {
583                    return (mod.require = context.makeRequire(mod.map));
584                }
585            },
586            'exports': function (mod) {
587                mod.usingExports = true;
588                if (mod.map.isDefine) {
589                    if (mod.exports) {
590                        return (defined[mod.map.id] = mod.exports);
591                    } else {
592                        return (mod.exports = defined[mod.map.id] = {});
593                    }
594                }
595            },
596            'module': function (mod) {
597                if (mod.module) {
598                    return mod.module;
599                } else {
600                    return (mod.module = {
601                        id: mod.map.id,
602                        uri: mod.map.url,
603                        config: function () {
604                            return getOwn(config.config, mod.map.id) || {};
605                        },
606                        exports: mod.exports || (mod.exports = {})
607                    });
608                }
609            }
610        };
611
612        function cleanRegistry(id) {
613            //Clean up machinery used for waiting modules.
614            delete registry[id];
615            delete enabledRegistry[id];
616        }
617
618        function breakCycle(mod, traced, processed) {
619            var id = mod.map.id;
620
621            if (mod.error) {
622                mod.emit('error', mod.error);
623            } else {
624                traced[id] = true;
625                each(mod.depMaps, function (depMap, i) {
626                    var depId = depMap.id,
627                        dep = getOwn(registry, depId);
628
629                    //Only force things that have not completed
630                    //being defined, so still in the registry,
631                    //and only if it has not been matched up
632                    //in the module already.
633                    if (dep && !mod.depMatched[i] && !processed[depId]) {
634                        if (getOwn(traced, depId)) {
635                            mod.defineDep(i, defined[depId]);
636                            mod.check(); //pass false?
637                        } else {
638                            breakCycle(dep, traced, processed);
639                        }
640                    }
641                });
642                processed[id] = true;
643            }
644        }
645
646        function checkLoaded() {
647            var err, usingPathFallback,
648                waitInterval = config.waitSeconds * 1000,
649                //It is possible to disable the wait interval by using waitSeconds of 0.
650                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
651                noLoads = [],
652                reqCalls = [],
653                stillLoading = false,
654                needCycleCheck = true;
655
656            //Do not bother if this call was a result of a cycle break.
657            if (inCheckLoaded) {
658                return;
659            }
660
661            inCheckLoaded = true;
662
663            //Figure out the state of all the modules.
664            eachProp(enabledRegistry, function (mod) {
665                var map = mod.map,
666                    modId = map.id;
667
668                //Skip things that are not enabled or in error state.
669                if (!mod.enabled) {
670                    return;
671                }
672
673                if (!map.isDefine) {
674                    reqCalls.push(mod);
675                }
676
677                if (!mod.error) {
678                    //If the module should be executed, and it has not
679                    //been inited and time is up, remember it.
680                    if (!mod.inited && expired) {
681                        if (hasPathFallback(modId)) {
682                            usingPathFallback = true;
683                            stillLoading = true;
684                        } else {
685                            noLoads.push(modId);
686                            removeScript(modId);
687                        }
688                    } else if (!mod.inited && mod.fetched && map.isDefine) {
689                        stillLoading = true;
690                        if (!map.prefix) {
691                            //No reason to keep looking for unfinished
692                            //loading. If the only stillLoading is a
693                            //plugin resource though, keep going,
694                            //because it may be that a plugin resource
695                            //is waiting on a non-plugin cycle.
696                            return (needCycleCheck = false);
697                        }
698                    }
699                }
700            });
701
702            if (expired && noLoads.length) {
703                //If wait time expired, throw error of unloaded modules.
704                err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
705                err.contextName = context.contextName;
706                return onError(err);
707            }
708
709            //Not expired, check for a cycle.
710            if (needCycleCheck) {
711                each(reqCalls, function (mod) {
712                    breakCycle(mod, {}, {});
713                });
714            }
715
716            //If still waiting on loads, and the waiting load is something
717            //other than a plugin resource, or there are still outstanding
718            //scripts, then just try back later.
719            if ((!expired || usingPathFallback) && stillLoading) {
720                //Something is still waiting to load. Wait for it, but only
721                //if a timeout is not already in effect.
722                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
723                    checkLoadedTimeoutId = setTimeout(function () {
724                        checkLoadedTimeoutId = 0;
725                        checkLoaded();
726                    }, 50);
727                }
728            }
729
730            inCheckLoaded = false;
731        }
732
733        Module = function (map) {
734            this.events = getOwn(undefEvents, map.id) || {};
735            this.map = map;
736            this.shim = getOwn(config.shim, map.id);
737            this.depExports = [];
738            this.depMaps = [];
739            this.depMatched = [];
740            this.pluginMaps = {};
741            this.depCount = 0;
742
743            /* this.exports this.factory
744               this.depMaps = [],
745               this.enabled, this.fetched
746            */
747        };
748
749        Module.prototype = {
750            init: function (depMaps, factory, errback, options) {
751                options = options || {};
752
753                //Do not do more inits if already done. Can happen if there
754                //are multiple define calls for the same module. That is not
755                //a normal, common case, but it is also not unexpected.
756                if (this.inited) {
757                    return;
758                }
759
760                this.factory = factory;
761
762                if (errback) {
763                    //Register for errors on this module.
764                    this.on('error', errback);
765                } else if (this.events.error) {
766                    //If no errback already, but there are error listeners
767                    //on this module, set up an errback to pass to the deps.
768                    errback = bind(this, function (err) {
769                        this.emit('error', err);
770                    });
771                }
772
773                //Do a copy of the dependency array, so that
774                //source inputs are not modified. For example
775                //"shim" deps are passed in here directly, and
776                //doing a direct modification of the depMaps array
777                //would affect that config.
778                this.depMaps = depMaps && depMaps.slice(0);
779
780                this.errback = errback;
781
782                //Indicate this module has be initialized
783                this.inited = true;
784
785                this.ignore = options.ignore;
786
787                //Could have option to init this module in enabled mode,
788                //or could have been previously marked as enabled. However,
789                //the dependencies are not known until init is called. So
790                //if enabled previously, now trigger dependencies as enabled.
791                if (options.enabled || this.enabled) {
792                    //Enable this module and dependencies.
793                    //Will call this.check()
794                    this.enable();
795                } else {
796                    this.check();
797                }
798            },
799
800            defineDep: function (i, depExports) {
801                //Because of cycles, defined callback for a given
802                //export can be called more than once.
803                if (!this.depMatched[i]) {
804                    this.depMatched[i] = true;
805                    this.depCount -= 1;
806                    this.depExports[i] = depExports;
807                }
808            },
809
810            fetch: function () {
811                if (this.fetched) {
812                    return;
813                }
814                this.fetched = true;
815
816                context.startTime = (new Date()).getTime();
817
818                var map = this.map;
819
820                //If the manager is for a plugin managed resource,
821                //ask the plugin to load it now.
822                if (this.shim) {
823                    context.makeRequire(this.map, {
824                        enableBuildCallback: true
825                    })(this.shim.deps || [], bind(this, function () {
826                        return map.prefix ? this.callPlugin() : this.load();
827                    }));
828                } else {
829                    //Regular dependency.
830                    return map.prefix ? this.callPlugin() : this.load();
831                }
832            },
833
834            load: function () {
835                var url = this.map.url;
836
837                //Regular dependency.
838                if (!urlFetched[url]) {
839                    urlFetched[url] = true;
840                    context.load(this.map.id, url);
841                }
842            },
843
844            /**
845             * Checks if the module is ready to define itself, and if so,
846             * define it.
847             */
848            check: function () {
849                if (!this.enabled || this.enabling) {
850                    return;
851                }
852
853                var err, cjsModule,
854                    id = this.map.id,
855                    depExports = this.depExports,
856                    exports = this.exports,
857                    factory = this.factory;
858
859                if (!this.inited) {
860                    // Only fetch if not already in the defQueue.
861                    if (!hasProp(context.defQueueMap, id)) {
862                        this.fetch();
863                    }
864                } else if (this.error) {
865                    this.emit('error', this.error);
866                } else if (!this.defining) {
867                    //The factory could trigger another require call
868                    //that would result in checking this module to
869                    //define itself again. If already in the process
870                    //of doing that, skip this work.
871                    this.defining = true;
872
873                    if (this.depCount < 1 && !this.defined) {
874                        if (isFunction(factory)) {
875                            //If there is an error listener, favor passing
876                            //to that instead of throwing an error. However,
877                            //only do it for define()'d  modules. require
878                            //errbacks should not be called for failures in
879                            //their callbacks (#699). However if a global
880                            //onError is set, use that.
881                            if ((this.events.error && this.map.isDefine) ||
882                                req.onError !== defaultOnError) {
883                                try {
884                                    exports = context.execCb(id, factory, depExports, exports);
885                                } catch (e) {
886                                    err = e;
887                                }
888                            } else {
889                                exports = context.execCb(id, factory, depExports, exports);
890                            }
891
892                            // Favor return value over exports. If node/cjs in play,
893                            // then will not have a return value anyway. Favor
894                            // module.exports assignment over exports object.
895                            if (this.map.isDefine && exports === undefined) {
896                                cjsModule = this.module;
897                                if (cjsModule) {
898                                    exports = cjsModule.exports;
899                                } else if (this.usingExports) {
900                                    //exports already set the defined value.
901                                    exports = this.exports;
902                                }
903                            }
904
905                            if (err) {
906                                err.requireMap = this.map;
907                                err.requireModules = this.map.isDefine ? [this.map.id] : null;
908                                err.requireType = this.map.isDefine ? 'define' : 'require';
909                                return onError((this.error = err));
910                            }
911
912                        } else {
913                            //Just a literal value
914                            exports = factory;
915                        }
916
917                        this.exports = exports;
918
919                        if (this.map.isDefine && !this.ignore) {
920                            defined[id] = exports;
921
922                            if (req.onResourceLoad) {
923                                var resLoadMaps = [];
924                                each(this.depMaps, function (depMap) {
925                                    resLoadMaps.push(depMap.normalizedMap || depMap);
926                                });
927                                req.onResourceLoad(context, this.map, resLoadMaps);
928                            }
929                        }
930
931                        //Clean up
932                        cleanRegistry(id);
933
934                        this.defined = true;
935                    }
936
937                    //Finished the define stage. Allow calling check again
938                    //to allow define notifications below in the case of a
939                    //cycle.
940                    this.defining = false;
941
942                    if (this.defined && !this.defineEmitted) {
943                        this.defineEmitted = true;
944                        this.emit('defined', this.exports);
945                        this.defineEmitComplete = true;
946                    }
947
948                }
949            },
950
951            callPlugin: function () {
952                var map = this.map,
953                    id = map.id,
954                    //Map already normalized the prefix.
955                    pluginMap = makeModuleMap(map.prefix);
956
957                //Mark this as a dependency for this plugin, so it
958                //can be traced for cycles.
959                this.depMaps.push(pluginMap);
960
961                on(pluginMap, 'defined', bind(this, function (plugin) {
962                    var load, normalizedMap, normalizedMod,
963                        bundleId = getOwn(bundlesMap, this.map.id),
964                        name = this.map.name,
965                        parentName = this.map.parentMap ? this.map.parentMap.name : null,
966                        localRequire = context.makeRequire(map.parentMap, {
967                            enableBuildCallback: true
968                        });
969
970                    //If current map is not normalized, wait for that
971                    //normalized name to load instead of continuing.
972                    if (this.map.unnormalized) {
973                        //Normalize the ID if the plugin allows it.
974                        if (plugin.normalize) {
975                            name = plugin.normalize(name, function (name) {
976                                return normalize(name, parentName, true);
977                            }) || '';
978                        }
979
980                        //prefix and name should already be normalized, no need
981                        //for applying map config again either.
982                        normalizedMap = makeModuleMap(map.prefix + '!' + name,
983                                                      this.map.parentMap,
984                                                      true);
985                        on(normalizedMap,
986                            'defined', bind(this, function (value) {
987                                this.map.normalizedMap = normalizedMap;
988                                this.init([], function () { return value; }, null, {
989                                    enabled: true,
990                                    ignore: true
991                                });
992                            }));
993
994                        normalizedMod = getOwn(registry, normalizedMap.id);
995                        if (normalizedMod) {
996                            //Mark this as a dependency for this plugin, so it
997                            //can be traced for cycles.
998                            this.depMaps.push(normalizedMap);
999
1000                            if (this.events.error) {
1001                                normalizedMod.on('error', bind(this, function (err) {
1002                                    this.emit('error', err);
1003                                }));
1004                            }
1005                            normalizedMod.enable();
1006                        }
1007
1008                        return;
1009                    }
1010
1011                    //If a paths config, then just load that file instead to
1012                    //resolve the plugin, as it is built into that paths layer.
1013                    if (bundleId) {
1014                        this.map.url = context.nameToUrl(bundleId);
1015                        this.load();
1016                        return;
1017                    }
1018
1019                    load = bind(this, function (value) {
1020                        this.init([], function () { return value; }, null, {
1021                            enabled: true
1022                        });
1023                    });
1024
1025                    load.error = bind(this, function (err) {
1026                        this.inited = true;
1027                        this.error = err;
1028                        err.requireModules = [id];
1029
1030                        //Remove temp unnormalized modules for this module,
1031                        //since they will never be resolved otherwise now.
1032                        eachProp(registry, function (mod) {
1033                            if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
1034                                cleanRegistry(mod.map.id);
1035                            }
1036                        });
1037
1038                        onError(err);
1039                    });
1040
1041                    //Allow plugins to load other code without having to know the
1042                    //context or how to 'complete' the load.
1043                    load.fromText = bind(this, function (text, textAlt) {
1044                        /*jslint evil: true */
1045                        var moduleName = map.name,
1046                            moduleMap = makeModuleMap(moduleName),
1047                            hasInteractive = useInteractive;
1048
1049                        //As of 2.1.0, support just passing the text, to reinforce
1050                        //fromText only being called once per resource. Still
1051                        //support old style of passing moduleName but discard
1052                        //that moduleName in favor of the internal ref.
1053                        if (textAlt) {
1054                            text = textAlt;
1055                        }
1056
1057                        //Turn off interactive script matching for IE for any define
1058                        //calls in the text, then turn it back on at the end.
1059                        if (hasInteractive) {
1060                            useInteractive = false;
1061                        }
1062
1063                        //Prime the system by creating a module instance for
1064                        //it.
1065                        getModule(moduleMap);
1066
1067                        //Transfer any config to this other module.
1068                        if (hasProp(config.config, id)) {
1069                            config.config[moduleName] = config.config[id];
1070                        }
1071
1072                        try {
1073                            req.exec(text);
1074                        } catch (e) {
1075                            return onError(makeError('fromtexteval',
1076                                             'fromText eval for ' + id +
1077                                            ' failed: ' + e,
1078                                             e,
1079                                             [id]));
1080                        }
1081
1082                        if (hasInteractive) {
1083                            useInteractive = true;
1084                        }
1085
1086                        //Mark this as a dependency for the plugin
1087                        //resource
1088                        this.depMaps.push(moduleMap);
1089
1090                        //Support anonymous modules.
1091                        context.completeLoad(moduleName);
1092
1093                        //Bind the value of that module to the value for this
1094                        //resource ID.
1095                        localRequire([moduleName], load);
1096                    });
1097
1098                    //Use parentName here since the plugin's name is not reliable,
1099                    //could be some weird string with no path that actually wants to
1100                    //reference the parentName's path.
1101                    plugin.load(map.name, localRequire, load, config);
1102                }));
1103
1104                context.enable(pluginMap, this);
1105                this.pluginMaps[pluginMap.id] = pluginMap;
1106            },
1107
1108            enable: function () {
1109                enabledRegistry[this.map.id] = this;
1110                this.enabled = true;
1111
1112                //Set flag mentioning that the module is enabling,
1113                //so that immediate calls to the defined callbacks
1114                //for dependencies do not trigger inadvertent load
1115                //with the depCount still being zero.
1116                this.enabling = true;
1117
1118                //Enable each dependency
1119                each(this.depMaps, bind(this, function (depMap, i) {
1120                    var id, mod, handler;
1121
1122                    if (typeof depMap === 'string') {
1123                        //Dependency needs to be converted to a depMap
1124                        //and wired up to this module.
1125                        depMap = makeModuleMap(depMap,
1126                                               (this.map.isDefine ? this.map : this.map.parentMap),
1127                                               false,
1128                                               !this.skipMap);
1129                        this.depMaps[i] = depMap;
1130
1131                        handler = getOwn(handlers, depMap.id);
1132
1133                        if (handler) {
1134                            this.depExports[i] = handler(this);
1135                            return;
1136                        }
1137
1138                        this.depCount += 1;
1139
1140                        on(depMap, 'defined', bind(this, function (depExports) {
1141                            if (this.undefed) {
1142                                return;
1143                            }
1144                            this.defineDep(i, depExports);
1145                            this.check();
1146                        }));
1147
1148                        if (this.errback) {
1149                            on(depMap, 'error', bind(this, this.errback));
1150                        } else if (this.events.error) {
1151                            // No direct errback on this module, but something
1152                            // else is listening for errors, so be sure to
1153                            // propagate the error correctly.
1154                            on(depMap, 'error', bind(this, function(err) {
1155                                this.emit('error', err);
1156                            }));
1157                        }
1158                    }
1159
1160                    id = depMap.id;
1161                    mod = registry[id];
1162
1163                    //Skip special modules like 'require', 'exports', 'module'
1164                    //Also, don't call enable if it is already enabled,
1165                    //important in circular dependency cases.
1166                    if (!hasProp(handlers, id) && mod && !mod.enabled) {
1167                        context.enable(depMap, this);
1168                    }
1169                }));
1170
1171                //Enable each plugin that is used in
1172                //a dependency
1173                eachProp(this.pluginMaps, bind(this, function (pluginMap) {
1174                    var mod = getOwn(registry, pluginMap.id);
1175                    if (mod && !mod.enabled) {
1176                        context.enable(pluginMap, this);
1177                    }
1178                }));
1179
1180                this.enabling = false;
1181
1182                this.check();
1183            },
1184
1185            on: function (name, cb) {
1186                var cbs = this.events[name];
1187                if (!cbs) {
1188                    cbs = this.events[name] = [];
1189                }
1190                cbs.push(cb);
1191            },
1192
1193            emit: function (name, evt) {
1194                each(this.events[name], function (cb) {
1195                    cb(evt);
1196                });
1197                if (name === 'error') {
1198                    //Now that the error handler was triggered, remove
1199                    //the listeners, since this broken Module instance
1200                    //can stay around for a while in the registry.
1201                    delete this.events[name];
1202                }
1203            }
1204        };
1205
1206        function callGetModule(args) {
1207            //Skip modules already defined.
1208            if (!hasProp(defined, args[0])) {
1209                getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
1210            }
1211        }
1212
1213        function removeListener(node, func, name, ieName) {
1214            //Favor detachEvent because of IE9
1215            //issue, see attachEvent/addEventListener comment elsewhere
1216            //in this file.
1217            if (node.detachEvent && !isOpera) {
1218                //Probably IE. If not it will throw an error, which will be
1219                //useful to know.
1220                if (ieName) {
1221                    node.detachEvent(ieName, func);
1222                }
1223            } else {
1224                node.removeEventListener(name, func, false);
1225            }
1226        }
1227
1228        /**
1229         * Given an event from a script node, get the requirejs info from it,
1230         * and then removes the event listeners on the node.
1231         * @param {Event} evt
1232         * @returns {Object}
1233         */
1234        function getScriptData(evt) {
1235            //Using currentTarget instead of target for Firefox 2.0's sake. Not
1236            //all old browsers will be supported, but this one was easy enough
1237            //to support and still makes sense.
1238            var node = evt.currentTarget || evt.srcElement;
1239
1240            //Remove the listeners once here.
1241            removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
1242            removeListener(node, context.onScriptError, 'error');
1243
1244            return {
1245                node: node,
1246                id: node && node.getAttribute('data-requiremodule')
1247            };
1248        }
1249
1250        function intakeDefines() {
1251            var args;
1252
1253            //Any defined modules in the global queue, intake them now.
1254            takeGlobalQueue();
1255
1256            //Make sure any remaining defQueue items get properly processed.
1257            while (defQueue.length) {
1258                args = defQueue.shift();
1259                if (args[0] === null) {
1260                    return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' +
1261                        args[args.length - 1]));
1262                } else {
1263                    //args are id, deps, factory. Should be normalized by the
1264                    //define() function.
1265                    callGetModule(args);
1266                }
1267            }
1268            context.defQueueMap = {};
1269        }
1270
1271        context = {
1272            config: config,
1273            contextName: contextName,
1274            registry: registry,
1275            defined: defined,
1276            urlFetched: urlFetched,
1277            defQueue: defQueue,
1278            defQueueMap: {},
1279            Module: Module,
1280            makeModuleMap: makeModuleMap,
1281            nextTick: req.nextTick,
1282            onError: onError,
1283
1284            /**
1285             * Set a configuration for the context.
1286             * @param {Object} cfg config object to integrate.
1287             */
1288            configure: function (cfg) {
1289                //Make sure the baseUrl ends in a slash.
1290                if (cfg.baseUrl) {
1291                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
1292                        cfg.baseUrl += '/';
1293                    }
1294                }
1295
1296                // Convert old style urlArgs string to a function.
1297                if (typeof cfg.urlArgs === 'string') {
1298                    var urlArgs = cfg.urlArgs;
1299                    cfg.urlArgs = function(id, url) {
1300                        return (url.indexOf('?') === -1 ? '?' : '&') + urlArgs;
1301                    };
1302                }
1303
1304                //Save off the paths since they require special processing,
1305                //they are additive.
1306                var shim = config.shim,
1307                    objs = {
1308                        paths: true,
1309                        bundles: true,
1310                        config: true,
1311                        map: true
1312                    };
1313
1314                eachProp(cfg, function (value, prop) {
1315                    if (objs[prop]) {
1316                        if (!config[prop]) {
1317                            config[prop] = {};
1318                        }
1319                        mixin(config[prop], value, true, true);
1320                    } else {
1321                        config[prop] = value;
1322                    }
1323                });
1324
1325                //Reverse map the bundles
1326                if (cfg.bundles) {
1327                    eachProp(cfg.bundles, function (value, prop) {
1328                        each(value, function (v) {
1329                            if (v !== prop) {
1330                                bundlesMap[v] = prop;
1331                            }
1332                        });
1333                    });
1334                }
1335
1336                //Merge shim
1337                if (cfg.shim) {
1338                    eachProp(cfg.shim, function (value, id) {
1339                        //Normalize the structure
1340                        if (isArray(value)) {
1341                            value = {
1342                                deps: value
1343                            };
1344                        }
1345                        if ((value.exports || value.init) && !value.exportsFn) {
1346                            value.exportsFn = context.makeShimExports(value);
1347                        }
1348                        shim[id] = value;
1349                    });
1350                    config.shim = shim;
1351                }
1352
1353                //Adjust packages if necessary.
1354                if (cfg.packages) {
1355                    each(cfg.packages, function (pkgObj) {
1356                        var location, name;
1357
1358                        pkgObj = typeof pkgObj === 'string' ? {name: pkgObj} : pkgObj;
1359
1360                        name = pkgObj.name;
1361                        location = pkgObj.location;
1362                        if (location) {
1363                            config.paths[name] = pkgObj.location;
1364                        }
1365
1366                        //Save pointer to main module ID for pkg name.
1367                        //Remove leading dot in main, so main paths are normalized,
1368                        //and remove any trailing .js, since different package
1369                        //envs have different conventions: some use a module name,
1370                        //some use a file name.
1371                        config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main')
1372                                     .replace(currDirRegExp, '')
1373                                     .replace(jsSuffixRegExp, '');
1374                    });
1375                }
1376
1377                //If there are any "waiting to execute" modules in the registry,
1378                //update the maps for them, since their info, like URLs to load,
1379                //may have changed.
1380                eachProp(registry, function (mod, id) {
1381                    //If module already has init called, since it is too
1382                    //late to modify them, and ignore unnormalized ones
1383                    //since they are transient.
1384                    if (!mod.inited && !mod.map.unnormalized) {
1385                        mod.map = makeModuleMap(id, null, true);
1386                    }
1387                });
1388
1389                //If a deps array or a config callback is specified, then call
1390                //require with those args. This is useful when require is defined as a
1391                //config object before require.js is loaded.
1392                if (cfg.deps || cfg.callback) {
1393                    context.require(cfg.deps || [], cfg.callback);
1394                }
1395            },
1396
1397            makeShimExports: function (value) {
1398                function fn() {
1399                    var ret;
1400                    if (value.init) {
1401                        ret = value.init.apply(global, arguments);
1402                    }
1403                    return ret || (value.exports && getGlobal(value.exports));
1404                }
1405                return fn;
1406            },
1407
1408            makeRequire: function (relMap, options) {
1409                options = options || {};
1410
1411                function localRequire(deps, callback, errback) {
1412                    var id, map, requireMod;
1413
1414                    if (options.enableBuildCallback && callback && isFunction(callback)) {
1415                        callback.__requireJsBuild = true;
1416                    }
1417
1418                    if (typeof deps === 'string') {
1419                        if (isFunction(callback)) {
1420                            //Invalid call
1421                            return onError(makeError('requireargs', 'Invalid require call'), errback);
1422                        }
1423
1424                        //If require|exports|module are requested, get the
1425                        //value for them from the special handlers. Caveat:
1426                        //this only works while module is being defined.
1427                        if (relMap && hasProp(handlers, deps)) {
1428                            return handlers[deps](registry[relMap.id]);
1429                        }
1430
1431                        //Synchronous access to one module. If require.get is
1432                        //available (as in the Node adapter), prefer that.
1433                        if (req.get) {
1434                            return req.get(context, deps, relMap, localRequire);
1435                        }
1436
1437                        //Normalize module name, if it contains . or ..
1438                        map = makeModuleMap(deps, relMap, false, true);
1439                        id = map.id;
1440
1441                        if (!hasProp(defined, id)) {
1442                            return onError(makeError('notloaded', 'Module name "' +
1443                                        id +
1444                                        '" has not been loaded yet for context: ' +
1445                                        contextName +
1446                                        (relMap ? '' : '. Use require([])')));
1447                        }
1448                        return defined[id];
1449                    }
1450
1451                    //Grab defines waiting in the global queue.
1452                    intakeDefines();
1453
1454                    //Mark all the dependencies as needing to be loaded.
1455                    context.nextTick(function () {
1456                        //Some defines could have been added since the
1457                        //require call, collect them.
1458                        intakeDefines();
1459
1460                        requireMod = getModule(makeModuleMap(null, relMap));
1461
1462                        //Store if map config should be applied to this require
1463                        //call for dependencies.
1464                        requireMod.skipMap = options.skipMap;
1465
1466                        requireMod.init(deps, callback, errback, {
1467                            enabled: true
1468                        });
1469
1470                        checkLoaded();
1471                    });
1472
1473                    return localRequire;
1474                }
1475
1476                mixin(localRequire, {
1477                    isBrowser: isBrowser,
1478
1479                    /**
1480                     * Converts a module name + .extension into an URL path.
1481                     * *Requires* the use of a module name. It does not support using
1482                     * plain URLs like nameToUrl.
1483                     */
1484                    toUrl: function (moduleNamePlusExt) {
1485                        var ext,
1486                            index = moduleNamePlusExt.lastIndexOf('.'),
1487                            segment = moduleNamePlusExt.split('/')[0],
1488                            isRelative = segment === '.' || segment === '..';
1489
1490                        //Have a file extension alias, and it is not the
1491                        //dots from a relative path.
1492                        if (index !== -1 && (!isRelative || index > 1)) {
1493                            ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
1494                            moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
1495                        }
1496
1497                        return context.nameToUrl(normalize(moduleNamePlusExt,
1498                                                relMap && relMap.id, true), ext,  true);
1499                    },
1500
1501                    defined: function (id) {
1502                        return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
1503                    },
1504
1505                    specified: function (id) {
1506                        id = makeModuleMap(id, relMap, false, true).id;
1507                        return hasProp(defined, id) || hasProp(registry, id);
1508                    }
1509                });
1510
1511                //Only allow undef on top level require calls
1512                if (!relMap) {
1513                    localRequire.undef = function (id) {
1514                        //Bind any waiting define() calls to this context,
1515                        //fix for #408
1516                        takeGlobalQueue();
1517
1518                        var map = makeModuleMap(id, relMap, true),
1519                            mod = getOwn(registry, id);
1520
1521                        mod.undefed = true;
1522                        removeScript(id);
1523
1524                        delete defined[id];
1525                        delete urlFetched[map.url];
1526                        delete undefEvents[id];
1527
1528                        //Clean queued defines too. Go backwards
1529                        //in array so that the splices do not
1530                        //mess up the iteration.
1531                        eachReverse(defQueue, function(args, i) {
1532                            if (args[0] === id) {
1533                                defQueue.splice(i, 1);
1534                            }
1535                        });
1536                        delete context.defQueueMap[id];
1537
1538                        if (mod) {
1539                            //Hold on to listeners in case the
1540                            //module will be attempted to be reloaded
1541                            //using a different config.
1542                            if (mod.events.defined) {
1543                                undefEvents[id] = mod.events;
1544                            }
1545
1546                            cleanRegistry(id);
1547                        }
1548                    };
1549                }
1550
1551                return localRequire;
1552            },
1553
1554            /**
1555             * Called to enable a module if it is still in the registry
1556             * awaiting enablement. A second arg, parent, the parent module,
1557             * is passed in for context, when this method is overridden by
1558             * the optimizer. Not shown here to keep code compact.
1559             */
1560            enable: function (depMap) {
1561                var mod = getOwn(registry, depMap.id);
1562                if (mod) {
1563                    getModule(depMap).enable();
1564                }
1565            },
1566
1567            /**
1568             * Internal method used by environment adapters to complete a load event.
1569             * A load event could be a script load or just a load pass from a synchronous
1570             * load call.
1571             * @param {String} moduleName the name of the module to potentially complete.
1572             */
1573            completeLoad: function (moduleName) {
1574                var found, args, mod,
1575                    shim = getOwn(config.shim, moduleName) || {},
1576                    shExports = shim.exports;
1577
1578                takeGlobalQueue();
1579
1580                while (defQueue.length) {
1581                    args = defQueue.shift();
1582                    if (args[0] === null) {
1583                        args[0] = moduleName;
1584                        //If already found an anonymous module and bound it
1585                        //to this name, then this is some other anon module
1586                        //waiting for its completeLoad to fire.
1587                        if (found) {
1588                            break;
1589                        }
1590                        found = true;
1591                    } else if (args[0] === moduleName) {
1592                        //Found matching define call for this script!
1593                        found = true;
1594                    }
1595
1596                    callGetModule(args);
1597                }
1598                context.defQueueMap = {};
1599
1600                //Do this after the cycle of callGetModule in case the result
1601                //of those calls/init calls changes the registry.
1602                mod = getOwn(registry, moduleName);
1603
1604                if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) {
1605                    if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
1606                        if (hasPathFallback(moduleName)) {
1607                            return;
1608                        } else {
1609                            return onError(makeError('nodefine',
1610                                             'No define call for ' + moduleName,
1611                                             null,
1612                                             [moduleName]));
1613                        }
1614                    } else {
1615                        //A script that does not call define(), so just simulate
1616                        //the call for it.
1617                        callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
1618                    }
1619                }
1620
1621                checkLoaded();
1622            },
1623
1624            /**
1625             * Converts a module name to a file path. Supports cases where
1626             * moduleName may actually be just an URL.
1627             * Note that it **does not** call normalize on the moduleName,
1628             * it is assumed to have already been normalized. This is an
1629             * internal API, not a public one. Use toUrl for the public API.
1630             */
1631            nameToUrl: function (moduleName, ext, skipExt) {
1632                var paths, syms, i, parentModule, url,
1633                    parentPath, bundleId,
1634                    pkgMain = getOwn(config.pkgs, moduleName);
1635
1636                if (pkgMain) {
1637                    moduleName = pkgMain;
1638                }
1639
1640                bundleId = getOwn(bundlesMap, moduleName);
1641
1642                if (bundleId) {
1643                    return context.nameToUrl(bundleId, ext, skipExt);
1644                }
1645
1646                //If a colon is in the URL, it indicates a protocol is used and it is just
1647                //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
1648                //or ends with .js, then assume the user meant to use an url and not a module id.
1649                //The slash is important for protocol-less URLs as well as full paths.
1650                if (req.jsExtRegExp.test(moduleName)) {
1651                    //Just a plain path, not module name lookup, so just return it.
1652                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
1653                    //an extension, this method probably needs to be reworked.
1654                    url = moduleName + (ext || '');
1655                } else {
1656                    //A module that needs to be converted to a path.
1657                    paths = config.paths;
1658
1659                    syms = moduleName.split('/');
1660                    //For each module name segment, see if there is a path
1661                    //registered for it. Start with most specific name
1662                    //and work up from it.
1663                    for (i = syms.length; i > 0; i -= 1) {
1664                        parentModule = syms.slice(0, i).join('/');
1665
1666                        parentPath = getOwn(paths, parentModule);
1667                        if (parentPath) {
1668                            //If an array, it means there are a few choices,
1669                            //Choose the one that is desired
1670                            if (isArray(parentPath)) {
1671                                parentPath = parentPath[0];
1672                            }
1673                            syms.splice(0, i, parentPath);
1674                            break;
1675                        }
1676                    }
1677
1678                    //Join the path parts together, then figure out if baseUrl is needed.
1679                    url = syms.join('/');
1680                    url += (ext || (/^data\:|^blob\:|\?/.test(url) || skipExt ? '' : '.js'));
1681                    url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
1682                }
1683
1684                return config.urlArgs && !/^blob\:/.test(url) ?
1685                       url + config.urlArgs(moduleName, url) : url;
1686            },
1687
1688            //Delegates to req.load. Broken out as a separate function to
1689            //allow overriding in the optimizer.
1690            load: function (id, url) {
1691                req.load(context, id, url);
1692            },
1693
1694            /**
1695             * Executes a module callback function. Broken out as a separate function
1696             * solely to allow the build system to sequence the files in the built
1697             * layer in the right sequence.
1698             *
1699             * @private
1700             */
1701            execCb: function (name, callback, args, exports) {
1702                return callback.apply(exports, args);
1703            },
1704
1705            /**
1706             * callback for script loads, used to check status of loading.
1707             *
1708             * @param {Event} evt the event from the browser for the script
1709             * that was loaded.
1710             */
1711            onScriptLoad: function (evt) {
1712                //Using currentTarget instead of target for Firefox 2.0's sake. Not
1713                //all old browsers will be supported, but this one was easy enough
1714                //to support and still makes sense.
1715                if (evt.type === 'load' ||
1716                        (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
1717                    //Reset interactive script so a script node is not held onto for
1718                    //to long.
1719                    interactiveScript = null;
1720
1721                    //Pull out the name of the module and the context.
1722                    var data = getScriptData(evt);
1723                    context.completeLoad(data.id);
1724                }
1725            },
1726
1727            /**
1728             * Callback for script errors.
1729             */
1730            onScriptError: function (evt) {
1731                var data = getScriptData(evt);
1732                if (!hasPathFallback(data.id)) {
1733                    var parents = [];
1734                    eachProp(registry, function(value, key) {
1735                        if (key.indexOf('_@r') !== 0) {
1736                            each(value.depMaps, function(depMap) {
1737                                if (depMap.id === data.id) {
1738                                    parents.push(key);
1739                                    return true;
1740                                }
1741                            });
1742                        }
1743                    });
1744                    return onError(makeError('scripterror', 'Script error for "' + data.id +
1745                                             (parents.length ?
1746                                             '", needed by: ' + parents.join(', ') :
1747                                             '"'), evt, [data.id]));
1748                }
1749            }
1750        };
1751
1752        context.require = context.makeRequire();
1753        return context;
1754    }
1755
1756    /**
1757     * Main entry point.
1758     *
1759     * If the only argument to require is a string, then the module that
1760     * is represented by that string is fetched for the appropriate context.
1761     *
1762     * If the first argument is an array, then it will be treated as an array
1763     * of dependency string names to fetch. An optional function callback can
1764     * be specified to execute when all of those dependencies are available.
1765     *
1766     * Make a local req variable to help Caja compliance (it assumes things
1767     * on a require that are not standardized), and to give a short
1768     * name for minification/local scope use.
1769     */
1770    req = requirejs = function (deps, callback, errback, optional) {
1771
1772        //Find the right context, use default
1773        var context, config,
1774            contextName = defContextName;
1775
1776        // Determine if have config object in the call.
1777        if (!isArray(deps) && typeof deps !== 'string') {
1778            // deps is a config object
1779            config = deps;
1780            if (isArray(callback)) {
1781                // Adjust args if there are dependencies
1782                deps = callback;
1783                callback = errback;
1784                errback = optional;
1785            } else {
1786                deps = [];
1787            }
1788        }
1789
1790        if (config && config.context) {
1791            contextName = config.context;
1792        }
1793
1794        context = getOwn(contexts, contextName);
1795        if (!context) {
1796            context = contexts[contextName] = req.s.newContext(contextName);
1797        }
1798
1799        if (config) {
1800            context.configure(config);
1801        }
1802
1803        return context.require(deps, callback, errback);
1804    };
1805
1806    /**
1807     * Support require.config() to make it easier to cooperate with other
1808     * AMD loaders on globally agreed names.
1809     */
1810    req.config = function (config) {
1811        return req(config);
1812    };
1813
1814    /**
1815     * Execute something after the current tick
1816     * of the event loop. Override for other envs
1817     * that have a better solution than setTimeout.
1818     * @param  {Function} fn function to execute later.
1819     */
1820    req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
1821        setTimeout(fn, 4);
1822    } : function (fn) { fn(); };
1823
1824    /**
1825     * Export require as a global, but only if it does not already exist.
1826     */
1827    if (!require) {
1828        require = req;
1829    }
1830
1831    req.version = version;
1832
1833    //Used to filter out dependencies that are already paths.
1834    req.jsExtRegExp = /^\/|:|\?|\.js$/;
1835    req.isBrowser = isBrowser;
1836    s = req.s = {
1837        contexts: contexts,
1838        newContext: newContext
1839    };
1840
1841    //Create default context.
1842    req({});
1843
1844    //Exports some context-sensitive methods on global require.
1845    each([
1846        'toUrl',
1847        'undef',
1848        'defined',
1849        'specified'
1850    ], function (prop) {
1851        //Reference from contexts instead of early binding to default context,
1852        //so that during builds, the latest instance of the default context
1853        //with its config gets used.
1854        req[prop] = function () {
1855            var ctx = contexts[defContextName];
1856            return ctx.require[prop].apply(ctx, arguments);
1857        };
1858    });
1859
1860    if (isBrowser) {
1861        head = s.head = document.getElementsByTagName('head')[0];
1862        //If BASE tag is in play, using appendChild is a problem for IE6.
1863        //When that browser dies, this can be removed. Details in this jQuery bug:
1864        //http://dev.jquery.com/ticket/2709
1865        baseElement = document.getElementsByTagName('base')[0];
1866        if (baseElement) {
1867            head = s.head = baseElement.parentNode;
1868        }
1869    }
1870
1871    /**
1872     * Any errors that require explicitly generates will be passed to this
1873     * function. Intercept/override it if you want custom error handling.
1874     * @param {Error} err the error object.
1875     */
1876    req.onError = defaultOnError;
1877
1878    /**
1879     * Creates the node for the load command. Only used in browser envs.
1880     */
1881    req.createNode = function (config, moduleName, url) {
1882        var node = config.xhtml ?
1883                document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
1884                document.createElement('script');
1885        node.type = config.scriptType || 'text/javascript';
1886        node.charset = 'utf-8';
1887        node.async = true;
1888        return node;
1889    };
1890
1891    /**
1892     * Does the request to load a module for the browser case.
1893     * Make this a separate function to allow other environments
1894     * to override it.
1895     *
1896     * @param {Object} context the require context to find state.
1897     * @param {String} moduleName the name of the module.
1898     * @param {Object} url the URL to the module.
1899     */
1900    req.load = function (context, moduleName, url) {
1901        var config = (context && context.config) || {},
1902            node;
1903        if (isBrowser) {
1904            //In the browser so use a script tag
1905            node = req.createNode(config, moduleName, url);
1906
1907            node.setAttribute('data-requirecontext', context.contextName);
1908            node.setAttribute('data-requiremodule', moduleName);
1909
1910            //Set up load listener. Test attachEvent first because IE9 has
1911            //a subtle issue in its addEventListener and script onload firings
1912            //that do not match the behavior of all other browsers with
1913            //addEventListener support, which fire the onload event for a
1914            //script right after the script execution. See:
1915            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
1916            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
1917            //script execution mode.
1918            if (node.attachEvent &&
1919                    //Check if node.attachEvent is artificially added by custom script or
1920                    //natively supported by browser
1921                    //read https://github.com/requirejs/requirejs/issues/187
1922                    //if we can NOT find [native code] then it must NOT natively supported.
1923                    //in IE8, node.attachEvent does not have toString()
1924                    //Note the test for "[native code" with no closing brace, see:
1925                    //https://github.com/requirejs/requirejs/issues/273
1926                    !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
1927                    !isOpera) {
1928                //Probably IE. IE (at least 6-8) do not fire
1929                //script onload right after executing the script, so
1930                //we cannot tie the anonymous define call to a name.
1931                //However, IE reports the script as being in 'interactive'
1932                //readyState at the time of the define call.
1933                useInteractive = true;
1934
1935                node.attachEvent('onreadystatechange', context.onScriptLoad);
1936                //It would be great to add an error handler here to catch
1937                //404s in IE9+. However, onreadystatechange will fire before
1938                //the error handler, so that does not help. If addEventListener
1939                //is used, then IE will fire error before load, but we cannot
1940                //use that pathway given the connect.microsoft.com issue
1941                //mentioned above about not doing the 'script execute,
1942                //then fire the script load event listener before execute
1943                //next script' that other browsers do.
1944                //Best hope: IE10 fixes the issues,
1945                //and then destroys all installs of IE 6-9.
1946                //node.attachEvent('onerror', context.onScriptError);
1947            } else {
1948                node.addEventListener('load', context.onScriptLoad, false);
1949                node.addEventListener('error', context.onScriptError, false);
1950            }
1951            node.src = url;
1952
1953            //Calling onNodeCreated after all properties on the node have been
1954            //set, but before it is placed in the DOM.
1955            if (config.onNodeCreated) {
1956                config.onNodeCreated(node, config, moduleName, url);
1957            }
1958
1959            //For some cache cases in IE 6-8, the script executes before the end
1960            //of the appendChild execution, so to tie an anonymous define
1961            //call to the module name (which is stored on the node), hold on
1962            //to a reference to this node, but clear after the DOM insertion.
1963            currentlyAddingScript = node;
1964            if (baseElement) {
1965                head.insertBefore(node, baseElement);
1966            } else {
1967                head.appendChild(node);
1968            }
1969            currentlyAddingScript = null;
1970
1971            return node;
1972        } else if (isWebWorker) {
1973            try {
1974                //In a web worker, use importScripts. This is not a very
1975                //efficient use of importScripts, importScripts will block until
1976                //its script is downloaded and evaluated. However, if web workers
1977                //are in play, the expectation is that a build has been done so
1978                //that only one script needs to be loaded anyway. This may need
1979                //to be reevaluated if other use cases become common.
1980
1981                // Post a task to the event loop to work around a bug in WebKit
1982                // where the worker gets garbage-collected after calling
1983                // importScripts(): https://webkit.org/b/153317
1984                setTimeout(function() {}, 0);
1985                importScripts(url);
1986
1987                //Account for anonymous modules
1988                context.completeLoad(moduleName);
1989            } catch (e) {
1990                context.onError(makeError('importscripts',
1991                                'importScripts failed for ' +
1992                                    moduleName + ' at ' + url,
1993                                e,
1994                                [moduleName]));
1995            }
1996        }
1997    };
1998
1999    function getInteractiveScript() {
2000        if (interactiveScript && interactiveScript.readyState === 'interactive') {
2001            return interactiveScript;
2002        }
2003
2004        eachReverse(scripts(), function (script) {
2005            if (script.readyState === 'interactive') {
2006                return (interactiveScript = script);
2007            }
2008        });
2009        return interactiveScript;
2010    }
2011
2012    //Look for a data-main script attribute, which could also adjust the baseUrl.
2013    if (isBrowser && !cfg.skipDataMain) {
2014        //Figure out baseUrl. Get it from the script tag with require.js in it.
2015        eachReverse(scripts(), function (script) {
2016            //Set the 'head' where we can append children by
2017            //using the script's parent.
2018            if (!head) {
2019                head = script.parentNode;
2020            }
2021
2022            //Look for a data-main attribute to set main script for the page
2023            //to load. If it is there, the path to data main becomes the
2024            //baseUrl, if it is not already set.
2025            dataMain = script.getAttribute('data-main');
2026            if (dataMain) {
2027                //Preserve dataMain in case it is a path (i.e. contains '?')
2028                mainScript = dataMain;
2029
2030                //Set final baseUrl if there is not already an explicit one,
2031                //but only do so if the data-main value is not a loader plugin
2032                //module ID.
2033                if (!cfg.baseUrl && mainScript.indexOf('!') === -1) {
2034                    //Pull off the directory of data-main for use as the
2035                    //baseUrl.
2036                    src = mainScript.split('/');
2037                    mainScript = src.pop();
2038                    subPath = src.length ? src.join('/')  + '/' : './';
2039
2040                    cfg.baseUrl = subPath;
2041                }
2042
2043                //Strip off any trailing .js since mainScript is now
2044                //like a module name.
2045                mainScript = mainScript.replace(jsSuffixRegExp, '');
2046
2047                //If mainScript is still a path, fall back to dataMain
2048                if (req.jsExtRegExp.test(mainScript)) {
2049                    mainScript = dataMain;
2050                }
2051
2052                //Put the data-main script in the files to load.
2053                cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];
2054
2055                return true;
2056            }
2057        });
2058    }
2059
2060    /**
2061     * The function that handles definitions of modules. Differs from
2062     * require() in that a string for the module should be the first argument,
2063     * and the function to execute after dependencies are loaded should
2064     * return a value to define the module corresponding to the first argument's
2065     * name.
2066     */
2067    define = function (name, deps, callback) {
2068        var node, context;
2069
2070        //Allow for anonymous modules
2071        if (typeof name !== 'string') {
2072            //Adjust args appropriately
2073            callback = deps;
2074            deps = name;
2075            name = null;
2076        }
2077
2078        //This module may not have dependencies
2079        if (!isArray(deps)) {
2080            callback = deps;
2081            deps = null;
2082        }
2083
2084        //If no name, and callback is a function, then figure out if it a
2085        //CommonJS thing with dependencies.
2086        if (!deps && isFunction(callback)) {
2087            deps = [];
2088            //Remove comments from the callback string,
2089            //look for require calls, and pull them into the dependencies,
2090            //but only if there are function args.
2091            if (callback.length) {
2092                callback
2093                    .toString()
2094                    .replace(commentRegExp, commentReplace)
2095                    .replace(cjsRequireRegExp, function (match, dep) {
2096                        deps.push(dep);
2097                    });
2098
2099                //May be a CommonJS thing even without require calls, but still
2100                //could use exports, and module. Avoid doing exports and module
2101                //work though if it just needs require.
2102                //REQUIRES the function to expect the CommonJS variables in the
2103                //order listed below.
2104                deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
2105            }
2106        }
2107
2108        //If in IE 6-8 and hit an anonymous define() call, do the interactive
2109        //work.
2110        if (useInteractive) {
2111            node = currentlyAddingScript || getInteractiveScript();
2112            if (node) {
2113                if (!name) {
2114                    name = node.getAttribute('data-requiremodule');
2115                }
2116                context = contexts[node.getAttribute('data-requirecontext')];
2117            }
2118        }
2119
2120        //Always save off evaluating the def call until the script onload handler.
2121        //This allows multiple modules to be in a file without prematurely
2122        //tracing dependencies, and allows for anonymous module support,
2123        //where the module name is not known until the script onload event
2124        //occurs. If no context, use the global queue, and get it processed
2125        //in the onscript load callback.
2126        if (context) {
2127            context.defQueue.push([name, deps, callback]);
2128            context.defQueueMap[name] = true;
2129        } else {
2130            globalDefQueue.push([name, deps, callback]);
2131        }
2132    };
2133
2134    define.amd = {
2135        jQuery: true
2136    };
2137
2138    /**
2139     * Executes the text. Normally just uses eval, but can be modified
2140     * to use a better, environment-specific call. Only used for transpiling
2141     * loader plugins, not for plain JS modules.
2142     * @param {String} text the text to execute/evaluate.
2143     */
2144    req.exec = function (text) {
2145        /*jslint evil: true */
2146        return eval(text);
2147    };
2148
2149    //Set up with config info.
2150    req(cfg);
2151}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));
2152
2153requirejs.config({
2154    baseUrl: PORTAL_URL,
2155    paths: {
2156    "mockup-patterns-datatables": "++resource++mockup/datatables/pattern", 
2157    "faceted-widgets-criteria-view": "++resource++eea.facetednavigation.widgets.criteria.view", 
2158    "datatables.net-fixedcolumns": "++plone++static/components/datatables.net-fixedcolumns/js/dataTables.fixedColumns.min", 
2159    "faceted-widgets-range-view": "++resource++eea.facetednavigation.widgets.range.view", 
2160    "less": "++plone++static/components/less/dist/less", 
2161    "text": "++plone++static/components/requirejs-text/text", 
2162    "datatables.net-colreorder": "++plone++static/components/datatables.net-colreorder/js/dataTables.colReorder.min", 
2163    "faceted-widgets-select-view": "++resource++eea.facetednavigation.widgets.select.view", 
2164    "datatables.net-keytable": "++plone++static/components/datatables.net-keytable/js/dataTables.keyTable.min", 
2165    "mockup-patterns-tinymce": "++resource++mockup/tinymce/pattern", 
2166    "mockup-router": "++resource++mockupjs/router", 
2167    "mockup-patterns-relateditems-url": "++resource++mockup/relateditems", 
2168    "jquery.event.drop": "++resource++mockuplib/jquery.event.drop", 
2169    "tinymce-autosave": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autosave/plugin", 
2170    "tinymce-charmap": "++plone++static/components/tinymce-builded/js/tinymce/plugins/charmap/plugin", 
2171    "faceted-widgets-path-tree": "++resource++eea.facetednavigation.widgets.path.tree", 
2172    "faceted-navigation-edit": "++resource++eea.faceted-navigation-edit", 
2173    "faceted-navigation-view": "++resource++eea.faceted-navigation", 
2174    "z3cform_datagridfield_js": "++resource++collective.z3cform.datagridfield/datagridfield", 
2175    "faceted-widgets-resultsfilter-edit": "++resource++eea.facetednavigation.widgets.resultsfilter.edit", 
2176    "mockup-patterns-moment": "++resource++mockup/moment/pattern", 
2177    "plone-app-event": "++plone++plone.app.event/event", 
2178    "faceted-widgets-resultsfilter-view": "++resource++eea.facetednavigation.widgets.resultsfilter.view", 
2179    "tinymce-fullscreen": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullscreen/plugin", 
2180    "tinymce-noneditable": "++plone++static/components/tinymce-builded/js/tinymce/plugins/noneditable/plugin", 
2181    "jstree": "++resource++jquery.jstree/jquery.tree", 
2182    "datatables.net-buttons-colvis": "++plone++static/components/datatables.net-buttons/js/buttons.colVis.min", 
2183    "ace-mode-javascript": "++plone++static/components/ace-builds/src/mode-javascript", 
2184    "resource-collective-polls-js-jquery-tasksplease-js": "++resource++collective.polls/js/jquery.tasksplease", 
2185    "select2uislider": "++resource++jquery.select2uislider/selectToUISlider.jQuery", 
2186    "tinymce-preview": "++plone++static/components/tinymce-builded/js/tinymce/plugins/preview/plugin", 
2187    "mockup-patterns-tree": "++resource++mockup/tree/pattern", 
2188    "tinymce-pagebreak": "++plone++static/components/tinymce-builded/js/tinymce/plugins/pagebreak/plugin", 
2189    "mockup-ui-url": "++resource++mockupjs/ui", 
2190    "jqtree": "++plone++static/components/jqtree/tree.jquery", 
2191    "datatables.net": "++plone++static/components/datatables.net/js/jquery.dataTables", 
2192    "mockup-i18n": "++resource++mockupjs/i18n", 
2193    "underscore": "++plone++static/components/underscore/underscore", 
2194    "faceted-navigation-expand": "++resource++eea.faceted-navigation-expand", 
2195    "pat-logger": "++plone++static/components/patternslib/src/core/logger", 
2196    "datatables.net-responsive-bs": "++plone++static/components/datatables.net-responsive-bs/js/responsive.bootstrap.min", 
2197    "ace-mode-text": "++plone++static/components/ace-builds/src/mode-text", 
2198    "backbone.paginator": "++plone++static/components/backbone.paginator/lib/backbone.paginator", 
2199    "faceted-widgets-date-edit": "++resource++eea.facetednavigation.widgets.date.edit", 
2200    "tinymce-tabfocus": "++plone++static/components/tinymce-builded/js/tinymce/plugins/tabfocus/plugin", 
2201    "mockup-patterns-relateditems-upload": "++resource++mockup/relateditems/upload", 
2202    "faceted-widgets-tagscloud-view": "++resource++eea.facetednavigation.widgets.tagscloud.view", 
2203    "tinymce-fullpage": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullpage/plugin", 
2204    "tinymce-compat3x": "++plone++static/components/tinymce-builded/js/tinymce/plugins/compat3x/plugin", 
2205    "pat-jquery-ext": "++plone++static/components/patternslib/src/core/jquery-ext", 
2206    "faceted-widgets-radio-view": "++resource++eea.facetednavigation.widgets.radio.view", 
2207    "datatables.net-buttons": "++plone++static/components/datatables.net-buttons/js/dataTables.buttons.min", 
2208    "mockup-patterns-thememapper": "++resource++mockup/thememapper/pattern", 
2209    "datatables.net-responsive": "++plone++static/components/datatables.net-responsive/js/dataTables.responsive.min", 
2210    "mockup-patterns-filemanager-url": "++resource++mockup/filemanager", 
2211    "mockup-patterns-structureupdater": "++resource++mockup/structure/pattern-structureupdater", 
2212    "bootstrap-transition": "++plone++static/components/bootstrap/js/transition", 
2213    "faceted-widgets-tal-view": "++resource++eea.facetednavigation.widgets.tal.view", 
2214    "picker.time": "++plone++static/components/pickadate/lib/picker.time", 
2215    "tinymce-spellchecker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/spellchecker/plugin", 
2216    "faceted-widgets-debug-edit": "++resource++eea.facetednavigation.widgets.debug.edit", 
2217    "mockup-patterns-tinymce-url": "++resource++mockup/tinymce", 
2218    "mockup-patterns-preventdoublesubmit": "++resource++mockup/preventdoublesubmit/pattern", 
2219    "tinymce-visualchars": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualchars/plugin", 
2220    "expect": "++plone++static/components/expect/index", 
2221    "mosaic-url": "++plone++mosaic/js", 
2222    "datatables.net-fixedheader": "++plone++static/components/datatables.net-fixedheader/js/dataTables.fixedHeader.min", 
2223    "tinymce-anchor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/anchor/plugin", 
2224    "mockup-patterns-filemanager": "++resource++mockup/filemanager/pattern", 
2225    "datatables.net-bs": "++plone++static/components/datatables.net-bs/js/dataTables.bootstrap", 
2226    "mockup-patterns-backdrop": "++resource++mockup/backdrop/pattern", 
2227    "mockup-patterns-cookietrigger": "++resource++mockup/cookietrigger/pattern", 
2228    "faceted-widgets-portlet-edit": "++resource++eea.facetednavigation.widgets.portlet.edit", 
2229    "tinymce-save": "++plone++static/components/tinymce-builded/js/tinymce/plugins/save/plugin", 
2230    "mockup-patterns-modal": "++resource++mockup/modal/pattern", 
2231    "jquery.cookie": "++plone++static/components/jquery.cookie/jquery.cookie", 
2232    "faceted-widgets-autocomplete-view": "++resource++eea.facetednavigation.widgets.autocomplete.view", 
2233    "tinymce-wordcount": "++plone++static/components/tinymce-builded/js/tinymce/plugins/wordcount/plugin", 
2234    "mockup-utils": "++resource++mockupjs/utils", 
2235    "faceted-navigation-independent": "++resource++eea.faceted-navigation-independent", 
2236    "tinymce-advlist": "++plone++static/components/tinymce-builded/js/tinymce/plugins/advlist/plugin", 
2237    "plone-patterns-portletmanager": "++resource++manage-portlets", 
2238    "pat-compat": "++plone++static/components/patternslib/src/core/compat", 
2239    "jquery.browser": "++plone++static/components/jquery.browser/dist/jquery.browser", 
2240    "tinymce-modern-theme": "++plone++static/components/tinymce-builded/js/tinymce/themes/modern/theme", 
2241    "datatables.net-buttons-print": "++plone++static/components/datatables.net-buttons/js/buttons.print.min", 
2242    "tinymce-paste": "++plone++static/components/tinymce-builded/js/tinymce/plugins/paste/plugin", 
2243    "resource-collective-polls-js-jquery-flot-pie-js": "++resource++collective.polls/js/jquery.flot.pie", 
2244    "resource-plone-app-discussion-javascripts-comments": "++resource++plone.app.discussion.javascripts/comments", 
2245    "faceted-widgets-resultsperpage-edit": "++resource++eea.facetednavigation.widgets.resultsperpage.edit", 
2246    "faceted-widgets-etag-view": "++resource++eea.facetednavigation.widgets.etag.view", 
2247    "faceted-widgets-range-edit": "++resource++eea.facetednavigation.widgets.range.edit", 
2248    "js-shortcuts": "++plone++static/components/js-shortcuts/js-shortcuts", 
2249    "faceted-widgets-debug-view": "++resource++eea.facetednavigation.widgets.debug.view", 
2250    "tinymce-bbcode": "++plone++static/components/tinymce-builded/js/tinymce/plugins/bbcode/plugin", 
2251    "faceted-widgets-criteria-edit": "++resource++eea.facetednavigation.widgets.criteria.edit", 
2252    "mockup-patterns-querystring": "++resource++mockup/querystring/pattern", 
2253    "faceted-widgets-path-view": "++resource++eea.facetednavigation.widgets.path.view", 
2254    "logging": "++plone++static/components/logging/src/logging", 
2255    "ace": "++plone++static/components/ace-builds/src/ace", 
2256    "mockup-patterns-textareamimetypeselector": "++resource++mockup/textareamimetypeselector/pattern", 
2257    "moment": "++plone++static/components/moment/min/moment-with-locales.min", 
2258    "faceted-widgets-sorting-edit": "++resource++eea.facetednavigation.widgets.sorting.edit", 
2259    "faceted-widgets-tagscloud-edit": "++resource++eea.facetednavigation.widgets.tagscloud.edit", 
2260    "mockup-patterns-thememapper-url": "++resource++mockup/thememapper", 
2261    "tinymce-autolink": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autolink/plugin", 
2262    "jqtree-contextmenu": "++plone++static/components/cs-jqtree-contextmenu/src/jqTreeContextMenu", 
2263    "picker": "++plone++static/components/pickadate/lib/picker", 
2264    "mockup-patterns-structure-url": "++resource++mockup/structure", 
2265    "tinymce-autoresize": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autoresize/plugin", 
2266    "tinymce-image": "++plone++static/components/tinymce-builded/js/tinymce/plugins/image/plugin", 
2267    "ajaxfileupload": "++resource++jquery.ajaxfileupload", 
2268    "marked": "++plone++static/components/marked/lib/marked", 
2269    "ace-mode-css": "++plone++static/components/ace-builds/src/mode-css", 
2270    "faceted-widgets-checkbox-view": "++resource++eea.facetednavigation.widgets.checkbox.view", 
2271    "pat-registry": "++plone++static/components/patternslib/src/core/registry", 
2272    "faceted-widgets-text-edit": "++resource++eea.facetednavigation.widgets.text.edit", 
2273    "plone": "++resource++plone", 
2274    "resource-plone-app-jquerytools-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.overlay", 
2275    "mockup-patterns-select2": "++resource++mockup/select2/pattern", 
2276    "mockup-patterns-structure": "++resource++mockup/structure/pattern", 
2277    "tinymce-textcolor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textcolor/plugin", 
2278    "resource-collective-polls-js-polls-js": "++resource++collective.polls/js/polls", 
2279    "faceted-widgets-text-view": "++resource++eea.facetednavigation.widgets.text.view", 
2280    "datatables.net-buttons-html5": "++plone++static/components/datatables.net-buttons/js/buttons.html5.min", 
2281    "jquery.recurrenceinput": "++plone++static/components/jquery.recurrenceinput.js/src/jquery.recurrenceinput", 
2282    "jquery.form": "++plone++static/components/jquery-form/jquery.form", 
2283    "bbq": "++resource++jquery.bbq", 
2284    "pat-utils": "++plone++static/components/patternslib/src/core/utils", 
2285    "mockup-patterns-sortable": "++resource++mockup/sortable/pattern", 
2286    "tinymce-template": "++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin", 
2287    "faceted-widgets-alphabets-view": "++resource++eea.facetednavigation.widgets.alphabets.view", 
2288    "bootstrap-dropdown": "++plone++static/components/bootstrap/js/dropdown", 
2289    "mockup-patterns-contentloader": "++resource++mockup/contentloader/pattern", 
2290    "datatables.net-select": "++plone++static/components/datatables.net-select/js/dataTables.select.min", 
2291    "faceted-widgets-portlet-view": "++resource++eea.facetednavigation.widgets.portlet.view", 
2292    "tinymce-lists": "++plone++static/components/tinymce-builded/js/tinymce/plugins/lists/plugin", 
2293    "bootstrap-alert": "++plone++static/components/bootstrap/js/alert", 
2294    "tinymce-textpattern": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textpattern/plugin", 
2295    "tinymce-emoticons": "++plone++static/components/tinymce-builded/js/tinymce/plugins/emoticons/plugin", 
2296    "resourceregistry": "++plone++static/resourceregistry", 
2297    "faceted-widgets-resultsperpage-view": "++resource++eea.facetednavigation.widgets.resultsperpage.view", 
2298    "tinymce-table": "++plone++static/components/tinymce-builded/js/tinymce/plugins/table/plugin", 
2299    "tagcloud": "++resource++jquery.tagcloud", 
2300    "jquery": "++plone++static/components/jquery/dist/jquery.min", 
2301    "jquery.event.drag": "++resource++mockuplib/jquery.event.drag", 
2302    "translate": "++resource++mockupjs/i18n-wrapper", 
2303    "mockup-patterns-pickadate": "++resource++mockup/pickadate/pattern", 
2304    "mockup-patterns-recurrence": "++resource++mockup/recurrence/pattern", 
2305    "faceted-widgets-radio-edit": "++resource++eea.facetednavigation.widgets.radio.edit", 
2306    "tinymce-print": "++plone++static/components/tinymce-builded/js/tinymce/plugins/print/plugin", 
2307    "faceted-widgets-sorting-view": "++resource++eea.facetednavigation.widgets.sorting.view", 
2308    "tinymce-link": "++plone++static/components/tinymce-builded/js/tinymce/plugins/link/plugin", 
2309    "faceted-widgets-date-view": "++resource++eea.facetednavigation.widgets.date.view", 
2310    "jqueryui": "collective.js.jqueryui.custom.min", 
2311    "datatables.net-rowreorder": "++plone++static/components/datatables.net-rowreorder/js/dataTables.rowReorder.min", 
2312    "rjs": "++plone++static/components/r.js/dist/r", 
2313    "mockup-patterns-upload-url": "++resource++mockup/upload", 
2314    "faceted-widgets-tal-edit": "++resource++eea.facetednavigation.widgets.tal.edit", 
2315    "tinymce-hr": "++plone++static/components/tinymce-builded/js/tinymce/plugins/hr/plugin", 
2316    "select2": "++resource++select2/select2.min", 
2317    "tinymce-media": "++plone++static/components/tinymce-builded/js/tinymce/plugins/media/plugin", 
2318    "mockup-patterns-texteditor": "++resource++mockup/texteditor/p
2318attern", 
2319    "resource-plone-formwidget-recaptcha-recaptcha_ajax": "++resource++plone.formwidget.recaptcha/recaptcha_ajax", 
2320    "faceted-widgets-etag-edit": "++resource++eea.facetednavigation.widgets.etag.edit", 
2321    "resource-collective-polls-js-jquery-flot-js": "++resource++collective.polls/js/jquery.flot", 
2322    "mockup-patterns-tooltip": "++resource++mockup/tooltip/pattern", 
2323    "resource-plone-app-jquerytools-dateinput-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.dateinput", 
2324    "plone-logged-in": "++resource++plone-logged-in", 
2325    "faceted-widgets-multiselect-edit": "++resource++eea.facetednavigation.widgets.multiselect.edit", 
2326    "faceted-widgets-alphabets-edit": "++resource++eea.facetednavigation.widgets.alphabets.edit", 
2327    "datatables.net-autofill-bs": "++plone++static/components/datatables.net-autofill-bs/js/autoFill.bootstrap", 
2328    "faceted-widgets-daterange-edit": "++resource++eea.facetednavigation.widgets.daterange.edit", 
2329    "datatables.net-buttons-flash": "++plone++static/components/datatables.net-buttons/js/buttons.flash.min", 
2330    "tinymce-contextmenu": "++plone++static/components/tinymce-builded/js/tinymce/plugins/contextmenu/plugin", 
2331    "ace-theme-monokai": "++plone++static/components/ace-builds/src/theme-monokai", 
2332    "mockup-patterns-toggle": "++resource++mockup/toggle/pattern", 
2333    "tinymce-directionality": "++plone++static/components/tinymce-builded/js/tinymce/plugins/directionality/plugin", 
2334    "faceted-widgets-select-edit": "++resource++eea.facetednavigation.widgets.select.edit", 
2335    "faceted-widgets-daterange-view": "++resource++eea.facetednavigation.widgets.daterange.view", 
2336    "pat-base": "++plone++static/components/patternslib/src/core/base", 
2337    "plone-patterns-toolbar": "++plone++static/patterns/toolbar/src/toolbar", 
2338    "mockup-patterns-inlinevalidation": "++resource++mockup/inlinevalidation/pattern", 
2339    "thememapper": "++resource++plone.app.theming/thememapper", 
2340    "tinymce": "++plone++static/components/tinymce-builded/js/tinymce/tinymce", 
2341    "mockup-patterns-formautofocus": "++resource++mockup/formautofocus/pattern", 
2342    "mosaic-base-url": "++plone++mosaic/js", 
2343    "tinymce-visualblocks": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualblocks/plugin", 
2344    "mockup-patterns-resourceregistry-url": "++resource++mockup/resourceregistry", 
2345    "tinymce-insertdatetime": "++plone++static/components/tinymce-builded/js/tinymce/plugins/insertdatetime/plugin", 
2346    "mockup-patterns-base": "++resource++mockup/base/pattern", 
2347    "mockup-patterns-livesearch": "++resource++mockup/livesearch/pattern", 
2348    "mockup-patterns-upload": "++resource++mockup/upload/pattern", 
2349    "picker.date": "++plone++static/components/pickadate/lib/picker.date", 
2350    "datatables.net-buttons-bs": "++plone++static/components/datatables.net-buttons-bs/js/buttons.bootstrap.min", 
2351    "tinymce-searchreplace": "++plone++static/components/tinymce-builded/js/tinymce/plugins/searchreplace/plugin", 
2352    "faceted-widgets-checkbox-edit": "++resource++eea.facetednavigation.widgets.checkbox.edit", 
2353    "mockup-patterns-autotoc": "++resource++mockup/autotoc/pattern", 
2354    "resource-collective-polls-js-collective-poll-js": "++resource++collective.polls/js/collective.poll", 
2355    "tinymce-importcss": "++plone++static/components/tinymce-builded/js/tinymce/plugins/importcss/plugin", 
2356    "backbone": "++plone++static/components/backbone/backbone", 
2357    "mockup-patterns-resourceregistry": "++resource++mockup/resourceregistry/pattern", 
2358    "react": "++plone++static/components/react/react", 
2359    "faceted-widgets-autocomplete-edit": "++resource++eea.facetednavigation.widgets.autocomplete.edit", 
2360    "faceted-widgets-path-edit": "++resource++eea.facetednavigation.widgets.path.edit", 
2361    "mockup-patterns-markspeciallinks": "++resource++mockup/markspeciallinks/pattern", 
2362    "sinon": "++plone++static/components/sinonjs/sinon", 
2363    "tinymce-code": "++plone++static/components/tinymce-builded/js/tinymce/plugins/code/plugin", 
2364    "faceted-widgets-multiselect-view": "++resource++eea.facetednavigation.widgets.multiselect.view", 
2365    "mosaic": "++plone++mosaic/js/mosaic.pattern", 
2366    "tinymce-colorpicker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/colorpicker/plugin", 
2367    "jquery.tmpl": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tmpl", 
2368    "mockup-patterns-formunloadalert": "++resource++mockup/formunloadalert/pattern", 
2369    "datatables.net-autofill": "++plone++static/components/datatables.net-autofill/js/dataTables.autoFill.min", 
2370    "tinymce-legacyoutput": "++plone++static/components/tinymce-builded/js/tinymce/plugins/legacyoutput/plugin", 
2371    "bootstrap-collapse": "++plone++static/components/bootstrap/js/collapse", 
2372    "JSXTransformer": "++plone++static/components/react/JSXTransformer", 
2373    "mockup-patterns-relateditems": "++resource++mockup/relateditems/pattern", 
2374    "tinymce-nonbreaking": "++plone++static/components/tinymce-builded/js/tinymce/plugins/nonbreaking/plugin", 
2375    "layouts-editor": "++plone++mosaic/js/layouts-editor", 
2376    "bootstrap-tooltip": "++plone++static/components/bootstrap/js/tooltip", 
2377    "pat-mockup-parser": "++plone++static/components/patternslib/src/core/mockup-parser", 
2378    "datatables.net-scroller": "++plone++static/components/datatables.net-scroller/js/dataTables.scroller.min", 
2379    "dropzone": "++plone++static/components/dropzone/dist/dropzone-amd-module"
2380},
2381    shim: {
2382        "resource-plone-app-jquerytools-dateinput-js": {
2383            deps: ["jquery"]
2384        },
2385        "tinymce-autoresize": {
2386            deps: ["tinymce"]
2387        },
2388        "bootstrap-transition": {
2389            exports: "window.jQuery.support.transition",
2390            deps: ["jquery"]
2391        },
2392        "tinymce-save": {
2393            deps: ["tinymce"]
2394        },
2395        "bootstrap-collapse": {
2396            exports: "window.jQuery.fn.collapse.Constructor",
2397            deps: ["jquery"]
2398        },
2399        "tinymce-code": {
2400            deps: ["tinymce"]
2401        },
2402        "tinymce-fullpage": {
2403            deps: ["tinymce"]
2404        },
2405        "tinymce-visualchars": {
2406            deps: ["tinymce"]
2407        },
2408        "expect": {
2409            exports: "window.expect"
2410        },
2411        "tinymce-spellchecker": {
2412            deps: ["tinymce"]
2413        },
2414        "jquery.event.drop": {
2415            exports: "$.drop",
2416            deps: ["jquery"]
2417        },
2418        "tinymce-anchor": {
2419            deps: ["tinymce"]
2420        },
2421        "tinymce-autosave": {
2422            deps: ["tinymce"]
2423        },
2424        "tinymce-contextmenu": {
2425            deps: ["tinymce"]
2426        },
2427        "tinymce-charmap": {
2428            deps: ["tinymce"]
2429        },
2430        "resource-plone-app-jquerytools-js": {
2431            deps: ["jquery"]
2432        },
2433        "tinymce-directionality": {
2434            deps: ["tinymce"]
2435        },
2436        "tinymce": {
2437            exports: "window.tinyMCE",
2438            init: function () { this.tinyMCE.DOM.events.domLoaded = true; return this.tinyMCE; }
2439        },
2440        "tinymce-image": {
2441            deps: ["tinymce"]
2442        },
2443        "tinymce-legacyoutput": {
2444            deps: ["tinymce"]
2445        },
2446        "tinymce-template": {
2447            deps: ["tinymce"]
2448        },
2449        "jquery.cookie": {
2450            deps: ["jquery"]
2451        },
2452        "jquery.recurrenceinput": {
2453            deps: ["jquery", "resource-plone-app-jquerytools-js", "resource-plone-app-jquerytools-dateinput-js", "jquery.tmpl"]
2454        },
2455        "tinymce-fullscreen": {
2456            deps: ["tinymce"]
2457        },
2458        "tinymce-noneditable": {
2459            deps: ["tinymce"]
2460        },
2461        "tinymce-wordcount": {
2462            deps: ["tinymce"]
2463        },
2464        "tinymce-insertdatetime": {
2465            deps: ["tinymce"]
2466        },
2467        "tinymce-advlist": {
2468            deps: ["tinymce"]
2469        },
2470        "tinymce-visualblocks": {
2471            deps: ["tinymce"]
2472        },
2473        "tinymce-searchreplace": {
2474            deps: ["tinymce"]
2475        },
2476        "jquery.browser": {
2477            deps: ["jquery"]
2478        },
2479        "picker.date": {
2480            deps: ["picker"]
2481        },
2482        "tinymce-modern-theme": {
2483            deps: ["tinymce"]
2484        },
2485        "bootstrap-dropdown": {
2486            deps: ["jquery"]
2487        },
2488        "tinymce-preview": {
2489            deps: ["tinymce"]
2490        },
2491        "tinymce-paste": {
2492            deps: ["tinymce"]
2493        },
2494        "tinymce-pagebreak": {
2495            deps: ["tinymce"]
2496        },
2497        "tinymce-importcss": {
2498            deps: ["tinymce"]
2499        },
2500        "tinymce-lists": {
2501            deps: ["tinymce"]
2502        },
2503        "bootstrap-alert": {
2504            deps: ["jquery"]
2505        },
2506        "jqtree": {
2507            deps: ["jquery"]
2508        },
2509        "tinymce-textpattern": {
2510            deps: ["tinymce"]
2511        },
2512        "backbone": {
2513            exports: "window.Backbone",
2514            deps: ["underscore", "jquery"]
2515        },
2516        "jquery.tmpl": {
2517            deps: ["jquery"]
2518        },
2519        "tinymce-emoticons": {
2520            deps: ["tinymce"]
2521        },
2522        "sinon": {
2523            exports: "window.sinon"
2524        },
2525        "tinymce-table": {
2526            deps: ["tinymce"]
2527        },
2528        "underscore": {
2529            exports: "window._"
2530        },
2531        "js-shortcuts": {
2532            deps: ["jquery"]
2533        },
2534        "tinymce-bbcode": {
2535            deps: ["tinymce"]
2536        },
2537        "tinymce-print": {
2538            deps: ["tinymce"]
2539        },
2540        "tinymce-colorpicker": {
2541            deps: ["tinymce"]
2542        },
2543        "jquery.event.drag": {
2544            deps: ["jquery"]
2545        },
2546        "backbone.paginator": {
2547            exports: "window.Backbone.Paginator",
2548            deps: ["backbone"]
2549        },
2550        "tinymce-tabfocus": {
2551            deps: ["tinymce"]
2552        },
2553        "tinymce-textcolor": {
2554            deps: ["tinymce"]
2555        },
2556        "picker.time": {
2557            deps: ["picker"]
2558        },
2559        "JSXTransformer": {
2560            exports: "window.JSXTransformer"
2561        },
2562        "tinymce-compat3x": {
2563            deps: ["tinymce"]
2564        },
2565        "tinymce-link": {
2566            deps: ["tinymce"]
2567        },
2568        "tinymce-nonbreaking": {
2569            deps: ["tinymce"]
2570        },
2571        "bootstrap-tooltip": {
2572            deps: ["jquery"]
2573        },
2574        "tinymce-hr": {
2575            deps: ["tinymce"]
2576        },
2577        "tinymce-autolink": {
2578            deps: ["tinymce"]
2579        },
2580        "jqtree-contextmenu": {
2581            deps: ["jqtree"]
2582        },
2583        "tinymce-media": {
2584            deps: ["tinymce"]
2585        }
2586    },
2587    optimize: 'uglify',
2588    wrapShim: true
2589});
2590/*global window, console*/
2591
2592require([
2593    'jquery',
2594    'pat-registry',
2595  ], function ($, patRegistry) {
2596
2597      // No globals, dude!
2598      "use strict";
2599
2600      // Local singleton object containing our functions
2601      var dataGridField2Functions = {};
2602
2603      dataGridField2Functions.getInputOrSelect = function(node) {
2604          /* Get the (first) input or select form element under the given node */
2605          var inputs = node.getElementsByTagName("input");
2606          if(inputs.length > 0) {
2607              return inputs[0];
2608          }
2609          var selects = node.getElementsByTagName("select");
2610          if(selects.length > 0) {
2611              return selects[0];
2612          }
2613          return null;
2614      };
2615
2616      dataGridField2Functions.getWidgetRows = function(currnode) {
2617          /* Return primary nodes with class of datagridwidget-row,
2618             they can be any tag: tr, div, etc. */
2619          var tbody = this.getParentByClass(currnode, "datagridwidget-body");
2620          return this.getRows(tbody);
2621      };
2622
2623      dataGridField2Functions.getRows = function(tbody) {
2624          /* Return primary nodes with class of datagridwidget-row,
2625             they can be any tag: tr, div, etc. */
2626          var rows = $(tbody).children('.datagridwidget-row');
2627          return rows;
2628      };
2629
2630
2631      /**
2632       * Get all visible rows of DGF
2633       *
2634       * Incl. normal rows + AA row
2635       */
2636      dataGridField2Functions.getVisibleRows = function(tbody) {
2637          var rows = this.getRows(tbody);
2638          // We rape jQuery.filter here, because of
2639          // IE8 Array.filter http://kangax.github.com/es5-compat-table/
2640
2641          // Consider "real" rows only
2642          var filteredRows = $(rows).filter(function() {
2643              var $tr = $(this);
2644              return !$tr.hasClass("datagridwidget-empty-row");
2645          });
2646          return filteredRows;
2647      };
2648
2649      /**
2650       * Handle auto insert events by auto append
2651       */
2652      dataGridField2Functions.onInsert = function(e) {
2653          var currnode = e.currentTarget;
2654          this.autoInsertRow(currnode);
2655      },
2656
2657      /**
2658       * Add a new row when changing the last row
2659       *
2660       * @param {Boolean} ensureMinimumRows we insert a special minimum row so the widget is not empty
2661       */
2662      dataGridField2Functions.autoInsertRow = function(currnode, ensureMinimumRows) {
2663          // fetch required data structure
2664          var dgf = $(dataGridField2Functions.getParentByClass(currnode, "datagridwidget-table-view"));
2665          var tbody = dataGridField2Functions.getParentByClass(currnode, "datagridwidget-body");
2666          var thisRow = dataGridField2Functions.getParentRow(currnode); // The new row we are working on
2667          var $thisRow = $(thisRow);
2668          var autoAppendMode = $(tbody).data("auto-append");
2669
2670          if($thisRow.hasClass("minimum-row")) {
2671              // The change event was not triggered on real AA row,
2672              // but on a minimum ensured row (row 0).
2673              // 1. Don't add new row
2674              // 2. Make widget to "normal" state now as the user has edited the empty row so we assume it's a real row
2675              this.supressEnsureMinimum(tbody);
2676              return;
2677          }
2678
2679          // Remove the auto-append functionality from the all rows in this widget
2680          var autoAppendHandlers = dgf.find('.auto-append .datagridwidget-cell, .auto-append .datagridwidget-block-edit-cell');
2681          autoAppendHandlers.unbind('change.dgf');
2682          $thisRow.removeClass('auto-append');
2683
2684          // Create a new row
2685          var newtr = dataGridField2Functions.createNewRow(thisRow), $newtr = $(newtr);
2686          // Add auto-append functionality to our new row
2687          $newtr.addClass('auto-append');
2688
2689          /* Put new row to DOM tree after our current row.  Do this before
2690           * reindexing to ensure that any Javascript we insert that depends on
2691           * DOM element IDs (such as plone.formwidget.autocomplete) will
2692           * pick up this row before any IDs get changed.  At this point,
2693           * we techinically have duplicate TT IDs in our document
2694           * (one for this new row, one for the hidden row), but jQuery
2695           * selectors will pick up elements in this new row first.
2696           */
2697
2698          dgf.trigger("beforeaddrowauto", [dgf, newtr]);
2699
2700          if(ensureMinimumRows) {
2701              // Add a special class so we can later deal with it
2702              $newtr.addClass("minimum-row");
2703              $newtr.insertBefore(thisRow);
2704          } else {
2705              $newtr.insertAfter(thisRow);
2706          }
2707
2708          // Re-enable auto-append change handler feature on the new auto-appended row
2709          $(dgf).find('.auto-append .datagridwidget-cell, .auto-append .datagridwidget-block-edit-cell').bind("change.dgf", $.proxy(dataGridField2Functions.onInsert, dataGridField2Functions));
2710          dataGridField2Functions.reindexRow(tbody, newtr, 'AA');
2711
2712          // Update order index to give rows correct values
2713          dataGridField2Functions.updateOrderIndex(tbody, true, ensureMinimumRows);
2714          dgf.trigger("afteraddrowauto", [dgf, newtr]);
2715      };
2716
2717      /**
2718       * Creates a new row after the the target row.
2719       *
2720       * @param {Object} currnode DOM <tr>
2721       */
2722      dataGridField2Functions.addRowAfter = function(currnode) {
2723          // fetch required data structure
2724          var tbody = this.getParentByClass(currnode, "datagridwidget-body");
2725          var dgf = $(dataGridField2Functions.getParentByClass(currnode, "datagridwidget-table-view"));
2726          var thisRow = this.getParentRow(currnode);
2727          var newtr = this.createNewRow(thisRow);
2728          dgf.trigger("beforeaddrow", [dgf, newtr]);
2729          var filteredRows = this.getVisibleRows(currnode);
2730
2731          // If using auto-append we add the "real" row before AA
2732          // We have a special case when there is only one visible in the gid
2733          if (thisRow.hasClass('auto-append') && !thisRow.hasClass("minimum-row")) {
2734              $(newtr).insertBefore(thisRow);
2735          } else {
2736              $(newtr).insertAfter(thisRow);
2737          }
2738
2739          // Ensure minimum special behavior is no longer needed as we have now at least 2 rows
2740          if(thisRow.hasClass("minimum-row")) {
2741              this.supressEnsureMinimum(tbody);
2742          }
2743
2744          // update orderindex hidden fields
2745          this.updateOrderIndex(tbody, true);
2746          dgf.trigger("afteraddrow", [dgf, newtr]);
2747      };
2748
2749      /**
2750       * Creates a new row.
2751       *
2752       * The row is not inserted to the table, but is returned.
2753       *
2754       * @param {Object} <tr> or <tbody> DOM node in a table where we'll be adding the new row
2755       */
2756      dataGridField2Functions.createNewRow = function(node) {
2757          var tbody = this.getParentByClass(node, "datagridwidget-body");
2758          // hidden template row
2759          var emptyRow = $(tbody).children('.datagridwidget-empty-row').first();
2760          if(emptyRow.size() === 0) {
2761              // Ghetto assert()
2762              throw new Error("Could not locate empty template row in DGF");
2763          }
2764          var new_row = emptyRow.clone(true).removeClass('datagridwidget-empty-row');
2765
2766          // enable patternslib
2767          $(new_row).find('*[class^="dgw-disabled-pat-"]')
2768          .attr('class', function(i, cls) {
2769            return cls.replace(/dgw\-disabled-pat-/, 'pat-');
2770          });
2771          patRegistry.scan(new_row);
2772          return new_row;
2773      };
2774
2775
2776      dataGridField2Functions.removeFieldRow = function(node) {
2777          /* Remove the row in which the given node is found */
2778          var tbody = this.getParentByClass(node, "datagridwidget-body");
2779          var row = this.getParentRow(node);
2780          $(row).remove();
2781          // ensure minimum rows in non-auto-append mode, reindex if no
2782          // minimal row was added, otherwise reindexing is done by ensureMinimumRows
2783          if ($(tbody).data("auto-append") || !this.ensureMinimumRows(tbody)) {
2784              this.updateOrderIndex(tbody, false);
2785          }
2786      };
2787
2788      dataGridField2Functions.moveRow = function(currnode, direction){
2789          /* Move the given row down one */
2790          var nextRow;
2791          var dgf = $(dataGridField2Functions.getParentByClass(currnode, "datagridwidget-table-view"));
2792          var tbody = this.getParentByClass(currnode, "datagridwidget-body");
2793          var rows = this.getWidgetRows(currnode);
2794          var row = this.getParentRow(currnode);
2795          if(!row) {
2796              throw new Error("Couldn't find DataGridWidget row");
2797          }
2798          var idx = null;
2799
2800          // We can't use nextSibling because of blank text nodes in some browsers
2801          // Need to find the index of the row
2802          rows.each(function (i) {
2803              if (this == row[0]) {
2804                  idx = i;
2805              }
2806          });
2807
2808          // Abort if the current row wasn't found
2809          if (idx == null)
2810              return;
2811
2812          // The up and down should cycle through the rows, excluding the auto-append and
2813          // empty-row rows.
2814          var validrows = 0;
2815          rows.each(function (i) {
2816              if (!$(this).hasClass('datagridwidget-empty-row') && !$(this).hasClass('auto-append')) {
2817                  validrows+=1;
2818              }
2819          });
2820
2821          if (idx+1 == validrows) {
2822              if (direction == "down") {
2823                  this.moveRowToTop(row);
2824              } else {
2825                  nextRow = rows[idx-1];
2826                  this.shiftRow(nextRow, row);
2827              }
2828          } else if (idx === 0) {
2829              if (direction == "up") {
2830                  this.moveRowToBottom(row);
2831              } else {
2832                  nextRow = rows[parseInt(idx+1, 10)];
2833                  this.shiftRow(row, nextRow);
2834              }
2835          } else {
2836              if (direction == "up") {
2837                  nextRow = rows[idx-1];
2838                  this.shiftRow(nextRow, row);
2839              } else {
2840                  nextRow = rows[parseInt(idx+1, 10)];
2841                  this.shiftRow(row, nextRow);
2842              }
2843          }
2844          this.updateOrderIndex(tbody);
2845          dgf.trigger("aftermoverow", [dgf, row]);
2846      };
2847
2848      dataGridField2Functions.moveRowDown = function(currnode){
2849          this.moveRow(currnode, "down");
2850      };
2851
2852      dataGridField2Functions.moveRowUp = function(currnode){
2853          this.moveRow(currnode, "up");
2854      };
2855
2856      dataGridField2Functions.shiftRow = function(bottom, top){
2857          /* Put node top before node bottom */
2858          $(top).insertBefore(bottom);
2859      };
2860
2861      dataGridField2Functions.moveRowToTop = function (row) {
2862          var rows = this.getWidgetRows(row);
2863          $(row).insertBefore(rows[0]);
2864      };
2865
2866      dataGridField2Functions.moveRowToBottom = function (row) {
2867          var rows = this.getWidgetRows(row);
2868
2869          // make sure we insert the directly above any auto appended rows
2870          var insert_after = 0;
2871          rows.each(function (i) {
2872              if (!$(this).hasClass('datagridwidget-empty-row')  && !$(this).hasClass('auto-append')) {
2873                  insert_after = i;
2874              }
2875          });
2876          $(row).insertAfter(rows[insert_after]);
2877      };
2878
2879      /**
2880       * Fixup all attributes on all child elements that contain
2881       * the row index. The following attributes are scanned:
2882       * - name
2883       * - id
2884       * - for
2885       * - href
2886       * - data-fieldname
2887       *
2888       * On the server side, the DGF logic will rebuild rows based
2889       * on this information.
2890       *
2891       * If indexing for some reasons fails you'll get double
2892       * input values and Zope converts inputs to list, failing
2893       * in funny ways.
2894       *
2895       * @param  {DOM} tbody
2896       * @param  {DOM} row
2897       * @param  {Number} newindex
2898       */
2899      dataGridField2Functions.reindexRow = function (tbody, row, newindex) {
2900          var name_prefix = $(tbody).data('name_prefix') + '.';
2901          var id_prefix = $(tbody).data('id_prefix') + '-';
2902          var $row = $(row);
2903          var oldindex = $row.data('index');
2904
2905          function replaceIndex(el, attr, prefix) {
2906              if (el.attr(attr)) {
2907                  var val = el.attr(attr);
2908                  var pattern = new RegExp('^' + prefix + oldindex);
2909                  el.attr(attr, val.replace(pattern, prefix + newindex));
2910                  if (attr.indexOf('data-') === 0) {
2911                      var key = attr.substr(5);
2912                      var data = el.data(key);
2913                      el.data(key, data.replace(pattern, prefix + newindex));
2914                  }
2915              }
2916          }
2917
2918          // update index data
2919          $row.data('index', newindex);
2920          $row.attr('data-index', newindex);
2921
2922          $row.find('[id^="formfield-' + id_prefix + '"]').each(function(i, el) {
2923              replaceIndex($(el), 'id', 'formfield-' + id_prefix);
2924          });
2925          $row.find('[name^="' + name_prefix +'"]').each(function(i, el) {
2926              replaceIndex($(el), 'name', name_prefix);
2927          });
2928          $row.find('[id^="' + id_prefix +'"]').each(function(i, el) {
2929              replaceIndex($(el), 'id', id_prefix);
2930          });
2931          $row.find('[for^="' + id_prefix +'"]').each(function(i, el) {
2932              replaceIndex($(el), 'for', id_prefix);
2933          });
2934          $row.find('[href*="#' + id_prefix +'"]').each(function(i, el){
2935              replaceIndex($(el), 'href', '#' + id_prefix);
2936          });
2937          $row.find('[data-fieldname^="' + name_prefix + '"]').each(function(i, el) {
2938              replaceIndex($(el), 'data-fieldname', name_prefix);
2939          });
2940      };
2941
2942      /**
2943       * Stop ensure miminum special behavior.
2944       *
2945       * The caller is responsible to check there was one and only one minimum-row in the table.
2946       *
2947       * Call when data is edited for the first time or a row added.
2948       */
2949      dataGridField2Functions.supressEnsureMinimum = function(tbody) {
2950          var autoAppendHandlers = $(tbody).find('.auto-append .datagridwidget-cell, .auto-append .datagridwidget-block-edit-cell');
2951          autoAppendHandlers.unbind('change.dgf');
2952          tbody.children().removeClass("auto-append");
2953          tbody.children().removeClass("minimum-row");
2954          dataGridField2Functions.updateOrderIndex(tbody, true, false);
2955      };
2956
2957      /**
2958       * Update all row indexes on a DGF table.
2959       *
2960       * Each <tr> and input widget has recalculated row index number in its name,
2961       * so that the server can then parsit the submitted data in the correct order.
2962       *
2963       * @param  {Object} tbody     DOM of DGF <tbody>
2964       * @param  {Boolean} backwards iterate rows backwards
2965       * @param  {Boolean} ensureMinimumRows We have inserted a special auto-append row
2966       */
2967      dataGridField2Functions.updateOrderIndex = function (tbody, backwards, ensureMinimumRows) {
2968          var $tbody = $(tbody);
2969          var name_prefix = $tbody.attr('data-name_prefix') + '.';
2970          var i, idx, row, $row, $nextRow;
2971
2972          // Was this auto-append table
2973          var autoAppend = false;
2974          var rows = this.getRows(tbody);
2975          for (i=0; i<rows.length; i++) {
2976              idx = backwards ? rows.length-i-1 : i;
2977              row = rows[idx], $row = $(row);
2978
2979              if ($row.hasClass('datagridwidget-empty-row')) {
2980                  continue;
2981              }
2982              if($row.hasClass('auto-append')) {
2983                  autoAppend = true;
2984              }
2985              this.reindexRow(tbody, row, idx);
2986          }
2987
2988          // Handle a special case where
2989          // 1. Widget is empty
2990          // 2. We don't have AA mode turned on
2991          // 3. We need to have minimum editable row count of 1
2992          if(ensureMinimumRows) {
2993              this.reindexRow(tbody, rows[0], "AA");
2994              autoAppend = true;
2995          }
2996
2997          // Add a special first and class row classes
2998          // to hide manipulation handles
2999          // AA handling is different once again
3000          var visibleRows = this.getVisibleRows(tbody);
3001          for (i=0; i<visibleRows.length; i++) {
3002              row = visibleRows[i], $row = $(row);
3003              if(i<visibleRows.length-2) {
3004                  $nextRow = $(visibleRows[i+1]);
3005              }
3006              if(i===0) {
3007                  $row.addClass("datagridfield-first-filled-row");
3008              } else {
3009                  $row.removeClass("datagridfield-first-filled-row");
3010              }
3011              // Last visible before AA
3012              if(autoAppend) {
3013                  if($nextRow && $nextRow.hasClass("auto-append")) {
3014                      $row.addClass("datagridfield-last-filled-row");
3015                  } else {
3016                      $row.removeClass("datagridfield-last-filled-row");
3017                  }
3018              } else {
3019                  if(i==visibleRows.length-1) {
3020                      $row.addClass("datagridfield-last-filled-row");
3021                  } else {
3022                      $row.removeClass("datagridfield-last-filled-row");
3023                  }
3024              }
3025          }
3026
3027          // Set total visible row counts and such and hint CSS
3028          var vis = this.getVisibleRows(tbody).length;
3029          $tbody.attr("data-count", this.getRows(tbody).length);
3030          $tbody.attr("data-visible-count", this.getVisibleRows(tbody).length);
3031          $tbody.attr("data-many-rows", vis >= 2 ? "true" : "false");
3032
3033          $(document).find('input[name="' + name_prefix + 'count"]').each(function(){
3034              // do not include the TT and the AA rows in the count
3035              var count = rows.length;
3036              if ($(rows[count-1]).hasClass('datagridwidget-empty-row')) {
3037                  count--;
3038              }
3039              if ($(rows[count-1]).hasClass('auto-append')) {
3040                  count--;
3041              }
3042              this.value = count;
3043          });
3044      };
3045
3046      dataGridField2Functions.getParentElement = function(currnode, tagname) {
3047          /* Find the first parent node with the given tag name */
3048          tagname = tagname.toUpperCase();
3049          var parent = currnode.parentNode;
3050          while(parent.tagName.toUpperCase() != tagname) {
3051              parent = parent.parentNode;
3052              // Next line is a safety belt
3053              if(parent.tagName.toUpperCase() == "BODY")
3054                  return null;
3055          }
3056          return parent;
3057      };
3058
3059      dataGridField2Functions.getParentRow = function (node) {
3060          return this.getParentByClass(node, 'datagridwidget-row');
3061      };
3062
3063      dataGridField2Functions.getParentByClass = function(node, klass) {
3064          var parent = $(node).closest("." + klass);
3065
3066          if (parent.length) {
3067              return parent;
3068          }
3069
3070          return null;
3071      };
3072
3073      /**
3074       * Find the first parent node with the given id
3075       *
3076       * Id is partially matched: the beginning of
3077       * an element id matches parameter id string.
3078       *
3079       * @param  {DOM} currnode Node where ascending in DOM tree beings
3080       * @param  {String} id       Id string to look for.
3081       * @return {DOM} Found node or null
3082       */
3083      dataGridField2Functions.getParentElementById = function(currnode, id
3083) {
3084          /*
3085          */
3086
3087          id = id.toLowerCase();
3088          var parent = currnode.parentNode;
3089
3090          while(true) {
3091
3092              var parentId = parent.getAttribute("id");
3093              if(parentId) {
3094                   if(parentId.toLowerCase().substring(0, id.length) == id) break;
3095              }
3096
3097              parent = parent.parentNode;
3098              // Next line is a safety belt
3099              if(parent.tagName.toUpperCase() == "BODY")
3100                  return null;
3101          }
3102
3103          return parent;
3104      };
3105
3106
3107      /**
3108       * Make sure there is at least one visible row available in DGF
3109       * to edit in all the time.
3110       *
3111       * We need a lot of special logic for the case where
3112       * we have empty datagridfield and need to have one OPTIONAL
3113       * row present there for the editing when the user opens
3114       * the form for the first time.
3115       *
3116       * There are cases where one doesn't want to have the count of DGF
3117       * rows to go down to zero. Otherwise there no insert handle left
3118       * on the edit mode and the user cannot add any more rows.
3119       *
3120       * One should case is when
3121       *
3122       * - DGF is empty on new form
3123       *
3124       * - Auto append is set to false (initial row is not visible)
3125       *
3126       * We fix this situation by checking the available rows
3127       * and generating one empty AA row if needed.
3128       *
3129       * ... or simply when the user removes all the rows
3130       *
3131       * @param {Object} tbody DOM object of <tbody>
3132       */
3133      dataGridField2Functions.ensureMinimumRows = function(tbody) {
3134          var rows = this.getRows(tbody);
3135          var filteredRows = this.getVisibleRows(tbody);
3136          var self = this;
3137
3138          // Rows = 0 -> make one AA row available
3139          if(filteredRows.length === 0) {
3140              // XXX: make the function call signatures more sane
3141              var child = rows[0];
3142              this.autoInsertRow(child, true);
3143              return true;
3144          }
3145          return false;
3146      },
3147
3148
3149      /**
3150       * When DOM model is ready execute this actions to wire up page logic.
3151       */
3152      dataGridField2Functions.init = function() {
3153
3154          // Reindex all rows to get proper row classes on them
3155          $(".datagridwidget-body").each(function() {
3156
3157              // Initialize widget data on <tbody>
3158              // We keep some mode attributes around
3159              var $this = $(this);
3160              var aa;
3161
3162              // Check if this widget is in auto-append mode
3163              // and store for later usage
3164              aa = $this.children(".auto-append").size() > 0;
3165              $this.data("auto-append", aa);
3166
3167              // Hint CSS
3168              if(aa) {
3169                  $this.addClass("datagridwidget-body-auto-append");
3170              } else {
3171                  $this.addClass("datagridwidget-body-non-auto-append");
3172              }
3173
3174              dataGridField2Functions.updateOrderIndex(this, false);
3175
3176              if(!aa) {
3177                  dataGridField2Functions.ensureMinimumRows(this);
3178              }
3179          });
3180
3181          // Bind the handlers to the auto append rows
3182          // Use namespaced jQuery events to avoid unbind() conflicts later on
3183          $('.auto-append .datagridwidget-cell, .auto-append .datagridwidget-block-edit-cell').bind("change.dgf", $.proxy(dataGridField2Functions.onInsert, dataGridField2Functions));
3184
3185          $(document).trigger("afterdatagridfieldinit");
3186      };
3187
3188      // Export module for customizers to mess around
3189      window.dataGridField2Functions = dataGridField2Functions;
3190
3191
3192  });
3193
3194// Dummy JS file for mosaic-grid bundle
3195
3196// Dummy JS file for mosaic-styles bundle
3197
3198
3199/* reset requirejs definitions so that people who
3200   put requirejs in legacy compilation do not get errors */
3201var _old_define = define;
3202var _old_require = require;
3203define = undefined;
3204require = undefined;
3205try{
3206
3207/* resource: ++resource++plone.app.discussion.javascripts/comments.js */
3208if(require===undefined)require=function(reqs,torun){'use strict';return torun(window.jQuery);};require(['jquery'],function($){'use strict';$.createReplyForm=function(comment_div){var comment_id=comment_div.attr('id');var reply_button=comment_div.find('.reply-to-comment-button');var reply_div=$('#commenting').clone(true);reply_div.find('#formfield-form-widgets-captcha').find('script').remove();reply_div.appendTo(comment_div).css('display','none');reply_div.removeAttr('id');$(reply_button).css('display','none');var reply_form=reply_div.find('form');reply_form.find('#formfield-form-widgets-comment-text').attr('id','formfield-form-widgets-new-textarea'+comment_id);reply_form.find('#form-widgets-comment-text').attr('id','form-widgets-new-textarea'+comment_id);reply_form.find('input[name="form.widgets.in_reply_to"]').val(comment_id);var cancel_reply_button=reply_div.find('.cancelreplytocomment');cancel_reply_button.attr('id',comment_id);reply_form.find('input[name="form.buttons.cancel"]').css('display','inline');reply_div.slideDown('slow');cancel_reply_button.css('display','inline');};$.clearForm=function(form_div){form_div.find('.error').removeClass('error');form_div.find('.fieldErrorBox').remove();form_div.find('input[type="text"]').attr('value','');form_div.find('textarea').attr('value','');};$(window).load(function(){var post_comment_div=$('#commenting');var in_reply_to_field=post_comment_div.find('input[name="form.widgets.in_reply_to"]');if(in_reply_to_field.length!==0&&in_reply_to_field.val()!==''){var current_reply_id='#'+in_reply_to_field.val();var current_reply_to_div=$('.discussion').find(current_reply_id);$.createReplyForm(current_reply_to_div);$.clearForm(post_comment_div);}$('.reply-to-comment-button').bind('click',function(e){var comment_div=$(this).parents().filter('.comment');$.createReplyForm(comment_div);$.clearForm(comment_div);});$('#commenting #form-buttons-cancel').bind('click',function(e){e.preventDefault();var reply_to_comment_button=$(this).parents().filter('.comment').find('.reply-to-comment-button');$.reply_to_comment_form=$(this).parents().filter('.reply');$.reply_to_comment_form.slideUp('slow',function(){$(this).remove();});reply_to_comment_button.css('display','inline');});$('input[name="form.button.PublishComment"]').on('click',function(){var trigger=this;var form=$(this).parents('form');var data=$(form).serialize();var form_url=$(form).attr('action');$.ajax({type:'GET',url:form_url,data:data,context:trigger,success:function(msg){form.find('input[name="form.button.PublishComment"]').remove();form.parents('.state-pending').toggleClass('state-pending').toggleClass('state-published');},error:function(msg){return true;}});return false;});if($.fn.prepOverlay)$('form[name="edit"]').prepOverlay({cssclass:'overlay-edit-comment',width:'60%',subtype:'ajax',filter:'#content>*'});$('input[name="form.button.DeleteComment"]').on('click',function(){var trigger=this;var form=$(this).parents('form');var data=$(form).serialize();var form_url=$(form).attr('action');$.ajax({type:'POST',url:form_url,data:data,context:$(trigger).parents('.comment'),success:function(data){var comment=$(this);var clss=comment.attr('class');var treelevel=parseInt(clss[clss.indexOf('replyTreeLevel')+'replyTreeLevel'.length],10);var selector='.replyTreeLevel'+treelevel;for(var i=0;i<treelevel;i++)selector+=', .replyTreeLevel'+i;comment.nextUntil(selector).each(function(){$(this).fadeOut('fast',function(){$(this).remove();});});var parent=comment.prev('[class*="replyTreeLevel'+(treelevel-1)+'"]');parent.find('form[name="delete"]').css('display','inline');$(this).fadeOut('fast',function(){$(this).remove();});},error:function(req,error){return true;}});return false;});$('.reply').find('input[name="form.buttons.reply"]').css('display','none');$('.reply').find('input[name="form.buttons.cancel"]').css('display','none');$('.reply-to-comment-button').removeClass('hide');});});
3209/* resource: ++plone++plone.app.event/event.js */
3210(function($){var eventedit={start_end_delta:1/24,$start_input:undefined,$start_container:undefined,$pickadate_starttime:undefined,$end_input:undefined,$end_container:undefined,$pickadate_endtime:undefined,$whole_day_input:undefined,$open_end_input:undefined,get_dom_element:function(sel,$container){var $el;if($container)$el=$(sel,$container);else $el=$(sel);return $el.length?$el:undefined;},getDateTime:function(datetimewidget){var date,time,datetime,set_time;date=$('input[name="_submit"]:first',datetimewidget).prop('value');if(!date)return;date=date.split('-');time=$('input[name="_submit"]:last',datetimewidget).prop('value');if(!time){set_time=true;time='00:00';}time=time.split(':');datetime=new Date(parseInt(date[0],10),parseInt(date[1],10)-1,parseInt(date[2],10),parseInt(time[0],10),parseInt(time[1],10));if(set_time)$('.pattern-pickadate-time',datetimewidget).pickatime('picker').set('select',datetime);return datetime;},initStartEndDelta:function(start_container,end_container){var start_datetime=this.getDateTime(start_container);var end_datetime=this.getDateTime(end_container);if(!start_datetime||!end_datetime)return;this.start_end_delta=(end_datetime-start_datetime)/1000/60;},updateEndDate:function(start_container,end_container){var start_date=this.getDateTime(start_container);if(!start_date)return;var new_end_date=new Date(start_date);new_end_date.setMinutes(start_date.getMinutes()+this.start_end_delta);$('.pattern-pickadate-date',end_container).pickadate('picker').set('select',new_end_date);$('.pattern-pickadate-time',end_container).pickatime('picker').set('select',new_end_date);},validateEndDate:function(start_container,end_container){var start_datetime=this.getDateTime(start_container);var end_datetime=this.getDateTime(end_container);if(!start_datetime||!end_datetime)return;if(end_datetime<start_datetime)start_container.addClass('error');else end_container.removeClass('error');},show_hide_widget:function(widget,hide,fade){var $widget=$(widget);if(hide===true)if(fade===true)$widget.fadeOut();else $widget.hide();else if(fade===true)$widget.fadeIn();else $widget.show();},event_listing_calendar_init:function(cal){if($().dateinput&&cal.length>0){var get_req_param,val;get_req_param=function(name){if(name===new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)').exec(window.location.search))return decodeURIComponent(name[1]);};val=get_req_param('date');if(val===undefined)val=new Date();else val=new Date(val);cal.dateinput({selectors:true,trigger:true,format:'yyyy-mm-dd',yearRange:[-10,10],firstDay:1,value:val,change:function(){var value=this.getValue('yyyy-mm-dd');window.location.href='event_listing?mode=day&date='+value;}}).unbind('change').bind('onShow',function(){var trigger_offset=$(this).next().offset();$(this).data('dateinput').getCalendar().offset({top:trigger_offset.top+20,left:trigger_offset.left});});}},initilize_event:function(){var $start_container=this.$start_container,$end_container=this.$end_container,$pickadate_starttime=this.$pickadate_starttime,$pickadate_endtime=this.$pickadate_endtime,$o
3210pen_end_input=this.$open_end_input,$whole_day_input=this.$whole_day_input;if($whole_day_input.length>0){$whole_day_input.bind('change',function(e){this.show_hide_widget($pickadate_starttime,e.target.checked,true);this.show_hide_widget($pickadate_endtime,e.target.checked,true);}.bind(this));this.show_hide_widget($pickadate_starttime,$whole_day_input.get(0).checked,false);this.show_hide_widget($pickadate_endtime,$whole_day_input.get(0).checked,false);}if($open_end_input.length>0){$open_end_input.bind('change',function(e){this.show_hide_widget($end_container,e.target.checked,true);}.bind(this));this.show_hide_widget($end_container,$open_end_input.get(0).checked,false);}$start_container.on('focus','.picker__input',function(){this.initStartEndDelta($start_container,$end_container);}.bind(this));$start_container.on('change','.picker__input',function(){this.updateEndDate($start_container,$end_container);}.bind(this));$end_container.on('focus','.picker__input',function(){this.initStartEndDelta($start_container,$end_container);}.bind(this));$end_container.on('change','.picker__input',function(){this.validateEndDate($start_container,$end_container);}.bind(this));}};$(document).ready(function(){eventedit.$start_input=eventedit.get_dom_element('form input.event_start');if(!eventedit.$start_input)return;eventedit.$end_input=eventedit.get_dom_element('form input.event_end');if(!eventedit.$end_input)return;eventedit.$start_container=eventedit.$start_input.closest('div');eventedit.$end_container=eventedit.$end_input.closest('div');eventedit.$whole_day_input=eventedit.get_dom_element('form input.event_whole_day');eventedit.$open_end_input=eventedit.get_dom_element('form input.event_open_end');var interval=setInterval(function(){eventedit.$pickadate_starttime=!eventedit.$pickadate_starttime&&eventedit.get_dom_element('.pattern-pickadate-time-wrapper',eventedit.$start_container);eventedit.$pickadate_endtime=!eventedit.$pickadate_endtime&&eventedit.get_dom_element('.pattern-pickadate-time-wrapper',eventedit.$end_container);if(eventedit.$pickadate_starttime&&eventedit.$pickadate_endtime){clearInterval(interval);eventedit.initilize_event();}},100);eventedit.event_listing_calendar_init($('#event_listing_calendar'));});})(jQuery);
3211/* resource: ++resource++collective.polls/js/jquery.flot.js */
3212(function(i){i.color={};i.color.make=function(j,k,y,P){var o={};o.r=j||0;o.g=k||0;o.b=y||0;o.a=null!=P?P:1;o.add=function(i,j){for(var k=0;k<i.length;++k)o[i.charAt(k)]+=j;return o.normalize();};o.scale=function(i,k){for(var j=0;j<i.length;++j)o[i.charAt(j)]*=k;return o.normalize();};o.toString=function(){return 1<=o.a?"rgb("+[o.r,o.g,o.b].join()+")":"rgba("+[o.r,o.g,o.b,o.a].join()+")";};o.normalize=function(){function i(j,k,o){return k<j?j:k>o?o:k;}o.r=i(0,parseInt(o.r),255);o.g=i(0,parseInt(o.g),255);o.b=i(0,parseInt(o.b),255);o.a=i(0,o.a,1);return o;};o.clone=function(){return i.color.make(o.r,o.b,o.g,o.a);};return o.normalize();};i.color.extract=function(j,k){var y;do{y=j.css(k).toLowerCase();if(""!=y&&"transparent"!=y)break;j=j.parent();}while(!i.nodeName(j.get(0),"body"));"rgba(0, 0, 0, 0)"==y&&(y="transparent");return i.color.parse(y);};i.color.parse=function(j){var k,y=i.color.make;if(k=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j))return y(parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10));if(k=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(j))return y(parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10),parseFloat(k[4]));if(k=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j))return y(2.55*parseFloat(k[1]),2.55*parseFloat(k[2]),2.55*parseFloat(k[3]));if(k=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(j))return y(2.55*parseFloat(k[1]),2.55*parseFloat(k[2]),2.55*parseFloat(k[3]),parseFloat(k[4]));if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j))return y(parseInt(k[1],16),parseInt(k[2],16),parseInt(k[3],16));if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j))return y(parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16));j=i.trim(j).toLowerCase();if("transparent"==j)return y(255,255,255,0);k=L[j]||[0,0,0];return y(k[0],k[1],k[2]);};var L={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);(function(i){function L(j,k,y,P){function o(a,d){for(var d=[t].concat(d),b=0;b<a.length;++b)a[b].apply(this,d);}function L(a){for(var d=[],b=0;b<a.length;++b){var c=i.extend(!0,{},f.series);null!=a[b].data?(c.data=a[b].data,delete a[b].data,i.extend(!0,c,a[b]),a[b].data=c.data):c.data=a[b];d.push(c);}v=d;d=v.length;b=[];c=[];for(a=0;a<v.length;++a){var e=v[a].color;null!=e&&(--d,"number"==typeof e?c.push(e):b.push(i.color.parse(v[a].color)));}for(a=0;a<c.length;++a)d=Math.max(d,c[a]+1);b=[];for(a=c=0;b.length<d;)e=f.colors.length==a?i.color.make(100,100,100):i.color.parse(f.colors[a]),e.scale("rgb",1+0.2*(1==c%2?-1:1)*Math.ceil(c/2)),b.push(e),++a,a>=f.colors.length&&(a=0,++c);for(a=d=0;a<v.length;++a){c=v[a];null==c.color?(c.color=b[d].toString(),++d):"number"==typeof c.color&&(c.color=b[c.color].toString());if(null==c.lines.show){var M,e=!0;for(M in c)if(c[M]&&c[M].show){e=!1;break;}e&&(c.lines.show=!0);}c.xaxis=S(B,R(c,"x"));c.yaxis=S(D,R(c,"y"));}na();}function R(a,d){var b=a[d+"axis"];"object"==typeof b&&(b=b.n);"number"!=typeof b&&(b=1);return b;}function K(){return i.grep(B.concat(D),function(a){return a;});}function W(a){var d={},b,c;for(b=0;b<B.length;
3212++b)(c=B[b])&&c.used&&(d["x"+c.n]=c.c2p(a.left));for(b=0;b<D.length;++b)(c=D[b])&&c.used&&(d["y"+c.n]=c.c2p(a.top));void 0!==d.x1&&(d.x=d.x1);void 0!==d.y1&&(d.y=d.y1);return d;}function S(a,d){a[d-1]||(a[d-1]={n:d,direction:a==B?"x":"y",options:i.extend(!0,{},a==B?f.xaxis:f.yaxis)});return a[d-1];}function na(){function a(a,b,d){b<a.datamin&&b!=-c&&(a.datamin=b);d>a.datamax&&d!=c&&(a.datamax=d);}var d=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,c=Number.MAX_VALUE,e,f,u,s,p,x,q,g,h,w;i.each(K(),function(a,c){c.datamin=d;c.datamax=b;c.used=!1;});for(e=0;e<v.length;++e)p=v[e],p.datapoints={points:[]},o(z.processRawData,[p,p.data,p.datapoints]);for(e=0;e<v.length;++e){p=v[e];var k=p.data,n=p.datapoints.format;if(!n){n=[];n.push({x:!0,number:!0,required:!0});n.push({y:!0,number:!0,required:!0});if(p.bars.show||p.lines.show&&p.lines.fill)n.push({y:!0,number:!0,required:!1,defaultValue:0}),p.bars.horizontal&&(delete n[n.length-1].y,n[n.length-1].x=!0);p.datapoints.format=n;}if(null==p.datapoints.pointsize){p.datapoints.pointsize=n.length;q=p.datapoints.pointsize;x=p.datapoints.points;insertSteps=p.lines.show&&p.lines.steps;p.xaxis.used=p.yaxis.used=!0;for(f=u=0;f<k.length;++f,u+=q){w=k[f];var l=null==w;if(!l)for(s=0;s<q;++s){g=w[s];if(h=n[s])if(h.number&&null!=g&&(g=+g,isNaN(g)?g=null:Infinity==g?g=c:-Infinity==g&&(g=-c)),null==g)h.required&&(l=!0),null!=h.defaultValue&&(g=h.defaultValue);x[u+s]=g;}if(l)for(s=0;s<q;++s)g=x[u+s],null!=g&&(h=n[s],h.x&&a(p.xaxis,g,g),h.y&&a(p.yaxis,g,g)),x[u+s]=null;else if(insertSteps&&0<u&&null!=x[u-q]&&x[u-q]!=x[u]&&x[u-q+1]!=x[u+1]){for(s=0;s<q;++s)x[u+q+s]=x[u+s];x[u+1]=x[u-q+1];u+=q;}}}}for(e=0;e<v.length;++e)p=v[e],o(z.processDatapoints,[p,p.datapoints]);for(e=0;e<v.length;++e){p=v[e];x=p.datapoints.points;q=p.datapoints.pointsize;n=p.datapoints.format;w=u=d;l=k=b;for(f=0;f<x.length;f+=q)if(null!=x[f])for(s=0;s<q;++s)if(g=x[f+s],(h=n[s])&&!(g==c||g==-c))if(h.x&&(g<u&&(u=g),g>k&&(k=g)),h.y)g<w&&(w=g),g>l&&(l=g);if(p.bars.show){switch(p.bars.align){case "left":f=0;break;case "right":f=-p.bars.barWidth;break;case "center":f=-p.bars.barWidth/2;break;default:throw Error("Invalid bar alignment: "+p.bars.align);}p.bars.horizontal?(w+=f,l+=f+p.bars.barWidth):(u+=f,k+=f+p.bars.barWidth);}a(p.xaxis,u,k);a(p.yaxis,w,l);}i.each(K(),function(a,c){c.datamin==d&&(c.datamin=null);c.datamax==b&&(c.datamax=null);});}function X(a,d){var b=document.createElement("canvas");b.className=d;b.width=E;b.height=F;a||i(b).css({position:"absolute",left:0,top:0});i(b).appendTo(j);b.getContext||(b=window.G_vmlCanvasManager.initElement(b));b.getContext("2d").save();return b;}function Y(){E=j.width();F=j.height();if(0>=E||0>=F)throw Error("Invalid dimensions for plot, width = "+E+", height = "+F);}function Z(a){a.width!=E&&(a.width=E);a.height!=F&&(a.height=F);a=a.getContext("2d");a.restore();a.save();}function oa(a){function d(a){return a;}var b,c,e=a.options.transform||d,f=a.options.inverseTransform;"x"==a.direction?(b=a.scale=J/Math.abs(e(a.max)-e(a.min)),c=Math.min(e(a.max),e(a.min))):(b=a.scale=H/Math.abs(e(a.max)-e(a.min)),b=-b,c=Math.max(e(a.max),e(a.min)));a.p2c=e==d?function(a){return(a-c)*b;}:function(a){return(e(a)-c)*b;};a.c2p=f?function(a){return f(c+a/b);}:function(a){return c+a/b;};}function pa(a){var d=a.labelWidth,b=a.labelHeight,c=a.options.position,e=a.options.tickLength,g=f.grid.axisMargin,u=f.grid.labelMargin,s="x"==a.direction?B:D,p=i.grep(s,function(a){return a&&a.options.position==c&&a.reserveSpace;});i.inArray(a,p)==p.length-1&&(g=0);if(null==e)var e=i.grep(s,function(a){return a&&a.reserveSpace;}),x=0==i.inArray(a,e),e=x?"full":5;isNaN(+e)||(u+=+e);"x"==a.direction?(b+=u,"bottom"==c?(h.bottom+=b+g,a.box={top:F-h.bottom,height:b}):(a.box={top:h.top+g,height:b},h.top+=b+g)):(d+=u,"left"==c?(a.box={left:h.left+g,width:d},h.left+=d+g):(h.right+=d+g,a.box={left:E-h.right,width:d}));a.position=c;a.tickLength=e;a.box.padding=u;a.innermost=x;}function qa(){var a=f.grid.minBorderMargin,d={x:0,y:0},b;if(null==a)for(b=a=0;b<v.length;++b)a=Math.max(a,2*(v[b].points.radius+v[b].points.lineWidth/2));d.x=d.y=Math.ceil(a);i.each(K(),function(a,b){var f=b.direction;b.reserveSpace&&(d[f]=Math.ceil(Math.max(d[f],("x"==f?b.labelWidth:b.labelHeight)/2)));});h.left=Math.max(d.x,h.left);h.right=Math.max(d.x,h.right);h.top=Math.max(d.y,h.top);h.bottom=Math.max(d.y,h.bottom);}function $(){var a,d=K();a=f.grid.show;for(var b in h){var c=f.grid.margin||0;h[b]="number"==typeof c?c:c[b]||0;}o(z.processOffset,[h]);for(b in h)h[b]+=a?f.grid.borderWidth:0;i.each(d,function(a,b){b.show=b.options.show;null==b.show&&(b.show=b.used);b.reserveSpace=b.show||b.options.reserveSpace;var d=b.options,c=+(null!=d.min?d.min:b.datamin),e=+(null!=d.max?d.max:b.datamax),f=e-c;if(0==f){if(f=0==e?1:0.01,null==d.min&&(c-=f),null==d.max||null!=d.min)e+=f;}else{var g=d.autoscaleMargin;if(null!=g&&(null==d.min&&(c-=f*g,0>c&&(null!=b.datamin&&0<=b.datamin)&&(c=0)),null==d.max))e+=f*g,0<e&&(null!=b.datamax&&0>=b.datamax)&&(e=0);}b.min=c;b.max=e;});if(a){var e={style:j.css("font-style"),size:Math.round(0.8*(+j.css("font-size").replace("px","")||13)),variant:j.css("font-variant"),weight:j.css("font-weight"),family:j.css("font-family")};b=i.grep(d,function(a){return a.reserveSpace;});i.each(b,function(a,b){ra(b);var d=b.options.ticks,c=[];null==d||"number"==typeof d&&0<d?c=b.tickGenerator(b):d&&(c=i.isFunction(d)?d(b):d);var f;b.ticks=[];for(d=0;d<c.length;++d){var q=null,h=c[d];
3212"object"==typeof h?(f=+h[0],1<h.length&&(q=h[1])):f=+h;null==q&&(q=b.tickFormatter(f,b));isNaN(f)||b.ticks.push({v:f,label:q});}c=b.ticks;if(b.options.autoscaleMargin&&0<c.length&&(null==b.options.min&&(b.min=Math.min(b.min,c[0].v)),null==b.options.max&&1<c.length))b.max=Math.max(b.max,c[c.length-1].v);b.font=i.extend({},e,b.options.font);c=b.options;d=b.ticks||[];f=c.labelWidth||0;q=c.labelHeight||0;h=b.font;g.save();g.font=h.style+" "+h.variant+" "+h.weight+" "+h.size+"px '"+h.family+"'";for(var k=0;k<d.length;++k){var w=d[k];w.lines=[];w.width=w.height=0;if(w.label){for(var j=w.label.replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n"),n=0;n<j.length;++n){var l={text:j[n]},m=g.measureText(l.text);l.width=m.width;l.height=null!=m.height?m.height:h.size;l.height+=Math.round(0.15*h.size);w.width=Math.max(l.width,w.width);w.height+=l.height;w.lines.push(l);}null==c.labelWidth&&(f=Math.max(f,w.width));null==c.labelHeight&&(q=Math.max(q,w.height));}}g.restore();b.labelWidth=Math.ceil(f);b.labelHeight=Math.ceil(q);});for(a=b.length-1;0<=a;--a)pa(b[a]);qa();i.each(b,function(a,b){"x"==b.direction?(b.box.left=h.left-b.labelWidth/2,b.box.width=E-h.left-h.right+b.labelWidth):(b.box.top=h.top-b.labelHeight/2,b.box.height=F-h.bottom-h.top+b.labelHeight);});}J=E-h.left-h.right;H=F-h.bottom-h.top;i.each(d,function(a,b){oa(b);});sa();}function ra(a){var d=a.options,b;b="number"==typeof d.ticks&&0<d.ticks?d.ticks:0.3*Math.sqrt("x"==a.direction?E:F);a.delta=(a.max-a.min)/b;if(!d.mode){b=d.tickDecimals;var c=-Math.floor(Math.log(a.delta)/Math.LN10);null!=b&&c>b&&(c=b);var e=Math.pow(10,-c),f=a.delta/e,g;if(1.5>f)g=1;else if(3>f){if(g=2,2.25<f&&(null==b||c+1<=b))g=2.5,++c;}else g=7.5>f?5:10;g*=e;null!=d.minTickSize&&g<d.minTickSize&&(g=d.minTickSize);a.tickDecimals=Math.max(0,null!=b?b:c);a.tickSize=d.tickSize||g;a.tickGenerator=function(a){var b=[],d=a.tickSize*Math.floor(a.min/a.tickSize),c=0,e=Number.NaN,f;do{f=e;e=d+c*a.tickSize;b.push(e);++c;}while(e<a.max&&e!=f);return b;};a.tickFormatter=function(a,b){return a.toFixed(b.tickDecimals);};}i.isFunction(d.tickFormatter)&&(a.tickFormatter=function(a,b){return ""+d.tickFormatter(a,b);});if(null!=d.alignTicksWithAxis){var s=("x"==a.direction?B:D)[d.alignTicksWithAxis-1];if(s&&s.used&&s!=a){b=a.tickGenerator(a);if(0<b.length&&(null==d.min&&(a.min=Math.min(a.min,b[0])),null==d.max&&1<b.length))a.max=Math.max(a.max,b[b.length-1]);a.tickGenerator=function(a){var b=[],d,c;for(c=0;c<s.ticks.length;++c){d=(s.ticks[c].v-s.min)/(s.max-s.min);d=a.min+d*(a.max-a.min);b.push(d);}return b;};!a.mode&&null==d.tickDecimals&&(b=Math.max(0,-Math.floor(Math.log(a.delta)/Math.LN10)+1),c=a.tickGenerator(a),1<c.length&&/\..*0$/.test((c[1]-c[0]).toFixed(b))||(a.tickDecimals=b));}}}function aa(){g.clearRect(0,0,E,F);o(z.drawBackground,[g]);var a=f.grid;a.show&&a.backgroundColor&&(g.save(),g.translate(h.left,h.top),g.fillStyle=ba(f.grid.backgroundColor,H,0,"rgba(255, 255, 255, 0)"),g.fillRect(0,0,J,H),g.restore());a.show&&!a.aboveData&&(ca(),da());for(var d=0;d<v.length;++d){o(z.drawSeries,[g,v[d]]);var b=v[d];b.lines.show&&ta(b);b.bars.show&&ua(b);b.points.show&&va(b);}o(z.draw,[g]);a.show&&a.aboveData&&(ca(),da());}function ea(a,d){for(var b,c,e,f,g=K(),s=0;s<g.length;++s)if(b=g[s],b.direction==d&&(f=d+b.n+"axis",!a[f]&&1==b.n&&(f=d+"axis"),a[f])){c=a[f].from;e=a[f].to;break;}a[f]||(b="x"==d?B[0]:D[0],c=a[d+"1"],e=a[d+"2"]);null!=c&&(null!=e&&c>e)&&(f=c,c=e,e=f);return{from:c,to:e,axis:b};}function ca(){var a;g.save();g.translate(h.left,h.top);var d=f.grid.markings;if(d){if(i.isFunction(d)){var b=t.getAxes();b.xmin=b.xaxis.min;b.xmax=b.xaxis.max;b.ymin=b.yaxis.min;b.ymax=b.yaxis.max;d=d(b);}for(a=0;a<d.length;++a){var b=d[a],c=ea(b,"x"),e=ea(b,"y");null==c.from&&(c.from=c.axis.min);null==c.to&&(c.to=c.axis.max);null==e.from&&(e.from=e.axis.min);null==e.to&&(e.to=e.axis.max);c.to<c.axis.min||(c.from>c.axis.max||e.to<e.axis.min||e.from>e.axis.max)||(c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max),e.from=Math.max(e.from,e.axis.min),e.to=Math.min(e.to,e.axis.max),c.from==c.to&&e.from==e.to||(c.from=c.axis.p2c(c.from),c.to=c.axis.p2c(c.to),e.from=e.axis.p2c(e.from),e.to=e.axis.p2c(e.to),c.from==c.to||e.from==e.to?(g.beginPath(),g.strokeStyle=b.color||f.grid.markingsColor,g.lineWidth=b.lineWidth||f.grid.markingsLineWidth,g.moveTo(c.from,e.from),g.lineTo(c.to,e.to),g.stroke()):(g.fillStyle=b.color||f.grid.markingsColor,g.fillRect(c.from,e.to,c.to-c.from,e.from-e.to))));}}b=K();d=f.grid.borderWidth;for(c=0;c<b.length;++c){e=b[c];a=e.box;var k=e.tickLength,u,s,p,x;if(e.show&&0!=e.ticks.length){g.strokeStyle=e.options.tickColor||i.color.parse(e.options.color).scale("a",0.22).toString();g.lineWidth=1;"x"==e.direction?(u=0,s="full"==k?"top"==e.position?0:H:a.top-h.top+("top"==e.position?a.height:0)):(s=0,u="full"==k?"left"==e.position?0:J:a.left-h.left+("left"==e.position?a.width:0));e.innermost||(g.beginPath(),p=x=0,"x"==e.direction?p=J:x=H,1==g.lineWidth&&(u=Math.floor(u)+0.5,s=Math.floor(s)+0.5),g.moveTo(u,s),g.lineTo(u+p,s+x),g.stroke());g.beginPath();for(a=0;a<e.ticks.length;++a){var q=e.ticks[a].v;p=x=0;q<e.min||(q>e.max||"full"==k&&0<d&&(q==e.min||q==e.max))||("x"==e.direction?(u=e.p2c(q),x="full"==k?-H:k,"top"==e.position&&(x=-x)):(s=e.p2c(q),p="full"==k?-J:k,"left"==e.position&&(p=-p)),1==g.lineWidth&&("x"==e.direction?u=Math.floor(u)+0.5:s=Math.floor(s)+0.5),g.moveTo(u,s),g.lineTo(u+p,s+x));}g.stroke();}}d&&(g.lineWidth=d,g.strokeStyle=f.grid.borderColor,g.strokeRect(-d/2,-d/2,J+d,H+d));
3212g.restore();}function da(){g.save();i.each(K(),function(a,d){if(d.show&&0!=d.ticks.length){var b=d.box,c=d.font;g.fillStyle=d.options.color;g.font=c.style+" "+c.variant+" "+c.weight+" "+c.size+"px "+c.family;g.textAlign="start";g.textBaseline="middle";for(c=0;c<d.ticks.length;++c){var e=d.ticks[c];if(e.label&&!(e.v<d.min||e.v>d.max))for(var f,u,s=0,p,x=0;x<e.lines.length;++x)p=e.lines[x],"x"==d.direction?(f=h.left+d.p2c(e.v)-p.width/2,u="bottom"==d.position?b.top+b.padding:b.top+b.height-b.padding-e.height):(u=h.top+d.p2c(e.v)-e.height/2,f="left"==d.position?b.left+b.width-b.padding-p.width:b.left+b.padding),u+=p.height/2+s,s+=p.height,i.browser.opera&&(f=Math.floor(f),u=Math.ceil(u-2)),g.fillText(p.text,f,u);}}});g.restore();}function ta(a){function d(a,b,d,c,e){var f=a.points,a=a.pointsize,h=null,i=null;g.beginPath();for(var k=a;k<f.length;k+=a){var n=f[k-a],l=f[k-a+1],m=f[k],r=f[k+1];if(!(null==n||null==m)){if(l<=r&&l<e.min){if(r<e.min)continue;n=(e.min-l)/(r-l)*(m-n)+n;l=e.min;}else if(r<=l&&r<e.min){if(l<e.min)continue;m=(e.min-l)/(r-l)*(m-n)+n;r=e.min;}if(l>=r&&l>e.max){if(r>e.max)continue;n=(e.max-l)/(r-l)*(m-n)+n;l=e.max;}else if(r>=l&&r>e.max){if(l>e.max)continue;m=(e.max-l)/(r-l)*(m-n)+n;r=e.max;}if(n<=m&&n<c.min){if(m<c.min)continue;l=(c.min-n)/(m-n)*(r-l)+l;n=c.min;}else if(m<=n&&m<c.min){if(n<c.min)continue;r=(c.min-n)/(m-n)*(r-l)+l;m=c.min;}if(n>=m&&n>c.max){if(m>c.max)continue;l=(c.max-n)/(m-n)*(r-l)+l;n=c.max;}else if(m>=n&&m>c.max){if(n>c.max)continue;r=(c.max-n)/(m-n)*(r-l)+l;m=c.max;}(n!=h||l!=i)&&g.moveTo(c.p2c(n)+b,e.p2c(l)+d);h=m;i=r;g.lineTo(c.p2c(m)+b,e.p2c(r)+d);}}g.stroke();}function b(a,b,c){for(var d=a.points,a=a.pointsize,e=Math.min(Math.max(0,c.min),c.max),f=0,h=!1,k=1,i=0,n=0;!(0<a&&f>d.length+a);){var f=f+a,l=d[f-a],m=d[f-a+k],r=d[f],j=d[f+k];if(h){if(0<a&&null!=l&&null==r){n=f;a=-a;k=2;continue;}if(0>a&&f==i+a){g.fill();h=!1;a=-a;k=1;f=i=n+a;continue;}}if(!(null==l||null==r)){if(l<=r&&l<b.min){if(r<b.min)continue;m=(b.min-l)/(r-l)*(j-m)+m;l=b.min;}else if(r<=l&&r<b.min){if(l<b.min)continue;j=(b.min-l)/(r-l)*(j-m)+m;r=b.min;}if(l>=r&&l>b.max){if(r>b.max)continue;m=(b.max-l)/(r-l)*(j-m)+m;l=b.max;}else if(r>=l&&r>b.max){if(l>b.max)continue;j=(b.max-l)/(r-l)*(j-m)+m;r=b.max;}h||(g.beginPath(),g.moveTo(b.p2c(l),c.p2c(e)),h=!0);if(m>=c.max&&j>=c.max)g.lineTo(b.p2c(l),c.p2c(c.max)),g.lineTo(b.p2c(r),c.p2c(c.max));else if(m<=c.min&&j<=c.min)g.lineTo(b.p2c(l),c.p2c(c.min)),g.lineTo(b.p2c(r),c.p2c(c.min));else{var o=l,M=r;m<=j&&m<c.min&&j>=c.min?(l=(c.min-m)/(j-m)*(r-l)+l,m=c.min):j<=m&&(j<c.min&&m>=c.min)&&(r=(c.min-m)/(j-m)*(r-l)+l,j=c.min);m>=j&&m>c.max&&j<=c.max?(l=(c.max-m)/(j-m)*(r-l)+l,m=c.max):j>=m&&(j>c.max&&m<=c.max)&&(r=(c.max-m)/(j-m)*(r-l)+l,j=c.max);l!=o&&g.lineTo(b.p2c(o),c.p2c(m));g.lineTo(b.p2c(l),c.p2c(m));g.lineTo(b.p2c(r),c.p2c(j));r!=M&&(g.lineTo(b.p2c(r),c.p2c(j)),g.lineTo(b.p2c(M),c.p2c(j)));}}}}g.save();g.translate(h.left,h.top);g.lineJoin="round";var c=a.lines.lineWidth,e=a.shadowSize;if(0<c&&0<e){g.lineWidth=e;g.strokeStyle="rgba(0,0,0,0.1)";var f=Math.PI/18;d(a.datapoints,Math.sin(f)*(c/2+e/2),Math.cos(f)*(c/2+e/2),a.xaxis,a.yaxis);g.lineWidth=e/2;d(a.datapoints,Math.sin(f)*(c/2+e/4),Math.cos(f)*(c/2+e/4),a.xaxis,a.yaxis);}g.lineWidth=c;g.strokeStyle=a.color;if(e=U(a.lines,a.color,0,H))g.fillStyle=e,b(a.datapoints,a.xaxis,a.yaxis);0<c&&d(a.datapoints,0,0,a.xaxis,a.yaxis);g.restore();}function va(a){function d(a,b,c,d,e,f,h,k){for(var i=a.points,a=a.pointsize,j=0;j<i.length;j+=a){var l=i[j],m=i[j+1];null==l||(l<f.min||l>f.max||m<h.min||m>h.max)||(g.beginPath(),l=f.p2c(l),m=h.p2c(m)+d,"circle"==k?g.arc(l,m,b,0,e?Math.PI:2*Math.PI,!1):k(g,l,m,b,e),g.closePath(),c&&(g.fillStyle=c,g.fill()),g.stroke());}}g.save();g.translate(h.left,h.top);var b=a.points.lineWidth,c=a.shadowSize,e=a.points.radius,f=a.points.symbol;0<b&&0<c&&(c/=2,g.lineWidth=c,g.strokeStyle="rgba(0,0,0,0.1)",d(a.datapoints,e,null,c+c/2,!0,a.xaxis,a.yaxis,f),g.strokeStyle="rgba(0,0,0,0.2)",d(a.datapoints,e,null,c/2,!0,a.xaxis,a.yaxis,f));g.lineWidth=b;g.strokeStyle=a.color;d(a.datapoints,e,U(a.points,a.color),0,!1,a.xaxis,a.yaxis,f);
3212g.restore();}function fa(a,d,b,c,e,f,g,h,k,i,j,o){var v,w,t,n;j?(n=w=t=!0,v=!1,j=b,b=d+c,e=d+e,a<j&&(d=a,a=j,j=d,v=!0,w=!1)):(v=w=t=!0,n=!1,j=a+c,a+=e,e=b,b=d,b<e&&(d=b,b=e,e=d,n=!0,t=!1));if(!(a<h.min||j>h.max||b<k.min||e>k.max))if(j<h.min&&(j=h.min,v=!1),a>h.max&&(a=h.max,w=!1),e<k.min&&(e=k.min,n=!1),b>k.max&&(b=k.max,t=!1),j=h.p2c(j),e=k.p2c(e),a=h.p2c(a),b=k.p2c(b),g&&(i.beginPath(),i.moveTo(j,e),i.lineTo(j,b),i.lineTo(a,b),i.lineTo(a,e),i.fillStyle=g(e,b),i.fill()),0<o&&(v||w||t||n))i.beginPath(),i.moveTo(j,e+f),v?i.lineTo(j,b+f):i.moveTo(j,b+f),t?i.lineTo(a,b+f):i.moveTo(a,b+f),w?i.lineTo(a,e+f):i.moveTo(a,e+f),n?i.lineTo(j,e+f):i.moveTo(j,e+f),i.stroke();}function ua(a){g.save();g.translate(h.left,h.top);g.lineWidth=a.bars.lineWidth;g.strokeStyle=a.color;var d;switch(a.bars.align){case "left":d=0;break;case "right":d=-a.bars.barWidth;break;case "center":d=-a.bars.barWidth/2;break;default:throw Error("Invalid bar alignment: "+a.bars.align);}(function(b,c,d,f,h,i,j){for(var k=b.points,b=b.pointsize,q=0;q<k.length;q+=b)null!=k[q]&&fa(k[q],k[q+1],k[q+2],c,d,f,h,i,j,g,a.bars.horizontal,a.bars.lineWidth);})(a.datapoints,d,d+a.bars.barWidth,0,a.bars.fill?function(b,c){return U(a.bars,a.color,b,c);}:null,a.xaxis,a.yaxis);g.restore();}function U(a,d,b,c){var e=a.fill;if(!e)return null;if(a.fillColor)return ba(a.fillColor,b,c,d);a=i.color.parse(d);a.a="number"==typeof e?e:0.4;a.normalize();return a.toString();}function sa(){j.find(".legend").remove();if(f.legend.show){for(var a=[],d=!1,b=f.legend.labelFormatter,c,e,g=0;g<v.length;++g)if(c=v[g],e=c.label)0==g%f.legend.noColumns&&(d&&a.push("</tr>"),a.push("<tr>"),d=!0),b&&(e=b(e,c)),a.push('<td class="legendColorBox"><div style="border:1px solid '+f.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+c.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+e+"</td>");d&&a.push("</tr>");0!=a.length&&(d='<table style="font-size:smaller;color:'+f.grid.color+'">'+a.join("")+"</table>",null!=f.legend.container?i(f.legend.container).html(d):(a="",b=f.legend.position,c=f.legend.margin,null==c[0]&&(c=[c,c]),"n"==b.charAt(0)?a+="top:"+(c[1]+h.top)+"px;":"s"==b.charAt(0)&&(a+="bottom:"+(c[1]+h.bottom)+"px;"),"e"==b.charAt(1)?a+="right:"+(c[0]+h.right)+"px;":"w"==b.charAt(1)&&(a+="left:"+(c[0]+h.left)+"px;"),d=i('<div class="legend">'+d.replace('style="','style="position:absolute;'+a+";")+"</div>").appendTo(j),0!=f.legend.backgroundOpacity&&(b=f.legend.backgroundColor,null==b&&(b=(b=f.grid.backgroundColor)&&"string"==typeof b?i.color.parse(b):i.color.extract(d,"background-color"),b.a=1,b=b.toString()),c=d.children(),i('<div style="position:absolute;width:'+c.width()+"px;height:"+c.height()+"px;"+a+"background-color:"+b+';"> </div>').prependTo(d).css("opacity",f.legend.backgroundOpacity))));}}function ga(a){f.grid.hoverable&&V("plothover",a,function(a){return !1!=a.hoverable;});}function ha(a){f.grid.hoverable&&V("plothover",a,function(){return !1;});}function ia(a){V("plotclick",a,function(a){return !1!=a.clickable;});}function V(a,d,b){var c=G.offset(),e=d.pageX-c.left-h.left,g=d.pageY-c.top-h.top,i=W({left:e,top:g});i.pageX=d.pageX;i.pageY=d.pageY;var d=f.grid.mouseActiveRadius,k=d*d+1,p=null,o,q;for(o=v.length-1;0<=o;--o)if(b(v[o])){var t=v[o],y=t.xaxis,w=t.yaxis,A=t.datapoints.points,n=t.datapoints.pointsize,l=y.c2p(e),m=w.c2p(g),r=d/y.scale,B=d/w.scale;y.options.inverseTransform&&(r=Number.MAX_VALUE);w.options.inverseTransform&&(B=Number.MAX_VALUE);if(t.lines.show||t.points.show)for(q=0;q<A.length;q+=n){var z=A[q],C=A[q+1];if(null!=z&&!(z-l>r||z-l<-r||C-m>B||C-m<-B))z=Math.abs(y.p2c(z)-e),C=Math.abs(w.p2c(C)-g),C=z*z+C*C,C<k&&(k=C,p=[o,q/n]);}if(t.bars.show&&!p){y="left"==t.bars.align?0:-t.bars.barWidth/2;t=y+t.bars.barWidth;for(q=0;q<A.length;q+=n)if(z=A[q],C=A[q+1],w=A[q+2],null!=z&&(v[o].bars.horizontal?l<=Math.max(w,z)&&l>=Math.min(w,z)&&m>=C+y&&m<=C+t:l>=z+y&&l<=z+t&&m>=Math.min(w,C)&&m<=Math.max(w,C)))p=[o,q/n];}}p?(o=p[0],q=p[1],n=v[o].datapoints.pointsize,b={datapoint:v[o].datapoints.points.slice(q*n,(q+1)*n),dataIndex:q,series:v[o],seriesIndex:o}):b=null;b&&(b.pageX=parseInt(b.series.xaxis.p2c(b.datapoint[0])+c.left+h.left),b.pageY=parseInt(b.series.yaxis.p2c(b.datapoint[1])+c.top+h.top));if(f.grid.autoHighlight){for(c=0;c<I.length;++c)e=I[c],e.auto==a&&(!b||!(e.series==b.series&&e.point[0]==b.datapoint[0]&&e.point[1]==b.datapoint[1]))&&ja(e.series,e.point);b&&ka(b.series,b.datapoint,a);}j.trigger(a,[i,b]);}function T(){var a=f.interaction.redrawOverlayInterval;-1==a?la():Q||(Q=setTimeout(la,a));}function la(){Q=null;A.save();A.clearRect(0,0,E,F);A.translate(h.left,h.top);var a,d;for(a=0;a<I.length;++a)if(d=I[a],d.series.bars.show)wa(d.series,d.point);else{var b=d.series,c=d.point;d=c[0];var c=c[1],e=b.xaxis,f=b.yaxis;if(!(d<e.min||d>e.max||c<f.min||c>f.max)){var g=b.points.radius+b.points.lineWidth/2;A.lineWidth=g;A.strokeStyle=i.color.parse(b.color).scale("a",0.5).toString();g*=1.5;d=e.p2c(d);c=f.p2c(c);A.beginPath();"circle"==b.points.symbol?A.arc(d,c,g,0,2*Math.PI,!1):b.points.symbol(A,d,c,g,!1);A.closePath();A.stroke();}}
3212A.restore();o(z.drawOverlay,[A]);}function ka(a,d,b){"number"==typeof a&&(a=v[a]);if("number"==typeof d)var c=a.datapoints.pointsize,d=a.datapoints.points.slice(c*d,c*(d+1));c=ma(a,d);-1==c?(I.push({series:a,point:d,auto:b}),T()):b||(I[c].auto=!1);}function ja(a,d){null==a&&null==d&&(I=[],T());"number"==typeof a&&(a=v[a]);"number"==typeof d&&(d=a.data[d]);var b=ma(a,d);-1!=b&&(I.splice(b,1),T());}function ma(a,d){for(var b=0;b<I.length;++b){var c=I[b];if(c.series==a&&c.point[0]==d[0]&&c.point[1]==d[1])return b;}return -1;}function wa(a,d){A.lineWidth=a.bars.lineWidth;A.strokeStyle=i.color.parse(a.color).scale("a",0.5).toString();var b=i.color.parse(a.color).scale("a",0.5).toString(),c="left"==a.bars.align?0:-a.bars.barWidth/2;fa(d[0],d[1],d[2]||0,c,c+a.bars.barWidth,0,function(){return b;},a.xaxis,a.yaxis,A,a.bars.horizontal,a.bars.lineWidth);}function ba(a,d,b,c){if("string"==typeof a)return a;for(var d=g.createLinearGradient(0,b,0,d),b=0,e=a.colors.length;b<e;++b){var f=a.colors[b];if("string"!=typeof f){var h=i.color.parse(c);null!=f.brightness&&(h=h.scale("rgb",f.brightness));null!=f.opacity&&(h.a*=f.opacity);f=h.toString();}d.addColorStop(b/(e-1),f);}return d;}var v=[],f={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:0.85},xaxis:{show:null,position:"bottom",mode:null,timezone:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:!1},yaxis:{autoscaleMargin:0.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1},shadowSize:3},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1E3/60},hooks:{}},N=null,O=null,G=null,g=null,A=null,B=[],D=[],h={left:0,right:0,top:0,bottom:0},E=0,F=0,J=0,H=0,z={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},t=this;t.setData=L;t.setupGrid=$;t.draw=aa;t.getPlaceholder=function(){return j;};t.getCanvas=function(){return N;};t.getPlotOffset=function(){return h;};t.width=function(){return J;};t.height=function(){return H;};t.offset=function(){var a=G.offset();a.left+=h.left;a.top+=h.top;return a;};t.getData=function(){return v;};t.getAxes=function(){var a={};i.each(B.concat(D),function(d,b){b&&(a[b.direction+(1!=b.n?b.n:"")+"axis"]=b);});return a;};t.getXAxes=function(){return B;};t.getYAxes=function(){return D;};t.c2p=W;t.p2c=function(a){var d={},b,c,e;for(b=0;b<B.length;++b)if((c=B[b])&&c.used)if(e="x"+c.n,null==a[e]&&1==c.n&&(e="x"),null!=a[e]){d.left=c.p2c(a[e]);break;}for(b=0;b<D.length;++b)if((c=D[b])&&c.used)if(e="y"+c.n,null==a[e]&&1==c.n&&(e="y"),null!=a[e]){d.top=c.p2c(a[e]);break;}return d;};t.getOptions=function(){return f;};t.highlight=ka;t.unhighlight=ja;t.triggerRedrawOverlay=T;t.pointOffset=function(a){return{left:parseInt(B[R(a,"x")-1].p2c(+a.x)+h.left),top:parseInt(D[R(a,"y")-1].p2c(+a.y)+h.top)};};t.shutdown=function(){Q&&clearTimeout(Q);G.unbind("mousemove",ga);G.unbind("mouseleave",ha);G.unbind("click",ia);o(z.shutdown,[G]);};t.resize=function(){Y();Z(N);Z(O);};t.hooks=z;(function(){for(var a=0;a<P.length;++a){var d=P[a];d.init(t);d.options&&i.extend(!0,f,d.options);}})(t);(function(a){i.extend(!0,f,a);null==f.xaxis.color&&(f.xaxis.color=f.grid.color);null==f.yaxis.color&&(f.yaxis.color=f.grid.color);null==f.xaxis.tickColor&&(f.xaxis.tickColor=f.grid.tickColor);null==f.yaxis.tickColor&&(f.yaxis.tickColor=f.grid.tickColor);null==f.grid.borderColor&&(f.grid.borderColor=f.grid.color);null==f.grid.tickColor&&(f.grid.tickColor=i.color.parse(f.grid.color).scale("a",0.22).toString());for(a=0;a<Math.max(1,f.xaxes.length);++a)f.xaxes[a]=i.extend(!0,{},f.xaxis,f.xaxes[a]);for(a=0;a<Math.max(1,f.yaxes.length);++a)f.yaxes[a]=i.extend(!0,{},f.yaxis,f.yaxes[a]);f.xaxis.noTicks&&null==f.xaxis.ticks&&(f.xaxis.ticks=f.xaxis.noTicks);f.yaxis.noTicks&&null==f.yaxis.ticks&&(f.yaxis.ticks=f.yaxis.noTicks);f.x2axis&&(f.xaxes[1]=i.extend(!0,{},f.xaxis,f.x2axis),f.xaxes[1].position="top");f.y2axis&&(f.yaxes[1]=i.extend(!0,{},f.yaxis,f.y2axis),f.yaxes[1].position="right");f.grid.coloredAreas&&(f.grid.markings=f.grid.coloredAreas);f.grid.coloredAreasColor&&(f.grid.markingsColor=f.grid.coloredAreasColor);f.lines&&i.extend(!0,f.series.lines,f.lines);f.points&&i.extend(!0,f.series.points,f.points);f.bars&&i.extend(!0,f.series.bars,f.bars);
3212null!=f.shadowSize&&(f.series.shadowSize=f.shadowSize);for(a=0;a<f.xaxes.length;++a)S(B,a+1).options=f.xaxes[a];for(a=0;a<f.yaxes.length;++a)S(D,a+1).options=f.yaxes[a];for(var d in z)f.hooks[d]&&f.hooks[d].length&&(z[d]=z[d].concat(f.hooks[d]));o(z.processOptions,[f]);})(y);(function(){var a;a=j.children("canvas.flot-base");var d=j.children("canvas.flot-overlay");0==a.length||0==d?(j.html(""),j.css({padding:0}),"static"==j.css("position")&&j.css("position","relative"),Y(),N=X(!0,"flot-base"),O=X(!1,"flot-overlay"),a=!1):(N=a.get(0),O=d.get(0),a=!0);g=N.getContext("2d");A=O.getContext("2d");G=i(O);a&&(j.data("plot").shutdown(),t.resize(),A.clearRect(0,0,E,F),G.unbind(),j.children().not([N,O]).remove());j.data("plot",t);})();L(k);$();aa();f.grid.hoverable&&(G.mousemove(ga),G.mouseleave(ha));f.grid.clickable&&G.click(ia);o(z.bindEvents,[G]);var I=[],Q=null;}i.plot=function(j,k,y){return new L(i(j),k,y,i.plot.plugins);};i.plot.version="0.7";i.plot.plugins=[];})(jQuery);
3213/* resource: ++resource++collective.polls/js/jquery.flot.pie.js */
3214(function(s){var c={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,offset:{top:0,left:"auto"},stroke:{color:"#FFF",width:1},label:{show:"auto",formatter:function(c,s){return '<div style="font-size:x-small;text-align:center;padding:2px;color:'+s.color+';">'+c+"<br/>"+Math.round(s.percent)+"%</div>";},radius:1,background:{color:null,opacity:0}
3214,threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:0.5}}}};s.plot.plugins.push({init:function(r){function F(a){A||(A=!0,l=a.getCanvas(),t=s(l).parent(),c=a.getOptions(),a.setData(G(a.getData())));}function G(a){for(var b=0;b<a.length;++b)if("number"==typeof a[b].data)a[b].data=[[1,a[b].data]];else if("undefined"==typeof a[b].data||"undefined"==typeof a[b].data[0])"undefined"!=typeof a[b].data&&"undefined"!=typeof a[b].data.label&&(a[b].label=a[b].data.label),a[b].data=[[1,0]];for(var b=a,j=0;j<b.length;++j){var g=parseFloat(b[j].data[0][1]);g&&(n+=g);}for(var j=b=0,g=c.series.pie.combine.color,f=[],d=0;d<a.length;++d)a[d].data[0][1]=parseFloat(a[d].data[0][1]),a[d].data[0][1]||(a[d].data[0][1]=0),a[d].data[0][1]/n<=c.series.pie.combine.threshold?(b+=a[d].data[0][1],j++,g||(g=a[d].color)):f.push({data:[[1,a[d].data[0][1]]],color:a[d].color,label:a[d].label,angle:a[d].data[0][1]*2*Math.PI/n,percent:100*(a[d].data[0][1]/n)});0<j&&f.push({data:[[1,b]],color:g,label:c.series.pie.combine.label,angle:b*2*Math.PI/n,percent:100*(b/n)});return f;}function H(a,b){function j(){ctx.clearRect(0,0,l.width,l.height);t.children().filter(".pieLabel, .pieLabelBackground").remove();}function g(){var a=1<c.series.pie.radius?c.series.pie.radius:o*c.series.pie.radius;if(!(a>=l.width/2-5||a*c.series.pie.tilt>=l.height/2-15||10>=a)){ctx.save();ctx.translate(5,15);ctx.globalAlpha=0.02;ctx.fillStyle="#000";ctx.translate(m,v);ctx.scale(1,c.series.pie.tilt);for(var b=1;10>=b;b++)ctx.beginPath(),ctx.arc(0,0,a,0,2*Math.PI,!1),ctx.fill(),a-=b;ctx.restore();}}function f(){function a(b,c,d){0>=b||isNaN(b)||(d?ctx.fillStyle=c:(ctx.strokeStyle=c,ctx.lineJoin="round"),ctx.beginPath(),1.0E-9<Math.abs(b-2*Math.PI)?ctx.moveTo(0,0):s.browser.msie&&(b-=1.0E-4),ctx.arc(0,0,f,g,g+b,!1),ctx.closePath(),g+=b,d?ctx.fill():ctx.stroke());}function b(){for(var a=j,f=1<c.series.pie.label.radius?c.series.pie.label.radius:o*c.series.pie.label.radius,g=0;g<d.length;++g){if(d[g].percent>=100*c.series.pie.label.threshold){var e=d[g],h=a,q=g;if(0!=e.data[0][1]){var p=c.legend.labelFormatter,k=void 0,r=c.series.pie.label.formatter,k=p?p(e.label,e):e.label;r&&(k=r(k,e));p=(h+e.angle+h)/2;h=m+Math.round(Math.cos(p)*f);p=v+Math.round(Math.sin(p)*f)*c.series.pie.tilt;t.append('<span class="pieLabel" id="pieLabel'+q+'" style="position:absolute;top:'+p+"px;left:"+h+'px;">'+k+"</span>");q=t.children("#pieLabel"+q);k=p-q.height()/2;p=h-q.width()/2;q.css("top",k);q.css("left",p);if(0<0-k||0<0-p||0>l.height-(k+q.height())||0>l.width-(p+q.width()))w=!0;0!=c.series.pie.label.background.opacity&&(h=c.series.pie.label.background.color,null==h&&(h=e.color),e="top:"+k+"px;left:"+p+"px;",s('<div class="pieLabelBackground" style="position:absolute;width:'+q.width()+"px;height:"+q.height()+"px;"+e+"background-color:"+h+';"> </div>').insertBefore(q).css("opacity",c.series.pie.label.background.opacity));}}a+=d[g].angle;}}var j=Math.PI*c.series.pie.startAngle,f;f=1<c.series.pie.radius?c.series.pie.radius:o*c.series.pie.radius;ctx.save();ctx.translate(m,v);ctx.scale(1,c.series.pie.tilt);ctx.save();for(var g=j,h=0;h<d.length;++h)d[h].startAngle=g,a(d[h].angle,d[h].color,!0);ctx.restore();if(0<c.series.pie.stroke.width){ctx.save();ctx.lineWidth=c.series.pie.stroke.width;g=j;for(h=0;h<d.length;++h)a(d[h].angle,c.series.pie.stroke.color,!1);ctx.restore();}B(ctx);c.series.pie.label.show&&b();ctx.restore();}if(t){ctx=b;z=t.children().filter(".legend").children().width();o=Math.min(l.width,l.height/c.series.pie.tilt)/2;v=l.height/2+c.series.pie.offset.top;m=l.width/2;m="auto"==c.series.pie.offset.left?c.legend.position.match("w")?m+z/2:m-z/2:m+c.series.pie.offset.left;m<o?m=o:m>l.width-o&&(m=l.width-o);for(var d=a.getData(),h=0;w&&h<C;)w=!1,0<h&&(o*=I),h+=1,j(),0.8>=c.series.pie.tilt&&g(),f();h>=C&&(j(),t.prepend('<div class="error">Could not draw pie with labels contained inside canvas</div>'));a.setSeries&&a.insertLegend&&(a.setSeries(d),a.insertLegend());}}function B(a){0<c.series.pie.innerRadius&&(a.save(),innerRadius=1<c.series.pie.innerRadius?c.series.pie.innerRadius:o*c.series.pie.innerRadius,a.globalCompositeOperation="destination-out",a.beginPath(),a.fillStyle=c.series.pie.stroke.color,a.arc(0,0,innerRadius,0,2*Math.PI,!1),a.fill(),a.closePath(),a.restore(
3214),a.save(),a.beginPath(),a.strokeStyle=c.series.pie.stroke.color,a.arc(0,0,innerRadius,0,2*Math.PI,!1),a.stroke(),a.closePath(),a.restore());}function J(a){D("plothover",a);}function K(a){D("plotclick",a);}function D(a,b){var j=r.offset(),g=parseInt(b.pageX-j.left);a:{for(var j=parseInt(b.pageY-j.top),f=r.getData(),d=r.getOptions(),d=1<d.series.pie.radius?d.series.pie.radius:o*d.series.pie.radius,h=0;h<f.length;++h){var e=f[h];if(e.pie.show){ctx.save();ctx.beginPath();ctx.moveTo(0,0);ctx.arc(0,0,d,e.startAngle,e.startAngle+e.angle,!1);ctx.closePath();x=g-m;y=j-v;if(ctx.isPointInPath){if(ctx.isPointInPath(g-m,j-v)){ctx.restore();g={datapoint:[e.percent,e.data],dataIndex:0,series:e,seriesIndex:h};break a;}}else{p1X=d*Math.cos(e.startAngle);p1Y=d*Math.sin(e.startAngle);p2X=d*Math.cos(e.startAngle+e.angle/4);p2Y=d*Math.sin(e.startAngle+e.angle/4);p3X=d*Math.cos(e.startAngle+e.angle/2);p3Y=d*Math.sin(e.startAngle+e.angle/2);p4X=d*Math.cos(e.startAngle+e.angle/1.5);p4Y=d*Math.sin(e.startAngle+e.angle/1.5);p5X=d*Math.cos(e.startAngle+e.angle);p5Y=d*Math.sin(e.startAngle+e.angle);arrPoly=[[0,0],[p1X,p1Y],[p2X,p2Y],[p3X,p3Y],[p4X,p4Y],[p5X,p5Y]];arrPoint=[x,y];for(var l=!1,u=-1,s=arrPoly.length,n=s-1;++u<s;n=u)(arrPoly[u][1]<=arrPoint[1]&&arrPoint[1]<arrPoly[n][1]||arrPoly[n][1]<=arrPoint[1]&&arrPoint[1]<arrPoly[u][1])&&arrPoint[0]<(arrPoly[n][0]-arrPoly[u][0])*(arrPoint[1]-arrPoly[u][1])/(arrPoly[n][1]-arrPoly[u][1])+arrPoly[u][0]&&(l=!l);if(l){ctx.restore();g={datapoint:[e.percent,e.data],dataIndex:0,series:e,seriesIndex:h};break a;}}ctx.restore();}}g=null;}if(c.grid.autoHighlight)for(j=0;j<k.length;++j)if(f=k[j],f.auto==a&&!(g&&f.series==g.series)&&(f=f.series,null==f&&(k=[],r.triggerRedrawOverlay()),"number"==typeof f&&(f=series[f]),f=E(f),-1!=f))k.splice(f,1),r.triggerRedrawOverlay();g&&(j=g.series,"number"==typeof j&&(j=series[j]),f=E(j),-1==f?(k.push({series:j,auto:a}),r.triggerRedrawOverlay()):a||(k[f].auto=!1));t.trigger(a,[{pageX:b.pageX,pageY:b.pageY},g]);}function E(a){for(var b=0;b<k.length;++b)if(k[b].series==a)return b;return -1;}function L(a,b){var c=a.getOptions(),g=1<c.series.pie.radius?c.series.pie.radius:o*c.series.pie.radius;b.save();b.translate(m,v);b.scale(1,c.series.pie.tilt);for(i=0;i<k.length;++i){var f=k[i].series;0>=f.angle||isNaN(f.angle)||(b.fillStyle="rgba(255, 255, 255, "+c.series.pie.highlight.opacity+")",b.beginPath(),1.0E-9<Math.abs(f.angle-2*Math.PI)&&b.moveTo(0,0),b.arc(0,0,g,f.startAngle,f.startAngle+f.angle,!1),b.closePath(),b.fill());}B(b);b.restore();}var l=null,t=null,o=null,m=null,v=null,n=0,w=!0,C=10,I=0.95,z=0,A=!1,k=[];r.hooks.processOptions.push(function(a,b){b.series.pie.show&&(b.grid.show=!1,"auto"==b.series.pie.label.show&&(b.series.pie.label.show=b.legend.show?!1:!0),"auto"==b.series.pie.radius&&(b.series.pie.radius=b.series.pie.label.show?0.75:1),1<b.series.pie.tilt&&(b.series.pie.tilt=1),0>b.series.pie.tilt&&(b.series.pie.tilt=0),a.hooks.processDatapoints.push(F),a.hooks.drawOverlay.push(L),a.hooks.draw.push(H));});r.hooks.bindEvents.push(function(a,b){var c=a.getOptions();c.series.pie.show&&c.grid.hoverable&&b.unbind("mousemove").mousemove(J);c.series.pie.show&&c.grid.clickable&&b.unbind("click").click(K);});},options:c,name:"pie",version:"1.0"});})(jQuery);
3215/* resource: ++resource++collective.polls/js/polls.js */
3216!function($){"use strict";var Poll=function(element,options){this.init('polls',element,options);};Poll.prototype={constructor:Poll,init:function(type,element,options){this.type=type;this.$element=$(element);this.options=this.get_options(options);if(this.options.type=='bar')this.setup_bars_poll();if(this.options.type=='pie')this.setup_pie_poll();},get_options:function(options){options=$.extend({},$.fn[this.type].defaults,options,this.$element.data());return options;},_create_bar:function(bar_data){var label=$('<span/>').addClass('bar-label');var bar=$('<div/>').addClass('bar');var vote_counter=$('<span/>').append(' ('+bar_data.value+')');var bar_row=$('<div/>').addClass('bar-row');bar_row.data('bar_row_value',bar_data.value);var bg=bar_data.color;label.html(bar_data.label);if(!this.options.show_labels)label.css('display','none');if(this.options.show_votes)label.append(vote_counter);
3216bar.css({'background-color':bg,'height':this.options.bars_height,'display':'block'});bar_row.css({'margin-bottom':this.options.bars_separation});bar_row.append(label).append(bar);return bar_row;},_calculate_values:function(total_votes){var global_this=this;var rows=this.$element.find('.bar-row');var max_width=this.options.width?this.options.width:this.$element.width();rows.each(function(){var $this=$(this);var porcentual=100/total_votes*$this.data('bar_row_value');var porcentual_real_str=(porcentual+'').substring(0,4)+' %';$this.find('.bar').css({'width':max_width/100*porcentual+'px'});if(global_this.options.show_porcentual)$this.find('.bar').append($('<span/>').html(porcentual_real_str));});},setup_bars_poll:function(){var data=this.options.data;var bar={};var label='label';var total_votes=0;for(var i=0,len=data.length;i<len;i++){var $d=data[i];if(typeof $d=="number")bar.value=$d;else bar.value=$d.data;bar.label=$d.label?$d.label:label+i;bar.color=$d.color;if(!$d.color)bar.color=this.options.colors[i];total_votes+=bar.value;var bar_row=this._create_bar(bar);this.$element.append(bar_row);}this._calculate_values(total_votes);},setup_pie_poll:function(){var data=this.options.data;$.plot(this.$element,data,{series:{pie:{show:true}},legend:{show:this.options.show_labels}});}};$.fn.polls=function(option){return this.each(function(){var $this=$(this),data=$this.data('polls'),options=typeof option=='object'&&option;if(!data)$this.data('polls',(data=new Poll(this,options)));if(typeof option=='string')data[option]();});};$.fn.polls.Constructor=Poll;$.fn.polls.defaults={type:'bar',width:undefined,bars_height:'14px',bars_separation:'10px',show_labels:true,show_votes:true,show_porcentual:true,colors:['#599B10','#008B88','#009ADD','#F1AD00','#FA5600','#F8002A','#599B10','#008B88','#009ADD','#F1AD00','#FA5600','#F8002A'],data:[]};}(window.jQuery);
3217/* resource: ++resource++collective.polls/js/collective.poll.js */
3218!function($){"use strict";$(function(){var init_poll=function($poll){var url=$poll.attr('data-poll-url');$.ajax({url:url+'/@@update-poll',context:$poll,success:function(data){var $poll=this;var uid=$poll.attr('data-poll-uid');var base_css='.poll[data-poll-uid='+uid+'] ';$(base_css+'.poll-graph').html(data);var cookie='collective.poll.'+uid;var has_votted=(document.cookie.indexOf(cookie)>=0);if(!has_votted){var has_votted_attr=$poll.attr('data-poll-voted');if(has_votted_attr=='True')has_votted=true;}var closed=($poll.attr('data-poll-closed')==="True");var total_votes=parseInt($poll.attr('data-poll-totalvotes'),10);if(total_votes===0)$(base_css+'.toggle-result').hide();else $(base_css+'.toggle-result').show();if(has_votted||closed){$(base_css+'.poll-form').remove();$(base_css+'.toggle-result').remove();$(base_css+'.poll-graph').addClass('active');}else $(base_css+'.poll-form').addClass('active');$(base_css+'.poll-data, '+base_css+' .votePortlet form').drawpoll();}});};$('.poll').on('click','a.toggle-result',function(e){e.preventDefault();var $poll=$(this).parents('.poll');$('.poll-toggle',$poll).toggleClass('active');});$('.poll form').on('submit',function(e){e.preventDefault();var $form=$(this);$.ajax({type:'POST',url:$form.attr('action'),data:$form.serialize()+'&poll.submit=Submit',context:this,success:function(data){var $form=$(this);var $poll=$form.parents('.poll');$poll.attr('data-poll-voted','True');init_poll($poll);}});});$('.poll').each(function(){var $poll=$(this);init_poll($poll);});});var DrawPoll=function(element,options){this.init(element);};DrawPoll.prototype={constructor:DrawPoll,init:function(poll){this.poll=$(poll);this.content_handler=this.get_handler();if(this.content_handler[0]!==undefined){this.type=this.get_type();this.data=this.get_data();this.extra_conf={'width':undefined};switch(this.type){case 'portlet':this.setup_portlet(this.data.type);break;default:this.setup_default(this.data.type);}this.draw(this.data,this.content_handler,this.extra_conf);}},draw:function(data,content_handler,extra_conf){content_handler.polls({width:extra_conf.width,type:data.type,data:data.result_data});},get_data:function(poll){var poll=poll!==undefined?poll:this.poll,raw_results=poll.find('.poll-results'),result={},result_data=[];raw_results.find('li').each(function(i){var li=$(this),data={};data.label=li.find('.option_description').text();data.data=li.find('.option_result').text()*1;result_data[i]=data;});result.type=this.get_graph_type(poll);result.result_data=result_data;raw_results.hide();return result;},get_handler:function(poll){var poll=poll!==undefined?poll:this.poll,handler=poll.find('[class*=pollresultholder]');return handler;},get_type:function(handler){var handler=handler!==undefined?handler:this.content_handler,re=/\w+(?=pollresultholder)/,match=handler.attr('class').match(re),type=match?match[0]:match;if(type===undefined)type='default';return type;},get_graph_type:function(poll){var poll=poll!==undefined?poll:this.poll,re=/\w+(?=-poll)/,match=poll.attr('class').match(re),type=match?match[0]:match;return type;},setup_portlet:function(type){if(type==='pie')this.content_handler.height(150);else if(type==='bar'){var width=this.poll.parents('.portletItem').width();this.content_handler.width(width);}},setup_default:function(type){var width=350;switch(type){case 'pie':this.content_handler.height(200);this.content_handler.width(width);break;case 'bar':width=300;break;}this.extra_conf.width=width;}};$.fn.drawpoll=function(option){return this.each(function(){var $this=$(this),data=$this.data('drawpoll'),options=typeof option=='object'&&option;if(!data)$this.data('drawpoll',(data=new DrawPoll(this,options)));if(typeof option=='string')data[option]();});};$.fn.drawpoll.Constructor=DrawPoll;}(window.jQuery);
3219/* resource: ++resource++collective.polls/js/jquery.tasksplease.js */
3220(function($){function TasksPlease(item,conf){var self=this,sorteable=conf.sorteable,taskmanager;$.extend(self,{init:function(){self.setup();},create_task:function(text,position){if(position===undefined)position=-1;var task=$('<li/>');task.append($('<span />',{text:text,'class':'text'}));task.append('<a class="edit" href="#"><span>'+tp_i18n.edit_task+'</span></a>').append('<a class="remove" href="#"><span>'+tp_i18n.delete_task+'</span></a>');self.delete_event(task.find('.remove'),task);self.edit_event(task.find('.edit'),task);taskmanager.append(task);task.hide().fadeIn();return task;},delete_task:function(index){element_to_delete=taskmanager.find('li')[index];if(element_to_delete!==undefined){$(element_to_delete).fadeOut(300,function(){$(this).remove();});var text_area_list=item.val().split('\n');text_area_list.splice(index,1);item.val(text_area_list.join('\n'));}},edit_task:function(index,new_value){element_to_edit=taskmanager.find('li')[index];if(element_to_edit!==undefined){var text_area_list=item.val().split('\n');text_area_list[index]=new_value;item.val(text_area_list.join('\n'));}},make_sortable:function(){taskmanager.sortable({placeholder:"ui-state-highlight",stop:function(event,ui){var tasks_content=$.map(taskmanager.find('.text'),function(el){return $(el).text();});item.val(tasks_content.join('\n'));}});},setup:function(){var lines=[];taskmanager=$('<ul class="tasksplease"/>');var value=item.val();if(value[0]!==undefined)lines=value.split('\n');$.each(lines,function(i,e){self.create_task(e,i);});self.container=$('<div class="tasksplease-container"/>');var add_new=$('<textarea type="text" name="task-description"           class="task-description" rows="1" placeholder="'+tp_i18n.add_task+'"></textarea>');self.container.append(taskmanager).append(add_new).append('<input class="add_task" type="submit" value="'+tp_i18n.add+'"/>');item.after(self.container);self.add_new_event(self.container.find('.add_task'));item.hide();if(sorteable&&jQuery.ui&&'sortable' in jQuery.ui)self.make_sortable();},add_new_event:function(trigger){$(trigger).click(function(e){var description=$(this).siblings('.task-description');var value=description.val();if(value[0]!==undefined){var clean_text=value.replace(/(\r\n|\n|\r)/gm," ");self.create_task(clean_text);description_content=item.val()+'\n'+clean_text;if(item.val()[0]===undefined)description_content=clean_text;item.val(description_content);description.val('');}e.preventDefault();});},delete_event:function(trigger,element_to_delete){$(trigger).click(function(e){var index=$(element_to_delete).index();self.delete_task(index);e.preventDefault();});},edit_event:function(trigger,element_to_edit){$(trigger).click(function(e){var index=element_to_edit.index();var edit=element_to_edit.find('.text');edit.replaceWith('<input type="text" value="'+edit.text()+'">');var input=element_to_edit.find('input');input.select();
3220input.keypress(function(e){if(e.which==13){$(this).replaceWith($('<span class="text"/>').text(this.value));self.edit_task(index,this.value);}});e.preventDefault();});}});self.init();};$.fn.tasksplease=function(options){var el=this.data("tasksplease");if(el)return el;var settings={'sorteable':true};if(options)$.extend(settings,options);return this.each(function(){el=new TasksPlease($(this),settings);$(this).data("tasksplease",el);});};})(jQuery);
3221/* resource: ++resource++plone.formwidget.recaptcha/recaptcha_ajax.js */
3222var RecaptchaTemplates={VertHtml:'<table id="recaptcha_table" class="recaptchatable" >\n<tr>\n<td colspan="6" class=\'recaptcha_r1_c1\'></td>\n</tr>\n<tr>\n<td class=\'recaptcha_r2_c1\'></td>\n<td colspan="4" class=\'recaptcha_image_cell\'><div id="recaptcha_image"></div></td>\n<td class=\'recaptcha_r2_c2\'></td>\n</tr>\n<tr>\n<td rowspan="6" class=\'recaptcha_r3_c1\'></td>\n<td colspan="4" class=\'recaptcha_r3_c2\'></td>\n<td rowspan="6" class=\'recaptcha_r3_c3\'></td>\n</tr>\n<tr>\n<td rowspan="3" class=\'recaptcha_r4_c1\' height="49">\n<div class="recaptcha_input_area">\n<label for="recaptcha_response_field" class="recaptcha_input_area_text"><span id="recaptcha_instructions_image" class="recaptcha_only_if_image recaptcha_only_if_no_incorrect_sol"></span><span id="recaptcha_instructions_audio" class="recaptcha_only_if_no_incorrect_sol recaptcha_only_if_audio"></span><span id="recaptcha_instructions_error" class="recaptcha_only_if_incorrect_sol"></span></label><br/>\n<input name="recaptcha_response_field" id="recaptcha_response_field" type="text" />\n</div>\n</td>\n<td rowspan="4" class=\'recaptcha_r4_c2\'></td>\n<td><a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="17" /></a></td>\n<td rowspan="4" class=\'recaptcha_r4_c4\'></td>\n</tr>\n<tr>\n<td><a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="16" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="16" alt=""/></a></td>\n</tr>\n<tr>\n<td><a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a></td>\n</tr>\n<tr>\n<td class=\'recaptcha_r7_c1\'></td>\n<td class=\'recaptcha_r8_c1\'></td>\n</tr>\n</table>\n',VertCss:'.recaptchatable td img {\n/* see http://developer.mozilla.org/en/docs/Images%2C_Tables%2C_and_Mysterious_Gaps */\ndisplay: block;\n}\n.recaptchatable .recaptcha_r1_c1 { background: url(IMGROOT/sprite.png) -0px -63px no-repeat; width: 318px; height: 9px; }\n.recaptchatable .recaptcha_r2_c1 { background: url(IMGROOT/sprite.png) -18px -0px no-repeat; width: 9px; height: 57px; }\n.recaptchatable .recaptcha_r2_c2 { background: url(IMGROOT/sprite.png) -27px -0px no-repeat; width: 9px; height: 57px; }\n.recaptchatable .recaptcha_r3_c1 { background: url(IMGROOT/sprite.png) -0px -0px no-repeat; width: 9px; height: 63px; }\n.recaptchatable .recaptcha_r3_c2 { background: url(IMGROOT/sprite.png) -18px -57px no-repeat; width: 300px; height: 6px; }\n.recaptchatable .recaptcha_r3_c3 { background: url(IMGROOT/sprite.png) -9px -0px no-repeat; width: 9px; height: 63px; }\n.recaptchatable .recaptcha_r4_c1 { background: url(IMGROOT/sprite.png) -43px -0px no-repeat; width: 171px; height: 49px; }\n.recaptchatable .recaptcha_r4_c2 { background: url(IMGROOT/sprite.png) -36px -0px no-repeat; width: 7px; height: 57px; }\n.recaptchatable .recaptcha_r4_c4 { background: url(IMGROOT/sprite.png) -214px -0px no-repeat; width: 97px; height: 57px; }\n.recaptchatable .recaptcha_r7_c1 { background: url(IMGROOT/sprite.png) -43px -49px no-repeat; width: 171px; height: 8px; }\n.recaptchatable .recaptcha_r8_c1 { background: url(IMGROOT/sprite.png) -43px -49px no-repeat; width: 25px; height: 8px; }\n.recaptchatable .recaptcha_image_cell center img { height:57px;}\n.recaptchatable .recaptcha_image_cell center { height:57px;}\n.recaptchatable .recaptcha_image_cell {\nbackground-color:white; height:57px;\n}\n/* some people break their style sheet, we need to clean up after them */\n#recaptcha_area, #recaptcha_table {\nwidth: 318px !important;\n}\n.recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {\nmargin:0px !important;\nborder:0px !important;
3222\npadding:0px !important;\nborder-collapse: collapse !important;\nvertical-align: middle !important;\n}\n.recaptchatable * {\nmargin:0px;\npadding:0px;\nborder:0px;\nfont-family:helvetica,sans-serif;\nfont-size:8pt;\ncolor:black;\nposition:static;\ntop:auto;\nleft:auto;\nright:auto;\nbottom:auto;\ntext-align:left !important;\n}\n.recaptchatable #recaptcha_image {\nmargin:auto;\n}\n.recaptchatable img {\nborder:0px !important;\nmargin:0px !important;\npadding:0px !important;\n}\n.recaptchatable a, .recaptchatable a:hover {\n-moz-outline:none;\nborder:0px !important;\npadding:0px !important;\ntext-decoration:none;\ncolor:blue;\nbackground:none !important;\nfont-weight: normal;\n}\n.recaptcha_input_area {\nposition:relative !important;\nwidth:146px !important;\nheight:45px !important;\nmargin-left:20px !important;\nmargin-right:5px !important;\nmargin-top:4px !important;\nbackground:none !important;\n}\n.recaptchatable label.recaptcha_input_area_text {\nmargin:0px !important;  \npadding:0px !important;\nposition:static !important;\ntop:auto !important;\nleft:auto !important;\nright:auto !important;\nbottom:auto !important;\nbackground:none !important;\nheight:auto !important;\nwidth:auto !important;\n}\n.recaptcha_theme_red label.recaptcha_input_area_text,\n.recaptcha_theme_white label.recaptcha_input_area_text {\ncolor:black !important;\n}\n.recaptcha_theme_blackglass label.recaptcha_input_area_text {\ncolor:white !important;\n}\n.recaptchatable #recaptcha_response_field  {\nwidth:145px !important;\nposition:absolute !important;\nbottom:7px !important;\npadding:0px !important;\nmargin:0px !important;\nfont-size:10pt;\n}\n.recaptcha_theme_blackglass #recaptcha_response_field,\n.recaptcha_theme_white #recaptcha_response_field {\nborder: 1px solid gray;\n}\n.recaptcha_theme_red #recaptcha_response_field {\nborder:1px solid #cca940;\n}\n.recaptcha_audio_cant_hear_link {\nfont-size:7pt;\ncolor:black;\n}\n.recaptchatable {\nline-height:1em;\n}\n#recaptcha_instructions_error {\ncolor:red !important;\n}\n',CleanHtml:'<table id="recaptcha_table" class="recaptchatable">\n<tr height="73">\n<td class=\'recaptcha_image_cell\' width="302"><center><div id="recaptcha_image"></div></center></td>\n<td style="padding: 10px 7px 7px 7px;">\n<a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="18" alt="" /></a>\n<a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="15" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="15" alt=""/></a>\n<a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a>\n</td>\n<td style="padding: 18px 7px 18px 7px;">\n<img id=\'recaptcha_logo\' alt="" width="71" height="36" />\n</td>\n</tr>\n<tr>\n<td style="padding-left: 7px;">\n<div class="recaptcha_input_area" style="padding-top: 2px; padding-bottom: 7px;">\n<input style="border: 1px solid #3c3c3c; width: 302px;" name="recaptcha_response_field" id="recaptcha_response_field" type="text" />\n</div>\n</td>\n<td></td>\n<td style="padding: 4px 7px 12px 7px;">\n<img id="recaptcha_tagline" width="71" height="17" />\n</td>\n</tr>\n</table>\n',CleanCss:'.recaptchatable td img {\ndisplay: block;\n}\n.recaptchatable .recaptcha_image_cell center img { height:57px;}\n.recaptchatable .recaptcha_image_cell center { height:57px;}\n.recaptchatable .recaptcha_image_cell {\nbackground-color:white; height:57px; \npadding: 7px !important;\n}\n.recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {\nmargin:0px !important;\nborder:0px !important;\nborder-collapse: collapse !important;\nvertical-align: middle !important;\n}\n.recaptchatable * {\nmargin:0px;\npadding:0px;\nborder:0px;\ncolor:black;\nposition:static;\ntop:auto;\nleft:auto;\nright:auto;\nbottom:auto;\ntext-align:left !important;\n}\n.recaptchatable #recaptcha_image {\nmargin:auto;\nborder: 1px solid #dfdfdf !important;\n}\n.recaptchatable a img {\nborder:0px;\n}\n.recaptchatable a, .recaptchatable a:hover {\n-moz-outline:none;\nborder:0px !important;
3222\npadding:0px !important;\ntext-decoration:none;\ncolor:blue;\nbackground:none !important;\nfont-weight: normal;\n}\n.recaptcha_input_area {\nposition:relative !important;\nbackground:none !important;\n}\n.recaptchatable label.recaptcha_input_area_text {\nborder:1px solid #dfdfdf !important;\nmargin:0px !important;  \npadding:0px !important;\nposition:static !important;\ntop:auto !important;\nleft:auto !important;\nright:auto !important;\nbottom:auto !important;\n}\n.recaptcha_theme_red label.recaptcha_input_area_text,\n.recaptcha_theme_white label.recaptcha_input_area_text {\ncolor:black !important;\n}\n.recaptcha_theme_blackglass label.recaptcha_input_area_text {\ncolor:white !important;\n}\n.recaptchatable #recaptcha_response_field  {\nfont-size:11pt;\n}\n.recaptcha_theme_blackglass #recaptcha_response_field,\n.recaptcha_theme_white #recaptcha_response_field {\nborder: 1px solid gray;\n}\n.recaptcha_theme_red #recaptcha_response_field {\nborder:1px solid #cca940;\n}\n.recaptcha_audio_cant_hear_link {\nfont-size:7pt;\ncolor:black;\n}\n.recaptchatable {\nline-height:1em;\nborder: 1px solid #dfdfdf !important;\n}\n.recaptcha_error_text {\ncolor:red;\n}\n'};var RecaptchaStr_en={visual_challenge:"Get a visual challenge",audio_challenge:"Get an audio challenge",refresh_btn:"Get a new challenge",instructions_visual:"Type the two words:",instructions_audio:"Type what you hear:",help_btn:"Help",play_again:"Play sound again",cant_hear_this:"Download sound as MP3",incorrect_try_again:"Incorrect. Try again."};var RecaptchaStr_de={visual_challenge:"Visuelle Aufgabe generieren",audio_challenge:"Audio-Aufgabe generieren",refresh_btn:"Neue Aufgabe generieren",instructions_visual:"Gib die 2 W\u00f6rter ein:",instructions_audio:"Gib die 8 Ziffern ein:",help_btn:"Hilfe",incorrect_try_again:"Falsch. Nochmals versuchen!"};var RecaptchaStr_es={visual_challenge:"Obt\u00e9n un reto visual",audio_challenge:"Obt\u00e9n un reto audible",refresh_btn:"Obt\u00e9n un nuevo reto",instructions_visual:"Escribe las 2 palabras:",instructions_audio:"Escribe los 8 n\u00fameros:",help_btn:"Ayuda",incorrect_try_again:"Incorrecto. Otro intento."};var RecaptchaStr_fr={visual_challenge:"D\u00e9fi visuel",audio_challenge:"D\u00e9fi audio",refresh_btn:"Nouveau d\u00e9fi",instructions_visual:"Entrez les deux mots:",instructions_audio:"Entrez les huit chiffres:",help_btn:"Aide",incorrect_try_again:"Incorrect."};var RecaptchaStr_nl={visual_challenge:"Test me via een afbeelding",audio_challenge:"Test me via een geluidsfragment",refresh_btn:"Nieuwe uitdaging",instructions_visual:"Type de twee woorden:",instructions_audio:"Type de acht cijfers:",help_btn:"Help",incorrect_try_again:"Foute invoer."};var RecaptchaStr_pt={visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio sonoro",refresh_btn:"Obter um novo desafio",instructions_visual:"Escreva as 2 palavras:",instructions_audio:"Escreva os 8 numeros:",help_btn:"Ajuda",incorrect_try_again:"Incorrecto. Tenta outra vez."};var RecaptchaStr_ru={visual_challenge:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",audio_challenge:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",refresh_btn:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",instructions_visual:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0432\u0430 \u0441\u043b\u043e\u0432\u0430:",instructions_audio:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b:",help_btn:"\u041f\u043e\u043c\u043e\u0449\u044c",incorrect_try_again:"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e."};var RecaptchaStr_tr={visual_challenge:"G\u00f6rsel deneme",audio_challenge:"\u0130\u015Fitsel deneme",refresh_btn:"Yeni deneme",instructions_visual:"\u0130ki kelimeyi yaz\u0131n:",instructions_audio:"Sekiz numaray\u0131 yaz\u0131n:",help_btn:"Yard\u0131m (\u0130ngilizce)",incorrect_try_again:"Yanl\u0131\u015f. Bir daha deneyin."};var RecaptchaLangMap={en:RecaptchaStr_en,de:RecaptchaStr_de,es:RecaptchaStr_es,fr:RecaptchaStr_fr,nl:RecaptchaStr_nl,pt:RecaptchaStr_pt,ru:RecaptchaStr_ru,tr:RecaptchaStr_tr};var RecaptchaStr=RecaptchaStr_en;var RecaptchaOptions;var RecaptchaDefaultOptions={tabindex:0,theme:'red',callback:null,lang:'en',custom_theme_widget:null,custom_translations:null};var Recaptcha={widget:null,timer_id:-1,style_set:false,theme:null,type:'image',ajax_verify_cb:null,$:function(id){if(typeof id=="string")return document.getElementById(id);else return id;},create:function(public_key,element,options){Recaptcha.destroy();if(element)Recaptcha.widget=Recaptcha.$(element);Recaptcha._init_options(options);Recaptcha._call_challenge(public_key);},destroy:function(){var challengefield=Recaptcha.$('recaptcha_challenge_field');if(challengefield)challengefield.parentNode.removeChild(challengefield);if(Recaptcha.timer_id!=-1)clearInterval(Recaptcha.timer_id);Recaptcha.timer_id=-1;var imagearea=Recaptcha.$('recaptcha_image');if(imagearea)imagearea.innerHTML="";if(Recaptcha.widget){if(Recaptcha.theme!="custom")Recaptcha.widget.innerHTML="";else Recaptcha.widget.style.display="none";Recaptcha.widget=null;}},focus_response_field:function(){var $=Recaptcha.$;var field=$('recaptcha_response_field');field.focus();},get_challenge:function(){if(typeof RecaptchaState=="undefined")return null;return RecaptchaState.challenge;},get_response:function(){var $=Recaptcha.$;var field=$('recaptcha_response_field');if(!field)return null;return field.value;},ajax_verify:function(callback){Recaptcha.ajax_verify_cb=callback;var scriptURL=Recaptcha._get_api_server()+"/ajaxverify"+"?c="+encodeURIComponent(Recaptcha.get_challenge(
3222))+"&response="+encodeURIComponent(Recaptcha.get_response());Recaptcha._add_script(scriptURL);},_ajax_verify_callback:function(data){Recaptcha.ajax_verify_cb(data);},_get_api_server:function(){var protocol=window.location.protocol;var server;if(typeof _RecaptchaOverrideApiServer!="undefined")server=_RecaptchaOverrideApiServer;else if(protocol=='https:')server="api-secure.recaptcha.net";else server="api.recaptcha.net";return protocol+"//"+server;},_call_challenge:function(public_key){var scriptURL=Recaptcha._get_api_server()+"/challenge?k="+public_key+"&ajax=1&cachestop="+Math.random();if(typeof (RecaptchaOptions.extra_challenge_params)!="undefined")scriptURL+="&"+RecaptchaOptions.extra_challenge_params;Recaptcha._add_script(scriptURL);},_add_script:function(scriptURL){var scriptTag=document.createElement("script");scriptTag.type="text/javascript";scriptTag.src=scriptURL;Recaptcha._get_script_area().appendChild(scriptTag);},_get_script_area:function(){var parentElement=document.getElementsByTagName("head");if(!parentElement||parentElement.length<1)parentElement=document.body;else parentElement=parentElement[0];return parentElement;},_hash_merge:function(hashes){var r={};for(var h in hashes)for(var k in hashes[h])r[k]=hashes[h][k];return r;},_init_options:function(opts){RecaptchaOptions=Recaptcha._hash_merge([RecaptchaDefaultOptions,opts||{}]);},challenge_callback:function(){var element=Recaptcha.widget;Recaptcha._reset_timer();RecaptchaStr=Recaptcha._hash_merge([RecaptchaStr_en,RecaptchaLangMap[RecaptchaOptions.lang]||{},RecaptchaOptions.custom_translations||{}]);if(window.addEventListener)window.addEventListener('unload',function(e){Recaptcha.destroy();},false);if(Recaptcha._is_ie()&&window.attachEvent)window.attachEvent('onbeforeunload',function(){});if(navigator.userAgent.indexOf("KHTML")>0){var iframe=document.createElement('iframe');iframe.src="about:blank";iframe.style.height="0px";iframe.style.width="0px";iframe.style.visibility="hidden";iframe.style.border="none";var textNode=document.createTextNode("This frame prevents back/forward cache problems in Safari.");iframe.appendChild(textNode);document.body.appendChild(iframe);}Recaptcha._finish_widget();},_add_css:function(css){var styleTag=document.createElement("style");styleTag.type="text/css";if(styleTag.styleSheet)if(navigator.appVersion.indexOf("MSIE 5")!=-1)document.write("<style type='text/css'>"+css+"</style>");else styleTag.styleSheet.cssText=css;else if(navigator.appVersion.indexOf("MSIE 5")!=-1)document.write("<style type='text/css'>"+css+"</style>");else{var textNode=document.createTextNode(css);styleTag.appendChild(textNode);}Recaptcha._get_script_area().appendChild(styleTag);},_set_style:function(css){if(Recaptcha.style_set)return;Recaptcha.style_set=true;Recaptcha._add_css(css+"\n\n"+".recaptcha_is_showing_audio .recaptcha_only_if_image,"+".recaptcha_isnot_showing_audio .recaptcha_only_if_audio,"+".recaptcha_had_incorrect_sol .recaptcha_only_if_no_incorrect_sol,"+".recaptcha_nothad_incorrect_sol .recaptcha_only_if_incorrect_sol"+"{display:none !important}");},_init_builtin_theme:function(){var $=Recaptcha.$;var $_=RecaptchaStr;var $ST=RecaptchaState;var css,html,imgfmt;var server_no_slash=$ST.server;if(server_no_slash[server_no_slash.length-1]=="/")server_no_slash=server_no_slash.substring(0,server_no_slash.length-1);var IMGROOT=server_no_slash+"/img/"+Recaptcha.theme;if(Recaptcha.theme=='clean'){css=RecaptchaTemplates.CleanCss;html=RecaptchaTemplates.CleanHtml;imgfmt='png';}else{css=RecaptchaTemplates.VertCss;html=RecaptchaTemplates.VertHtml;imgfmt='gif';}css=css.replace(/IMGROOT/g,IMGROOT);Recaptcha._set_style(css);Recaptcha.widget.innerHTML="<div id='recaptcha_area'>"+html+"</div>";$('recaptcha_reload').src=IMGROOT+"/refresh."+imgfmt;$('recaptcha_switch_audio').src=IMGROOT+"/audio."+imgfmt;$('recaptcha_switch_img').src=IMGROOT+"/text."+imgfmt;$('recaptcha_whatsthis').src=IMGROOT+"/help."+imgfmt;if(Recaptcha.theme=='clean'){$('recaptcha_logo').src=IMGROOT+"/logo."+imgfmt;$('recaptcha_tagline').src=IMGROOT+"/tagline."+imgfmt;}$('recaptcha_reload').alt=$_.refresh_btn;$('recaptcha_switch_audio').alt=$_.audio_challenge;$('recaptcha_switch_img').alt=$_.visual_challenge;$('recaptcha_whatsthis').alt=$_.help_btn;$('recaptcha_reload_btn').href="javascript:Recaptcha.reload ();";$('recaptcha_reload_btn').title=$_.refresh_btn;$('recaptcha_switch_audio_btn').href="javascript:Recaptcha.switch_type('audio');";$('recaptcha_switch_audio_btn').title=$_.audio_challenge;$('recaptcha_switch_img_btn').href="javascript:Recaptcha.switch_type('image');";$('recaptcha_switch_img_btn').title=$_.visual_challenge;$('recaptcha_whatsthis_btn').href=Recaptcha._get_help_link();$('recaptcha_whatsthis_btn').target="_blank";$('recaptcha_whatsthis_btn').title=$_.help_btn;$('recaptcha_whatsthis_btn').onclick=function(){Recaptcha.showhelp();return false;};$('recaptcha_table').className="recaptchatable "+"recaptcha_theme_"+Recaptcha.theme;if($("recaptcha_instructions_image"))$("recaptcha_instructions_image").appendChild(document.createTextNode($_.instructions_visual));if($("recaptcha_instructions_audio"))$("recaptcha_instructions_audio").appendChild(document.createTextNode($_.instructions_audio));if($("recaptcha_instructions_error"))$("recaptcha_instructions_error").appendChild(document.createTextNode($_.incorrect_try_again));},_finish_widget:function(){var $=Recaptcha.$;var $_=RecaptchaStr;var $ST=RecaptchaState;var $OPT=RecaptchaOptions;var theme=$OPT.theme;switch(theme){case 'red':case 'white':case 'blackglass':case 'clean':case 'custom':break;default:theme='red';break;}if(!Recaptcha.theme)Recaptcha.theme=theme;if(Recaptcha.theme!="custom")Recaptcha._init_builtin_theme();else Recaptcha._set_style("");var challengeFieldHolder=document.createElement("span");challengeFieldHolder.id="recaptcha_challenge_field_holder";challengeFieldHolder.style.display="none";$('recaptcha_response_field').parentNode.insertBefore(challengeFieldHolder,$('recaptcha_response_field'));$('recaptcha_response_field').setAttribute("autocomplete","off");$('recaptcha_image').style.width='300px';$('recaptcha_image').style.height='57px';Recaptcha.should_focus=false;Recaptcha._set_challenge($ST.challenge,'image');if($OPT.tabindex){$('recaptcha_response_field').tabIndex=$OPT.tabindex;if(Recaptcha.theme!="custom"){$('recaptcha_whatsthis_btn').tabIndex=$OPT.tabindex;$('recaptcha_switch_img_btn').tabIndex=$OPT.tabindex;$('recaptcha_switch_audio_btn').tabIndex=$OPT.tabindex;$('recaptcha_reload_btn').tabIndex=$OPT.tabindex;}}if(Recaptcha.widget)Recaptcha.widget.style.display='';if($OPT.callback)$OPT.callback();},switch_type:function(new_type){var $C=Recaptcha;$C.type=new_type;$C.reload($C.type=='audio'?'a':'v');},reload:function(reason){var $C=Recaptcha;var $=$C.$;var $ST=RecaptchaState;if(typeof reason=="undefined")reason='r';var scriptURL=$ST.server+"reload?c="+$ST.challenge+"&k="+$ST.site+"&reason="+reason+"&type="+$C.type+"&lang="+RecaptchaOptions.lang;if(typeof (RecaptchaOptions.extra_challenge_params)!="undefined")scriptURL+="&"+RecaptchaOptions.extra_challenge_params;if($C.type=='audio')if(RecaptchaOptions.audio_beta_12_08)scriptURL+="&audio_beta_12_08=1";else scriptURL+="&new_audio_default=1";$C.should_focus=reason!='t';$C._add_script(scriptURL);},finish_reload:function(new_challenge,type){RecaptchaState.is_incorrect=false;Recaptcha._set_challenge(new_challenge,type);},_set_challenge:function(new_challenge,type){var $C=Recaptcha;var $ST=RecaptchaState;var $=$C.$;$ST.challenge=new_challenge;$C.type=type;$('recaptcha_challenge_field_holder').innerHTML="<input type='hidden' name='recaptcha_challenge_field' id='recaptcha_challenge_field' value='"+$ST.challenge+"'/>";if(type=='audio')$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();else if(type=='image'){var imageurl=$ST.server+'image?c='+$ST.challenge;$('recaptcha_image').innerHTML="<img style='display:block;' height='57' width='300' src='"+imageurl+"'/>";}Recaptcha._css_toggle("recaptcha_had_incorrect_sol","recaptcha_nothad_incorrect_sol",$ST.is_incorrect);
3222Recaptcha._css_toggle("recaptcha_is_showing_audio","recaptcha_isnot_showing_audio",type=='audio');$C._clear_input();if($C.should_focus)$C.focus_response_field();$C._reset_timer();},_reset_timer:function(){var $ST=RecaptchaState;clearInterval(Recaptcha.timer_id);Recaptcha.timer_id=setInterval("Recaptcha.reload('t');",($ST.timeout-60*5)*1000);},showhelp:function(){window.open(Recaptcha._get_help_link(),"recaptcha_popup","width=460,height=570,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes");},_clear_input:function(){var resp=Recaptcha.$('recaptcha_response_field');resp.value="";},_displayerror:function(msg){var $=Recaptcha.$;$('recaptcha_image').innerHTML='';$('recaptcha_image').appendChild(document.createTextNode(msg));},reloaderror:function(msg){Recaptcha._displayerror(msg);},_is_ie:function(){return(navigator.userAgent.indexOf("MSIE")>0)&&!window.opera;},_css_toggle:function(classT,classF,isset){var element=Recaptcha.widget;if(!element)element=document.body;var classname=element.className;classname=classname.replace(new RegExp("(^|\\s+)"+classT+"(\\s+|$)"),' ');classname=classname.replace(new RegExp("(^|\\s+)"+classF+"(\\s+|$)"),' ');classname+=" "+(isset?classT:classF);element.className=classname;},_get_help_link:function(){var lang=RecaptchaOptions.lang;return 'http://recaptcha.net/popuphelp/'+(lang=='en'?"":(lang+".html"));},playAgain:function(){var $=Recaptcha.$;$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();},getAudioCaptchaHtml:function(){var $C=Recaptcha;var $ST=RecaptchaState;var $=Recaptcha.$;var httpwavurl=$ST.server+"image?c="+$ST.challenge;if(httpwavurl.indexOf("https://")==0)httpwavurl="http://"+httpwavurl.substring(8);var swfUrl=$ST.server+"/img/audiocaptcha.swf?v2";var embedCode;if($C._is_ie())embedCode='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="audiocaptcha" width="0" height="0" codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+swfUrl+'" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="always" /></object><br/>';else embedCode='<embed src="'+swfUrl+'" quality="high" bgcolor="#869ca7" width="0" height="0" name="audiocaptcha" align="middle" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed> ';var cantHearCode=(Recaptcha.checkFlashVer()?'<br/><a class="recaptcha_audio_cant_hear_link" href="#" onclick="Recaptcha.playAgain(); return false;">'+RecaptchaStr.play_again+'</a>':'')+'<br/><a class="recaptcha_audio_cant_hear_link" target="_blank" href="'+httpwavurl+'">'+RecaptchaStr.cant_hear_this+'</a>';return embedCode+cantHearCode;},gethttpwavurl:function(){var $ST=RecaptchaState;if(Recaptcha.type=='audio'){var httpwavurl=$ST.server+"image?c="+$ST.challenge;if(httpwavurl.indexOf("https://")==0)httpwavurl="http://"+httpwavurl.substring(8);return httpwavurl;}return "";},checkFlashVer:function(){var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");flashVer=tempArrayMajor[0];}}else if(isIE&&isWin&&!isOpera)try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var flashVerStr=axo.GetVariable("$version");flashVer=flashVerStr.split(" ")[1].split(",")[0];}catch(e){}return flashVer>=9;},getlang:function(){return RecaptchaOptions.lang;}};
3223}catch(e){
3224    // log it
3225    if (typeof console !== "undefined"){
3226        console.log('Error loading javascripts!' + e);
3227    }
3228}finally{
3229    define = _old_define;
3230    require = _old_require;
3231}
3232
3233(function(){var e=this,t=e._,i=Array.prototype,s=Object.prototype,n=Function.prototype,a=i.push,l=i.slice,c=s.toString,r=s.hasOwnProperty,o=Array.isArray,d=Object.keys,u=n.bind,h=Object.create,p=function(){},m=function(e){return e instanceof m?e:this instanceof m?void(this._wrapped=e):new m(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):e._=m,m.VERSION="1.8.3";var _=function(a,r,e){if(void 0===r)return a;switch(null==e?3:e){case 1:return function(e){return a.call(r,e)};case 2:return function(e,t){return a.call(r,e,t)};case 3:return function(e,t,n){return a.call(r,e,t,n)};case 4:return function(e,t,n,i){return a.call(r,e,t,n,i)}}return function(){return a.apply(r,arguments)}},f=function(e,t,n){return null==e?m.identity:m.isFunction(e)?_(e,t,n):m.isObject(e)?m.matcher(e):m.property(e)};m.iteratee=function(e,t){return f(e,t,1/0)};var g=function(l,d){return function(e){var t=arguments.length;if(t<2||null==e)return e;for(var n=1;n<t;n++)for(var i=arguments[n],a=l(i),r=a.length,s=0;s<r;s++){var o=a[s];d&&void 0!==e[o]||(e[o]=i[o])}return e}},y=function(e){if(!m.isObject(e))return{};if(h)return h(e);p.prototype=e;var t=new p;return p.prototype=null,t},v=function(t){return function(e){return null==e?void 0:e[t]}},M=Math.pow(2,53)-1,L=v("length"),w=function(e){var t=L(e);return"number"==typeof t&&0<=t&&t<=M};function b(o){return function(e,t,n,i){t=_(t,i,4);var a=!w(e)&&m.keys(e),r=(a||e).length,s=0<o?0:r-1;return arguments.length<3&&(n=e[a?a[s]:s],s+=o),function(e,t,n,i,a,r){for(;0<=a&&a<r;a+=o){var s=i?i[a]:a;n=t(n,e[s],s,e)}return n}(e,t,n,a,s,r)}}m.each=m.forEach=function(e,t,n){var i,a;if(t=_(t,n),w(e))for(i=0,a=e.length;i<a;i++)t(e[i],i,e);else{var r=m.keys(e);for(i=0,a=r.length;i<a;i++)t(e[r[i]],r[i],e)}return e},m.map=m.collect=function(e,t,n){t=f(t,n);for(var i=!w(e)&&m.keys(e),a=(i||e).length,r=Array(a),s=0;s<a;s++){var o=i?i[s]:s;r[s]=t(e[o],o,e)}return r},m.reduce=m.foldl=m.inject=b(1),m.reduceRight=m.foldr=b(-1),m.find=m.detect=function(e,t,n){var i;if(void 0!==(i=w(e)?m.findIndex(e,t,n):m.findKey(e,t,n))&&-1!==i)return e[i]},m.filter=m.select=function(e,i,t){var a=[];return i=f(i,t),m.each(e,function(e,t,n){i(e,t,n)&&a.push(e)}),a},m.reject=function(e,t,n){return m.filter(e,m.negate(f(t)),n)},m.every=m.all=function(e,t,n){t=f(t,n);for(var i=!w(e)&&m.keys(e),a=(i||e).length,r=0;r<a;r++){var s=i?i[r]:r;if(!t(e[s],s,e))return!1}return!0},m.some=m.any=function(e,t,n){t=f(t,n);for(var i=!w(e)&&m.keys(e),a=(i||e).length,r=0;r<a;r++){var s=i?i[r]:r;if(t(e[s],s,e))return!0}return!1},m.contains=m.includes=m.include=function(e,t,n,i){return w(e)||(e=m.values(e)),("number"!=typeof n||i)&&(n=0),0<=m.indexOf(e,t,n)},m.invoke=function(e,n){var i=l.call(arguments,2),a=m.isFunction(n);return m.map(e,function(e){var t=a?n:e[n];return null==t?t:t.apply(e,i)})},m.pluck=function(e,t){return m.map(e,m.property(t))},m.where=function(e,t){return m.filter(e,m.matcher(t))},m.findWhere=function(e,t){return m.find(e,m.matcher(t))},m.max=function(e,i,t){var n,a,r=-1/0,s=-1/0;
vendor: 13,934 bytes, line 3233
3233if(null==i&&null!=e)for(var o=0,l=(e=w(e)?e:m.values(e)).length;o<l;o++)n=e[o],r<n&&(r=n);else i=f(i,t),m.each(e,function(e,t,n){a=i(e,t,n),(s<a||a===-1/0&&r===-1/0)&&(r=e,s=a)});return r},m.min=function(e,i,t){var n,a,r=1/0,s=1/0;if(null==i&&null!=e)for(var o=0,l=(e=w(e)?e:m.values(e)).length;o<l;o++)(n=e[o])<r&&(r=n);else i=f(i,t),m.each(e,function(e,t,n){((a=i(e,t,n))<s||a===1/0&&r===1/0)&&(r=e,s=a)});return r},m.shuffle=function(e){for(var t,n=w(e)?e:m.values(e),i=n.length,a=Array(i),r=0;r<i;r++)(t=m.random(0,r))!==r&&(a[r]=a[t]),a[t]=n[r];return a},m.sample=function(e,t,n){return null==t||n?(w(e)||(e=m.values(e)),e[m.random(e.length-1)]):m.shuffle(e).slice(0,Math.max(0,t))},m.sortBy=function(e,i,t){return i=f(i,t),m.pluck(m.map(e,function(e,t,n){return{value:e,index:t,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")};var k=function(s){return function(i,a,e){var r={};return a=f(a,e),m.each(i,function(e,t){var n=a(e,t,i);s(r,e,n)}),r}};m.groupBy=k(function(e,t,n){m.has(e,n)?e[n].push(t):e[n]=[t]}),m.indexBy=k(function(e,t,n){e[n]=t}),m.countBy=k(function(e,t,n){m.has(e,n)?e[n]++:e[n]=1}),m.toArray=function(e){return e?m.isArray(e)?l.call(e):w(e)?m.map(e,m.identity):m.values(e):[]},m.size=function(e){return null==e?0:w(e)?e.length:m.keys(e).length},m.partition=function(e,i,t){i=f(i,t);var a=[],r=[];return m.each(e,function(e,t,n){(i(e,t,n)?a:r).push(e)}),[a,r]},m.first=m.head=m.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:m.initial(e,e.length-t)},m.initial=function(e,t,n){return l.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},m.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:m.rest(e,Math.max(0,e.length-t))},m.rest=m.tail=m.drop=function(e,t,n){return l.call(e,null==t||n?1:t)},m.compact=function(e){return m.filter(e,m.identity)};var Y=function(e,t,n,i){for(var a=[],r=0,s=i||0,o=L(e);s<o;s++){var l=e[s];if(w(l)&&(m.isArray(l)||m.isArguments(l))){t||(l=Y(l,t,n));var d=0,u=l.length;for(a.length+=u;d<u;)a[r++]=l[d++]}else n||(a[r++]=l)}return a};function T(r){return function(e,t,n){t=f(t,n);for(var i=L(e),a=0<r?0:i-1;0<=a&&a<i;a+=r)if(t(e[a],a,e))return a;return-1}}function D(r,s,o){return function(e,t,n){var i=0,a=L(e);if("number"==typeof n)0<r?i=0<=n?n:Math.max(n+a,i):a=0<=n?Math.min(n+1,a):n+a+1;else if(o&&n&&a)return e[n=o(e,t)]===t?n:-1;if(t!=t)return 0<=(n=s(l.call(e,i,a),m.isNaN))?n+i:-1;for(n=0<r?i:a-1;0<=n&&n<a;n+=r)if(e[n]===t)return n;return-1}}m.flatten=function(e,t){return Y(e,t,!1)},m.without=function(e){return m.difference(e,l.call(arguments,1))},m.uniq=m.unique=function(e,t,n,i){m.isBoolean(t)||(i=n,n=t,t=!1),null!=n&&(n=f(n,i));for(var a=[],r=[],s=0,o=L(e);s<o;s++){var l=e[s],d=n?n(l,s,e):l;t?(s&&r===d||a.push(l),r=d):n?m.contains(r,d)||(r.push(d),a.push(l)):m.contains(a,l)||a.push(l)}return a},m.union=function(){return m.uniq(Y(arguments,!0,!0))},m.intersection=function(e){for(var t=[],n=arguments.length,i=0,a=L(e);i<a;i++){var r=e[i];if(!m.contains(t,r)){for(var s=1;s<n&&m.contains(arguments[s],r);s++);s===n&&t.push(r)}}return t},m.difference=function(e){var t=Y(arguments,!0,!0,1);return m.filter(e,function(e){return!m.contains(t,e)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(e){for(var t=e&&m.max(e,L).length||0,n=Array(t),i=0;i<t;i++)n[i]=m.pluck(e,i);return n},m.object=function(e,t){for(var n={},i=0,a=L(e);i<a;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},m.findIndex=T(1),m.findLastIndex=T(-1),m.sortedIndex=function(e,t,n,i){for(var a=(n=f(n,i,1))(t),r=0,s=L(e);r<s;){var o=Math.floor((r+s)/2);n(e[o])<a?r=o+1:s=o}return r},m.indexOf=D(1,m.findIndex,m.sortedIndex),m.lastIndexOf=D(-1,m.findLastIndex),m.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var i=Math.max(Math.ceil((t-e)/n),0),a=Array(i),r=0;r<i;r++,e+=n)a[r]=e;return a};var S=function(e,t,n,i,a){if(!(i instanceof t))return e.apply(n,a);var r=y(e.prototype),s=e.apply(r,a);return m.isObject(s)?s:r};m.bind=function(e,t){if(u&&e.bind===u)return u.apply(e,l.call(arguments,1));if(!m.isFunction(e))throw new TypeError("Bind must be called on a function");var n=l.call(arguments,2),i=function(){return S(e,i,t,this,n.concat(l.call(arguments)))};return i},m.partial=function(a){var r=l.call(arguments,1),s=function(){for(var e=0,t=r.length,n=Array(t),i=0;i<t;i++)n[i]=r[i]===m?arguments[e++]:r[i];for(;e<arguments.length;)n.push(arguments[e++]);return S(a,s,this,this,n)};return s},m.bindAll=function(e){var t,n,i=arguments.length;if(i<=1)throw new Error("bindAll must be passed function names");for(t=1;t<i;t++)e[n=arguments[t]]=m.bind(e[n],e);return e},m.memoize=function(i,a){var r=function(e){var t=r.cache,n=""+(a?a.apply(this,arguments):e);return m.has(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return r.cache={},r},m.delay=function(e,t){var n=l.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,i,a){var r,s,o,l=null,d=0;a||(a={});var u=function(){d=!1===a.leading?0:m.now(),l=null,o=n.apply(r,s),l||(r=s=null)};return function(){var e=m.now();d||!1!==a.leading||(d=e);var t=i-(e-d);return r=this,s=arguments,t<=0||i<t?(l&&(clearTimeout(l),l=null),d=e,o=n.apply(r,s),l||(r=s=null)):l||!1===a.trailing||(l=setTimeout(u,t)),o}},m.debounce=function(t,n,i){var a,r,s,o,l,d=function(){var e=m.now()-o;e<n&&0<=e?a=setTimeout(d,n-e):(a=null,i||(l=t.apply(s,r),a||(s=r=null)))};return function(){s=this,r=arguments,o=m.now();var e=i&&!a;return a||(a=setTimeout(d,n)),e&&(l=t.apply(s,r),s=r=null),l}},m.wrap=function(e,t){return m.partial(t,e)},m.negate=function(e){return function(){return!e.apply(this,arguments)}},m.compose=function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},m.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},m.before=function(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},m.once=m.partial(m.before,2);var x=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function H(e,t){var n=j.length,i=e.constructor,a=m.isFunction(i)&&i.prototype||s,r="constructor";for(m.has(e,r)&&!m.contains(t,r)&&t.push(r);n--;)(r=j[n])in e&&e[r]!==a[r]&&!m.contains(t,r)&&t.push(r)}m.keys=function(e){if(!m.isObject(e))return[];if(d)return d(e);var t=[];for(var n in e)m.has(e,n)&&t.push(n);return x&&H(e,t),t},m.allKeys=function(e){if(!m.isObject(e))return[];var t=[];for(var n in e)t.push(n);return x&&H(e,t),t},m.values=function(e){for(var t=m.keys(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=e[t[a]];return i},m.mapObject=function(e,t,n){t=f(t,n);for(var i,a=m.keys(e),r=a.length,s={},o=0;o<r;o++)s[i=a[o]]=t(e[i],i,e);return s},m.pairs=function(e){for(var t=m.keys(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=[t[a],e[t[a]]];return i},m.invert=function(e){for(var t={},n=m.keys(e),i=0,a=n.length;i<a;i++)t[e[n[i]]]=n[i];return t},m.functions=m.methods=function(e){var t=[];for(var n in e)m.isFunction(e[n])&&t.push(n);return t.sort()},m.extend=g(m.allKeys),m.extendOwn=m.assign=g(m.keys),m.findKey=function(e,t,n){t=f(t,n);for(var i,a=m.keys(e),r=0,s=a.length;r<s;r++)if(t(e[i=a[r]],i,e))return i},m.pick=function(e,t,n){var i,a,r={},s=e;if(null==s)return r;m.isFunction(t)?(a=m.allKeys(s),i=_(t,n)):(a=Y(arguments,!1,!1,1),i=function(e,t,n){return t in n},s=Object(s));for(var o=0,l=a.length;o<l;o++){var d=a[o],u=s[d];i(u,d,s)&&(r[d]=u)}return r},m.omit=function(e,t,n){if(m.isFunction(t))t=m.negate(t);else{var i=m.map(Y(arguments,!1,!1,1),String);t=function(e,t){return!m.contains(i,t)}}return m.pick(e,t,n)},m.defaults=g(m.allKeys,!0),m.create=function(e,t){var n=y(e);return t&&m.extendOwn(n,t),n},m.clone=function(e){return m.isObject(e)?m.isArray(e)?e.slice():m.extend({},e):e},m.tap=function(e,t){return t(e),e},m.isMatch=function(e,t){var n=m.keys(t),i=n.length;if(null==e)return!i;for(var a=Object(e),r=0;r<i;r++){var s=n[r];if(t[s]!==a[s]||!(s in a))return!1}return!0};var C=function(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof m&&(e=e._wrapped),t instanceof m&&(t=t._wrapped);var a=c.call(e);if(a!==c.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var r="[object Array]"===a;if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,o=t.constructor;if(s!==o&&!(m.isFunction(s)&&s instanceof s&&m.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return i[l]===t;if(n.push(e),i.push(t),r){if((l=e.length)!==t.length)return!1;for(;l--;)if(!C(e[l],t[l],n,i))return!1}else{var d,u=m.keys(e);if(l=u.length,m.keys(t).length!==l)return!1;for(;l--;)if(d=u[l],!m.has(t,d)||!C(e[d],t[d],n,i))return!1}return n.pop(),i.pop(),!0};m.isEqual=function(e,t){return C(e,t)},m.isEmpty=function(e){return null==e||(w(e)&&(m.isArray(e)||m.isString(e)||m.isArguments(e))?0===e.length:0===m.keys(e).length)},m.isElement=function(e){return!(!e||1!==e.nodeType)},m.isArray=o||function(e){return"[object Array]"===c.call(e)},m.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){m["is"+t]=function(e){return c.call(e)==="[object "+t+"]"}}),m.isArguments(arguments)||(m.isArguments=function(e){return m.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(e){return"function"==typeof e||!1}),m.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},m.isNaN=function(e){return m.isNumber(e)&&e!==+e},m.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===c.call(e)},m.isNull=function(e){return null===e},m.isUndefined=function(e){return void 0===e},m.has=function(e,t){return null!=e&&r.call(e,t)},m.noConflict=function(){return e._=t,this},m.identity=function(e){return e},m.constant=function(e){return function(){return e}},m.noop=function(){},m.property=v,m.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},m.matcher=m.matches=function(t){return t=m.extendOwn({},t),function(e){return m.isMatch(e,t)}},m.times=function(e,t,n){var i=Array(Math.max(0,e));t=_(t,n,1);for(var a=0;a<e;a++)i[a]=t(a);return i},m.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},m.now=Date.now||function(){return(new Date).getTime()};var E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},A=m.invert(E),O=function(t){var n=function(e){return t[e]},e="(?:"+m.keys(t).join("|")+")",i=RegExp(e),a=RegExp(e,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(a,n):e}};m.escape=O(E),m.unescape=O(A),m.result=function(e,t,n){var i=null==e?void 0:e[t];return void 0===i&&(i=n),m.isFunction(i)?i.call(e):i};var P=0;m.uniqueId=function(e){var t=++P+"";return e?e+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\u2028|\u2029/g,I=function(e){return"\\"+F[e]};m.template=function(r,e,t){!e&&t&&(e=t),e=m.defaults({},e,m.templateSettings);var n=RegExp([(e.escape||$).source,(e.interpolate||$).source,(e.evaluate||$).source].join("|")+"|$","g"),s=0,o="__p+='";r.replace(n,function(e,t,n,i,a){return o+=r.slice(s,a).replace(N,I),s=a+e.length,t?o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var i=new Function(e.variable||"obj","_",o)}catch(e){throw e.source=o,e}var a=function(e){return i.call(this,e,m)},l=e.variable||"obj";return a.source="function("+l+"){\n"+o+"}",a},m.chain=function(e){var t=m(e);return t._chain=!0,t};var W=function(e,t){return e._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(e){var t=m[e]=n[e];m.prototype[e]=function(){var e=[this._wrapped];return a.apply(e,arguments),W(this,t.apply(m,e))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];m.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],W(this,e)}}),m.each(["concat","join","slice"],function(e){var t=i[e];m.prototype[e]=function(){return W(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this),function(){var e,n;Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},a=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,a.prototype=new i,a});var r={DEBUG:10,INFO:20,WARN:30,ERROR:40,FATAL:50};function t(){}function i(){}function s(e,t){this._loggers={},this.name=e||"",this._parent=t||null,t||(this._enabled=!0,this._level=r.WARN)}function a(e){n=e}t.prototype={output:function(e,t,n){if(void 0!==window.console&&void 0!==console.log){e&&n.unshift(e+":");var i,a=n.join(" ");if(void 0===typeof console.info)i=t<=r.DEBUG?"DEBUG":t<=r.INFO?"INFO":t<=r.WARN?"WARN":t<=r.E
3233RROR?"ERROR":"FATAL",console.log("["+i+"] "+a);else t<=r.DEBUG?(a="[DEBUG] "+a,console.log(a)):t<=r.INFO?console.info(a):t<=r.WARN?console.warn(a):console.error(a)}}},i.prototype={output:function(e,t,n){e&&n.unshift(e+":"),t<=r.DEBUG?(n.unshift("[DEBUG]"),console.log.apply(console,n)):t<=r.INFO?console.info.apply(console,n):t<=r.WARN?console.warn.apply(console,n):console.error.apply(console,n)}},s.prototype={getLogger:function(e){for(var t=e.split("."),n=this,i=this.name?[this.name]:[];t.length;){var a=t.shift();i.push(a),a in n._loggers||(n._loggers[a]=new s(i.join("."),n)),n=n._loggers[a]}return n},_getFlag:function(e){var t=this;for(e="_"+e;null!==t;){if(void 0!==t[e])return t[e];t=t._parent}return null},setEnabled:function(e){this._enabled=!!e},isEnabled:function(){this._getFlag("enabled")},setLevel:function(e){"number"==typeof e?this._level=e:"string"==typeof e&&(e=e.toUpperCase())in r&&(this._level=r[e])},getLevel:function(){return this._getFlag("level")},log:function(e,t){!t.length||!this._getFlag("enabled")||e<this._getFlag("level")||(t=Array.prototype.slice.call(t),n.output(this.name,e,t))},debug:function(){this.log(r.DEBUG,arguments)},info:function(){this.log(r.INFO,arguments)},warn:function(){this.log(r.WARN,arguments)},error:function(){this.log(r.ERROR,arguments)},fatal:function(){this.log(r.FATAL,arguments)}},window.console&&window.console.log&&"function"==typeof window.console.log.apply?a(new i):a(new t),e=new s;for(var o,l=/loglevel(|-[^=]+)=([^&]+)/g;null!==(o=l.exec(window.location.search));){(""===o[1]?e:e.getLogger(o[1].slice(1))).setLevel(o[2].toUpperCase())}var d={Level:r,getLogger:e.getLogger.bind(e),setEnabled:e.setEnabled.bind(e),isEnabled:e.isEnabled.bind(e),setLevel:e.setLevel.bind(e),getLevel:e.getLevel.bind(e),debug:e.debug.bind(e),info:e.info.bind(e),warn:e.warn.bind(e),error:e.error.bind(e),fatal:e.fatal.b
3233ind(e),getWriter:function(){return n},setWriter:a};"function"==typeof define?define("logging",[],function(){return d}):window.logging=d}(),define("pat-logger",["logging"],function(e){return e.getLogger("patterns")}),function(t){"function"==typeof define&&define.amd?define("jquery.browser",["jquery"],function(e){return t(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(window.jQuery)}(function(e){"use strict";function t(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0<=e.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(windows phone)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],i={},a={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};if(a.browser&&(i[a.browser]=!0,i.version=a.version,i.versionNumber=parseInt(a.versionNumber,10)),a.platform&&(i[a.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.edge){a.browser="msie",i.msie=!0}if(i.safari&&i.blackberry){var r="blackberry";i[a.browser=r]=!0}if(i.safari&&i.playbook){var s="playbook";i[a.browser=s]=!0}if(i.bb){var o="blackberry";i[a.browser=o]=!0}if(i.opr){a.browser="opera",i.opera=!0}if(i.safari&&i.android){var l="android";i[a.browser=l]=!0}if(i.safari&&i.kindle){a.browser="kindle",i.kindle=!0}if(i.safari&&i.silk){a.browser="silk",i.silk=!0}return i.name=a.browser,i.platform=a.platform,i}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}),define("pat-utils",["jquery","jquery.browser","underscore"],function(r){r.fn.safeClone=function(){var e=this.clone();return void 0!==r.browser.msie&&e.findInclusive(":input[placeholder]").each(function(e,t){var n=r(t);n.attr("placeholder")===n.val()&&n.val("")}),e},Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null===this)throw new TypeError(" this is null or not defined");var a=Object(this),r=a.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(n=t),i=0;i<r;){var s;i in a&&(s=a[i],e.call(n,s,i,a)),i++}});function s(e){var t=typeof e;return"function"===t||"object"===t&&!!e}var o={none:{hide:"hide",show:"show"},fade:{hide:"fadeOut",show:"fadeIn"},slide:{hide:"slideUp",show:"slideDown"}};return isElementInViewport=function(e,t,n){if(e===[])return!1;e instanceof r&&(e=e[0]);var i=e.getBoundingClientRect(),a=[i.top,i.bottom,i.left,i.right];return!_.every(a,function(e){if(0===e)return!0})&&(t?(void 0===n&&(n=0),i.top<=0+n&&i.bottom>=0+n):0<=i.top&&0<=i.left&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&i.right<=(window.innerWidth||document.documentElement.clientWidth))},{jqueryPlugin:function(n){return function(e,t){return 0===this.length?this:("object"==typeof e&&(t=e,e=void 0),"function"==typeof n?function(n,i,a){return this.each(function(){var e,t=r(this);if(e=n.init(t,a),i){if(void 0===e[i])return r.error("Method "+i+" does not exist on jQuery."+n.name),!1;if("_"===i.charAt(0))return r.error("Method "+i+" is private on jQuery."+n.name),!1;e[i].apply(e,[a])}}),this}.call(this,n,e,t):function(e,t,n){var i=this;if(t){if(e[t])return e[t].apply(i,[i].concat([n]));r.error("Method "+t+" does not exist on jQuery."+e.name)}else e.init.apply(i,[i].concat([n]));return i}.call(this,n,e,t))}},debounce:function(n,i){var a;return function(){var e=this,t=arguments;clearTimeout(a),a=setTimeout(function(){a=null,n.apply(e,t)},i)}},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isObject:s,extend:function(e){if(!s(e))return e;for(var t,n,i=1,a=arguments.length;i<a;i++)for(n in t=arguments[i])hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},rebaseURL:function(e,t){return-1!==t.indexOf("://")||"/"===t[0]?t:e.slice(0,e.lastIndexOf("/")+1)+t},findLabel:function(e){for(var t,n=e.parentNode;n&&11!==n.nodeType;n=n.parentNode)if("LABEL"===n.tagName)return n;return e.id&&(t=r('label[for="'+e.id+'"]')),t&&0===t.length&&e.form&&(t=r('label[for="'+e.name+'"]',e.form)),t&&t.length?t[0]:null},elementInViewport:function(e){var t=e.getBoundingClientRect(),n=document.documentElement,i=window.innerWidth||n.clientWidth,a=window.innerHeight||n.clientHeight;return!(t.right<0||t.bottom<0||t.left>i||t.top>a)},removeWildcardClass:function(e,t){if(-1===t.indexOf("*"))e.removeClass(t);else{var a=t.replace(/[\-\[\]{}()+?.,\\\^$|#\s]/g,"\\$&");a=a.replace(/[*]/g,".*"),a=new RegExp("^"+a+"$"),e.filter("[class]").each(function(){for(var e=r(this),t=e.attr("class").split(/\s+/),n=[],i=0;i<t.length;i++)a.test(t[i])||n.push(t[i]);n.length?e.attr("class",n.join(" ")):e.removeAttr("class")})}},hideOrShow:function(e,t,n,i){var a="css"===n.transition||"none"===n.transition?null:n.effect.duration;e.removeClass("visible hidden in-progress");var r=function(){e.removeClass("in-progress").addClass(t?"visible":"hidden").trigger("pat-update",{pattern:i,transition:"complete"})};if(a){var s=o[n.transition];e.addClass("in-progress").trigger("pat-update",{pattern:i,transition:"start"}),e[t?s.show:s.hide]({duration:a,easing:n.effect.easing,complete:r})}else"css"!==n.transition&&e[t?"show":"hide"](),r()},addURLQueryParameter:function(e,t,n){var i=new RegExp("(\\?|\\&)"+t+"=.*?(?=(&|$))"),a=e.toString().split("#"),r=a[0],s=a[1],o=r;return o=i.test(r)?r.replace(i,"$1"+t+"="+n):/\?.+$/.test(r)?r+"&"+t+"="+n:r+"?"+t+"="+n,s&&(o+="#"+s),o},removeDuplicateObjects:function(e){return _.reduce(e,function(e,t){var n=!1;
3233return _.each(e,function(e){n=_.keys(e).length===_.keys(t).length&&!_.chain(e).omit(function(e,t){return this[t]===e}.bind(t)).keys().value().length}),n||e.push(t),e},[])},mergeStack:function(e,i){for(var a=[],t=0;t<i;t++)a.push({});return _.each(e,function(e){for(var t=e.length-1,n=0;n<i;n++)a[n]=r.extend(a[n]||{},e[t<n?t:n])}),a},isElementInViewport:isElementInViewport}}),define("pat-compat",[],function(){var a,r,s,o;Array.prototype.every||(Array.prototype.every=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=arguments[1],a=0;a<n;a++)if(a in t&&!e.call(i,t[a],a,t))return!1;return!0}),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=[],a=arguments[1],r=0;r<n;r++)if(r in t){var s=t[r];e.call(a,s,r,t)&&i.push(s)}return i}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null===this)throw new TypeError(" this is null or not defined");var a=Object(this),r=a.length>>>0;if("[object Function]"!=={}.toString.call(e))throw new TypeError(e+" is not a function");for(t&&(n=t),i=0;i<r;){var s;i in a&&(s=a[i],e.call(n,s,i,a)),i++}}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var i=0;if(0<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(0<i||-1)*Math.floor(Math.abs(i)))),n<=i)return-1;for(var a=0<=i?i:Math.max(n-Math.abs(i),0);a<n;a++)if(a in t&&t[a]===e)return a;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var i=n;1<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(0<i||-1)*Math.floor(Math.abs(i))));for(var a=0<=i?Math.min(i,n-1):n-Math.abs(i);0<=a;a--)if(a in t&&t[a]===e)return a;return-1}),Array.prototype.map||(Array.prototype.map=function(e,t){var n,i,a;if(null===this)throw new TypeError(" this is null or not defined");var r=Object(this),s=r.length>>>0;if("[object Function]"!=={}.toString.call(e))throw new TypeError(e+" is not a function");for(t&&(n=t),i=new Array(s),a=0;a<s;){var o,l;a in r&&(o=r[a],l=e.call(n,o,a,r),i[a]=l),a++}return i}),Array.prototype.reduce||(Array.prototype.reduce=function(e){if(null==this)throw new TypeError("Object is null or undefined");var t,n=0,i=this.length>>0;if("function"!=typeof e)throw new TypeError("First argument is not callable");if(arguments.length<2){if(0===i)throw new TypeError("Array length is 0 and no second argument");t=this[0],n=1}else t=arguments[1];for(;n<i;)n in this&&(t=e.call(void 0,t,this[n],n,this)),++n;return t}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;if(0===n&&1===arguments.length)throw new TypeError;var i,a=n-1;if(2<=arguments.length)i=arguments[1];else for(;;){if(a in this){i=this[a--];break}if(--a<0)throw new TypeError}for(;0<=a;)a in t&&(i=e.call(void 0,i,t[a],a,t)),a--;return i}),Array.prototype.some||(Array.prototype.some=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=arguments[1],a=0;a<n;a++)if(a in t&&e.call(i,t[a],a,t))return!0;return!1}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},a=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,a.prototype=new i,a}),Object.keys||(Object.keys=(a=Object.prototype.hasOwnProperty,r=!{toString:null}
3233.propertyIsEnumerable("toString"),o=(s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on non-object");var t=[];for(var n in e)a.call(e,n)&&t.push(n);if(r)for(var i=0;i<o;i++)a.call(e,s[i])&&t.push(s[i]);return t}))}),define("pat-jquery-ext",["jquery"],function(u){var i={init:function(t){var n={time:3,initialTime:8,exceptionAreas:[]};return this.each(function(){var e=u(this);e.data("timeout")||(t&&u.extend(n,t),e.data("timeout",{lastEvent:new Date,trueTime:n.time,time:n.initialTime,untouched:!0,inExceptionArea:!1}),e.bind("mouseover.timeout",i.mouseMoved),e.bind("mouseenter.timeout",i.mouseMoved),u(n.exceptionAreas).each(function(){e.find(this).live("mouseover.timeout",{parent:e},i.enteredException).live("mouseleave.timeout",{parent:e},i.leftException)}),0<n.initialTime?e.timeout("startTimer"):e.addClass("timeout"))})},enteredException:function(e){var t=e.data.parent.data("timeout");t.inExceptionArea=!0,e.data.parent.data("timeout",t),e.data.parent.trigger("mouseover")},leftException:function(e){var t=e.data.parent.data("timeout");t.inExceptionArea=!1,e.data.parent.data("timeout",t)},destroy:function(){return this.each(function(){var e=u(this),t=e.data("timeout");u(window).unbind(".timeout"),t.timeout.remove(),e.removeData("timeout")})},mouseMoved:function(){var e=u(this),t=e.data("timeout");e.hasClass("timeout")?(e.removeClass("timeout"),e.timeout("startTimer")):t.untouched&&(t.untouched=!1,t.time=t.trueTime),t.lastEvent=new Date,e.data("timeout",t)},startTimer:function(){var i=u(this),e=i.data("timeout"),a=function(){var e=i.data("timeout");if(e&&e.lastEvent)if(e.inExceptionArea)setTimeout(a,Math.floor(1e3*e.time));else{var t=new Date,n=Math.floor(1e3*e.time)-(t-e.lastEvent);0<n?setTimeout(a,n+100):i.addClass("timeout")}};setTimeout(a,Math.floor(1e3*e.time))}};u.fn.timeout=function(e){return i[e]?i[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void u.error("Method "+e+" does not exist on jQuery.timeout"):i.init.apply(this,arguments)},u.extend(u.expr[":"],{scrollable:function(e){return"scroll"===u(e).css("overflow")||"scroll"===u(e).css("overflowX")||"scroll"===u(e).css("overflowY")||(e.clientHeight<e.scrollHeight&&(-1!==u.inArray(u(e).css("overflowY"),["scroll","auto"])||-1!==u.inArray(u(e).css("overflow"),["scroll","auto"]))||e.clientWidth<e.scrollWidth&&(-1!==u.inArray(u(e).css("overflowX"),["scroll","auto"])||-1!==u.inArray(u(e).css("overflow"),["scroll","auto"])))}}),u.fn.makeVisibleInScroll=function(e){var s=null;return"string"==typeof e?s=u("#"+e):e&&(s=u(e)),this.each(function(){var e,t=u(this);e=s||(0<(e=t.parents(":scrollable")).length?u(e[0]):u(window));var n=t.position().top,i=t.height()+n,a=e.scrollTop(),r=e.height()+a;n<a?e.scrollTop(n):i>r-e.height()/2&&e.scrollTop(n-(e.height()-t.height())/2)})},u.fn.setPositionAbsolute=function(o,l,d){return this.each(function(){var e=u(this),t=u(this).width(),n=o.offset(),i=o.width(),a=o.height(),r=n.left+i-t+d,s=n.top+a+l;e.css({"z-index":1,position:"absolute",marginLeft:0,marginTop:0,left:r+"px",top:s+"px",width:t}),e.remove().appendTo("body").show()})},u.fn.positionAncestor=function(s){var o=0,l=0;return this.each(function(){var e=u(this).closest(s);if(e.length&&"static"!==e.css("position")){var t=u(this),n=t.offset().left-parseInt(t.css("marginLeft"),10),i=t.offset().top-parseInt(t.css("marginTop"),10),a=e.offset().left+parseInt(e.css("borderLeftWidth"),10),r=e.offset().top+parseInt(e.css("borderTopWidth"),10);return o=n-a,l=i-r,!1}}),{left:o,top:l}},String.prototype.startsWith=function(e){return null!==this.match("^"+e)},String.prototype.endsWith=function(e){return null!==this.match(e+"$")},u.simplePlaceholder={placeholder_class:null,hide_placeholder:function(){var e=u(this);e.val()===e.attr("placeholder")&&e.val("").removeClass(u.simplePlaceholder.placeholder_class)},show_placeholder:function(){var e=u(this);""===e.val()&&e.val(e.attr("placeholder")).addClass(u.simplePlaceholder.placeholder_class)},prevent_placeholder_submit:function(){return u(this).find(".simple-placeholder").each(function(){var e=u(this);e.val()===e.attr("placeholder")&&e.val("")}
3233),!0}},u.fn.simplePlaceholder=function(e){if(void 0===document.createElement("input").placeholder){var t={placeholder_class:"placeholding"};e&&u.extend(t,e),u.simplePlaceholder.placeholder_class=t.placeholder_class,this.each(function(){var e=u(this);e.focus(u.simplePlaceholder.hide_placeholder),e.blur(u.simplePlaceholder.show_placeholder),""===e.val()&&(e.val(e.attr("placeholder")),e.addClass(u.simplePlaceholder.placeholder_class)),e.addClass("simple-placeholder"),u(this.form).submit(u.simplePlaceholder.prevent_placeholder_submit)})}return this},u.fn.findInclusive=function(e){return this.find("*").addBack().filter(e)},u.fn.slideIn=function(e,t,n){return this.animate({width:"show"},e,t,n)},u.fn.slideOut=function(e,t,n){return this.animate({width:"hide"},e,t,n)},u.expr[":"].Contains=function(e,t,n){return 0<=u(e).text().toUpperCase().indexOf(n[3].toUpperCase())},u.fn.scopedFind=function(e){return e.startsWith("#")?u(e):this.find(e)}}),define("pat-registry",["jquery","underscore","pat-logger","pat-utils","pat-compat","pat-jquery-ext"],function(r,s,o,i){for(var e,a=o.getLogger("registry"),t=/patterns-disable=([^&]+)/g,n=/patterns-dont-catch/g,l=!1,d={};null!==(e=t.exec(window.location.search));)d[e[1]]=!0,a.info("Pattern disabled via url config:",e[1]);for(;null!==(e=n.exec(window.location.search));)l=!0,a.info("I will not catch init exceptions");var u={patterns:{},initialized:!1,init:function(){r(document).ready(function(){a.info("loaded: "+Object.keys(u.patterns).sort().join(", ")),u.scan(document.body),u.initialized=!0,a.info("finished initial scan.")})},clear:function(){this.patterns={}},transformPattern:function(t,e){if(d[t])a.debug("Skipping disabled pattern:",t);else{var n=u.patterns[t];if(n.transform)try{n.transform(r(e))}catch(e){if(l)throw e;a.error("Transform error for pattern"+t,e)}}},initPattern:function(e,t,n){var i=r(t),a=u.patterns[e];if(a.init&&(plog=o.getLogger("pat."+e),i.is(a.trigger))){plog.debug("Initialising:",i);try{a.init(i,null,n),plog.debug("done.")}catch(e){if(l)throw e;plog.error("Caught error:",e)}}},orderPatterns:function(e){return s.contains(e,"validation")&&s.contains(e,"inject")&&(e.splice(e.indexOf("validation"),1),e.unshift("validation")),e},scan:function(e,n,i){var a=[];(n=this.orderPatterns(n||Object.keys(u.patterns))).forEach(s.partial(this.transformPattern,s,e)),n=s.each(n,function(e){var t=u.patterns[e];t.trigger&&a.unshift(t.trigger)}),r(e).findInclusive(a.join(",")).filter(function(){return 0===r(this).parents("pre").length}).filter(":not(.cant-touch-this)").toArray().reduceRight(function(e,t){n.forEach(s.partial(this.initPattern,s,t,i))}.bind(this),null),r("body").addClass("patterns-loaded")},register:function(e,t){var n;return(t=t||e.name)?u.patterns[t]?(a.error("Already have a pattern called: "+t),!1):((u.patterns[t]=e).jquery_plugin&&(n=("pat-"+t).replace(/-([a-zA-Z])/g,function(e,t){return t.toUpperCase()}),r.fn[n]=i.jqueryPlugin(e),r.fn[n.replace(/^pat/,"pattern")]=r.fn[n]),a.debug("Registered pattern:",t,e),u.initialized&&u.scan(document.body,[t]),!0):(a.error("Pattern lacks a name:",e),!1)}};return u}),define("pat-mockup-parser",["jquery"],function(s){"use strict";return{getOptions:function e(t,n,i){i=i||{},0===t.length||s.nodeName(t[0],"body")||(i=e(t.parent(),n,i));var a={};if(0!==t.length&&(a=t.data("pat-"+n))&&"string"==typeof a){var r={};s.each(a.split(";"),function(e,t){(t=t.split(":")).reverse();var n=t.pop();n=n.replace(/^\s+|\s+$/g,""),t.reverse();var i=t.join(":");i=i.replace(/^\s+|\s+$/g,""),r[n]=i}),a=r}return s.extend(!0,{},i,a)}}}),define("pat-base",["jquery","pat-registry","pat-mockup-parser","pat-logger"],function(a,s,o,l){"use strict";var r=l.getLogger("Patternslib Base"),d=function(e,t,n){var i=this.prototype.name,a=l.getLogger("pat."+i),r=e.data("pattern-"+i);if(void 0===r&&s.patterns[i]){try{t="mockup"===this.prototype.parser?o.getOptions(e,i,t):t,r=new s.patterns[i](e,t,n)}catch(e){a.error("Failed while initializing '"+i+"' pattern.",e)}e.data("pattern-"+i,r)}return r},u=function(e,t,n){this.$el=e,this.options=a.extend(!0,{},this.defaults||{},t||{}
3233),this.init(e,t,n),this.emit("init")};return u.prototype={constructor:u,on:function(e,t){this.$el.on(e+"."+this.name+".patterns",t)},emit:function(e,t){void 0===t&&(t=[]),this.$el.trigger(e+"."+this.name+".patterns",t)}},u.extend=function(e){var t,n=this;if(!e)throw new Error("Pattern configuration properties required when calling Base.extend");(t=e.hasOwnProperty("constructor")?e.constructor:function(){n.apply(this,arguments)}).extend=u.extend,t.init=d,t.jquery_plugin=!0,t.trigger=e.trigger;var i=function(){this.constructor=t};return i.prototype=n.prototype,t.prototype=new i,a.extend(!0,t.prototype,e),t.__super__=n.prototype,e.name?e.trigger?s.register(t,e.name):r.warn("The pattern '"+e.name+"' does not have a trigger attribute, it will not be registered."):r.warn("This pattern without a name attribute will not be registered!"),t},u}),define("mockup-patterns-base",["pat-base"],function(t){"use strict";var e=function(){return t.apply(this,arguments)};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return((e.prototype=t.prototype).constructor=e).extend=function(){console.log("Usage of the mockup-patterns-base pattern is deprecated and it will eventually be removed.Instead, use pat-base and explicitly set parser to 'mockup' when calling extend.");var e=t.extend.apply(this,arguments);return e.prototype.parser="mockup",e},e}),define("mockup-utils",["jquery"],function(d){"use strict";var e=function(e){var n=this;n.className="plone-loader";return e||(e={}),n.options=d.extend({},{backdrop:null,zIndex:10005},e),n.init=function(){n.$el=d("."+n.className),0===n.$el.length&&(n.$el=d("<div><div></div></div>"),n.$el.addClass(n.className).hide().appendTo("body"))},n.show=function(e){n.init(),n.$el.show();var t=n.options.zIndex;"function"==typeof t?t=Math.max(t(),10005):(t=10005,d(".plone-modal-wrapper,.plone-modal-backdrop").each(function(){t=Math.max(t,d(this).css("zIndex")||10005)}),t+=1),n.$el.css("zIndex",t),void 0===e&&(e=!0),n.options.backdrop&&(n.options.backdrop.closeOnClick=e,n.options.backdrop.closeOnEsc=e,n.options.backdrop.init(),n.options.backdrop.show())},n.hide=function(){n.init(),n.$el.hide()},n},i=function(e){return void 0===e&&(e="id"),e+Math.floor(65536*(1+Math.random())).toString(16).substring(1)},t={get:function(e){if(window.localStorage){var t=window.localStorage[e];return"string"==typeof t?JSON.parse(t):void 0}},set:function(e,t){window.localStorage&&(window.localStorage[e]=JSON.stringify(t))}};return{bool:function(e){return"string"==typeof e&&(e=d.trim(e).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(e)},escapeHTML:function(e){return d("<div/>").text(e).html()},removeHTML:function(e){return e.replace(/<[^>]+>/gi,"")},featureSupport:{dragAndDrop:function(){return"draggable"in document.createElement("span")},fileApi:function(){return"undefined"!=typeof FileReader},history:function(){return!(!window.history||!window.history.pushState)}},generateId:i,getAuthenticator:function(){var e=d('input[name="_authenticator"]');return 0===e.length?0<(e=d('a[href*="_authenticator"]')).length?e.attr("href").split("_authenticator=")[1]:"":e.val()},getWindow:function(){var e=window;return e.parent!==window&&(e=e.parent),e},Loading:e,loading:new e,parseBodyTag:function(e){return d(/<body[^>]*>[^]*<\/body>/im.exec(e)[0].replace("<body","<div").replace("</body>","</div>")).eq(0).html()},QueryHelper:function(e){var l=this;return l.options=d.extend({},{pattern:null,vocabularyUrl:null,searchParam:"SearchableText",pathOperator:"plone.app.querystring.operation.string.path",attributes:["UID","Title","Description","getURL","portal_type"],batchSize:10,baseCriteria:[],sort_on:"is_folderish",sort_order:"reverse",pathDepth:1},e),l.pattern=l.options.pattern,void 0!==l.pattern&&null!==l.pattern||(l.pattern={browsing:!1,basePath:"/"}),l.options.url&&!l.options.vocabularyUrl?l.options.vocabularyUrl=l.options.url:l.pattern.vocabularyUrl&&(l.options.vocabularyUrl=l.pattern.vocabularyUrl),l.valid=Boolean(l.options.vocabularyUrl),l.getBatch=function(e){return{page:e||1,size:l.options.batchSize}},l.getCurrentPath=function(){var e,t=l.pattern;"function"==typeof(e=l.currentPath?l.currentPath:t.currentPath)&&(e=e());var n=e;return n||(n=t.basePath?t.basePath:t.options.basePath?t.options.basePath:"/"),n},l.getCriterias=function(e,t){void 0===t&&(t={});var n=[];return(t=d.extend({},{useBaseCriteria:!0,additionalCriterias:[]},t)).useBaseCriteria&&(n=l.options.baseCriteria.slice(0)),e&&(e+="*",n.push({i:l.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:e})),t.searchPath?n.push({i:"path",o:l.options.pathOperator,v:t.searchPath+"::"+l.options.pathDepth}):l.pattern.browsing&&n.push({i:"path",o:l.options.pathOperator,v:l.getCurrentPath()+"::"+l.options.pathDepth}),n=n.concat(t.additionalCriterias)},l.getQueryData=function(e,t){var n={query:JSON.stringify({criteria:l.getCriterias(e),sort_on:l.options.sort_on,sort_order:l.options.sort_order}),attributes:JSON.stringify(l.options.attributes)};return t&&(n.batch=JSON.stringify(l.getBatch(t))),n},l.getUrl=function(){var e=l.options.vocabularyUrl;return-1===e.indexOf("?")?e+="?":e+="&",e+d.param(l.getQueryData())},l.selectAjax=function(){return{url:l.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(e,t){return l.getQueryData(e,t)},results:function(e,t){var n=10*t<e.total;return{results:e.results,more:n}}}},l.search=function(e,t,n,i,a,r){void 0===a&&(a=!0),void 0===r&&(r="GET");var s=[];a&&(s=l.options.baseCriteria.slice(0)),s.push({i:e,o:t,v:n});var o={query:JSON.stringify({criteria:s}),attributes:JSON.stringify(l.options.attributes)};d.ajax({url:l.options.vocabularyUrl,dataType:"JSON",data:o,type:r,success:i})},l},setId:function(e,t){void 0===t&&(t="id");var n=e.attr("id");return n=void 0===n?i(t):n.replace(/\./g,"-"),e.attr("id",n),n},storage:t}}),function(e){define("select2",[],function(){return function(){var a;void 0===(a=jQuery).fn.each2&&a.extend(a.fn,{each2:function(e){for(var t=a([0]),n=-1,i=this.length;++n<i&&(t.context=t[0]=this[n])&&!1!==e.call(t[0],n,t););return this}}),function(L,M){"use strict";if(window.Select2===M){var e,t,n,w,r,a,b,i,d={x:0,y:0},o={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case o.LEFT:case o.RIGHT:case o.UP:case o.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case o.SHIFT:case o.CTRL:case o.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which?e.which:e)&&e<=123}},s={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
3233V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};a=L(document),i=1,w=function(){return i++},t=H(e=H(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var r,t,n,i,a,s=".select2-results";this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==M&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=L(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=L("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+w()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=L(document.body),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(x(e.containerCss,this.opts.element)),this.container.addClass(x(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",g),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(x(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",g),this.results=r=this.container.find(s),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",g),this.results.on("mousemove",function(e){var t=d;t!==M&&t.x===e.pageX&&t.y===e.pageY||L(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",s,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",s,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",s,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",s,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),n=80,i=this.results,a=f(n,function(e){i.trigger("scroll-debounced",e)}),i.on("scroll",function(e){0<=c(e.target,i.get())&&a(e)}),this.dropdown.on("scroll-debounced",s,this.bind(this.loadMoreIfNeeded)),L(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),L(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),L.fn.mousewheel&&r.mousewheel(function(e,t,n,i){var a=r.scrollTop();0<i&&a-i<=0?(r.scrollTop(0),g(e)):i<0&&r.get(0).scrollHeight-r.scrollTop()+i<=r.height()&&(r.scrollTop(r.get(0).scrollHeight-r.height()),g(e))}),_(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",s,this.bind(function(e){0<L(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=M,L.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength);var o=e.element.prop("disabled");o===M&&(o=!1),this.enable(!o);var l=e.element.prop("readonly");l===M&&(l=!1),this.readonly(l),b=b||function(){var e=L("<div class='select2-measure-scrollbar'></div>");e.appendTo(document.body);var t={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),t}(),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==M&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),j.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:p(e.attr("locked"),"locked")||p(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(y){var s,e,t,n,v=this;if("select"===(s=y.element).get(0).tagName.toLowerCase()&&(this.select=e=y.element),e&&L.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in y)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),y.debug=y.debug||L.fn.select2.defaults.debug,y.debug&&console&&console.warn&&(null!=y.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=y.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=y.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=y.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=y.ajax&&null!=y.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `aja
3233x.processResults` in Select2 4.0.0."),null!=y.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=y.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=y.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=y.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=y.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=y.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),y.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=y.element.data("tags")){var i=y.element.data("tags");L.isArray(i)||(i=[]),y.element.data("select2Tags",i)}if(null!=y.sorter&&(y.sortResults=y.sorter),null!=y.selectOnClose&&(y.selectOnBlur=y.selectOnClose),null!=y.ajax&&L.isFunction(y.ajax.processResults)&&(y.ajax.results=y.ajax.processResults),null!=y.language){var a=y.language;L.isFunction(a.noMatches)&&(y.formatNoMatches=a.noMatches),L.isFunction(a.searching)&&(y.formatSearching=a.searching),L.isFunction(a.inputTooShort)&&(y.formatInputTooShort=a.inputTooShort),L.isFunction(a.inputTooLong)&&(y.formatInputTooLong=a.inputTooLong),L.isFunction(a.loadingMore)&&(y.formatLoading=a.loadingMore),L.isFunction(a.maximumSelected)&&(y.formatSelectionTooBig=a.maximumSelected)}if("function"!=typeof(y=L.extend({},{populateResults:function(e,t,m){var _,f=this.opts.id,g=this.liveRegion;(_=function(e,t,n){var i,a,r,s,o,l,d,u,c,h,p=[];for(i=0,a=(e=y.sortResults(e,t,m)).length;i<a;i+=1)s=!(o=!0===(r=e[i]).disabled)&&f(r)!==M,l=r.children&&0<r.children.length,(d=L("<li></li>")).addClass("select2-results-dept-"+n),d.addClass("select2-result"),d.addClass(s?"select2-result-selectable":"select2-result-unselectable"),o&&d.addClass("select2-disabled"),l&&d.addClass("select2-result-with-children"),d.addClass(v.opts.formatResultCssClass(r)),d.attr("role","presentation"),(u=L(document.createElement("div"))).addClass("select2-result-label"),u.attr("id","select2-result-label-"+w()),u.attr("role","option"),(h=y.formatResult(r,u,m,v.opts.escapeMarkup))!==M&&(u.html(h),d.append(u)),l&&((c=L("<ul></ul>")).addClass("select2-result-sub"),_(r.children,c,n+1),d.append(c)),d.data("select2-data",r),p.push(d[0]);t.append(p),g.text(y.formatMatches(e.length))})(t,e,0)}},L.fn.select2.defaults,y)).id&&(t=y.id,y.id=function(e){return e[t]}
3233),L.isArray(y.element.data("select2Tags"))){if("tags"in y)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+y.element.attr("id");y.tags=y.element.data("select2Tags")}if(e?(y.query=this.bind(function(i){var e,t,a,n={results:[],more:!1},r=i.term;a=function(e,t){var n;e.is("option")?i.matcher(r,e.text(),e)&&t.push(v.optionToData(e)):e.is("optgroup")&&(n=v.optionToData(e),e.children().each2(function(e,t){a(t,n.children)}),0<n.children.length&&t.push(n))},e=s.children(),this.getPlaceholder()!==M&&0<e.length&&(t=this.getPlaceholderOption())&&(e=e.not(t)),e.each2(function(e,t){a(t,n.results)}),i.callback(n)}),y.id=function(e){return e.id}):"query"in y||("ajax"in y?((n=y.element.data("ajax-url"))&&0<n.length&&(y.ajax.url=n),y.query=Y.call(y.element,y.ajax)):"data"in y?y.query=T(y.data):"tags"in y&&(y.query=D(y.tags),y.createSearchChoice===M&&(y.createSearchChoice=function(e){return{id:L.trim(e),text:L.trim(e)}}),y.initSelection===M&&(y.initSelection=function(e,t){var n=[];L(h(e.val(),y.separator,y.transformVal)).each(function(){var e={id:this,text:this},t=y.tags;L.isFunction(t)&&(t=t()),L(t).each(function(){if(p(this.id,e.id))return e=this,!1}),n.push(e)}),t(n)}))),"function"!=typeof y.query)throw"query function not defined for Select2 "+y.element.attr("id");if("top"===y.createSearchChoicePosition)y.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===y.createSearchChoicePosition)y.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof y.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return y},monitorSource:function(){var e,n=this.opts.element,t=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");e===M&&(e=!1),this.enable(!e);var t=n.prop("readonly");t===M&&(t=!1),this.readonly(t),this.container&&(y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(x(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(x(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",t._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==M&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){L.each(e,t._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var t=L.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(t),!t.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=L.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===M&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===M&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,n,i,a,r=this.dropdown,s=this.container,o=s.offset(),l=s.outerHeight(!1),d=s.outerWidth(!1),u=r.outerHeight(!1),c=L(window),h=c.width(),p=c.height(),m=c.scrollLeft()+h,_=c.scrollTop()+p,f=o.top+l,g=o.left,y=f+u<=_,v=o.top-u>=c.scrollTop(),M=r.outerWidth(!1);r.hasClass("select2-drop-above")?(t=!0,!v&&y&&(t=!(n=!0))):(t=!1,!y&&v&&(t=n=!0)),n&&(r.hide(),o=this.container.offset(),l=this.container.outerHeight(!1),d=this.container.outerWidth(!1),u=r.outerHeight(!1),m=c.scrollLeft()+h,_=c.scrollTop()+p,f=o.top+l,g=o.left,M=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=L(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),d<(M=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:b.width))?d=M:M=d,u=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(f-=(e=this.body.offset()).top,g-=e.left),
3233!(g+M<=m)&&o.left+m+s.outerWidth(!1)>M&&(g=o.left+this.container.outerWidth(!1)-M),i={left:g,width:d},t?(this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above"),u=r.outerHeight(!1),i.top=o.top-u,i.bottom="auto"):(i.top=f,i.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),i=L.extend(i,x(this.opts.dropdownCss,this.opts.element)),r.css(i)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=L.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){d.x=e.pageX,d.y=e.pageY}),!0)},opening:function(){var i,e=this.containerEventName,t="scroll."+e,n="resize."+e,a="orientationchange."+e;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(i=L("#select2-drop-mask")).length&&((i=L(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),i.hide(),i.appendTo(this.body),i.on("mousedown touchstart click",function(e){l(i);var t,n=L("#select2-drop");0<n.length&&((t=n.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==i[0]&&this.dropdown.before(i),L("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),i.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){L(this).on(n+" "+t+" "+a,function(e){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var e=this.containerEventName,t="scroll."+e,n="resize."+e,i="orientationchange."+e;this.container.parents().add(window).each(function(){L(this).off(t).off(n).off(i)}),this.clearDropdownAlignmentPreference(),L("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(L.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==M&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return x(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,n,i,a,r,s,o,l=this.results;(t=this.highlight())<0||(0!=t?(e=this.findHighlightableChoices().find(".select2-result-label"),i=(o=((n=L(e[t])).offset()||{}).top||0)+n.outerHeight(!0),t===e.length-1&&0<(s=l.find("li.select2-more-results")).length&&(i=s.offset().top+s.outerHeight(!0)),(a=l.offset().top+l.outerHeight(!1))<i&&l.scrollTop(l.scrollTop()+(i-a)),(r=o-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<t.length;){var i=L(t[n+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var t,n,i=this.findHighlightableChoices();if(0===arguments.length)return c(i.filter(".select2-highlighted")[0],i.get());e>=i.length&&(e=i.length-1),e<0&&(e=0),this.removeHighlight(),(t=L(i[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",t.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(t.text()),(n=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0}
3233,clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t=L(e.target).closest(".select2-result-selectable");if(0<t.length&&!t.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(t))}else 0==t.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,a=this,r=this.search.val(),s=this.context;0!==n.length&&n.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:r,page:i,context:s,matcher:this.opts.matcher,callback:this.bind(function(e){a.opened()&&(a.opts.populateResults.call(this,t,e.results,{term:r,page:i,context:s}),a.postprocessResults(e,!1,!1),!0===e.more?(n.detach().appendTo(t).html(a.opts.escapeMarkup(x(a.opts.formatLoadMore,a.opts.element,i+1))),window.setTimeout(function(){a.loadMoreIfNeeded()},10)):n.remove(),a.positionDropdown(),a.resultsPage=i,a.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(n){var e,t,i,a=this.search,r=this.results,s=this.opts,o=this,l=a.val(),d=L.data(this.container,"select2-last-term");if((!0===n||!d||!p(l,d))&&(L.data(this.container,"select2-last-term",l),!0===n||!1!==this.showSearchInput&&this.opened())){i=++this.queryCount;var u=this.getMaximumSelectionSize();if(!(1<=u&&(e=this.data(),L.isArray(e)&&e.length>=u&&S(s.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<s.minimumInputLength?(S(s.formatInputTooShort,"formatInputTooShort")?h("<li class='select2-no-results'>"+x(s.formatInputTooShort,s.element,a.val(),s.minimumInputLength)+"</li>"):h(""),void(n&&this.showSearch&&this.showSearch(!0))):void(s.maximumInputLength&&a.val().length>s.maximumInputLength?S(s.formatInputTooLong,"formatInputTooLong")?h("<li class='select2-no-results'>"+x(s.formatInputTooLong,s.element,a.val(),s.maximumInputLength)+"</li>"):h(""):(s.formatSearching&&0===this.findHighlightableChoices().length&&h("<li class='select2-searching'>"+x(s.formatSearching,s.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(t=this.tokenize())!=M&&null!=t&&a.val(t),this.resultsPage=1,s.query({element:s.element,term:a.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind(function(e){var t;if(i==this.queryCount)if(this.opened())if(e.hasError!==M&&S(s.formatAjaxError,"formatAjaxError"))h("<li class='select2-ajax-error'>"+x(s.formatAjaxError,s.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>");else{if(this.context=e.context===M?null:e.context,this.opts.createSearchChoice&&""!==a.val()&&(t=this.opts.createSearchChoice.call(o,a.val(),e.results))!==M&&null!==t&&o.id(t)!==M&&null!==o.id(t)&&0===L(e.results).filter(function(){return p(o.id(this),o.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&S(s.formatNoMatches,"formatNoMatches"))return h("<li class='select2-no-results'>"+x(s.formatNoMatches,s.element,a.val())+"</li>"),void(this.showSearch&&this.showSearch(a.val()));r.empty(),o.opts.populateResults.call(this,r,e.results,{term:a.val(),page:this.resultsPage,context:null}),!0===e.more&&S(s.formatLoadMore,"formatLoadMore")&&(r.append("<li class='select2-more-results'>"+s.escapeMarkup(x(s.formatLoadMore,s.element,this.resultsPage))+"</li>"),window.setTimeout(function(){o.loadMoreIfNeeded()},10)),this.postprocessResults(e,n),c(),this.opts.element.trigger({type:"select2-loaded",items:e})}else this.search.removeClass("select2-active")})})));h("<li class='select2-selection-limit'>"+x(s.formatSelectionTooBig,s.element,u)+"</li>")}function c(){a.removeClass("select2-active"),o.positionDropdown(),r.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?o.liveRegion.text(r.text()):o.liveRegion.text(o.opts.formatMatches(r.find('.select2-result-selectable:not(".select2-selected")').length))}function h(e){r.html(e),c()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var i;(i=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e,t=i[0],n=i.val().length;i.focus(),(0<t.offsetWidth||0<t.offsetHeight)&&t===document.activeElement&&(t.setSelectionRange?t.setSelectionRange(n,n):t.createTextRange&&((e=t.createTextRange()).collapse(!1),e.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var t=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==M?e.text():M)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==M)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===L.trim(e.text())&&""===e.val())return e}},initContainerWidth:function(){var e=function(){var e,t,n,i,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return L.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(i=0,a=(t=e.split(";")).length;i<a;i+=1)if(null!==(n=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),{createContainer:function(){return L(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t,n;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(n=this.search.val().length,e.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(L.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){L("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),j.call(this,"selection","focusser")},initContainer:function(){var t,e,n=this.container,i=this.dropdown,a=w();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),e=L("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id"));var r=this.opts.element.attr("title");this.opts.element.attr("title",r||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(L("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==o.PAGE_UP&&e.which!==o.PAGE_DOWN)switch(e.which){case o.UP:case o.DOWN:return this.moveHighlight(e.which===o.UP?-1:1),void g(e);case o.ENTER:return this.selectHighlighted(),void g(e);case o.TAB:return void this.selectHighlighted({noFocus:!0});case o.ESC:return this.cancel(e),void g(e)}else g(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)}
3233)),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==o.TAB&&!o.isControl(e)&&!o.isFunctionKey(e)&&e.which!==o.ESC){if(!1!==this.opts.openOnEnter||e.which!==o.ENTER){if(e.which==o.DOWN||e.which==o.UP||e.which==o.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void g(e)}return e.which==o.DELETE||e.which==o.BACKSPACE?(this.opts.allowClear&&this.clear(),void g(e)):void 0}g(e)}})),_(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(0<=this.opts.minimumResultsForSearch){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(L.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),g(e)})),i.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){g(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(L.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(L.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(L.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t=this.selection.data("select2-data");if(t){var n=L.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var i=this.getPlaceholderOption();this.opts.element.val(i?i.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,function(e){e!==M&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==M&&((e=this.getPlaceholderOption())!==M&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===M||null===this.opts.element.val())},prepareOpts:function(){var s=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===s.element.get(0).tagName.toLowerCase()?s.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in s&&(s.initSelection=s.initSelection||function(e,t){var a=e.val(),r=null;s.query({matcher:function(e,t,n){var i=p(a,s.id(n));return i&&(r=n),i},callback:L.isFunction(t)?function(){t(r)}:L.noop})}),s},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===M?M:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==M){if(this.select&&this.getPlaceholderOption()===M)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,n){var i=0,a=this;if(this.findHighlightableChoices().each2(function(e,t){if(p(a.id(t.data("select2-data")),a.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;0<=r&&this.showSearch(function n(e){var i=0;return L.each(e,function(e,t){t.children?i+=n(t.children):i++}),i}(e.results)>=r)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),L(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){if(this.triggerSelect(e)){var n=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),p(n,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var t,n,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),i.empty(),null!==e&&(t=this.opts.formatSelection(e,i,this.opts.escapeMarkup)),t!==M&&i.append(t),(n=this.opts.formatSelectionCssClass(e,i))!==M&&i.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==M&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,i=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=i.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(t);if(this.opts.initSelection===M)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return(t=this.selection.data("select2-data"))==M&&(t=null),t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),n=H(e,{createContainer:function(){return L(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in l&&(l.initSelection=l.initSelection||function(e,r){var s=h(e.val(),l.separator,l.transformVal),o=[];l.query({matcher:function(e,t,n){var i=L.grep(s,function(e){return p(e,l.id(n))}).length;return i&&o.push(n),i},callback:L.isFunction(r)?function(){for(var e=[],t=0;t<s.length;t++)for(var n=s[t],i=0;i<o.length;i++){var a=o[i];if(p(n,l.id(a))){e.push(a),o.splice(i,1);break}}r(e)}:L.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){L("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),j.call(this,"searchContainer","selection")},initContainer:function(){var s,e=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=s=this.container.find(e);var t=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(L(this))}),this.search.attr("id","s2id_autogen"+w()),this.search.prev().text(L("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t=s.find(".select2-search-choice-focus"),n=t.prev(".select2-search-choice:not(.select2-locked)"),i=t.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var t=0,n=0;if("selectionStart"in(e=L(e)[0]))t=e.selectionStart,n=e.selectionEnd-t;else if("selection"in document){e.focus();var i=document.selection.createRange();n=document.selection.createRange().text.length,i.moveStart("character",-e.value.length),t=i.text.length-n}return{offset:t,length:n}}(this.search);if(t.length&&(e.which==o.LEFT||e.which==o.RIGHT||e.which==o.BACKSPACE||e.which==o.DELETE||e.which==o.ENTER)){var r=t;return e.which==o.LEFT&&n.length?r=n:e.which==o.RIGHT?r=i.length?i:null:e.which===o.BACKSPACE?this.unselect(t.first())&&(this.search.width(10),r=n.length?n:i):e.which==o.DELETE?this.unselect(t.first())&&(this.search.width(10),r=i.length?i:null):e.which==o.ENTER&&(r=null),this.selectChoice(r),g(e),void(r&&r.length||this.open())}if((e.which===o.BACKSPACE&&1==this.keydowns||e.which==o.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(s.find(".select2-search-choice:not(.select2-locked)").last()),void g(e);if(this.selectChoice(null),this.opened())switch(e.which){case o.UP:case o.DOWN:return this.moveHighlight(e.which===o.UP?-1:1),void g(e);case o.ENTER:return this.selectHighlighted(),void g(e);case o.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case o.ESC:return this.cancel(e),void g(e)}if(e.which!==o.TAB&&!o.isControl(e)&&!o.isFunctionKey(e)&&e.which!==o.BACKSPACE&&e.which!==o.ESC){if(e.which===o.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==o.PAGE_UP&&e.which!==o.PAGE_DOWN||g(e),e.which===o.ENTER&&g(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(L.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){this.isInterfaceEnabled()&&(0<L(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(L.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(L.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,function(e){e!==M&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==M&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(L.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},n=[],i=this;L(e).each(function(){i.id(this)in t||(t[i.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=M&&(this.search.val(e),0<e.length&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),n=this;L(e).each(function(){t.push(n.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t,n,i=!e.locked,a=L("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),r=L("<li class='select2-search-choice select2-locked'><div></div></li>"),s=i?a:r,o=this.id(e);return(t=this.opts.formatSelection(e,s.find("div"),this.opts.escapeMarkup))!=M&&s.find("div").replaceWith(L("<div></div>").html(t)),(n=this.opts.formatSelectionCssClass(e,s.find("div")))!=M&&s.addClass(n),i&&s.find(".select2-search-choice-close").on("mousedown",g).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(L(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),g(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),s.data("select2-data",e),s.insertBefore(this.searchContainer),o},unselect:function(e){var t,n,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Mu
3233st be .select2-search-choice";if(t=e.data("select2-data")){var a=L.Event("select2-removing");if(a.val=this.id(t),a.choice=t,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;0<=(n=c(this.id(t),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),a=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),s=this;a.each2(function(e,t){0<=c(s.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),r.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&s.highlight(0),!this.opts.createSearchChoice&&0<!a.filter(".select2-result:not(.select2-selected)").length&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&S(s.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+x(s.opts.formatNoMatches,s.opts.element,s.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-m(this.search)},resizeSearch:function(){var e,t,n,i,a=m(this.search);e=function(e){if(!r){var t=e[0].currentStyle||window.getComputedStyle(e[0],null);(r=L(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:t.fontSize,fontFamily:t.fontFamily,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,textTransform:t.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),L(document.body).append(r)}return r.text(e.val()),r.width()}(this.search)+10,t=this.search.offset().left,(i=(n=this.selection.width())-(t-this.selection.offset().left)-a)<e&&(i=n-a),i<40&&(i=n-a),i<=0&&(i=e),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:h(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){if(this.select)this.select.val(e);else{var t=[],n={};L(e).each(function(){this in n||(t.push(this),n[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator))}},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(p(this.opts.id(t[n]),this.opts.id(e[i]))){t.splice(n,1),n--,e.splice(i,1);break}return{added:t,removed:e}},val:function(e,n){var i,a=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),!e&&0!==e)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:i}));if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===M)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=L.map(e,a.id);a.setVal(t),a.updateSelection(e),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(i,a.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(L(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var n,i,a=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return L(this).data("select2-data")}).get();i=this.data(),e||(e=[]),n=L.map(e,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),L.fn.select2=function(){var e,t,n,i,a,r=Array.prototype.slice.call(arguments,0),s=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],o=["opened","is
3233Focused","container","dropdown"],l=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===r.length||"object"==typeof r[0])(e=0===r.length?{}:L.extend({},r[0])).element=L(this),"select"===e.element.get(0).tagName.toLowerCase()?a=e.element.prop("multiple"):(a=e.multiple||!1,"tags"in e&&(e.multiple=a=!0)),(t=a?new window.Select2.class.multi:new window.Select2.class.single).init(e);else{if("string"!=typeof r[0])throw"Invalid arguments to select2 plugin: "+r;if(c(r[0],s)<0)throw"Unknown method: "+r[0];if(i=M,(t=L(this).data("select2"))===M)return;if(n=r[0],i="container"===n?t.container:"dropdown"===n?t.dropdown:(d[n]&&(n=d[n]),t[n].apply(t,r.slice(1))),0<=c(r[0],o)||0<=c(r[0],l)&&1==r.length)return!1}}),i===M?this:i},L.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var a=[];return v(this.text(e),n.term,a,i),a.join("")},transformVal:function(e){return L.trim(e)},formatSelection:function(e,t,n){return e?n(this.text(e)):M},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return M},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==M?null:e.id},text:function(e){return e&&this.data&&this.data.text?L.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=u(""+t).toUpperCase().indexOf(u(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,i){var a,r,s,o,l,d=e,u=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return M;for(;;){for(r=-1,s=0,o=i.tokenSeparators.length;s<o&&(l=i.tokenSeparators[s],!(0<=(r=e.indexOf(l))));s++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+l.length),0<a.length&&(a=i.createSearchChoice.call(this,a,t))!==M&&null!==a&&i.id(a)!==M&&null!==i.id(a)){for(u=!1,s=0,o=t.length;s<o;s++)if(p(i.id(a),i.id(t[s]))){u=!0;break}u||n(a)}}return d!==e?e:void 0},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return M},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||0<navigator.msMaxTouchPoints)||!(e.opts.minimumResultsForSearch<0)}},L.fn.select2.locales=[],L.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,n){return"Loading failed"},formatInputTooShort:function(e,t){var n=t-e.length;return"Please enter "+n+" or more character"+(1==n?"":"s")},formatInputTooLong:function(e,t){var n=e.length-t;return"Please delete "+n+" character"+(1==n?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},L.extend(L.fn.select2.defaults,L.fn.select2.locales.en),L.fn.select2.ajaxDefaults={transport:L.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:Y,local:T,tags:D},util:{debounce:f,markMatch:v,escapeMarkup:k,stripDiacritics:u},class:{abstract:e,single:t,multi:n}}}function l(e){var t=L(document.createTextNode(""));e.before(t),t.before(e),t.remove()}
3233function u(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return s[e]||e})}function c(e,t){for(var n=0,i=t.length;n<i;n+=1)if(p(e,t[n]))return n;return-1}function p(e,t){return e===t||e!==M&&t!==M&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function h(e,t,n){var i,a,r;if(null===e||e.length<1)return[];for(a=0,r=(i=e.split(t)).length;a<r;a+=1)i[a]=n(i[a]);return i}function m(e){return e.outerWidth(!1)-e.width()}function _(t){var n="keyup-change-value";t.on("keydown",function(){L.data(t,n)===M&&L.data(t,n,t.val())}),t.on("keyup",function(){var e=L.data(t,n);e!==M&&t.val()!==e&&(L.removeData(t,n),t.trigger("keyup-change"))})}function f(t,n,i){var a;return i=i||M,function(){var e=arguments;window.clearTimeout(a),a=window.setTimeout(function(){n.apply(i,e)},t)}}function g(e){e.preventDefault(),e.stopPropagation()}function y(e,t,n){var i,a,r=[];(i=L.trim(e.attr("class")))&&L((i=""+i).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)}),(i=L.trim(t.attr("class")))&&L((i=""+i).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),e.attr("class",r.join(" "))}function v(e,t,n,i){var a=u(e.toUpperCase()).indexOf(u(t.toUpperCase())),r=t.length;a<0?n.push(i(e)):(n.push(i(e.substring(0,a))),n.push("<span class='select2-match'>"),n.push(i(e.substring(a,a+r))),n.push("</span>"),n.push(i(e.substring(a+r,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function Y(s){var e,o=null,t=s.quietMillis||100,l=s.url,d=this;return function(r){window.clearTimeout(e),e=window.setTimeout(function(){var e=s.data,t=l,n=s.transport||L.fn.select2.ajaxDefaults.transport,i={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||M,dataType:s.dataType||"json"},a=L.extend({},L.fn.select2.ajaxDefaults.params,i);e=e?e.call(d,r.term,r.page,r.context):null,t="function"==typeof t?t.call(d,r.term,r.page,r.context):t,o&&"function"==typeof o.abort&&o.abort(),s.params&&(L.isFunction(s.params)?L.extend(a,s.params.call(d)):L.extend(a,s.params)),L.extend(a,{url:t,dataType:s.dataType,data:e,success:function(e){var t=s.results(e,r.page,r);r.callback(t)},error:function(e,t,n){var i={hasError:!0,jqXHR:e,textStatus:t,errorThrown:n};r.callback(i)}}),o=n.call(d,a)},t)}}function T(e){var t,n,i=e,o=function(e){return""+e.text};L.isArray(i)&&(i={results:n=i}),!1===L.isFunction(i)&&(n=i,i=function(){return n});var a=i();return a.text&&(o=a.text,L.isFunction(o)||(t=a.text,o=function(e){return e[t]})),function(a){var r,s=a.term,n={results:[]};""!==s?(r=function(e,t){var n,i;if((e=e[0]).children){for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.children=[],L(e.children).each2(function(e,t){r(t,n.children)}),(n.children.length||a.matcher(s,o(n),e))&&t.push(n)}else a.matcher(s,o(e),e)&&t.push(e)},L(i().results).each2(function(e,t){r(t,n.results)}),a.callback(n)):a.callback(i())}}function D(t){var r=L.isFunction(t);return function(n){var i=n.term,a={results:[]},e=r?t(n):t;L.isArray(e)&&(L(e).each(function(){var e=this.text!==M,t=e?this.text:this;(""===i||n.matcher(i,t))&&a.results.push(e?this:{id:this,text:this})}),n.callback(a))}}function S(e,t){if(L.isFunction(e))return!0;if(!e)return!1;if("string"==typeof e)return!0;throw new Error(t+" must be a string, function, or falsy value")}function x(e,t){if(L.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return e.apply(t,n)}return e}function j(){var n=this;L.each(arguments,function(e,t){n[t].remove(),n[t]=null})}function H(e,t){var n=function(){};return((n.prototype=new e).constructor=n).prototype.parent=e.prototype,n.prototype=L.extend(n.prototype,t),n}}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drag",["jquery"],function(){return function(){!function(h){h.fn.drag=function(e,t,n){var i="string"==typeof e?e:"",a=h.isFunction(e)?e:h.isFunction(t)?t:null;return 0!==i.indexOf("drag")&&(i="drag"+i),n=(e==a?t:n)||{},a?this.bind(i,n,a):this.trigger(i)};var p=h.event,i=p.special,m=i.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(e){var n=h.data(this,m.datakey),i=e.data||{};n.related+=1,h.each(m.defaults,function(e,t){void 0!==i[e]&&(n[e]=i[e])})},remove:function(){h.data(this,m.datakey).related-=1},setup:function(){if(!h.data(this,m.datakey)){var e=h.extend({related:0},m.defaults);h.data(this,m.datakey,e),p.add(this,"touchstart mousedown",m.init,e),this.attachEvent&&this.attachEvent("ondragstart",m.dontstart)}},teardown:function(){(h.data(this,m.datakey)||{}).related||(h.removeData(this,m.datakey),p.remove(this,"touchstart mousedown",m.init),m.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",m.dontstart))},init:function(e){if(!m.touched){var t,n=e.data;if(!(0!=e.which&&0<n.which&&e.which!=n.which)&&!h(e.target).is(n.not)&&(!n.handle||h(e.target).closest(n.handle,e.currentTarget).length)&&(m.touched="touchstart"==e.type?this:null,n.propagates=1,n.mousedown=this,n.interactions=[m.interaction(this,n)],n.target=e.target,n.pageX=e.pageX,n.pageY=e.pageY,n.dragging=null,t=m.hijack(e,"draginit",n),n.propagates))return(t=m.flatten(t))&&t.length&&(n.interactions=[],h.each(t,function(){n.interactions.push(m.interaction(this,n))})),n.propagates=n.interactions.length,!1!==n.drop&&i.drop&&i.drop.handler(e,n),m.textselect(!1),m.touched?p.add(m.touched,"touchmove touchend",m.handler,n):p.add(document,"mousemove mouseup",m.handler,n),!(!m.touched||n.live)&&void 0}},interaction:function(e,t){var n=h(e)[t.relative?"position":"offset"]()||{top:0,left:0};return{drag:e,callback:new m.callback,droppable:[],offset:n}},handler:function(e){var t=e.data;switch(e.type){case!t.dragging&&"touchmove":e.preventDefault();case!t.dragging&&"mousemove":if(Math.pow(e.pageX-t.pageX,2)+Math.pow(e.pageY-t.pageY,2)<Math.pow(t.distance,2))break;e.target=t.target,m.hijack(e,"dragstart",t),t.propagates&&(t.dragging=!0);case"touchmove":e.preventDefault();case"mousemove":if(t.dragging){if(m.hijack(e,"drag",t),t.propagates){!1!==t.drop&&i.drop&&i.drop.handler(e,t);break}e.type="mouseup"}case"touchend":case"mouseup":default:m.touched?p.remove(m.touched,"touchmove touchend",m.handler):p.remove(document,"mousemove mouseup",m.handler),t.dragging&&(!1!==t.drop&&i.drop&&i.drop.handler(e,t),m.hijack(e,"dragend",t)),m.textselect(!0),!1===t.click&&t.dragging&&h.data(t.mousedown,"suppress.click",(new Date).getTime()+5),t.dragging=m.touched=!1}},hijack:function(n,i,a,e,t){if(a){var r,s,o,l={event:n.originalEvent,type:n.type},d=i.indexOf("drop")?"drag":"drop",u=e||0,c=isNaN(e)?a.interactions.length:e;n.type=i,n.originalEvent=null,a.results=[];
3233do{if(s=a.interactions[u]){if("dragend"!==i&&s.cancelled)continue;o=m.properties(n,a,s),s.results=[],h(t||s[d]||a.droppable).each(function(e,t){if(o.target=t,!(n.isPropagationStopped=function(){return!1})===(r=t?p.dispatch.call(t,n,o):null)?("drag"==d&&(s.cancelled=!0,a.propagates-=1),"drop"==i&&(s[d][e]=null)):"dropinit"==i&&s.droppable.push(m.element(r)||t),"dragstart"==i&&(s.proxy=h(m.element(r)||s.drag)[0]),s.results.push(r),delete n.result,"dropinit"!==i)return r}),a.results[u]=m.flatten(s.results),"dropinit"==i&&(s.droppable=m.flatten(s.droppable)),"dragstart"!=i||s.cancelled||o.update()}}while(++u<c);return n.type=l.type,n.originalEvent=l.event,m.flatten(a.results)}},properties:function(e,t,n){var i=n.callback;return i.drag=n.drag,i.proxy=n.proxy||n.drag,i.startX=t.pageX,i.startY=t.pageY,i.deltaX=e.pageX-t.pageX,i.deltaY=e.pageY-t.pageY,i.originalX=n.offset.left,i.originalY=n.offset.top,i.offsetX=i.originalX+i.deltaX,i.offsetY=i.originalY+i.deltaY,i.drop=m.flatten((n.drop||[]).slice()),i.available=m.flatten((n.droppable||[]).slice()),i},element:function(e){if(e&&(e.jquery||1==e.nodeType))return e},flatten:function(e){return h.map(e,function(e){return e&&e.jquery?h.makeArray(e):e&&e.length?m.flatten(e):e})},textselect:function(e){h(document)[e?"unbind":"bind"]("selectstart",m.dontstart).css("MozUserSelect",e?"":"none"),document.unselectable=e?"off":"on"},dontstart:function(){return!1},callback:function(){}};m.callback.prototype={update:function(){i.drop&&this.available.length&&h.each(this.available,function(e){i.drop.locate(this,e)})}};var t=p.dispatch;p.dispatch=function(e){if(!(0<h.data(this,"suppress."+e.type)-(new Date).getTime()))return t.apply(this,arguments);h.removeData(this,"suppress."+e.type)};var a=p.fixHooks.touchstart=p.fixHooks.touchmove=p.fixHooks.touchend=p.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(n,e){if(e){var i=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||null;i&&h.each(a.props,function(e,t){n[t]=i[t]})}return n}}}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drop",["jquery"],function(){return function(){return function(p){p.fn.drop=function(e,t,n){var i="string"==typeof e?e:"",a=p.isFunction(e)?e:p.isFunction(t)?t:null;return 0!==i.indexOf("drop")&&(i="drop"+i),n=(e==a?t:n)||{},a?this.bind(i,n,a):this.trigger(i)},p.drop=function(e){e=e||{},_.multi=!0===e.multi?1/0:!1===e.multi?1:isNaN(e.multi)?_.multi:e.multi,_.delay=e.delay||_.delay,_.tolerance=p.isFunction(e.tolerance)?e.tolerance:null===e.tolerance?null:_.tolerance,_.mode=e.mode||_.mode||"intersect"};var m=p.event.special,_=p.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(e){p.data(this,_.datakey).related+=1},remove:function(){p.data(this,_.datakey).related-=1},setup:function(){if(!p.data(this,_.datakey)){p.data(this,_.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),_.targets.push(this)}},teardown:function(){if(!(p.data(this,_.datakey)||{}).related){p.removeData(this,_.datakey);var t=this;_.targets=p.grep(_.targets,function(e){return e!==t})}},handler:function(e,t){var n;if(t)switch(e.type){case"mousedown":case"touchstart":n=p(_.targets),"string"==typeof t.drop&&(n=n.filter(t.drop)),n.each(function(){var e=p.data(this,_.datakey);e.active=[],e.anyactive=0,e.winner=0}),t.droppable=n,m.drag.hijack(e,"dropinit",t);break;case"mousemove":case"touchmove":_.event=e,_.timer||_.tolerate(t);break;case"mouseup":case"touchend":_.timer=clearTimeout(_.timer),t.propagates&&(m.drag.hijack(e,"drop",t),m.drag.hijack(e,"dropend",t))}},locate:function(e,t){var n=p.data(e,_.datakey),i=p(e),a=i.offset()||{},r=i.outerHeight(),s=i.outerWidth(),o={elem:e,width:s,height:r,top:a.top,left:a.left,right:a.left+s,bottom:a.top+r};return n&&(n.location=o,n.index=t,n.elem=e),o},contains:function(e,t){return(t[0]||t.left)>=e.left&&(t[0]||t.right)<=e.right&&(t[1]||t.top)>=e.top&&(t[1]||t.bottom)<=e.bottom},modes:{intersect:function(e,t,n){return this.contains(n,[e.pageX,e.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(e,t,n){return Math.max(0,Math.min(n.bottom,t.bottom)-Math.max(n.top,t.top))*Math.max(0,Math.min(n.right,t.right)-Math.max(n.left,t.left))},fit:function(e,t,n){return this.contains(n,t)?1:0},middle:function(e,t,n){return this.contains(n,[t.left+.5*t.width,t.top+.5*t.height])?1:0}},sort:function(e,t){return t.winner-e.winner||e.index-t.index},tolerate:function(e){var t,n,i,a,r,s,o,l,d=0,u=e.interactions.length,c=[_.event.pageX,_.event.pageY],h=_.tolerance||_.modes[_.mode];
3233do{if(l=e.interactions[d]){if(!l)return;l.drop=[],r=[],s=l.droppable.length,h&&(i=_.locate(l.proxy)),t=0;do{if(o=l.droppable[t]){if(!(n=(a=p.data(o,_.datakey)).location))continue;a.winner=h?h.call(_,_.event,i,n):_.contains(n,c)?1:0,r.push(a)}}while(++t<s);for(r.sort(_.sort),t=0;(a=r[t])&&(a.winner&&l.drop.length<_.multi?(a.active[d]||a.anyactive||(!1!==m.drag.hijack(_.event,"dropstart",e,d,a.elem)[0]?(a.active[d]=1,a.anyactive+=1):a.winner=0),a.winner&&l.drop.push(a.elem)):a.active[d]&&1==a.anyactive&&(m.drag.hijack(_.event,"dropend",e,d,a.elem),a.active[d]=0,a.anyactive-=1)),++t<s;);}}while(++d<u);_.last&&c[0]==_.last.pageX&&c[1]==_.last.pageY?delete _.timer:_.timer=setTimeout(function(){_.tolerate(e)},_.delay),_.last=_.event}};m.dropinit=m.dropstart=m.dropend=_}(jQuery),$.drop}.apply(e,arguments)})}(this),define("mockup-patterns-select2",["jquery","pat-base","mockup-utils","select2","jquery.event.drag","jquery.event.drop"],function(o,e,l){"use strict";return e.extend({name:"select2",trigger:".pat-select2",parser:"mockup",defaults:{separator:","},initializeValues:function(){var r=this;r.options.initialValues&&(r.options.id=function(e){return e.id},r.options.initSelection=function(e,t){var n=[],i=e.val(),a=r.options.initialValues;"string"==typeof r.options.initialValues&&""!==r.options.initialValues&&("{"===r.options.initialValues[0]?a=JSON.parse(r.options.initialValues):(a={},o(r.options.initialValues.split(r.options.separator)).each(function(){var e=this.split(":"),t=o.trim(e[0]),n=o.trim(e[1]);a[t]=n}))),o(i.split(r.options.separator)).each(function(){var e=this;a[this]&&(e=a[this]),n.push({id:l.removeHTML(this),text:l.removeHTML(e)})}),t(n)})},initializeTags:function(){var e=this;e.options.tags&&"string"==typeof e.options.tags&&("["===e.options.tags.substr(0,1)?e.options.tags=JSON.parse(e.options.tags):e.options.tags=e.options.tags.split(e.options.separator)),e.options.tags&&!e.options.allowNewItems&&(e.options.data=o.map(e.options.tags,function(e,t){return{id:e,text:e}}),e.options.multiple=!0,delete e.options.tags)},initializeOrdering:function(){var n=this;if(n.options.orderable){var i=function(e,t){return e?e.text:void 0};n.options.formatSelection&&(i=n.options.formatSelection),n.options.formatSelection=function(e,t){return t.parents("li").drag("start",function(e,t){return o(this).addClass("select2-choice-dragging"),n.$el.select2("onSortStart"),o.drop({tolerance:function(e,t,n){var i=e.pageY>n.top+n.height/2;return o.data(n.elem,"drop+reorder",i?"insertAfter":"insertBefore"),this.contains(n,[e.pageX,e.pageY])}}),o(this).clone().addClass("dragging").css({opacity:.75,position:"absolute"}).appendTo(document.body)}).drag(function(e,t){o(t.proxy).css({top:t.offsetY,left:t.offsetX});var n=t.drop[0],i=o.data(n||{},"drop+reorder");!n||n==t.current&&i==t.method||(o(this)[i](n),t.current=n,t.method=i,t.update())}).drag("end",function(e,t){o(this).removeClass("select2-choice-dragging"),n.$el.select2("onSortEnd"),o(t.proxy).remove()}).drop("init",function(e,t){return this!=t.drag}),i(e,t)}}},initializeSelect2:function(){var e=this;e.options.formatResultCssClass=function(e){if(e.id)return"select2-option-"+e.id.toLowerCase().replace(/[ \:\)\(\[\]\{\}\_\+\=\&\*\%\#]/g,"-")},e.$el.select2(e.options),e.$select2=e.$el.parent().find(".select2-container"),e.$el.parent().off("close.plone-modal.patterns"),e.options.orderable&&e.$select2.addClass("select2-orderable")},init:function(){var r=this;if(r.options.allowNewItems=!r.options.hasOwnProperty("allowNewItems")||JSON.parse(r.options.allowNewItems),r.options.ajax||r.options.vocabularyUrl){r.options.vocabularyUrl&&(r.options.multiple=void 0===r.options.multiple||r.options.multiple,r.options.ajax=r.options.ajax||{},r.options.ajax.url=r.options.vocabularyUrl,r.options.initSelection=function(e,t){var n=[],i=e.val();o(i.split(r.options.separator)).each(function(){var e=l.removeHTML(this);n.push({id:e,text:e})}),t(n)});var s="";r.options.ajax=o.extend({quietMillis:300,data:function(e,t){return{query:s=e,page_limit:10,page:t}},results:function(e,t){var n=e.results;if(r.options.vocabularyUrl){var i=[];o.each(e.results,function(e,t){i.push(t.id)}),n=[];var a=""===s||0<=o.inArray(s,i);
3233r.options.allowNewItems&&!a&&(s=l.removeHTML(s),n.push({id:s,text:s})),o.each(e.results,function(e,t){n.push(t)})}return{results:n}}},r.options.ajax)}else if(r.options.multiple&&r.$el.is("select")){var e=r.$el.val()||[],t=o.map(r.$el.find("option"),function(e){return{text:o(e).html(),id:e.value}}),n=o('<input type="hidden" />');n.val(e.join(r.options.separator)),n.attr("class",r.$el.attr("class")),n.attr("name",r.$el.attr("name")),n.attr("id",r.$el.attr("id")),r.$orig=r.$el,r.$el.replaceWith(n),r.$el=n,r.options.data=t}r.initializeValues(),r.initializeTags(),r.initializeOrdering(),r.initializeSelect2()}})}),define("mockup-i18n",["jquery"],function(a){"use strict";return function(){var o=this;o.baseUrl=a("body").attr("data-i18ncatalogurl"),o.baseUrl||(o.baseUrl="/plonejsi18n"),o.currentLanguage=a("html").attr("lang")||"en",1<o.currentLanguage.split("-").length&&(o.currentLanguage=o.currentLanguage.split("-")[0]+"_"+o.currentLanguage.split("-")[1].toUpperCase()),o.storage=null,o.catalogs={},o.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(o.storage=window.localStorage)}catch(e){}o.configure=function(e){for(var t in e)o[t]=e[t]},o._setCatalog=function(e,t,n){e in o.catalogs||(o.catalogs[e]={}),o.catalogs[e][t]=n},o._storeCatalog=function(e,t,n){var i=e+"-"+t;null!==o.storage&&null!==n&&(o.storage.setItem(i,JSON.stringify(n)),o.storage.setItem(i+"-updated",Date.now()))},o.getUrl=function(e,t){return o.baseUrl+"?domain="+e+"&language="+t},o.loadCatalog=function(t,n){if(void 0===n&&(n=o.currentLanguage),null!==o.storage){var e=t+"-"+n;if(e in o.storage&&Date.now()-parseInt(o.storage.getItem(e+"-updated"),10)<o.ttl){var i=JSON.parse(o.storage.getItem(e));return void o._setCatalog(t,n,i)}}a.getJSON(o.getUrl(t,n),function(e){null!==e&&(o._setCatalog(t,n,e),o._storeCatalog(t,n,e))})},o.MessageFactory=function(r,s){return s=s||o.currentLanguage,function(e,t){var n,i,a;if(n=r in o.catalogs&&s in o.catalogs[r]&&e in o.catalogs[r][s]?o.catalogs[r][s][e]:e,t)for(a in t)t.hasOwnProperty(a)&&(i=new RegExp("\\$\\{"+a+"\\}","g"),n=n.replace(i,t[a]));return n}}}}),define("translate",["mockup-i18n"],function(i){"use strict";var a=null;return function(e,t){if(null===a){var n=new i;n.loadCatalog("widgets"),a=n.MessageFactory("widgets")}return a(e,t)}}),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(_){var i=_(window),f=_(document),g=_(document.documentElement),y=null!=document.documentElement.style.transition;function v(i,e,t,n){if(!i)return v;var a=!1,o={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},l=t?_.extend(!0,{},t.defaults,n):n||{},r=_.extend({},v.klasses(),l.klass),d=_(i),s=function(){return this.start()},u=s.prototype={constructor:s,$node:d,start:function(){return o&&o.start?u:(o.methods={},o.start=!0,o.open=!1,o.type=i.type,i.autofocus=i==w(),i.readOnly=!l.editable,i.id=i.id||o.id,"text"!=i.type&&(i.type="text"),u.component=new t(u,l),u.$root=_('<div class="'+r.picker+'" id="'+i.id+'_root" />'),L(u.$root[0],"hidden",!0),u.$holder=_(c()).appendTo(u.$root),h(),l.formatSubmit&&function(){var e;!0===l.hiddenName?(e=i.name,i.name=""):e=(e=["string"==typeof l.hiddenPrefix?l.hiddenPrefix:"","string"==typeof l.hiddenSuffix?l.hiddenSuffix:"_submit"])[0]+i.name+e[1];u._hidden=_('<input type=hidden name="'+e+'"'+(d.data("value")||i.value?' value="'+u.get("select",l.formatSubmit)+'"':"")+">")[0],d.on("change."+o.id,function(){u._hidden.value=i.value?u.get("select",l.formatSubmit):""})}(),function(){d.data(e,u).addClass(r.input).val(d.data("value")?u.get("select",l.format):i.value),l.editable||d.on("focus."+o.id+" click."+o.id,function(e){e.preventDefault(),u.open()}).on("keydown."+o.id,m);L(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),l.containerHidden?_(l.containerHidden).append(u._hidden):d.after(u._hidden),l.container?_(l.container).append(u.$root):d.after(u.$root),u.on({start:u.component.onStart,render:u.component.onRender,stop:u.component.onStop,open:u.component.onOpen,close:u.component.onClose,set:u.component.onSet}).on({start:l.onStart,render:l.onRender,stop:l.onStop,open:l.onOpen,close:l.onClose,set:l.onSet}),a=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(u.$holder[0]),i.autofocus&&u.open(),u.trigger("start").trigger("render"))},render:function(e){return e?(u.$holder=_(c()),h(),u.$root.html(u.$holder)):u.$root.find("."+r.box).html(u.component.nodes(o.open)),u.trigger("render")},stop:function(){return o.start&&(u.close(),u._hidden&&u._hidden.parentNode.removeChild(u._hidden),u.$root.remove(),d.removeClass(r.input).removeData(e),setTimeout(function(){d.off("."+o.id)},0),i.type=o.type,i.readOnly=!1,u.trigger("stop"),o.methods={},o.start=!1),u},open:function(e){return o.open?u:(d.addClass(r.active),L(i,"expanded",!0),setTimeout(function(){u.$root.addClass(r.opened),L(u.$root[0],"hidden",!1)},0),!1!==e&&(o.open=!0,a&&g.css("overflow","hidden").css("padding-right","+="+M()),a&&y?u.$holder.find("."+r.frame).one("transitionend",function(){u.$holder[0].focus()}):u.$holder[0].focus(),f.on("click."+o.id+" focusin."+o.id,function(e){var t=e.target;t!=i&&t!=document&&3!=e.which&&u.close(t===u.$holder[0])}).on("keydown."+o.id,function(e){var t=e.keyCode,n=u.component.key[t],i=e.target;
vendor: 13,908 bytes, line 3233
323327==t?u.close(!0):i!=u.$holder[0]||!n&&13!=t?_.contains(u.$root[0],i)&&13==t&&(e.preventDefault(),i.click()):(e.preventDefault(),n?v._.trigger(u.component.key.go,u,[v._.trigger(n)]):u.$root.find("."+r.highlighted).hasClass(r.disabled)||(u.set("select",u.component.item.highlight),l.closeOnSelect&&u.close(!0)))})),u.trigger("open"))},close:function(e){return e&&(l.editable?i.focus():(u.$holder.off("focus.toOpen").focus(),setTimeout(function(){u.$holder.on("focus.toOpen",p)},0))),d.removeClass(r.active),L(i,"expanded",!1),setTimeout(function(){u.$root.removeClass(r.opened+" "+r.focused),L(u.$root[0],"hidden",!0)},0),o.open?(o.open=!1,a&&g.css("overflow","").css("padding-right","-="+M()),f.off("."+o.id),u.trigger("close")):u},clear:function(e){return u.set("clear",null,e)},set:function(e,t,n){var i,a,r=_.isPlainObject(e),s=r?e:{};if(n=r&&_.isPlainObject(t)?t:n||{},e){for(i in r||(s[e]=t),s)a=s[i],i in u.component.item&&(void 0===a&&(a=null),u.component.set(i,a,n)),"select"!=i&&"clear"!=i||d.val("clear"==i?"":u.get(i,l.format)).trigger("change");u.render()}return n.muted?u:u.trigger("set",s)},get:function(e,t){if(null!=o[e=e||"value"])return o[e];if("valueSubmit"==e){if(u._hidden)return u._hidden.value;e="value"}if("value"==e)return i.value;if(e in u.component.item){if("string"!=typeof t)return u.component.get(e);var n=u.component.get(e);return n?v._.trigger(u.component.formats.toString,u.component,[t,n]):""}},on:function(e,t,n){var i,a,r=_.isPlainObject(e),s=r?e:{};if(e)for(i in r||(s[e]=t),s)a=s[i],n&&(i="_"+i),o.methods[i]=o.methods[i]||[],o.methods[i].push(a);return u},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in o.methods&&delete o.methods[t];return u},trigger:function(e,n){var t=function(e){var t=o.methods[e];t&&t.map(function(e){v._.trigger(e,u,[n])})};return t("_"+e),t(e),u}};function c(){return v._.node("div",v._.node("div",v._.node("div",v._.node("div",u.component.nodes(o.open),r.box),r.wrap),r.frame),r.holder,'tabindex="-1"')}function h(){u.$holder.on({keydown:m,"focus.toOpen":p,blur:function(){d.removeClass(r.target)},focusin:function(e){u.$root.removeClass(r.focused),e.stopPropagation()},"mousedown click":function(e){var t=e.target;t!=u.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||_(t).is("input, select, textarea, button, option")||(e.preventDefault(),u.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=_(this),t=e.data(),n=e.hasClass(r.navDisabled)||e.hasClass(r.disabled),i=w();i=i&&(i.type||i.href),(n||i&&!_.contains(u.$root[0],i))&&u.$holder[0].focus(),!n&&t.nav?u.set("highlight",u.component.item.highlight,{nav:t.nav}):!n&&"pick"in t?(u.set("select",t.pick),l.closeOnSelect&&u.close(!0)):t.clear?(u.clear(),l.closeOnClear&&u.close(!0)):t.close&&u.close(!0)})}function p(e){e.stopPropagation(),d.addClass(r.target),u.$root.addClass(r.focused),u.open()}function m(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return u.close(!0),!1;(32==t||n||!o.open&&u.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?u.clear().close():u.open())}return new s}function M(){if(g.height()<=i.height())return 0;var e=_('<div style="visibility:hidden;width:100px" />').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var n=_('<div style="width:100%" />').appendTo(e)[0].offsetWidth;return e.remove(),t-n}function L(e,t,n){if(_.isPlainObject(t))for(var i in t)a(e,i,t[i]);else a(e,t,n)}function a(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function w(){try{return document.activeElement}catch(e){}}return v.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},v._={group:function(e){for(var t,n="",i=v._.trigger(e.min,e);i<=v._.trigger(e.max,e,[i]);i+=e.i)t=v._.trigger(e.item,e,[i]),n+=v._.node(e.node,t[0],t[1],t[2]);return n},node:function(e,t,n,i){return t?"<"+e+(n=n?' class="'+n+'"':"")+(i=i?" "+i:"")+">"+(t=_.isArray(t)?t.join(""):t)+"</"+e+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){_.isPlainObject(e)||(e={attribute:t});for(var n in t="",e){var i=("role"==n?"":"aria-")+n,a=e[n];t+=null==a?"":i+'="'+e[n]+'"'}return t}},v.extend=function(i,a){_.fn[i]=function(e,t){var n=this.data(i);return"picker"==e?n:n&&"string"==typeof e?v._.trigger(n[e],n,[t]):this.each(function(){_(this).data(i)||new v(this,i,a,e)})},_.fn[i].defaults=a.defaults},v}),function(e){"function"==typeof define&&define.amd?define("picker.date",["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,m){var t,g=e._;function n(t,n){var e,i=this,a=t.$node[0],r=a.value,s=t.$node.data("value"),o=s||r,l=s?n.formatSubmit:n.format,d=function(){return a.currentStyle?"rtl"==a.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=n,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(n.disable||[]).slice(0),i.item.enable=-(!0===(e=i.item.disable)[0]?e.shift():-1),i.set("min",n.min).set("max",n.max).set("now"),o?i.set("select",o,{format:l,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return d()?-1:1},37:function(){return d()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+n.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+n.klass.selectMonth).trigger("focus"))}),t.$root.find("."+n.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+n.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var a=this,e=a.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=a.queue[t].split(" ").map(function(e){return n=a[e](t,n,i)}).pop(),"select"==t?a.set("highlight",e.select,i):"highlight"==t?a.set("view",e.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&a.disabled(e.select)&&a.set("select",e.select,i),e.highlight&&a.disabled(e.highlight)&&a.set("highlight",e.highlight,i))),a},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i;return(t=void 0===t?e:t)==-1/0||t==1/0?i=t:t=m.isPlainObject(t)&&g.isInteger(t.pick)?t.obj:m.isArray(t)?(t=new Date(t[0],t[1],t[2]),g.isDate(t)?t:this.create().obj):g.isInteger(t)||g.isDate(t)?this.normalize(new Date(t),n):this.now(e,t,n),{year:i||t.getFullYear(),month:i||t.getMonth(),date:i||t.getDate(),day:i||t.getDay(),obj:i||t,pick:i||t.getTime()}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||m.isArray(e)||g.isDate(e)?n.create(e):e};return g.isInteger(e)||(e=i(e)),g.isInteger(t)||(t=i(t)),g.isInteger(e)&&m.isPlainObject(t)?e=[t.year,t.month,t.date+e]:g.isInteger(t)&&m.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,t,n){var i,a,r,s,o=m.isArray(t),l=m.isPlainObject(t),d=this.item.view;if(o||l){for(s=l?(a=t.year,r=t.month,t.date):(a=+t[0],r=+t[1],+t[2]),n&&n.nav&&d&&d.month!==r&&(a=d.year,r=d.month),a=(i=new Date(a,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=i.getMonth();new Date(a,r,s).getMonth()!==r;)s-=1;t=[a,r,s]}return t},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):g.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,t){var i,a,r,s,o=this,l=n,d=t&&t.interval?t.interval:1,u=-1===o.item.enable,c=o.item.min,h=o.item.max,p=u&&o.item.disable.filter(function(e){if(m.isArray(e)){var t=o.create(e).pick;t<n.pick?i=!0:t>n.pick&&(a=!0)}return g.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!u&&o.disabled(n)||u&&o.disabled(n)&&(p||i||a)||!u&&(n.pick<=c.pick||n.pick>=h.pick)))for(u&&!p&&(!a&&0<d||!i&&d<0)&&(d*=-1);o.disabled(n)&&(1<Math.abs(d)&&(n.month<l.month||n.month>l.month)&&(n=l,d=0<d?1:-1),n.pick<=c.pick?(r=!0,d=1,n=o.create([c.year,c.month,c.date+(n.pick===c.pick?0:-1)])):n.pick>=h.pick&&(s=!0,d=-1,n=o.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!r||!s);)n=o.create([n.year,n.month,n.date+d]);return n},n.prototype.disabled=function(t){var n=this,e=n.item.disable.filter(function(e){return g.isInteger(e)?t.day===(n.settings.firstDay?e:e-1)%7:m.isArray(e)||g.isDate(e)?t.pick===n.create(e).pick:m.isPlainObject(e)?n.withinRange(e,t):void 0});return e=e.length&&!e.filter(function(e){return m.isArray(e)&&"inverted"==e[3]||m.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!e:e||t.pick<n.item.min.pick||t.pick>n.item.max.pick},n.prototype.parse=function(e,i,t){var a=this,r={};return i&&"string"==typeof i?(t&&t.format||((t=t||{}).format=a.settings.format),a.formats.toArray(t.format).map(function(e){var t=a.formats[e],n=t?g.trigger(t,a,[i,r]):e.replace(/^!/,"").length;t&&(r[e]=i.substr(0,n)),i=i.substr(n)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):i},n.prototype.formats=function(){function i(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function n(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?g.digits(e):t.date},dd:function(e,t){return e?2:g.lead(t.date)},ddd:function(e,t){return e?n(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?n(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?g.digits(e):t.month+1},mm:function(e,t){return e?2:g.lead(t.month+1)},mmm:function(e,t){var n=this.settings.monthsShort;return e?i(e,n,t):n[t.month]},mmmm:function(e,t){var n=this.settings.monthsFull;return e?i(e,n,t):n[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return g.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,t){return g.isInteger(e)&&g.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(g.isDate(e)||m.isArray(e))&&(g.isDate(t)||m.isArray(t))?this.create(e).pick===this.create(t).pick:!(!m.isPlainObject(e)||!m.isPlainObject(t))&&(this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to))},n.prototype.isDateOverlap=function(e,t){var n=this.settings.firstDay?1:0;return g.isInteger(e)&&(g.isDate(t)||m.isArray(t))?(e=e%7+n)===this.create(t).day+1:g.isInteger(t)&&(g.isDate(e)||m.isArray(e))?(t=t%7+n)===this.create(e).day+1:!(!m.isPlainObject(e)||!m.isPlainObject(t))&&this.overlapRanges(e,t)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,t){var i=this,a=i.item.disable.slice(0);return"flip"==t?i.flipEnable():!1===t?(i.flipEnable(1),a=[]):!0===t?(i.flipEnable(-1),a=[]):t.map(function(e){for(var t,n=0;n<a.length;n+=1)if(i.isDateExact(e,a[n])){t=!0;break}t||(g.isInteger(e)||g.isDate(e)||m.isArray(e)||m.isPlainObject(e)&&e.from&&e.to)&&a.push(e)}),a},n.prototype.activate=function(e,t){var r=this,s=r.item.disable,o=s.length;return"flip"==t?r.flipEnable():!0===t?(r.flipEnable(1),s=[]):!1===t?(r.flipEnable(-1),s=[]):t.map(function(e){var t,n,i,a;for(i=0;i<o;i+=1){if(n=s[i],r.isDateExact(n,e)){t=s[i]=null,a=!0;break}if(r.isDateOverlap(n,e)){m.isPlainObject(e)?(e.inverted=!0,t=e):m.isArray(e)?(t=e)[3]||t.push("inverted"):g.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(i=0;i<o;i+=1)if(r.isDateExact(s[i],e)){s[i]=null;break}if(a)for(i=0;i<o;i+=1)if(r.isDateOverlap(s[i],e)){s[i]=null;break}t&&s.push(t)}),s.filter(function(e){return null!=e})},n.prototype.nodes=function(l){var t,n,d=this,u=d.settings,e=d.item,s=e.now,o=e.select,c=e.highlight,h=e.view,p=e.disable,m=e.min,_=e.max,i=(t=(u.showWeekdaysFull?u.weekdaysFull:u.weekdaysShort).slice(0),n=u.weekdaysFull.slice(0),u.firstDay&&(t.push(t.shift()),n.push(n.shift())),g.node("thead",g.node("tr",g.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],u.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),a=function(e){return g.node("div"," ",u.klass["nav"+(e?"Next":"Prev")]+(e&&h.year>=_.year&&h.month>=_.month||!e&&h.year<=m.year&&h.month<=m.month?" "+u.klass.navDisabled:""),"data-nav="+(e||-1)+" "+g.ariaAttr({role:"button",controls:d.$node[0].id+"_table"})+' title="'+(e?u.labelMonthNext:u.labelMonthPrev)+'"')}
3233,r=function(){var t=u.showMonthsShort?u.monthsShort:u.monthsFull;return u.selectMonths?g.node("select",g.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(h.month==e?" selected":"")+(h.year==m.year&&e<m.month||h.year==_.year&&e>_.month?" disabled":"")]}}),u.klass.selectMonth,(l?"":"disabled")+" "+g.ariaAttr({controls:d.$node[0].id+"_table"})+' title="'+u.labelMonthSelect+'"'):g.node("div",t[h.month],u.klass.month)},f=function(){var t=h.year,e=!0===u.selectYears?5:~~(u.selectYears/2);if(e){var n=m.year,i=_.year,a=t-e,r=t+e;if(a<n&&(r+=n-a,a=n),i<r){var s=a-n,o=r-i;a-=o<s?o:s,r=i}return g.node("select",g.group({min:a,max:r,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),u.klass.selectYear,(l?"":"disabled")+" "+g.ariaAttr({controls:d.$node[0].id+"_table"})+' title="'+u.labelYearSelect+'"')}return g.node("div",t,u.klass.year)};return g.node("div",(u.selectYears?f()+r():r()+f())+a()+a(1),u.klass.header)+g.node("table",i+g.node("tbody",g.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=u.firstDay&&0===d.create([h.year,h.month,1]).day?-7:0;return[g.group({min:7*e-h.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=d.create([h.year,h.month,e+(u.firstDay?1:0)]);var t,n=o&&o.pick==e.pick,i=c&&c.pick==e.pick,a=p&&d.disabled(e)||e.pick<m.pick||e.pick>_.pick,r=g.trigger(d.formats.toString,d,[u.format,e]);return[g.node("div",e.date,(t=[u.klass.day],t.push(h.month==e.month?u.klass.infocus:u.klass.outfocus),s.pick==e.pick&&t.push(u.klass.now),n&&t.push(u.klass.selected),i&&t.push(u.klass.highlighted),a&&t.push(u.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+g.ariaAttr({role:"gridcell",label:r,selected:!(!n||d.$node.val()!==r)||null,activedescendant:!!i||null,disabled:!!a||null})),"",g.ariaAttr({role:"presentation"})]}})]}})),u.klass.table,'id="'+d.$node[0].id+'_table" '+g.ariaAttr({role:"grid",controls:d.$node[0].id,readonly:!0}))+g.node("div",g.node("button",u.today,u.klass.buttonToday,"type=button data-pick="+s.pick+(l&&!d.disabled(s)?"":" disabled")+" "+g.ariaAttr({controls:d.$node[0].id}))+g.node("button",u.clear,u.klass.buttonClear,"type=button data-clear=1"+(l?"":" disabled")+" "+g.ariaAttr({controls:d.$node[0].id}))+g.node("button",u.close,u.klass.buttonClose,"type=button data-close=true "+(l?"":" disabled")+" "+g.ariaAttr({controls:d.$node[0].id})),u.klass.footer)},n.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",n)}),function(e){"function"==typeof define&&define.amd?define("picker.time",["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,l){var t,a=1440,p=e._;function n(a,r){var e,t=this,n=a.$node[0].value,i=a.$node.data("value"),s=i||n,o=i?r.formatSubmit:r.format;t.settings=r,t.$node=a.$node,t.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},t.item={},t.item.clear=null,t.item.interval=r.interval||30,t.item.disable=(r.disable||[]).slice(0),t.item.enable=-(!0===(e=t.item.disable)[0]?e.shift():-1),t.set("min",r.min).set("max",r.max).set("now"),s?t.set("select",s,{format:o}):t.set("select",null).set("highlight",t.item.now),t.key={40:1,38:-1,39:1,37:-1,go:function(e){t.set("highlight",t.item.highlight.pick+e*t.item.interval,{interval:e*t.item.interval}),this.render()}},a.on("render",function(){var e=a.$root.children(),t=e.find("."+r.klass.viewset),i=function(t){return["webkit","moz","ms","o",""].map(function(e){return(e?"-"+e+"-":"")+t})},n=function(t,n){i("transform").map(function(e){t.css(e,n)}),i("transition").map(function(e){t.css(e,n)})};t.length&&(n(e,"none"),e[0].scrollTop=~~t.position().top-2*t[0].clientHeight,n(e,""))},1).on("open",function(){a.$root.find("button").attr("disabled",!1)},1).on("close",function(){a.$root.find("button").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var a=this,e=a.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=a.queue[t].split(" ").map(function(e){return n=a[e](t,n,i)}).pop(),"select"==t?a.set("highlight",e.select,i):"highlight"==t?a.set("view",e.highlight,i):"interval"==t?a.set("min",e.min,i).set("max",e.max,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&a.disabled(e.select)&&a.set("select",n,i),e.highlight&&a.disabled(e.highlight)&&a.set("highlight",n,i),"min"==t&&a.set("max",e.max,i))),a},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i=this;return t=void 0===t?e:t,p.isDate(t)&&(t=[t.getHours(),t.getMinutes()]),l.isPlainObject(t)&&p.isInteger(t.pick)?t=t.pick:l.isArray(t)?t=60*+t[0]+ +t[1]:p.isInteger(t)||(t=i.now(e,t,n)),"max"==e&&t<i.item.min.pick&&(t+=a),"min"!=e&&"max"!=e&&(t-i.item.min.pick)%i.item.interval!=0&&(t+=i.item.interval),{hour:~~(24+(t=i.normalize(e,t,n))/60)%24,mins:(60+t%60)%60,time:(a+t)%a,pick:t%a}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||l.isArray(e)||p.isDate(e)?n.create(e):e};return p.isInteger(e)||(e=i(e)),p.isInteger(t)||(t=i(t)),p.isInteger(e)&&l.isPlainObject(t)?e=[t.hour,t.mins+e*n.settings.interval]:p.isInteger(t)&&l.isPlainObject(e)&&(t=[e.hour,e.mins+t*n.settings.interval]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t){var n,i=this.item.interval,a=new Date,r=60*a.getHours()+a.getMinutes();return r-=r%i,n=t<0&&i*t+r<=-i,r+="min"==e&&n?0:i,p.isInteger(t)&&(r+=i*(n&&"max"!=e?t+1:t)),r},n.prototype.normalize=function(e,t){var n=this.item.interval,i=this.item.min&&this.item.min.pick||0;return t-="min"==e?0:(t-i)%n},n.prototype.measure=function(e,t,n){return t||(t="min"==e?[0,0]:[23,59]),"string"==typeof t?t=this.parse(e,t):!0===t||p.isInteger(t)?t=this.now(e,t,n):l.isPlainObject(t)&&p.isInteger(t.pick)&&(t=this.normalize(e,t.pick,n)),t},n.prototype.validate=function(e,t,n){var i=this,a=n&&n.interval?n.interval:i.item.interval;return i.disabled(t)&&(t=i.shift(t,a)),t=i.scope(t),i.disabled(t)&&(t=i.shift(t,-1*a)),t},n.prototype.disabled=function(t){var n=this,e=n.item.disable.filter(function(e){return p.isInteger(e)?t.hour==e:l.isArray(e)||p.isDate(e)?t.pick==n.create(e).pick:l.isPlainObject(e)?n.withinRange(e,t):void 0});return e=e.length&&!e.filter(function(e){return l.isArray(e)&&"inverted"==e[2]||l.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!e:e||t.pick<n.item.min.pick||t.pick>n.item.max.pick},n.prototype.shift=function(e,t){var n=this,i=n.item.min.pick,a=n.item.max.pick;for(t=t||n.item.interval;n.disabled(e)&&!((e=n.create(e.pick+=t)).pick<=i||e.pick>=a););return e},n.prototype.scope=function(e){var t=this.item.min.pick,n=this.item.max.pick;return this.create(e.pick>n?n:e.pick<t?t:e)},n.prototype.parse=function(e,a,t){var n,i,r,s,o,l=this,d={};if(!a||"string"!=typeof a)return a;for(s in t&&t.format||((t=t||{}).format=l.settings.format),l.formats.toArray(t.format).map(function(e){var t,n=l.formats[e],i=n?p.trigger(n,l,[a,d]):e.replace(/^!/,"").length;n&&(t=a.substr(0,i),d[e]=t.match(/^\d+$/)?+t:t),a=a.substr(i)}),d)o=d[s],p.isInteger(o)?s.match(/^(h|hh)$/i)?(n=o,"h"!=s&&"hh"!=s||(n%=12)):"i"==s&&(i=o):s.match(/^a$/i)&&o.match(/^p/i)&&("h"in d||"hh"in d)&&(r=!0);return 60*(r?n+12:n)+i},n.prototype.formats={h:function(e,t){return e?p.digits(e):t.hour%12||12},hh:function(e,t){return e?2:p.lead(t.hour%12||12)},H:function(e,t){return e?p.digits(e):""+t.hour%24},HH:function(e,t){return e?p.digits(e):p.lead(t.hour%24)},i:function(e,t){return e?2:p.lead(t.mins)},a:function(e,t){return e?4:t.time%a<720?"a.m.":"p.m."},A:function(e,t){return e?2:t.time%a<720?"AM":"PM"},toArray:function(e){return e.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return p.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}},n.prototype.isTimeExact=function(e,t){return p.isInteger(e)&&p.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(p.isDate(e)||l.isArray(e))&&(p.isDate(t)||l.isArray(t))?this.create(e).pick===this.create(t).pick:!(!l.isPlainObject(e)||!l.isPlainObject(t))&&(this.isTimeExact(e.from,t.from)&&this.isTimeExact(e.to,t.to))},n.prototype.isTimeOverlap=function(e,t){return p.isInteger(e)&&(p.isDate(t)||l.isArray(t))?e===this.create(t).hour:p.isInteger(t)&&(p.isDate(e)||l.isArray(e))?t===this.create(e).hour:!(!l.isPlainObject(e)||!l.isPlainObject(t))&&this.overlapRanges(e,t)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,t){var i=this,a=i.item.disable.slice(0);return"flip"==t?i.flipEnable():!1===t?(i.flipEnable(1),a=[]):!0===t?(i.flipEnable(-1),a=[]):t.map(function(e){for(var t,n=0;n<a.length;n+=1)if(i.isTimeExact(e,a[n])){t=!0;break}t||(p.isInteger(e)||p.isDate(e)||l.isArray(e)||l.isPlainObject(e)&&e.from&&e.to)&&a.push(e)}),a},n.prototype.activate=function(e,t){var r=this,s=r.item.disable,o=s.length;return"flip"==t?r.flipEnable():!0===t?(r.flipEnable(1),s=[]):!1===t?(r.flipEnable(-1),s=[]):t.map(function(e){var t,n,i,a;for(i=0;i<o;i+=1){if(n=s[i],r.isTimeExact(n,e)){t=s[i]=null,a=!0;break}if(r.isTimeOverlap(n,e)){l.isPlainObject(e)?(e.inverted=!0,t=e):l.isArray(e)?(t=e)[2]||t.push("inverted"):p.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(i=0;i<o;i+=1)if(r.isTimeExact(s[i],e)){s[i]=null;break}if(a)for(i=0;i<o;i+=1)if(r.isTimeOverlap(s[i],e)){s[i]=null;break}t&&s.push(t)}),s.filter(function(e){return null!=e})},n.prototype.i=function(e,t){return p.isInteger(t)&&0<t?t:this.item.interval},n.prototype.nodes=function(e){var o=this,l=o.settings,d=o.item.select,u=o.item.highlight,c=o.item.view,h=o.item.disable;return p.node("ul",p.group({min:o.item.min.pick,max:o.item.max.pick,i:o.item.interval,node:"li",item:function(e){var t,n=(e=o.create(e)).pick,i=d&&d.pick==n,a=u&&u.pick==n,r=h&&o.disabled(e),s=p.trigger(o.formats.toString,o,[l.format,e]);return[p.trigger(o.formats.toString,o,[p.trigger(l.formatLabel,o,[e])||l.format,e]),(t=[l.klass.listItem],i&&t.push(l.klass.selected),a&&t.push(l.klass.highlighted),c&&c.pick==n&&t.push(l.klass.viewset),r&&t.push(l.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+p.ariaAttr({role:"option",label:s,selected:!(!i||o.$node.val()!==s)||null,activedescendant:!!a||null,disabled:!!r||null})]}})+p.node("li",p.node("button",l.clear,l.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+p.ariaAttr({controls:o.$node[0].id})),"",p.ariaAttr({role:"presentation"})),l.klass.list,p.ariaAttr({role:"listbox",controls:o.$node[0].id}))},n.defaults={clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:(t=e.klasses().picker)+" "+t+"--time",holder:t+"__holder",list:t+"__list",listItem:t+"__list-item",disabled:t+"__list-item--disabled",selected:t+"__list-item--selected",highlighted:t+"__list-item--highlighted",viewset:t+"__list-item--viewset",now:t+"__list-item--now",buttonClear:t+"__button--clear"}},e.extend("pickatime",n)}),define("mockup-patterns-pickadate",["jquery","pat-base","mockup-utils","translate","picker","picker.date","picker.time","mockup-patterns-select2"],function(s,e,o,t){"use strict";return e.extend({name:"pickadate",trigger:".pat-pickadate",parser:"mockup",defaults:{separator:" ",date:{selectYears:!0,selectMonths:!0,formatSubmit:"yyyy-mm-dd",format:"yyyy-mm-dd",labelMonthNext:t("Next month"),labelMonthPrev:t("Previous month"),labelMonthSelect:t("Select a month"),labelYearSelect:t("Select a year"),clear:!1,close:!1,today:!1},time:{clear:!1},today:t("Today"),clear:t("Clear"),timezone:null,autoSetTimeOnDateChange:"+[0,0]",classWrapperName:"pattern-pickadate-wrapper",classSeparatorName:"pattern-pickadate-separator",classDateName:"pattern-pickadate-date",classDateWrapperName:"pattern-pickadate-date-wrapper",classTimeName:"pattern-pickadate-time",classTimeWrapperName:"pattern-pickadate-time-wrapper",classTimezoneName:"pattern-pickadate-timezone",classTimezoneWrapperName:"pattern-pickadate-timezone-wrapper",classClearName:"pattern-pickadate-clear",classNowName:"pattern-pickadate-now",placeholderDate:t("Enter date..."),placeholderTime:t("Enter time..."),placeholderTimezone:t("Enter timezone...")},parseTimeOffset:function(t){var e=void 0;0===t.indexOf("+")?(e="+",t=t.split("+")[1]):0===t.indexOf("-")&&(e="-",t=t.split("-")[1]);try{t=JSON.parse(t)}catch(e){t=void 0}if(!1===t)return!1;if(!0===t||!0!==Array.isArray(t))return[0,0];var n=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;if("+"===e||"-"===e){var a=new Date,r=a.getHours(),s=a.getMinutes();"+"===e?(23<(n=r+n)&&(n=23),59<(i=s+i)&&(i=59)):"-"===e&&((n=r-n)<0&&(n=0),(i=s-i)<0&&(i=0))}return[n,i]},init:function(){var n=this,e=n.$el.val().split(" "),t=e[0]||"",i=e[1]||"";if(!1===o.bool(n.options.date)&&(n.options.date=!1),!1===o.bool(n.options.time)&&(n.options.time=!1),n.options.autoSetTimeOnDateChange=n.parseTimeOffset(n.options.autoSetTimeOnDateChange),!1===n.options.date&&(i=e[0]),n.$el.hide(),n.$wrapper=s("<div/>").addClass(n.options.classWrapperName).insertAfter(n.$el),!1!==n.options.date&&(n.$date=s('<input type="text"/>').attr("placeholder",n.options.placeholderDate).attr("data-value",t).addClass(n.options.classDateName).appendTo(s("<div/>").addClass(n.options.classDateWrapperName).appendTo(n.$wrapper)).pickadate(s.extend(!0,{},n.options.date,{onSet:function(e){void 0!==e.select&&(n.$date.attr("data-value",e.select),!1!==n.options.autoSetTimeOnDateChange&&n.$time&&(n.$time.pickatime("picker").get("select")||n.$time.pickatime("picker").set("select",n.options.autoSetTimeOnDateChange)),!1!==n.options.time&&""===n.$time.attr("data-value")||n.updateV
3233alue.call(n)),e.hasOwnProperty("clear")&&(n.$el.val(""),n.$date.attr("data-value",""))}}))),!1!==n.options.time&&(n.options.time.formatSubmit="HH:i",n.$time=s('<input type="text"/>').attr("placeholder",n.options.placeholderTime).attr("data-value",i).addClass(n.options.classTimeName).appendTo(s("<div/>").addClass(n.options.classTimeWrapperName).appendTo(n.$wrapper)).pickatime(s.extend(!0,{},n.options.time,{onSet:function(e){void 0!==e.select&&(n.$time.attr("data-value",e.select),!1!==n.options.date&&""===n.$date.attr("data-value")||n.updateValue.call(n)),e.hasOwnProperty("clear")&&(n.$el.val(""),n.$time.attr("data-value",""))}})),"string"==typeof i&&"00"===i.substring(0,2)&&(n.$time.pickatime("picker").set("select",i.split(":")),n.$time.attr("data-value",i))),!1!==n.options.date&&!1!==n.options.time&&n.options.timezone&&(n.$separator=s("<span/>").addClass(n.options.classSeparatorName).html(" "===n.options.separator?"&nbsp;":n.options.separator).appendTo(n.$wrapper)),null!==n.options.timezone){n.$timezone=s('<input type="text"/>').addClass(n.options.classTimezoneName).appendTo(s("<div/>").addClass(n.options.classTimezoneWrapperName).appendTo(n.$wrapper)).patternSelect2(s.extend(!0,{placeholder:n.options.placeholderTimezone,width:"10em"},n.options.timezone,{multiple:!1})).on("change",function(e){void 0!==e.val&&(n.$timezone.attr("data-value",e.val),!1!==n.options.date&&""===n.$date.attr("data-value")||!1!==n.options.time&&""===n.$time.attr("data-value")||n.updateValue.call(n))});var a,r=n.options.timezone.default;if(r)n.options.timezone.data.some(function(e){return a=e.text===n.options.timezone.default}),a&&(n.$timezone.attr("data-value",r),n.$timezone.parent().find(".select2-chosen").text(r));1===n.options.timezone.data.length&&(n.$timezone.attr("data-value",n.options.timezone.data[0].text),n.$timezone.parent().find(".select2-chosen").text(n.options.timezone.data[0].text),n.$timezone.select2("enable",!1))}o.bool(n.options.today)&&(n.$now=s('<button type="button" class="btn btn-xs btn-info" title="'+n.options.today+'"><span class="glyphicon glyphicon-time"></span></button>').addClass(n.options.classNowName).on("click",function(e){e.preventDefault();var t=new Date;n.$date&&n.$date.data("pickadate").set("select",t),n.$time&&n.$time.data("pickatime").set("select",t),n.emit("updated")}).appendTo(n.$wrapper)),o.bool(n.options.clear)&&(n.$clear=s('<button type="button" class="btn btn-xs btn-danger" title="'+n.options.clear+'"><span class="glyphicon glyphicon-trash"></span></button>').addClass(n.options.classClearName).on("click",function(e){e.preventDefault(),n.$date&&n.$date.data("pickadate").clear(),n.$time&&n.$time.data("pickatime").clear(),n.emit("updated")}).appendTo(n.$wrapper))},updateValue:function(){var e=this,t="";if(!1!==e.options.date){var n=e.$date.data("pickadate").component,i=e.$date.data("pickadate").get("select"),a=n.formats.toString;i&&(t+=a.apply(n,[e.options.date.formatSubmit,i]))}if(!1!==e.options.date&&!1!==e.options.time&&(t+=" "),!1!==e.options.time){var r=e.$time.data("pickatime").component,s=e.$time.data("pickatime").get("select"),o=r.formats.toString;s&&(t+=o.apply(r,["HH:i",s]))}if(null!==e.options.timezone){var l=" "+e.$timezone.attr("data-value");l&&(t+=l)}e.$el.val(t),e.emit("updated")}})}),define("mockup-patterns-autotoc",["jquery","pat-base"],function(s,e){"use strict";return e.extend({name:"autotoc",trigger:".pat-autotoc",parser:"mockup",defaults:{section:"section",levels:"h1,h2,h3",IDPrefix:"autotoc-item-",classTOCName:"autotoc-nav",classSectionName:"autotoc-section",classLevelPrefixName:"autotoc-level-",classActiveName:"active",scrollDuration:"slow",scrollEasing:"swing"},init:function(){var a=this;a.$toc=s("<nav/>").addClass(a.options.classTOCName),a.options.prependTo?a.$toc.prependTo(a.options.prependTo):a.options.appendTo?a.$toc.appendTo(a.options.appendTo):a.$toc.prependTo(a.$el),a.options.className&&a.$el.addClass(a.options.className),s(a.options.section,a.$el).addClass(a.options.classSectionName);var r=a.$el.hasClass("autotabs"),n=null;s(a.options.levels,a.$el).each(function(e){var i=s(this),t=i.prop("id")?i.prop("id"):i.parents(a.options.section).prop("id");(!t||0<s("#"+t).length)&&(t=a.options.IDPrefix+a.name+"-"+e),window.location.hash==="#"+t&&(n=t),i.data("navref",t),s("<a/>").appendTo(a.$toc).text(i.text()).attr("id",t).attr("href","#"+t).addClass(a.options.classLevelPrefixName+a.getLevel(i)).on("click",function(e,t){e.stopPropagation(),e.preventDefault(),t||(t={doScroll:!0,skipHash:!1});var n=s(this);a.$toc.children("."+a.options.classActiveName).removeClass(a.options.classActiveName),a.$el.children("."+a.options.classActiveName).removeClass(a.options.classActiveName),s(e.target).addClass(a.options.classActiveName),i.parents(a.options.section).addClass(a.options.classActiveName),!1!==t.doScroll&&a.options.scrollDuration&&i&&!r&&s("body,html").animate({scrollTop:i.offset().top},a.options.scrollDuration,a.options.scrollEasing),0!==a.$el.parents(".plone-modal").size()&&a.$el.trigger("resize.plone-modal.patterns"),s(this).trigger("clicked"),t.skipHash||window.history&&window.history.pushState&&window.history.pushState({},"","#"+n.attr("id"))})}),n?s("a#"+n).trigger("click",{doScroll:!0,skipHash:!0}):a.$toc.find("a").first().trigger("click",{doScroll:!1,skipHash:!0})},getLevel:function(n){var i=0;return s.each(this.options.levels.split(","),function(e,t){if(1===n.filter(t).size())return i=e+1,!1}),i}})}),define("mockup-patterns-cookietrigger",["pat-base"],function(e){"use strict";return e.extend({name:"cookietrigger",trigger:".pat-cookietrigger",parser:"mockup",isCookiesEnabled:function(){var e="areYourCookiesEnabled=0";document.cookie=e;var t=document.cookie;return-1===t.indexOf(e)?0:(e="areYourCookiesEnabled=1",document.cookie=e,-1===(t=document.cookie).indexOf(e)?0:(document.cookie="areYourCookiesEnabled=; expires=Thu, 01-Jan-70 00:00:01 GMT",1))},showIfCookiesDisabled:function(){this.isCookiesEnabled()?this.$el.hide():this.$el.show()},init:function(){this.showIfCookiesDisabled()}})}),define("mockup-patterns-formunloadalert",["jquery","pat-base","translate"],function(a,e,t){"use strict";return e.extend({name:"formunloadalert",trigger:".pat-formunloadalert",parser:"mockup",_changed:!1,_suppressed:!1,defaults:{message:t("Discard changes? If you click OK, any changes you have made will be lost."),changingEvents:"change keyup paste",changingFields:"input,select,textarea,fileupload"},init:function(){var n=this;if(n.$el.is("form")){a(n.options.changingFields,n.$el).on(n.options.changingEvents,function(e){n._changed=!0});var i=n.$el.parents(".plone-modal");0!==i.size()?i.data("patternPloneModal").on("hide",function(e){var t=i.data("patternPloneModal");t&&(t._suppressHide=n._handleUnload.call(n,e))}):a(window).on("beforeunload",function(e){return n._handleUnload(e)}),n.$el.on("submit",function(e){n._suppressed=!0})}},_handleUnload:function(e){var t=this;if(t._suppressed)t._suppressed=!1;else if(t._changed){var n=t.options.message;return t._handleMsg(e,n),a(window).trigger("messageset"),n}},_handleMsg:function(e,t){(e||window.event).returnValue=t}})}),define("mockup-patterns-preventdoublesubmit",["jquery","pat-base","translate"],function(n,e,t){"use strict";return e.extend({name:"preventdoublesubmit",trigger:".pat-preventdoublesubmit",parser:"mockup",defaults:{message:t("You already clicked the submit button. Do you really want to submit this form again?"),guardClassName:"submitting",optOutClassName:"allowMultiSubmit"},init:function(){var t=this;t.$el.is("form")&&n(":submit",t.$el).click(function(e){if(n(":submit").removeAttr("clicked"),n(this).attr("clicked","clicked"),n(this).hasClass(t.o
3233ptions.guardClassName)&&!n(this).hasClass(t.options.optOutClassName))return t._confirm.call(t);n(this).addClass(t.options.guardClassName)})},_confirm:function(e){return window.confirm(this.options.message)}})}),define("mockup-patterns-formautofocus",["jquery","pat-base"],function(t,e,n){"use strict";return e.extend({name:"formautofocus",trigger:".pat-formautofocus",parser:"mockup",defaults:{condition:"div.error",target:"div.error :input:not(.formTabs):visible:first",always:":input:not(.formTabs):visible:first"},init:function(){var e=this;0!==t(e.options.condition,e.$el).size()?t(e.options.target,e.$el).focus():t(e.options.always,e.$el).focus()}})}),define("mockup-patterns-markspeciallinks",["pat-base","jquery"],function(e,l){"use strict";return e.extend({name:"markspeciallinks",trigger:".pat-markspeciallinks",parser:"mockup",defaults:{external_links_open_new_window:!1,mark_special_links:!0},init:function(){var e,t,n,i,a,r,s=this,o=s.$el;"string"==typeof s.options.external_links_open_new_window?e="true"===s.options.external_links_open_new_window.toLowerCase():"boolean"==typeof s.options.external_links_open_new_window&&(e=s.options.external_links_open_new_window),"string"==typeof s.options.mark_special_links?t="true"===s.options.mark_special_links.toLowerCase():"boolean"==typeof s.options.mark_special_links&&(t=s.options.mark_special_links),n=window.location.protocol+"//"+window.location.host,i=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/,a=o,e&&a.find('a[href^="http"]:not(.link-plain):not([href^="'+n+'"])').attr("target","_blank").attr("rel","noopener"),t&&(a.find('a[href^="http:"]:not(.link-plain):not([href^="'+n+'"]):not(:has(img))').before('<i class="glyphicon link-external"></i>'),a.find('a[href]:not([href^="http:"]):not(.link-plain):not([href^="'+n+'"]):not(:has(img)):not([href^="#"])').each(function(){if(r=i.exec(l(this).attr("href"))){var e="glyphicon link-"+r[0];l(this).before('<i class="'+e+'"></i>')}}))}})}),define("mockup-patterns-backdrop",["jquery","pat-base"],function(e,t){"use strict";return t.extend({name:"backdrop",trigger:".pat-backdrop",parser:"mockup",defaults:{zIndex:null,opacity:.8,className:"plone-backdrop",classActiveName:"plone-backdrop-active",closeOnEsc:!0,closeOnClick:!0},init:function(){var n=this;n.$backdrop=e("> ."+n.options.className,n.$el),0===n.$backdrop.size()&&(n.$backdrop=e("<div/>").hide().appendTo(n.$el).addClass(n.options.className),null!==n.options.zIndex&&n.$backdrop.css("z-index",n.options.zIndex)),!0===n.options.closeOnEsc&&e(document).on("keydown",function(e,t){n.$el.is("."+n.options.classActiveName)&&27===e.keyCode&&n.hide()}),!0===n.options.closeOnClick&&n.$backdrop.on("click",function(){n.$el.is("."+n.options.classActiveName)&&n.hide()})},show:function(){var e=this;e.$el.hasClass(e.options.classActiveName)||(e.emit("show"),e.$backdrop.css("opacity","0").show(),e.$el.addClass(e.options.classActiveName),e.$backdrop.animate({opacity:e.options.opacity},500),e.emit("shown"))},hide:function(){var e=this;e.$el.hasClass(e.options.classActiveName)&&(e.emit("hide"),e.$backdrop.animate({opacity:"0"},500).hide(),e.$el.removeClass(e.options.classActiveName),e.emit("hidden"))}})}),function(i,a){if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(e,t,n){i.Backbone=a(i,n,e,t)});else if("undefined"!=typeof exports){var e=require("underscore");a(i,exports,e)}else i.Backbone=a(i,{},i._,i.jQuery||i.Zepto||i.ender||i.$)}(this,function(e,o,w,t){var n=e.Backbone,i=[],a=i.slice;o.VERSION="1.1.2",o.$=t,o.noConflict=function(){return e.Backbone=n,this},o.emulateHTTP=!1,o.emulateJSON=!1;var r=o.Events={on:function(e,t,n){return c(this,"on",e,[t,n])&&t&&(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this})),this},once:function(e,t,n){if(!c(this,"once",e,[t,n])||!t)return this;var i=this,a=w.once(function(){i.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var i,a,r,s,o,l,d,u;if(!this._events||!c(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(o=0,l=(s=e?[e]:w.keys(this._events)).length;o<l;o++)if(e=s[o],r=this._events[e]){if(this._events[e]=i=[],t||n)for(d=0,u=r.length;d<u;d++)a=r[d],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&i.push(a);i.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;
3233var t=a.call(arguments,1);if(!c(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&s(n,t),i&&s(i,arguments),this},stopListening:function(e,t,n){var i=this._listeningTo;if(!i)return this;var a=!t&&!n;for(var r in n||"object"!=typeof t||(n=this),e&&((i={})[e._listenId]=e),i)(e=i[r]).off(t,n,this),(a||w.isEmpty(e._events))&&delete this._listeningTo[r];return this}},l=/\s+/,c=function(e,t,n,i){if(!n)return!0;if("object"==typeof n){for(var a in n)e[t].apply(e,[a,n[a]].concat(i));return!1}if(l.test(n)){for(var r=n.split(l),s=0,o=r.length;s<o;s++)e[t].apply(e,[r[s]].concat(i));return!1}return!0},s=function(e,t){var n,i=-1,a=e.length,r=t[0],s=t[1],o=t[2];switch(t.length){case 0:for(;++i<a;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r);return;case 2:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,s);return;case 3:for(;++i<a;)(n=e[i]).callback.call(n.ctx,r,s,o);return;default:for(;++i<a;)(n=e[i]).callback.apply(n.ctx,t);return}};w.each({listenTo:"on",listenToOnce:"once"},function(a,e){r[e]=function(e,t,n){var i=this._listeningTo||(this._listeningTo={});return n||"object"!=typeof t||(n=this),(i[e._listenId||(e._listenId=w.uniqueId("l"))]=e)[a](t,n,this),this}}),r.bind=r.on,r.unbind=r.off,w.extend(o,r);var b=o.Model=function(e,t){var n=e||{};t||(t={}),this.cid=w.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{}),n=w.defaults({},n,w.result(this,"defaults")),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};w.extend(b.prototype,r,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return w.clone(this.attributes)},sync:function(){return o.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return w.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var i,a,r,s,o,l,d,u;if(null==e)return this;if("object"==typeof e?(a=e,n=t):(a={})[e]=t,n||(n={}),!this._validate(a,n))return!1;for(i in r=n.unset,o=n.silent,s=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=w.clone(this.attributes),this.changed={}),u=this.attributes,d=this._previousAttributes,this.idAttribute in a&&(this.id=a[this.idAttribute]),a)t=a[i],w.isEqual(u[i],t)||s.push(i),w.isEqual(d[i],t)?delete this.changed[i]:this.changed[i]=t,r?delete u[i]:u[i]=t;if(!o){s.length&&(this._pending=n);for(var c=0,h=s.length;c<h;c++)this.trigger("change:"+s[c],this,u[s[c]],n)}if(l)return this;if(!o)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,w.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,w.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!w.isEmpty(this.changed):w.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&w.clone(this.changed);var t,n=!1,i=this._changing?this._previousAttributes:this.attributes;for(var a in e)w.isEqual(i[a],t=e[a])||((n||(n={}))[a]=t);return n},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return w.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?w.clone(t):{}).parse&&(t.parse=!0);var n=this,i=t.success;return t.success=function(e){if(!n.set(n.parse(e,t),t))return!1;i&&i(n,e,t),n.trigger("sync",n,e,t)},C(this,t),this.sync("read",this,t)},save:function(e,t,n){var i,a,r,s=this.attributes;if(null==e||"object"==typeof e?(i=e,n=t):(i={})[e]=t,n=w.extend({validate:!0},n),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;i&&n.wait&&(this.attributes=w.extend({},s,i)),void 0===n.parse&&(n.parse=!0);var o=this,l=n.success;return n.success=function(e){o.attributes=s;var t=o.parse(e,n);if(n.wait&&(t=w.extend(i||{},t)),w.isObject(t)&&!o.set(t,n))return!1;l&&l(o,e,n),o.trigger("sync",o,e,n)},C(this,n),"patch"===(a=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i),r=this.sync(a,this,n),i&&n.wait&&(this.attributes=s),r},destroy:function(t){t=t?w.clone(t):{};var n=this,i=t.success,a=function(){n.trigger("destroy",n,n.collection,t)};if(t.success=function(e){(t.wait||n.isNew())&&a(),i&&i(n,e,t),n.isNew()||n.trigger("sync",n,e,t)},this.isNew())return t.success(),!1;C(this,t);var e=this.sync("delete",this,t);return t.wait||a(),e},url:function(){var e=w.result(this,"urlRoot")||w.result(this.collection,"url")||H();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id
3233)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},w.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=w.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,w.extend(t,{validationError:n})),!1)}});w.each(["keys","values","pairs","invert","pick","omit"],function(t){b.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.attributes),w[t].apply(w,e)}});var d=o.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,w.extend({silent:!0},t))},k={add:!0,remove:!0,merge:!0},u={add:!0,remove:!1};w.extend(d.prototype,r,{model:b,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return o.sync.apply(this,arguments)},add:function(e,t){return this.set(e,w.extend({merge:!1},t,u))},remove:function(e,t){var n,i,a,r,s=!w.isArray(e);for(t||(t={}),n=0,i=(e=s?[e]:w.clone(e)).length;n<i;n++)(r=e[n]=this.get(e[n]))&&(delete this._byId[r.id],delete this._byId[r.cid],a=this.indexOf(r),this.models.splice(a,1),this.length--,t.silent||(t.index=a,r.trigger("remove",r,this,t)),this._removeReference(r,t));return s?e[0]:e},set:function(e,t){(t=w.defaults({},t,k)).parse&&(e=this.parse(e,t));var n,i,a,r,s,o,l,d=!w.isArray(e);e=d?e?[e]:[]:w.clone(e);var u=t.at,c=this.model,h=this.comparator&&null==u&&!1!==t.sort,p=w.isString(this.comparator)?this.comparator:null,m=[],_=[],f={},g=t.add,y=t.merge,v=t.remove,M=!(h||!g||!v)&&[];for(n=0,i=e.length;n<i;n++){if(a=(s=e[n]||{})instanceof b?r=s:s[c.prototype.idAttribute||"id"],o=this.get(a))v&&(f[o.cid]=!0),y&&(s=s===r?r.attributes:s,t.parse&&(s=o.parse(s,t)),o.set(s,t),h&&!l&&o.hasChanged(p)&&(l=!0)),e[n]=o;else if(g){if(!(r=e[n]=this._prepareModel(s,t)))continue;m.push(r),this._addReference(r,t)}r=o||r,!M||!r.isNew()&&f[r.id]||M.push(r),f[r.id]=!0}if(v){for(n=0,i=this.length;n<i;++n)f[(r=this.models[n]).cid]||_.push(r);_.length&&this.remove(_,t)}if(m.length||M&&M.length)if(h&&(l=!0),this.length+=m.length,null!=u)for(n=0,i=m.length;n<i;n++)this.models.splice(u+n,0,m[n]);else{M&&(this.models.length=0);var L=M||m;for(n=0,i=L.length;n<i;n++)this.models.push(L[n])}if(l&&this.sort({silent:!0}),!t.silent){for(n=0,i=m.length;n<i;n++)(r=m[n]).trigger("add",r,this,t);(l||M&&M.length)&&this.trigger("sort",this,t)}return d?e[0]:e},reset:function(e,t){t||(t={});for(var n=0,i=this.models.length;n<i;n++)this._removeReference(this.models[n],t);return t.previousModels=this.models,this._reset(),e=this.add(e,w.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,w.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,w.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(n,e){return w.isEmpty(n)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var t in n)if(n[t]!==e.get(t))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),w.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(w.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return w.invoke(this.models,"get",e)},fetch:function(n){void 0===(n=n?w.clone(n):{}).parse&&(n.parse=!0);var i=n.success,a=this;return n.success=function(e){var t=n.reset?"reset":"set";a[t](e,n),i&&i(a,e,n),a.trigger("sync",a,e,n)},C(this,n),this.sync("read",this,n)},create:function(e,n){if(n=n?w.clone(n):{},!(e=this._prepareModel(e,n)))return!1;n.wait||this.add(e,n);var i=this,a=n.success;return n.success=function(e,t){n.wait&&i.add(e,n),a&&a(e,t,n)},e.save(null,n),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof b)return e;var n=new(((t=t?w.clone(t):{}
3233).collection=this).model)(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_addReference:function(e,t){null!=(this._byId[e.cid]=e).id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,i),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});w.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],function(t){d.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.models),w[t].apply(w,e)}});w.each(["groupBy","countBy","sortBy","indexBy"],function(i){d.prototype[i]=function(t,e){var n=w.isFunction(t)?t:function(e){return e.get(t)};return w[i](this.models,n,e)}});var h=o.View=function(e){this.cid=w.uniqueId("view"),e||(e={}),w.extend(this,w.pick(e,m)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},p=/^(\S+)\s*(.*)$/,m=["model","collection","el","id","attributes","className","tagName","events"];w.extend(h.prototype,r,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,t){return this.$el&&this.undelegateEvents(),this.$el=e instanceof o.$?e:o.$(e),this.el=this.$el[0],!1!==t&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=w.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var n=e[t];if(w.isFunction(n)||(n=this[e[t]]),n){var i=t.match(p),a=i[1],r=i[2];n=w.bind(n,this),a+=".delegateEvents"+this.cid,""===r?this.$el.on(a,n):this.$el.on(a,r,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(w.result(this,"el"),!1);else{var e=w.extend({},w.result(this,"attributes"));this.id&&(e.id=w.result(this,"id")),this.className&&(e.class=w.result(this,"className"));var t=o.$("<"+w.result(this,"tagName")+">").attr(e);this.setElement(t,!1)}}}),o.sync=function(e,t,n){var i=f[e];w.defaults(n||(n={}),{emulateHTTP:o.emulateHTTP,emulateJSON:o.emulateJSON});var a={type:i,dataType:"json"};if(n.url||(a.url=w.result(t,"url")||H()),null!=n.data||!t||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(n.attrs||t.toJSON(n))),n.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),n.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){a.type="POST",n.emulateJSON&&(a.data._method=i);var r=n.beforeSend;n.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),r)return r.apply(this,arguments)}}"GET"===a.type||n.emulateJSON||(a.processData=!1),"PATCH"===a.type&&_&&(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var s=n.xhr=o.ajax(w.extend(a,n));return t.trigger("request",t,s,n),s};var _=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),f={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};o.ajax=function(){return o.$.ajax.apply(o.$,arguments)};var g=o.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},y=/\((.*?)\)/g,v=/(\(\?)?:\w+/g,M=/\*\w+/g,L=/[\-{}\[\]+?.,\\\^$|#\s]/g;w.extend(g.prototype,r,{initialize:function(){},route:function(n,i,a){w.isRegExp(n)||(n=this._routeToRegExp(n)),w.isFunction(i)&&(a=i,i=""),a||(a=this[i]);var r=this;return o.history.route(n,function(e){var t=r._extractParameters(n,e);r.execute(a,t),r.trigger.apply(r,["route:"+i].concat(t)),r.trigger("route",i,t),o.history.trigger("route",r,i,t)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,t){return o.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=w.result(this,"routes");for(var e,t=w.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(L,"\\$&").replace(y,"(?:$1)?").replace(v,function(e,t){return t?e:"([^/?]+)"}).replace(M,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return w.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}});var Y=o.History=function(){this.handlers=[],w.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},T=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,S=/msie [\w.]+/,x=/\/$/,j=/#.*$/;Y.started=!1,w.extend(Y.prototype,r,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(x,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(T,"")},start:function(e){if(Y.started)throw new Error("Backbone.history has already been started");Y.started=!0,this.options=w.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var t=this.getFragment(),n=document.documentMode,i=S.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);if(this.root=("/"+this.root+"/").replace(D,"/"),i&&this._wantsHashChange){var a=o.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow,this.navigate(t)}this._hasPushState?o.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?o.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=t;var r=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&r.hash&&(this.fragment=this.getHash().replace(T,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){o.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),Y.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),w.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!Y.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(j,""),this.fragment!==e){if(""===(this.fragment=e)&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),o.history=new Y;b.extend=d.extend=g.extend=h.extend=Y.extend=function(e,t){var n,i=this;n=e&&w.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},w.extend(n,i,t);var a=function(){this.constructor=n};return a.prototype=i.prototype,n.prototype=new a,e&&w.extend(n.prototype,e),n.__super__=i.prototype,n};var H=function(){throw new Error('A "url" property or function must be specified')},C=function(t,n){var i=n.error;n.error=function(e){i&&i(t,e,n),t.trigger("error",t,e,n)}};return o}
3233),define("mockup-router",["underscore","backbone"],function(o,e){"use strict";var l=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};return new(e.Router.extend({actions:[],redirects:{},addRoute:function(e,t,n,i,a,r){void 0===o.findWhere(this.patterns,{patternName:e,id:t})&&this.actions.push({patternName:e,id:t,callback:n,context:i,pathExp:a,expReplace:r});var s=new RegExp("("+l(e)+":"+l(t)+")");this.route(s,"handleRoute")},addRedirect:function(e,t){this.redirects[e]=t},handleRoute:function(e){var t=e.split(":"),n=t[0],i=t[1],a=o.findWhere(this.actions,{patternName:n,id:i});a&&a.callback.call(a.context)},redirect:function(){var n,i,a,r=window.parent.location.pathname;if(o.some(this.actions,function(e){if(e.pathExp&&(i=new RegExp(e.pathExp),r.match(i))){a="!/"+e.patternName+":"+e.id;var t="";return e.expReplace&&(t=e.expReplace),n=r.replace(i,t),!0}},this),void 0===a)for(var e in this.redirects)if(i=new RegExp(e),r.match(i)){a="!/"+this.redirects[e],n=r.replace(i,"");break}void 0!==a&&this._changeLocation.apply(this,[n,a])},_changeLocation:function(e,t){window.parent.location.hash=t,window.parent.location.pathname=e},start:function(){e.history.start()},reset:function(){this.actions=[]}}))}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.form",["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(E){"use strict";var v={};v.fileapi=void 0!==E("<input type='file'/>").get(0).files,v.formdata=void 0!==window.FormData;var A=!!E.fn.prop;function n(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),E(e.target).ajaxSubmit(t))}function i(e){var t=e.target,n=E(t);if(!n.is("[type=submit],[type=image]")){var i=n.closest("[type=submit]");if(0===i.length)return;t=i[0]}var a=this;if("image"==(a.clk=t).type)if(void 0!==e.offsetX)a.clk_x=e.offsetX,a.clk_y=e.offsetY;else if("function"==typeof E.fn.offset){var r=n.offset();a.clk_x=e.pageX-r.left,a.clk_y=e.pageY-r.top}else a.clk_x=e.pageX-t.offsetLeft,a.clk_y=e.pageY-t.offsetTop;setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},100)}function O(){if(E.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}E.fn.attr2=function(){if(!A)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},E.fn.ajaxSubmit=function(x){if(!this.length)return O("ajaxSubmit: skipping submit process - no element selected"),this;var j,e,t,H=this;"function"==typeof x?x={success:x}:void 0===x&&(x={}),j=x.type||this.attr2("method"),(t=(t="string"==typeof(e=x.url||this.attr2("action"))?E.trim(e):"")||window.location.href||"")&&(t=(t.match(/^([^#]+)/)||[])[1]),x=E.extend(!0,{url:t,success:E.ajaxSettings.success,type:j||E.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},x);var n={};if(this.trigger("form-pre-serialize",[this,x,n]),n.veto)return O("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(x.beforeSerialize&&!1===x.beforeSerialize(this,x))return O("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var i=x.traditional;void 0===i&&(i=E.ajaxSettings.traditional);var a,C=[],r=this.formToArray(x.semantic,C);if(x.data&&(x.extraData=x.data,a=E.param(x.data,i)),x.beforeSubmit&&!1===x.beforeSubmit(r,this,x))return O("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[r,this,x,n]),n.veto)return O("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var s=E.param(r,i);a&&(s=s?s+"&"+a:a),"GET"==x.type.toUpperCase()?(x.url+=(0<=x.url.indexOf("?")?"&":"?")+s,x.data=null):x.data=s;var o=[];if(x.resetForm&&o.push(function(){H.resetForm()}),x.clearForm&&o.push(function(){H.clearForm(x.includeHidden)}),!x.dataType&&x.target){var l=x.success||function(){};o.push(function(e){var t=x.replaceTarget?"replaceWith":"html";E(x.target)[t](e).each(l,arguments)})}else x.success&&o.push(x.success);if(x.success=function(e,t,n){for(var i=x.context||this,a=0,r=o.length;a<r;a++)o[a].apply(i,[e,t,n||H,H])},x.error){var d=x.error;x.error=function(e,t,n){var i=x.context||this;d.apply(i,[e,t,n,H])}}if(x.complete){var u=x.complete;x.complete=function(e,t){var n=x.context||this;u.apply(n,[e,t,H])}}var c=0<E("input[type=file]:enabled",this).filter(function(){return""!==E(this).val()}).length,h="multipart/form-data",p=H.attr("enctype")==h||H.attr("encoding")==h,m=v.fileapi&&v.formdata;O("fileAPI :"+m);var _,f=(c||p)&&!m;!1!==x.iframe&&(x.iframe||f)?x.closeKeepAlive?E.get(x.closeKeepAlive,function(){_=y(r)}):_=y(r):_=(c||p)&&m?function(e){for(var n=new FormData,t=0;t<e.length;t++)n.append(e[t].name,e[t].value);if(x.extraData){var i=function(e){var t,n,i=E.param(e,x.traditional).split("&"),a=i.length,r=[];for(t=0;t<a;t++)i[t]=i[t].replace(/\+/g," "),n=i[t].split("="),r.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return r}(x.extraData);for(t=0;t<i.length;t++)i[t]&&n.append(i[t][0],i[t][1])}x.data=null;var a=E.extend(!0,{},E.ajaxSettings,x,{contentType:!1,processData:!1,cache:!1,type:j||"POST"});
vendor: 4,644 bytes, line 3233
3233x.uploadProgress&&(a.xhr=function(){var e=E.ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",function(e){var t=0,n=e.loaded||e.position,i=e.total;e.lengthComputable&&(t=Math.ceil(n/i*100)),x.uploadProgress(e,n,i,t)},!1),e});a.data=null;var r=a.beforeSend;return a.beforeSend=function(e,t){x.formData?t.data=x.formData:t.data=n,r&&r.call(this,e,t)},E.ajax(a)}(r):E.ajax(x),H.removeData("jqxhr").data("jqxhr",_);for(var g=0;g<C.length;g++)C[g]=null;return this.trigger("form-submit-notify",[this,x]),this;function y(e){var t,n,u,c,r,h,p,m,i,a,_,f,s=H[0],g=E.Deferred();if(g.abort=function(e){m.abort(e)},e)for(n=0;n<C.length;n++)t=E(C[n]),A?t.prop("disabled",!1):t.removeAttr("disabled");if((u=E.extend(!0,{},E.ajaxSettings,x)).context=u.context||u,r="jqFormIO"+(new Date).getTime(),u.iframeTarget?(a=(h=E(u.iframeTarget)).attr2("name"))?r=a:h.attr2("name",r):(h=E('<iframe name="'+r+'" src="'+u.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=h[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";O("aborting upload... "+t),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(e){}h.attr("src",u.iframeSrc),m.error=t,u.error&&u.error.call(u.context,m,t,e),c&&E.event.trigger("ajaxError",[m,u,t]),u.complete&&u.complete.call(u.context,m,t)}},(c=u.global)&&0==E.active++&&E.event.trigger("ajaxStart"),c&&E.event.trigger("ajaxSend",[m,u]),u.beforeSend&&!1===u.beforeSend.call(u.context,m,u))return u.global&&E.active--,g.reject(),g;if(m.aborted)return g.reject(),g;(i=s.clk)&&(a=i.name)&&!i.disabled&&(u.extraData=u.extraData||{},u.extraData[a]=i.value,"image"==i.type&&(u.extraData[a+".x"]=s.clk_x,u.extraData[a+".y"]=s.clk_y));var y=1,v=2;function M(t){var n=null;try{t.contentWindow&&(n=t.contentWindow.document)}catch(e){O("cannot get iframe.contentWindow document: "+e)}if(n)return n;try{n=t.contentDocument?t.contentDocument:t.document}catch(e){O("cannot get iframe.contentDocument: "+e),n=t.document}return n}var o=E("meta[name=csrf-token]").attr("content"),l=E("meta[name=csrf-param]").attr("content");function d(){var e=H.attr2("target"),t=H.attr2("action"),n=H.attr("enctype")||H.attr("encoding")||"multipart/form-data";s.setAttribute("target",r),j&&!/post/i.test(j)||s.setAttribute("method","POST"),t!=u.url&&s.setAttribute("action",u.url),u.skipEncodingOverride||j&&!/post/i.test(j)||H.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),u.timeout&&(f=setTimeout(function(){_=!0,Y(y)},u.timeout));var i=[];try{if(u.extraData)for(var a in u.extraData)u.extraData.hasOwnProperty(a)&&(E.isPlainObject(u.extraData[a])&&u.extraData[a].hasOwnProperty("name")&&u.extraData[a].hasOwnProperty("value")?i.push(E('<input type="hidden" name="'+u.extraData[a].name+'">').val(u.extraData[a].value).appendTo(s)[0]):i.push(E('<input type="hidden" name="'+a+'">').val(u.extraData[a]).appendTo(s)[0]));u.iframeTarget||h.appendTo("body"),p.attachEvent?p.attachEvent("onload",Y):p.addEventListener("load",Y,!1),setTimeout(function e(){try{var t=M(p).readyState;O("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){O("Server abort: ",e," (",e.name,")"),Y(v),f&&clearTimeout(f),f=void 0}},15);try{s.submit()}catch(e){document.createElement("form").submit.apply(s)}}finally{s.setAttribute("action",t),s.setAttribute("enctype",n),e?s.setAttribute("target",e):H.removeAttr("target"),E(i).remove()}}l&&o&&(u.extraData=u.extraData||{},u.extraData[l]=o),u.forceSync?d():setTimeout(d,10);var L,w,b,k=50;function Y(e){if(!m.aborted&&!b){if((w=M(p))||(O("cannot access response document"),e=v),e===y&&m)return m.abort("timeout"),void g.reject(m,"timeout");if(e==v&&m)return m.abort("server abort"),void g.reject(m,"error","server abort");if(w&&w.location.href!=u.iframeSrc||_){p.detachEvent?p.detachEvent("onload",Y):p.removeEventListener("load",Y,!1);var t,n="success";try{if(_)throw"timeout";var i="xml"==u.dataType||w.XMLDocument||E.isXMLDoc(w);if(O("isXml="+i),!i&&window.opera&&(null===w.body||!w.body.innerHTML)&&--k)return O("requeing onLoad callback, DOM not available"),void setTimeout(Y,250);var a=w.body?w.body:w.documentElement;m.responseText=a?a.innerHTML:null,m.responseXML=w.XMLDocument?w.XMLDocument:w,i&&(u.dataType="xml"),m.getResponseHeader=function(e){return{"content-type":u.dataType}[e.toLowerCase()]},a&&(m.status=Number(a.getAttribute("status"))||m.status,m.statusText=a.getAttribute("statusText")||m.statusText);
3233var r=(u.dataType||"").toLowerCase(),s=/(json|script|text)/.test(r);if(s||u.textarea){var o=w.getElementsByTagName("textarea")[0];if(o)m.responseText=o.value,m.status=Number(o.getAttribute("status"))||m.status,m.statusText=o.getAttribute("statusText")||m.statusText;else if(s){var l=w.getElementsByTagName("pre")[0],d=w.getElementsByTagName("body")[0];l?m.responseText=l.textContent?l.textContent:l.innerText:d&&(m.responseText=d.textContent?d.textContent:d.innerText)}}else"xml"==r&&!m.responseXML&&m.responseText&&(m.responseXML=T(m.responseText));try{L=S(m,r,u)}catch(e){n="parsererror",m.error=t=e||n}}catch(e){O("error caught: ",e),n="error",m.error=t=e||n}m.aborted&&(O("upload aborted"),n=null),m.status&&(n=200<=m.status&&m.status<300||304===m.status?"success":"error"),"success"===n?(u.success&&u.success.call(u.context,L,"success",m),g.resolve(m.responseText,"success",m),c&&E.event.trigger("ajaxSuccess",[m,u])):n&&(void 0===t&&(t=m.statusText),u.error&&u.error.call(u.context,m,n,t),g.reject(m,"error",t),c&&E.event.trigger("ajaxError",[m,u,t])),c&&E.event.trigger("ajaxComplete",[m,u]),c&&!--E.active&&E.event.trigger("ajaxStop"),u.complete&&u.complete.call(u.context,m,n),b=!0,u.timeout&&clearTimeout(f),setTimeout(function(){u.iframeTarget?h.attr("src",u.iframeSrc):h.remove(),m.responseXML=null},100)}}}var T=E.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},D=E.parseJSON||function(e){return window.eval("("+e+")")},S=function(e,t,n){var i=e.getResponseHeader("content-type")||"",a="xml"===t||!t&&0<=i.indexOf("xml"),r=a?e.responseXML:e.responseText;return a&&"parsererror"===r.documentElement.nodeName&&E.error&&E.error("parsererror"),n&&n.dataFilter&&(r=n.dataFilter(r,t)),"string"==typeof r&&("json"===t||!t&&0<=i.indexOf("json")?r=D(r):("script"===t||!t&&0<=i.indexOf("javascript"))&&E.globalEval(r)),r};return g}},E.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&E.isFunction(E.fn.on),e.delegation||0!==this.length)return e.delegation?(E(document).off("submit.form-plugin",this.selector,n).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,e,n).on("click.form-plugin",this.selector,e,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,n).bind("click.form-plugin",e,i);var t={s:this.selector,c:this.context};return!E.isReady&&t.s?(O("DOM not ready, queuing ajaxForm"),E(function(){E(t.s,t.c).ajaxForm(e)})):O("terminating; zero elements found by selector"+(E.isReady?"":" (DOM not ready)")),this},E.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},E.fn.formToArray=function(e,t){var n=[];if(0===this.length)return n;var i,a,r,s,o,l,d,u,c=this[0],h=this.attr("id"),p=e?c.getElementsByTagName("*"):c.elements;if(p&&!/MSIE [678]/.test(navigator.userAgent)&&(p=E(p).get()),h&&(i=E(':input[form="'+h+'"]').get()).length&&(p=(p||[]).concat(i)),!p||!p.length)return n;for(a=0,d=p.length;a<d;a++)if((s=(l=p[a]).name)&&!l.disabled)if(e&&c.clk&&"image"==l.type)c.clk==l&&(n.push({name:s,value:E(l).val(),type:l.type}),n.push({name:s+".x",value:c.clk_x},{name:s+".y",value:c.clk_y}));else if((o=E.fieldValue(l,!0))&&o.constructor==Array)for(t&&t.push(l),r=0,u=o.length;r<u;r++)n.push({name:s,value:o[r]});else if(v.fileapi&&"file"==l.type){t&&t.push(l);var m=l.files;if(m.length)for(r=0;r<m.length;r++)n.push({name:s,value:m[r],type:l.type});else n.push({name:s,value:"",type:l.type})}else null!=o&&(t&&t.push(l),n.push({name:s,value:o,type:l.type,required:l.required}));if(!e&&c.clk){var _=E(c.clk),f=_[0];(s=f.name)&&!f.disabled&&"image"==f.type&&(n.push({name:s,value:_.val()}),n.push({name:s+".x",value:c.clk_x},{name:s+".y",value:c.clk_y}))}return n},E.fn.formSerialize=function(e){return E.param(this.formToArray(e))},E.fn.fieldSerialize=function(a){var r=[];return this.each(function(){var e=this.name;if(e){var t=E.fieldValue(this,a);if(t&&t.constructor==Array)for(var n=0,i=t.length;n<i;n++)r.push({name:e,value:t[n]});else null!=t&&r.push({name:this.name,value:t})}}),E.param(r)},E.fn.fieldValue=function(e){for(var t=[],n=0,i=this.length;n<i;n++){var a=this[n],r=E.fieldValue(a,e);null==r||r.constructor==Array&&!r.length||(r.constructor==Array?E.merge(t,r):t.push(r))}return t},E.fieldValue=function(e,t){var n=e.name,i=e.type,a=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!n||e.disabled||"reset"==i||"button"==i||("checkbox"==i||"radio"==i)&&!e.checked||("submit"==i||"image"==i)&&e.form&&e.form.clk!=e||"select"==a&&-1==e.selectedIndex))return null;if("select"!=a)return E(e).val();var r=e.selectedIndex;if(r<0)return null;for(var s=[],o=e.options,l="select-one"==i,d=l?r+1:o.length,u=l?r:0;u<d;u++){var c=o[u];if(c.selected){var h=c.value;if(h||(h=c.attributes&&c.attributes.value&&!c.attributes.value.specified?c.text:c.value),l)return h;s.push(h)}}return s},E.fn.clearForm=function(e){return this.each(function(){E("input,select,textarea",this).clearFields(e)})},E.fn.clearFields=E.fn.clearInputs=function(n){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();i.test(e)||"textarea"==t?this.value="":"checkbox"==e||"radio"==e?this.checked=!1:"select"==t?this.selectedIndex=-1:"file"==e?/MSIE/.test(navigator.userAgent)?E(this).replaceWith(E(this).clone(!0)):E(this).val(""):n&&(!0===n&&/hidden/.test(e)||"string"==typeof n&&E(this).is(n))&&(this.value="")}
3233)},E.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},E.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},E.fn.selected=function(n){return void 0===n&&(n=!0),this.each(function(){var e=this.type;if("checkbox"==e||"radio"==e)this.checked=n;else if("option"==this.tagName.toLowerCase()){var t=E(this).parent("select");n&&t[0]&&"select-one"==t[0].type&&t.find("option").selected(!1),this.selected=n}})},E.fn.ajaxSubmit.debug=!1}),define("mockup-patterns-modal",["jquery","underscore","pat-base","mockup-patterns-backdrop","pat-registry","mockup-router","mockup-utils","translate","jquery.form"],function(c,l,e,i,a,t,r,s){"use strict";return e.extend({name:"plone-modal",trigger:".pat-plone-modal",parser:"mockup",createModal:null,$model:null,defaults:{width:"",height:"",margin:20,position:"center middle",triggers:[],zIndexSelector:".plone-modal-wrapper,.plone-modal-backdrop",backdrop:"body",backdropOptions:{zIndex:"1040",opacity:"0.85",className:"plone-modal-backdrop",classActiveName:"plone-backdrop-active",closeOnEsc:!0,closeOnClick:!0},title:null,titleSelector:"h1:first",buttons:'.formControls > input[type="submit"]',content:"#content",automaticallyAddButtonActions:!0,loadLinksWithinModal:!0,prependContent:".portalMessage",templateOptions:{className:"plone-modal fade",classDialog:"plone-modal-dialog",classModal:"plone-modal-content",classHeaderName:"plone-modal-header",classBodyName:"plone-modal-body",classFooterName:"plone-modal-footer",classWrapperName:"plone-modal-wrapper",classWrapperInnerName:"modal-wrapper-inner",classActiveName:"in",classPrependName:"",classContentName:"",template:'<div class="<%= options.className %>">  <div class="<%= options.classDialog %>">    <div class="<%= options.classModal %>">      <div class="<%= options.classHeaderName %>">        <a class="plone-modal-close">&times;</a>        <% if (title) { %><h2 class="plone-modal-title"><%= title %></h2><% } %>      </div>      <div class="<%= options.classBodyName %>">        <div class="<%= options.classPrependName %>"><%= prepend %></div>         <div class="<%= options.classContentName %>"><%= content %></div>      </div>      <div class="<%= options.classFooterName %>">         <% if (buttons) { %><%= buttons %><% } %>      </div>    </div>  </div></div>'},actions:{},actionOptions:{eventType:"click",disableAjaxFormSubmit:!1,target:null,ajaxUrl:null,modalFunction:null,isForm:!1,timeout:5e3,displayInModal:!0,reloadWindowOnClose:!0,error:".portalMessage.error",formFieldError:".field.error",onSuccess:null,onError:null,onFormError:null,onTimeout:null,redirectOnResponse:!1,redirectToUrl:function(e,t,n){var i;return(i=/<body.*data-view-url=[\"'](.*)[\"'].*/im.exec(t))&&1<i.length?i[1].split('"')[0]:(i=/<body.*data-base-url=[\"'](.*)[\"'].*/im.exec(t))&&1<i.length?i[1].split('"')[0]:(i=/<base.*href=[\"'](.*)[\"'].*/im.exec(t))&&1<i.length?i[1]:""}},routerOptions:{id:null,pathExp:null},form:function(e){var s=this,o=s.$modal;s.options.automaticallyAddButtonActions&&(e[s.options.buttons]={}),e.a={},c.each(e,function(e,n){var t=l.union(l.keys(s.options.actionOptions),["templateOptions"]),i=c.extend(!0,{},s.options.actionOptions,l.pick(n,t));n.templateOptions=c.extend(!0,n.templateOptions,s.options.templateOptions);var a=l.union(l.keys(s.options.actionOptions),["actions","actionOptions"]),r=c.extend(!0,l.omit(n,a),s.options);c(e,c("."+n.templateOptions.classBodyName,o)).each(function(e){var t=c(this);t.on(i.eventType,function(e){e.stopPropagation(),e.preventDefault(),s.loading.show(!1),null!==i.modalFunction?s[i.modalFunction]():c.nodeName(t[0],"input")||c.nodeName(t[0],"button")||!0===n.isForm?s.options.handleFormAction.apply(s,[t,i,r]):(null!==n.ajaxUrl||c.nodeName(t[0],"a"))&&s.options.handleLinkAction.apply(s,[t,i,r])})})})},handleFormAction:function(a,r,s){var e,t,o=this,n={};if(n[a.attr("name")]=a.attr("value"),e=c.nodeName(a[0],"form")?a:a.parents("form:not(.disableAutoSubmit)"),t=null!==r.ajaxUrl?"function"==typeof r.ajaxUrl?r.ajaxUrl.a
3233pply(o,[a,r]):r.ajaxUrl:a.parents("form").attr("action"),r.disableAjaxFormSubmit)return a.attr("name")&&a.attr("value")&&e.append(c('<input type="hidden" name="'+a.attr("name")+'" value="'+a.attr("value")+'" />')),void e.trigger("submit");e.on("submit",function(e){e.preventDefault()}),e.trigger("submit"),o.loading.show(!1),e.ajaxSubmit({timeout:r.timeout,data:n,url:t,error:function(e,t,n){o.loading.hide(),"timeout"===t&&r.onTimeout?r.onTimeout.apply(o,e,n):r.onError?r.onError(e,t,n):console.log("error happened do something"),o.emit("formActionError",[e,t,n])},success:function(e,t,n,i){o.loading.hide(),0===c(r.error,e).size()&&0===c(r.formFieldError,e).size()?!0!==r.redirectOnResponse?(r.onSuccess&&r.onSuccess(o,e,t,n,i),!0===r.displayInModal?o.redraw(e,s):(a.trigger("destroy.plone-modal.patterns"),r.reloadWindowOnClose&&o.reloadWindow()),o.emit("formActionSuccess",[e,t,n,i])):"function"==typeof r.redirectToUrl?window.parent.location.href=r.redirectToUrl.apply(o,[a,e,r]):window.parent.location.href=r.redirectToUrl:r.onFormError?r.onFormError(o,e,t,n,i):o.redraw(e,s)}})},handleLinkAction:function(e,i,a){var t,r=this;t=i.ajaxUrl?"function"==typeof i.ajaxUrl?i.ajaxUrl.apply(r,[e,i]):i.ajaxUrl:e.attr("href"),!1!==i.displayInModal?c.ajax({url:t}).fail(function(e,t,n){"timeout"===t&&i.onTimeout?i.onTimeout(r.$modal,e,n):i.onError?i.onError(e,t,n):window.alert(s("There was an error loading modal.")),r.emit("linkActionError",[e,t,n])}).done(function(e,t,n){r.redraw(e,a),i.onSuccess&&i.onSuccess(r,e,t,n),r.emit("linkActionSuccess",[e,t,n])}).always(function(){r.loading.hide()}):"_blank"===e.attr("target")?(window.open(t,"_blank"),r.loading.hide()):window.location=t},render:function(e){var n=this;if(n.emit("before-render"),n.$raw){var t=n.$raw.clone();c("input:checked",t).each(function(){this.setAttribute&&this.setAttribute("checked","checked")});var i={title:"",prepend:"<div />",content:"",buttons:'<div class="pattern-modal-buttons"></div>',options:e.templateOptions};if(null===e.title){var a=c(e.titleSelector,t);i.title=a.html(),c(e.titleSelector,t).remove()}else i.title=e.title;e.prependContent&&(i.prepend=c("<div />").append(c(e.prependContent,t).clone()).html(),c(e.prependContent,t).remove()),e.content?i.content=c(e.content,t).html():i.content=t.html(),n.$modal=c(l.template(n.options.templateOptions.template)(i)),n.$modalDialog=c("> ."+n.options.templateOptions.classDialog,n.$modal),n.$modalContent=c("> ."+n.options.templateOptions.classModal,n.$modalDialog),c("form",n.$modal).on("keydown",function(e){13===e.keyCode&&"TEXTAREA"!==e.target.nodeName&&(e.preventDefault(),c("input[type=submit], button[type=submit], button:not(type)",this).eq(0).trigger("click"))}),c(e.buttons,n.$modal).each(function(){var t=c(this);t.on("click",function(e){e.stopPropagation(),e.preventDefault()}).clone().appendTo(c(".pattern-modal-buttons",n.$modal)).off("click").on("click",function(e){e.stopPropagation(),e.preventDefault(),t.trigger("click")}),t.hide()}),n.emit("before-events-setup"),c(".plone-modal-header > a.plone-modal-close, .plone-modal-footer > a.plone-modal-close",n.$modal).off("click").on("click",function(e){e.stopPropagation(),e.preventDefault(),c(e.target).trigger("destroy.plone-modal.patterns")}),e.form&&e.form.apply(n,[e.actions]),n.$modal.addClass(n.options.templateOptions.className).on("destroy.plone-modal.patterns",function(e){e.stopPropagation(),n.hide()}).on("resize.plone-modal.patterns",function(e){e.stopPropagation(),e.preventDefault(),n.positionModal()}).appendTo(n.$wrapperInner),n.options.loadLinksWithinModal&&n.$modal.on("click",function(e){e.stopPropagation(),c.nodeName(e.target,"a")&&e.preventDefault(),n.$modal.trigger("modal-click")}),n.$modal.data("pattern-"+n.name,n),n.emit("after-render")}}},reloadWindow:function(){window.parent.location.reload()},init:function(){var a=this;a.options.loadLinksWithinModal=c.parseJSON(a.options.loadLinksWithinModal),null!==a.options.routerOptions.id&&t.addRoute("modal",a.options.routerOptions.id,function(){this.show()},a,a.options.routerOptions.pathExp,a.options.routerOptions.expReplace),!0===a.options.backdropOptions.closeOnEsc&&c(document).on("keydown",function(e,t){a.$el.is("."+a.options.templateOptions.classActiveName)&&27===e.ke
3233yCode&&a.hide()}),c(window.parent).resize(function(){a.positionModal()}),a.options.triggers&&c.each(a.options.triggers,function(e,t){var n=t.substring(0,t.indexOf(" ")),i=t.substring(t.indexOf(" "),t.length);c(i||a.$el).on(n,function(e){e.stopPropagation(),e.preventDefault(),a.show()})}),a.$el.is("a")&&(a.$el.attr("href")&&!a.options.image&&(a.options.target||"#"!==a.$el.attr("href").substr(0,1)||(a.options.target=a.$el.attr("href"),a.options.content=""),a.options.ajaxUrl||"#"===a.$el.attr("href").substr(0,1)||(a.options.ajaxUrl=function(){return a.$el.attr("href")})),a.$el.on("click",function(e){e.stopPropagation(),e.preventDefault(),a.show()})),a.initModal()},createAjaxModal:function(){var a=this;a.emit("before-ajax"),a.loading.show();var e=a.options.ajaxUrl;"function"==typeof e&&(e=e.apply(a,[a.options])),a.ajaxXHR=c.ajax({url:e,type:a.options.ajaxType}).done(function(e,t,n){a.ajaxXHR=void 0,a.$raw=c("<div />").append(c(r.parseBodyTag(e))),a.emit("after-ajax",a,t,n),a._show()}).fail(function(e,t,n){var i=a.options.actionOptions;"timeout"===t&&i.onTimeout?i.onTimeout(a.$modal,e,n):i.onError?i.onError(e,t,n):(window.alert(s("There was an error loading modal.")),a.hide()),a.emit("linkActionError",[e,t,n])}).always(function(){a.loading.hide()})},createTargetModal:function(){this.$raw=c(this.options.target).clone(),this._show()},createBasicModal:function(){this.$raw=c("<div/>").html(this.$el.clone()),this._show()},createHtmlModal:function(){var e=c(this.options.html);this.$raw=e,this._show()},createImageModal:function(){var e=this;e.$wrapper.addClass("image-modal");var t=e.$el.attr("href"),n=e.$el.attr("data-modal-srcset")||"",i=c.trim(e.$el.context.innerText)||"Image";e.$raw=c("<div><h1>"+i+'</h1><div id="content"><div class="modal-image"><img src="'+t+'" srcset="'+n+'" /></div></div></div>'),e._show()},initModal:function(){var e=this;e.options.ajaxUrl?e.createModal=e.createAjaxModal:e.options.target?e.createModal=e.createTargetModal:e.options.html?e.createModal=e.createHtmlModal:e.options.image?e.createModal=e.createImageModal:e.createModal=e.createBasicModal},findPosition:function(e,t,n,i,a,r,s){var o,l,d,u,c={};return u=d=o=d="auto",c.left="left"===e?(d=n+"px",r<i&&(d="0px"),d):"right"===e?(u=n+"px",r<i&&(u="0px"),c.right=u,"auto"):(d=r/2-i/2-n+"px",r<i&&(d="0px"),d),c.top="top"===t?(o=n+"px",s<a&&(o="0px"),o):"bottom"===t?(l=n+"px",s<a&&(l="0px"),c.bottom=l,"auto"):(o=s/2-a/2-n+"px",s<a&&(o="0px"),o),c},modalInitialized:function(){return null!==this.$modal&&void 0!==this.$modal},positionModal:function(){var e=this;if(e.modalInitialized()){e.$modal.removeAttr("style"),e.$wrapper.parent().is("body")&&e.$wrapper.height(c(window.parent).height());var t="function"==typeof e.options.margin?e.options.margin():e.options.margin;e.$modal.css({position:"absolute",padding:t}),e.$modalDialog.css({margin:"0",padding:"0",width:e.options.width,height:e.options.height}),e.$modalContent.css({width:e.options.width});var n=e.options.position.split(" "),i=n[0],a=n[1],r=e.$modalDialog.outerWidth(!0),s=e.$modalDialog.outerHeight(!0),o=e.$wrapperInner.width(),l=e.$wrapperInner.height(),d=e.findPosition(i,a,t,r,s,o,l);for(var u in d)e.$modalDialog.css(u,d[u])}},render:function(e){this.emit("render"),this.options.render.apply(this,[e]),this.emit("rendered")},show:function(){this.backdrop=this.createBackdrop(),this.createModal()},createBackdrop:function(){var t=this,n=new i(t.$el.parents(t.options.backdrop),t.options.backdropOptions),e=1041;return c(t.options.zIndexSelector).each(function(){e=Math.max(e,parseInt(c(this).css("zIndex"))+1||1041)}),t.$wrapper=c("<div/>").hide().css({"z-index":e,"overflow-y":"auto",position:"fixed",height:"100%",width:"100%",bottom:"0",left:"0",right:"0",top:"0"}).addClass(t.options.templateOptions.classWrapperName).insertBefore(n.$backdrop).on("click",function(e){t.options.backdropOptions.closeOnClick&&(e.stopPropagation(),e.preventDefault(),n.hide())}),n.on("hidden",function(e){void 0!==t.$modal&&t.$modal.hasClass(t.options.templateOptions.classActiveName)&&t.hide()}),t.loading=new r.Loading({backdrop:n}),t.$wrapperInner=c("<div/>
3233").addClass(t.options.classWrapperInnerName).css({position:"absolute",bottom:"0",left:"0",right:"0",top:"0"}).appendTo(t.$wrapper),n},_show:function(){var e=this;e.render.apply(e,[e.options]),e.emit("show"),e.backdrop.show(),e.$wrapper.show(),e.loading.hide(),e.$el.addClass(e.options.templateOptions.classActiveName),e.$modal.addClass(e.options.templateOptions.classActiveName),a.scan(e.$modal),e.positionModal(),c(window.parent).on("resize.plone-modal.patterns",function(){e.positionModal()}),c("body").addClass("plone-modal-open"),e.emit("shown")},hide:function(){var e=this;e.ajaxXHR&&e.ajaxXHR.abort(),e.emit("hide"),e._suppressHide&&!window.confirm(e._suppressHide)||(e.loading.hide(),e.$el.removeClass(e.options.templateOptions.classActiveName),void 0!==e.$modal&&(e.$modal.remove(),e.initModal()),e.$wrapper.remove(),c(".plone-modal",c("body")).size()<1&&(e._suppressHide=void 0,e.backdrop.hide(),c("body").removeClass("plone-modal-open"),c(window.parent).off("resize.plone-modal.patterns")),e.emit("hidden"))},redraw:function(e,t){var n=this;n.emit("beforeDraw"),n.$modal.remove(),n.$raw=c("<div />").append(c(r.parseBodyTag(e))),n.render.apply(n,[t||n.options]),n.$modal.addClass(n.options.templateOptions.classActiveName),n.positionModal(),a.scan(n.$modal),n.emit("afterDraw")}})}),define("mockup-patterns-livesearch",["jquery","pat-base","underscore","translate"],function(s,e,o,l){"use strict";return e.extend({name:"livesearch",trigger:".pat-livesearch",parser:"mockup",timeout:null,active:!1,results:null,selectedItem:-1,resultsClass:"livesearch-results",defaults:{ajaxUrl:null,defaultSortOn:"",perPage:7,quietMillis:350,minimumInputLength:4,inputSelector:'input[type="text"]',itemTemplate:'<li class="search-result <%- state %>"><h4 class="title"><a href="<%- url %>"><%- title %></a></h4><p class="description"><%- description %></p></li>'},doSearch:function(t){var a=this;a.active=!0,a.render(),a.$el.addClass("searching");var n=a.$el.serialize();void 0===t&&(t=1);var e=function(){var e=location.search,t=e.indexOf("sort_on");if(-1===t){var n=s("#search-results");return 0<n.length?n.attr("data-default-sort"):a.options.defaultSortOn}var i=e.substring(t);return i=(i=i.split("&")[0]).split("=")[1]}();s.ajax({url:a.options.ajaxUrl+"?"+n+"&page="+t+"&perPage="+a.options.perPage+"&sort_on="+e,dataType:"json"}).done(function(e){a.results=e,a.page=t,n!==a.$el.serialize()&&a.doSearch()}).fail(function(){a.results={items:[{url:"",title:l("Error"),description:l("There was an error searching…"),state:"error",error:!1}],total:1},a.page=1}).always(function(){a.active=!1,a.selectedItem=-1,a.$el.removeClass("searching"),a.render()})},render:function(){var i=this;if(i.$results.empty(),i.active?i.$results.append(s('<li class="searching">'+l("searching…")+"</li>")):null===i.results?i.$results.append(s('<li class="no-results no-search">'+l("enter search phrase")+"</li>")):0===i.results.total?i.$results.append(s('<li class="no-results">'+l("no results found")+"</li>")):i.$results.append(s('<li class="results-summary">'+l("found")+" "+i.results.total+" "+l("results")+"</li>")),null!==i.results){var a=o.template(i.options.itemTemplate);o.each(i.results.items,function(e,t){var n=s(a(s.extend({_t:l},e)));n.attr("data-url",e.url).on("click",function(){e.error||(window.location=e.url)}),t===i.selectedItem&&n.addClass("selected"),i.$results.append(n)});var e=[];if(1<i.page){var t=s('<a href="#" class="prev">'+l("Previous")+"</a>");t.click(function(e){i.disableHiding=!0,e.preventDefault(),i.doSearch(i.page-1)}),e.push(t)}if(i.page*i.options.perPage<i.results.total){var n=s('<a href="#" class="next">'+l("Next")+"</a>");n.click(function(e){i.disableHiding=!0,e.preventDefault(),i.doSearch(i.page+1)}),e.push(n)}if(0<e.length){var r=s('<li class="load-more"><div class="page">'+i.page+"</div></li>");r.prepend(e),i.$results.append(r)}}i.position()},position:function(){var e=this;e.$el.addClass("livesearch-active");var t=e.$input.position();e.$results.width(e.$el.outerWidth()),e.$results.css({top:t.top+e.$input.outerHeight(),left:t.left}),e.$results.show()},hide:function(){this.$results.hide(),this.$el.removeClass("livesearch-active")},init:function(){var n=this;n.$input=n.$el.find(n.options.inputSelector),n.$input.off("focusout").on("focusout",function(){setTimeout(function(){n.disableHiding?(n.disableHiding=!1,n.$input.focus()):n.hide()},200)}).off("focusin").on("focusin",function(){n.onceFocused?n.$results.is(":visible")||n.render():(n.onceFocused=!0,n.$input.val().length>=n.options.minimumInputLength&&n.doSearch())}).attr("autocomplete","off").off("keyup").on("keyup",function(e){var t=e.keyCode||e.which;if(27===t)return n.$input.val(""),void n.hide();if(n.results&&n.results.items&&0<n.results.items.length){if(13===t)return void(-1!==n.selectedItem&&(window.location=n.results.items[n.selectedItem].url));if(38===t)return void(-1!==n.selectedItem&&(n.selectedItem-=1,n.render()));if(40===t)return void(n.selectedItem<n.results.items.length&&(n.selectedItem+=1,n.render()))}null!==n.timeout&&(clearTimeout(n.timeout),n.timeout=null),n.active||(n.$input.val().length>=n.options.minimumInputLength?n.timeout=setTimeout(function(){n.doSearch()},n.options.quietMillis):(n.results=null,n.render()))}),s("#sorting-options a").click(function(e){e.preventDefault(),n.onceFocused=!1}),n.$results=s('<ul class="'+n.resultsClass+'"></ul>').hide().insertAfter(n.$input)}})}),define("mockup-patterns-contentloader",["jquery","pat-base","pat-logger","pat-registry","mockup-utils","underscore"],function(i,e,t,a,r,s){"use strict";var o=t.getLogger("pat-contentloader");return e.extend({name:"contentloader",trigger:".pat-contentloader",parser:"mockup",defaults:{url:null,content:null,trigger:"click",target:null,template:null,dataType:"html"},init:function(){var t=this;"el"===t.options.url&&"A"===t.$el[0].tagName&&(t.options.url=t.$el.attr("href")),t.$el.removeClass("loading-content"),t.$el.removeClass("content-load-error"),"immediate"===t.options.trigger?t._load():t.$el.on(t.o
3233ptions.trigger,function(e){e.preventDefault(),t._load()})},_load:function(){this.$el.addClass("loading-content"),this.options.url?this.loadRemote():this.loadLocal()},loadRemote:function(){var n=this;i.ajax({url:n.options.url,dataType:n.options.dataType,success:function(e){var t;if("html"===n.options.dataType)-1!==e.indexOf("<html")&&(e=r.parseBodyTag(e)),t=i("<div>"+e+"</div>");else if(-1!==n.options.dataType.indexOf("json")){e.constructor===Array&&1===e.length&&(e=e[0]);try{t=i(s.template(n.options.template)(e))}catch(e){return n.$el.removeClass("loading-content"),n.$el.addClass("content-load-error"),void o.warn("error rendering template. pat-contentloader will not work")}}null!==n.options.content&&(t=t.find(n.options.content)),n.loadLocal(t)},error:function(){n.$el.removeClass("loading-content"),n.$el.addClass("content-load-error")}})},loadLocal:function(e){var t=this;if(!e&&null===t.options.content)return t.$el.removeClass("loading-content"),t.$el.addClass("content-load-error"),void o.warn("No selector configured");var n=t.$el;if(null!==t.options.target&&0===(n=i(t.options.target)).size())return t.$el.removeClass("loading-content"),t.$el.addClass("content-load-error"),void o.warn("No target nodes found");e||(e=i(t.options.content).clone()),e.length?(e.show(),n.replaceWith(e),a.scan(e)):n.empty(),t.$el.removeClass("loading-content"),t.emit("loading-done")}})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function y(){return lt.apply(null,arguments)}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)v(t,n)&&(e[n]=t[n]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function s(e,t,n,i){return X(e,t,n,i,!0).utc()}function b(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),e._pf}function u(e){if(null==e._isValid){var t=b(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function c(e){var t=s(NaN);return null!=e?d(b(t),e):b(t).userInvalidated=!0,t}function h(e,t){var n,i,a;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=b(t)),void 0!==t._locale&&(e._locale=t._locale),0<ut.length)for(n in ut)void 0!==(a=t[i=ut[n]])&&(e[i]=a);return e}function p(e){h(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===ct&&(ct=!0,y.updateOffset(this),ct=!1)}function m(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function _(e){return e<0?Math.ceil(e):Math.floor(e)}function f(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=_(t)),n}function g(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&f(e[i])!==f(t[i]))&&s++;return s+r}function n(){}function M(e){return e?e.toLowerCase().replace("_","-"):e}function L(e){var t=null;if(!ht[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=dt._abbr,require("./locale/"+e),i(t)}catch(e){}return ht[e]}function i(e,t){var n;return e&&((n=void 0===t?w(e):a(e,t))&&(dt=n)),dt._abbr}function a(e,t){return null!==t?(t.abbr=e,ht[e]=ht[e]||new n,ht[e].set(t),i(e),ht[e]):(delete ht[e],null)}function w(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dt;if(!o(e)){if(t=L(e))return t;e=[e]}return function(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=M(e[r]).split("-")).length,n=(n=M(e[r+1]))?n.split("-"):null;0<t;){if(i=L(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&g(a,n,!0)>=t-1)break;t--}r++}return null}(e)}function e(e,t){var n=e.toLowerCase();pt[n]=pt[n+"s"]=pt[t]=e}function k(e){return"string"==typeof e?pt[e]||pt[e.toLowerCase()]:void 0}function Y(e){var t,n,i={};for(n in e)v(e,n)&&((t=k(n))&&(i[t]=e[n]));return i}function t(t,n){return function(e){return null!=e?(D(this,t,e),y.updateOffset(this,n),this):T(this,t)}}function T(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function D(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function r(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if("function"==typeof this[e=k(e)])return this[e](t);return this}function S(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}function x(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(gt[e]=a),t&&(gt[t[0]]=function(){return S(a.apply(this,arguments),t[1],t[2])}),n&&(gt[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=H(t,e.localeData()),ft[t]=ft[t]||function(n){var i,a,e,r=n.match(mt);for(i=0,a=r.length;i<a;i++)gt[r[i]]?r[i]=gt[r[i]]:r[i]=(e=r[i]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var t="";for(i=0;i<a;i++)t+=r[i]instanceof Function?r[i].call(e,n):r[i];return t}}(t),ft[t](e)):e.localeData().invalidDate()}function H(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(_t.lastIndex=0;0<=i&&_t.test(e);)e=e.replace(_t,n),_t.lastIndex=0,i-=1;return e}
3233function C(e,t,n){var i;Ht[e]="function"==typeof(i=t)&&"[object Function]"===Object.prototype.toString.call(i)?t:function(e){return e&&n?n:t}}function E(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),"number"==typeof n&&(i=function(e,t){t[n]=f(e)}),t=0;t<e.length;t++)Ct[e[t]]=i}function A(e,a){E(e,function(e,t,n,i){n._w=n._w||{},a(e,n._w,n,i)})}function O(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function P(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(n=Math.min(e.date(),O(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e}function $(e){return null!=e?(P(this,e),y.updateOffset(this,!0),this):T(this,"Month")}function F(e){var t,n=e._a;return n&&-2===b(e).overflow&&(t=n[At]<0||11<n[At]?At:n[Ot]<1||n[Ot]>O(n[Et],n[At])?Ot:n[Pt]<0||24<n[Pt]||24===n[Pt]&&(0!==n[$t]||0!==n[Ft]||0!==n[Nt])?Pt:n[$t]<0||59<n[$t]?$t:n[Ft]<0||59<n[Ft]?Ft:n[Nt]<0||999<n[Nt]?Nt:-1,b(e)._overflowDayOfYear&&(t<Et||Ot<t)&&(t=Ot),b(e).overflow=t),e}function N(e){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function I(e,t){var n=!0;return d(function(){return n&&(N(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function W(e){var t,n,i=e._i,a=Rt.exec(i);if(a){for(b(e).iso=!0,t=0,n=Ut.length;t<n;t++)if(Ut[t][1].exec(i)){e._f=Ut[t][0];break}for(t=0,n=Jt.length;t<n;t++)if(Jt[t][1].exec(i)){e._f+=(a[6]||" ")+Jt[t][0];break}i.match(xt)&&(e._f+="Z"),B(e)}else e._isValid=!1}function z(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function R(e){return U(e)?366:365}function U(e){return e%4==0&&e%100!=0||e%400==0}function J(e,t,n){var i,a=n-t,r=n-e.day();return a<r&&(r-=7),r<a-7&&(r+=7),i=K(e).add(r,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function q(e,t,n){return null!=e?e:null!=t?t:n}function G(e){var t,n,i,a,r,s,o,l,d,u,c,h,p,m,_,f,g,y,v,M,L,w=[];if(!e._d){for(M=e,L=void 0,L=new Date,i=M._useUTC?[L.getUTCFullYear(),L.getUTCMonth(),L.getUTCDate()]:[L.getFullYear(),L.getMonth(),L.getDate()],e._w&&null==e._a[Ot]&&null==e._a[At]&&(v=y=g=f=_=m=p=h=c=u=d=l=o=s=void 0,null!=(s=(r=e)._w).GG||null!=s.W||null!=s.E?(u=1,c=4,o=q(s.GG,r._a[Et],J(K(),1,4).year),l=q(s.W,1),d=q(s.E,1)):(u=r._locale._week.dow,c=r._locale._week.doy,o=q(s.gg,r._a[Et],J(K(),u,c).year),l=q(s.w,1),null!=s.d?(d=s.d)<u&&++l:d=null!=s.e?s.e+u:u),m=l,_=d,(v=z(p=o,0,1+(y=6+(f=u)-c)).getUTCDay())<f&&(v+=7),h={year:0<(g=1+y+7*(m-1)-v+(_=null!=_?1*_:f))?p:p-1,dayOfYear:0<g?g:R(p-1)+g},r._a[Et]=h.year,r._dayOfYear=h.dayOfYear),e._dayOfYear&&(a=q(e._a[Et],i[Et]),e._dayOfYear>R(a)&&(b(e)._overflowDayOfYear=!0),n=z(a,0,e._dayOfYear),e._a[At]=n.getUTCMonth(),e._a[Ot]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=w[t]=i[t];for(;t<7;t++)e._a[t]=w[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Pt]&&0===e._a[$t]&&0===e._a[Ft]&&0===e._a[Nt]&&(e._nextDay=!0,e._a[Pt]=0),e._d=(e._useUTC?z:function(e,t,n,i,a,r,s){var o=new Date(e,t,n,i,a,r,s);return e<1970&&o.setFullYear(e),o}).apply(null,w),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Pt]=24)}}function B(e){if(e._f!==y.ISO_8601){e._a=[],b(e).empty=!0;var t,n,i,a,r,s,o,l,d,u,c,h,p,m,_=""+e._i,f=_.length,g=0;for(i=H(e._f,e._locale).match(mt)||[],t=0;t<i.length;t++)a=i[t],(n=(_.match((d=a,u=e,v(Ht,d)?Ht[d](u._strict,u._locale):new RegExp(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))))||[])[0])&&(0<(r=_.substr(0,_.indexOf(n))).length&&b(e).unusedInput.push(r),_=_.slice(_.indexOf(n)+n.length),g+=n.length),gt[a]?(n?b(e).empty=!1:b(e).unusedTokens.push(a),s=a,l=e,null!=(o=n)&&v(Ct,s)&&Ct[s](o,l._a,l,s)):e._strict&&!n&&b(e).unusedTokens.push(a);b(e).charsLeftOver=f-g,0<_.length&&b(e).unusedInput.push(_),!0===b(e).bigHour&&e._a[Pt]<=12&&0<e._a[Pt]&&(b(e).bigHour=void 0),e._a[Pt]=(c=e._locale,h=e._a[Pt],null==(p=e._meridiem)?h:null!=c.meridiemHour?c.meridiemHour(h,p):(null!=c.isPM&&((m=c.isPM(p))&&h<12&&(h+=12),m||12!==h||(h=0)),h)),G(e),F(e)}else W(e)}function V(e){var t,n,i,a,r=e._i,s=e._f;return e._locale=e._locale||w(e._l),null===r||void 0===s&&""===r?c({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),m(r)?new p(F(r)):(o(s)?function(e){var t,n,i,a,r;if(0===e._f.length)return b(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<e._f.length;a++)r=0,t=h({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],B(t),u(t)&&(r+=b(t).charsLeftOver,r+=10*b(t).unusedTokens.length,b(t).score=r,(null==i||r<i)&&(i=r,n=t));d(e,n||t)}(e):s?B(e):l(r)?e._d=r:void 0===(n=(t=e)._i)?t._d=new Date:l(n)?t._d=new Date(+n):"string"==typeof n?(i=t,null!==(a=qt.exec(i._i))?i._d=new Date(+a[1]):(W(i),!1===i._isValid&&
3233(delete i._isValid,y.createFromInputFallback(i)))):o(n)?(t._a=function(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}(n.slice(0),function(e){return parseInt(e,10)}),G(t)):"object"==typeof n?function(e){if(!e._d){var t=Y(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],G(e)}}(t):"number"==typeof n?t._d=new Date(n):y.createFromInputFallback(t),e))}function X(e,t,n,i,a){var r,s={};return"boolean"==typeof n&&(i=n,n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=e,s._f=t,s._strict=i,(r=new p(F(V(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function K(e,t,n,i){return X(e,t,n,i,!1)}function Q(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return K();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function Z(e){var t=Y(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||0,s=t.day||0,o=t.hour||0,l=t.minute||0,d=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*d+6e4*l+36e5*o,this._days=+s+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=w(),this._bubble()}function ee(e){return e instanceof Z}function te(e,n){x(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+S(~~(e/60),2)+n+S(~~e%60,2)})}function ne(e){var t=(e||"").match(xt)||[],n=((t[t.length-1]||[])+"").match(Xt)||["-",0,0],i=60*n[1]+f(n[2]);return"+"===n[0]?i:-i}function ie(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(m(e)||l(e)?+e:+K(e))-+n,n._d.setTime(+n._d+i),y.updateOffset(n,!1),n):K(e).local()}function ae(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function re(){return this._isUTC&&0===this._offset}function se(e,t){var n,i,a,r,s,o,l=e,d=null;return ee(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(l={},t?l[t]=e:l.milliseconds=e):(d=Kt.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:f(d[Ot])*n,h:f(d[Pt])*n,m:f(d[$t])*n,s:f(d[Ft])*n,ms:f(d[Nt])*n}):(d=Qt.exec(e))?(n="-"===d[1]?-1:1,l={y:oe(d[2],n),M:oe(d[3],n),d:oe(d[4],n),h:oe(d[5],n),m:oe(d[6],n),s:oe(d[7],n),w:oe(d[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(r=K(l.from),s=ie(s=K(l.to),r),r.isBefore(s)?o=le(r,s):((o=le(s,r)).milliseconds=-o.milliseconds,o.months=-o.months),(l={}).ms=(a=o).milliseconds,l.M=a.months),i=new Z(l),ee(e)&&v(e,"_locale")&&(i._locale=e._locale),i}function oe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function le(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function de(r,s){return function(e,t){var n,i,a;return null===t||isNaN(+t)||(a="moment()."+(i=s)+"(period, number) is deprecated. Please use moment()."+s+"(number, period).",zt[i]||(N(a),zt[i]=!0),n=e,e=t,t=n),ue(this,se(e="string"==typeof e?+e:e,t),r),this}}function ue(e,t,n,i){var a=t._milliseconds,r=t._days,s=t._months;i=null==i||i,a&&e._d.setTime(+e._d+a*n),r&&D(e,"Date",T(e,"Date")+r*n),s&&P(e,T(e,"Month")+s*n),i&&y.updateOffset(e,r||s)}function ce(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():j(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):j(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function he(e){var t;return void 0===e?this._locale._abbr:(null!=(t=w(e))&&(this._locale=t),this)}function pe(){return this._locale}function me(e,t){x(0,[e,e.length],0,t)}function _e(e,t,n){return J(K([e,11,31+t-n]),t,n).week}function fe(e,t){x(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ge(e,t){return t._meridiemParse}function ye(e,t){t[Nt]=f(1e3*("0."+e))}function ve(e){return e}function Me(e,t,n,i){var a=w(),r=s().set(i,t);return a[n](r,e)}function Le(e,t,n,i,a){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Me(e,t,n,a);var r,s=[];for(r=0;r<i;r++)s[r]=Me(e,r,n,a);return s}function we(e,t,n,i){var a=se(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function be(e){return e<0?Math.floor(e):Math.ceil(e)}function ke(e){return 4800*e/146097}function Ye(e){return 146097*e/4800}function Te(e){return function(){return this.as(e)}}function De(e){return function(){return this._data[e]}}function Se(){var e,t,n=En(this._milliseconds)/1e3,i=En(this._days),a=En(this._months);t=_((e=_(n/60))/60),n%=60,e%=60;var r=_(a/12),s=a%=12,o=i,l=t,d=e,u=n,c=this.asSeconds();return c?(c<0?"-":"")+"P"+(r?r+"Y":"")+(s?s+"M":"")+(o?o+"D":"")+(l||d||u?"T":"")+(l?l+"H":"")+(d?d+"M":"")+(u?u+"S":""):"P0D"}function xe(e,t,n){var i,a;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,a={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?a[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?a[1]:a[2])}function je(e,t,n){var i,a,r;return e+" "+(i={mm:"munutenn",MM:"miz",dd:"devezh"}[n],2===e?void 0===(r={m:"v",b:"v",d:"z"})[(a=i).charAt(0)]?a:r[a.charAt(0)]+a.substring(1):i)}function He(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}function Ce(e){return 1<e&&e<5&&1!=~~(e/10)}function Ee(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?a+(Ce(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(Ce(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?a+(Ce(e)?"dny":"dní"):a+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?a+(Ce(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?a+(Ce(e)?"roky":"let"):a+"lety"}}function Ae(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}function Oe(e,t,n,i){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}function Pe(e,t,n,i){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:i?a[n][0]:a[n][1]}function $e(e,t,n,i){var a,r,s="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"m":return i?"minuutin":"minuutti";case"mm":s=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":s=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":s=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":s=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":s=i?"vuoden":"vuotta"}return r=i,((a=e)<10?r?ni[a]:ti[a]:a)+" "+s}function Fe(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}function Ne(e,t,n,i){var a=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return a+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return a+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return a+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return a+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return a+(i||t?" év":" éve")}return""}function Ie(e){return(e?"":"[múlt] ")+"["+oi[this.day()]+"] LT[-kor]"}function We(e){return e%100==11||e%10!=1}function ze(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nokkrar sekúndur":"nokkrum sekúndum";
3233case"m":return t?"mínúta":"mínútu";case"mm":return We(e)?a+(t||i?"mínútur":"mínútum"):t?a+"mínúta":a+"mínútu";case"hh":return We(e)?a+(t||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return t?"dagur":i?"dag":"degi";case"dd":return We(e)?t?a+"dagar":a+(i?"daga":"dögum"):t?a+"dagur":a+(i?"dag":"degi");case"M":return t?"mánuður":i?"mánuð":"mánuði";case"MM":return We(e)?t?a+"mánuðir":a+(i?"mánuði":"mánuðum"):t?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return t||i?"ár":"ári";case"yy":return We(e)?a+(t||i?"ár":"árum"):a+(t||i?"ár":"ári")}}function Re(e,t,n,i){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function Ue(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return Ue(0===t?e/10:t)}if(e<1e4){for(;10<=e;)e/=10;return Ue(e)}return Ue(e/=1e3)}function Je(e,t,n,i){return t?Ge(n)[0]:i?Ge(n)[1]:Ge(n)[2]}function qe(e){return e%10==0||10<e&&e<20}function Ge(e){return li[e].split("_")}function Be(e,t,n,i){var a=e+" ";return 1===e?a+Je(0,t,n[0],i):t?a+(qe(e)?Ge(n)[1]:Ge(n)[0]):i?a+Ge(n)[1]:a+(qe(e)?Ge(n)[1]:Ge(n)[2])}function Ve(e,t,n){return n?t%10==1&&11!==t?e[2]:e[3]:t%10==1&&11!==t?e[0]:e[1]}function Xe(e,t,n){return e+" "+Ve(ui[n],e,t)}function Ke(e,t,n){return Ve(ui[n],e,t)}function Qe(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function Ze(e,t,n){var i=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return i+(Qe(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(Qe(e)?"godziny":"godzin");case"MM":return i+(Qe(e)?"miesiące":"miesięcy");case"yy":return i+(Qe(e)?"lata":"lat")}}function et(e,t,n){var i=" ";return(20<=e%100||100<=e&&e%100==0)&&(i=" de "),e+i+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}function tt(e,t,n){var i,a;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?a[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?a[1]:a[2])}function nt(e){return 1<e&&e<5}function it(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(nt(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(nt(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(nt(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(nt(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(nt(e)?"roky":"rokov"):a+"rokmi"}}function at(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return a+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return a+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return a+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return a+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}function rt(e,t,n,i){var a={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts"," "+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras"," "+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas"," "+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen"," "+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars"," "+e+" ars"]};return i?a[n][0]:t?a[n][0]:a[n][1].trim()}function st(e,t,n){var i,a;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,a={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?a[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?a[1]:a[2])}function ot(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var lt,dt,ut=y.momentProperties=[],ct=!1,ht={},pt={},mt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}
3233|x|X|zz?|ZZ?|.)/g,_t=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ft={},gt={},yt=/\d/,vt=/\d\d/,Mt=/\d{3}/,Lt=/\d{4}/,wt=/[+-]?\d{6}/,bt=/\d\d?/,kt=/\d{1,3}/,Yt=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,Dt=/\d+/,St=/[+-]?\d+/,xt=/Z|[+-]\d\d:?\d\d/gi,jt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ht={},Ct={},Et=0,At=1,Ot=2,Pt=3,$t=4,Ft=5,Nt=6;x("M",["MM",2],"Mo",function(){return this.month()+1}),x("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),x("MMMM",0,0,function(e){return this.localeData().months(this,e)}),e("month","M"),C("M",bt),C("MM",bt,vt),C("MMM",jt),C("MMMM",jt),E(["M","MM"],function(e,t){t[At]=f(e)-1}),E(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[At]=a:b(n).invalidMonth=e});var It="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),zt={};y.suppressDeprecationWarnings=!1;var Rt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ut=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Jt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],qt=/^\/?Date\((\-?\d+)/i;y.createFromInputFallback=I("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),x(0,["YY",2],0,function(){return this.year()%100}),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),e("year","y"),C("Y",St),C("YY",bt,vt),C("YYYY",Yt,Lt),C("YYYYY",Tt,wt),C("YYYYYY",Tt,wt),E(["YYYYY","YYYYYY"],Et),E("YYYY",function(e,t){t[Et]=2===e.length?y.parseTwoDigitYear(e):f(e)}),E("YY",function(e,t){t[Et]=y.parseTwoDigitYear(e)});var Gt=t("FullYear",!(y.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)}));x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),C("w",bt),C("ww",bt,vt),C("W",bt),C("WW",bt,vt),A(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=f(e)});x("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),C("DDD",kt),C("DDDD",Mt),E(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),y.ISO_8601=function(){};var Bt=I("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=K.apply(null,arguments);return e<this?this:e}),Vt=I("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=K.apply(null,arguments);return this<e?this:e});te("Z",":"),te("ZZ",""),C("Z",xt),C("ZZ",xt),E(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ne(e)});var Xt=/([\+\-]|\d\d)/gi;y.updateOffset=function(){};var Kt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Qt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;se.fn=Z.prototype;var Zt=de(1,"add"),en=de(-1,"subtract");y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var tn=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});x(0,["gg",2],0,function(){return this.weekYear()%100}),x(0,["GG",2],0,function(){return this.isoWeekYear()%100}),me("gggg","weekYear"),me("ggggg","weekYear"),me("GGGG","isoWeekYear"),me("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),C("G",St),C("g",St),C("GG",bt,vt),C("gg",bt,vt),C("GGGG",Yt,Lt),C("gggg",Yt,Lt),C("GGGGG",Tt,wt),C("ggggg",Tt,wt),A(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=f(e)}),A(["gg","GG"],function(e,t,n,i){t[i]=y.parseTwoDigitYear(e)}),x("Q",0,0,"quarter"),e("quarter","Q"),C("Q",yt),E("Q",function(e,t){t[At]=3*(f(e)-1)}),x("D",["DD",2],"Do","date"),e("date","D"),C("D",bt),C("DD",bt,vt),C("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),E(["D","DD"],Ot),E("Do",function(e,t){t[Ot]=f(e.match(bt)[0])});var nn=t("Date",!0);x("d",0,"do","day"),x("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),x("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),x("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),C("d",bt),C("e",bt),C("E",bt),C("dd",jt),C("ddd",jt),C("dddd",jt),A(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:b(n).invalidWeekday=e}),A(["d","e","E"],function(e,t,n,i){t[i]=f(e)});var an="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sn="Su_Mo_Tu_We_Th_Fr_Sa".split("_");x("H",["HH",2],0,"hour"),x("h",["hh",2],0,function(){return this.hours()%12||12}),fe("a",!0),fe("A",!1),e("hour","h"),C("a",ge),C("A",ge),C("H",bt),C("h",bt),C("HH",bt,vt),C("hh",bt,vt),E(["H","HH"],Pt),E(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),E(["h","hh"],function(e,t,n){t[Pt]=f(e),b(n).bigHour=!0});var on=t("Hours",!0);x("m",["mm",2],0,"minute"),e("minute","m"),C("m",bt),C("mm",bt,vt),E(["m","mm"],$t);var ln=t("Minutes",!1);x("s",["ss",2],0,"second"),e("second","s"),C("s",bt),C("ss",bt,vt),E(["s","ss"],Ft);var dn,un=t("Seconds",!1);for(x("S",0,0,function(){return~~(this.millisecond()/100)}),x(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,function(){return 10*this.millisecond()}),x(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),x(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),x(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),x(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),x(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),C("S",kt,yt),C("SS",kt,vt),C("SSS",kt,Mt),dn="SSSS";dn.length<=9;dn+="S")C(dn,Dt);for(dn="S";dn.length<=9;dn+="S")E(dn,ye);var cn=t("Milliseconds",!1);x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var hn=p.prototype;hn.add=Zt,hn.calendar=function(e,t){var n=e||K(),i=ie(n,this).startOf("day"),a=this.diff(i,"days",!0),r=a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<
32337?"nextWeek":"sameElse";return this.format(t&&t[r]||this.localeData().calendar(r,this,K(n)))},hn.clone=function(){return new p(this)},hn.diff=function(e,t,n){var i,a,r,s,o,l,d,u,c=ie(e,this),h=6e4*(c.utcOffset()-this.utcOffset());return"year"===(t=k(t))||"month"===t||"quarter"===t?(r=this,d=12*((s=c).year()-r.year())+(s.month()-r.month()),u=r.clone().add(d,"months"),l=s-u<0?(o=r.clone().add(d-1,"months"),(s-u)/(u-o)):(o=r.clone().add(d+1,"months"),(s-u)/(o-u)),a=-(d+l),"quarter"===t?a/=3:"year"===t&&(a/=12)):(i=this-c,a="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-h)/864e5:"week"===t?(i-h)/6048e5:i),n?a:_(a)},hn.endOf=function(e){return void 0===(e=k(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},hn.format=function(e){var t=j(this,e||y.defaultFormat);return this.localeData().postformat(t)},hn.from=function(e,t){return this.isValid()?se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.fromNow=function(e){return this.from(K(),e)},hn.to=function(e,t){return this.isValid()?se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},hn.toNow=function(e){return this.to(K(),e)},hn.get=r,hn.invalidAt=function(){return b(this).overflow},hn.isAfter=function(e,t){return"millisecond"===(t=k(void 0!==t?t:"millisecond"))?+(e=m(e)?e:K(e))<+this:(m(e)?+e:+K(e))<+this.clone().startOf(t)},hn.isBefore=function(e,t){var n;return"millisecond"===(t=k(void 0!==t?t:"millisecond"))?+this<+(e=m(e)?e:K(e)):(n=m(e)?+e:+K(e),+this.clone().endOf(t)<n)},hn.isBetween=function(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)},hn.isSame=function(e,t){var n;return"millisecond"===(t=k(t||"millisecond"))?+this==+(e=m(e)?e:K(e)):(n=+K(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},hn.isValid=function(){return u(this)},hn.lang=tn,hn.locale=he,hn.localeData=pe,hn.max=Vt,hn.min=Bt,hn.parsingFlags=function(){return d({},b(this))},hn.set=r,hn.startOf=function(e){switch(e=k(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},hn.subtract=en,hn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},hn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},hn.toDate=function(){return this._offset?new Date(+this):this._d},hn.toISOString=ce,hn.toJSON=ce,hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(+this/1e3)},hn.valueOf=function(){return+this._d-6e4*(this._offset||0)},hn.year=Gt,hn.isLeapYear=function(){return U(this.year())},hn.weekYear=function(e){var t=J(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},hn.isoWeekYear=function(e){var t=J(this,1,4).year;return null==e?t:this.add(e-t,"y")},hn.quarter=hn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},hn.month=$,hn.daysInMonth=function(){return O(this.year(),this.month())},hn.week=hn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},hn.isoWeek=hn.isoWeeks=function(e){var t=J(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},hn.weeksInYear=function(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)},hn.isoWeeksInYear=function(){return _e(this.year(),1,4)},hn.date=nn,hn.day=hn.days=function(e){var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},hn.weekday=function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},hn.isoWeekday=function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},hn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},hn.hour=hn.hours=on,hn.minute=hn.minutes=ln,hn.second=hn.seconds=un,hn.millisecond=hn.milliseconds=cn,hn.utcOffset=function(e,t){var n,i=this._offset||0;return null!=e?("string"==typeof e&&(e=ne(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(n=ae(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?ue(this,se(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:ae(this)},hn.utc=function(e){return this.utcOffset(0,e)},hn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ae(this),"m")),this},hn.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ne(this._i)),this},hn.hasAlignedHourOffset=function(e){return e=e?K(e).utcOffset():0,(this.utcOffset()-e)%60==0},hn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(h(e,this),(e=V(e))._a){var t=e._isUTC?s(e._a):K(e._a);this._isDSTShifted=this.isValid()&&0<g(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted},hn.isLocal=function(){return!this._isUTC},hn.isUtcOffset=function(){return this._isUTC},hn.isUtc=re,hn.isUTC=re,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=I("dates accessor is deprecated. Use date instead.",nn),hn.months=I("months accessor is deprecated. Use month instead",$),hn.years=I("years accessor is deprecated. Use year instead",Gt),hn.zone=I("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var pn=hn,mn=n.prototype;mn._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},mn.calendar=function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i},mn._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn._invalidDate="Invalid date",mn.invalidDate=function(){return this._invalidDate},mn._ordinal="%d",mn.ordinal=function(e){return this._ordinal.replace("%d",e)},mn._ordinalParse=/\d{1,2}/,mn.preparse=ve,mn.postformat=ve,mn._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},mn.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return"function"==typeof a?a(e,t,n,i):a.replace(/%d/i,e)},mn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},mn.set=function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},mn.months=function(e){return this._months[e.month()]},mn._months=It,mn.monthsShort=function(e){return this._monthsShort[e.month()]},mn._monthsShort=Wt,mn.monthsParse=function(e,t,n){var i,a,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=s([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},mn.week=function(e){return J(e,this._week.dow,this._week.doy).week},mn._week={dow:0,doy:6},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e){return this._weekdays[e.day()]},mn._weekdays=an,mn.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},mn._weekdaysMin=sn,mn.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},mn._weekdaysShort=rn,mn.weekdaysParse=function(e){var t,n,i;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(n=K([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},mn._meridiemParse=/[ap]\.?m?\.?/i,mn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},i("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===f(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),y.lang=I("moment.lang is deprecated. Use moment.locale instead.",i),y.langData=I("moment.langData is deprecated. Use moment.localeData instead.",w);var _n=Math.abs,fn=Te("ms"),gn=Te("s"),yn=Te("m"),vn=Te("h"),Mn=Te("d"),Ln=Te("w"),wn=Te("M"),bn=Te("y"),kn=De("milliseconds"),Yn=De("seconds"),Tn=De("minutes"),Dn=De("hours"),Sn=De("days"),xn=De("months"),jn=De("years"),Hn=Math.round,Cn={s:45,m:45,h:22,d:26,M:11},En=Math.abs,An=Z.prototype;An.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},An.add=function(e,t){return we(this,e,t,1)},An.subtract=function(e,t){return we(this,e,t,-1)},An.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=k(e))||"year"===e)return t=this._days+i/864e5,n=this._months+ke(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Ye(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},An.asMilliseconds=fn,An.asSeconds=gn,An.asMinutes=yn,An.asHours=vn,An.asDays=Mn,An.asWeeks=Ln,An.asMonths=wn,An.asYears=bn,An.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12)},An._bubble=function(){var e,t,n,i,a,r=this._milliseconds,s=this._days,o=this._months,l=this._data;return 0<=r&&0<=s&&0<=o||r<=0&&s<=0&&o<=0||(r+=864e5*be(Ye(o)+s),o=s=0),l.milliseconds=r%1e3,e=_(r/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,n=_(t/60),l.hours=n%24,o+=a=_(ke(s+=_(n/24))),s-=be(Ye(a)),i=_(o/12),o%=12,l.days=s,l.months=o,l.years=i,this},An.get=function(e){return this[(e=k(e))+"s"]()},An.milliseconds=kn,An.seconds=Yn,An.minutes=Tn,An.hours=Dn,An.days=Sn,An.weeks=function(){return _(this.days()/7)},An.months=xn,An.years=jn,An.humanize=function(e){var t,n,i,a,r,s,o,l,d,u,c,h=this.localeData(),p=(n=!e,i=h,a=se(t=this).abs(),r=Hn(a.as("s")),s=Hn(a.as("m")),o=Hn(a.as("h")),l=Hn(a.as("d")),d=Hn(a.as("M")),u=Hn(a.as("y")),(c=r<Cn.s&&["s",r]||1===s&&["m"]||s<Cn.m&&["mm",s]||1===o&&["h"]||o<Cn.h&&["hh",o]||1===l&&["d"]||l<Cn.d&&["dd",l]||1===d&&["M"]||d<Cn.M&&["MM",d]||1===u&&["y"]||["yy",u])[2]=n,c[3]=0<+t,c[4]=i,function(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}.apply(null,c));return e&&(p=h.pastFuture(+this,p)),h.postformat(p)},An.toISOString=Se,An.toString=Se,An.toJSON=Se,An.locale=he,An.localeData=pe,An.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Se),An.lang=tn,x("X",0,0,"unix"),x("x",0,0,"valueOf"),C("x",St),C("X",/[+-]?\d+(\.\d{1,3})?/),E("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),E("x",function(e,t,n){n._d=new Date(f(e))}),y.version="2.10.6",lt=K,y.fn=pn,y.min=function(){return Q("isBefore",[].slice.call(arguments,0))},y.max=function(){return Q("isAfter",[].slice.call(arguments,0))},y.utc=s,y.unix=function(e){return K(1e3*e)},y.months=function(e,t){return Le(e,t,"months",12,"month")},y.isDate=l,y.locale=i,y.invalid=c,y.duration=se,y.isMoment=m,y.weekdays=function(e,t){return Le(e,t,"weekdays",7,"day")},y.parseZone=function(){return K.apply(null,arguments).parseZone()},y.localeData=w,y.isDuration=ee,y.monthsShort=function(e,t){return Le(e,t,"monthsShort",12,"month")},y.weekdaysMin=function(e,t){return Le(e,t,"weekdaysMin",7,"day")},y.defineLocale=a,y.weekdaysShort=function(e,t){return Le(e,t,"weekdaysShort",7,"day")},y.normalizeUnits=k,y.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,!0))};var On=y,Pn=(On.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),On.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_ن_Ø«_ر_Ø®_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "}),$n={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},Fn=(On.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الØ
3233®Ù…يس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_ن_Ø«_ر_Ø®_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return $n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Pn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),On.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_ن_Ø«_ر_Ø®_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "}),Nn={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},In=function(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5},Wn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},zn=function(s){return function(e,t,n,i){var a=In(e),r=Wn[s][In(e)];return 2===a&&(r=r[t?0:1]),r.replace(/%d/i,e)}},Rn=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],Un=(On.defineLocale("ar",{months:Rn,monthsShort:Rn,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"Ø­_ن_Ø«_ر_Ø®_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:zn("s"),m:zn("m"),mm:zn("m"),h:zn("h"),hh:zn("h"),d:zn("d"),dd:zn("d"),M:zn("M"),MM:zn("M"),y:zn("y"),yy:zn("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return Nn[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Fn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),Jn=(On.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(Un[t]||Un[e%100-t]||Un[100<=e?100:null])},week:{dow:1,doy:7}}),On.defineLocale("be",{months:function(e,t){return{nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:function(e,t){return{nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")}[/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"}
vendor: 6,867 bytes, line 3233
3233,calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:xe,mm:xe,h:xe,hh:xe,d:"дзень",dd:xe,M:"месяц",MM:xe,y:"год",yy:xe},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),On.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":10<n&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),qn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},Gn=(On.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return qn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Jn[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকেল|রাত/,isPM:function(e){return/^(দুপুর|বিকেল|রাত)$/.test(e)},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকেল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),Bn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},Vn=(On.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%
3233d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return Bn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Gn[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(e){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(e)},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),On.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:je,h:"un eur",hh:"%d eur",d:"un devezh",dd:je,M:"ur miz",MM:je,y:"ur bloaz",yy:function(e){switch(function e(t){return 9<t?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),On.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:He,mm:He,h:He,hh:He,d:"dan",dd:He,M:"mjesec",MM:He,y:"godinu",yy:He},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),On.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}}),"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_")),Xn="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Kn=(On.defineLocale("cs",{months:Vn,monthsShort:Xn,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(Vn,Xn),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Ee,m:Ee,mm:Ee,h:Ee,hh:Ee,d:Ee,dd:Ee,M:Ee,MM:Ee,y:Ee,yy:Ee},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
3233d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),On.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return 20<e?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":0<e&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),On.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:Ae,mm:"%d Minuten",h:Ae,hh:"%d Stunden",d:Ae,dd:Ae,M:Ae,MM:Ae,y:Ae,yy:Ae},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:Oe,mm:"%d Minuten",h:Oe,hh:"%d Stunden",d:Oe,dd:Oe,M:Oe,MM:Oe,y:Oe,yy:Oe},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return 11<e?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LT
vendor: 4,672 bytes, line 3233
3233S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],i=t&&t.hours();return"function"==typeof n&&(n=n.apply(t)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),On.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),On.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY h:mm A",LLLL:"dddd, D MMMM, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),On.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),On.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return 11<e?n?"p.t.m.":"P.T.M.":n?"a.t.m."
vendor: 5,162 bytes, line 3233
3233:"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}),"Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_")),Qn="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_"),Zn=(On.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?Qn[e.month()]:Kn[e.month()]},weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),On.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:Pe,m:Pe,mm:Pe,h:Pe,hh:Pe,d:Pe,dd:"%d päeva",M:Pe,MM:Pe,y:Pe,yy:Pe},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"}),ei={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},ti=(On.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%
3233d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return ei[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Zn[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),ni=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ti[7],ti[8],ti[9]],ii=(On.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:$e,m:$e,mm:$e,h:$e,hh:$e,d:$e,dd:$e,M:$e,MM:$e,y:$e,yy:$e},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}}),On.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),ai="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),ri=(On.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?ai[e.month()]:ii[e.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),On.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%
3233d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}}),On.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),si={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},oi=(On.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return si[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ri[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),On.defineLocale("hr",{months:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:Fe,mm:Fe,h:Fe,hh:Fe,d:"dan",dd:Fe,M:"mjesec",MM:Fe,y:"godinu",yy:Fe},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ")),li=(On.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Ie.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Ie.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Ne,m:Ne,mm:Ne,h:Ne,hh:Ne,d:Ne,dd:Ne,M:Ne,MM:Ne,y:Ne,yy:Ne},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),On.defineLocale("hy-am",{months:function(e,t){return{nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:function(e,t){return"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_")[e.month()]},weekdays:function(e,t){return"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_")[e.day()]},weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),On.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),On.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:ze,m:ze,mm:ze,h:"klukkustund",hh:ze,d:ze,dd:ze,M:ze,MM:ze,y:ze,yy:ze},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
3233d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),On.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),On.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?11<=e?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),On.defineLocale("ka",{months:function(e,t){return{nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")}[/D[oD] *MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:function(e,t){return{nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")}[/(წინა|შემდეგ)/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}}),On.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
3233,calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}}),On.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}}),On.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return Ue(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return Ue(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:Re,mm:"%d Minutten",h:Re,hh:"%d Stonnen",d:Re,dd:"%d Deeg",M:Re,MM:"%d Méint",y:Re,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"}),di="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),ui=(On.defineLocale("lt",{months:function(e,t){return{nominative:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),accusative:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:function(e,t){var n=-1===t.indexOf("dddd HH:mm"),i=di[e.day()];return n?i:i.substring(0,i.length-2)+"į"},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},m:Je,mm:Be,h:Je,hh:Be,d:Je,dd:Be,M:Je,MM:Be,y:Je,yy:Be},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}}),{m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_die
3233nām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")}),ci=(On.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},m:Ke,mm:Xe,h:Ke,hh:Xe,d:Ke,dd:Xe,M:Ke,MM:Xe,y:Ke,yy:Xe},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=ci.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+ci.correctGrammaticalCase(e,i)}}),hi=(On.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:ci.translate,mm:ci.translate,h:ci.translate,hh:ci.translate,d:"dan",dd:ci.translate,M:"mjesec",MM:ci.translate,y:"godinu",yy:ci.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),On.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
3233d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":10<n&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),On.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_à´¶".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(e){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(e)},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),pi={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},mi=(On.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return pi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return hi[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"राà
3233¤¤à¥à¤°à¥€"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?10<=e?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),On.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),On.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),{1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"}),_i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},fi=(On.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနညá€
3233ºá€¸á€„ယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return _i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return mi[e]})},week:{dow:1,doy:4}}),On.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"H.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H.mm",LLLL:"dddd D. MMMM YYYY [kl.] H.mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),gi={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},yi=(On.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return gi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return fi[e]})},meridiemParse:/राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<3?e:e+12:"बिहान"===t?e:"दिउँसो"===t?10<=e?e:e+12:"बेलुका"===t||"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राती":e<10?"बिहान":e<15?"दिउँसो":e<18?"बेलुका":e<20?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),vi="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Mi=(On.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?vi[e.month()]:yi[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),On.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mÃ¥n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_mÃ¥_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I gÃ¥r klokka] LT",lastWeek:"[FøregÃ¥ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein mÃ¥nad",MM:"%d mÃ¥nader",y:"eit Ã¥r",yy:"%d Ã¥r"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}
3233),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),Li="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),wi=(On.defineLocale("pl",{months:function(e,t){return""===t?"("+Li[e.month()]+"|"+Mi[e.month()]+")":/D MMMM/.test(t)?Li[e.month()]:Mi[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:Ze,mm:Ze,h:Ze,hh:Ze,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:Ze,y:"rok",yy:Ze},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),On.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),On.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:et,h:"o oră",hh:et,d:"o zi",dd:et,M:"o lună",MM:et,y:"un an",yy:et},week:{dow:1,doy:7}}),On.defineLocale("ru",{months:function(e,t){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:function(e,t){return{nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},weekdays:function(e,t){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";
vendor: 11,175 bytes, line 3233
3233case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:tt,mm:tt,h:"час",hh:tt,d:"день",dd:tt,M:"месяц",MM:tt,y:"год",yy:tt},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}}),On.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiem:function(e,t,n){return 11<e?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),bi="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),ki=(On.defineLocale("sk",{months:wi,monthsShort:bi,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(wi,bi),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:at,m:at,mm:at,h:at,hh:at,d:at,dd:at,M:at,MM:at,y:at,yy:at},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),On.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=ki.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+ki.correctGrammaticalCase(e,i)}}),Yi=(On.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:ki.translate,mm:ki.translate,h:ki.translate,hh:ki.translate,d:"дан",dd:ki.translate,M:"месец",MM:ki.translate,y:"годину",yy:ki.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,n){var i=Yi.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+Yi.correctGrammaticalCase(e,i)}}),Ti=(On.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:Yi.translate,mm:Yi.translate,h:Yi.translate,hh:Yi.translate,d:"dan",dd:Yi.translate,M:"mesec",MM:Yi.translate,y:"godinu",yy:Yi.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),On.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),On.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்ப
3233ர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&10<=e?e:e+12},week:{dow:0,doy:6}}),On.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),On.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
3233d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),{1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"}),Di=(On.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var t=e%10;return e+(Ti[t]||Ti[e%100-t]||Ti[100<=e?100:null])},week:{dow:1,doy:7}}),On.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY LT",LLLL:"dddd, [li] D. MMMM [dallas] YYYY LT"},meridiem:function(e,t,n){return 11<e?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),On.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibr
3233ir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),On.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),On.defineLocale("uk",{months:function(e,t){return{nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")}[/D[oD]? *MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:ot("[Сьогодні "),nextDay:ot("[Завтра "),lastDay:ot("[Вчора "),nextWeek:ot("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 
32336:return ot("[Минулої] dddd [").call(this);case 1:case 2:case 4:return ot("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:st,mm:st,h:"годину",hh:st,d:"день",dd:st,M:"місяць",MM:st,y:"рік",yy:st},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}}),On.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),On.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),On.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:11<=e?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,t;return e=On().startOf("week"),t=604800<=this.unix()-e.unix()?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var e,t;return e=On().startOf("week"),t=this.unix()<e.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),On.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%
3233d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}}),On);return Di.locale("en"),Di}),define("mockup-patterns-moment",["jquery","pat-base","moment","mockup-i18n"],function(i,e,a,r){return e.extend({name:"moment",trigger:".pat-moment",parser:"mockup",moment_i18n_map:{no:"nb"},defaults:{selector:null,format:"LLL",setTitle:!1},convert:function(e){var t=e.attr("data-date");if(t||(t=i.trim(e.html())),t&&"None"!==t){var n=(new r).currentLanguage;n in this.moment_i18n_map&&(n=this.moment_i18n_map[n]),a.locale([n,"en"]),(t=a(t)).isValid()&&(this.options.setTitle&&e.attr("title",t.format("LLLL")),(t="relative"===this.options.format?t.fromNow():"calendar"===this.options.format?t.calendar():t.format(this.options.format))&&e.html(t))}},init:function(){var e=this;e.options.selector?e.$el.find(e.options.selector).each(function(){e.convert(i(this))}):e.convert(e.$el)}})}),function(e){define("bootstrap-dropdown",["jquery"],function(){return function(){!function(s){"use strict";var o='[data-toggle="dropdown"]',i=function(e){s(e).on("click.bs.dropdown",this.toggle)};function l(e){var t=e.attr("data-target");t||(t=(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var n=t&&s(t);return n&&n.length?n:e.parent()}function r(i){i&&3===i.which||(s(".dropdown-backdrop").remove(),s(o).each(function(){var e=s(this),t=l(e),n={relatedTarget:this};t.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&s.contains(t[0],i.target)||(t.trigger(i=s.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(s.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.3.6",i.prototype.toggle=function(e){var t=s(this);if(!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",r);var a={relatedTarget:this};if(n.trigger(e=s.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(s.Event("shown.bs.dropdown",a))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=s(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(!i&&27!=e.which||i&&27==e.which)return 27==e.which&&n.find(o).trigger("focus"),t.trigger("click");var a=n.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var r=a.index(e.target);38==e.which&&0<r&&r--,40==e.which&&r<a.length-1&&r++,~r||(r=0),a.eq(r).trigger("focus")}}}};var e=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var e=s(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=e,this},s(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,i.prototype.toggle).on("keydown.bs.dropdown.data-api",o,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery)}.apply(e,arguments)})}(this),function(e){define("bootstrap-collapse",["jquery"],function(){return function(){return function(s){"use strict";var o=function(e,t){this.$element=s(e),this.options=s.extend({},o.DEFAULTS,t),this.$trigger=s('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function a(e){var t,n=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return s(n)}function l(i){return this.each(function(){var e=s(this),t=e.data("bs.collapse"),n=s.extend({},o.DEFAULTS,e.data(),"object"==typeof i&&i);!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||e.data("bs.collapse",t=new o(this,n)),"string"==typeof i&&t[i]()})}o.VERSION="3.3.6",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"))&&e.transitioning)){var n=s.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){t&&t.length&&(l.call(t,"hide"),e||t.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return a.call(this);var r=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[i](this.$element[0][r])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=s.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!s.support.transition)return n.call(this);this.$element[t](0).one("bsTransitionEnd",s.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return s(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(e,t){var n=s(t);this.addAriaAndCollapsedClass(a(n),n)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=s.fn.collapse;s.fn.collapse=l,s.fn.collapse.Constructor=o,s.fn.collapse.noConflict=function(){return s.fn.collapse=e,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=s(this);t.attr("data-target")||e.preventDefault();var n=a(t),i=n.data("bs.collapse")?"toggle":t.data();l.call(n,i)})}(jQuery),window.jQuery.fn.collapse.Constructor}.apply(e,arguments)})}(this),function(e){define("bootstrap-tooltip",["jquery"],function(){return function(){!function(_){"use strict";var f=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};f.VERSION="3.3.6",f.TRANSITION_DURATION=150,f.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},f.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=_(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&_(_.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),a=i.length;a--;){var r=i[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,_.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",o="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,_.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,_.proxy(this.leave,this))}}this.options.selector?this._options=_.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(e){return(e=_.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},f.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&_.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},f.prototype.enter=function(e){var t=e instanceof this.constructor?e:_(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),_(e.currentTarget).data("bs."+this.type,t)),e instanceof _.Event&&(t.inState["focusin"==e.type?"focu
3233s":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.prototype.leave=function(e){var t=e instanceof this.constructor?e:_(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),_(e.currentTarget).data("bs."+this.type,t)),e instanceof _.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},f.prototype.show=function(){var e=_.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=_.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),a=this.getUID(this.type);this.setContent(),i.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,o=s.test(r);o&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),d=i[0].offsetWidth,u=i[0].offsetHeight;if(o){var c=r,h=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>h.bottom?"top":"top"==r&&l.top-u<h.top?"bottom":"right"==r&&l.right+d>h.width?"left":"left"==r&&l.left-d<h.left?"right":r,i.removeClass(c).addClass(r)}var p=this.getCalculatedOffset(r,l,d,u);this.applyPlacement(p,r);var m=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};_.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",m).emulateTransitionEnd(f.TRANSITION_DURATION):m()}},f.prototype.applyPlacement=function(e,t){var n=this.tip(),i=n[0].offsetWidth,a=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),e.top+=r,e.left+=s,_.offset.setOffset(n[0],_.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),n.addClass("in");var o=n[0].offsetWidth,l=n[0].offsetHeight;"top"==t&&l!=a&&(e.top=e.top+a-l);var d=this.getViewportAdjustedDelta(t,e,o,l);d.left?e.left+=d.left:e.top+=d.top;var u=/top|bottom/.test(t),c=u?2*d.left-i+o:2*d.top-a+l,h=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(c,n[0][h],u)},f.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},f.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},f.prototype.hide=function(e){var t=this,n=_(this.$tip),i=_.Event("hide.bs."+this.type);function a(){"in"!=t.hoverState&&n.detach(),t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),_.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",a).emulateTransitionEnd(f.TRANSITION_DURATION):a(),this.hoverState=null,this},f.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},f.prototype.hasContent=function(){return this.getTitle()},f.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],n="BODY"==t.tagName,i=t.getBoundingClientRect();null==i.width&&(i=_.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var a=n?{top:0,left:0}:e.offset(),r={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},s=n?{width:_(window).width(),height:_(window).height()}:null;return _.extend({},i,r,s,a)},f.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},f.prototype.getViewportAdjustedDelta=function(e,t,n,i){var a={top:0,left:0};if(!this.$viewport)return a;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var o=t.top-r-s.scroll,l=t.top+r-s.scroll+i;o<s.top?a.top=s.top-o:l>s.top+s.height&&(a.top=s.top+s.height-l)}else{var d=t.left-r,u=t.left+r+n;
3233d<s.left?a.left=s.left-d:u>s.right&&(a.left=s.left+s.width-u)}return a},f.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},f.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=_(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.prototype.toggle=function(e){var t=this;e&&((t=_(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),_(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},f.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var e=_.fn.tooltip;_.fn.tooltip=function(i){return this.each(function(){var e=_(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.tooltip",t=new f(this,n)),"string"==typeof i&&t[i]())})},_.fn.tooltip.Constructor=f,_.fn.tooltip.noConflict=function(){return _.fn.tooltip=e,this}}(jQuery)}.apply(e,arguments)})}(this),window.jQuery&&define("jquery",[],function(){"use strict";return window.jQuery}),require(["jquery","pat-registry","mockup-patterns-base","mockup-patterns-select2","mockup-patterns-pickadate","mockup-patterns-autotoc","mockup-patterns-cookietrigger","mockup-patterns-formunloadalert","mockup-patterns-preventdoublesubmit","mockup-patterns-formautofocus","mockup-patterns-markspeciallinks","mockup-patterns-modal","mockup-patterns-livesearch","mockup-patterns-contentloader","mockup-patterns-moment","bootstrap-dropdown","bootstrap-collapse","bootstrap-tooltip"],function(a,e,t){"use strict";window.parent!==window&&"IFRAME"!==window.frameElement.nodeName||a(document).ready(function(){a("body").addClass("pat-plone"),e.initialized||e.init()}),a(document).ready(function(){!0!==("selected"===a("#form-widgets-use_cookie_negotiation > input").value)?a("#formfield-form-widgets-authenticated_users_only").hide():a("#formfield-form-widgets-authenticated_users_only").show()}),a(document).ready(function(){function e(e){var t=a("#form-widgets-highpixeldensity_scales option:selected").attr("value"),n=a('div[data-fieldname="form.widgets.quality_2x"]'),i=a('div[data-fieldname="form.widgets.quality_3x"]');"disabled"==t?(n.fadeOut(),i.fadeOut()):"2x"==t?(n.fadeIn(),i.fadeOut()):"3x"==t&&(n.fadeIn(),i.fadeIn())}a("#ImagingSettings")&&(a('div[data-fieldname="form.widgets.quality_2x"]').hide(),a('div[data-fieldname="form.widgets.quality_3x"]').hide(),e(),a("#form-widgets-highpixeldensity_scales").change(e))})}),define("/Users/esteele/projects/plone_5.1/src/Products.CMFPlone/Products/CMFPlone/static/plone.js",function(){});
3234//# sourceMappingURL=plone-compiled.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.