PageSourceSearch

https://www.associaciofenix.cat/++plone++production/++unique++2022-08-08T11:15:21.941239/default.js

js associaciofenix.cat collected 2026-10-04 21:23:54 UTC 607,891 bytes, 2,562 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.3 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.3',
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: 3,811 bytes, lines 43-174
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)) {
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 + '\nhttp
vendor: 80,785 bytes, lines 174-2151
174://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    "less": "++plone++static/components/less/dist/less", 
2157    "text": "++plone++static/components/requirejs-text/text", 
2158    "mockup-patterns-recurrence": "++resource++mockup/recurrence/pattern", 
2159    "mockup-patterns-tinymce": "++resource++mockup/tinymce/pattern", 
2160    "mockup-router": "++resource++mockupjs/router", 
2161    "mockup-patterns-relateditems-url": "++resource++mockup/relateditems", 
2162    "jquery.event.drop": "++resource++mockuplib/jquery.event.drop", 
2163    "tinymce-autosave": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autosave/plugin", 
2164    "tinymce-charmap": "++plone++static/components/tinymce-builded/js/tinymce/plugins/charmap/plugin", 
2165    "tinymce-save": "++plone++static/components/tinymce-builded/js/tinymce/plugins/save/plugin", 
2166    "tinymce-fullscreen": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullscreen/plugin", 
2167    "tinymce-noneditable": "++plone++static/components/tinymce-builded/js/tinymce/plugins/noneditable/plugin", 
2168    "ace-mode-javascript": "++plone++static/components/ace-builds/src/mode-javascript", 
2169    "resource-collective-polls-js-jquery-tasksplease-js": "++resource++collective.polls/js/jquery.tasksplease", 
2170    "tinymce-preview": "++plone++static/components/tinymce-builded/js/tinymce/plugins/preview/plugin", 
2171    "mockup-patterns-tree": "++resource++mockup/tree/pattern", 
2172    "tinymce-pagebreak": "++plone++static/components/tinymce-builded/js/tinymce/plugins/pagebreak/plugin", 
2173    "jquery.event.drag": "++resource++mockuplib/jquery.event.drag", 
2174    "mockup-patterns-formautofocus": "++resource++mockup/formautofocus/pattern", 
2175    "mockup-i18n": "++resource++mockupjs/i18n", 
2176    "underscore": "++plone++static/components/underscore/underscore", 
2177    "pat-logger": "++plone++static/components/patternslib/src/core/logger", 
2178    "ace-mode-text": "++plone++static/components/ace-builds/src/mode-text", 
2179    "backbone.paginator": "++plone++static/components/backbone.paginator/lib/backbone.paginator", 
2180    "jqtree": "++plone++static/components/jqtree/tree.jquery", 
2181    "tinymce-textcolor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textcolor/plugin", 
2182    "mockup-patterns-relateditems-upload": "++resource++mockup/relateditems/upload", 
2183    "tinymce-fullpage": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullpage/plugin", 
2184    "tinymce-compat3x": "++plone++static/components/tinymce-builded/js/tinymce/plugins/compat3x/plugin", 
2185    "pat-jquery-ext": "++plone++static/components/patternslib/src/core/jquery-ext", 
2186    "mockup-patterns-thememapper": "++resource++mockup/thememapper/pattern", 
2187    "mockup-patterns-filemanager-url": "++resource++mockup/filemanager", 
2188    "mockup-patterns-structureupdater": "++resource++mockup/structure/pattern-structureupdater", 
2189    "bootstrap-transition": "++plone++static/components/bootstrap/js/transition", 
2190    "picker.time": "++plone++static/components/pickadate/lib/picker.time", 
2191    "tinymce-spellchecker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/spellchecker/plugin", 
2192    "mockup-patterns-tinymce-url": "++resource++mockup/tinymce", 
2193    "mockup-patterns-preventdoublesubmit": "++resource++mockup/preventdoublesubmit/pattern", 
2194    "tinymce-visualchars": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualchars/plugin", 
2195    "expect": "++plone++static/components/expect/index", 
2196    "tinymce-anchor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/anchor/plugin", 
2197    "mockup-patterns-filemanager": "++resource++mockup/filemanager/pattern", 
2198    "jqtree-contextmenu": "++plone++static/components/cs-jqtree-contextmenu/src/jqTreeContextMenu", 
2199    "mockup-patterns-backdrop": "++resource++mockup/backdrop/pattern", 
2200    "mockup-patterns-cookietrigger": "++resource++mockup/cookietrigger/pattern", 
2201    "mockup-patterns-modal": "++resource++mockup/modal/pattern", 
2202    "jquery.cookie": "++plone++static/components/jquery.cookie/jquery.cookie", 
2203    "tinymce-wordcount": "++plone++static/components/tinymce-builded/js/tinymce/plugins/wordcount/plugin", 
2204    "mockup-utils": "++resource++mockupjs/utils", 
2205    "tinymce-advlist": "++plone++static/components/tinymce-builded/js/tinymce/plugins/advlist/plugin", 
2206    "plone-patterns-portletmanager": "++resource++manage-portlets", 
2207    "jquery.browser": "++plone++static/components/jquery.browser/dist/jquery.browser", 
2208    "tinymce-modern-theme": "++plone++static/components/tinymce-builded/js/tinymce/themes/modern/theme", 
2209    "tinymce-paste": "++plone++static/components/tinymce-builded/js/tinymce/plugins/paste/plugin", 
2210    "resource-collective-polls-js-jquery-flot-pie-js": "++resource++collective.polls/js/jquery.flot.pie", 
2211    "resource-plone-app-discussion-javascripts-comments": "++resource++plone.app.discussion.javascripts/comments", 
2212    "mockup-patterns-upload-url": "++resource++mockup/upload", 
2213    "js-shortcuts": "++plone++static/components/js-shortcuts/js-shortcuts", 
2214    "tinymce-bbcode": "++plone++static/components/tinymce-builded/js/tinymce/plugins/bbcode/plugin", 
2215    "mockup-patterns-querystring": "++resource++mockup/querystring/pattern", 
2216    "logging": "++plone++static/components/logging/src/logging", 
2217    "ace": "++plone++static/components/ace-builds/src/ace", 
2218    "mockup-patterns-thememapper-url": "++resource++mockup/thememapper", 
2219    "tinymce-autolink": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autolink/plugin", 
2220    "mockup-patterns-formunloadalert": "++resource++mockup/formunloadalert/pattern", 
2221    "picker": "++plone++static/components/pickadate/lib/picker", 
2222    "mockup-patterns-structure-url": "++resource++mockup/structure", 
2223    "tinymce-image": "++plone++static/components/tinymce-builded/js/tinymce/plugins/image/plugin", 
2224    "marked": "++plone++static/components/marked/lib/marked", 
2225    "ace-mode-css": "++plone++static/components/ace-builds/src/mode-css", 
2226    "pat-registry": "++plone++static/components/patternslib/src/core/registry", 
2227    "plone": "++resource++plone", 
2228    "resource-plone-app-jquerytools-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.overlay", 
2229    "mockup-patterns-select2": "++resource++mockup/select2/pattern", 
2230    "mockup-patterns-structure": "++resource++mockup/structure/pattern", 
2231    "resource-collective-polls-js-polls-js": "++resource++collective.polls/js/polls", 
2232    "tinymce-autoresize": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autoresize/plugin", 
2233    "jquery.recurrenceinput": "++plone++static/components/jquery.recurrenceinput.js/src/jquery.recurrenceinput", 
2234    "jquery.form": "++plone++static/components/jquery-form/jquery.form", 
2235    "mockup-patterns-sortable": "++resource++mockup/sortable/pattern", 
2236    "tinymce-template": "++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin", 
2237    "translate": "++resource++mockupjs/i18n-wrapper", 
2238    "bootstrap-dropdown": "++plone++static/components/bootstrap/js/dropdown", 
2239    "mockup-patterns-contentloader": "++resource++mockup/contentloader/pattern", 
2240    "rjs": "++plone++static/components/r.js/dist/r", 
2241    "tinymce-lists": "++plone++static/components/tinymce-builded/js/tinymce/plugins/lists/plugin", 
2242    "bootstrap-alert": "++plone++static/components/bootstrap/js/alert", 
2243    "tinymce-textpattern": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textpattern/plugin", 
2244    "tinymce-emoticons": "++plone++static/components/tinymce-builded/js/tinymce/plugins/emoticons/plugin", 
2245    "resourceregistry": "++plone++static/resourceregistry", 
2246    "tinymce-table": "++plone++static/components/tinymce-builded/js/tinymce/plugins/table/plugin", 
2247    "jquery": "++plone++static/components/jquery/dist/jquery.min", 
2248    "mockup-ui-url": "++resource++mockupjs/ui", 
2249    "tinymce-tabfocus": "++plone++static/components/tinymce-builded/js/tinymce/plugins/tabfocus/plugin", 
2250    "resource-plone-app-event-event-js": "++resource++plone.app.event/event", 
2251    "tinymce-print": "++plone++static/components/tinymce-builded/js/tinymce/plugins/print/plugin", 
2252    "tinymce-link": "++plone++static/components/tinymce-builded/js/tinymce/plugins/link/plugin", 
2253    "pat-compat": "++plone++static/components/patternslib/src/core/compat", 
2254    "tinymce-hr": "++plone++static/components/tinymce-builded/js/tinymce/plugins/hr/plugin", 
2255    "select2": "++plone++static/components/select2/select2", 
2256    "tinymce-media": "++plone++static/components/tinymce-builded/js/tinymce/plugins/media/plugin", 
2257    "mockup-patterns-texteditor": "++resource++mockup/texteditor/p
2257attern", 
2258    "resource-plone-formwidget-recaptcha-recaptcha_ajax": "++resource++plone.formwidget.recaptcha/recaptcha_ajax", 
2259    "resource-collective-polls-js-jquery-flot-js": "++resource++collective.polls/js/jquery.flot", 
2260    "mockup-patterns-tooltip": "++resource++mockup/tooltip/pattern", 
2261    "resource-plone-app-jquerytools-dateinput-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.dateinput", 
2262    "plone-logged-in": "++resource++plone-logged-in", 
2263    "mockup-patterns-pickadate": "++resource++mockup/pickadate/pattern", 
2264    "JSXTransformer": "++plone++static/components/react/JSXTransformer", 
2265    "tinymce-contextmenu": "++plone++static/components/tinymce-builded/js/tinymce/plugins/contextmenu/plugin", 
2266    "ace-theme-monokai": "++plone++static/components/ace-builds/src/theme-monokai", 
2267    "mockup-patterns-toggle": "++resource++mockup/toggle/pattern", 
2268    "tinymce-directionality": "++plone++static/components/tinymce-builded/js/tinymce/plugins/directionality/plugin", 
2269    "mockup-patterns-markspeciallinks": "++resource++mockup/markspeciallinks/pattern", 
2270    "tinymce-legacyoutput": "++plone++static/components/tinymce-builded/js/tinymce/plugins/legacyoutput/plugin", 
2271    "pat-base": "++plone++static/components/patternslib/src/core/base", 
2272    "plone-patterns-toolbar": "++plone++static/patterns/toolbar/src/toolbar", 
2273    "mockup-patterns-inlinevalidation": "++resource++mockup/inlinevalidation/pattern", 
2274    "thememapper": "++resource++plone.app.theming/thememapper", 
2275    "tinymce": "++plone++static/components/tinymce-builded/js/tinymce/tinymce", 
2276    "tinymce-visualblocks": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualblocks/plugin", 
2277    "mockup-patterns-resourceregistry-url": "++resource++mockup/resourceregistry", 
2278    "tinymce-insertdatetime": "++plone++static/components/tinymce-builded/js/tinymce/plugins/insertdatetime/plugin", 
2279    "mockup-patterns-base": "++resource++mockup/base/pattern", 
2280    "mockup-patterns-livesearch": "++resource++mockup/livesearch/pattern", 
2281    "mockup-patterns-upload": "++resource++mockup/upload/pattern", 
2282    "picker.date": "++plone++static/components/pickadate/lib/picker.date", 
2283    "tinymce-searchreplace": "++plone++static/components/tinymce-builded/js/tinymce/plugins/searchreplace/plugin", 
2284    "mockup-patterns-autotoc": "++resource++mockup/autotoc/pattern", 
2285    "resource-collective-polls-js-collective-poll-js": "++resource++collective.polls/js/collective.poll", 
2286    "tinymce-importcss": "++plone++static/components/tinymce-builded/js/tinymce/plugins/importcss/plugin", 
2287    "backbone": "++plone++static/components/backbone/backbone", 
2288    "mockup-patterns-resourceregistry": "++resource++mockup/resourceregistry/pattern", 
2289    "react": "++plone++static/components/react/react", 
2290    "mockup-patterns-textareamimetypeselector": "++resource++mockup/textareamimetypeselector/pattern", 
2291    "moment": "++plone++static/components/moment/min/moment-with-locales.min", 
2292    "sinon": "++plone++static/components/sinonjs/sinon", 
2293    "tinymce-code": "++plone++static/components/tinymce-builded/js/tinymce/plugins/code/plugin", 
2294    "pat-utils": "++plone++static/components/patternslib/src/core/utils", 
2295    "tinymce-colorpicker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/colorpicker/plugin", 
2296    "jquery.tmpl": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tmpl", 
2297    "bootstrap-collapse": "++plone++static/components/bootstrap/js/collapse", 
2298    "jquery-highlightsearchterms": "jquery.highlightsearchterms", 
2299    "mockup-patterns-moment": "++resource++mockup/moment/pattern", 
2300    "mockup-patterns-relateditems": "++resource++mockup/relateditems/pattern", 
2301    "tinymce-nonbreaking": "++plone++static/components/tinymce-builded/js/tinymce/plugins/nonbreaking/plugin", 
2302    "bootstrap-tooltip": "++plone++static/components/bootstrap/js/tooltip", 
2303    "pat-mockup-parser": "++plone++static/components/patternslib/src/core/mockup-parser", 
2304    "dropzone": "++plone++static/components/dropzone/dist/dropzone-amd-module"
2305},
2306    shim: {
2307        "resource-plone-app-jquerytools-dateinput-js": {
2308            deps: ["jquery"]
2309        },
2310        "tinymce-autoresize": {
2311            deps: ["tinymce"]
2312        },
2313        "bootstrap-transition": {
2314            exports: "window.jQuery.support.transition",
2315            deps: ["jquery"]
2316        },
2317        "tinymce-save": {
2318            deps: ["tinymce"]
2319        },
2320        "bootstrap-collapse": {
2321            exports: "window.jQuery.fn.collapse.Constructor",
2322            deps: ["jquery"]
2323        },
2324        "tinymce-code": {
2325            deps: ["tinymce"]
2326        },
2327        "tinymce-fullpage": {
2328            deps: ["tinymce"]
2329        },
2330        "tinymce-visualchars": {
2331            deps: ["tinymce"]
2332        },
2333        "expect": {
2334            exports: "window.expect"
2335        },
2336        "tinymce-spellchecker": {
2337            deps: ["tinymce"]
2338        },
2339        "jquery.event.drop": {
2340            exports: "$.drop",
2341            deps: ["jquery"]
2342        },
2343        "tinymce-anchor": {
2344            deps: ["tinymce"]
2345        },
2346        "tinymce-autosave": {
2347            deps: ["tinymce"]
2348        },
2349        "tinymce-contextmenu": {
2350            deps: ["tinymce"]
2351        },
2352        "tinymce-charmap": {
2353            deps: ["tinymce"]
2354        },
2355        "resource-plone-app-jquerytools-js": {
2356            deps: ["jquery"]
2357        },
2358        "tinymce-directionality": {
2359            deps: ["tinymce"]
2360        },
2361        "tinymce": {
2362            exports: "window.tinyMCE",
2363            init: function () { this.tinyMCE.DOM.events.domLoaded = true; return this.tinyMCE; }
2364        },
2365        "tinymce-image": {
2366            deps: ["tinymce"]
2367        },
2368        "tinymce-legacyoutput": {
2369            deps: ["tinymce"]
2370        },
2371        "tinymce-template": {
2372            deps: ["tinymce"]
2373        },
2374        "jquery.cookie": {
2375            deps: ["jquery"]
2376        },
2377        "jquery.recurrenceinput": {
2378            deps: ["jquery", "resource-plone-app-jquerytools-js", "resource-plone-app-jquerytools-dateinput-js", "jquery.tmpl"]
2379        },
2380        "tinymce-fullscreen": {
2381            deps: ["tinymce"]
2382        },
2383        "tinymce-noneditable": {
2384            deps: ["tinymce"]
2385        },
2386        "tinymce-wordcount": {
2387            deps: ["tinymce"]
2388        },
2389        "tinymce-insertdatetime": {
2390            deps: ["tinymce"]
2391        },
2392        "tinymce-advlist": {
2393            deps: ["tinymce"]
2394        },
2395        "tinymce-visualblocks": {
2396            deps: ["tinymce"]
2397        },
2398        "tinymce-searchreplace": {
2399            deps: ["tinymce"]
2400        },
2401        "jquery.browser": {
2402            deps: ["jquery"]
2403        },
2404        "picker.date": {
2405            deps: ["picker"]
2406        },
2407        "tinymce-modern-theme": {
2408            deps: ["tinymce"]
2409        },
2410        "bootstrap-dropdown": {
2411            deps: ["jquery"]
2412        },
2413        "tinymce-preview": {
2414            deps: ["tinymce"]
2415        },
2416        "tinymce-paste": {
2417            deps: ["tinymce"]
2418        },
2419        "tinymce-pagebreak": {
2420            deps: ["tinymce"]
2421        },
2422        "tinymce-importcss": {
2423            deps: ["tinymce"]
2424        },
2425        "tinymce-lists": {
2426            deps: ["tinymce"]
2427        },
2428        "bootstrap-alert": {
2429            deps: ["jquery"]
2430        },
2431        "jqtree": {
2432            deps: ["jquery"]
2433        },
2434        "tinymce-textpattern": {
2435            deps: ["tinymce"]
2436        },
2437        "backbone": {
2438            exports: "window.Backbone",
2439            deps: ["underscore", "jquery"]
2440        },
2441        "jquery.tmpl": {
2442            deps: ["jquery"]
2443        },
2444        "tinymce-emoticons": {
2445            deps: ["tinymce"]
2446        },
2447        "sinon": {
2448            exports: "window.sinon"
2449        },
2450        "tinymce-table": {
2451            deps: ["tinymce"]
2452        },
2453        "underscore": {
2454            exports: "window._"
2455        },
2456        "js-shortcuts": {
2457            deps: ["jquery"]
2458        },
2459        "tinymce-bbcode": {
2460            deps: ["tinymce"]
2461        },
2462        "tinymce-print": {
2463            deps: ["tinymce"]
2464        },
2465        "tinymce-colorpicker": {
2466            deps: ["tinymce"]
2467        },
2468        "jquery.event.drag": {
2469            deps: ["jquery"]
2470        },
2471        "backbone.paginator": {
2472            exports: "window.Backbone.Paginator",
2473            deps: ["backbone"]
2474        },
2475        "tinymce-tabfocus": {
2476            deps: ["tinymce"]
2477        },
2478        "tinymce-textcolor": {
2479            deps: ["tinymce"]
2480        },
2481        "picker.time": {
2482            deps: ["picker"]
2483        },
2484        "JSXTransformer": {
2485            exports: "window.JSXTransformer"
2486        },
2487        "tinymce-compat3x": {
2488            deps: ["tinymce"]
2489        },
2490        "tinymce-link": {
2491            deps: ["tinymce"]
2492        },
2493        "tinymce-nonbreaking": {
2494            deps: ["tinymce"]
2495        },
2496        "bootstrap-tooltip": {
2497            deps: ["jquery"]
2498        },
2499        "tinymce-hr": {
2500            deps: ["tinymce"]
2501        },
2502        "tinymce-autolink": {
2503            deps: ["tinymce"]
2504        },
2505        "jqtree-contextmenu": {
2506            deps: ["jqtree"]
2507        },
2508        "tinymce-media": {
2509            deps: ["tinymce"]
2510        }
2511    },
2512    optimize: 'uglify',
2513    wrapShim: true
2514});
2515
2516/* reset requirejs definitions so that people who
vendor: 18,298 bytes, lines 2517-2561
2517   put requirejs in legacy compilation do not get errors */
2518var _old_define = define;
2519var _old_require = require;
2520define = undefined;
2521require = undefined;
2522try{
2523
2524/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++plone.app.discussion.javascripts/comments.js */
2525
2526
2527/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/jquery.highlightsearchterms.js */
2528
2529
2530/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++plone.app.event/event.js */
2531
2532
2533/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++collective.polls/js/jquery.flot.js */
2534
2535
2536/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++collective.polls/js/jquery.flot.pie.js */
2537
2538
2539/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++collective.polls/js/polls.js */
2540
2541
2542/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++collective.polls/js/collective.poll.js */
2543
2544
2545/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++collective.polls/js/jquery.tasksplease.js */
2546
2547
2548/* Could not find resource: http://portals.ddl.net/creador4/fs-ajuntament-de-solsona/ajuntament-de-solsona/++resource++plone.formwidget.recaptcha/recaptcha_ajax.js */
2549
2550
2551}catch(e){
2552    // log it
2553    if (typeof console !== "undefined"){
2554        console.log('Error loading javascripts!' + e);
2555    }
2556}finally{
2557    define = _old_define;
2558    require = _old_require;
2559}
2560
2561(function(){function e(e){function t(t,n,i,a,r,s){for(;r>=0&&r<s;r+=e){var o=a?a[r]:r;i=n(i,t[o],o,t)}return i}return function(n,i,a,r){i=v(i,r,4);var s=!T(n)&&y.keys(n),o=(s||n).length,l=e>0?0:o-1;return arguments.length<3&&(a=n[s?s[l]:l],l+=e),t(n,i,a,s,l,o)}}function t(e){return function(t,n,i){n=M(n,i);for(var a=Y(t),r=e>0?0:a-1;r>=0&&r<a;r+=e)if(n(t[r],r,t))return r;return-1}}function n(e,t,n){return function(i,a,r){var s=0,o=Y(i);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+o,s):o=r>=0?Math.min(r+1,o):r+o+1;else if(n&&r&&o)return r=n(i,a),i[r]===a?r:-1;if(a!==a)return(r=t(u.call(i,s,o),y.isNaN))>=0?r+s:-1;for(r=e>0?s:o-1;r>=0&&r<o;r+=e)if(i[r]===a)return r;return-1}}function i(e,t){var n=H.length,i=e.constructor,a=y.isFunction(i)&&i.prototype||o,r="constructor";for(y.has(e,r)&&!y.contains(t,r)&&t.push(r);n--;)(r=H[n])in e&&e[r]!==a[r]&&!y.contains(t,r)&&t.push(r)}var a=this,r=a._,s=Array.prototype,o=Object.prototype,l=Function.prototype,d=s.push,u=s.slice,c=o.toString,h=o.hasOwnProperty,p=Array.isArray,m=Object.keys,_=l.bind,f=Object.create,g=function(){},y=function(e){return e instanceof y?e:this instanceof y?void(this._wrapped=e):new y(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):a._=y,y.VERSION="1.8.3";var v=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,a){return e.call(t,n,i,a)};case 4:return function(n,i,a,r){return e.call(t,n,i,a,r)}}return function(){return e.apply(t,arguments)}},M=function(e,t,n){return null==e?y.identity:y.isFunction(e)?v(e,t,n):y.isObject(e)?y.matcher(e):y.property(e)};y.iteratee=function(e,t){return M(e,t,1/0)};var L=function(e,t){return function(n){var i=arguments.length;if(i<2||null==n)return n;for(var a=1;a<i;a++)for(var r=arguments[a],s=e(r),o=s.length,l=0;l<o;l++){var d=s[l];t&&void 0!==n[d]||(n[d]=r[d])}return n}},w=function(e){if(!y.isObject(e))return{};if(f)return f(e);g.prototype=e;var t=new g;return g.prototype=null,t},b=function(e){return function(t){return null==t?void 0:t[e]}},k=Math.pow(2,53)-1,Y=b("length"),T=function(e){var t=Y(e);return"number"==typeof t&&t>=0&&t<=k};y.each=y.forEach=function(e,t,n){t=v(t,n);var i,a;if(T(e))for(i=0,a=e.length;i<a;i++)t(e[i],i,e);else{var r=y.keys(e);for(i=0,a=r.length;i<a;i++)t(e[r[i]],r[i],e)}return e},y.map=y.collect=function(e,t,n){t=M(t,n);for(var i=!T(e)&&y.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},y.reduce=y.foldl=y.inject=e(1),y.reduceRight=y.foldr=e(-1),y.find=y.detect=function(e,t,n){var i;if(void 0!==(i=T(e)?y.findIndex(e,t,n):y.findKey(e,t,n))&&-1!==i)return e[i]},y.filter=y.select=function(e,t,n){var i=[];return t=M(t,n),y.each(e,function(e,n,a){t(e,n,a)&&i.push(e)}),i},y.reject=function(e,t,n){return y.filter(e,y.negate(M(t)),n)},y.every=y.all=function(e,t,n){t=M(t,n);for(var i=!T(e)&&y.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},y.some=y.any=function(e,t,n){t=M(t,n);for(var i=!T(e)&&y.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},y.contains=y.includes=y.include=function(e,t,n,i){return T(e)||(e=y.values(e)),("number"!=typeof n||i)&&(n=0),y.indexOf(e,t,n)>=0},y.invoke=function(e,t){var n=u.call(arguments,2),i=y.isFunction(t);return y.map(e,function(e){var a=i?t:e[t];return null==a?a:a.apply(e,n)})},y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var i,a,r=-1/0,s=-1/0;if(null==t&&null!=e)for(var o=0,l=(e=T(e)?e:y.values(e)).length;o<l;o++)(i=e[o])>r&&(r=i);else t=M(t,n),y.each(e,function(e,n,i){((a=t(e,n,i))>s||a===-1/0&&r===-1/0)&&(r=e,s=a)});return r},y.min=function(e,t,n){var i,a,r=1/0,s=1/0;if(null==t&&null!=e)for(var o=0,l=(e=T(e)?e:y.values(e)).length;o<l;o++)(i=e[o])<r&&(r=i);else t=M(t,n),y.each(e,function(e,n,i){((a=t(e,n,i))<s||a===1/0&&r===1/0)&&(r=e,s=a)});return r},y.shuffle=function(e){for(var t,n=T(e)?e:y.values(e),i=n.length,a=Array(i),r=0;r<i;r++)(t=y.random(0,r))!==r&&(a[r]=a[t]),a[t]=n[r];return a},y.sample=function(e,t,n){return null==t||n?(T(e)||(e=y.values(e)),e[y.random(e.length-1)]):y.shuffle(e).slice(0,Math.max(0,t))},y.sortBy=function(e,t,n){return t=M(t,n),y.pluck(y.map(e,function(e,n,i){return{value:e,index:n,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")};var D=function(e){return function(t,n,i){var a={};return n=M(n,i),y.each(t,function(i,r){var s=n(i,r,t);e(a,i,s)}),a}};y.groupBy=D(function(e,t,n){y.has(e,n)?e[n].push(t):e[n]=[t]}),y.indexBy=D(function(e,t,n){e[n]=t}),y.countBy=D(function(e,t,n){y.has(e,n)?e[n]++:e[n]=1}),y.toArray=function(e){return e?y.isArray(e)?u.call(e):T(e)?y.map(e,y.identity):y.values(e):[]},y.size=function(e){return null==e?0:T(e)?e.length:y.keys(e).length},y.partition=function(e,t,n){t=M(t,n);var i=[],a=[];return y.each(e,function(e,n,r){(t(e,n,r)?i:a).push(e)}),[i,a]},y.first=y.head=y.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:y.initial(e,e.length-t)},y.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},y.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:y.rest(e,Math.max(0,e.length-t))},y.rest=y.tail=y.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},y.compact=function(e){return y.filter(e,y.identity)};var S=function(e,t,n,i){for(var a=[],r=0,s=i||0,o=Y(e);s<o;s++){var l=e[s];if(T(l)&&(y.isArray(l)||y.isArguments(l))){t||(l=S(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};y.flatten=function(e,t){return S(e,t,!1)},y.without=function(e){return y.difference(e,u.call(arguments,1))},y.uniq=y.unique=function(e,t,n,i){y.isBoolean(t)||(i=n,n=t,t=!1),null!=n&&(n=M(n,i));for(var a=[],r=[],s=0,o=Y(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?y.contains(r,d)||(r.push(d),a.push(l)):y.contains(a,l)||a.push(l)}return a},y.union=function(){return y.uniq(S(arguments,!0,!0))},y.intersection=function(e){for(var t=[],n=arguments.length,i=0,a=Y(e);i<a;i++){var r=e[i];if(!y.contains(t,r)){for(var s=1;s<n&&y.contains(arguments[s],r);s++);s===n&&t.push(r)}}return t},y.difference=function(e){var t=S(arguments,!0,!0,1);return y.filter(e,function(e){return!y.contains(t,e)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(e){for(var t=e&&y.max(e,Y).length||0,n=Array(t),i=0;i<t;i++)n[i]=y.pluck(e,i);return n},y.object=function(e,t){for(var n={},i=0,a=Y(e);i<a;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},y.findIndex=t(1),y.findLastIndex=t(-1),y.sortedIndex=function(e,t,n,i){for(var a=(n=M(n,i,1))(t),r=0,s=Y(e);r<s;){var o=Math.floor((r+s)/2);n(e[o])<a?r=o+1:s=o}return r},y.indexOf=n(1,y.findIndex,y.sortedIndex),y.lastIndexOf=n(-1,y.findLastIndex),y.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 x=function(e,t,n,i,a){if(!(i instanceof t))return e.apply(n,a);var r=w(e.prototype),s=e.apply(r,a);return y.isObject(s)?s:r};y.bind=function(e,t){if(_&&e.bind===_)return _.apply(e,u.call(arguments,1));if(!y.isFunction(e))throw new TypeError("Bind must be called on a function");var n=u.call(arguments,2),i=function(){return x(e,i,t,this,n.concat(u.call(arguments)))};return i},y.partial=function(e){var t=u.call(arguments,1),n=function(){for(var i=0,a=t.length,r=Array(a),s=0;s<a;s++)r[s]=t[s]===y?arguments[i++]:t[s];for(;i<arguments.length;)r.push(arguments[i++]);return x(e,n,this,this,r)};return n},y.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]]=y.bind(e[n],e);return e},y.memoize=function(e,t){var n=function(i){var a=n.cache,r=""+(t?t.apply(this,arguments):i);return y.has(a,r)||(a[r]=e.apply(this,arguments)),a[r]};return n.cache={},n},y.delay=function(e,t){var n=u.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},y.defer=y.partial(y.delay,y,1),y.throttle=function(e,t,n){var i,a,r,s=null,o=0;n||(n={});var l=function(){o=!1===n.leading?0:y.now(),s=null,r=e.apply(i,a),s||(i=a=null)};return function(){var d=y.now();o||!1!==n.leading||(o=d);var u=t-(d-o);return i=this,a=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),o=d,r=e.apply(i,a),s||(i=a=null)):s||!1===n.trailing||(s=setTimeout(l,u)),r}},y.debounce=function(e,t,n){var i,a,r,s,o,l=function(){var d=y.now()-s;d<t&&d>=0?i=setTimeout(l,t-d):(i=null,n||(o=e.apply(r,a),i||(r=a=null)))};return function(){r=this,a=arguments,s=y.now();var d=n&&!i;return i||(i=setTimeout(l,t)),d&&(o=e.apply(r,a),r=a=null),o}},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),H=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(e){if(!y.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)y.has(e,n)&&t.push(n);return j&&i(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return j&&i(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=e[t[a]];return i},y.mapObject=function(e,t,n){t=M(t,n);for(var i,a=y.keys(e),r=a.length,s={},o=0;o<r;o++)s[i=a[o]]=t(e[i],i,e);return s},y.pairs=function(e){for(var t=y.keys(e),n=t.length,i=Array(n),a=0;a<n;a++)i[a]=[t[a],e[t[a]]];return i},y.invert=function(e){for(var t={},n=y.keys(e),i=0,a=n.length;i<a;i++)t[e[n[i]]]=n[i];return t},y.functions=y.methods=function(e){var t=[];for(var n in e)y.isFunction(e[n])&&t.push(n);return t.sort()},y.extend=L(y.allKeys),y.extendOwn=y.assign=L(y.keys),y.findKey=function(e,t,n){t=M(t,n);for(var i,a=y.keys(e),r=0,s=a.length;r<s;r++)if(i=a[r],t(e[i],i,e))return i},y.pick=function(e,t,n){var i,a,r={},s=e;if(null==s)return r;y.isFunction(t)?(a=y.allKeys(s),i=v(t,n)):(a=S(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},y.omit=function(e,t,n){if(y.isFunction(t))t=y.negate(t);else{var i=y.map(S(arguments,!1,!1,1),String);t=function(e,t){return!y.contains(i,t)}}return y.pick(e,t,n)},y.defaults=L(y.allKeys,!0),y.create=function(e,t){var n=w(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.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 y&&(e=e._wrapped),t instanceof y&&(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&&!(y.isFunction(s)&&s instanceof s&&y.isFunction(o)&&o instanceof o)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],i=i||[];for(var l=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=y.keys(e);if(l=u.length,y.keys(t).length!==l)return!1;for(;l--;)if(d=u[l],!y.has(t,d)||!C(e[d],t[d],n,i))return!1}return n.pop(),i.pop(),!0};y.isEqual=function(e,t){return C(e,t)},y.isEmpty=function(e){return null==e||(T(e)&&(y.isArray(e)||y.isString(e)||y.isArguments(e))?0===e.length:0===y.keys(e).length)},y.isElement=function(e){return!(!e||1!==e.nodeType)},y.isArray=p||function(e){return"[object Array]"===c.call(e)},y.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){y["is"+e]=function(t){return c.call(t)==="[object "+e+"]"}}),y.isArguments(arguments)||(y.isArguments=function(e){return y.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(e){return"function"==typeof e||!1}),y.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},y.isNaN=function(e){return y.isNumber(e)&&e!==+e},y.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===c.call(e)},y.isNull=function(e){return null===e},y.isUndefined=function(e){return void 0===e},y.has=function(e,t){return null!=e&&h.call(e,t)},y.noConflict=function(){return a._=r,this},y.identity=function(e){return e},y.constant=function(e){return function(){return e}},y.noop=function(){},y.property=b,y.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},y.matcher=y.matches=function(e){return e=y.extendOwn({},e),function(t){return y.isMatch(t,e)}},y.times=function(e,t,n){var i=Array(Math.max(0,e));t=v(t,n,1);for(var a=0;a<e;a++)i[a]=t(a);return i},y.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},y.now=Date.now||function(){return(new Date).getTime()};var E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},A=y.invert(E),O=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",i=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(a,t):e}};y.escape=O(E),y.unescape=O(A),y.result=function(e,t,n){var i=null==e?void 0:e[t];return void 0===i&&(i=n),y.isFunction(i)?i.call(e):i};var P=0;y.uniqueId=function(e){var t=++P+"";return e?e+t:t},y.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]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),a=0,r="__p+='";e.replace(i,function(t,n,i,s,o){return r+=e.slice(a,o).replace(N,I),a=o+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(r+="';\n"+s+"\n__p+='"),t}),r+="';\n",t.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{var s=new Function(t.variable||"obj","_",r)}catch(e){throw e.source=r,e}var o=function(e){return s.call(this,e,y)},l=t.variable||"obj";return o.source="function("+l+"){\n"+r+"}",o},y.chain=function(e){var t=y(e);return t._chain=!0,t};var W=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){y.each(y.functions(e),function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),W(this,n.apply(y,e))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=s[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],W(this,n)}}),y.each(["concat","join","slice"],function(e){var t=s[e];y.prototype[e]=function(){return W(this,t.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}).call(this),function(){function e(){}function t(){}function n(e,t){this._loggers={},this.name=e||"",this._parent=t||null,t||(this._enabled=!0,this._level=s.WARN)}function i(e){r=e}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");
2561var 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 a,r,s={DEBUG:10,INFO:20,WARN:30,ERROR:40,FATAL:50};e.prototype={output:function(e,t,n){if(void 0!==window.console&&void 0!==console.log){e&&n.unshift(e+":");var i=n.join(" ");if(void 0===typeof console.info){var a;a=t<=s.DEBUG?"DEBUG":t<=s.INFO?"INFO":t<=s.WARN?"WARN":t<=s.ERROR?"ERROR":"FATAL",console.log("["+a+"] "+i)}else t<=s.DEBUG?(i="[DEBUG] "+i,console.log(i)):t<=s.INFO?console.info(i):t<=s.WARN?console.warn(i):console.error(i)}}},t.prototype={output:function(e,t,n){e&&n.unshift(e+":"),t<=s.DEBUG?(n.unshift("[DEBUG]"),console.log.apply(console,n)):t<=s.INFO?console.info.apply(console,n):t<=s.WARN?console.warn.apply(console,n):console.error.apply(console,n)}},n.prototype={getLogger:function(e){for(var t=e.split("."),i=this,a=this.name?[this.name]:[];t.length;){var r=t.shift();a.push(r),r in i._loggers||(i._loggers[r]=new n(a.join("."),i)),i=i._loggers[r]}return i},_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 s&&(this._level=s[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),r.output(this.name,e,t))},debug:function(){this.log(s.DEBUG,arguments)},info:function(){this.log(s.INFO,arguments)},warn:function(){this.log(s.WARN,arguments)},error:function(){this.log(s.ERROR,arguments)},fatal:function(){this.log(s.FATAL,arguments)}},i(window.console&&window.console.log&&"function"==typeof window.console.log.apply?new t:new e),a=new n;for(var o,l=/loglevel(|-[^=]+)=([^&]+)/g;null!==(o=l.exec(window.location.search));)(""===o[1]?a:a.getLogger(o[1].slice(1))).setLevel(o[2].toUpperCase());var d={Level:s,getLogger:a.getLogger.bind(a),setEnabled:a.setEnabled.bind(a),isEnabled:a.isEnabled.bind(a),setLevel:a.setLevel.bind(a),getLevel:a.getLevel.bind(a),debug:a.debug.bind(a),info:a.info.bind(a),warn:a.warn.bind(a),error:a.error.bind(a),fatal:a.fatal.bind(a),getWriter:function(){return r},setWriter:i};"function"==typeof define?define("logging",[],function(){return d}):window.logging=d}(),define("pat-logger",["logging"],function(e){return e.getLogger("patterns")}),function(e){"function"==typeof define&&define.amd?define("jquery.browser",["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(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)||e.indexOf("trident")>=0&&/(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){a.browser="blackberry",i.blackberry=!0}if(i.safari&&i.playbook){a.browser="playbook",i.playbook=!0}if(i.bb){var r="blackberry";a.browser=r,i[r]=!0}if(i.opr){a.browser="opera",i.opera=!0}if(i.safari&&i.android){a.browser="android",i.android=!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(e){function t(e){var t=typeof e;return"function"===t||"object"===t&&!!e}e.fn.safeClone=function(){var t=this.clone();return void 0!==e.browser.msie&&t.findInclusive(":input[placeholder]").each(function(t,n){var i=e(n);i.attr("placeholder")===i.val()&&i.val("")}
2561),t},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(arguments.length>1&&(n=t),i=0;i<r;){var s;i in a&&(s=a[i],e.call(n,s,i,a)),i++}});var n=function(t,n,i){var a=this;return a.each(function(){var a,r=e(this);if(a=t.init(r,i),n){if(void 0===a[n])return e.error("Method "+n+" does not exist on jQuery."+t.name),!1;if("_"===n.charAt(0))return e.error("Method "+n+" is private on jQuery."+t.name),!1;a[n].apply(a,[i])}}),a},i=function(t,n,i){var a=this;if(n){if(t[n])return t[n].apply(a,[a].concat([i]));e.error("Method "+n+" does not exist on jQuery."+t.name)}else t.init.apply(a,[a].concat([i]));return a},a={none:{hide:"hide",show:"show"},fade:{hide:"fadeOut",show:"fadeIn"},slide:{hide:"slideUp",show:"slideDown"}};return isElementInViewport=function(t,n,i){if(t===[])return!1;t instanceof e&&(t=t[0]);var a=t.getBoundingClientRect(),r=[a.top,a.bottom,a.left,a.right];return!_.every(r,function(e){if(0===e)return!0})&&(n?(void 0===i&&(i=0),a.top<=0+i&&a.bottom>=0+i):a.top>=0&&a.left>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth))},{jqueryPlugin:function(e){return function(t,a){var r=this;return 0===r.length?r:("object"==typeof t&&(a=t,t=void 0),"function"==typeof e?n.call(this,e,t,a):i.call(this,e,t,a))}},debounce:function(e,t){var n;return function(){var i=this,a=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,a)},t)}},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isObject:t,extend:function(e){if(!t(e))return e;for(var n,i,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(i in n)hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rebaseURL:function(e,t){return-1!==t.indexOf("://")||"/"===t[0]?t:e.slice(0,e.lastIndexOf("/")+1)+t},findLabel:function(t){for(var n,i=t.parentNode;i&&11!==i.nodeType;i=i.parentNode)if("LABEL"===i.tagName)return i;return t.id&&(n=e('label[for="'+t.id+'"]')),n&&0===n.length&&t.form&&(n=e('label[for="'+t.name+'"]',t.form)),n&&n.length?n[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(t,n){if(-1===n.indexOf("*"))t.removeClass(n);else{var i=n.replace(/[\-\[\]{}()+?.,\\\^$|#\s]/g,"\\$&");i=i.replace(/[*]/g,".*"),i=new RegExp("^"+i+"$"),t.filter("[class]").each(function(){for(var t=e(this),n=t.attr("class").split(/\s+/),a=[],r=0;r<n.length;r++)i.test(n[r])||a.push(n[r]);a.length?t.attr("class",a.join(" ")):t.removeAttr("class")})}},hideOrShow:function(e,t,n,i){var r="css"===n.transition||"none"===n.transition?null:n.effect.duration;e.removeClass("visible hidden in-progress");var s=function(){e.removeClass("in-progress").addClass(t?"visible":"hidden").trigger("pat-update",{pattern:i,transition:"complete"})};if(r){var o=a[n.transition];e.addClass("in-progress").trigger("pat-update",{pattern:i,transition:"start"}),e[t?o.show:o.hide]({duration:r,easing:n.effect.easing,complete:s})}else"css"!==n.transition&&e[t?"show":"hide"](),s()},addURLQueryParameter:function(e,t,n){var i=new RegExp("(\\?|\\&)"+t+"=.*?(?=(&|$))"),a=e.toString().split("#"),r=a[0],s=a[1],o=/\?.+$/,l=r;return l=i.test(r)?r.replace(i,"$1"+t+"="+n):o.test(r)?r+"&"+t+"="+n:r+"?"+t+"="+n,s&&(l+="#"+s),l},removeDuplicateObjects:function(e){var t=function(e,t){return this[t]===e};return _.reduce(e,function(e,n){var i=!1;return _.each(e,function(e){i=_.keys(e).length===_.keys(n).length&&!_.chain(e).omit(t.bind(n)).keys().value().length}),i||e.push(n),e},[])},mergeStack:function(t,n){for(var i=[],a=0;a<n;a++)i.push({});return _.each(t,function(t){for(var a=t.length-1,r=0;r<n;r++)i[r]=e.extend(i[r]||{},t[r>a?a:r])}),i},isElementInViewport:isElementInViewport}}),define("pat-compat",[],function(){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(arguments.length>0&&((i=Number(arguments[1]))!==i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var a=i>
2561=0?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;arguments.length>1&&((i=Number(arguments[1]))!==i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i))));for(var a=i>=0?Math.min(i,n-1):n-Math.abs(i);a>=0;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||void 0===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(arguments.length>=2)i=arguments[1];else for(;;){if(a in this){i=this[a--];break}if(--a<0)throw new TypeError}for(;a>=0;)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=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;return function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on non-object");var r=[];for(var s in a)e.call(a,s)&&r.push(s);if(t)for(var o=0;o<i;o++)e.call(a,n[o])&&r.push(n[o]);return r}}())}),define("pat-jquery-ext",["jquery"],function(e){var t={init:function(n){var i={time:3,initialTime:8,exceptionAreas:[]};return this.each(function(){var a=e(this);a.data("timeout")||(n&&e.extend(i,n),a.data("timeout",{lastEvent:new Date,trueTime:i.time,time:i.initialTime,untouched:!0,inExceptionArea:!1}),a.bind("mouseover.timeout",t.mouseMoved),a.bind("mouseenter.timeout",t.mouseMoved),e(i.exceptionAreas).each(function(){a.find(this).live("mouseover.timeout",{parent:a},t.enteredException).live("mouseleave.timeout",{parent:a},t.leftException)}),i.initialTime>0?a.timeout("startTimer"):a.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 t=e(this),n=t.data("timeout");e(window).unbind(".timeout"),n.timeout.remove(),t.removeData("timeout")})},mouseMoved:function(){var t=e(this),n=t.data("timeout");t.hasClass("timeout")?(t.removeClass("timeout"),t.timeout("startTimer")):n.untouched&&(n.untouched=!1,n.time=n.trueTime),n.lastEvent=ne
2561w Date,t.data("timeout",n)},startTimer:function(){var t=e(this),n=t.data("timeout"),i=function(){var e=t.data("timeout");if(e&&e.lastEvent)if(e.inExceptionArea)setTimeout(i,Math.floor(1e3*e.time));else{var n=new Date,a=Math.floor(1e3*e.time)-(n-e.lastEvent);a>0?setTimeout(i,a+100):t.addClass("timeout")}};setTimeout(i,Math.floor(1e3*n.time))}};e.fn.timeout=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.timeout"):t.init.apply(this,arguments)},e.extend(e.expr[":"],{scrollable:function(t){return"scroll"===e(t).css("overflow")||"scroll"===e(t).css("overflowX")||"scroll"===e(t).css("overflowY")||(t.clientHeight<t.scrollHeight&&(-1!==e.inArray(e(t).css("overflowY"),["scroll","auto"])||-1!==e.inArray(e(t).css("overflow"),["scroll","auto"]))||t.clientWidth<t.scrollWidth&&(-1!==e.inArray(e(t).css("overflowX"),["scroll","auto"])||-1!==e.inArray(e(t).css("overflow"),["scroll","auto"])))}}),e.fn.makeVisibleInScroll=function(t){var n=null;return"string"==typeof t?n=e("#"+t):t&&(n=e(t)),this.each(function(){var t,i=e(this);n?t=n:(t=i.parents(":scrollable"),t=e(t.length>0?t[0]:window));var a=i.position().top,r=i.height()+a,s=t.scrollTop(),o=t.height()+s;a<s?t.scrollTop(a):r>o-t.height()/2&&t.scrollTop(a-(t.height()-i.height())/2)})},e.fn.setPositionAbsolute=function(t,n,i){return this.each(function(){var a=e(this),r=e(this).width(),s=t.offset(),o=t.width(),l=t.height(),d=s.left+o-r+i,u=s.top+l+n;a.css({"z-index":1,position:"absolute",marginLeft:0,marginTop:0,left:d+"px",top:u+"px",width:r}),a.remove().appendTo("body").show()})},e.fn.positionAncestor=function(t){var n=0,i=0;return this.each(function(){var a=e(this).closest(t);if(a.length&&"static"!==a.css("position")){var r=e(this),s=r.offset().left-parseInt(r.css("marginLeft"),10),o=r.offset().top-parseInt(r.css("marginTop"),10),l=a.offset().left+parseInt(a.css("borderLeftWidth"),10),d=a.offset().top+parseInt(a.css("borderTopWidth"),10);return n=s-l,i=o-d,!1}}),{left:n,top:i}},String.prototype.startsWith=function(e){return null!==this.match("^"+e)},String.prototype.endsWith=function(e){return null!==this.match(e+"$")},e.simplePlaceholder={placeholder_class:null,hide_placeholder:function(){var t=e(this);t.val()===t.attr("placeholder")&&t.val("").removeClass(e.simplePlaceholder.placeholder_class)},show_placeholder:function(){var t=e(this);""===t.val()&&t.val(t.attr("placeholder")).addClass(e.simplePlaceholder.placeholder_class)},prevent_placeholder_submit:function(){return e(this).find(".simple-placeholder").each(function(){var t=e(this);t.val()===t.attr("placeholder")&&t.val("")}),!0}},e.fn.simplePlaceholder=function(t){if(void 0===document.createElement("input").placeholder){var n={placeholder_class:"placeholding"};t&&e.extend(n,t),e.simplePlaceholder.placeholder_class=n.placeholder_class,this.each(function(){var t=e(this);t.focus(e.simplePlaceholder.hide_placeholder),t.blur(e.simplePlaceholder.show_placeholder),""===t.val()&&(t.val(t.attr("placeholder")),t.addClass(e.simplePlaceholder.placeholder_class)),t.addClass("simple-placeholder"),e(this.form).submit(e.simplePlaceholder.prevent_placeholder_submit)})}return this},e.fn.findInclusive=function(e){return this.find("*").addBack().filter(e)},e.fn.slideIn=function(e,t,n){return this.animate({width:"show"},e,t,n)},e.fn.slideOut=function(e,t,n){return this.animate({width:"hide"},e,t,n)},e.expr[":"].Contains=function(t,n,i){return e(t).text().toUpperCase().indexOf(i[3].toUpperCase())>=0},e.fn.scopedFind=function(t){return t.startsWith("#")?e(t):this.find(t)}}),define("pat-registry",["jquery","underscore","pat-logger","pat-utils","pat-compat","pat-jquery-ext"],function(e,t,n,i){for(var a,r=n.getLogger("registry"),s=/patterns-disable=([^&]+)/g,o=/patterns-dont-catch/g,l=!1,d={};null!==(a=s.exec(window.location.search));)d[a[1]]=!0,r.info("Pattern disabled via url config:",a[1]);for(;null!==(a=o.exec(window.location.search));)l=!0,r.info("I will not catch init exceptions");var u={patterns:{},initialized:!1,init:function(){e(document).ready(function(){r.info("loaded: "+Object.keys(u.patterns).sort().join(", ")),u.scan(document.body),u.initialized=!0,r.info("finished initial scan.")})},clear:function(){this.patterns={}},transformPattern:function(t,n){if(d[t])r.debug("Skipping disabled pattern:",t);else{var i=u.patterns[t];if(i.transform)try{i.transform(e(n))}catch(e){if(l)throw e;r.error("Transform error for pattern"+t,e)}}},initPattern:function(t,i,a){var r=e(i),s=u.patterns[t];if(s.init&&(plog=n.getLogger("pat."+t),r.is(s.trigger))){plog.debug("Initialising:",r);try{s.init(r,null,a),plog.debug("done.")}catch(e){if(l)throw e;plog.error("Caught error:",e)}}},orderPatterns:function(e){return t.contains(e,"validation")&&t.contains(e,"inject")&&(e.splice(e.indexOf("validation"),1),e.unshift("validation")),e},scan:function(n,i,a){var r=[];
2561(i=this.orderPatterns(i||Object.keys(u.patterns))).forEach(t.partial(this.transformPattern,t,n)),i=t.each(i,function(e){var t=u.patterns[e];t.trigger&&r.unshift(t.trigger)}),e(n).findInclusive(r.join(",")).filter(function(){return 0===e(this).parents("pre").length}).filter(":not(.cant-touch-this)").toArray().reduceRight(function(e,n){i.forEach(t.partial(this.initPattern,t,n,a))}.bind(this),null),e("body").addClass("patterns-loaded")},register:function(t,n){var a;return(n=n||t.name)?u.patterns[n]?(r.error("Already have a pattern called: "+n),!1):(u.patterns[n]=t,t.jquery_plugin&&(a=("pat-"+n).replace(/-([a-zA-Z])/g,function(e,t){return t.toUpperCase()}),e.fn[a]=i.jqueryPlugin(t),e.fn[a.replace(/^pat/,"pattern")]=e.fn[a]),r.debug("Registered pattern:",n,t),u.initialized&&u.scan(document.body,[n]),!0):(r.error("Pattern lacks a name:",t),!1)}};return u}),define("pat-mockup-parser",["jquery"],function(e){"use strict";return{getOptions:function t(n,i,a){a=a||{},0===n.length||e.nodeName(n[0],"body")||(a=t(n.parent(),i,a));var r={};if(0!==n.length&&(r=n.data("pat-"+i))&&"string"==typeof r){var s={};e.each(r.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,""),s[n]=i}),r=s}return e.extend(!0,{},a,r)}}}),define("pat-base",["jquery","pat-registry","pat-mockup-parser","pat-logger"],function(e,t,n,i){"use strict";var a=i.getLogger("Patternslib Base"),r=function(e,a,r){var s=this.prototype.name,o=i.getLogger("pat."+s),l=e.data("pattern-"+s);if(void 0===l&&t.patterns[s]){try{a="mockup"===this.prototype.parser?n.getOptions(e,s,a):a,l=new t.patterns[s](e,a,r)}catch(e){o.error("Failed while initializing '"+s+"' pattern.",e)}e.data("pattern-"+s,l)}return l},s=function(t,n,i){this.$el=t,this.options=e.extend(!0,{},this.defaults||{},n||{}),this.init(t,n,i),this.emit("init")};return s.prototype={constructor:s,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)}},s.extend=function(n){var i,o=this;if(!n)throw new Error("Pattern configuration properties required when calling Base.extend");(i=n.hasOwnProperty("constructor")?n.constructor:function(){o.apply(this,arguments)}).extend=s.extend,i.init=r,i.jquery_plugin=!0,i.trigger=n.trigger;var l=function(){this.constructor=i};return l.prototype=o.prototype,i.prototype=new l,e.extend(!0,i.prototype,n),i.__super__=o.prototype,n.name?n.trigger?t.register(i,n.name):a.warn("The pattern '"+n.name+"' does not have a trigger attribute, it will not be registered."):a.warn("This pattern without a name attribute will not be registered!"),i},s}),define("mockup-patterns-base",["pat-base"],function(e){"use strict";var t=function(){return e.apply(this,arguments)};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.prototype=e.prototype,t.prototype.constructor=t,t.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 t=e.extend.apply(this,arguments);return t.prototype.parser="mockup",t},t}),define("mockup-utils",["jquery"],function(e){"use strict";var t=function(t){var n=this;n.className="plone-loader";var i={backdrop:null,zIndex:10005};return t||(t={}),n.options=e.extend({},i,t),n.init=function(){n.$el=e("."+n.className),0===n.$el.length&&(n.$el=e("
2561<div><div></div></div>"),n.$el.addClass(n.className).hide().appendTo("body"))},n.show=function(t){n.init(),n.$el.show();var i=n.options.zIndex;"function"==typeof i?i=Math.max(i(),10005):(i=10005,e(".plone-modal-wrapper,.plone-modal-backdrop").each(function(){i=Math.max(i,e(this).css("zIndex")||10005)}),i+=1),n.$el.css("zIndex",i),void 0===t&&(t=!0),n.options.backdrop&&(n.options.backdrop.closeOnClick=t,n.options.backdrop.closeOnEsc=t,n.options.backdrop.init(),n.options.backdrop.show())},n.hide=function(){n.init(),n.$el.hide()},n},n=function(e){return void 0===e&&(e="id"),e+Math.floor(65536*(1+Math.random())).toString(16).substring(1)},i={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(t){return"string"==typeof t&&(t=e.trim(t).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(t)},escapeHTML:function(t){return e("<div/>").text(t).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:n,getAuthenticator:function(){var t=e('input[name="_authenticator"]');return 0===t.length?(t=e('a[href*="_authenticator"]')).length>0?t.attr("href").split("_authenticator=")[1]:"":t.val()},getWindow:function(){var e=window;return e.parent!==window&&(e=e.parent),e},Loading:t,loading:new t,parseBodyTag:function(t){return e(/<body[^>]*>((.|[\n\r])*)<\/body>/im.exec(t)[0].replace("<body","<div").replace("</body>","</div>")).eq(0).html()},QueryHelper:function(t){var n=this,i={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};return n.options=e.extend({},i,t),n.pattern=n.options.pattern,void 0!==n.pattern&&null!==n.pattern||(n.pattern={browsing:!1,basePath:"/"}),n.options.url&&!n.options.vocabularyUrl?n.options.vocabularyUrl=n.options.url:n.pattern.vocabularyUrl&&(n.options.vocabularyUrl=n.pattern.vocabularyUrl),n.valid=Boolean(n.options.vocabularyUrl),n.getBatch=function(e){return{page:e||1,size:n.options.batchSize}},n.getCurrentPath=function(){var e,t=n.pattern;"function"==typeof(e=n.currentPath?n.currentPath:t.currentPath)&&(e=e());var i=e;return i||(i=t.basePath?t.basePath:t.options.basePath?t.options.basePath:"/"),i},n.getCriterias=function(t,i){void 0===i&&(i={});var a=[];return(i=e.extend({},{useBaseCriteria:!0,additionalCriterias:[]},i)).useBaseCriteria&&(a=n.options.baseCriteria.slice(0)),t&&(t+="*",a.push({i:n.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:t})),i.searchPath?a.push({i:"path",o:n.options.pathOperator,v:i.searchPath+"::"+n.options.pathDepth}):n.pattern.browsing&&a.push({i:"path",o:n.options.pathOperator,v:n.getCurrentPath()+"::"+n.options.pathDepth}),a=a.concat(i.additionalCriterias)},n.getQueryData=function(e,t){var i={query:JSON.stringify({criteria:n.getCriterias(e),sort_on:n.options.sort_on,sort_order:n.options.sort_order}),attributes:JSON.stringify(n.options.attributes)};return t&&(i.batch=JSON.stringify(n.getBatch(t))),i},n.getUrl=function(){var t=n.options.vocabularyUrl;return-1===t.indexOf("?")?t+="?":t+="&",t+e.param(n.getQueryData())},n.selectAjax=function(){return{url:n.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(e,t){return n.getQueryData(e,t)},results:function(e,t){var n=10*t<e.total;return{results:e.results,more:n}}}},n.search=function(t,i,a,r,s,o){void 0===s&&(s=!0),void 0===o&&(o="GET");var l=[];s&&(l=n.options.baseCriteria.slice(0)),l.push({i:t,o:i,v:a});var d={query:JSON.stringify({criteria:l}),attributes:JSON.stringify(n.options.attributes)};e.ajax({url:n.options.vocabularyUrl,dataType:"JSON",data:d,type:o,success:r})},n},setId:function(e,t){void 0===t&&(t="id");var i=e.attr("id");return i=void 0===i?n(t):i.replace(/\./g,"-"),e.attr("id",i),i},storage:i}}),function(e){define("select2",[],function(){return function(){!function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var n=e([0]),i=-1,a=this.length;++i<a&&(n.context=n[0]=this[i])&&!1!==t.call(n[0],i,n););return this}})}(jQuery),function(e,t){"use strict";function n(t){var n=e(document.createTextNode(""));t.before(n),n.before(t),n.remove()}
2561function i(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return N[e]||e})}function a(e,t){for(var n=0,i=t.length;n<i;n+=1)if(s(e,t[n]))return n;return-1}function r(){var t=e(F);t.appendTo(document.body);var n={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),n}function s(e,n){return e===n||e!==t&&n!==t&&(null!==e&&null!==n&&(e.constructor===String?e+""==n+"":n.constructor===String&&n+""==e+""))}function o(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 l(e){return e.outerWidth(!1)-e.width()}function d(n){var i="keyup-change-value";n.on("keydown",function(){e.data(n,i)===t&&e.data(n,i,n.val())}),n.on("keyup",function(){var a=e.data(n,i);a!==t&&n.val()!==a&&(e.removeData(n,i),n.trigger("keyup-change"))})}function u(n){n.on("mousemove",function(n){var i=P;i!==t&&i.x===n.pageX&&i.y===n.pageY||e(n.target).trigger("mousemove-filtered",n)})}function c(e,n,i){i=i||t;var a;return function(){var t=arguments;window.clearTimeout(a),a=window.setTimeout(function(){n.apply(i,t)},e)}}function h(e,t){var n=c(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){a(e.target,t.get())>=0&&n(e)})}function p(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,n=e[0],i=e.val().length;e.focus(),(n.offsetWidth>0||n.offsetHeight>0)&&n===document.activeElement&&(n.setSelectionRange?n.setSelectionRange(i,i):n.createTextRange&&((t=n.createTextRange()).collapse(!1),t.select()))},0)}function m(t){var n=0,i=0;if("selectionStart"in(t=e(t)[0]))n=t.selectionStart,i=t.selectionEnd-n;else if("selection"in document){t.focus();var a=document.selection.createRange();i=document.selection.createRange().text.length,a.moveStart("character",-t.value.length),n=a.text.length-i}return{offset:n,length:i}}function _(e){e.preventDefault(),e.stopPropagation()}function f(e){e.preventDefault(),e.stopImmediatePropagation()}function g(t){if(!E){var n=t[0].currentStyle||window.getComputedStyle(t[0],null);(E=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e(document.body).append(E)}return E.text(t.val()),E.width()}function y(t,n,i){var a,r,s=[];(a=e.trim(t.attr("class")))&&e((a=""+a).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),(a=e.trim(n.attr("class")))&&e((a=""+a).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(r=i(this))&&s.push(r)}),t.attr("class",s.join(" "))}function v(e,t,n,a){var r=i(e.toUpperCase()).indexOf(i(t.toUpperCase())),s=t.length;r<0?n.push(a(e)):(n.push(a(e.substring(0,r))),n.push("<span class='select2-match'>"),n.push(a(e.substring(r,r+s))),n.push("</span>"),n.push(a(e.substring(r+s,e.length))))}function M(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function L(n){var i,a=null,r=n.quietMillis||100,s=n.url,o=this;return function(l){window.clearTimeout(i),i=window.setTimeout(function(){var i=n.data,r=s,d=n.transport||e.fn.select2.ajaxDefaults.transport,u={type:n.type||"GET",cache:n.cache||!1,jsonpCallback:n.jsonpCallback||t,dataType:n.dataType||"json"},c=e.extend({},e.fn.select2.ajaxDefaults.params,u);i=i?i.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,a&&"function"==typeof a.abort&&a.abort(),n.params&&(e.isFunction(n.params)?e.extend(c,n.params.call(o)):e.extend(c,n.params)),e.extend(c,{url:r,dataType:n.dataType,data:i,success:function(e){var t=n.results(e,l.page,l);l.callback(t)},error:function(e,t,n){var i={hasError:!0,jqXHR:e,textStatus:t,errorThrown:n};l.callback(i)}}),a=d.call(o,c)},r)}}function w(t){var n,i,a=t,r=function(e){return""+e.text};e.isArray(a)&&(a={results:i=a}),!1===e.isFunction(a)&&(i=a,a=function(){return i});var s=a();return s.text&&(r=s.text,e.isFunction(r)||(n=s.text,r=function(e){return e[n]})),function(t){var n,i=t.term,s={results:[]};""!==i?(n=function(a,s){var o,l;if((a=a[0]).children){o={};for(l in a)a.hasOwnProperty(l)&&(o[l]=a[l]);o.children=[],e(a.children).each2(function(e,t){n(t,o.children)}),(o.children.length||t.matcher(i,r(o),a))&&s.push(o)}else t.matcher(i,r(a),a)&&s.push(a)},e(a().results).each2(function(e,t){n(t,s.results)}),t.callback(s)):t.callback(a())}}function b(n){var i=e.isFunction(n);return function(a){var r=a.term,s={results:[]},o=i?n(a):n;e.isArray(o)&&(e(o).each(function(){var e=this.text!==t,n=e?this.text:this;(""===r||a.matcher(r,n))&&s.results.push(e?this:{id:this,text:this})}),a.callback(s))}}function k(t,n){if(e.isFunction(t))return!0;
2561if(!t)return!1;if("string"==typeof t)return!0;throw new Error(n+" must be a string, function, or falsy value")}function Y(t,n){if(e.isFunction(t)){var i=Array.prototype.slice.call(arguments,2);return t.apply(n,i)}return t}function T(t){var n=0;return e.each(t,function(e,t){t.children?n+=T(t.children):n++}),n}function D(){var t=this;e.each(arguments,function(e,n){t[n].remove(),t[n]=null})}function S(t,n){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,n),i}if(window.Select2===t){var x,j,H,C,E,A,O,P={x:0,y:0},$={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 $.LEFT:case $.RIGHT:case $.UP:case $.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case $.SHIFT:case $.CTRL:case $.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},F="<div class='select2-measure-scrollbar'></div>",N={"Ⓐ":"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","Ʋ":"
2561V","Ꝟ":"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=e(document),C=function(){var e=1;return function(){return e++}}(),j=S(x=S(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(n){var i,a;this.opts=n=this.prepareOpts(n),this.id=n.id,n.element.data("select2")!==t&&null!==n.element.data("select2")&&n.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(n.element.attr("id")||"autogen"+C()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",n.element.attr("title")),this.body=e(document.body),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",n.element.attr("style")),this.container.css(Y(n.containerCss,this.opts.element)),this.container.addClass(Y(n.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",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(Y(n.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=i=this.container.find(".select2-results"),this.search=a=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),u(this.results),this.dropdown.on("mousemove-filtered",".select2-results",this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",".select2-results",this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",".select2-results",this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",".select2-results",this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),h(80,this.results),this.dropdown.on("scroll-debounced",".select2-results",this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&i.mousewheel(function(e,t,n,a){var r=i.scrollTop();a>
25610&&r-a<=0?(i.scrollTop(0),_(e)):a<0&&i.get(0).scrollHeight-i.scrollTop()+a<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),_(e))}),d(a),a.on("keyup-change input paste",this.bind(this.updateResults)),a.on("focus",function(){a.addClass("select2-focused")}),a.on("blur",function(){a.removeClass("select2-focused")}),this.dropdown.on("mouseup",".select2-results",this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==n.maximumInputLength&&this.search.attr("maxlength",n.maximumInputLength);var s=n.element.prop("disabled");s===t&&(s=!1),this.enable(!s);var o=n.element.prop("readonly");o===t&&(o=!1),this.readonly(o),O=O||r(),this.autofocus=n.element.prop("autofocus"),n.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",n.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,n=e.data("select2"),i=this;this.close(),e.length&&e[0].detachEvent&&i._sync&&e.each(function(){i._sync&&this.detachEvent("onpropertychange",i._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,n!==t&&(n.container.remove(),n.liveRegion.remove(),n.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())),D.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:s(e.attr("locked"),"locked")||s(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(n){var i,a,r,l,d=this;if("select"===(i=n.element).get(0).tagName.toLowerCase()&&(this.select=a=n.element),a&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in n)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),n.debug=n.debug||e.fn.select2.defaults.debug,n.debug&&console&&console.warn&&(null!=n.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!=n.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!=n.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=n.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=n.ajax&&null!=n.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=n.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=n.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=n.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=n.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=n.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=n.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),n.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=n.element.data("tags")){var u=n.element.data("tags");e.isArray(u)||(u=[]),n.element.data("select2Tags",u)}if(null!=n.sorter&&(n.sortResults=n.sorter),null!=n.selectOnClose&&(n.selectOnBlur=n.selectOnClose),null!=n.ajax&&e.isFunction(n.ajax.processResults)&&(n.ajax.results=n.ajax.processResults),null!=n.language){var c=n.language;e.isFunction(c.noMatches)&&(n.formatNoMatches=c.noMatches),e.isFunction(c.searching)&&(n.formatSearching=c.searching),e.isFunction(c.inputTooShort)&&(n.formatInputTooShort=c.inputTooShort),e.isFunction(c.inputTooLong)&&(n.formatInputTooLong=c.inputTooLong),e.isFunction(c.loadingMore)&&(n.formatLoading=c.loadingMore),e.isFunction(c.maximumSelected)&&(n.formatSelectionTooBig=c.maximumSelected)}if("function"!=typeof(n=e.extend({},{populateResults:function(i,a,r){var s,o=this.opts.id,l=this.liveRegion;(s=function(i,a,u){var c,h,p,m,_,f,g,y,v,M,L=[];for(c=0,h=(i=n.sortResults(i,a,r)).length;c<h;c+=1)m=!(_=!0===(p=i[c]).disabled)&&o(p)!==t,f=p.children&&p.children.length>0,(g=e("<li></li>")).addClass("select2-results-dept-"+u),g.addClass("select2-result"),g.addClass(m?"select2-result-selectable":"select2-result-unselectable"),_&&g.addClass("select2-disabled"),f&&g.addClass("select2-result-with-children"),g.addClass(d.opts.formatResultCssClass(p)),g.attr("role","presentation"),(y=e(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+C()),y.attr("role","option"),(M=n.formatResult(p,y,r,d.opts.escapeMarkup))!==t&&(y.html(M),g.append(y)),f&&((v
2561=e("<ul></ul>")).addClass("select2-result-sub"),s(p.children,v,u+1),g.append(v)),g.data("select2-data",p),L.push(g[0]);a.append(L),l.text(n.formatMatches(i.length))})(a,i,0)}},e.fn.select2.defaults,n)).id&&(r=n.id,n.id=function(e){return e[r]}),e.isArray(n.element.data("select2Tags"))){if("tags"in n)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+n.element.attr("id");n.tags=n.element.data("select2Tags")}if(a?(n.query=this.bind(function(e){var n,a,r,s={results:[],more:!1},o=e.term;r=function(t,n){var i;t.is("option")?e.matcher(o,t.text(),t)&&n.push(d.optionToData(t)):t.is("optgroup")&&(i=d.optionToData(t),t.children().each2(function(e,t){r(t,i.children)}),i.children.length>0&&n.push(i))},n=i.children(),this.getPlaceholder()!==t&&n.length>0&&(a=this.getPlaceholderOption())&&(n=n.not(a)),n.each2(function(e,t){r(t,s.results)}),e.callback(s)}),n.id=function(e){return e.id}):"query"in n||("ajax"in n?((l=n.element.data("ajax-url"))&&l.length>0&&(n.ajax.url=l),n.query=L.call(n.element,n.ajax)):"data"in n?n.query=w(n.data):"tags"in n&&
2561(n.query=b(n.tags),n.createSearchChoice===t&&(n.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),n.initSelection===t&&(n.initSelection=function(t,i){var a=[];e(o(t.val(),n.separator,n.transformVal)).each(function(){var t={id:this,text:this},i=n.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){if(s(this.id,t.id))return t=this,!1}),a.push(t)}),i(a)}))),"function"!=typeof n.query)throw"query function not defined for Select2 "+n.element.attr("id");if("top"===n.createSearchChoicePosition)n.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===n.createSearchChoicePosition)n.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof n.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return n},monitorSource:function(){var n,i=this.opts.element,a=this;i.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var n=i.prop("readonly");n===t&&(n=!1),this.readonly(n),this.container&&(y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(Y(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(Y(this.opts.dropdownCssClass,this.opts.element)))}),i.length&&i[0].attachEvent&&i.each(function(){this.attachEvent("onpropertychange",a._sync)}),(n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new n(function(t){e.each(t,a._sync)}),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var n=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(n),!n.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),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===t&&(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===t&&(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 t,n,i,a,r,s=this.dropdown,o=this.container,l=o.offset(),d=o.outerHeight(!1),u=o.outerWidth(!1),c=s.outerHeight(!1),h=e(window),p=h.width(),m=h.height(),_=h.scrollLeft()+p,f=h.scrollTop()+m,g=l.top+d,y=l.left,v=g+c<=f,M=l.top-c>=h.scrollTop(),L=s.outerWidth(!1);s.hasClass("select2-drop-above")?(n=!0,!M&&v&&(i=!0,n=!1)):(n=!1,!v&&M&&(i=!0,n=!0)),i&&(s.hide(),l=this.container.offset(),d=this.container.outerHeight(!1),u=this.container.outerWidth(!1),c=s.outerHeight(!1),_=h.scrollLeft()+p,f=h.scrollTop()+m,g=l.top+d,y=l.left,L=s.outerWidth(!1),s.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=e(".select2-results",s)[0],s.addClass("select2-drop-auto-width"),s.css("width",""),(L=s.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:O.width))>u?u=L:L=u,c=s.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(g-=(t=this.body.offset()).top,y-=t.left),!(y+L<=_)&&l.left+_+o.outerWidth(!1)>L&&(y=l.left+this.container.outerWidth(!1)-L),a={left:y,width:u},n?(this.container.addClass("select2-drop-above"),s.addClass("select2-drop-above"),c=s.outerHeight(!1),a.top=l.top-c,a.bottom="auto"):(a.top=g,a.bottom="auto",this.container.removeClass("select2-drop-above"),s.removeClass("select2-drop-above")),a=e.extend(a,Y(this.opts.dropdownCss,this.opts.element)),s.css(a)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.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){P.x=e.pageX,P.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,a="scroll."+i,r="resize."+i,s="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last(
2561)[0]&&this.dropdown.detach().appendTo(this.body),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){n(t);var a,r=e("#select2-drop");r.length>0&&((a=r.data("select2")).opts.selectOnBlur&&a.selectHighlighted({noFocus:!0}),a.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var o=this;this.container.parents().add(window).each(function(){e(this).on(r+" "+a+" "+s,function(e){o.opened()&&o.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,n="scroll."+t,i="resize."+t,a="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(n).off(i).off(a)}),this.clearDropdownAlignmentPreference(),e("#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(e.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!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return Y(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,n,i,a,r,s,o,l,d=this.results;(n=this.highlight())<0||(0!=n?(t=this.findHighlightableChoices().find(".select2-result-label"),a=(l=((i=e(t[n])).offset()||{}).top||0)+i.outerHeight(!0),n===t.length-1&&(o=d.find("li.select2-more-results")).length>0&&(a=o.offset().top+o.outerHeight(!0)),a>(r=d.offset().top+d.outerHeight(!1))&&d.scrollTop(d.scrollTop()+(a-r)),(s=l-d.offset().top)<0&&"none"!=i.css("display")&&d.scrollTop(d.scrollTop()+s)):d.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var n=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<n.length;){var a=e(n[i+=t]);if(a.hasClass("select2-result-selectable")&&!a.hasClass("select2-disabled")&&!a.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var n,i,r=this.findHighlightableChoices();if(0===arguments.length)return a(r.filter(".select2-highlighted")[0],r.get());t>=r.length&&(t=r.length-1),t<0&&(t=0),this.removeHighlight(),(n=e(r[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",n.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(n.text()),(i=n.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(i),choice:i})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var n=e(t.target).closest(".select2-result-selectable");if(n.length>0&&!n.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(n))}else 0==n.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),n=this.resultsPage+1,i=this,a=this.search.val(),r=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:n,context:r,matcher:this.opts.matcher,callback:this.bind(function(s){i.opened()&&(i.opts.populateResults.call(this,e,s.results,{term:a,page:n,context:r}
2561),i.postprocessResults(s,!1,!1),!0===s.more?(t.detach().appendTo(e).html(i.opts.escapeMarkup(Y(i.opts.formatLoadMore,i.opts.element,n+1))),window.setTimeout(function(){i.loadMoreIfNeeded()},10)):t.remove(),i.positionDropdown(),i.resultsPage=n,i.context=s.context,this.opts.element.trigger({type:"select2-loaded",items:s}))})}))},tokenize:function(){},updateResults:function(n){function i(){d.removeClass("select2-active"),h.positionDropdown(),u.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?h.liveRegion.text(u.text()):h.liveRegion.text(h.opts.formatMatches(u.find('.select2-result-selectable:not(".select2-selected")').length))}function a(e){u.html(e),i()}var r,o,l,d=this.search,u=this.results,c=this.opts,h=this,p=d.val(),m=e.data(this.container,"select2-last-term");if((!0===n||!m||!s(p,m))&&(e.data(this.container,"select2-last-term",p),!0===n||!1!==this.showSearchInput&&this.opened())){l=++this.queryCount;var _=this.getMaximumSelectionSize();if(!(_>=1&&(r=this.data(),e.isArray(r)&&r.length>=_&&k(c.formatSelectionTooBig,"formatSelectionTooBig"))))return d.val().length<c.minimumInputLength?(a(k(c.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+Y(c.formatInputTooShort,c.element,d.val(),c.minimumInputLength)+"</li>":""),void(n&&this.showSearch&&this.showSearch(!0))):void(c.maximumInputLength&&d.val().length>c.maximumInputLength?a(k(c.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+Y(c.formatInputTooLong,c.element,d.val(),c.maximumInputLength)+"</li>":""):(c.formatSearching&&0===this.findHighlightableChoices().length&&a("<li class='select2-searching'>"+Y(c.formatSearching,c.element)+"</li>"),d.addClass("select2-active"),this.removeHighlight(),(o=this.tokenize())!=t&&null!=o&&d.val(o),this.resultsPage=1,c.query({element:c.element,term:d.val(),page:this.resultsPage,context:null,matcher:c.matcher,callback:this.bind(function(r){var o;if(l==this.queryCount)if(this.opened())if(r.hasError!==t&&k(c.formatAjaxError,"formatAjaxError"))a("<li class='select2-ajax-error'>"+Y(c.formatAjaxError,c.element,r.jqXHR,r.textStatus,r.errorThrown)+"</li>");else{if(this.context=r.context===t?null:r.context,this.opts.createSearchChoice&&""!==d.val()&&(o=this.opts.createSearchChoice.call(h,d.val(),r.results))!==t&&null!==o&&h.id(o)!==t&&null!==h.id(o)&&0===e(r.results).filter(function(){return s(h.id(this),h.id(o))}).length&&this.opts.createSearchChoicePosition(r.results,o),0===r.results.length&&k(c.formatNoMatches,"formatNoMatches"))return a("<li class='select2-no-results'>"+Y(c.formatNoMatches,c.element,d.val())+"</li>"),void(this.showSearch&&this.showSearch(d.val()));u.empty(),h.opts.populateResults.call(this,u,r.results,{term:d.val(),page:this.resultsPage,context:null}),!0===r.more&&k(c.formatLoadMore,"formatLoadMore")&&(u.append("<li class='select2-more-results'>"+c.escapeMarkup(Y(c.formatLoadMore,c.element,this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(r,n),i(),this.opts.element.trigger({type:"select2-loaded",items:r})}else this.search.removeClass("select2-active")})})));a("<li class='select2-selection-limit'>"+Y(c.formatSelectionTooBig,c.element,_)+"</li>")}},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(){p(this.search)},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())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var n=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&n||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(n.text())&&""===n.val())return n}},initContainerWidth:function(){var t=function(){var t,n,i,a,r,s;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){if("string"==typeof(t=this.opts.element.attr("style")))for(a=0,r=(n=t.split(";")).length;a<r;a+=1)if(s=n[a].replace(/\s/g,""),null!==(i=s.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&i.length>=1)return i[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==t&&this.container.css("width",t)}}),{createContainer:function(){return e(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 t,n,i;this.opts.minimumResultsForSearch>=0&&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(),(t=this.search.get(0)).createTextRange?((n=t.createTextRange()).collapse(!1),n.select()):t.setSelectionRange&&(i=this.search.val().length,t.setSelectionRange(i,i))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.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(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),D.call(this,"selection","focusser")},initContainer:function(){var t,i,a=this.container,r=this.dropdown,s=C();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=a.find(".select2-choice"),this.focusser=a.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+s),this.focusser.attr("aria-labelledby","select2-chosen-"+s),this.results.attr("id","select2-results-"+s),this.search.attr("aria-owns","select2-results-"+s),this.focusser.attr("id","s2id_autogen"+s),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("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!==$.PAGE_UP&&e.which!==$.PAGE_DOWN)switch(e.which){case $.UP:case $.DOWN:return this.moveHighlight(e.which===$.UP?-1:1),void _(e);case $.ENTER:return this.selectHighlighted(),void _(e);case $.TAB:return void this.selectHighlighted({noFocus:!0});case $.ESC:return this.cancel(e),void _(e)}else _(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)}
2561)),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==$.TAB&&!$.isControl(e)&&!$.isFunctionKey(e)&&e.which!==$.ESC){if(!1!==this.opts.openOnEnter||e.which!==$.ENTER){if(e.which==$.DOWN||e.which==$.UP||e.which==$.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void _(e)}return e.which==$.DELETE||e.which==$.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(e)):void 0}_(e)}})),d(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),f(e),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){n(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(i)})),r.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var n=this.selection.data("select2-data");if(n){var i=e.Event("select2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var a=this.getPlaceholderOption();this.opts.element.val(a?a.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var a=n.val(),r=null;t.query({matcher:function(e,n,i){var o=s(a,t.id(i));return o&&(r=i),o},callback:e.isFunction(i)?function(){i(r)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)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(s(a.id(t.data("select2-data")),a.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&i>=0?this.highlight(i):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(T(e.results)>=r)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},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(),s(n,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var n,i,a=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),a.empty(),null!==e&&(n=this.opts.formatSelection(e,a,this.opts.escapeMarkup)),n!==t&&a.append(n),(i=this.opts.formatSelectionCssClass(e,a))!==t&&a.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,n=!1,i=null,a=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(n=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 i=a.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),n&&this.triggerChange({added:i,removed:r});else{if(!e&&0!==e)return void this.clear(n);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){a.opts.element.val(e?a.id(e):""),a.updateSelection(e),a.setPlaceholder(),n&&a.triggerChange({added:e,removed:r})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var n,i=!1;if(0===arguments.length)return(n=this.selection.data("select2-data"))==t&&(n=null),n;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.'),arguments.length>1&&(i=arguments[1]),e?(n=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:n})):this.clear(i)}}),H=S(x,{createContainer:function(){return e(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 t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){i.push(n.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var a=o(n.val(),t.separator,t.transformVal),r=[];t.query({matcher:function(n,i,o){var l=e.grep(a,function(e){return s(e,t.id(o))}).length;return l&&r.push(o),l},callback:e.isFunction(i)?function(){for(var e=[],n=0;n<a.length;n++)for(var o=a[n],l=0;l<r.length;l++){var d=r[l];if(s(o,t.id(d))){e.push(d),r.splice(l,1);break}}i(e)}:e.noop})}),t},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(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),D.call(this,"searchContainer","selection")},initContainer:function(){var t,n=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(n);var i=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+C()),this.search.prev().text(e("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;
2561var n=t.find(".select2-search-choice-focus"),i=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=m(this.search);if(n.length&&(e.which==$.LEFT||e.which==$.RIGHT||e.which==$.BACKSPACE||e.which==$.DELETE||e.which==$.ENTER)){var s=n;return e.which==$.LEFT&&i.length?s=i:e.which==$.RIGHT?s=a.length?a:null:e.which===$.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),s=i.length?i:a):e.which==$.DELETE?this.unselect(n.first())&&(this.search.width(10),s=a.length?a:null):e.which==$.ENTER&&(s=null),this.selectChoice(s),_(e),void(s&&s.length||this.open())}if((e.which===$.BACKSPACE&&1==this.keydowns||e.which==$.LEFT)&&0==r.offset&&!r.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void _(e);if(this.selectChoice(null),this.opened())switch(e.which){case $.UP:case $.DOWN:return this.moveHighlight(e.which===$.UP?-1:1),void _(e);case $.ENTER:return this.selectHighlighted(),void _(e);case $.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case $.ESC:return this.cancel(e),void _(e)}if(e.which!==$.TAB&&!$.isControl(e)&&!$.isFunctionKey(e)&&e.which!==$.BACKSPACE&&e.which!==$.ESC){if(e.which===$.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==$.PAGE_UP&&e.which!==$.PAGE_DOWN||_(e),e.which===$.ENTER&&_(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",n,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",n,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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 e=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),n=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(n>0?n: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(e.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(t){var n={},i=[],a=this;e(t).each(function(){a.id(this)in n||(n[a.id(this)]=0,i.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(i),a.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!=t&&(this.search.val(e),e.length>0&&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)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&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(t){var n=this.getVal(),i=this;e(t).each(function(){n.push(i.createChoice(this))}),this.setVal(n)},createChoice:function(n){var i,a,r=!n.locked,s=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?s:o,d=this.id(n);return(i=this.opts.formatSelection(n,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith(e("<div></div>").html(i)),(a=this.opts.formatSelectionCssClass(n,l.find("div")))!=t&&l.addClass(a),r&&l.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",n),l.insertBefore(this.searchContainer),d},unselect:function(t){var n,i,r=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(n=t.data("select2-data")){var s=e.Event("select2-removing");if(s.val=this.id(n),s.choice=n,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;(i=a(this.id(n),r))>=0;
2561)r.splice(i,1),this.setVal(r),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),r=this.results.find(".select2-result"),s=this.results.find(".select2-result-with-children"),o=this;r.each2(function(e,t){a(o.id(t.data("select2-data")),i)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),s.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&&o.highlight(0),!this.opts.createSearchChoice&&!r.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&k(o.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+Y(o.opts.formatNoMatches,o.opts.element,o.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-l(this.search)},resizeSearch:function(){var e,t,n,i,a=l(this.search);e=g(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:(e=this.opts.element.val(),o(e,this.opts.separator,this.opts.transformVal))},setVal:function(t){if(this.select)this.select.val(t);else{var n=[],i={};e(t).each(function(){this in i||(n.push(this),i[this]=0)}),this.opts.element.val(0===n.length?"":n.join(this.opts.separator))}},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(s(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(n,i){var a,r=this;if(0===arguments.length)return this.getVal();if((a=this.data()).length||(a=[]),!n&&0!==n)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:a}));if(this.setVal(n),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(a,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var n=e.map(t,r.id);r.setVal(n),r.updateSelection(t),r.clearSearch(),i&&r.triggerChange(r.buildChangeDetails(a,r.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 t=[],n=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(n.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,n){var i,a,r=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();a=this.data(),t||(t=[]),i=e.map(t,function(e){return r.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),n&&this.triggerChange(this.buildChangeDetails(a,this.data()))}}),e.fn.select2=function(){var n,i,r,s,o,l=Array.prototype.slice.call(arguments,0),d=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],u=["opened","isFocused","container","dropdown"],c=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===l.length||"object"==typeof l[0])(n=0===l.length?{}:e.extend({},l[0])).element=e(this),"select"===n.element.get(0).tagName.toLowerCase()?o=n.element.prop("multiple"):(o=n.multiple||!1,"tags"in n&&
2561(n.multiple=o=!0)),(i=o?new window.Select2.class.multi:new window.Select2.class.single).init(n);else{if("string"!=typeof l[0])throw"Invalid arguments to select2 plugin: "+l;if(a(l[0],d)<0)throw"Unknown method: "+l[0];if(s=t,(i=e(this).data("select2"))===t)return;if("container"===(r=l[0])?s=i.container:"dropdown"===r?s=i.dropdown:(h[r]&&(r=h[r]),s=i[r].apply(i,l.slice(1))),a(l[0],u)>=0||a(l[0],c)>=0&&1==l.length)return!1}}),s===t?this:s},e.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(t){return e.trim(t)},formatSelection:function(e,n,i){return e?i(this.text(e)):t},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,n){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return i(""+t).toUpperCase().indexOf(i(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,n,i,a){var r,o,l,d,u,c=e,h=!1;if(!a.createSearchChoice||!a.tokenSeparators||a.tokenSeparators.length<1)return t;for(;;){for(o=-1,l=0,d=a.tokenSeparators.length;l<d&&(u=a.tokenSeparators[l],!((o=e.indexOf(u))>=0));l++);if(o<0)break;if(r=e.substring(0,o),e=e.substring(o+u.length),r.length>0&&(r=a.createSearchChoice.call(this,r,n))!==t&&null!==r&&a.id(r)!==t&&null!==a.id(r)){for(h=!1,l=0,d=n.length;l<d;l++)if(s(a.id(r),a.id(n[l]))){h=!0;break}h||i(r)}}return c!==e?e:void 0},escapeMarkup:M,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,n){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.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…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:L,local:w,tags:b},util:{debounce:c,markMatch:v,escapeMarkup:M,stripDiacritics:i},class:{abstract:x,single:j,multi:H}}}}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drag",["jquery"],function(){return function(){!function(e){e.fn.drag=function(t,n,i){var a="string"==typeof t?t:"",r=e.isFunction(t)?t:e.isFunction(n)?n:null;return 0!==a.indexOf("drag")&&(a="drag"+a),i=(t==r?n:i)||{},r?this.bind(a,i,r):this.trigger(a)};var t=e.event,n=t.special,i=n.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var n=e.data(this,i.datakey),a=t.data||{};n.related+=1,e.each(i.defaults,function(e,t){void 0!==a[e]&&(n[e]=a[e])})},remove:function(){e.data(this,i.datakey).related-=1},setup:function(){if(!e.data(this,i.datakey)){var n=e.extend({related:0},i.defaults);e.data(this,i.datakey,n),t.add(this,"touchstart mousedown",i.init,n),this.attachEvent&&this.attachEvent("ondragstart",i.dontstart)}},teardown:function(){(e.data(this,i.datakey)||{}).related||(e.removeData(this,i.datakey),t.remove(this,"touchstart mousedown",i.init),i.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",i.dontstart))}
2561,init:function(a){if(!i.touched){var r,s=a.data;if(!(0!=a.which&&s.which>0&&a.which!=s.which)&&!e(a.target).is(s.not)&&(!s.handle||e(a.target).closest(s.handle,a.currentTarget).length)&&(i.touched="touchstart"==a.type?this:null,s.propagates=1,s.mousedown=this,s.interactions=[i.interaction(this,s)],s.target=a.target,s.pageX=a.pageX,s.pageY=a.pageY,s.dragging=null,r=i.hijack(a,"draginit",s),s.propagates))return(r=i.flatten(r))&&r.length&&(s.interactions=[],e.each(r,function(){s.interactions.push(i.interaction(this,s))})),s.propagates=s.interactions.length,!1!==s.drop&&n.drop&&n.drop.handler(a,s),i.textselect(!1),i.touched?t.add(i.touched,"touchmove touchend",i.handler,s):t.add(document,"mousemove mouseup",i.handler,s),!(!i.touched||s.live)&&void 0}},interaction:function(t,n){var a=e(t)[n.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new i.callback,droppable:[],offset:a}},handler:function(a){var r=a.data;switch(a.type){case!r.dragging&&"touchmove":a.preventDefault();case!r.dragging&&"mousemove":if(Math.pow(a.pageX-r.pageX,2)+Math.pow(a.pageY-r.pageY,2)<Math.pow(r.distance,2))break;a.target=r.target,i.hijack(a,"dragstart",r),r.propagates&&(r.dragging=!0);case"touchmove":a.preventDefault();case"mousemove":if(r.dragging){if(i.hijack(a,"drag",r),r.propagates){!1!==r.drop&&n.drop&&n.drop.handler(a,r);break}a.type="mouseup"}case"touchend":case"mouseup":default:i.touched?t.remove(i.touched,"touchmove touchend",i.handler):t.remove(document,"mousemove mouseup",i.handler),r.dragging&&(!1!==r.drop&&n.drop&&n.drop.handler(a,r),i.hijack(a,"dragend",r)),i.textselect(!0),!1===r.click&&r.dragging&&e.data(r.mousedown,"suppress.click",(new Date).getTime()+5),r.dragging=i.touched=!1}},hijack:function(n,a,r,s,o){if(r){var l,d,u,c={event:n.originalEvent,type:n.type},h=a.indexOf("drop")?"drag":"drop",p=s||0,m=isNaN(s)?r.interactions.length:s;n.type=a,n.originalEvent=null,r.results=[];do{if(d=r.interactions[p]){if("dragend"!==a&&d.cancelled)continue;u=i.properties(n,r,d),d.results=[],e(o||d[h]||r.droppable).each(function(s,o){if(u.target=o,n.isPropagationStopped=function(){return!1},!1===(l=o?t.dispatch.call(o,n,u):null)?("drag"==h&&(d.cancelled=!0,r.propagates-=1),"drop"==a&&(d[h][s]=null)):"dropinit"==a&&d.droppable.push(i.element(l)||o),"dragstart"==a&&(d.proxy=e(i.element(l)||d.drag)[0]),d.results.push(l),delete n.result,"dropinit"!==a)return l}),r.results[p]=i.flatten(d.results),"dropinit"==a&&(d.droppable=i.flatten(d.droppable)),"dragstart"!=a||d.cancelled||u.update()}}while(++p<m);return n.type=c.type,n.originalEvent=c.event,i.flatten(r.results)}},properties:function(e,t,n){var a=n.callback;return a.drag=n.drag,a.proxy=n.proxy||n.drag,a.startX=t.pageX,a.startY=t.pageY,a.deltaX=e.pageX-t.pageX,a.deltaY=e.pageY-t.pageY,a.originalX=n.offset.left,a.originalY=n.offset.top,a.offsetX=a.originalX+a.deltaX,a.offsetY=a.originalY+a.deltaY,a.drop=i.flatten((n.drop||[]).slice()),a.available=i.flatten((n.droppable||[]).slice()),a},element:function(e){if(e&&(e.jquery||1==e.nodeType))return e},flatten:function(t){return e.map(t,function(t){return t&&t.jquery?e.makeArray(t):t&&t.length?i.flatten(t):t})},textselect:function(t){e(document)[t?"unbind":"bind"]("selectstart",i.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};i.callback.prototype={update:function(){n.drop&&this.available.length&&e.each(this.available,function(e){n.drop.locate(this,e)})}};var a=t.dispatch;t.dispatch=function(t){if(!(e.data(this,"suppress."+t.type)-(new Date).getTime()>0))return a.apply(this,arguments);e.removeData(this,"suppress."+t.type)};var r=t.fixHooks.touchstart=t.fixHooks.touchmove=t.fixHooks.touchend=t.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(t,n){if(n){var i=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0]||null;i&&e.each(r.props,function(e,n){t[n]=i[n]})}return t}}}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drop",["jquery"],function(){return function(){return function(e){e.fn.drop=function(t,n,i){var a="string"==typeof t?t:"",r=e.isFunction(t)?t:e.isFunction(n)?n:null;return 0!==a.indexOf("drop")&&(a="drop"+a),i=(t==r?n:i)||{},r?this.bind(a,i,r):this.trigger(a)},e.drop=function(t){t=t||{},n.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?n.multi:t.multi,n.delay=t.delay||n.delay,n.tolerance=e.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:n.tolerance,n.mode=t.mode||n.mode||"intersect"};var t=e.event.special,n=e.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){e.data(this,n.datakey).related+=1},remove:function(){e.data(this,n.datakey).related-=1},setup:function(){if(!e.data(this,n.datakey)){var t={related:0,active:[],anyactive:0,winner:0,location:{}};e.data(this,n.datakey,t),n.targets.push(this)}},teardown:function(){if(!(e.data(this,n.datakey)||{}).related){e.removeData(this,n.datakey);var t=this;n.targets=e.grep(n.targets,function(e){return e!==t})}},handler:function(i,a){var r;if(a)switch(i.type){case"mousedown":case"touchstart":r=e(n.targets),"string"==typeof a.drop&&(r=r.filter(a.drop)),r.each(function(){var t=e.data(this,n.datakey);t.active=[],t.anyactive=0,t.winner=0}),a.droppable=r,t.drag.hijack(i,"dropinit",a);break;case"mousemove":case"touchmove":n.event=i,n.timer||n.tolerate(a);break;case"mouseup":case"touchend":n.timer=clearTimeout(n.timer),a.propagates&&(t.drag.hijack(i,"drop",a),t.drag.hijack(i,"dropend",a))}},locate:function(t,i){var a=e.data(t,n.datakey),r=e(t),s=r.offset()||{},o=r.outerHeight(),l=r.outerWidth(),d={elem:t,width:l,height:o,top:s.top,left
2561:s.left,right:s.left+l,bottom:s.top+o};return a&&(a.location=d,a.index=i,a.elem=t),d},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(i){var a,r,s,o,l,d,u,c,h=0,p=i.interactions.length,m=[n.event.pageX,n.event.pageY],_=n.tolerance||n.modes[n.mode];do{if(c=i.interactions[h]){if(!c)return;c.drop=[],l=[],d=c.droppable.length,_&&(s=n.locate(c.proxy)),a=0;do{if(u=c.droppable[a]){if(o=e.data(u,n.datakey),!(r=o.location))continue;o.winner=_?_.call(n,n.event,s,r):n.contains(r,m)?1:0,l.push(o)}}while(++a<d);l.sort(n.sort),a=0;do{(o=l[a])&&(o.winner&&c.drop.length<n.multi?(o.active[h]||o.anyactive||(!1!==t.drag.hijack(n.event,"dropstart",i,h,o.elem)[0]?(o.active[h]=1,o.anyactive+=1):o.winner=0),o.winner&&c.drop.push(o.elem)):o.active[h]&&1==o.anyactive&&(t.drag.hijack(n.event,"dropend",i,h,o.elem),o.active[h]=0,o.anyactive-=1))}while(++a<d)}}while(++h<p);n.last&&m[0]==n.last.pageX&&m[1]==n.last.pageY?delete n.timer:n.timer=setTimeout(function(){n.tolerate(i)},n.delay),n.last=n.event}};t.dropinit=t.dropstart=t.dropend=n}(jQuery),$.drop}.apply(e,arguments)})}(this),define("mockup-patterns-select2",["jquery","pat-base","mockup-utils","select2","jquery.event.drag","jquery.event.drop"],function(e,t,n){"use strict";return t.extend({name:"select2",trigger:".pat-select2",parser:"mockup",defaults:{separator:","},initializeValues:function(){var t=this;t.options.initialValues&&(t.options.id=function(e){return e.id},t.options.initSelection=function(i,a){var r=[],s=i.val(),o=t.options.initialValues;"string"==typeof t.options.initialValues&&""!==t.options.initialValues&&("{"===t.options.initialValues[0]?o=JSON.parse(t.options.initialValues):(o={},e(t.options.initialValues.split(t.options.separator)).each(function(){var t=this.split(":"),n=e.trim(t[0]),i=e.trim(t[1]);o[n]=i}))),e(s.split(t.options.separator)).each(function(){var e=this;o[this]&&(e=o[this]),r.push({id:n.removeHTML(this),text:n.removeHTML(e)})}),a(r)})},initializeTags:function(){var t=this;t.options.tags&&"string"==typeof t.options.tags&&("["===t.options.tags.substr(0,1)?t.options.tags=JSON.parse(t.options.tags):t.options.tags=t.options.tags.split(t.options.separator)),t.options.tags&&!t.options.allowNewItems&&(t.options.data=e.map(t.options.tags,function(e,t){return{id:e,text:e}}),t.options.multiple=!0,delete t.options.tags)},initializeOrdering:function(){var t=this;if(t.options.orderable){var n=function(e,t){return e?e.text:void 0};t.options.formatSelection&&(n=t.options.formatSelection),t.options.formatSelection=function(i,a){return a.parents("li").drag("start",function(n,i){return e(this).addClass("select2-choice-dragging"),t.$el.select2("onSortStart"),e.drop({tolerance:function(t,n,i){var a=t.pageY>i.top+i.height/2;return e.data(i.elem,"drop+reorder",a?"insertAfter":"insertBefore"),this.contains(i,[t.pageX,t.pageY])}}),e(this).clone().addClass("dragging").css({opacity:.75,position:"absolute"}).appendTo(document.body)}).drag(function(t,n){e(n.proxy).css({top:n.offsetY,left:n.offsetX});var i=n.drop[0],a=e.data(i||{},"drop+reorder");!i||i==n.current&&a==n.method||(e(this)[a](i),n.current=i,n.method=a,n.update())}).drag("end",function(n,i){e(this).removeClass("select2-choice-dragging"),t.$el.select2("onSortEnd"),e(i.proxy).remove()}).drop("init",function(e,t){return this!=t.drag}),n(i,a)}}},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 t=this;if(t.options.allowNewItems=!t.options.hasOwnProperty("allowNewItems")||JSON.parse(t.options.allowNewItems),t.options.ajax||t.options.vocabularyUrl){t.options.vocabularyUrl&&(t.options.multiple=void 0===t.options.multiple||t.options.multiple,t.options.ajax=t.options.ajax||{},t.options.ajax.url=t.options.vocabularyUrl,t.options.initSelection=function(i,a){var r=[],s=i.val();e(s.split(t.options.separator)).each(function(){var e=n.removeHTML(this);r.push({id:e,text:e})}),a(r)});var i="";t.options.ajax=e.extend({quietMillis:300,data:function(e,t){return i=e,{query:e,page_limit:10,page:t}},results:function(a,r){var s=a.results;if(t.options.vocabularyUrl){var o=[];e.each(a.results,function(e,t){o.push(t.id)}),s=[];var l=""===i||e.inArray(i,o)>=0;t.options.allowNewItems&&!l&&(i=n.removeHTML(i),s.push({id:i,text:i})),e.each(a.results,function(e,t){s.push(t)})}return{results:s}}},t.options.ajax)}else if(t.options.multiple&&t.$el.is("select")){var a=t.$el.val()||[],r=e.map(t.$el.find("option"),function(t){return{text:e(t).html(),id:t.value}}),s=e('<input type="hidden" />');s.val(a.join(t.options.separator)),s.attr("class",t.$el.attr("class")),s.attr("name",t.$el.attr("name")),s.attr("id",t.$el.attr("id")),t.$orig=t.$el,t.$el.replaceWith(s),t.$el=s,t.options.data=r}t.initializeValues(),t.initializeTags(),t.initializeOrdering(),t.initializeSelect2()}})}),define("mockup-i18n",["jquery"],function(e){"use strict";return function(){var t=this;t.baseUrl=e("body").attr("data-i18ncatalogurl"),t.baseUrl||(t.baseUrl="/plonejsi18n"),t.currentLanguage=e("html").attr("lang")||"en-us",t.storage=null,t.catalogs={},t.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(t.storage=window.localStorage)}catch(e){}t.configure=function(e){for(var n in e)t[n]=e[n]},t._setCatalog=function(e,n,i){e in t.catalogs?t.catalogs[e][n]=i:(t.catalogs[e]={},t.catalogs[e][n]=i)},t._storeCatalog=function(e,n,i){var a=e+"-"+n;null!==t.storage&&null!==i&&(t.storage.setItem(a,JSON.stringify(i)),t.storage.setItem(a+"-updated",Date.now()))},t.getUrl=function(e,n){return t.baseUrl+"?domain="+e+"&language="+n}
2561,t.loadCatalog=function(n,i){if(void 0===i&&(i=t.currentLanguage),null!==t.storage){var a=n+"-"+i;if(a in t.storage&&Date.now()-parseInt(t.storage.getItem(a+"-updated"),10)<t.ttl){var r=JSON.parse(t.storage.getItem(a));return void t._setCatalog(n,i,r)}}e.getJSON(t.getUrl(n,i),function(e){null!==e&&(t._setCatalog(n,i,e),t._storeCatalog(n,i,e))})},t.MessageFactory=function(e,n){return n=n||t.currentLanguage,function(i,a){var r;if(r=e in t.catalogs&&n in t.catalogs[e]&&i in t.catalogs[e][n]?t.catalogs[e][n][i]:i,a){var s,o;for(o in a)a.hasOwnProperty(o)&&(s=new RegExp("\\$\\{"+o+"\\}","g"),r=r.replace(s,a[o]))}return r}}}}),define("translate",["mockup-i18n"],function(e){"use strict";var t=null;return function(n,i){if(null===t){var a=new e;a.loadCatalog("widgets"),t=a.MessageFactory("widgets")}return t(n,i)}}),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(e){function t(r,o,c,h){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",D.component.nodes(w.open),k.box),k.wrap),k.frame),k.holder,'tabindex="-1"')}function m(){Y.data(o,D).addClass(k.input).val(Y.data("value")?D.get("select",b.format):r.value),b.editable||Y.on("focus."+w.id+" click."+w.id,function(e){e.preventDefault(),D.open()}).on("keydown."+w.id,M),a(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"})}function _(){a(D.$root[0],"hidden",!0)}function f(){D.$holder.on({keydown:M,"focus.toOpen":v,blur:function(){Y.removeClass(k.target)},focusin:function(e){D.$root.removeClass(k.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=D.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),D.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),i=t.hasClass(k.navDisabled)||t.hasClass(k.disabled),a=s();a=a&&(a.type||a.href),(i||a&&!e.contains(D.$root[0],a))&&D.$holder[0].focus(),!i&&n.nav?D.set("highlight",D.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?(D.set("select",n.pick),b.closeOnSelect&&D.close(!0)):n.clear?(D.clear(),b.closeOnClear&&D.close(!0)):n.close&&D.close(!0)})}function g(){var t;!0===b.hiddenName?(t=r.name,r.name=""):t=(t=["string"==typeof b.hiddenPrefix?b.hiddenPrefix:"","string"==typeof b.hiddenSuffix?b.hiddenSuffix:"_submit"])[0]+r.name+t[1],D._hidden=e('<input type=hidden name="'+t+'"'+(Y.data("value")||r.value?' value="'+D.get("select",b.formatSubmit)+'"':"")+">")[0],Y.on("change."+w.id,function(){D._hidden.value=r.value?D.get("select",b.formatSubmit):""})}function y(){L&&u?D.$holder.find("."+k.frame).one("transitionend",function(){D.$holder[0].focus()}):D.$holder[0].focus()}function v(e){e.stopPropagation(),Y.addClass(k.target),D.$root.addClass(k.focused),D.open()}function M(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return D.close(!0),!1;(32==t||n||!w.open&&D.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?D.clear().close():D.open())}if(!r)return t;var L=!1,w={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},b=c?e.extend(!0,{},c.defaults,h):h||{},k=e.extend({},t.klasses(),b.klass),Y=e(r),T=function(){return this.start()},D=T.prototype={constructor:T,$node:Y,start:function(){return w&&w.start?D:(w.methods={},w.start=!0,w.open=!1,w.type=r.type,r.autofocus=r==s(),r.readOnly=!b.editable,r.id=r.id||w.id,"text"!=r.type&&(r.type="text"),D.component=new c(D,b),D.$root=e('<div class="'+k.picker+'" id="'+r.id+'_root" />'),_(),D.$holder=e(p()).appendTo(D.$root),f(),b.formatSubmit&&g(),m(),b.containerHidden?e(b.containerHidden).append(D._hidden):Y.after(D._hidden),b.container?e(b.container).append(D.$root):Y.after(D.$root),D.on({start:D.component.onStart,render:D.component.onRender,stop:D.component.onStop,open:D.component.onOpen,close:D.component.onClose,set:D.component.onSet}).on({start:b.onStart,render:b.onRender,stop:b.onStop,open:b.onOpen,close:b.onClose,set:b.onSet}),L=n(D.$holder[0]),r.autofocus&&D.open(),D.trigger("start").trigger("render"))},render:function(t){return t?(D.$holder=e(p()),f(),D.$root.html(D.$holder)):D.$root.find("."+k.box).html(D.component.nodes(w.open)),D.trigger("render")},stop:function(){return w.start?(D.close(),D._hidden&&D._hidden.parentNode.removeChild(D._hidden),D.$root.remove(),Y.removeClass(k.input).removeData(o),setTimeout(function(){Y.off("."+w.id)},0),r.type=w.type,r.readOnly=!1,D.trigger("stop"),w.methods={},w.start=!1,D):D},open:function(n){return w.open?D:(Y.addClass(k.active),a(r,"expanded",!0),setTimeout(function(){D.$root.addClass(k.opened),a(D.$root[0],"hidden",!1)},0),!1!==n&&(w.open=!0,L&&d.css("overflow","hidden").css("padding-right","+="+i()),y(),l.on("click."+w.id+" focusin."+w.id,function(e){var t=e.target;t!=r&&t!=document&&3!=e.which&&D.close(t===D.$holder[0])}).on("keydown."+w.id,function(n){var i=n.keyCode,a=D.component.key[i],r=n.target;27==i?D.close(!0):r!=D.$holder[0]||!a&&13!=i?e.contains(D.$root[0],r)&&13==i&&(n.preventDefault(),r.click()):(n.preventDefault(),a?t._.trigger(D.component.key.go,D,[t._.trigger(a)]):D.$root.find("."+k.highlighted).hasClass(k.disabled)||(D.set("select",D.component.item.highlight),b.closeOnSelect&&D.close(!0)))})),D.trigger("open"))},close:function(e){return e&&(b.editable?r.focus():(D.$holder.off("focus.toOpen").focus(),setTimeout(function(){D.$holder.on("focus.toOpen",v)},0))),Y.removeClass(k.active),a(r,"expanded",!1),setTimeout(function(){D.$root.removeClass(k.opened+" "+k.focused),a(D.$root[0],"hidden",!0)},0),w.open?(w.open=!1,L&&d.css("overflow","").css("padding-right","-="+i()),l.off("."+w.id),D.trigger("close")):D},clear:function(e){return D.set("clear",null,e)},set:function(t,n,i){var a,r,s=e.isPlainObject(t),o=s?t:{};if(i=s&&e.isPlainObject(n)?n:i||{},t){s||(o[t]=n);for(a in o)r=o[a],a in D.component.item&&(void 0===r&&(r=null),D.component.set(a,r,i)),"select"!=a&&"clear"!=a||Y.val("clear"==a?"":D.get(a,b.format)).trigger("change");D.render()}return i.muted?D:D.trigger("set",o)},get:function(e,n){if(e=e||"value",null!=w[e])return w[e];if("valueSubmit"==e){if(D._hidden)return D._hidden.value;e="value"}if("value"==e)return r.value;if(e in D.component.item){if("string"==typeof n){var i=D.component.get(e);return i?t._.trigger(D.component.formats.toString,D.component,[n,i]):""}return D.component.get(e)}},on:function(t,n,i){var a,r,s=e.isPlainObject(t),o=s?t:{};if(t){s||(o[t]=n);for(a in o)r=o[a],i&&(a="_"+a),w.methods[a]=w.methods[a]||[],w.methods[a].push(r)}return D},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in w.methods&&delete w.methods[t];return D},trigger:function(e,n){var i=function(e){var i=w.methods[e];i&&i.map(function(e){t._.trigger(e,D,[n])})};return i("_"+e),i(e),D}};return new T}function n(e){var t;return e.currentStyle?t=e.currentStyle.position:window.getComputedStyle&&(t=getComputedStyle(e).position),"fixed"==t}function i(){if(d.height()<=o.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var i=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),n-i}function a(t,n,i){if(e.isPlainObject(n))for(var a in n)r(t,a,n[a]);else r(t,n,i)}function r(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function s(){try{return document.activeElement}catch(e){}}var o=e(window),l=e(document),d=e(document.documentElement),u=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,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"}},t._={group:function(e){for(var n,i="",a=t._.trigger(e.min,e);a<=t._.trigger(e.max,e,[a]);a+=e.i)n=t._.trigger(e.item,e,[a]),i+=t._.node(e.node,n[0],n[1],n[2]);return i},node:function(t,n,i,a){return n?(n=e.isArray(n)?n.join(""):n,i=i?' class="'+i+'"':"",a=a?" "+a:"","<"+t+i+a+">"+n+"</"+t+">"):""},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{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n}),n="";for(var i in t){var a=("role"==i?"":"aria-")+i;n+=null==t[i]?"":a+'="'+t[i]+'"'}return n}},t.extend=function(n,i){e.fn[n]=function(a,r){var s=this.data(n);return"picker"==a?s:s&&"string"==typeof a?t._.trigger(s[a],s,[r]):this.each(function(){e(this).data(n)||new t(this,n,i,a)})},e.fn[n].defaults=i.defaults},t}),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,t){function n(e,t){var n=this,i=e.$node[0],a=i.value,r=e.$node.data("value"),s=r||a,o=r?t.formatSubmit:t.format,l=function(){return i.currentStyle?"rtl"==i.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.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"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),s?n.set("select",s,{format:o,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=n.item.highlight,i=new Date(t.year,t.month,t.date+e);n.set("highlight",i,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var i=e._;n.prototype.set=function(e,t,n){var i=this,a=i.item;return null===t?("clear"==e&&(e="select"),a[e]=t,i):(a["enable"==e?"disable":"flip"==e?"enable":e]=i.queue[e].split(" ").map(function(a){return t=i[a](e,t,n)}).pop(),"select"==e?i.set("highlight",a.select,n):"highlight"==e?i.set("view",a.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(a.select&&i.disabled(a.select)&&i.set("select",a.select,n),a.highlight&&i.disabled(a.highlight)&&i.set("highlight",a.highlight,n)),i)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,a){var r,s=this;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&i.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=i.isDate(n)?n:s.create().obj):n=i.isInteger(n)||i.isDate(n)?s.normalize(new Date(n),a):s.now(e,n,a),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},n.prototype.createRange=function(e,n){var a=this,r=function(e){return!0===e||t.isArray(e)||i.isDate(e)?a.create(e):e};return i.isInteger(e)||(e=r(e)),i.isInteger(n)||(n=r(n)),i.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:i.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},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,n,i){var a,r,s,o,l=t.isArray(n),d=t.isPlainObject(n),u=this.item.view;if(l||d){for(d?(r=n.year,s=n.month,o=n.date):(r=+n[0],s=+n[1],o=+n[2]),i&&i.nav&&u&&u.month!==s&&(r=u.year,s=u.month),r=(a=new Date(r,s+(i&&i.nav?i.nav:0),1)).getFullYear(),s=a.getMonth();new Date(r,s,o).getMonth()!==s;)o-=1;n=[r,s,o]}return n},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):i.isInteger(t)&&(t=n.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,a){var r,s,o,l,d=this,u=n,c=a&&a.interval?a.interval:1,h=-1===d.item.enable,p=d.item.min,m=d.item.max,_=h&&d.item.disable.filter(function(e){if(t.isArray(e)){var a=d.create(e).pick;a<n.pick?r=!0:a>n.pick&&(s=!0)}return i.isInteger(e)}).length;if((!a||!a.nav&&!a.defaultValue)&&(!h&&d.disabled(n)||h&&d.disabled(n)&&(_||r||s)||!h&&(n.pick<=p.pick||n.pick>=m.pick)))for(h&&!_&&(!s&&c>0||!r&&c<0)&&(c*=-1);
vendor: 6,537 bytes, line 2561
2561d.disabled(n)&&(Math.abs(c)>1&&(n.month<u.month||n.month>u.month)&&(n=u,c=c>0?1:-1),n.pick<=p.pick?(o=!0,c=1,n=d.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=m.pick&&(l=!0,c=-1,n=d.create([m.year,m.month,m.date+(n.pick===m.pick?0:1)])),!o||!l);)n=d.create([n.year,n.month,n.date+c]);return n},n.prototype.disabled=function(e){var n=this,a=n.item.disable.filter(function(a){return i.isInteger(a)?e.day===(n.settings.firstDay?a:a-1)%7:t.isArray(a)||i.isDate(a)?e.pick===n.create(a).pick:t.isPlainObject(a)?n.withinRange(a,e):void 0});return a=a.length&&!a.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!a:a||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.parse=function(e,t,n){var a=this,r={};return t&&"string"==typeof t?(n&&n.format||((n=n||{}).format=a.settings.format),a.formats.toArray(n.format).map(function(e){var n=a.formats[e],s=n?i.trigger(n,a,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,s)),t=t.substr(s)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},n.prototype.formats=function(){function e(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 t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?i.digits(e):t.date},dd:function(e,t){return e?2:i.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?i.digits(e):t.month+1},mm:function(e,t){return e?2:i.lead(t.month+1)},mmm:function(t,n){var i=this.settings.monthsShort;return t?e(t,i,n):i[n.month]},mmmm:function(t,n){var i=this.settings.monthsFull;return t?e(t,i,n):i[n.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 i.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,n){var a=this;return i.isInteger(e)&&i.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(i.isDate(e)||t.isArray(e))&&(i.isDate(n)||t.isArray(n))?a.create(e).pick===a.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(a.isDateExact(e.from,n.from)&&a.isDateExact(e.to,n.to))},n.prototype.isDateOverlap=function(e,n){var a=this,r=a.settings.firstDay?1:0;return i.isInteger(e)&&(i.isDate(n)||t.isArray(n))?(e=e%7+r)===a.create(n).day+1:i.isInteger(n)&&(i.isDate(e)||t.isArray(e))?(n=n%7+r)===a.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&a.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var a=this,r=a.item.disable.slice(0);return"flip"==n?a.flipEnable():!1===n?(a.flipEnable(1),r=[]):!0===n?(a.flipEnable(-1),r=[]):n.map(function(e){for(var n,s=0;s<r.length;s+=1)if(a.isDateExact(e,r[s])){n=!0;break}n||(i.isInteger(e)||i.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},n.prototype.activate=function(e,n){var a=this,r=a.item.disable,s=r.length;return"flip"==n?a.flipEnable():!0===n?(a.flipEnable(1),r=[]):!1===n?(a.flipEnable(-1),r=[]):n.map(function(e){var n,o,l,d;for(l=0;l<s;l+=1){if(o=r[l],a.isDateExact(o,e)){n=r[l]=null,d=!0;break}if(a.isDateOverlap(o,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):i.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(l=0;l<s;l+=1)if(a.isDateExact(r[l],e)){r[l]=null;break}if(d)for(l=0;l<s;l+=1)if(a.isDateOverlap(r[l],e)){r[l]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,a=t.item,r=a.now,s=a.select,o=a.highlight,l=a.view,d=a.disable,u=a.min,c=a.max,h=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(i){return[e[i],n.klass.weekdays,'scope=col title="'+t[i]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),p=function(e){return i.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&l.year>=c.year&&l.month>=c.month||!e&&l.year<=u.year&&l.month<=u.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+i.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},m=function(){var a=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(e){return[a[e],0,"value="+e+(l.month==e?" selected":"")+(l.year==u.year&&e<u.month||l.year==c.year&&e>c.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+i.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):i.node("div",a[l.month],n.klass.month)},_=function(){var a=l.year,r=!0===n.selectYears?5:~~(n.selectYears/2);if(r){var s=u.year,o=c.year,d=a-r,h=a+r;if(s>d&&(h+=s-d,d=s),o<h){var p=d-s,m=h-o;d-=p>m?m:p,h=o}return i.node("select",i.group({min:d,max:h,i:1,node:"option",item:function(e){return[e,0,"value="+e+(a==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+i.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return i.node("div",a,n.klass.year)};return i.node("div",(n.selectYears?_()+m():m()+_())+p()+p(1),n.klass.header)+i.node("table",h+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(e){var a=n.firstDay&&0===t.create([l.year,l.month,1]).day?-7:0;return[i.group({min:7*e-l.day+a+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([l.year,l.month,e+(n.firstDay?1:0)]);var a=s&&s.pick==e.pick,h=o&&o.pick==e.pick,p=d&&t.disabled(e)||e.pick<u.pick||e.pick>c.pick,m=i.trigger(t.formats.toString,t,[n.format,e]);return[i.node("div",e.date,function(t){return t.push(l.month==e.month?n.klass.infocus:n.klass.outfocus),r.pick==e.pick&&t.push(n.klass.now),a&&t.push(n.klass.selected),h&&t.push(n.klass.highlighted),p&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+i.ariaAttr({role:"gridcell",label:m,selected:!(!a||t.$node.val()!==m)||null,activedescendant:!!h||null,disabled:!!p||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+i.node("div",i.node("button",n.today,n.klass.buttonToday,"type=button data-
2561pick="+r.pick+(e&&!t.disabled(r)?"":" disabled")+" "+i.ariaAttr({controls:t.$node[0].id}))+i.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+i.ariaAttr({controls:t.$node[0].id}))+i.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+i.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{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:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),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,t){function n(e,t){var n=this,i=e.$node[0].value,a=e.$node.data("value"),r=a||i,s=a?t.formatSubmit:t.format;n.settings=t,n.$node=e.$node,n.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"},n.item={},n.item.clear=null,n.item.interval=t.interval||30,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),r?n.set("select",r,{format:s}):n.set("select",null).set("highlight",n.item.now),n.key={40:1,38:-1,39:1,37:-1,go:function(e){n.set("highlight",n.item.highlight.pick+e*n.item.interval,{interval:e*n.item.interval}),this.render()}},e.on("render",function(){var n=e.$root.children(),i=n.find("."+t.klass.viewset),a=function(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})},r=function(e,t){a("transform").map(function(n){e.css(n,t)}),a("transition").map(function(n){e.css(n,t)})};i.length&&(r(n,"none"),n[0].scrollTop=~~i.position().top-2*i[0].clientHeight,r(n,""))},1).on("open",function(){e.$root.find("button").attr("disabled",!1)},1).on("close",function(){e.$root.find("button").attr("disabled",!0)},1)}var i=e._;n.prototype.set=function(e,t,n){var i=this,a=i.item;return null===t?("clear"==e&&(e="select"),a[e]=t,i):(a["enable"==e?"disable":"flip"==e?"enable":e]=i.queue[e].split(" ").map(function(a){return t=i[a](e,t,n)}).pop(),"select"==e?i.set("highlight",a.select,n):"highlight"==e?i.set("view",a.highlight,n):"interval"==e?i.set("min",a.min,n).set("max",a.max,n):e.match(/^(flip|min|max|disable|enable)$/)&&(a.select&&i.disabled(a.select)&&i.set("select",t,n),a.highlight&&i.disabled(a.highlight)&&i.set("highlight",t,n),"min"==e&&i.set("max",a.max,n)),i)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,a){var r=this;return n=void 0===n?e:n,i.isDate(n)&&(n=[n.getHours(),n.getMinutes()]),t.isPlainObject(n)&&i.isInteger(n.pick)?n=n.pick:t.isArray(n)?n=60*+n[0]+ +n[1]:i.isInteger(n)||(n=r.now(e,n,a)),"max"==e&&n<r.item.min.pick&&(n+=1440),"min"!=e&&"max"!=e&&(n-r.item.min.pick)%r.item.interval!=0&&(n+=r.item.interval),n=r.normalize(e,n,a),{hour:~~(24+n/60)%24,mins:(60+n%60)%60,time:(1440+n)%1440,pick:n%1440}},n.prototype.createRange=function(e,n){var a=this,r=function(e){return!0===e||t.isArray(e)||i.isDate(e)?a.create(e):e};return i.isInteger(e)||(e=r(e)),i.isInteger(n)||(n=r(n)),i.isInteger(e)&&t.isPlainObject(n)?e=[n.hour,n.mins+e*a.settings.interval]:i.isInteger(n)&&t.isPlainObject(e)&&(n=[e.hour,e.mins+n*a.settings.interval]),{from:r(e),to:r(n)}},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,a=this.item.interval,r=new Date,s=60*r.getHours()+r.getMinutes(),o=i.isInteger(t);return s-=s%a,n=t<0&&a*t+s<=-a,s+="min"==e&&n?0:a,o&&(s+=a*(n&&"max"!=e?t+1:t)),s},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,n,a){var r=this;return n||(n="min"==e?[0,0]:[23,59]),"string"==typeof n?n=r.parse(e,n):!0===n||i.isInteger(n)?n=r.now(e,n,a):t.isPlainObject(n)&&i.isInteger(n.pick)&&(n=r.normalize(e,n.pick,a)),n},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(e){var n=this,a=n.item.disable.filter(function(a){return i.isInteger(a)?e.hour==a:t.isArray(a)||i.isDate(a)?e.pick==n.create(a).pick:t.isPlainObject(a)?n.withinRange(a,e):void 0});return a=a.length&&!a.filter(function(e){return t.isArray(e)&&"inverted"==e[2]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!a:a||e.pick<n.item.min.pick||e.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,t,n){var a,r,s,o,l,d=this,u={};if(!t||"string"!=typeof t)return t;n&&n.format||((n=n||{}).format=d.settings.format),d.formats.toArray(n.format).map(function(e){var n,a=d.formats[e],r=a?i.trigger(a,d,[t,u]):e.replace(/^!/,"").length;a&&(n=t.substr(0,r),u[e]=n.match(/^\d+$/)?+n:n),t=t.substr(r)});for(o in u)l=u[o],i.isInteger(l)?o.match(/^(h|hh)$/i)?(a=l,"h"!=o&&"hh"!=o||(a%=12)):"i"==o&&(r=l):o.match(/^a$/i)&&l.match(/^p/i)&&("h"in u||"hh"in u)&&(s=!0);return 60*(s?a+12:a)+r},n.prototype.formats={h:function(e,t){return e?i.digits(e):t.hour%12||12},hh:function(e,t){return e?2:i.lead(t.hour%12||12)},H:function(e,t){return e?i.digits(e):""+t.hour%24},HH:function(e,t){return e?i.digits(e):i.lead(t.hour%24)},i:function(e,t){return e?2:i.lead(t.mins)},a:function(e,t){return e?4:720>t.time%1440?"a.m.":"p.m."},A:function(e,t){return e?2:720>t.time%1440?"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 i.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}},n.prototype.isTimeExact=function(e,n){var a=this;return i.isInteger(e)&&i.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(i.isDate(e)||t.isArray(e))&&(i.isDate(n)||t.isArray(n))?a.create(e).pick===a.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(a.isTimeExact(e.from,n.from)&&a.isTimeExact(e.to,n.to))},n.prototype.isTimeOverlap=function(e,n){var a=this;return i.isInteger(e)&&(i.isDate(n)||t.isArray(n))?e===a.create(n).hour:i.isInteger(n)&&(i.isDate(e)||t.isArray(e))?n===a.create(e).hour:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&a.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var a=this,r=a.item.disable.slice(0);return"flip"==n?a.flipEnable():!1===n?(a.flipEnable(1),r=[]):!0===n?(a.flipEnable(-1),r=[]):n.map(function(e){for(var n,s=0;s<r.length;s+=1)if(a.isTimeExact(e,r[s])){n=!0;break}n||(i.isInteger(e)||i.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},n.prototype.activate=function(e,n){var a=this,r=a.item.disable,s=r.length;return"flip"==n?a.flipEnable():!0===n?(a.flipEnable(1),r=[]):!1===n?(a.flipEnable(-1),r=[]):n.map(function(e){var n,o,l,d;for(l=0;l<s;l+=1){if(o=r[l],a.isTimeExact(o,e)){n=r[l]=null,d=!0;break}if(a.isTimeOverlap(o,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[2]||n.push("inverted"):i.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(l=0;l<s;
2561l+=1)if(a.isTimeExact(r[l],e)){r[l]=null;break}if(d)for(l=0;l<s;l+=1)if(a.isTimeOverlap(r[l],e)){r[l]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},n.prototype.i=function(e,t){return i.isInteger(t)&&t>0?t:this.item.interval},n.prototype.nodes=function(e){var t=this,n=t.settings,a=t.item.select,r=t.item.highlight,s=t.item.view,o=t.item.disable;return i.node("ul",i.group({min:t.item.min.pick,max:t.item.max.pick,i:t.item.interval,node:"li",item:function(e){var l=(e=t.create(e)).pick,d=a&&a.pick==l,u=r&&r.pick==l,c=o&&t.disabled(e),h=i.trigger(t.formats.toString,t,[n.format,e]);return[i.trigger(t.formats.toString,t,[i.trigger(n.formatLabel,t,[e])||n.format,e]),function(e){return d&&e.push(n.klass.selected),u&&e.push(n.klass.highlighted),s&&s.pick==l&&e.push(n.klass.viewset),c&&e.push(n.klass.disabled),e.join(" ")}([n.klass.listItem]),"data-pick="+e.pick+" "+i.ariaAttr({role:"option",label:h,selected:!(!d||t.$node.val()!==h)||null,activedescendant:!!u||null,disabled:!!c||null})]}})+i.node("li",i.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+i.ariaAttr({controls:t.$node[0].id})),"",i.ariaAttr({role:"presentation"})),n.klass.list,i.ariaAttr({role:"listbox",controls:t.$node[0].id}))},n.defaults=function(e){return{clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:e+" "+e+"--time",holder:e+"__holder",list:e+"__list",listItem:e+"__list-item",disabled:e+"__list-item--disabled",selected:e+"__list-item--selected",highlighted:e+"__list-item--highlighted",viewset:e+"__list-item--viewset",now:e+"__list-item--now",buttonClear:e+"__button--clear"}}}(e.klasses().picker),e.extend("pickatime",n)}),define("mockup-patterns-pickadate",["jquery","pat-base","mockup-utils","translate","picker","picker.date","picker.time","mockup-patterns-select2"],function(e,t,n,i){"use strict";return t.extend({name:"pickadate",trigger:".pat-pickadate",parser:"mockup",defaults:{separator:" ",date:{selectYears:!0,selectMonths:!0,formatSubmit:"yyyy-mm-dd",format:"yyyy-mm-dd",labelMonthNext:i("Next month"),labelMonthPrev:i("Previous month"),labelMonthSelect:i("Select a month"),labelYearSelect:i("Select a year"),clear:!1,close:!1,today:!1},time:{clear:!1},today:i("Today"),clear:i("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:i("Enter date..."),placeholderTime:i("Enter time..."),placeholderTimezone:i("Enter timezone...")},parseTimeOffset:function(e){var t=void 0;0===e.indexOf("+")?(t="+",e=e.split("+")[1]):0===e.indexOf("-")&&(t="-",e=e.split("-")[1]);try{e=JSON.parse(e)}catch(t){e=void 0}if(!1===e)return!1;if(!0===e||!0!==Array.isArray(e))return[0,0];var n=parseInt(e[0],10)||0,i=parseInt(e[1],10)||0;if("+"===t||"-"===t){var a=new Date,r=a.getHours(),s=a.getMinutes();"+"===t?((n=r+n)>23&&(n=23),(i=s+i)>59&&(i=59)):"-"===t&&((n=r-n)<0&&(n=0),(i=s-i)<0&&(i=0))}return[n,i]},init:function(){var t=this,i=t.$el.val().split(" "),a=i[0]||"",r=i[1]||"";if(!1===n.bool(t.options.date)&&(t.options.date=!1),!1===n.bool(t.options.time)&&(t.options.time=!1),t.options.autoSetTimeOnDateChange=t.parseTimeOffset(t.options.autoSetTimeOnDateChange),!1===t.options.date&&(r=i[0]),t.$el.hide(),t.$wrapper=e("<div/>").addClass(t.options.classWrapperName).insertAfter(t.$el),!1!==t.options.date&&(t.$date=e('<input type="text"/>').attr("placeholder",t.options.placeholderDate).attr("data-value",a).addClass(t.options.classDateName).appendTo(e("<div/>").addClass(t.options.classDateWrapperName).appendTo(t.$wrapper)).pickadate(e.extend(!0,{},t.options.date,{onSet:function(e){void 0!==e.select&&(t.$date.attr("data-value",e.select),!1!==t.options.autoSetTimeOnDateChange&&t.$time&&(t.$time.pickatime("picker").get("select")||t.$time.pickatime("picker").set("select",t.options.autoSetTimeOnDateChange)),!1!==t.options.time&&""===t.$time.attr("data-value")||t.updateValue.call(t)),e.hasOwnProperty("clear")&&(t.$el.val(""),t.$date.attr("data-value",""))}}))),!1!==t.options.time&&(t.options.time.formatSubmit="HH:i",t.$time=e('<input type="text"/>').attr("placeholder",t.options.placeholderTime).attr("data-value",r).addClass(t.o
2561ptions.classTimeName).appendTo(e("<div/>").addClass(t.options.classTimeWrapperName).appendTo(t.$wrapper)).pickatime(e.extend(!0,{},t.options.time,{onSet:function(e){void 0!==e.select&&(t.$time.attr("data-value",e.select),!1!==t.options.date&&""===t.$date.attr("data-value")||t.updateValue.call(t)),e.hasOwnProperty("clear")&&(t.$el.val(""),t.$time.attr("data-value",""))}})),"string"==typeof r&&"00"===r.substring(0,2)&&(t.$time.pickatime("picker").set("select",r.split(":")),t.$time.attr("data-value",r))),!1!==t.options.date&&!1!==t.options.time&&t.options.timezone&&(t.$separator=e("<span/>").addClass(t.options.classSeparatorName).html(" "===t.options.separator?"&nbsp;":t.options.separator).appendTo(t.$wrapper)),null!==t.options.timezone){t.$timezone=e('<input type="text"/>').addClass(t.options.classTimezoneName).appendTo(e("<div/>").addClass(t.options.classTimezoneWrapperName).appendTo(t.$wrapper)).patternSelect2(e.extend(!0,{placeholder:t.options.placeholderTimezone,width:"10em"},t.options.timezone,{multiple:!1})).on("change",function(e){void 0!==e.val&&(t.$timezone.attr("data-value",e.val),!1!==t.options.date&&""===t.$date.attr("data-value")||!1!==t.options.time&&""===t.$time.attr("data-value")||t.updateValue.call(t))});var s=t.options.timezone.default;if(s){var o;t.options.timezone.data.some(function(e){return o=e.text===t.options.timezone.default}),o&&(t.$timezone.attr("data-value",s),t.$timezone.parent().find(".select2-chosen").text(s))}1===t.options.timezone.data.length&&(t.$timezone.attr("data-value",t.options.timezone.data[0].text),t.$timezone.parent().find(".select2-chosen").text(t.options.timezone.data[0].text),t.$timezone.select2("enable",!1))}n.bool(t.options.today)&&(t.$now=e('<button class="btn btn-xs btn-info" title="'+t.options.today+'"><span class="glyphicon glyphicon-time"></span></button>').addClass(t.options.classNowName).on("click",function(e){e.preventDefault();var n=new Date;t.$date&&t.$date.data("pickadate").set("select",n),t.$time&&t.$time.data("pickatime").set("select",n),t.emit("updated")}).appendTo(t.$wrapper)),n.bool(t.options.clear)&&(t.$clear=e('<button class="btn btn-xs btn-danger" title="'+t.options.clear+'"><span class="glyphicon glyphicon-trash"></span></button>').addClass(t.options.classClearName).on("click",function(e){e.preventDefault(),t.$date&&t.$date.data("pickadate").clear(),t.$time&&t.$time.data("pickatime").clear(),t.emit("updated")}).appendTo(t.$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(e,t){"use strict";return t.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 t=this;t.$toc=e("<nav/>").addClass(t.options.classTOCName),t.options.prependTo?t.$toc.prependTo(t.options.prependTo):t.options.appendTo?t.$toc.appendTo(t.options.appendTo):t.$toc.prependTo(t.$el),t.options.className&&t.$el.addClass(t.options.className),e(t.options.section,t.$el).addClass(t.options.classSectionName);var n=t.$el.hasClass("autotabs"),i=null;e(t.options.levels,t.$el).each(function(a){var r=e(this),s=r.prop("id")?r.prop("id"):r.parents(t.options.section).prop("id");(!s||e("#"+s).length>0)&&(s=t.options.IDPrefix+t.name+"-"+a),window.location.hash==="#"+s&&(i=s),r.data("navref",s),e("<a/>").appendTo(t.$toc).text(r.text()).attr("id",s).attr("href","#"+s).addClass(t.options.classLevelPrefixName+t.getLevel(r)).on("click",function(i,a){i.stopPropagation(),i.preventDefault(),a||(a={doScroll:!0,skipHash:!1});var s=e(this);
2561t.$toc.children("."+t.options.classActiveName).removeClass(t.options.classActiveName),t.$el.children("."+t.options.classActiveName).removeClass(t.options.classActiveName),e(i.target).addClass(t.options.classActiveName),r.parents(t.options.section).addClass(t.options.classActiveName),!1!==a.doScroll&&t.options.scrollDuration&&r&&!n&&e("body,html").animate({scrollTop:r.offset().top},t.options.scrollDuration,t.options.scrollEasing),0!==t.$el.parents(".plone-modal").size()&&t.$el.trigger("resize.plone-modal.patterns"),e(this).trigger("clicked"),a.skipHash||window.history&&window.history.pushState&&window.history.pushState({},"","#"+s.attr("id"))})}),i?e("a#"+i).trigger("click",{doScroll:!0,skipHash:!0}):t.$toc.find("a").first().trigger("click",{doScroll:!1,skipHash:!0})},getLevel:function(t){var n=0;return e.each(this.options.levels.split(","),function(e,i){if(1===t.filter(i).size())return n=e+1,!1}),n}})}),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(e,t,n){"use strict";return t.extend({name:"formunloadalert",trigger:".pat-formunloadalert",parser:"mockup",_changed:!1,_suppressed:!1,defaults:{message:n("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 t=this;if(t.$el.is("form")){e(t.options.changingFields,t.$el).on(t.options.changingEvents,function(e){t._changed=!0});var n=t.$el.parents(".plone-modal");0!==n.size()?n.data("patternPloneModal").on("hide",function(e){var i=n.data("patternPloneModal");i&&(i._suppressHide=t._handleUnload.call(t,e))}):e(window).on("beforeunload",function(e){return t._handleUnload(e)}),t.$el.on("submit",function(e){t._suppressed=!0})}},_handleUnload:function(t){var n=this;if(n._suppressed)n._suppressed=!1;else if(n._changed){var i=n.options.message;return n._handleMsg(t,i),e(window).trigger("messageset"),i}},_handleMsg:function(e,t){(e||window.event).returnValue=t}})}),define("mockup-patterns-preventdoublesubmit",["jquery","pat-base","translate"],function(e,t,n){"use strict";return t.extend({name:"preventdoublesubmit",trigger:".pat-preventdoublesubmit",parser:"mockup",defaults:{message:n("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")&&e(":submit",t.$el).click(function(n){if(e(":submit").removeAttr("clicked"),e(this).attr("clicked","clicked"),e(this).hasClass(t.options.guardClassName)&&!e(this).hasClass(t.options.optOutClassName))return t._confirm.call(t);e(this).addClass(t.options.guardClassName)})},_confirm:function(e){return window.confirm(this.options.message)}})}),define("mockup-patterns-formautofocus",["jquery","pat-base"],function(e,t,n){"use strict";return t.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 t=this;0!==e(t.options.condition,t.$el).size()?e(t.options.target,t.$el).focus():e(t.options.always,t.$el).focus()}})}),define("mockup-patterns-markspeciallinks",["pat-base","jquery"],function(e,t){"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,n,i,a,r,s,o=this,l=o.$el;"string"==typeof o.options.external_links_open_new_window?e="true"===o.options.external_links_open_new_window.toLowerCase():"boolean"==typeof o.options.external_links_open_new_window&&(e=o.options.external_links_open_new_window),"string"==typeof o.options.mark_special_links?n="true"===o.options.mark_special_links.toLowerCase():"boolean"==typeof o.options.mark_special_links&&(n=o.options.mark_special_links),i=window.location.protocol+"//"+window.location.host,a=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/,r=l,e&&r.find('a[href^="http"]:not(.link-plain):not([href^="'+i+'"])').attr("target","_blank"),n&&(r.find('a[href^="http:"]:not(.link-plain):not([href^="'+i+'"]):not(:has(img))').before('<i class="glyphicon link-external"></i>
2561'),r.find('a[href]:not([href^="http:"]):not(.link-plain):not([href^="'+i+'"]):not(:has(img)):not([href^="#"])').each(function(){if(s=a.exec(t(this).attr("href"))){var e="glyphicon link-"+s[0];t(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 t=this;t.$backdrop=e("> ."+t.options.className,t.$el),0===t.$backdrop.size()&&(t.$backdrop=e("<div/>").hide().appendTo(t.$el).addClass(t.options.className),null!==t.options.zIndex&&t.$backdrop.css("z-index",t.options.zIndex)),!0===t.options.closeOnEsc&&e(document).on("keydown",function(e,n){t.$el.is("."+t.options.classActiveName)&&27===e.keyCode&&t.hide()}),!0===t.options.closeOnClick&&t.$backdrop.on("click",function(){t.$el.is("."+t.options.classActiveName)&&t.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(e,t){if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(n,i,a){e.Backbone=t(e,a,n,i)});else if("undefined"!=typeof exports){var n=require("underscore");t(e,exports,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t,n,i){var a=e.Backbone,r=[],s=r.slice;t.VERSION="1.1.2",t.$=i,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=t.Events={on:function(e,t,n){return d(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):this},once:function(e,t,i){if(!d(this,"once",e,[t,i])||!t)return this;var a=this,r=n.once(function(){a.off(e,r),t.apply(this,arguments)});return r._callback=t,this.on(e,r,i)},off:function(e,t,i){var a,r,s,o,l,u,c,h;if(!this._events||!d(this,"off",e,[t,i]))return this;if(!e&&!t&&!i)return this._events=void 0,this;for(l=0,u=(o=e?[e]:n.keys(this._events)).length;l<u;l++)if(e=o[l],s=this._events[e]){if(this._events[e]=a=[],t||i)for(c=0,h=s.length;c<h;c++)r=s[c],(t&&t!==r.callback&&t!==r.callback._callback||i&&i!==r.context)&&a.push(r);a.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=s.call(arguments,1);if(!d(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&u(n,t),i&&u(i,arguments),this},stopListening:function(e,t,i){var a=this._listeningTo;if(!a)return this;var r=!t&&!i;i||"object"!=typeof t||(i=this),e&&((a={})[e._listenId]=e);for(var s in a)(e=a[s]).off(t,i,this),(r||n.isEmpty(e._events))&&delete this._listeningTo[s];return this}},l=/\s+/,d=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},u=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}},c={listenTo:"on",listenToOnce:"once"};n.each(c,function(e,t){o[t]=function(t,i,a){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,a||"object"!=typeof i||(a=this),t[e](i,a,this),this}}),o.bind=o.on,o.unbind=o.off,n.extend(t,o);var h=t.Model=function(e,t){var i=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)}
2561,set:function(e,t,i){var a,r,s,o,l,d,u,c;if(null==e)return this;if("object"==typeof e?(r=e,i=t):(r={})[e]=t,i||(i={}),!this._validate(r,i))return!1;s=i.unset,l=i.silent,o=[],d=this._changing,this._changing=!0,d||(this._previousAttributes=n.clone(this.attributes),this.changed={}),c=this.attributes,u=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]);for(a in r)t=r[a],n.isEqual(c[a],t)||o.push(a),n.isEqual(u[a],t)?delete this.changed[a]:this.changed[a]=t,s?delete c[a]:c[a]=t;if(!l){o.length&&(this._pending=i);for(var h=0,p=o.length;h<p;h++)this.trigger("change:"+o[h],this,c[o[h]],i)}if(d)return this;if(!l)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,i=!1,a=this._changing?this._previousAttributes:this.attributes;for(var r in e)n.isEqual(a[r],t=e[r])||((i||(i={}))[r]=t);return i},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,i=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;i&&i(t,n,e),t.trigger("sync",t,n,e)},P(this,e),this.sync("read",this,e)},save:function(e,t,i){var a,r,s,o=this.attributes;if(null==e||"object"==typeof e?(a=e,i=t):(a={})[e]=t,i=n.extend({validate:!0},i),a&&!i.wait){if(!this.set(a,i))return!1}else if(!this._validate(a,i))return!1;a&&i.wait&&(this.attributes=n.extend({},o,a)),void 0===i.parse&&(i.parse=!0);var l=this,d=i.success;return i.success=function(e){l.attributes=o;var t=l.parse(e,i);if(i.wait&&(t=n.extend(a||{},t)),n.isObject(t)&&!l.set(t,i))return!1;d&&d(l,e,i),l.trigger("sync",l,e,i)},P(this,i),"patch"===(r=this.isNew()?"create":i.patch?"patch":"update")&&(i.attrs=a),s=this.sync(r,this,i),a&&i.wait&&(this.attributes=o),s},destroy:function(e){var t=this,i=(e=e?n.clone(e):{}).success,a=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&a(),i&&i(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;P(this,e);var r=this.sync("delete",this,e);return e.wait||a(),r},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||O();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},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({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return!i||(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1)}});var p=["keys","values","pairs","invert","pick","omit"];n.each(p,function(e){h.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}});var m=t.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,n.extend({silent:!0},t))},_={add:!0,remove:!0,merge:!0},f={add:!0,remove:!1};n.extend(m.prototype,o,{model:h,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,f))},remove:function(e,t){var i=!n.isArray(e);e=i?[e]:n.clone(e),t||(t={});var a,r,s,o;for(a=0,r=e.length;a<r;a++)(o=e[a]=this.get(e[a]))&&(delete this._byId[o.id],delete this._byId[o.cid],s=this.indexOf(o),this.models.splice(s,1),this.length--,t.silent||(t.index=s,o.trigger("remove",o,this,t)),this._removeReference(o,t));return i?e[0]:e},set:function(e,t){(t=n.defaults({},t,_)).parse&&(e=this.parse(e,t));var i=!n.isArray(e);e=i?e?[e]:[]:n.clone(e);var a,r,s,o,l,d,u,c=t.at,p=this.model,m=this.comparator&&null==c&&!1!==t.sort,f=n.isString(this.comparator)?this.comparator:null,g=[],y=[],v={},M=t.add,L=t.merge,w=t.remove,b=!(m||!M||!w)&&[];for(a=0,r=e.length;a<r;a++){if(l=e[a]||{},s=l instanceof h?o=l:l[p.prototype.idAttribute||"id"],d=this.get(s))w&&(v[d.cid]=!0),L&&(l=l===o?o.attributes:l,t.parse&&(l=d.parse(l,t)),d.set(l,t),m&&!u&&d.hasChanged(f)&&(u=!0)),e[a]=d;else if(M){if(!(o=e[a]=this._prepareModel(l,t)))continue;
2561g.push(o),this._addReference(o,t)}o=d||o,!b||!o.isNew()&&v[o.id]||b.push(o),v[o.id]=!0}if(w){for(a=0,r=this.length;a<r;++a)v[(o=this.models[a]).cid]||y.push(o);y.length&&this.remove(y,t)}if(g.length||b&&b.length)if(m&&(u=!0),this.length+=g.length,null!=c)for(a=0,r=g.length;a<r;a++)this.models.splice(c+a,0,g[a]);else{b&&(this.models.length=0);var k=b||g;for(a=0,r=k.length;a<r;a++)this.models.push(k[a])}if(u&&this.sort({silent:!0}),!t.silent){for(a=0,r=g.length;a<r;a++)(o=g[a]).trigger("add",o,this,t);(u||b&&b.length)&&this.trigger("sort",this,t)}return i?e[0]:e},reset:function(e,t){t||(t={});for(var i=0,a=this.models.length;i<a;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.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,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return s.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(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))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={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,i=this;return e.success=function(n){var a=e.reset?"reset":"set";i[a](n,e),t&&t(i,n,e),i.trigger("sync",i,n,e)},P(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var i=this,a=t.success;return t.success=function(e,n){t.wait&&i.add(e,t),a&&a(e,n,t)},e.save(null,t),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 h)return e;(t=t?n.clone(t):{}).collection=this;var i=new this.model(e,t);return i.validationError?(this.trigger("invalid",this,i.validationError,t),!1):i},_addReference:function(e,t){this._byId[e.cid]=e,null!=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))}});var g=["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"];n.each(g,function(e){m.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}});var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,function(e){m.prototype[e]=function(t,i){var a=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,a,i)}});var v=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,L)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},M=/^(\S+)\s*(.*)$/,L=["model","collection","el","id","attributes","className","tagName","events"];n.extend(v.prototype,o,{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,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;this.undelegateEvents();for(var t in e){var i=e[t];if(n.isFunction(i)||(i=this[e[t]]),i){var a=t.match(M),r=a[1],s=a[2];i=n.bind(i,this),r+=".delegateEvents"+this.cid,""===s?this.$el.on(r,i):this.$el.on(r,s,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var i=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(i,!1)}}}),t.sync=function(e,i,a){var r=b[e];n.defaults(a||(a={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:r,dataType:"json"};if(a.url||(s.url=n.result(i,"url")||O()),null!=a.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(a.attrs||i.toJSON(a))),a.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}
2561),a.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){s.type="POST",a.emulateJSON&&(s.data._method=r);var o=a.beforeSend;a.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",r),o)return o.apply(this,arguments)}}"GET"===s.type||a.emulateJSON||(s.processData=!1),"PATCH"===s.type&&w&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=a.xhr=t.ajax(n.extend(s,a));return i.trigger("request",i,l,a),l};var w=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),b={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var k=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},Y=/\((.*?)\)/g,T=/(\(\?)?:\w+/g,D=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(k.prototype,o,{initialize:function(){},route:function(e,i,a){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(a=i,i=""),a||(a=this[i]);var r=this;return t.history.route(e,function(n){var s=r._extractParameters(e,n);r.execute(a,s),r.trigger.apply(r,["route:"+i].concat(s)),r.trigger("route",i,s),t.history.trigger("route",r,i,s)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(S,"\\$&").replace(Y,"(?:$1)?").replace(T,function(e,t){return t?e:"([^/?]+)"}).replace(D,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null})}});var x=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},j=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,C=/msie [\w.]+/,E=/\/$/,A=/#.*$/;x.started=!1,n.extend(x.prototype,o,{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(E,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(j,"")},start:function(e){if(x.started)throw new Error("Backbone.history has already been started");x.started=!0,this.options=n.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 i=this.getFragment(),a=document.documentMode,r=C.exec(navigator.userAgent.toLowerCase())&&(!a||a<=7);if(this.root=("/"+this.root+"/").replace(H,"/"),r&&this._wantsHashChange){var s=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(i)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var o=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()&&o.hash&&(this.fragment=this.getHash().replace(j,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),x.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(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!x.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(A,""),this.fragment!==e){if(this.fragment=e,""===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}}),t.history=new x;h.extend=m.extend=k.extend=v.extend=x.extend=function(e,t){var i,a=this;i=e&&n.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},n.extend(i,a,t);var r=function(){this.constructor=i};return r.prototype=a.prototype,i.prototype=new r,e&&n.extend(i.prototype,e),i.__super__=a.prototype,i};var O=function(){throw new Error('A "url" property or function must be specified')},P=function(e,t){var n=t.error;t.error=function(i){n&&n(e,i,t),e.trigger("error",e,i,t)}};return t}),define("mockup-router",["underscore","backbone"],function(e,t){"use strict";var n=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};return new(t.Router.extend({actions:[],redirects:{},addRoute:function(t,i,a,r,s,o){void 0===e.findWhere(this.patterns,{patternName:t,id:i})&&this.actions.push({patternName:t,id:i,callback:a,context:r,pathExp:s,expReplace:o});var l=new RegExp("("+n(t)+":"+n(i)+")");this.route(l,"handleRoute")},addRedirect:function(e,t){this.redirects[e]=t},handleRoute:function(t){var n=t.split(":"),i=n[0],a=n[1],r=e.findWhere(this.actions,{patternName:i,id:a});r&&r.callback.call(r.context)},redirect:function(){var t,n,i,a=window.parent.location.pathname;if(e.some(this.actions,function(e){if(e.pathExp&&(n=new RegExp(e.pathExp),a.match(n))){i="!/"+e.patternName+":"+e.id;var r="";return e.expReplace&&(r=e.expReplace),t=a.replace(n,r),!0}},this),void 0===i)for(var r in this.redirects)if(n=new RegExp(r),a.match(n)){i="!/"+this.redirects[r],t=a.replace(n,"");break}void 0!==i&&this._changeLocation.apply(this,[t,i])},_changeLocation:function(e,t){window.parent.location.hash=t,window.parent.location.pathname=e},start:function(){t.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";function t(t){var n=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(n))}function n(t){var n=t.target,i=e(n);if(!i.is("[type=submit],[type=image]")){var a=i.closest("[type=submit]");if(0===a.length)return;n=a[0]}
2561var r=this;if(r.clk=n,"image"==n.type)if(void 0!==t.offsetX)r.clk_x=t.offsetX,r.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var s=i.offset();r.clk_x=t.pageX-s.left,r.clk_y=t.pageY-s.top}else r.clk_x=t.pageX-n.offsetLeft,r.clk_y=t.pageY-n.offsetTop;setTimeout(function(){r.clk=r.clk_x=r.clk_y=null},100)}function i(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var a={};a.fileapi=void 0!==e("<input type='file'/>").get(0).files,a.formdata=void 0!==window.FormData;var r=!!e.fn.prop;e.fn.attr2=function(){if(!r)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(t){function n(n){var i,a,r=e.param(n,t.traditional).split("&"),s=r.length,o=[];for(i=0;i<s;i++)r[i]=r[i].replace(/\+/g," "),a=r[i].split("="),o.push([decodeURIComponent(a[0]),decodeURIComponent(a[1])]);return o}function s(n){function a(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){i("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(n){i("cannot get iframe.contentDocument: "+n),t=e.document}return t}function s(){function t(){try{var e=a(g).readyState;i("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(e){i("Server abort: ",e," (",e.name,")"),l(T),w&&clearTimeout(w),w=void 0}}var n=u.attr2("target"),r=u.attr2("action"),s=u.attr("enctype")||u.attr("encoding")||"multipart/form-data";b.setAttribute("target",_),o&&!/post/i.test(o)||b.setAttribute("method","POST"),r!=h.url&&b.setAttribute("action",h.url),h.skipEncodingOverride||o&&!/post/i.test(o)||u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(w=setTimeout(function(){L=!0,l(Y)},h.timeout));var d=[];try{if(h.extraData)for(var c in h.extraData)h.extraData.hasOwnProperty(c)&&(e.isPlainObject(h.extraData[c])&&h.extraData[c].hasOwnProperty("name")&&h.extraData[c].hasOwnProperty("value")?d.push(e('<input type="hidden" name="'+h.extraData[c].name+'">').val(h.extraData[c].value).appendTo(b)[0]):d.push(e('<input type="hidden" name="'+c+'">').val(h.extraData[c]).appendTo(b)[0]));h.iframeTarget||f.appendTo("body"),g.attachEvent?g.attachEvent("onload",l):g.addEventListener("load",l,!1),setTimeout(t,15);try{b.submit()}catch(e){document.createElement("form").submit.apply(b)}}finally{b.setAttribute("action",r),b.setAttribute("enctype",s),n?b.setAttribute("target",n):u.removeAttr("target"),e(d).remove()}}function l(t){if(!y.aborted&&!H){if((j=a(g))||(i("cannot access response document"),t=T),t===Y&&y)return y.abort("timeout"),void k.reject(y,"timeout");if(t==T&&y)return y.abort("server abort"),void k.reject(y,"error","server abort");if(j&&j.location.href!=h.iframeSrc||L){g.detachEvent?g.detachEvent("onload",l):g.removeEventListener("load",l,!1);var n,r="success";try{if(L)throw"timeout";var s="xml"==h.dataType||j.XMLDocument||e.isXMLDoc(j);if(i("isXml="+s),!s&&window.opera&&(null===j.body||!j.body.innerHTML)&&--C)return i("requeing onLoad callback, DOM not available"),void setTimeout(l,250);var o=j.body?j.body:j.documentElement;y.responseText=o?o.innerHTML:null,y.responseXML=j.XMLDocument?j.XMLDocument:j,s&&(h.dataType="xml"),y.getResponseHeader=function(e){return{"content-type":h.dataType}[e.toLowerCase()]},o&&(y.status=Number(o.getAttribute("status"))||y.status,y.statusText=o.getAttribute("statusText")||y.statusText);var d=(h.dataType||"").toLowerCase(),u=/(json|script|text)/.test(d);if(u||h.textarea){var c=j.getElementsByTagName("textarea")[0];if(c)y.responseText=c.value,y.status=Number(c.getAttribute("status"))||y.status,y.statusText=c.getAttribute("statusText")||y.statusText;else if(u){var m=j.getElementsByTagName("pre")[0],_=j.getElementsByTagName("body")[0];m?y.responseText=m.textContent?m.textContent:m.innerText:_&&(y.responseText=_.textContent?_.textContent:_.innerText)}}else"xml"==d&&!y.responseXML&&y.responseText&&(y.responseXML=E(y.responseText));try{x=O(y,d,h)}catch(e){r="parsererror",y.error=n=e||r}}catch(e){i("error caught: ",e),r="error",y.error=n=e||r}y.aborted&&(i("upload aborted"),r=null),y.status&&(r=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===r?(h.success&&h.success.call(h.context,x,"success",y),k.resolve(y.responseText,"success",y),p&&e.event.trigger("ajaxSuccess",[y,h])):r&&(void 0===n&&(n=y.statusText),h.error&&h.error.call(h.context,y,r,n),k.reject(y,"error",n),p&&e.event.trigger("ajaxError",[y,h,n])),p&&e.event.trigger("ajaxComplete",[y,h]),p&&!--e.active&&e.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,y,r),H=!0,h.timeout&&clearTimeout(w),setTimeout(function(){h.iframeTarget?f.attr("src",h.iframeSrc):f.remove(),y.responseXML=null},100)}}}var d,c,h,p,_,f,g,y,v,M,L,w,b=u[0],k=e.Deferred();if(k.abort=function(e){y.abort(e)},n)for(c=0;c<m.length;c++)d=e(m[c]),r?d.prop("disabled",!1):d.removeAttr("disabled");if(h=e.extend(!0,{}
2561,e.ajaxSettings,t),h.context=h.context||h,_="jqFormIO"+(new Date).getTime(),h.iframeTarget?(M=(f=e(h.iframeTarget)).attr2("name"))?_=M:f.attr2("name",_):(f=e('<iframe name="'+_+'" src="'+h.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),g=f[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var n="timeout"===t?"timeout":"aborted";i("aborting upload... "+n),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(e){}f.attr("src",h.iframeSrc),y.error=n,h.error&&h.error.call(h.context,y,n,t),p&&e.event.trigger("ajaxError",[y,h,n]),h.complete&&h.complete.call(h.context,y,n)}},(p=h.global)&&0==e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[y,h]),h.beforeSend&&!1===h.beforeSend.call(h.context,y,h))return h.global&&e.active--,k.reject(),k;if(y.aborted)return k.reject(),k;(v=b.clk)&&(M=v.name)&&!v.disabled&&(h.extraData=h.extraData||{},h.extraData[M]=v.value,"image"==v.type&&(h.extraData[M+".x"]=b.clk_x,h.extraData[M+".y"]=b.clk_y));var Y=1,T=2,D=e("meta[name=csrf-token]").attr("content"),S=e("meta[name=csrf-param]").attr("content");S&&D&&(h.extraData=h.extraData||{},h.extraData[S]=D),h.forceSync?s():setTimeout(s,10);var x,j,H,C=50,E=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},A=e.parseJSON||function(e){return window.eval("("+e+")")},O=function(t,n,i){var a=t.getResponseHeader("content-type")||"",r="xml"===n||!n&&a.indexOf("xml")>=0,s=r?t.responseXML:t.responseText;return r&&"parsererror"===s.documentElement.nodeName&&e.error&&e.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&("json"===n||!n&&a.indexOf("json")>=0?s=A(s):("script"===n||!n&&a.indexOf("javascript")>=0)&&e.globalEval(s)),s};return k}if(!this.length)return i("ajaxSubmit: skipping submit process - no element selected"),this;var o,l,d,u=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),o=t.type||this.attr2("method"),(d=(d="string"==typeof(l=t.url||this.attr2("action"))?e.trim(l):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:d,success:e.ajaxSettings.success,type:o||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var c={};if(this.trigger("form-pre-serialize",[this,t,c]),c.veto)return i("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return i("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h=t.traditional;void 0===h&&(h=e.ajaxSettings.traditional);var p,m=[],_=this.formToArray(t.semantic,m);if(t.data&&(t.extraData=t.data,p=e.param(t.data,h)),t.beforeSubmit&&!1===t.beforeSubmit(_,this,t))return i("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[_,this,t,c]),c.veto)return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var f=e.param(_,h);p&&(f=f?f+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+f,t.data=null):t.data=f;var g=[];if(t.resetForm&&g.push(function(){u.resetForm()}),t.clearForm&&g.push(function(){u.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};g.push(function(n){var i=t.replaceTarget?"replaceWith":"html";e(t.target)[i](n).each(y,arguments)})}else t.success&&g.push(t.success);if(t.success=function(e,n,i){for(var a=t.context||this,r=0,s=g.length;r<s;r++)g[r].apply(a,[e,n,i||u,u])},t.error){var v=t.error;t.error=function(e,n,i){var a=t.context||this;v.apply(a,[e,n,i,u])}}if(t.complete){var M=t.complete;t.complete=function(e,n){var i=t.context||this;M.apply(i,[e,n,u])}}var L=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}).length>0,w="multipart/form-data",b=u.attr("enctype")==w||u.attr("encoding")==w,k=a.fileapi&&a.formdata;i("fileAPI :"+k);var Y,T=(L||b)&&!k;!1!==t.iframe&&(t.iframe||T)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){Y=s(_)}):Y=s(_):Y=(L||b)&&k?function(i){for(var a=new FormData,r=0;r<i.length;r++)a.append(i[r].name,i[r].value);if(t.extraData){var s=n(t.extraData);for(r=0;r<s.length;r++)s[r]&&a.append(s[r][0],s[r][1])}t.data=null;var l=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:o||"POST"});t.uploadProgress&&(l.xhr=function(){var n=e.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",function(e){var n=0,i=e.loaded||e.position,a=e.total;e.lengthComputable&&(n=Math.ceil(i/a*100)),t.uploadProgress(e,i,a,n)},!1),n}),l.data=null;var d=l.beforeSend;return l.beforeSend=function(e,n){t.formData?n.data=t.formData:n.data=a,d&&d.call(this,e,n)},e.ajax(l)}(_):e.ajax(t),u.removeData("jqxhr").data("jqxhr",Y);for(var D=0;D<m.length;D++)m[D]=null;return this.trigger("form-submit-notify",[this,t]),this}
2561,e.fn.ajaxForm=function(a){if(a=a||{},a.delegation=a.delegation&&e.isFunction(e.fn.on),!a.delegation&&0===this.length){var r={s:this.selector,c:this.context};return!e.isReady&&r.s?(i("DOM not ready, queuing ajaxForm"),e(function(){e(r.s,r.c).ajaxForm(a)}),this):(i("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return a.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,a,t).on("click.form-plugin",this.selector,a,n),this):this.ajaxFormUnbind().bind("submit.form-plugin",a,t).bind("click.form-plugin",a,n)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,n){var i=[];if(0===this.length)return i;var r,s=this[0],o=this.attr("id"),l=t?s.getElementsByTagName("*"):s.elements;if(l&&!/MSIE [678]/.test(navigator.userAgent)&&(l=e(l).get()),o&&(r=e(':input[form="'+o+'"]').get()).length&&(l=(l||[]).concat(r)),!l||!l.length)return i;var d,u,c,h,p,m,_;for(d=0,m=l.length;d<m;d++)if(p=l[d],(c=p.name)&&!p.disabled)if(t&&s.clk&&"image"==p.type)s.clk==p&&(i.push({name:c,value:e(p).val(),type:p.type}),i.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}));else if((h=e.fieldValue(p,!0))&&h.constructor==Array)for(n&&n.push(p),u=0,_=h.length;u<_;u++)i.push({name:c,value:h[u]});else if(a.fileapi&&"file"==p.type){n&&n.push(p);var f=p.files;if(f.length)for(u=0;u<f.length;u++)i.push({name:c,value:f[u],type:p.type});else i.push({name:c,value:"",type:p.type})}else null!==h&&void 0!==h&&(n&&n.push(p),i.push({name:c,value:h,type:p.type,required:p.required}));if(!t&&s.clk){var g=e(s.clk),y=g[0];(c=y.name)&&!y.disabled&&"image"==y.type&&(i.push({name:c,value:g.val()}),i.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}))}return i},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var n=[];return this.each(function(){var i=this.name;if(i){var a=e.fieldValue(this,t);if(a&&a.constructor==Array)for(var r=0,s=a.length;r<s;r++)n.push({name:i,value:a[r]});else null!==a&&void 0!==a&&n.push({name:this.name,value:a})}}),e.param(n)},e.fn.fieldValue=function(t){for(var n=[],i=0,a=this.length;i<a;i++){var r=this[i],s=e.fieldValue(r,t);null===s||void 0===s||s.constructor==Array&&!s.length||(s.constructor==Array?e.merge(n,s):n.push(s))}return n},e.fieldValue=function(t,n){var i=t.name,a=t.type,r=t.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||t.disabled||"reset"==a||"button"==a||("checkbox"==a||"radio"==a)&&!t.checked||("submit"==a||"image"==a)&&t.form&&t.form.clk!=t||"select"==r&&-1==t.selectedIndex))return null;if("select"==r){var s=t.selectedIndex;if(s<0)return null;for(var o=[],l=t.options,d="select-one"==a,u=d?s+1:l.length,c=d?s:0;c<u;c++){var h=l[c];if(h.selected){var p=h.value;if(p||(p=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),d)return p;o.push(p)}}return o}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,a=this.tagName.toLowerCase();n.test(i)||"textarea"==a?this.value="":"checkbox"==i||"radio"==i?this.checked=!1:"select"==a?this.selectedIndex=-1:"file"==i?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(i)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},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(t){return void 0===t&&(t=!0),this.each(function(){var n=this.type;if("checkbox"==n||"radio"==n)this.checked=t;else if("option"==this.tagName.toLowerCase()){var i=e(this).parent("select");t&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=t}})},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(e,t,n,i,a,r,s,o){"use strict";return n.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 %>">
2561  <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))&&i.length>1?i[1].split('"')[0]:(i=/<body.*data-base-url=[\"'](.*)[\"'].*/im.exec(t))&&i.length>1?i[1].split('"')[0]:(i=/<base.*href=[\"'](.*)[\"'].*/im.exec(t))&&i.length>1?i[1]:""}},routerOptions:{id:null,pathExp:null},form:function(n){var i=this,a=i.$modal;i.options.automaticallyAddButtonActions&&(n[i.options.buttons]={}),n.a={},e.each(n,function(n,r){var s=t.union(t.keys(i.options.actionOptions),["templateOptions"]),o=e.extend(!0,{},i.options.actionOptions,t.pick(r,s));r.templateOptions=e.extend(!0,r.templateOptions,i.options.templateOptions);var l=t.union(t.keys(i.options.actionOptions),["actions","actionOptions"]),d=e.extend(!0,t.omit(r,l),i.options);e(n,e("."+r.templateOptions.classBodyName,a)).each(function(t){var n=e(this);n.on(o.eventType,function(t){t.stopPropagation(),t.preventDefault(),i.loading.show(!1),null!==o.modalFunction?i[o.modalFunction]():e.nodeName(n[0],"input")||e.nodeName(n[0],"button")||!0===r.isForm?i.options.handleFormAction.apply(i,[n,o,d]):(null!==r.ajaxUrl||e.nodeName(n[0],"a"))&&i.options.handleLinkAction.apply(i,[n,o,d])})})})},handleFormAction:function(t,n,i){var a=this,r={};r[t.attr("name")]=t.attr("value");var s;s=e.nodeName(t[0],"form")?t:t.parents("form:not(.disableAutoSubmit)");var o;if(o=null!==n.ajaxUrl?"function"==typeof n.ajaxUrl?n.ajaxUrl.apply(a,[t,n]):n.ajaxUrl:t.parents("form").attr("action"),n.disableAjaxFormSubmit)return t.attr("name")&&t.attr("value")&&s.append(e('<input type="hidden" name="'+t.attr("name")+'" value="'+t.attr("value")+'" />')),void s.trigger("submit");s.on("submit",function(e){e.preventDefault()}),s.trigger("submit"),a.loading.show(!1),s.ajaxSubmit({timeout:n.timeout,data:r,url:o,error:function(e,t,i){a.loading.hide(),"timeout"===t&&n.onTimeout?n.onTimeout.apply(a,e,i):n.onError?n.onError(e,t,i):console.log("error happened do something"),a.emit("formActionError",[e,t,i])},success:function(r,s,o,l){a.loading.hide(),0===e(n.error,r).size()&&0===e(n.formFieldError,r).size()?!0!==n.redirectOnResponse?(n.onSuccess&&n.onSuccess(a,r,s,o,l),!0===n.displayInModal?a.redraw(r,i):(t.trigger("destroy.plone-modal.patterns"),n.reloadWindowOnClose&&a.reloadWindow()),a.emit("formActionSuccess",[r,s,o,l])):"function"==typeof n.redirectToUrl?window.parent.location.href=n.redirectToUrl.apply(a,[t,r,n]):window.parent.location.href=n.redirectToUrl:n.onFormError?n.onFormError(a,r,s,o,l):a.redraw(r,i)}})},handleLinkAction:function(t,n,i){var a,r=this;a=n.ajaxUrl?"function"==typeof n.ajaxUrl?n.ajaxUrl.apply(r,[t,n]):n.ajaxUrl:t.attr("href"),!1!==n.displayInModal?e.ajax({url:a}).fail(function(e,t,i){"timeout"===t&&n.onTimeout?n.onTimeout(r.$modal,e,i):n.onError?n.onError(e,t,i):window.alert(o("There was an error loading modal.")),r.emit("linkActionError",[e,t,i])}).done(function(e,t,a){r.redraw(e,i),n.onSuccess&&n.onSuccess(r,e,t,a),r.emit("linkActionSuccess",[e,t,a])}).always(function(){r.loading.hide()}):"_blank"===t.attr("target")?(window.open(a,"_blank"),r.loading.hide()):window.location=a},render:function(n){var i=this;if(i.emit("before-render"),i.$raw){var a=i.$raw.clone();e("input:checked",a).each(function(){this.setAttribute&&this.setAttribute("checked","checked")});var r={title:"",prepend:"<div />",content:"",buttons:'<div class="pattern-modal-buttons"></div>',options:n.templateOptions};if(null===n.title){var s=e(n.titleSelector,a);r.title=s.html(),e(n.titleSelector,a).remove()}else r.title=n.title;n.prependContent&&(r.prepend=e("<div />").append(e(n.prependContent,a).clone()).html(),e(n.prependContent,a).remove()),n.content?r.content=e(n.content,a).html():r.content=a.html(),i.$modal=e(t.template(i.options.templateOptions.template)(r)),i.$modalDialog=e("> ."+i.options.templateOptions.classDialog,i.$modal),i.$modalContent=e("> ."+i.options.templateOptions.classModal,i.$modalDialog),e("form",i.$modal).on("keydown",function(t){13===t.keyCode&&"TEXTAREA"!==t.target.nodeName&&(t.preventDefault(),e("input[type=submit], button[type=submit], button:not(type)",this).eq(0).trigger("click"))}),e(n.buttons,i.$modal).each(function(){var t=e(this);t.on("click",function(e){e.stopPropagation(),e.preventDefault()}).clone().appendTo(e(".pattern-modal-buttons",i.$modal)).off("click").on("click",function(e){e.stopPropagation(),e.preventDefault(),t.trigger("click")}),t.hide()}),i.emit("before-events-setup"),e(".plone-modal-header > a.plone-modal-close, .plone-modal-footer > a.plone-modal-close",i.$modal).off("click").on("click",function(t){t.stopPropagation(),t.preventDefault(),e(t.target).trigger("destroy.plone-modal.patterns")}),n.form&&n.form.apply(i,[n.actions]),i.$modal.addClass(i.options.templateOptions.className).on("destroy.plone-modal.patterns",function(e){e.stopPropagation(),i.hide()}).on("resize.plone-modal.patterns",function(e){e.stopPropagation(),e.preventDefault(),i.positionModal()}).appendTo(i.$wrapperInner),i.options.loadLinksWithinModal&&i.$modal.on("click",function(t){t.stopPropagation(),e.nodeName(t.target,"a")&&t.preventDefault(),i.$modal.trigger("modal-click")}),i.$modal.data("pattern-"+i.name,i),i.emit("after-render")}}},reloadWindow:function(){window.parent.location.reload()},init:function(){var t=this;t.options.loadLinksWithinModal=e.parseJSON(t.options.loadLinksWithinModal),null!==t.options.routerOptions.id&&r.addRoute("modal",t.options.routerOptions.id,function(){this.show()},t,t.options.routerOptions.pathExp,t.options.routerOptions.expReplace),!0===t.options.backdropOptions.closeOnEsc&&e(document).on("keydown",function(e,n){t.$el.is("."+t.options.templateOptions.classActiveName)&&27===e.ke
2561yCode&&t.hide()}),e(window.parent).resize(function(){t.positionModal()}),t.options.triggers&&e.each(t.options.triggers,function(n,i){var a=i.substring(0,i.indexOf(" ")),r=i.substring(i.indexOf(" "),i.length);e(r||t.$el).on(a,function(e){e.stopPropagation(),e.preventDefault(),t.show()})}),t.$el.is("a")&&(t.$el.attr("href")&&!t.options.image&&(t.options.target||"#"!==t.$el.attr("href").substr(0,1)||(t.options.target=t.$el.attr("href"),t.options.content=""),t.options.ajaxUrl||"#"===t.$el.attr("href").substr(0,1)||(t.options.ajaxUrl=function(){return t.$el.attr("href")})),t.$el.on("click",function(e){e.stopPropagation(),e.preventDefault(),t.show()})),t.initModal()},createAjaxModal:function(){var t=this;t.emit("before-ajax"),t.loading.show();var n=t.options.ajaxUrl;"function"==typeof n&&(n=n.apply(t,[t.options])),t.ajaxXHR=e.ajax({url:n,type:t.options.ajaxType}).done(function(n,i,a){t.ajaxXHR=void 0,t.$raw=e("<div />").append(e(s.parseBodyTag(n))),t.emit("after-ajax",t,i,a),t._show()}).fail(function(e,n,i){var a=t.options.actionOptions;"timeout"===n&&a.onTimeout?a.onTimeout(t.$modal,e,i):a.onError?a.onError(e,n,i):(window.alert(o("There was an error loading modal.")),t.hide()),t.emit("linkActionError",[e,n,i])}).always(function(){t.loading.hide()})},createTargetModal:function(){var t=this;t.$raw=e(t.options.target).clone(),t._show()},createBasicModal:function(){var t=this;t.$raw=e("<div/>").html(t.$el.clone()),t._show()},createHtmlModal:function(){var t=this,n=e(t.options.html);t.$raw=n,t._show()},createImageModal:function(){var t=this;t.$wrapper.addClass("image-modal");var n=t.$el.attr("href"),i=t.$el.attr("data-modal-srcset")||"",a=e.trim(t.$el.context.innerText)||"Image";t.$raw=e("<div><h1>"+a+'</h1><div id="content"><div class="modal-image"><img src="'+n+'" srcset="'+i+'" /></div></div></div>'),t._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","left"===e?(d=n+"px",i>r&&(d="0px"),c.left=d):"right"===e?(u=n+"px",i>r&&(u="0px"),c.right=u,c.left="auto"):(d=r/2-i/2-n+"px",i>r&&(d="0px"),c.left=d),"top"===t?(o=n+"px",a>s&&(o="0px"),c.top=o):"bottom"===t?(l=n+"px",a>s&&(l="0px"),c.bottom=l,c.top="auto"):(o=s/2-a/2-n+"px",a>s&&(o="0px"),c.top=o),c},modalInitialized:function(){var e=this;return null!==e.$modal&&void 0!==e.$modal},positionModal:function(){var t=this;if(t.modalInitialized()){t.$modal.removeAttr("style"),t.$wrapper.parent().is("body")&&t.$wrapper.height(e(window.parent).height());var n="function"==typeof t.options.margin?t.options.margin():t.options.margin;t.$modal.css({position:"absolute",padding:n}),t.$modalDialog.css({margin:"0",padding:"0",width:t.options.width,height:t.options.height}),t.$modalContent.css({width:t.options.width});var i=t.options.position.split(" "),a=i[0],r=i[1],s=t.$modalDialog.outerWidth(!0),o=t.$modalDialog.outerHeight(!0),l=t.$wrapperInner.width(),d=t.$wrapperInner.height(),u=t.findPosition(a,r,n,s,o,l,d);for(var c in u)t.$modalDialog.css(c,u[c])}},render:function(e){var t=this;t.emit("render"),t.options.render.apply(t,[e]),t.emit("rendered")},show:function(){var e=this;e.backdrop=e.createBackdrop(),e.createModal()},createBackdrop:function(){var t=this,n=new i(t.$el.parents(t.options.backdrop),t.options.backdropOptions),a=1041;return e(t.options.zIndexSelector).each(function(){a=Math.max(a,parseInt(e(this).css("zIndex"))+1||1041)}),t.$wrapper=e("<div/>").hide().css({"z-index":a,"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 s.Loading({backdrop:n}),t.$wrapperInner=e("<div/>
2561").addClass(t.options.classWrapperInnerName).css({position:"absolute",bottom:"0",left:"0",right:"0",top:"0"}).appendTo(t.$wrapper),n},_show:function(){var t=this;t.render.apply(t,[t.options]),t.emit("show"),t.backdrop.show(),t.$wrapper.show(),t.loading.hide(),t.$el.addClass(t.options.templateOptions.classActiveName),t.$modal.addClass(t.options.templateOptions.classActiveName),a.scan(t.$modal),t.positionModal(),e("img",t.$modal).load(function(){t.positionModal()}),e(window.parent).on("resize.plone-modal.patterns",function(){t.positionModal()}),e("body").addClass("plone-modal-open"),t.emit("shown")},hide:function(){var t=this;t.ajaxXHR&&t.ajaxXHR.abort(),t.emit("hide"),t._suppressHide&&!window.confirm(t._suppressHide)||(t.loading.hide(),t.$el.removeClass(t.options.templateOptions.classActiveName),void 0!==t.$modal&&(t.$modal.remove(),t.initModal()),t.$wrapper.remove(),e(".plone-modal",e("body")).size()<1&&(t._suppressHide=void 0,t.backdrop.hide(),e("body").removeClass("plone-modal-open"),e(window.parent).off("resize.plone-modal.patterns")),t.emit("hidden"))},redraw:function(t,n){var i=this;i.emit("beforeDraw"),i.$modal.remove(),i.$raw=e("<div />").append(e(s.parseBodyTag(t))),i.render.apply(i,[n||i.options]),i.$modal.addClass(i.options.templateOptions.classActiveName),i.positionModal(),a.scan(i.$modal),i.emit("afterDraw")}})}),define("mockup-patterns-livesearch",["jquery","pat-base","underscore","translate"],function(e,t,n,i){"use strict";return t.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 n=this;n.active=!0,n.render(),n.$el.addClass("searching");var a=n.$el.serialize();void 0===t&&(t=1);var r=function(){var t=location.search,i=t.indexOf("sort_on");if(-1===i){var a=e("#search-results");return a.length>0?a.attr("data-default-sort"):n.options.defaultSortOn}var r=t.substring(i);return r=r.split("&")[0],r=r.split("=")[1]}();e.ajax({url:n.options.ajaxUrl+"?"+a+"&page="+t+"&perPage="+n.options.perPage+"&sort_on="+r,dataType:"json"}).done(function(e){n.results=e,n.page=t,a!==n.$el.serialize()&&n.doSearch()}).fail(function(){n.results={items:[{url:"",title:i("Error"),description:i("There was an error searching…"),state:"error",error:!1}],total:1},n.page=1}).always(function(){n.active=!1,n.selectedItem=-1,n.$el.removeClass("searching"),n.render()})},render:function(){var t=this;if(t.$results.empty(),t.active?t.$results.append(e('<li class="searching">'+i("searching…")+"</li>")):null===t.results?t.$results.append(e('<li class="no-results no-search">'+i("enter search phrase")+"</li>")):0===t.results.total?t.$results.append(e('<li class="no-results">'+i("no results found")+"</li>")):t.$results.append(e('<li class="results-summary">'+i("found")+" "+t.results.total+" "+i("results")+"</li>")),null!==t.results){var a=n.template(t.options.itemTemplate);n.each(t.results.items,function(n,r){var s=e(a(e.extend({_t:i},n)));s.attr("data-url",n.url).on("click",function(){n.error||(window.location=n.url)}),r===t.selectedItem&&s.addClass("selected"),t.$results.append(s)});var r=[];if(t.page>1){var s=e('<a href="#" class="prev">'+i("Previous")+"</a>");s.click(function(e){t.disableHiding=!0,e.preventDefault(),t.doSearch(t.page-1)}),r.push(s)}if(t.page*t.options.perPage<t.results.total){var o=e('<a href="#" class="next">'+i("Next")+"</a>");o.click(function(e){t.disableHiding=!0,e.preventDefault(),t.doSearch(t.page+1)}),r.push(o)}if(r.length>0){var l=e('<li class="load-more"><div class="page">'+t.page+"</div></li>");l.prepend(r),t.$results.append(l)}}t.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
2561:t.left}),e.$results.show()},hide:function(){this.$results.hide(),this.$el.removeClass("livesearch-active")},init:function(){var t=this;t.$input=t.$el.find(t.options.inputSelector),t.$input.off("focusout").on("focusout",function(){setTimeout(function(){t.disableHiding?(t.disableHiding=!1,t.$input.focus()):t.hide()},200)}).off("focusin").on("focusin",function(){t.onceFocused?t.$results.is(":visible")||t.render():(t.onceFocused=!0,t.$input.val().length>=t.options.minimumInputLength&&t.doSearch())}).attr("autocomplete","off").off("keyup").on("keyup",function(e){var n=e.keyCode||e.which;if(27===n)return t.$input.val(""),void t.hide();if(t.results&&t.results.items&&t.results.items.length>0){if(13===n)return void(-1!==t.selectedItem&&(window.location=t.results.items[t.selectedItem].url));if(38===n)return void(-1!==t.selectedItem&&(t.selectedItem-=1,t.render()));if(40===n)return void(t.selectedItem<t.results.items.length&&(t.selectedItem+=1,t.render()))}null!==t.timeout&&(clearTimeout(t.timeout),t.timeout=null),t.active||(t.$input.val().length>=t.options.minimumInputLength?t.timeout=setTimeout(function(){t.doSearch()},t.options.quietMillis):(t.results=null,t.render()))}),e("#sorting-options a").click(function(e){e.preventDefault(),t.onceFocused=!1}),t.$results=e('<ul class="'+t.resultsClass+'"></ul>').hide().insertAfter(t.$input)}})}),define("mockup-patterns-contentloader",["jquery","pat-base","pat-logger","pat-registry","mockup-utils","underscore"],function(e,t,n,i,a,r){"use strict";var s=n.getLogger("pat-contentloader");return t.extend({name:"contentloader",trigger:".pat-contentloader",parser:"mockup",defaults:{url:null,content:null,trigger:"click",target:null,template:null,dataType:"html"},init:function(){var e=this;"el"===e.options.url&&"A"===e.$el[0].tagName&&(e.options.url=e.$el.attr("href")),"immediate"===e.options.trigger?e._load():e.$el.on(e.options.trigger,function(t){t.preventDefault(),e._load()})},_load:function(){var e=this;e.$el.addClass("loading-content"),e.options.url?e.loadRemote():e.loadLocal()},loadRemote:function(){var t=this;e.ajax({url:t.options.url,dataType:t.options.dataType,success:function(n){var i;if("html"===t.options.dataType)-1!==n.indexOf("<html")&&(n=a.parseBodyTag(n)),i=e("<div>"+n+"</div>");else if(-1!==t.options.dataType.indexOf("json")){n.constructor===Array&&1===n.length&&(n=n[0]);try{i=e(r.template(t.options.template)(n))}catch(e){return void s.warn("error rendering template. pat-contentloader will not work")}}null!==t.options.content&&(i=i.find(t.options.content)),t.loadLocal(i),t.$el.removeClass("loading-content")},error:function(){t.$el.addClass("content-load-error")}})},loadLocal:function(t){var n=this;if(t||null!==n.options.content){var a=n.$el;null===n.options.target||0!==(a=e(n.options.target)).size()?(t||(t=e(n.options.content).clone()),t.show(),a.replaceWith(t),i.scan(t),n.$el.removeClass("loading-content")):s.warn("No target nodes found")}else s.warn("No selector configured")}})}),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 e(){return Nt.apply(null,arguments)}function t(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function s(e,t,n,i){return fe(e,t,n,i,!0).utc()}function o(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(e){return null==e._pf&&(e._pf=o()),e._pf}function d(e){if(null==e._isValid){var t=l(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 u(e){var t=s(NaN);return null!=e?r(l(t),e):l(t).userInvalidated=!0,t}function c(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=l(t)),void 0!==t._locale&&(e._locale=t._locale),Wt.length>0)for(n in Wt)i=Wt[n],void 0!==(a=t[i])&&(e[i]=a);return e}function h(t){c(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===zt&&(zt=!0,e.updateOffset(this),zt
2561=!1)}function p(e){return e instanceof h||null!=e&&null!=e._isAMomentObject}function m(e){return 0>e?Math.ceil(e):Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=m(t)),n}function f(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;a>i;i++)(n&&e[i]!==t[i]||!n&&_(e[i])!==_(t[i]))&&s++;return s+r}function g(){}function y(e){return e?e.toLowerCase().replace("_","-"):e}function v(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=y(e[r]).split("-")).length,n=(n=y(e[r+1]))?n.split("-"):null;t>0;){if(i=M(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&f(a,n,!0)>=t-1)break;t--}r++}return null}function M(e){var t=null;if(!Rt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=It._abbr,require("./locale/"+e),L(t)}catch(e){}return Rt[e]}function L(e,t){var n;return e&&(n=void 0===t?b(e):w(e,t))&&(It=n),It._abbr}function w(e,t){return null!==t?(t.abbr=e,Rt[e]=Rt[e]||new g,Rt[e].set(t),L(e),Rt[e]):(delete Rt[e],null)}function b(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return It;if(!t(e)){if(n=M(e))return n;e=[e]}return v(e)}function k(e,t){var n=e.toLowerCase();Ut[n]=Ut[n+"s"]=Ut[t]=e}function Y(e){return"string"==typeof e?Ut[e]||Ut[e.toLowerCase()]:void 0}function T(e){var t,n,i={};for(n in e)a(e,n)&&(t=Y(n))&&(i[t]=e[n]);return i}function D(t,n){return function(i){return null!=i?(x(this,t,i),e.updateOffset(this,n),this):S(this,t)}}function S(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function x(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function j(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=Y(e),"function"==typeof this[e])return this[e](t);return this}function H(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}function C(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(Bt[e]=a),t&&(Bt[t[0]]=function(){return H(a.apply(this,arguments),t[1],t[2])}),n&&(Bt[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function E(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e){var t,n,i=e.match(Jt);for(t=0,n=i.length;n>t;t++)Bt[i[t]]?i[t]=Bt[i[t]]:i[t]=E(i[t]);return function(a){var r="";for(t=0;n>t;t++)r+=i[t]instanceof Function?i[t].call(a,e):i[t];return r}}function O(e,t){return e.isValid()?(t=P(t,e.localeData()),Gt[t]=Gt[t]||A(t),Gt[t](e)):e.localeData().invalidDate()}function P(e,t){var n=5;for(qt.lastIndex=0;n>=0&&qt.test(e);)e=e.replace(qt,function(e){return t.longDateFormat(e)||e}),qt.lastIndex=0,n-=1;return e}function $(e){return"function"==typeof e&&"[object Function]"===Object.prototype.toString.call(e)}function F(e,t,n){un[e]=$(t)?t:function(e){return e&&n?n:t}}function N(e,t){return a(un,e)?un[e](t._strict,t._locale):new RegExp(I(e))}function I(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function W(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){
2561n[t]=_(e)}),n=0;n<e.length;n++)cn[e[n]]=i}function z(e,t){W(e,function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)})}function R(e,t,n){null!=t&&a(cn,e)&&cn[e](t,n._a,n,e)}function U(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function J(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))?e:(n=Math.min(e.date(),U(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function q(t){return null!=t?(J(this,t),e.updateOffset(this,!0),this):S(this,"Month")}function G(e){var t,n=e._a;return n&&-2===l(e).overflow&&(t=n[pn]<0||n[pn]>11?pn:n[mn]<1||n[mn]>U(n[hn],n[pn])?mn:n[_n]<0||n[_n]>24||24===n[_n]&&(0!==n[fn]||0!==n[gn]||0!==n[yn])?_n:n[fn]<0||n[fn]>59?fn:n[gn]<0||n[gn]>59?gn:n[yn]<0||n[yn]>999?yn:-1,l(e)._overflowDayOfYear&&(hn>t||t>mn)&&(t=mn),l(e).overflow=t),e}function B(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function V(e,t){var n=!0;return r(function(){return n&&(B(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function X(e,t){Ln[e]||(B(t),Ln[e]=!0)}function K(e){var t,n,i=e._i,a=wn.exec(i);if(a){for(l(e).iso=!0,t=0,n=bn.length;n>t;t++)if(bn[t][1].exec(i)){e._f=bn[t][0];break}for(t=0,n=kn.length;n>t;t++)if(kn[t][1].exec(i)){e._f+=(a[6]||" ")+kn[t][0];break}i.match(on)&&(e._f+="Z"),de(e)}else e._isValid=!1}function Q(t){var n=Yn.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(K(t),void(!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t))))}function Z(e,t,n,i,a,r,s){var o=new Date(e,t,n,i,a,r,s);return 1970>e&&o.setFullYear(e),o}function ee(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function te(e){return ne(e)?366:365}function ne(e){return e%4==0&&e%100!=0||e%400==0}function ie(e,t,n){var i,a=n-t,r=n-e.day();return r>a&&(r-=7),a-7>r&&(r+=7),i=ge(e).add(r,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function ae(e,t,n,i,a){var r,s=6+a-i,o=ee(e,0,1+s).getUTCDay();return a>o&&(o+=7),n=null!=n?1*n:a,r=1+s+7*(t-1)-o+n,{year:r>0?e:e-1,dayOfYear:r>0?r:te(e-1)+r}}function re(e,t,n){return null!=e?e:null!=t?t:n}function se(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function oe(e){var t,n,i,a,r=[];if(!e._d){for(i=se(e),e._w&&null==e._a[mn]&&null==e._a[pn]&&le(e),e._dayOfYear&&(a=re(e._a[hn],i[hn]),e._dayOfYear>te(a)&&(l(e)._overflowDayOfYear=!0),n=ee(a,0,e._dayOfYear),e._a[pn]=n.getUTCMonth(),e._a[mn]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_n]&&0===e._a[fn]&&0===e._a[gn]&&0===e._a[yn]&&(e._nextDay=!0,e._a[_n]=0),e._d=(e._useUTC?ee:Z).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_n]=24)}}function le(e){var t,n,i,a,r,s,o;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,s=4,n=re(t.GG,e._a[hn],ie(ge(),1,4).year),i=re(t.W,1),a=re(t.E,1)):(r=e._locale._week.dow,s=e._locale._week.doy,n=re(t.gg,e._a[hn],ie(ge(),r,s).year),i=re(t.w,1),null!=t.d?(a=t.d,r>a&&++i):a=null!=t.e?t.e+r:r),o=ae(n,i,a,s,r),e._a[hn]=o.year,e._dayOfYear=o.dayOfYear}function de(t){if(t._f!==e.ISO_8601){t._a=[],l(t).empty=!0;var n,i,a,r,s,o=""+t._i,d=o.length,u=0;for(a=P(t._f,t._locale).match(Jt)||[],n=0;n<a.length;n++)r=a[n],(i=(o.match(N(r,t))||[])[0])&&((s=o.substr(0,o.indexOf(i))).length>0&&l(t).unusedInput.push(s),o=o.slice(o.indexOf(i)+i.length),u+=i.length),Bt[r]?(i?l(t).empty=!1:l(t).unusedTokens.push(r),R(r,i,t)):t._strict&&!i&&l(t).unusedTokens.push(r);l(t).charsLeftOver=d-u,o.length>0&&l(t).unusedInput.push(o),!0===l(t).bigHour&&t._a[_n]<=12&&t._a[_n]>0&&(l(t).bigHour=void 0),t._a[_n]=ue(t._locale,t._a[_n],t._meridiem),oe(t),G(t)}else K(t)}function ue(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function ce(e){var t,n,i,a,s;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)s=0,t=c({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],de(t),d(t)&&(s+=l(t).charsLeftOver,s+=10*l(t).unusedTokens.length,l(t).score=s,(null==i||i>s)&&(i=s,n=t));r(e,n||t)}function he(e){if(!e._d){var t=T(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],oe(e)}}function pe(e){var t=new h(G(me(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function me(e){var i=e._i,a=e._f;return e._locale=e._locale||b(e._l),null===i||void 0===a&&""===i?u({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),p(i)?new h(G(i)):(t(a)?ce(e):a?de(e):n(i)?e._d=i:_e(e),e))}function _e(a){var r=a._i;void 0===r?a._d=new Date:n(r)?a._d=new Date(+r):"string"==typeof r?Q(a):t(r)?(a._a=i(r.slice(0),function(e){return parseInt(e,10)}),oe(a)):"object"==typeof r?he(a):"number"==typeof r?a._d=new Date(r):e.createFromInputFallback(a)}function fe(e,t,n,i,a){var r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,pe(r)}function ge(e,t,n,i){return fe(e,t,n,i,!1)}function ye(e,n){var i,a;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return ge();for(i=n[0],a=1;a<n.length;++a)(!n[a].isValid()||n[a][e](i))&&(i=n[a]);return i}function ve(e){var t=T(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=b(),this._bubble()}function Me(e){return e instanceof ve}function Le(e,t){C(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+H(~~(e/60),2)+t+H(~~e%60,2)})}function we(e){var t=(e||"").match(on)||[],n=((t[t.length-1]||[])+"").match(jn)||["-",0,0],i=60*n[1]+_(n[2]);return"+"===n[0]?i:-i}function be(t,i){var a,r;return i._isUTC?(a=i.clone(),r=(p(t)||n(t)?+t:+ge(t))-+a,a._d.setTime(+a._d+r),e.updateOffset(a,!1),a):ge(t).local()}
2561function ke(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ye(){return this._isUTC&&0===this._offset}function Te(e,t){var n,i,r,s=e,o=null;return Me(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(s={},t?s[t]=e:s.milliseconds=e):(o=Hn.exec(e))?(n="-"===o[1]?-1:1,s={y:0,d:_(o[mn])*n,h:_(o[_n])*n,m:_(o[fn])*n,s:_(o[gn])*n,ms:_(o[yn])*n}):(o=Cn.exec(e))?(n="-"===o[1]?-1:1,s={y:De(o[2],n),M:De(o[3],n),d:De(o[4],n),h:De(o[5],n),m:De(o[6],n),s:De(o[7],n),w:De(o[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=xe(ge(s.from),ge(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new ve(s),Me(e)&&a(e,"_locale")&&(i._locale=e._locale),i}function De(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Se(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 xe(e,t){var n;return t=be(t,e),e.isBefore(t)?n=Se(e,t):(n=Se(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function je(e,t){return function(n,i){var a,r;return null===i||isNaN(+i)||(X(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,a=Te(n,i),He(this,a,e),this}}function He(t,n,i,a){var r=n._milliseconds,s=n._days,o=n._months;a=null==a||a,r&&t._d.setTime(+t._d+r*i),s&&x(t,"Date",S(t,"Date")+s*i),o&&J(t,S(t,"Month")+o*i),a&&e.updateOffset(t,s||o)}function Ce(e,t){var n,i,a=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(a,"months");return 0>t-r?(n=e.clone().add(a-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(a+1,"months"),i=(t-r)/(n-r)),-(a+i)}function Ee(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():O(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Ae(e){var t;return void 0===e?this._locale._abbr:(null!=(t=b(e))&&(this._locale=t),this)}function Oe(){return this._locale}function Pe(e,t){C(0,[e,e.length],0,t)}function $e(e,t,n){return ie(ge([e,11,31+t-n]),t,n).week}function Fe(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ne(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ie(e,t){return t._meridiemParse}function We(e){return e}function ze(e,t,n,i){var a=b(),r=s().set(i,t);return a[n](r,e)}function Re(e,t,n,i,a){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return ze(e,t,n,a);var r,s=[];for(r=0;i>r;r++)s[r]=ze(e,r,n,a);return s}function Ue(e,t,n,i){var a=Te(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Je(e){return 0>e?Math.floor(e):Math.ceil(e)}function qe(e){return 4800*e/146097}function Ge(e){return 146097*e/4800}function Be(e){return function(){return this.as(e)}}function Ve(e){return function(){return this._data[e]}}function Xe(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function Ke(e,t,n){var i=Te(e).abs(),a=_i(i.as("s")),r=_i(i.as("m")),s=_i(i.as("h")),o=_i(i.as("d")),l=_i(i.as("M")),d=_i(i.as("y")),u=a<fi.s&&["s",a]||1===r&&["m"]||r<fi.m&&["mm",r]||1===s&&["h"]||s<fi.h&&["hh",s]||1===o&&["d"]||o<fi.d&&["dd",o]||1===l&&["M"]||l<fi.M&&["MM",l]||1===d&&["y"]||["yy",d];return u[2]=t,u[3]=+e>0,u[4]=n,Xe.apply(null,u)}function Qe(){var e,t,n,i=gi(this._milliseconds)/1e3,a=gi(this._days),r=gi(this._months);t=m((e=m(i/60))/60),i%=60,e%=60;var s=n=m(r/12),o=r%=12,l=a,d=t,u=e,c=i,h=this.asSeconds();return h?(0>h?"-":"")+"P"+(s?s+"Y":"")+(o?o+"M":"")+(l?l+"D":"")+(d||u||c?"T":"")+(d?d+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}function Ze(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function et(e,t,n){var i={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+Ze(i[n],+e)}function tt(e,t,n){return e+" "+it({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function nt(e){return e>9?nt(e%10):e}function it(e,t){return 2===t?at(e):e}function at(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}function rt(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 st(e){return e>1&&5>e&&1!=~~(e/10)}function ot(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+(st(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(st(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?a+(st(e)?"dny":"dní"):a+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?a+(st(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?a+(st(e)?"roky":"let"):a+"lety"}}function lt(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 dt(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 ut(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 ct(e,t,n,i){var a="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta"}return a=ht(e,i)+" "+a}function ht(e,t){return 10>e?t?Ii[e]:Ni[e]:e}function pt(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 mt(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 _t(e){return(e?"":"[múlt] ")+"["+Ji[this.day()]+"] LT[-kor]"}function ft(e){return e%100==11||e%10!=1}function gt(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"nokkrar sekúndur":"nokkrum sekúndum";
2561case"m":return t?"mínúta":"mínútu";case"mm":return ft(e)?a+(t||i?"mínútur":"mínútum"):t?a+"mínúta":a+"mínútu";case"hh":return ft(e)?a+(t||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return t?"dagur":i?"dag":"degi";case"dd":return ft(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 ft(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 ft(e)?a+(t||i?"ár":"árum"):a+(t||i?"ár":"ári")}}function yt(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 vt(e){if(e=parseInt(e,10),isNaN(e))return!1;if(0>e)return!0;if(10>e)return e>=4&&7>=e;if(100>e){var t=e%10,n=e/10;return vt(0===t?n:t)}if(1e4>e){for(;e>=10;)e/=10;return vt(e)}return e/=1e3,vt(e)}function Mt(e,t,n,i){return t?wt(n)[0]:i?wt(n)[1]:wt(n)[2]}function Lt(e){return e%10==0||e>10&&20>e}function wt(e){return qi[e].split("_")}function bt(e,t,n,i){var a=e+" ";return 1===e?a+Mt(e,t,n[0],i):t?a+(Lt(e)?wt(n)[1]:wt(n)[0]):i?a+wt(n)[1]:a+(Lt(e)?wt(n)[1]:wt(n)[2])}function kt(e,t,n){return n?t%10==1&&11!==t?e[2]:e[3]:t%10==1&&11!==t?e[0]:e[1]}function Yt(e,t,n){return e+" "+kt(Bi[n],e,t)}function Tt(e,t,n){return kt(Bi[n],e,t)}function Dt(e){return 5>e%10&&e%10>1&&~~(e/10)%10!=1}function St(e,t,n){var i=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return i+(Dt(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(Dt(e)?"godziny":"godzin");case"MM":return i+(Dt(e)?"miesiące":"miesięcy");case"yy":return i+(Dt(e)?"lata":"lat")}}function xt(e,t,n){var i={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+i[n]}function jt(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function Ht(e,t,n){var i={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===n?t?"минута":"минуту":e+" "+jt(i[n],+e)}function Ct(e){return e>1&&5>e}function Et(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+(Ct(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(Ct(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(Ct(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(Ct(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(Ct(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":5>e?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":5>e?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":5>e?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":5>e?t||i?"leta":"leti":t||i?"let":"leti"}}function Ot(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 Pt(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function $t(e,t,n){var i={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+Pt(i[n],+e)}function Ft(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var Nt,It,Wt=e.momentProperties=[],zt=!1,Rt={},Ut={},Jt=/(\[[^\[]*\])|(\\)?(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}
2561|x|X|zz?|ZZ?|.)/g,qt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gt={},Bt={},Vt=/\d/,Xt=/\d\d/,Kt=/\d{3}/,Qt=/\d{4}/,Zt=/[+-]?\d{6}/,en=/\d\d?/,tn=/\d{1,3}/,nn=/\d{1,4}/,an=/[+-]?\d{1,6}/,rn=/\d+/,sn=/[+-]?\d+/,on=/Z|[+-]\d\d:?\d\d/gi,ln=/[+-]?\d+(\.\d{1,3})?/,dn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,un={},cn={},hn=0,pn=1,mn=2,_n=3,fn=4,gn=5,yn=6;C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),C("MMMM",0,0,function(e){return this.localeData().months(this,e)}),k("month","M"),F("M",en),F("MM",en,Xt),F("MMM",dn),F("MMMM",dn),W(["M","MM"],function(e,t){t[pn]=_(e)-1}),W(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[pn]=a:l(n).invalidMonth=e});var vn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ln={};e.suppressDeprecationWarnings=!1;var wn=/^\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)?)?$/,bn=[["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}/]],kn=[["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/]],Yn=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=V("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":""))}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),k("year","y"),F("Y",sn),F("YY",en,Xt),F("YYYY",nn,Qt),F("YYYYY",an,Zt),F("YYYYYY",an,Zt),W(["YYYYY","YYYYYY"],hn),W("YYYY",function(t,n){n[hn]=2===t.length?e.parseTwoDigitYear(t):_(t)}),W("YY",function(t,n){n[hn]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Tn=D("FullYear",!1);C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),k("week","w"),k("isoWeek","W"),F("w",en),F("ww",en,Xt),F("W",en),F("WW",en,Xt),z(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=_(e)});var Dn={dow:0,doy:6};C("DDD",["DDDD",3],"DDDo","dayOfYear"),k("dayOfYear","DDD"),F("DDD",tn),F("DDDD",Kt),W(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),e.ISO_8601=function(){};var Sn=V("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=ge.apply(null,arguments);return this>e?this:e}),xn=V("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=ge.apply(null,arguments);return e>this?this:e});Le("Z",":"),Le("ZZ",""),F("Z",on),F("ZZ",on),W(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=we(e)});var jn=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Hn=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Cn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Te.fn=ve.prototype;var En=je(1,"add"),An=je(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var On=V("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)});C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pe("gggg","weekYear"),Pe("ggggg","weekYear"),Pe("GGGG","isoWeekYear"),Pe("GGGGG","isoWeekYear"),k("weekYear","gg"),k("isoWeekYear","GG"),F("G",sn),F("g",sn),F("GG",en,Xt),F("gg",en,Xt),F("GGGG",nn,Qt),F("gggg",nn,Qt),F("GGGGG",an,Zt),F("ggggg",an,Zt),z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=_(e)}),z(["gg","GG"],function(t,n,i,a){n[a]=e.parseTwoDigitYear(t)}),C("Q",0,0,"quarter"),k("quarter","Q"),F("Q",Vt),W("Q",function(e,t){t[pn]=3*(_(e)-1)}),C("D",["DD",2],"Do","date"),k("date","D"),F("D",en),F("DD",en,Xt),F("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),W(["D","DD"],mn),W("Do",function(e,t){t[mn]=_(e.match(en)[0],10)});var Pn=D("Date",!0);C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),k("day","d"),k("weekday","e"),k("isoWeekday","E"),F("d",en),F("e",en),F("E",en),F("dd",dn),F("ddd",dn),F("dddd",dn),z(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:l(n).invalidWeekday=e}),z(["d","e","E"],function(e,t,n,i){t[i]=_(e)});var $n="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nn="Su_Mo_Tu_We_Th_Fr_Sa".split("_");C("H",["HH",2],0,"hour"),C("h",["hh",2],0,function(){return this.hours()%12||12}),Ne("a",!0),Ne("A",!1),k("hour","h"),F("a",Ie),F("A",Ie),F("H",en),F("h",en),F("HH",en,Xt),F("hh",en,Xt),W(["H","HH"],_n),W(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),W(["h","hh"],function(e,t,n){t[_n]=_(e),l(n).bigHour=!0});var In=/[ap]\.?m?\.?/i,Wn=D("Hours",!0);C("m",["mm",2],0,"minute"),k("minute","m"),F("m",en),F("mm",en,Xt),W(["m","mm"],fn);var zn=D("Minutes",!1);C("s",["ss",2],0,"second"),k("second","s"),F("s",en),F("ss",en,Xt),W(["s","ss"],gn);var Rn=D("Seconds",!1);C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),k("millisecond","ms"),F("S",tn,Vt),F("SS",tn,Xt),F("SSS",tn,Kt);var Un;for(Un="SSSS";Un.length<=9;Un+="S")F(Un,rn);for(Un="S";Un.length<=9;Un+="S")W(Un,function(e,t){t[yn]=_(1e3*("0."+e))});var Jn=D("Milliseconds",!1);C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var qn=h.prototype;qn.add=En,qn.calendar=function(e,t){var n=e||ge(),i=be(n,this).startOf("day"),a=this.diff(i,"days",!0),r=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(t&&t[r]||this.localeData().calendar(r,this,ge(n)))},qn.clone=function(){return new h(this)},qn.diff=function(e,t,n){var i,a,r=be(e,this),s=6e4*(r.utcOffset()-this.utcOffset());return"year"===(t=Y(t))||"month"===t||"quarter"===t?(a=Ce(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(i=this-r,a="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-s)/864e5:"week"===t?(i-s)/6048e5:i),n?a:m(a)},qn.endOf=function(e){return void 0===(e=Y(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},qn.format=function(t){var n=O(this,t||e.defaultFormat);return this.localeData().postformat(n)},qn.from=function(e,t){return this.isValid()?Te({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},qn.fromNow=function(e){return this.from(ge(),e)},qn.to=function(e,t){return this.isValid()?Te({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},qn.toNow=function(e){return this.to(ge(),e)},qn.get=j,qn.invalidAt=function(){return l(this).overflow},qn.isAfter=function(e,t){return"millisecond"===(t=Y(void 0!==t?t:"millisecond"))?(e=p(e)?e:ge(e),+this>+e):(p(e)?+e:+ge(e))<+this.clone().startOf(t)},qn.isBefore=function(e,t){var n;return"millisecond"===(t=Y(void 0!==t?t:"millisecond"))?+(e=p(e)?e:ge(e))>+this:(n=p(e)?+e:+ge(e),+this.clone().endOf(t)<n)},qn.isBetween=function(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)},qn.isSame=function(e,t){var n;return"millisecond"===(t=Y(t||"millisecond"))?(e=p(e)?e:ge(e),+this==+e):(n=+ge(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},qn.isValid=function(){return d(this)},qn.lang=On,qn.locale=Ae,qn.localeData=Oe,qn.max=xn,qn.min=Sn,qn.parsingFlags=function(){return r({},l(this))},qn.set=j,qn.startOf=function(e){switch(e=Y(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},qn.subtract=An,qn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},qn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},qn.toDate=function(){return this._offset?new Date(+this):this._d},qn.toISOString=Ee,qn.toJSON=Ee,qn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},qn.unix=function(){return Math.floor(+this/1e3)},qn.valueOf=function(){return+this._d-6e4*(this._offset||0)},qn.year=Tn,qn.isLeapYear=function(){return ne(this.year())},qn.weekYear=function(e){var t=ie(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},qn.isoWeekYear=function(e){var t=ie(this,1,4).year;return null==e?t:this.add(e-t,"y")},qn.quarter=qn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},qn.month=q,qn.daysInMonth=function(){return U(this.year(),this.month())},qn.week=qn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},qn.isoWeek=qn.isoWeeks=function(e){var t=ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},qn.weeksInYear=function(){var e=this.localeData()._week;return $e(this.year(),e.dow,e.doy)},qn.isoWeeksInYear=function(){return $e(this.year(),1,4)},qn.date=Pn,qn.day=qn.days=function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Fe(e,this.localeData()),this.add(e-t,"d")):t},qn.weekday=function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},qn.isoWeekday=function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},qn.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")},qn.hour=qn.hours=Wn,qn.minute=qn.minutes=zn,qn.second=qn.seconds=Rn,qn.millisecond=qn.milliseconds=Jn,qn.utcOffset=function(t,n){var i,a=this._offset||0;return null!=t?("string"==typeof t&&(t=we(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(i=ke(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!n||this._changeInProgress?He(this,Te(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?a:ke(this)},qn.utc=function(e){return this.utcOffset(0,e)},qn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ke(this),"m")),this},qn.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(we(this._i)),this},qn.hasAlignedHourOffset=function(e){return e=e?ge(e).utcOffset():0,(this.utcOffset()-e)%60==0},qn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},qn.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(c(e,this),(e=me(e))._a){var t=e._isUTC?s(e._a):ge(e._a);this._isDSTShifted=this.isValid()&&f(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},qn.isLocal=function(){return!this._isUTC},qn.isUtcOffset=function(){return this._isUTC},qn.isUtc=Ye,qn.isUTC=Ye,qn.zoneAbbr=function(){return this._isUTC?"UTC":""},qn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},qn.dates=V("dates accessor is deprecated. Use date instead.",Pn),qn.months=V("months accessor is deprecated. Use month instead",q),qn.years=V("years accessor is deprecated. Use year instead",Tn),qn.zone=V("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 Gn=qn,Bn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Vn={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"},Xn=/\d{1,2}/,Kn={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"},Qn=g.prototype;
2561Qn._calendar=Bn,Qn.calendar=function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i},Qn._longDateFormat=Vn,Qn.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])},Qn._invalidDate="Invalid date",Qn.invalidDate=function(){return this._invalidDate},Qn._ordinal="%d",Qn.ordinal=function(e){return this._ordinal.replace("%d",e)},Qn._ordinalParse=Xn,Qn.preparse=We,Qn.postformat=We,Qn._relativeTime=Kn,Qn.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)},Qn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},Qn.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)},Qn.months=function(e){return this._months[e.month()]},Qn._months=vn,Qn.monthsShort=function(e){return this._monthsShort[e.month()]},Qn._monthsShort=Mn,Qn.monthsParse=function(e,t,n){var i,a,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;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}},Qn.week=function(e){return ie(e,this._week.dow,this._week.doy).week},Qn._week=Dn,Qn.firstDayOfYear=function(){return this._week.doy},Qn.firstDayOfWeek=function(){return this._week.dow},Qn.weekdays=function(e){return this._weekdays[e.day()]},Qn._weekdays=$n,Qn.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},Qn._weekdaysMin=Nn,Qn.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},Qn._weekdaysShort=Fn,Qn.weekdaysParse=function(e){var t,n,i;for(this._weekdaysParse=this._weekdaysParse||[],t=0;7>t;t++)if(this._weekdaysParse[t]||(n=ge([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},Qn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Qn._meridiemParse=In,Qn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},L("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=V("moment.lang is deprecated. Use moment.locale instead.",L),e.langData=V("moment.langData is deprecated. Use moment.localeData instead.",b);var Zn=Math.abs,ei=Be("ms"),ti=Be("s"),ni=Be("m"),ii=Be("h"),ai=Be("d"),ri=Be("w"),si=Be("M"),oi=Be("y"),li=Ve("milliseconds"),di=Ve("seconds"),ui=Ve("minutes"),ci=Ve("hours"),hi=Ve("days"),pi=Ve("months"),mi=Ve("years"),_i=Math.round,fi={s:45,m:45,h:22,d:26,M:11},gi=Math.abs,yi=ve.prototype;yi.abs=function(){var e=this._data;return this._milliseconds=Zn(this._milliseconds),this._days=Zn(this._days),this._months=Zn(this._months),e.milliseconds=Zn(e.milliseconds),e.seconds=Zn(e.seconds),e.minutes=Zn(e.minutes),e.hours=Zn(e.hours),e.months=Zn(e.months),e.years=Zn(e.years),this},yi.add=function(e,t){return Ue(this,e,t,1)},yi.subtract=function(e,t){return Ue(this,e,t,-1)},yi.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=Y(e))||"year"===e)return t=this._days+i/864e5,n=this._months+qe(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Ge(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)}},yi.asMilliseconds=ei,yi.asSeconds=ti,yi.asMinutes=ni,yi.asHours=ii,yi.asDays=ai,yi.asWeeks=ri,yi.asMonths=si,yi.asYears=oi,yi.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)},yi._bubble=function(){var e,t,n,i,a,r=this._milliseconds,s=this._days,o=this._months,l=this._data;return r>=0&&s>=0&&o>=0||0>=r&&0>=s&&0>=o||(r+=864e5*Je(Ge(o)+s),s=0,o=0),l.milliseconds=r%1e3,e=m(r/1e3),l.seconds=e%60,t=m(e/60),l.minutes=t%60,n=m(t/60),l.hours=n%24,s+=m(n/24),a=m(qe(s)),o+=a,s-=Je(Ge(a)),i=m(o/12),o%=12,l.days=s,l.months=o,l.years=i,this},yi.get=function(e){return e=Y(e),this[e+"s"]()},yi.milliseconds=li,yi.seconds=di,yi.minutes=ui,yi.hours=ci,yi.days=hi,yi.weeks=function(){return m(this.days()/7)}
2561,yi.months=pi,yi.years=mi,yi.humanize=function(e){var t=this.localeData(),n=Ke(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},yi.toISOString=Qe,yi.toString=Qe,yi.toJSON=Qe,yi.locale=Ae,yi.localeData=Oe,yi.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qe),yi.lang=On,C("X",0,0,"unix"),C("x",0,0,"valueOf"),F("x",sn),F("X",ln),W("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),W("x",function(e,t,n){n._d=new Date(_(e))}),e.version="2.10.6",function(e){Nt=e}(ge),e.fn=Gn,e.min=function(){return ye("isBefore",[].slice.call(arguments,0))},e.max=function(){return ye("isAfter",[].slice.call(arguments,0))},e.utc=s,e.unix=function(e){return ge(1e3*e)},e.months=function(e,t){return Re(e,t,"months",12,"month")},e.isDate=n,e.locale=L,e.invalid=u,e.duration=Te,e.isMoment=p,e.weekdays=function(e,t){return Re(e,t,"weekdays",7,"day")},e.parseZone=function(){return ge.apply(null,arguments).parseZone()},e.localeData=b,e.isDuration=Me,e.monthsShort=function(e,t){return Re(e,t,"monthsShort",12,"month")},e.weekdaysMin=function(e,t){return Re(e,t,"weekdaysMin",7,"day")},e.defineLocale=w,e.weekdaysShort=function(e,t){return Re(e,t,"weekdaysShort",7,"day")},e.normalizeUnits=Y,e.relativeTimeThreshold=function(e,t){return void 0!==fi[e]&&(void 0===t?fi[e]:(fi[e]=t,!0))};var vi=e,Mi=(vi.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 12>e?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||e>=20?"ste":"de")},week:{dow:1,doy:4}}),vi.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:"٠"}),Li={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},wi=(vi.defineLocale("ar-sa",{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"م"===e},meridiem:function(e,t,n){return 12>e?"ص":"م"},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 Li[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Mi[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),vi.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:"٠"}),bi={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ki=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5},Yi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Ti=function(e){return function(t,n,i,a){var r=ki(t),s=Yi[e][ki(t)];return 2===r&&(s=s[n?0:1]),s.replace(/%d/i,t)}},Di=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],Si=(vi.defineLocale("ar",{months:Di,monthsShort:Di,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 12>e?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Ti("s"),m:Ti("m"),mm:Ti("m"),h:Ti("h"),hh:Ti("h"),d:Ti("d"),dd:Ti("d"),M:Ti("M"),MM:Ti("M"),y:Ti("y"),yy:Ti("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return bi[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return wi[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ı"}),xi=(vi.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 4>e?"gecə":12>e?"səhər":17>e?"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,n=e%100-t,i=e>=100?100:null;return e+(Si[t]||Si[n]||Si[i])},week:{dow:1,doy:7}}),vi.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"}
2561,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:et,mm:et,h:et,hh:et,d:"дзень",dd:et,M:"месяц",MM:et,y:"год",yy:et},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночы":12>e?"раніцы":17>e?"дня":"вечара"},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}}),vi.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+"-ен":n>10&&20>n?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:"০"}),ji={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},Hi=(vi.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 ji[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return xi[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকেল|রাত/,isPM:function(e){return/^(দুপুর|বিকেল|রাত)$/.test(e)},meridiem:function(e,t,n){return 4>e?"রাত":10>e?"সকাল":17>e?"দুপুর":20>e?"বিকেল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),Ci={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},Ei=(vi.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:"%
2561d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return Ci[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Hi[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(e){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(e)},meridiem:function(e,t,n){return 4>e?"མཚན་མོ":10>e?"ཞོགས་ཀས":17>e?"ཉིན་གུང":20>e?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),vi.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:tt,h:"un eur",hh:"%d eur",d:"un devezh",dd:tt,M:"ur miz",MM:tt,y:"ur bloaz",yy:function(e){switch(nt(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}}),vi.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:rt,mm:rt,h:rt,hh:rt,d:"dan",dd:rt,M:"mjesec",MM:rt,y:"godinu",yy:rt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),vi.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("_")),Ai="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Oi=(vi.defineLocale("cs",{months:Ei,monthsShort:Ai,monthsParse:function(e,t){var n,i=[];for(n=0;12>n;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(Ei,Ai),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:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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:"%
2561d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),vi.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=e,n="",i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=i[t]),e+n},week:{dow:1,doy:4}}),vi.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}}),vi.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:lt,mm:"%d Minuten",h:lt,hh:"%d Stunden",d:lt,dd:lt,M:lt,MM:lt,y:lt,yy:lt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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:dt,mm:"%d Minuten",h:dt,hh:"%d Stunden",d:dt,dd:dt,M:dt,MM:dt,y:dt,yy:dt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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 e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LT
vendor: 4,639 bytes, line 2561
2561S:"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}}),vi.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}}),vi.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")}}),vi.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}}),vi.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 e>
256111?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"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("_")),Pi="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_"),$i=(vi.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?Pi[e.month()]:Oi[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}}),vi.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:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:"%d päeva",M:ut,MM:ut,y:ut,yy:ut},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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:"۰"}),Fi={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},Ni=(vi.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 12>e?"قبل از ظهر":"بعد از ظهر"},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:"%
2561d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return Fi[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return $i[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(" ")),Ii=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Ni[7],Ni[8],Ni[9]],Wi=(vi.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:ct,m:ct,mm:ct,h:ct,hh:ct,d:ct,dd:ct,M:ct,MM:ct,y:ct,yy:ct},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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}}),vi.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")}}),vi.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("_")),zi="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),Ri=(vi.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?zi[e.month()]:Wi[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||e>=20?"ste":"de")},week:{dow:1,doy:4}}),vi.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:"%
2561d 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}}),vi.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:"०"}),Ui={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Ji=(vi.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 Ui[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?4>e?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"रात":10>e?"सुबह":17>e?"दोपहर":20>e?"शाम":"रात"},week:{dow:0,doy:6}}),vi.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:pt,mm:pt,h:pt,hh:pt,d:"dan",dd:pt,M:"mjesec",MM:pt,y:"godinu",yy:pt},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(" ")),qi=(vi.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 12>e?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return _t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return _t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:mt,m:mt,mm:mt,h:mt,hh:mt,d:mt,dd:mt,M:mt,MM:mt,y:mt,yy:mt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),vi.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 4>e?"գիշերվա":12>e?"առավոտվա":17>e?"ցերեկվա":"երեկոյան"},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}}),vi.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?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"siang":19>e?"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}}),vi.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:gt,m:gt,mm:gt,h:"klukkustund",hh:gt,d:gt,dd:gt,M:gt,MM:gt,y:gt,yy:gt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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:"%
2561d 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}}),vi.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 12>e?"午前":"午後"},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年"}}),vi.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?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"enjing":15>e?"siyang":19>e?"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}}),vi.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+"-ლი":20>e||100>
2561=e&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}}),vi.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"},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}}),vi.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 12>e?"오전":"오후"}}),vi.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 vt(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return vt(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:yt,mm:"%d Minutten",h:yt,hh:"%d Stonnen",d:yt,dd:"%d Deeg",M:yt,MM:"%d Méint",y:yt,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"}),Gi="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),Bi=(vi.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=Gi[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:Mt,mm:bt,h:Mt,hh:bt,d:Mt,dd:bt,M:Mt,MM:bt,y:Mt,yy:bt},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
2561nā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("_")}),Vi=(vi.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:Tt,mm:Yt,h:Tt,hh:Yt,d:Tt,dd:Yt,M:Tt,MM:Yt,y:Tt,yy:Yt},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]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,t,n){var i=Vi.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+Vi.correctGrammaticalCase(e,i)}}),Xi=(vi.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:Vi.translate,mm:Vi.translate,h:Vi.translate,hh:Vi.translate,d:"dan",dd:Vi.translate,M:"mjesec",MM:Vi.translate,y:"godinu",yy:Vi.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),vi.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:"%
2561d часа",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+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),vi.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 4>e?"രാത്രി":12>e?"രാവിലെ":17>e?"ഉച്ച കഴിഞ്ഞ്":20>e?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),Ki={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Qi=(vi.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 Ki[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Xi[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"राà
2561¤¤à¥à¤°à¥€"===t?4>e?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return 4>e?"रात्री":10>e?"सकाळी":17>e?"दुपारी":20>e?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),vi.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?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"tengahari":19>e?"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}}),vi.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?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return 11>e?"pagi":15>e?"tengahari":19>e?"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:"၀"}),Zi={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},ea=(vi.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:"စက္ကန်.အနညá€
2561ºá€¸á€„ယ်",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 Zi[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Qi[e]})},week:{dow:1,doy:4}}),vi.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:"०"}),ta={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},na=(vi.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 ta[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ea[e]})},meridiemParse:/राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?3>e?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"बेलुका"===t||"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return 3>e?"राती":10>e?"बिहान":15>e?"दिउँसो":18>e?"बेलुका":20>e?"साँझ":"राती"},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("_")),ia="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),aa=(vi.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?ia[e.month()]:na[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||e>=20?"ste":"de")},week:{dow:1,doy:4}}),vi.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}}
2561),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),ra="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),sa=(vi.defineLocale("pl",{months:function(e,t){return""===t?"("+ra[e.month()]+"|"+aa[e.month()]+")":/D MMMM/.test(t)?ra[e.month()]:aa[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:St,mm:St,h:St,hh:St,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:St,y:"rok",yy:St},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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º"}),vi.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}}),vi.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:xt,h:"o oră",hh:xt,d:"o zi",dd:xt,M:"o lună",MM:xt,y:"un an",yy:xt},week:{dow:1,doy:7}}),vi.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";
2561case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:Ht,mm:Ht,h:"час",hh:Ht,d:"день",dd:Ht,M:"месяц",MM:Ht,y:"год",yy:Ht},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},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}}),vi.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 e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),oa="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),la=(vi.defineLocale("sk",{months:sa,monthsShort:oa,monthsParse:function(e,t){var n,i=[];for(n=0;12>n;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(sa,oa),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:Et,m:Et,mm:Et,h:Et,hh:Et,d:Et,dd:Et,M:Et,MM:Et,y:Et,yy:Et},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.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}}),vi.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 12>e?"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]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,t,n){var i=la.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+la.correctGrammaticalCase(e,i
vendor: 4,672 bytes, line 2561
2561)}}),da=(vi.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:la.translate,mm:la.translate,h:la.translate,hh:la.translate,d:"дан",dd:la.translate,M:"месец",MM:la.translate,y:"годину",yy:la.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]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,t,n){var i=da.words[n];return 1===n.length?t?i[0]:i[1]:e+" "+da.correctGrammaticalCase(e,i)}}),ua=(vi.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:da.translate,mm:da.translate,h:da.translate,hh:da.translate,d:"dan",dd:da.translate,M:"mesec",MM:da.translate,y:"godinu",yy:da.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),vi.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}}),vi.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்ப
2561ர்_அக்டோபர்_நவம்பர்_டிசம்பர்".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 2>e?" யாமம்":6>e?" வைகறை":10>e?" காலை":14>e?" நண்பகல்":18>e?" எற்பாடு":22>e?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?2>e?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}}),vi.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 12>e?"ก่อนเที่ยง":"หลังเที่ยง"},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 ปี"}}),vi.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:"%
2561d 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ı"}),ca=(vi.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,n=e%100-t,i=e>=100?100:null;return e+(ua[t]||ua[n]||ua[i])},week:{dow:1,doy:7}}),vi.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 e>11?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:Ot,m:Ot,mm:Ot,h:Ot,hh:Ot,d:Ot,dd:Ot,M:Ot,MM:Ot,y:Ot,yy:Ot},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),vi.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibr
2561ir_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}}),vi.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}}),vi.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:Ft("[Сьогодні "),nextDay:Ft("[Завтра "),lastDay:Ft("[Вчора "),nextWeek:Ft("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 
25616:return Ft("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Ft("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:$t,mm:$t,h:"годину",hh:$t,d:"день",dd:$t,M:"місяць",MM:$t,y:"рік",yy:$t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return 4>e?"ночі":12>e?"ранку":17>e?"дня":"вечора"},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}}),vi.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}}),vi.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}}),vi.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:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},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=vi().startOf("week"),t=this.unix()-e.unix()>=604800?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var e,t;return e=vi().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}}),vi.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?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return 900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},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:"%
2561d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}}),vi);return ca.locale("en"),ca}),define("mockup-patterns-moment",["jquery","pat-base","moment","mockup-i18n"],function(e,t,n,i){"use strict";return t.extend({name:"moment",trigger:".pat-moment",parser:"mockup",defaults:{selector:null,format:"LLL",setTitle:!1},convert:function(t){var a=this,r=t.attr("data-date");r||(r=e.trim(t.html())),r&&"None"!==r&&(n.locale([(new i).currentLanguage,"en"]),(r=n(r)).isValid()&&(a.options.setTitle&&t.attr("title",r.format("LLLL")),(r="relative"===a.options.format?r.fromNow():"calendar"===a.options.format?r.calendar():r.format(a.options.format))&&t.html(r)))},init:function(){var t=this;t.options.selector?t.$el.find(t.options.selector).each(function(){t.convert(e(this))}):t.convert(t.$el)}})}),function(e){define("bootstrap-dropdown",["jquery"],function(){return function(){+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(i).remove(),e(a).each(function(){var i=e(this),a=t(i),r={relatedTarget:this};a.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(a[0],n.target)||(a.trigger(n=e.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),a.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}var i=".dropdown-backdrop",a='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.6",r.prototype.toggle=function(i){var a=e(this);if(!a.is(".disabled, :disabled")){var r=t(a),s=r.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!r.closest(".
2561navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var o={relatedTarget:this};if(r.trigger(i=e.Event("show.bs.dropdown",o)),i.isDefaultPrevented())return;a.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",o))}return!1}},r.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),s=r.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&r.find(a).trigger("focus"),i.trigger("click");var o=r.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var l=o.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<o.length-1&&l++,~l||(l=0),o.eq(l).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",a,r.prototype.toggle).on("keydown.bs.dropdown.data-api",a,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery)}.apply(e,arguments)})}(this),function(e){define("bootstrap-collapse",["jquery"],function(){return function(){return function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),a=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!a&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),a||n.data("bs.collapse",a=new i(this,r)),"string"==typeof t&&a[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.6",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(a&&a.length&&(t=a.data("bs.collapse"))&&t.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){a&&a.length&&(n.call(a,"hide"),t||a.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return o.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[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 a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return a.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var a=e(i);this.addAriaAndCollapsedClass(t(a),a)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var a=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=a,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var a=e(this);a.attr("data-target")||i.preventDefault();var r=t(a),s=r.data("bs.collapse")?"toggle":a.data();n.call(r,s)})}(jQuery),window.jQuery.fn.collapse.Constructor}.apply(e,arguments)})}(this),function(e){define("bootstrap-tooltip",["jquery"],function(){return function(){+function(e){"use strict";var t=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)};t.VERSION="3.3.6",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.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 a=this.options.trigger.split(" "),r=a.length;r--;){var s=a[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var o="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focu
2561s":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var a=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(o);d&&(o=o.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),c=r[0].offsetWidth,h=r[0].offsetHeight;if(d){var p=o,m=this.getPosition(this.$viewport);o="bottom"==o&&u.bottom+h>m.bottom?"top":"top"==o&&u.top-h<m.top?"bottom":"right"==o&&u.right+c>m.width?"left":"left"==o&&u.left-c<m.left?"right":o,r.removeClass(p).addClass(o)}var _=this.getCalculatedOffset(o,u,c,h);this.applyPlacement(_,o);var f=function(){var e=a.hoverState;a.$element.trigger("shown.bs."+a.type),a.hoverState=null,"out"==e&&a.leave(a)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f()}},t.prototype.applyPlacement=function(t,n){var i=this.tip(),a=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(o)&&(o=0),t.top+=s,t.left+=o,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,d=i[0].offsetHeight;"top"==n&&d!=r&&(t.top=t.top+r-d);var u=this.getViewportAdjustedDelta(n,t,l,d);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(n),h=c?2*u.left-a+l:2*u.top-r+d,p=c?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(h,i[0][p],c)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.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")},t.prototype.hide=function(n){function i(){"in"!=a.hoverState&&r.detach(),a.$element.removeAttr("aria-describedby").trigger("hidden.bs."+a.type),n&&n()}var a=this,r=e(this.$tip),s=e.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(t.TRANSITION_DURATION):i(),this.hoverState=null,this},t.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","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName,a=n.getBoundingClientRect();null==a.width&&(a=e.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));var r=i?{top:0,left:0}:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},a,s,o,r)},t.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}},t.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;
2561d<s.left?a.left=s.left-d:u>s.right&&(a.left=s.left+s.width-u)}return a},t.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)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.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 n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),a=i.data("bs.tooltip"),r="object"==typeof n&&n;!a&&/destroy|hide/.test(n)||(a||i.data("bs.tooltip",a=new t(this,r)),"string"==typeof n&&a[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,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(e,t,n){"use strict";window.parent!==window&&"IFRAME"!==window.frameElement.nodeName||e(document).ready(function(){e("body").addClass("pat-plone"),t.initialized||t.init()}),e(document).ready(function(){!0!==("selected"===e("#form-widgets-use_cookie_negotiation > input").value)?e("#formfield-form-widgets-authenticated_users_only").hide():e("#formfield-form-widgets-authenticated_users_only").show()}),e(document).ready(function(){function t(t){var n=e("#form-widgets-highpixeldensity_scales option:selected").attr("value"),i=e('div[data-fieldname="form.widgets.quality_2x"]'),a=e('div[data-fieldname="form.widgets.quality_3x"]');"disabled"==n?(i.fadeOut(),a.fadeOut()):"2x"==n?(i.fadeIn(),a.fadeOut()):"3x"==n&&(i.fadeIn(),a.fadeIn())}e("#ImagingSettings")&&(e('div[data-fieldname="form.widgets.quality_2x"]').hide(),e('div[data-fieldname="form.widgets.quality_3x"]').hide(),t(),e("#form-widgets-highpixeldensity_scales").change(t))})}),define("/home/_thet/data/dev/plone/buildout.coredev-51/src/Products.CMFPlone/Products/CMFPlone/static/plone.js",function(){});
2562//# 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.