PageSourceSearch

https://www.isprambiente.gov.it/++plone++production/++unique++2023-02-22T17:10:08.674676/default.js

js isprambiente.gov.it collected 2026-10-01 09:16:40 UTC 749,781 bytes, 2,985 lines download raw bytes

vendor: 4,491 bytes, lines 1-2
1/*! jQuery v1.12.4 | (c) jQuery Foundation | 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=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.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()},push:g,sort:c.sort,splice:c.splice},n.extend=n.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||n.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&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.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,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=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: 3,069 bytes, line 2
2w Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),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="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),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")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=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)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){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 fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}
vendor: 9,959 bytes, line 2
2function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(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 la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(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 oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.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]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);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"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' 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(".#.+[+~]")}),ia(function(a){var b=n.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=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.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===n||a.ownerDocument===v&&t(v,a)?-1:b===n||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,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!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 fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.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},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.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=fa.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=fa.selectors={cacheLength:50,createPseudo:ha,match:W,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(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===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]||fa.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]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.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(ba,ca).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=fa.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(P," ")+" ").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,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(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:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(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:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).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 Y.test(a.nodeName)}
vendor: 79,644 bytes, lines 2-5
2,input:function(a){return X.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:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(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]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.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=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[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?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(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,k=[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(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(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 ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(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 va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(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=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(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=[ra(sa(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 va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.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(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.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(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(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}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(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&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.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=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0;
3}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.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()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.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=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.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 n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.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=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(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(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(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},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={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:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.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?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!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&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!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 n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(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=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._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++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.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)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.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 n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=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},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.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+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.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 Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.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 db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(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+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,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":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.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=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.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=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.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=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{
4marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.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):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.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=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.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],jb.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]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.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 qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),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:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.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.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.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)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._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=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.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||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.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})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},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)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={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}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.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=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.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){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.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 Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.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 Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(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 Xb(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}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(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 n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.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||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.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,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(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"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({
5padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.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?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({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)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
6
7/** vim: et:ts=4:sw=4:sts=4
8 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
9 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
10 */
11//Not using strict: uneven strict support in browsers, #392, and causes
12//problems with requirejs.exec()/transpiler plugins that may not be strict.
13/*jslint regexp: true, nomen: true, sloppy: true */
14/*global window, navigator, document, importScripts, setTimeout, opera */
15
16var requirejs, require, define;
17(function (global, setTimeout) {
18    var req, s, head, baseElement, dataMain, src,
19        interactiveScript, currentlyAddingScript, mainScript, subPath,
20        version = '2.3.6',
21        commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
22        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
23        jsSuffixRegExp = /\.js$/,
24        currDirRegExp = /^\.\//,
25        op = Object.prototype,
26        ostring = op.toString,
27        hasOwn = op.hasOwnProperty,
28        isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
29        isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
30        //PS3 indicates loaded and complete, but need to wait for complete
31        //specifically. Sequence is 'loading', 'loaded', execution,
32        // then 'complete'. The UA check is unfortunate, but not sure how
33        //to feature test w/o causing perf issues.
34        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
35                      /^complete$/ : /^(complete|loaded)$/,
36        defContextName = '_',
37        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
38        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
39        contexts = {},
40        cfg = {},
41        globalDefQueue = [],
42        useInteractive = false;
vendor: 1,631 bytes, lines 43-103
43
44    //Could match something like ')//comment', do not lose the prefix to comment.
45    function commentReplace(match, singlePrefix) {
46        return singlePrefix || '';
47    }
48
49    function isFunction(it) {
50        return ostring.call(it) === '[object Function]';
51    }
52
53    function isArray(it) {
54        return ostring.call(it) === '[object Array]';
55    }
56
57    /**
58     * Helper function for iterating over an array. If the func returns
59     * a true value, it will break out of the loop.
60     */
61    function each(ary, func) {
62        if (ary) {
63            var i;
64            for (i = 0; i < ary.length; i += 1) {
65                if (ary[i] && func(ary[i], i, ary)) {
66                    break;
67                }
68            }
69        }
70    }
71
72    /**
73     * Helper function for iterating over an array backwards. If the func
74     * returns a true value, it will break out of the loop.
75     */
76    function eachReverse(ary, func) {
77        if (ary) {
78            var i;
79            for (i = ary.length - 1; i > -1; i -= 1) {
80                if (ary[i] && func(ary[i], i, ary)) {
81                    break;
82                }
83            }
84        }
85    }
86
87    function hasProp(obj, prop) {
88        return hasOwn.call(obj, prop);
89    }
90
91    function getOwn(obj, prop) {
92        return hasProp(obj, prop) && obj[prop];
93    }
94
95    /**
96     * Cycles over properties in an object and calls a function for each
97     * property value. If the function returns a truthy value, then the
98     * iteration is stopped.
99     */
100    function eachProp(obj, func) {
101        var prop;
102        for (prop in obj) {
103            if (hasProp(obj, prop)
vendor: 82,966 bytes, lines 103-2151
103) {
104                if (func(obj[prop], prop)) {
105                    break;
106                }
107            }
108        }
109    }
110
111    /**
112     * Simple function to mix in properties from source into target,
113     * but only if target does not already have a property of the same name.
114     */
115    function mixin(target, source, force, deepStringMixin) {
116        if (source) {
117            eachProp(source, function (value, prop) {
118                if (force || !hasProp(target, prop)) {
119                    if (deepStringMixin && typeof value === 'object' && value &&
120                        !isArray(value) && !isFunction(value) &&
121                        !(value instanceof RegExp)) {
122
123                        if (!target[prop]) {
124                            target[prop] = {};
125                        }
126                        mixin(target[prop], value, force, deepStringMixin);
127                    } else {
128                        target[prop] = value;
129                    }
130                }
131            });
132        }
133        return target;
134    }
135
136    //Similar to Function.prototype.bind, but the 'this' object is specified
137    //first, since it is easier to read/figure out what 'this' will be.
138    function bind(obj, fn) {
139        return function () {
140            return fn.apply(obj, arguments);
141        };
142    }
143
144    function scripts() {
145        return document.getElementsByTagName('script');
146    }
147
148    function defaultOnError(err) {
149        throw err;
150    }
151
152    //Allow getting a global that is expressed in
153    //dot notation, like 'a.b.c'.
154    function getGlobal(value) {
155        if (!value) {
156            return value;
157        }
158        var g = global;
159        each(value.split('.'), function (part) {
160            g = g[part];
161        });
162        return g;
163    }
164
165    /**
166     * Constructs an error with a pointer to an URL with more information.
167     * @param {String} id the error ID that maps to an ID on a web page.
168     * @param {String} message human readable error.
169     * @param {Error} [err] the original error, if there is one.
170     *
171     * @returns {Error}
172     */
173    function makeError(id, msg, err, requireModules) {
174        var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id);
175        e.requireType = id;
176        e.requireModules = requireModules;
177        if (err) {
178            e.originalError = err;
179        }
180        return e;
181    }
182
183    if (typeof define !== 'undefined') {
184        //If a define is already in play via another AMD loader,
185        //do not overwrite.
186        return;
187    }
188
189    if (typeof requirejs !== 'undefined') {
190        if (isFunction(requirejs)) {
191            //Do not overwrite an existing requirejs instance.
192            return;
193        }
194        cfg = requirejs;
195        requirejs = undefined;
196    }
197
198    //Allow for a require config object
199    if (typeof require !== 'undefined' && !isFunction(require)) {
200        //assume it is a config object.
201        cfg = require;
202        require = undefined;
203    }
204
205    function newContext(contextName) {
206        var inCheckLoaded, Module, context, handlers,
207            checkLoadedTimeoutId,
208            config = {
209                //Defaults. Do not set a default for map
210                //config to speed up normalize(), which
211                //will run faster if there is no default.
212                waitSeconds: 7,
213                baseUrl: './',
214                paths: {},
215                bundles: {},
216                pkgs: {},
217                shim: {},
218                config: {}
219            },
220            registry = {},
221            //registry of just enabled modules, to speed
222            //cycle breaking code when lots of modules
223            //are registered, but not activated.
224            enabledRegistry = {},
225            undefEvents = {},
226            defQueue = [],
227            defined = {},
228            urlFetched = {},
229            bundlesMap = {},
230            requireCounter = 1,
231            unnormalizedCounter = 1;
232
233        /**
234         * Trims the . and .. from an array of path segments.
235         * It will keep a leading path segment if a .. will become
236         * the first path segment, to help with module name lookups,
237         * which act like paths, but can be remapped. But the end result,
238         * all paths that use this function should look normalized.
239         * NOTE: this method MODIFIES the input array.
240         * @param {Array} ary the array of path segments.
241         */
242        function trimDots(ary) {
243            var i, part;
244            for (i = 0; i < ary.length; i++) {
245                part = ary[i];
246                if (part === '.') {
247                    ary.splice(i, 1);
248                    i -= 1;
249                } else if (part === '..') {
250                    // If at the start, or previous value is still ..,
251                    // keep them so that when converted to a path it may
252                    // still work when converted to a path, even though
253                    // as an ID it is less than ideal. In larger point
254                    // releases, may be better to just kick out an error.
255                    if (i === 0 || (i === 1 && ary[2] === '..') || ary[i - 1] === '..') {
256                        continue;
257                    } else if (i > 0) {
258                        ary.splice(i - 1, 2);
259                        i -= 2;
260                    }
261                }
262            }
263        }
264
265        /**
266         * Given a relative module name, like ./something, normalize it to
267         * a real name that can be mapped to a path.
268         * @param {String} name the relative name
269         * @param {String} baseName a real name that the name arg is relative
270         * to.
271         * @param {Boolean} applyMap apply the map config to the value. Should
272         * only be done if this normalization is for a dependency ID.
273         * @returns {String} normalized name
274         */
275        function normalize(name, baseName, applyMap) {
276            var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
277                foundMap, foundI, foundStarMap, starI, normalizedBaseParts,
278                baseParts = (baseName && baseName.split('/')),
279                map = config.map,
280                starMap = map && map['*'];
281
282            //Adjust any relative paths.
283            if (name) {
284                name = name.split('/');
285                lastIndex = name.length - 1;
286
287                // If wanting node ID compatibility, strip .js from end
288                // of IDs. Have to do this here, and not in nameToUrl
289                // because node allows either .js or non .js to map
290                // to same file.
291                if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
292                    name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
293                }
294
295                // Starts with a '.' so need the baseName
296                if (name[0].charAt(0) === '.' && baseParts) {
297                    //Convert baseName to array, and lop off the last part,
298                    //so that . matches that 'directory' and not name of the baseName's
299                    //module. For instance, baseName of 'one/two/three', maps to
300                    //'one/two/three.js', but we want the directory, 'one/two' for
301                    //this normalization.
302                    normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
303                    name = normalizedBaseParts.concat(name);
304                }
305
306                trimDots(name);
307                name = name.join('/');
308            }
309
310            //Apply map config if available.
311            if (applyMap && map && (baseParts || starMap)) {
312                nameParts = name.split('/');
313
314                outerLoop: for (i = nameParts.length; i > 0; i -= 1) {
315                    nameSegment = nameParts.slice(0, i).join('/');
316
317                    if (baseParts) {
318                        //Find the longest baseName segment match in the config.
319                        //So, do joins on the biggest to smallest lengths of baseParts.
320                        for (j = baseParts.length; j > 0; j -= 1) {
321                            mapValue = getOwn(map, baseParts.slice(0, j).join('/'));
322
323                            //baseName segment has config, find if it has one for
324                            //this name.
325                            if (mapValue) {
326                                mapValue = getOwn(mapValue, nameSegment);
327                                if (mapValue) {
328                                    //Match, update name to the new value.
329                                    foundMap = mapValue;
330                                    foundI = i;
331                                    break outerLoop;
332                                }
333                            }
334                        }
335                    }
336
337                    //Check for a star map match, but just hold on to it,
338                    //if there is a shorter segment match later in a matching
339                    //config, then favor over this star map.
340                    if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {
341                        foundStarMap = getOwn(starMap, nameSegment);
342                        starI = i;
343                    }
344                }
345
346                if (!foundMap && foundStarMap) {
347                    foundMap = foundStarMap;
348                    foundI = starI;
349                }
350
351                if (foundMap) {
352                    nameParts.splice(0, foundI, foundMap);
353                    name = nameParts.join('/');
354                }
355            }
356
357            // If the name points to a package's name, use
358            // the package main instead.
359            pkgMain = getOwn(config.pkgs, name);
360
361            return pkgMain ? pkgMain : name;
362        }
363
364        function removeScript(name) {
365            if (isBrowser) {
366                each(scripts(), function (scriptNode) {
367                    if (scriptNode.getAttribute('data-requiremodule') === name &&
368                            scriptNode.getAttribute('data-requirecontext') === context.contextName) {
369                        scriptNode.parentNode.removeChild(scriptNode);
370                        return true;
371                    }
372                });
373            }
374        }
375
376        function hasPathFallback(id) {
377            var pathConfig = getOwn(config.paths, id);
378            if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
379                //Pop off the first array value, since it failed, and
380                //retry
381                pathConfig.shift();
382                context.require.undef(id);
383
384                //Custom require that does not do map translation, since
385                //ID is "absolute", already mapped/resolved.
386                context.makeRequire(null, {
387                    skipMap: true
388                })([id]);
389
390                return true;
391            }
392        }
393
394        //Turns a plugin!resource to [plugin, resource]
395        //with the plugin being undefined if the name
396        //did not have a plugin prefix.
397        function splitPrefix(name) {
398            var prefix,
399                index = name ? name.indexOf('!') : -1;
400            if (index > -1) {
401                prefix = name.substring(0, index);
402                name = name.substring(index + 1, name.length);
403            }
404            return [prefix, name];
405        }
406
407        /**
408         * Creates a module mapping that includes plugin prefix, module
409         * name, and path. If parentModuleMap is provided it will
410         * also normalize the name via require.normalize()
411         *
412         * @param {String} name the module name
413         * @param {String} [parentModuleMap] parent module map
414         * for the module name, used to resolve relative names.
415         * @param {Boolean} isNormalized: is the ID already normalized.
416         * This is true if this call is done for a define() module ID.
417         * @param {Boolean} applyMap: apply the map config to the ID.
418         * Should only be true if this map is for a dependency.
419         *
420         * @returns {Object}
421         */
422        function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
423            var url, pluginModule, suffix, nameParts,
424                prefix = null,
425                parentName = parentModuleMap ? parentModuleMap.name : null,
426                originalName = name,
427                isDefine = true,
428                normalizedName = '';
429
430            //If no name, then it means it is a require call, generate an
431            //internal name.
432            if (!name) {
433                isDefine = false;
434                name = '_@r' + (requireCounter += 1);
435            }
436
437            nameParts = splitPrefix(name);
438            prefix = nameParts[0];
439            name = nameParts[1];
440
441            if (prefix) {
442                prefix = normalize(prefix, parentName, applyMap);
443                pluginModule = getOwn(defined, prefix);
444            }
445
446            //Account for relative paths if there is a base name.
447            if (name) {
448                if (prefix) {
449                    if (isNormalized) {
450                        normalizedName = name;
451                    } else if (pluginModule && pluginModule.normalize) {
452                        //Plugin is loaded, use its normalize method.
453                        normalizedName = pluginModule.normalize(name, function (name) {
454                            return normalize(name, parentName, applyMap);
455                        });
456                    } else {
457                        // If nested plugin references, then do not try to
458                        // normalize, as it will not normalize correctly. This
459                        // places a restriction on resourceIds, and the longer
460                        // term solution is not to normalize until plugins are
461                        // loaded and all normalizations to allow for async
462                        // loading of a loader plugin. But for now, fixes the
463                        // common uses. Details in #1131
464                        normalizedName = name.indexOf('!') === -1 ?
465                                         normalize(name, parentName, applyMap) :
466                                         name;
467                    }
468                } else {
469                    //A regular module.
470                    normalizedName = normalize(name, parentName, applyMap);
471
472                    //Normalized name may be a plugin ID due to map config
473                    //application in normalize. The map config values must
474                    //already be normalized, so do not need to redo that part.
475                    nameParts = splitPrefix(normalizedName);
476                    prefix = nameParts[0];
477                    normalizedName = nameParts[1];
478                    isNormalized = true;
479
480                    url = context.nameToUrl(normalizedName);
481                }
482            }
483
484            //If the id is a plugin id that cannot be determined if it needs
485            //normalization, stamp it with a unique ID so two matching relative
486            //ids that may conflict can be separate.
487            suffix = prefix && !pluginModule && !isNormalized ?
488                     '_unnormalized' + (unnormalizedCounter += 1) :
489                     '';
490
491            return {
492                prefix: prefix,
493                name: normalizedName,
494                parentMap: parentModuleMap,
495                unnormalized: !!suffix,
496                url: url,
497                originalName: originalName,
498                isDefine: isDefine,
499                id: (prefix ?
500                        prefix + '!' + normalizedName :
501                        normalizedName) + suffix
502            };
503        }
504
505        function getModule(depMap) {
506            var id = depMap.id,
507                mod = getOwn(registry, id);
508
509            if (!mod) {
510                mod = registry[id] = new context.Module(depMap);
511            }
512
513            return mod;
514        }
515
516        function on(depMap, name, fn) {
517            var id = depMap.id,
518                mod = getOwn(registry, id);
519
520            if (hasProp(defined, id) &&
521                    (!mod || mod.defineEmitComplete)) {
522                if (name === 'defined') {
523                    fn(defined[id]);
524                }
525            } else {
526                mod = getModule(depMap);
527                if (mod.error && name === 'error') {
528                    fn(mod.error);
529                } else {
530                    mod.on(name, fn);
531                }
532            }
533        }
534
535        function onError(err, errback) {
536            var ids = err.requireModules,
537                notified = false;
538
539            if (errback) {
540                errback(err);
541            } else {
542                each(ids, function (id) {
543                    var mod = getOwn(registry, id);
544                    if (mod) {
545                        //Set error on module, so it skips timeout checks.
546                        mod.error = err;
547                        if (mod.events.error) {
548                            notified = true;
549                            mod.emit('error', err);
550                        }
551                    }
552                });
553
554                if (!notified) {
555                    req.onError(err);
556                }
557            }
558        }
559
560        /**
561         * Internal method to transfer globalQueue items to this context's
562         * defQueue.
563         */
564        function takeGlobalQueue() {
565            //Push all the globalDefQueue items into the context's defQueue
566            if (globalDefQueue.length) {
567                each(globalDefQueue, function(queueItem) {
568                    var id = queueItem[0];
569                    if (typeof id === 'string') {
570                        context.defQueueMap[id] = true;
571                    }
572                    defQueue.push(queueItem);
573                });
574                globalDefQueue = [];
575            }
576        }
577
578        handlers = {
579            'require': function (mod) {
580                if (mod.require) {
581                    return mod.require;
582                } else {
583                    return (mod.require = context.makeRequire(mod.map));
584                }
585            },
586            'exports': function (mod) {
587                mod.usingExports = true;
588                if (mod.map.isDefine) {
589                    if (mod.exports) {
590                        return (defined[mod.map.id] = mod.exports);
591                    } else {
592                        return (mod.exports = defined[mod.map.id] = {});
593                    }
594                }
595            },
596            'module': function (mod) {
597                if (mod.module) {
598                    return mod.module;
599                } else {
600                    return (mod.module = {
601                        id: mod.map.id,
602                        uri: mod.map.url,
603                        config: function () {
604                            return getOwn(config.config, mod.map.id) || {};
605                        },
606                        exports: mod.exports || (mod.exports = {})
607                    });
608                }
609            }
610        };
611
612        function cleanRegistry(id) {
613            //Clean up machinery used for waiting modules.
614            delete registry[id];
615            delete enabledRegistry[id];
616        }
617
618        function breakCycle(mod, traced, processed) {
619            var id = mod.map.id;
620
621            if (mod.error) {
622                mod.emit('error', mod.error);
623            } else {
624                traced[id] = true;
625                each(mod.depMaps, function (depMap, i) {
626                    var depId = depMap.id,
627                        dep = getOwn(registry, depId);
628
629                    //Only force things that have not completed
630                    //being defined, so still in the registry,
631                    //and only if it has not been matched up
632                    //in the module already.
633                    if (dep && !mod.depMatched[i] && !processed[depId]) {
634                        if (getOwn(traced, depId)) {
635                            mod.defineDep(i, defined[depId]);
636                            mod.check(); //pass false?
637                        } else {
638                            breakCycle(dep, traced, processed);
639                        }
640                    }
641                });
642                processed[id] = true;
643            }
644        }
645
646        function checkLoaded() {
647            var err, usingPathFallback,
648                waitInterval = config.waitSeconds * 1000,
649                //It is possible to disable the wait interval by using waitSeconds of 0.
650                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
651                noLoads = [],
652                reqCalls = [],
653                stillLoading = false,
654                needCycleCheck = true;
655
656            //Do not bother if this call was a result of a cycle break.
657            if (inCheckLoaded) {
658                return;
659            }
660
661            inCheckLoaded = true;
662
663            //Figure out the state of all the modules.
664            eachProp(enabledRegistry, function (mod) {
665                var map = mod.map,
666                    modId = map.id;
667
668                //Skip things that are not enabled or in error state.
669                if (!mod.enabled) {
670                    return;
671                }
672
673                if (!map.isDefine) {
674                    reqCalls.push(mod);
675                }
676
677                if (!mod.error) {
678                    //If the module should be executed, and it has not
679                    //been inited and time is up, remember it.
680                    if (!mod.inited && expired) {
681                        if (hasPathFallback(modId)) {
682                            usingPathFallback = true;
683                            stillLoading = true;
684                        } else {
685                            noLoads.push(modId);
686                            removeScript(modId);
687                        }
688                    } else if (!mod.inited && mod.fetched && map.isDefine) {
689                        stillLoading = true;
690                        if (!map.prefix) {
691                            //No reason to keep looking for unfinished
692                            //loading. If the only stillLoading is a
693                            //plugin resource though, keep going,
694                            //because it may be that a plugin resource
695                            //is waiting on a non-plugin cycle.
696                            return (needCycleCheck = false);
697                        }
698                    }
699                }
700            });
701
702            if (expired && noLoads.length) {
703                //If wait time expired, throw error of unloaded modules.
704                err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
705                err.contextName = context.contextName;
706                return onError(err);
707            }
708
709            //Not expired, check for a cycle.
710            if (needCycleCheck) {
711                each(reqCalls, function (mod) {
712                    breakCycle(mod, {}, {});
713                });
714            }
715
716            //If still waiting on loads, and the waiting load is something
717            //other than a plugin resource, or there are still outstanding
718            //scripts, then just try back later.
719            if ((!expired || usingPathFallback) && stillLoading) {
720                //Something is still waiting to load. Wait for it, but only
721                //if a timeout is not already in effect.
722                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
723                    checkLoadedTimeoutId = setTimeout(function () {
724                        checkLoadedTimeoutId = 0;
725                        checkLoaded();
726                    }, 50);
727                }
728            }
729
730            inCheckLoaded = false;
731        }
732
733        Module = function (map) {
734            this.events = getOwn(undefEvents, map.id) || {};
735            this.map = map;
736            this.shim = getOwn(config.shim, map.id);
737            this.depExports = [];
738            this.depMaps = [];
739            this.depMatched = [];
740            this.pluginMaps = {};
741            this.depCount = 0;
742
743            /* this.exports this.factory
744               this.depMaps = [],
745               this.enabled, this.fetched
746            */
747        };
748
749        Module.prototype = {
750            init: function (depMaps, factory, errback, options) {
751                options = options || {};
752
753                //Do not do more inits if already done. Can happen if there
754                //are multiple define calls for the same module. That is not
755                //a normal, common case, but it is also not unexpected.
756                if (this.inited) {
757                    return;
758                }
759
760                this.factory = factory;
761
762                if (errback) {
763                    //Register for errors on this module.
764                    this.on('error', errback);
765                } else if (this.events.error) {
766                    //If no errback already, but there are error listeners
767                    //on this module, set up an errback to pass to the deps.
768                    errback = bind(this, function (err) {
769                        this.emit('error', err);
770                    });
771                }
772
773                //Do a copy of the dependency array, so that
774                //source inputs are not modified. For example
775                //"shim" deps are passed in here directly, and
776                //doing a direct modification of the depMaps array
777                //would affect that config.
778                this.depMaps = depMaps && depMaps.slice(0);
779
780                this.errback = errback;
781
782                //Indicate this module has be initialized
783                this.inited = true;
784
785                this.ignore = options.ignore;
786
787                //Could have option to init this module in enabled mode,
788                //or could have been previously marked as enabled. However,
789                //the dependencies are not known until init is called. So
790                //if enabled previously, now trigger dependencies as enabled.
791                if (options.enabled || this.enabled) {
792                    //Enable this module and dependencies.
793                    //Will call this.check()
794                    this.enable();
795                } else {
796                    this.check();
797                }
798            },
799
800            defineDep: function (i, depExports) {
801                //Because of cycles, defined callback for a given
802                //export can be called more than once.
803                if (!this.depMatched[i]) {
804                    this.depMatched[i] = true;
805                    this.depCount -= 1;
806                    this.depExports[i] = depExports;
807                }
808            },
809
810            fetch: function () {
811                if (this.fetched) {
812                    return;
813                }
814                this.fetched = true;
815
816                context.startTime = (new Date()).getTime();
817
818                var map = this.map;
819
820                //If the manager is for a plugin managed resource,
821                //ask the plugin to load it now.
822                if (this.shim) {
823                    context.makeRequire(this.map, {
824                        enableBuildCallback: true
825                    })(this.shim.deps || [], bind(this, function () {
826                        return map.prefix ? this.callPlugin() : this.load();
827                    }));
828                } else {
829                    //Regular dependency.
830                    return map.prefix ? this.callPlugin() : this.load();
831                }
832            },
833
834            load: function () {
835                var url = this.map.url;
836
837                //Regular dependency.
838                if (!urlFetched[url]) {
839                    urlFetched[url] = true;
840                    context.load(this.map.id, url);
841                }
842            },
843
844            /**
845             * Checks if the module is ready to define itself, and if so,
846             * define it.
847             */
848            check: function () {
849                if (!this.enabled || this.enabling) {
850                    return;
851                }
852
853                var err, cjsModule,
854                    id = this.map.id,
855                    depExports = this.depExports,
856                    exports = this.exports,
857                    factory = this.factory;
858
859                if (!this.inited) {
860                    // Only fetch if not already in the defQueue.
861                    if (!hasProp(context.defQueueMap, id)) {
862                        this.fetch();
863                    }
864                } else if (this.error) {
865                    this.emit('error', this.error);
866                } else if (!this.defining) {
867                    //The factory could trigger another require call
868                    //that would result in checking this module to
869                    //define itself again. If already in the process
870                    //of doing that, skip this work.
871                    this.defining = true;
872
873                    if (this.depCount < 1 && !this.defined) {
874                        if (isFunction(factory)) {
875                            //If there is an error listener, favor passing
876                            //to that instead of throwing an error. However,
877                            //only do it for define()'d  modules. require
878                            //errbacks should not be called for failures in
879                            //their callbacks (#699). However if a global
880                            //onError is set, use that.
881                            if ((this.events.error && this.map.isDefine) ||
882                                req.onError !== defaultOnError) {
883                                try {
884                                    exports = context.execCb(id, factory, depExports, exports);
885                                } catch (e) {
886                                    err = e;
887                                }
888                            } else {
889                                exports = context.execCb(id, factory, depExports, exports);
890                            }
891
892                            // Favor return value over exports. If node/cjs in play,
893                            // then will not have a return value anyway. Favor
894                            // module.exports assignment over exports object.
895                            if (this.map.isDefine && exports === undefined) {
896                                cjsModule = this.module;
897                                if (cjsModule) {
898                                    exports = cjsModule.exports;
899                                } else if (this.usingExports) {
900                                    //exports already set the defined value.
901                                    exports = this.exports;
902                                }
903                            }
904
905                            if (err) {
906                                err.requireMap = this.map;
907                                err.requireModules = this.map.isDefine ? [this.map.id] : null;
908                                err.requireType = this.map.isDefine ? 'define' : 'require';
909                                return onError((this.error = err));
910                            }
911
912                        } else {
913                            //Just a literal value
914                            exports = factory;
915                        }
916
917                        this.exports = exports;
918
919                        if (this.map.isDefine && !this.ignore) {
920                            defined[id] = exports;
921
922                            if (req.onResourceLoad) {
923                                var resLoadMaps = [];
924                                each(this.depMaps, function (depMap) {
925                                    resLoadMaps.push(depMap.normalizedMap || depMap);
926                                });
927                                req.onResourceLoad(context, this.map, resLoadMaps);
928                            }
929                        }
930
931                        //Clean up
932                        cleanRegistry(id);
933
934                        this.defined = true;
935                    }
936
937                    //Finished the define stage. Allow calling check again
938                    //to allow define notifications below in the case of a
939                    //cycle.
940                    this.defining = false;
941
942                    if (this.defined && !this.defineEmitted) {
943                        this.defineEmitted = true;
944                        this.emit('defined', this.exports);
945                        this.defineEmitComplete = true;
946                    }
947
948                }
949            },
950
951            callPlugin: function () {
952                var map = this.map,
953                    id = map.id,
954                    //Map already normalized the prefix.
955                    pluginMap = makeModuleMap(map.prefix);
956
957                //Mark this as a dependency for this plugin, so it
958                //can be traced for cycles.
959                this.depMaps.push(pluginMap);
960
961                on(pluginMap, 'defined', bind(this, function (plugin) {
962                    var load, normalizedMap, normalizedMod,
963                        bundleId = getOwn(bundlesMap, this.map.id),
964                        name = this.map.name,
965                        parentName = this.map.parentMap ? this.map.parentMap.name : null,
966                        localRequire = context.makeRequire(map.parentMap, {
967                            enableBuildCallback: true
968                        });
969
970                    //If current map is not normalized, wait for that
971                    //normalized name to load instead of continuing.
972                    if (this.map.unnormalized) {
973                        //Normalize the ID if the plugin allows it.
974                        if (plugin.normalize) {
975                            name = plugin.normalize(name, function (name) {
976                                return normalize(name, parentName, true);
977                            }) || '';
978                        }
979
980                        //prefix and name should already be normalized, no need
981                        //for applying map config again either.
982                        normalizedMap = makeModuleMap(map.prefix + '!' + name,
983                                                      this.map.parentMap,
984                                                      true);
985                        on(normalizedMap,
986                            'defined', bind(this, function (value) {
987                                this.map.normalizedMap = normalizedMap;
988                                this.init([], function () { return value; }, null, {
989                                    enabled: true,
990                                    ignore: true
991                                });
992                            }));
993
994                        normalizedMod = getOwn(registry, normalizedMap.id);
995                        if (normalizedMod) {
996                            //Mark this as a dependency for this plugin, so it
997                            //can be traced for cycles.
998                            this.depMaps.push(normalizedMap);
999
1000                            if (this.events.error) {
1001                                normalizedMod.on('error', bind(this, function (err) {
1002                                    this.emit('error', err);
1003                                }));
1004                            }
1005                            normalizedMod.enable();
1006                        }
1007
1008                        return;
1009                    }
1010
1011                    //If a paths config, then just load that file instead to
1012                    //resolve the plugin, as it is built into that paths layer.
1013                    if (bundleId) {
1014                        this.map.url = context.nameToUrl(bundleId);
1015                        this.load();
1016                        return;
1017                    }
1018
1019                    load = bind(this, function (value) {
1020                        this.init([], function () { return value; }, null, {
1021                            enabled: true
1022                        });
1023                    });
1024
1025                    load.error = bind(this, function (err) {
1026                        this.inited = true;
1027                        this.error = err;
1028                        err.requireModules = [id];
1029
1030                        //Remove temp unnormalized modules for this module,
1031                        //since they will never be resolved otherwise now.
1032                        eachProp(registry, function (mod) {
1033                            if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
1034                                cleanRegistry(mod.map.id);
1035                            }
1036                        });
1037
1038                        onError(err);
1039                    });
1040
1041                    //Allow plugins to load other code without having to know the
1042                    //context or how to 'complete' the load.
1043                    load.fromText = bind(this, function (text, textAlt) {
1044                        /*jslint evil: true */
1045                        var moduleName = map.name,
1046                            moduleMap = makeModuleMap(moduleName),
1047                            hasInteractive = useInteractive;
1048
1049                        //As of 2.1.0, support just passing the text, to reinforce
1050                        //fromText only being called once per resource. Still
1051                        //support old style of passing moduleName but discard
1052                        //that moduleName in favor of the internal ref.
1053                        if (textAlt) {
1054                            text = textAlt;
1055                        }
1056
1057                        //Turn off interactive script matching for IE for any define
1058                        //calls in the text, then turn it back on at the end.
1059                        if (hasInteractive) {
1060                            useInteractive = false;
1061                        }
1062
1063                        //Prime the system by creating a module instance for
1064                        //it.
1065                        getModule(moduleMap);
1066
1067                        //Transfer any config to this other module.
1068                        if (hasProp(config.config, id)) {
1069                            config.config[moduleName] = config.config[id];
1070                        }
1071
1072                        try {
1073                            req.exec(text);
1074                        } catch (e) {
1075                            return onError(makeError('fromtexteval',
1076                                             'fromText eval for ' + id +
1077                                            ' failed: ' + e,
1078                                             e,
1079                                             [id]));
1080                        }
1081
1082                        if (hasInteractive) {
1083                            useInteractive = true;
1084                        }
1085
1086                        //Mark this as a dependency for the plugin
1087                        //resource
1088                        this.depMaps.push(moduleMap);
1089
1090                        //Support anonymous modules.
1091                        context.completeLoad(moduleName);
1092
1093                        //Bind the value of that module to the value for this
1094                        //resource ID.
1095                        localRequire([moduleName], load);
1096                    });
1097
1098                    //Use parentName here since the plugin's name is not reliable,
1099                    //could be some weird string with no path that actually wants to
1100                    //reference the parentName's path.
1101                    plugin.load(map.name, localRequire, load, config);
1102                }));
1103
1104                context.enable(pluginMap, this);
1105                this.pluginMaps[pluginMap.id] = pluginMap;
1106            },
1107
1108            enable: function () {
1109                enabledRegistry[this.map.id] = this;
1110                this.enabled = true;
1111
1112                //Set flag mentioning that the module is enabling,
1113                //so that immediate calls to the defined callbacks
1114                //for dependencies do not trigger inadvertent load
1115                //with the depCount still being zero.
1116                this.enabling = true;
1117
1118                //Enable each dependency
1119                each(this.depMaps, bind(this, function (depMap, i) {
1120                    var id, mod, handler;
1121
1122                    if (typeof depMap === 'string') {
1123                        //Dependency needs to be converted to a depMap
1124                        //and wired up to this module.
1125                        depMap = makeModuleMap(depMap,
1126                                               (this.map.isDefine ? this.map : this.map.parentMap),
1127                                               false,
1128                                               !this.skipMap);
1129                        this.depMaps[i] = depMap;
1130
1131                        handler = getOwn(handlers, depMap.id);
1132
1133                        if (handler) {
1134                            this.depExports[i] = handler(this);
1135                            return;
1136                        }
1137
1138                        this.depCount += 1;
1139
1140                        on(depMap, 'defined', bind(this, function (depExports) {
1141                            if (this.undefed) {
1142                                return;
1143                            }
1144                            this.defineDep(i, depExports);
1145                            this.check();
1146                        }));
1147
1148                        if (this.errback) {
1149                            on(depMap, 'error', bind(this, this.errback));
1150                        } else if (this.events.error) {
1151                            // No direct errback on this module, but something
1152                            // else is listening for errors, so be sure to
1153                            // propagate the error correctly.
1154                            on(depMap, 'error', bind(this, function(err) {
1155                                this.emit('error', err);
1156                            }));
1157                        }
1158                    }
1159
1160                    id = depMap.id;
1161                    mod = registry[id];
1162
1163                    //Skip special modules like 'require', 'exports', 'module'
1164                    //Also, don't call enable if it is already enabled,
1165                    //important in circular dependency cases.
1166                    if (!hasProp(handlers, id) && mod && !mod.enabled) {
1167                        context.enable(depMap, this);
1168                    }
1169                }));
1170
1171                //Enable each plugin that is used in
1172                //a dependency
1173                eachProp(this.pluginMaps, bind(this, function (pluginMap) {
1174                    var mod = getOwn(registry, pluginMap.id);
1175                    if (mod && !mod.enabled) {
1176                        context.enable(pluginMap, this);
1177                    }
1178                }));
1179
1180                this.enabling = false;
1181
1182                this.check();
1183            },
1184
1185            on: function (name, cb) {
1186                var cbs = this.events[name];
1187                if (!cbs) {
1188                    cbs = this.events[name] = [];
1189                }
1190                cbs.push(cb);
1191            },
1192
1193            emit: function (name, evt) {
1194                each(this.events[name], function (cb) {
1195                    cb(evt);
1196                });
1197                if (name === 'error') {
1198                    //Now that the error handler was triggered, remove
1199                    //the listeners, since this broken Module instance
1200                    //can stay around for a while in the registry.
1201                    delete this.events[name];
1202                }
1203            }
1204        };
1205
1206        function callGetModule(args) {
1207            //Skip modules already defined.
1208            if (!hasProp(defined, args[0])) {
1209                getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
1210            }
1211        }
1212
1213        function removeListener(node, func, name, ieName) {
1214            //Favor detachEvent because of IE9
1215            //issue, see attachEvent/addEventListener comment elsewhere
1216            //in this file.
1217            if (node.detachEvent && !isOpera) {
1218                //Probably IE. If not it will throw an error, which will be
1219                //useful to know.
1220                if (ieName) {
1221                    node.detachEvent(ieName, func);
1222                }
1223            } else {
1224                node.removeEventListener(name, func, false);
1225            }
1226        }
1227
1228        /**
1229         * Given an event from a script node, get the requirejs info from it,
1230         * and then removes the event listeners on the node.
1231         * @param {Event} evt
1232         * @returns {Object}
1233         */
1234        function getScriptData(evt) {
1235            //Using currentTarget instead of target for Firefox 2.0's sake. Not
1236            //all old browsers will be supported, but this one was easy enough
1237            //to support and still makes sense.
1238            var node = evt.currentTarget || evt.srcElement;
1239
1240            //Remove the listeners once here.
1241            removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
1242            removeListener(node, context.onScriptError, 'error');
1243
1244            return {
1245                node: node,
1246                id: node && node.getAttribute('data-requiremodule')
1247            };
1248        }
1249
1250        function intakeDefines() {
1251            var args;
1252
1253            //Any defined modules in the global queue, intake them now.
1254            takeGlobalQueue();
1255
1256            //Make sure any remaining defQueue items get properly processed.
1257            while (defQueue.length) {
1258                args = defQueue.shift();
1259                if (args[0] === null) {
1260                    return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' +
1261                        args[args.length - 1]));
1262                } else {
1263                    //args are id, deps, factory. Should be normalized by the
1264                    //define() function.
1265                    callGetModule(args);
1266                }
1267            }
1268            context.defQueueMap = {};
1269        }
1270
1271        context = {
1272            config: config,
1273            contextName: contextName,
1274            registry: registry,
1275            defined: defined,
1276            urlFetched: urlFetched,
1277            defQueue: defQueue,
1278            defQueueMap: {},
1279            Module: Module,
1280            makeModuleMap: makeModuleMap,
1281            nextTick: req.nextTick,
1282            onError: onError,
1283
1284            /**
1285             * Set a configuration for the context.
1286             * @param {Object} cfg config object to integrate.
1287             */
1288            configure: function (cfg) {
1289                //Make sure the baseUrl ends in a slash.
1290                if (cfg.baseUrl) {
1291                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
1292                        cfg.baseUrl += '/';
1293                    }
1294                }
1295
1296                // Convert old style urlArgs string to a function.
1297                if (typeof cfg.urlArgs === 'string') {
1298                    var urlArgs = cfg.urlArgs;
1299                    cfg.urlArgs = function(id, url) {
1300                        return (url.indexOf('?') === -1 ? '?' : '&') + urlArgs;
1301                    };
1302                }
1303
1304                //Save off the paths since they require special processing,
1305                //they are additive.
1306                var shim = config.shim,
1307                    objs = {
1308                        paths: true,
1309                        bundles: true,
1310                        config: true,
1311                        map: true
1312                    };
1313
1314                eachProp(cfg, function (value, prop) {
1315                    if (objs[prop]) {
1316                        if (!config[prop]) {
1317                            config[prop] = {};
1318                        }
1319                        mixin(config[prop], value, true, true);
1320                    } else {
1321                        config[prop] = value;
1322                    }
1323                });
1324
1325                //Reverse map the bundles
1326                if (cfg.bundles) {
1327                    eachProp(cfg.bundles, function (value, prop) {
1328                        each(value, function (v) {
1329                            if (v !== prop) {
1330                                bundlesMap[v] = prop;
1331                            }
1332                        });
1333                    });
1334                }
1335
1336                //Merge shim
1337                if (cfg.shim) {
1338                    eachProp(cfg.shim, function (value, id) {
1339                        //Normalize the structure
1340                        if (isArray(value)) {
1341                            value = {
1342                                deps: value
1343                            };
1344                        }
1345                        if ((value.exports || value.init) && !value.exportsFn) {
1346                            value.exportsFn = context.makeShimExports(value);
1347                        }
1348                        shim[id] = value;
1349                    });
1350                    config.shim = shim;
1351                }
1352
1353                //Adjust packages if necessary.
1354                if (cfg.packages) {
1355                    each(cfg.packages, function (pkgObj) {
1356                        var location, name;
1357
1358                        pkgObj = typeof pkgObj === 'string' ? {name: pkgObj} : pkgObj;
1359
1360                        name = pkgObj.name;
1361                        location = pkgObj.location;
1362                        if (location) {
1363                            config.paths[name] = pkgObj.location;
1364                        }
1365
1366                        //Save pointer to main module ID for pkg name.
1367                        //Remove leading dot in main, so main paths are normalized,
1368                        //and remove any trailing .js, since different package
1369                        //envs have different conventions: some use a module name,
1370                        //some use a file name.
1371                        config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main')
1372                                     .replace(currDirRegExp, '')
1373                                     .replace(jsSuffixRegExp, '');
1374                    });
1375                }
1376
1377                //If there are any "waiting to execute" modules in the registry,
1378                //update the maps for them, since their info, like URLs to load,
1379                //may have changed.
1380                eachProp(registry, function (mod, id) {
1381                    //If module already has init called, since it is too
1382                    //late to modify them, and ignore unnormalized ones
1383                    //since they are transient.
1384                    if (!mod.inited && !mod.map.unnormalized) {
1385                        mod.map = makeModuleMap(id, null, true);
1386                    }
1387                });
1388
1389                //If a deps array or a config callback is specified, then call
1390                //require with those args. This is useful when require is defined as a
1391                //config object before require.js is loaded.
1392                if (cfg.deps || cfg.callback) {
1393                    context.require(cfg.deps || [], cfg.callback);
1394                }
1395            },
1396
1397            makeShimExports: function (value) {
1398                function fn() {
1399                    var ret;
1400                    if (value.init) {
1401                        ret = value.init.apply(global, arguments);
1402                    }
1403                    return ret || (value.exports && getGlobal(value.exports));
1404                }
1405                return fn;
1406            },
1407
1408            makeRequire: function (relMap, options) {
1409                options = options || {};
1410
1411                function localRequire(deps, callback, errback) {
1412                    var id, map, requireMod;
1413
1414                    if (options.enableBuildCallback && callback && isFunction(callback)) {
1415                        callback.__requireJsBuild = true;
1416                    }
1417
1418                    if (typeof deps === 'string') {
1419                        if (isFunction(callback)) {
1420                            //Invalid call
1421                            return onError(makeError('requireargs', 'Invalid require call'), errback);
1422                        }
1423
1424                        //If require|exports|module are requested, get the
1425                        //value for them from the special handlers. Caveat:
1426                        //this only works while module is being defined.
1427                        if (relMap && hasProp(handlers, deps)) {
1428                            return handlers[deps](registry[relMap.id]);
1429                        }
1430
1431                        //Synchronous access to one module. If require.get is
1432                        //available (as in the Node adapter), prefer that.
1433                        if (req.get) {
1434                            return req.get(context, deps, relMap, localRequire);
1435                        }
1436
1437                        //Normalize module name, if it contains . or ..
1438                        map = makeModuleMap(deps, relMap, false, true);
1439                        id = map.id;
1440
1441                        if (!hasProp(defined, id)) {
1442                            return onError(makeError('notloaded', 'Module name "' +
1443                                        id +
1444                                        '" has not been loaded yet for context: ' +
1445                                        contextName +
1446                                        (relMap ? '' : '. Use require([])')));
1447                        }
1448                        return defined[id];
1449                    }
1450
1451                    //Grab defines waiting in the global queue.
1452                    intakeDefines();
1453
1454                    //Mark all the dependencies as needing to be loaded.
1455                    context.nextTick(function () {
1456                        //Some defines could have been added since the
1457                        //require call, collect them.
1458                        intakeDefines();
1459
1460                        requireMod = getModule(makeModuleMap(null, relMap));
1461
1462                        //Store if map config should be applied to this require
1463                        //call for dependencies.
1464                        requireMod.skipMap = options.skipMap;
1465
1466                        requireMod.init(deps, callback, errback, {
1467                            enabled: true
1468                        });
1469
1470                        checkLoaded();
1471                    });
1472
1473                    return localRequire;
1474                }
1475
1476                mixin(localRequire, {
1477                    isBrowser: isBrowser,
1478
1479                    /**
1480                     * Converts a module name + .extension into an URL path.
1481                     * *Requires* the use of a module name. It does not support using
1482                     * plain URLs like nameToUrl.
1483                     */
1484                    toUrl: function (moduleNamePlusExt) {
1485                        var ext,
1486                            index = moduleNamePlusExt.lastIndexOf('.'),
1487                            segment = moduleNamePlusExt.split('/')[0],
1488                            isRelative = segment === '.' || segment === '..';
1489
1490                        //Have a file extension alias, and it is not the
1491                        //dots from a relative path.
1492                        if (index !== -1 && (!isRelative || index > 1)) {
1493                            ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
1494                            moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
1495                        }
1496
1497                        return context.nameToUrl(normalize(moduleNamePlusExt,
1498                                                relMap && relMap.id, true), ext,  true);
1499                    },
1500
1501                    defined: function (id) {
1502                        return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
1503                    },
1504
1505                    specified: function (id) {
1506                        id = makeModuleMap(id, relMap, false, true).id;
1507                        return hasProp(defined, id) || hasProp(registry, id);
1508                    }
1509                });
1510
1511                //Only allow undef on top level require calls
1512                if (!relMap) {
1513                    localRequire.undef = function (id) {
1514                        //Bind any waiting define() calls to this context,
1515                        //fix for #408
1516                        takeGlobalQueue();
1517
1518                        var map = makeModuleMap(id, relMap, true),
1519                            mod = getOwn(registry, id);
1520
1521                        mod.undefed = true;
1522                        removeScript(id);
1523
1524                        delete defined[id];
1525                        delete urlFetched[map.url];
1526                        delete undefEvents[id];
1527
1528                        //Clean queued defines too. Go backwards
1529                        //in array so that the splices do not
1530                        //mess up the iteration.
1531                        eachReverse(defQueue, function(args, i) {
1532                            if (args[0] === id) {
1533                                defQueue.splice(i, 1);
1534                            }
1535                        });
1536                        delete context.defQueueMap[id];
1537
1538                        if (mod) {
1539                            //Hold on to listeners in case the
1540                            //module will be attempted to be reloaded
1541                            //using a different config.
1542                            if (mod.events.defined) {
1543                                undefEvents[id] = mod.events;
1544                            }
1545
1546                            cleanRegistry(id);
1547                        }
1548                    };
1549                }
1550
1551                return localRequire;
1552            },
1553
1554            /**
1555             * Called to enable a module if it is still in the registry
1556             * awaiting enablement. A second arg, parent, the parent module,
1557             * is passed in for context, when this method is overridden by
1558             * the optimizer. Not shown here to keep code compact.
1559             */
1560            enable: function (depMap) {
1561                var mod = getOwn(registry, depMap.id);
1562                if (mod) {
1563                    getModule(depMap).enable();
1564                }
1565            },
1566
1567            /**
1568             * Internal method used by environment adapters to complete a load event.
1569             * A load event could be a script load or just a load pass from a synchronous
1570             * load call.
1571             * @param {String} moduleName the name of the module to potentially complete.
1572             */
1573            completeLoad: function (moduleName) {
1574                var found, args, mod,
1575                    shim = getOwn(config.shim, moduleName) || {},
1576                    shExports = shim.exports;
1577
1578                takeGlobalQueue();
1579
1580                while (defQueue.length) {
1581                    args = defQueue.shift();
1582                    if (args[0] === null) {
1583                        args[0] = moduleName;
1584                        //If already found an anonymous module and bound it
1585                        //to this name, then this is some other anon module
1586                        //waiting for its completeLoad to fire.
1587                        if (found) {
1588                            break;
1589                        }
1590                        found = true;
1591                    } else if (args[0] === moduleName) {
1592                        //Found matching define call for this script!
1593                        found = true;
1594                    }
1595
1596                    callGetModule(args);
1597                }
1598                context.defQueueMap = {};
1599
1600                //Do this after the cycle of callGetModule in case the result
1601                //of those calls/init calls changes the registry.
1602                mod = getOwn(registry, moduleName);
1603
1604                if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) {
1605                    if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
1606                        if (hasPathFallback(moduleName)) {
1607                            return;
1608                        } else {
1609                            return onError(makeError('nodefine',
1610                                             'No define call for ' + moduleName,
1611                                             null,
1612                                             [moduleName]));
1613                        }
1614                    } else {
1615                        //A script that does not call define(), so just simulate
1616                        //the call for it.
1617                        callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
1618                    }
1619                }
1620
1621                checkLoaded();
1622            },
1623
1624            /**
1625             * Converts a module name to a file path. Supports cases where
1626             * moduleName may actually be just an URL.
1627             * Note that it **does not** call normalize on the moduleName,
1628             * it is assumed to have already been normalized. This is an
1629             * internal API, not a public one. Use toUrl for the public API.
1630             */
1631            nameToUrl: function (moduleName, ext, skipExt) {
1632                var paths, syms, i, parentModule, url,
1633                    parentPath, bundleId,
1634                    pkgMain = getOwn(config.pkgs, moduleName);
1635
1636                if (pkgMain) {
1637                    moduleName = pkgMain;
1638                }
1639
1640                bundleId = getOwn(bundlesMap, moduleName);
1641
1642                if (bundleId) {
1643                    return context.nameToUrl(bundleId, ext, skipExt);
1644                }
1645
1646                //If a colon is in the URL, it indicates a protocol is used and it is just
1647                //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
1648                //or ends with .js, then assume the user meant to use an url and not a module id.
1649                //The slash is important for protocol-less URLs as well as full paths.
1650                if (req.jsExtRegExp.test(moduleName)) {
1651                    //Just a plain path, not module name lookup, so just return it.
1652                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
1653                    //an extension, this method probably needs to be reworked.
1654                    url = moduleName + (ext || '');
1655                } else {
1656                    //A module that needs to be converted to a path.
1657                    paths = config.paths;
1658
1659                    syms = moduleName.split('/');
1660                    //For each module name segment, see if there is a path
1661                    //registered for it. Start with most specific name
1662                    //and work up from it.
1663                    for (i = syms.length; i > 0; i -= 1) {
1664                        parentModule = syms.slice(0, i).join('/');
1665
1666                        parentPath = getOwn(paths, parentModule);
1667                        if (parentPath) {
1668                            //If an array, it means there are a few choices,
1669                            //Choose the one that is desired
1670                            if (isArray(parentPath)) {
1671                                parentPath = parentPath[0];
1672                            }
1673                            syms.splice(0, i, parentPath);
1674                            break;
1675                        }
1676                    }
1677
1678                    //Join the path parts together, then figure out if baseUrl is needed.
1679                    url = syms.join('/');
1680                    url += (ext || (/^data\:|^blob\:|\?/.test(url) || skipExt ? '' : '.js'));
1681                    url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
1682                }
1683
1684                return config.urlArgs && !/^blob\:/.test(url) ?
1685                       url + config.urlArgs(moduleName, url) : url;
1686            },
1687
1688            //Delegates to req.load. Broken out as a separate function to
1689            //allow overriding in the optimizer.
1690            load: function (id, url) {
1691                req.load(context, id, url);
1692            },
1693
1694            /**
1695             * Executes a module callback function. Broken out as a separate function
1696             * solely to allow the build system to sequence the files in the built
1697             * layer in the right sequence.
1698             *
1699             * @private
1700             */
1701            execCb: function (name, callback, args, exports) {
1702                return callback.apply(exports, args);
1703            },
1704
1705            /**
1706             * callback for script loads, used to check status of loading.
1707             *
1708             * @param {Event} evt the event from the browser for the script
1709             * that was loaded.
1710             */
1711            onScriptLoad: function (evt) {
1712                //Using currentTarget instead of target for Firefox 2.0's sake. Not
1713                //all old browsers will be supported, but this one was easy enough
1714                //to support and still makes sense.
1715                if (evt.type === 'load' ||
1716                        (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
1717                    //Reset interactive script so a script node is not held onto for
1718                    //to long.
1719                    interactiveScript = null;
1720
1721                    //Pull out the name of the module and the context.
1722                    var data = getScriptData(evt);
1723                    context.completeLoad(data.id);
1724                }
1725            },
1726
1727            /**
1728             * Callback for script errors.
1729             */
1730            onScriptError: function (evt) {
1731                var data = getScriptData(evt);
1732                if (!hasPathFallback(data.id)) {
1733                    var parents = [];
1734                    eachProp(registry, function(value, key) {
1735                        if (key.indexOf('_@r') !== 0) {
1736                            each(value.depMaps, function(depMap) {
1737                                if (depMap.id === data.id) {
1738                                    parents.push(key);
1739                                    return true;
1740                                }
1741                            });
1742                        }
1743                    });
1744                    return onError(makeError('scripterror', 'Script error for "' + data.id +
1745                                             (parents.length ?
1746                                             '", needed by: ' + parents.join(', ') :
1747                                             '"'), evt, [data.id]));
1748                }
1749            }
1750        };
1751
1752        context.require = context.makeRequire();
1753        return context;
1754    }
1755
1756    /**
1757     * Main entry point.
1758     *
1759     * If the only argument to require is a string, then the module that
1760     * is represented by that string is fetched for the appropriate context.
1761     *
1762     * If the first argument is an array, then it will be treated as an array
1763     * of dependency string names to fetch. An optional function callback can
1764     * be specified to execute when all of those dependencies are available.
1765     *
1766     * Make a local req variable to help Caja compliance (it assumes things
1767     * on a require that are not standardized), and to give a short
1768     * name for minification/local scope use.
1769     */
1770    req = requirejs = function (deps, callback, errback, optional) {
1771
1772        //Find the right context, use default
1773        var context, config,
1774            contextName = defContextName;
1775
1776        // Determine if have config object in the call.
1777        if (!isArray(deps) && typeof deps !== 'string') {
1778            // deps is a config object
1779            config = deps;
1780            if (isArray(callback)) {
1781                // Adjust args if there are dependencies
1782                deps = callback;
1783                callback = errback;
1784                errback = optional;
1785            } else {
1786                deps = [];
1787            }
1788        }
1789
1790        if (config && config.context) {
1791            contextName = config.context;
1792        }
1793
1794        context = getOwn(contexts, contextName);
1795        if (!context) {
1796            context = contexts[contextName] = req.s.newContext(contextName);
1797        }
1798
1799        if (config) {
1800            context.configure(config);
1801        }
1802
1803        return context.require(deps, callback, errback);
1804    };
1805
1806    /**
1807     * Support require.config() to make it easier to cooperate with other
1808     * AMD loaders on globally agreed names.
1809     */
1810    req.config = function (config) {
1811        return req(config);
1812    };
1813
1814    /**
1815     * Execute something after the current tick
1816     * of the event loop. Override for other envs
1817     * that have a better solution than setTimeout.
1818     * @param  {Function} fn function to execute later.
1819     */
1820    req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
1821        setTimeout(fn, 4);
1822    } : function (fn) { fn(); };
1823
1824    /**
1825     * Export require as a global, but only if it does not already exist.
1826     */
1827    if (!require) {
1828        require = req;
1829    }
1830
1831    req.version = version;
1832
1833    //Used to filter out dependencies that are already paths.
1834    req.jsExtRegExp = /^\/|:|\?|\.js$/;
1835    req.isBrowser = isBrowser;
1836    s = req.s = {
1837        contexts: contexts,
1838        newContext: newContext
1839    };
1840
1841    //Create default context.
1842    req({});
1843
1844    //Exports some context-sensitive methods on global require.
1845    each([
1846        'toUrl',
1847        'undef',
1848        'defined',
1849        'specified'
1850    ], function (prop) {
1851        //Reference from contexts instead of early binding to default context,
1852        //so that during builds, the latest instance of the default context
1853        //with its config gets used.
1854        req[prop] = function () {
1855            var ctx = contexts[defContextName];
1856            return ctx.require[prop].apply(ctx, arguments);
1857        };
1858    });
1859
1860    if (isBrowser) {
1861        head = s.head = document.getElementsByTagName('head')[0];
1862        //If BASE tag is in play, using appendChild is a problem for IE6.
1863        //When that browser dies, this can be removed. Details in this jQuery bug:
1864        //http://dev.jquery.com/ticket/2709
1865        baseElement = document.getElementsByTagName('base')[0];
1866        if (baseElement) {
1867            head = s.head = baseElement.parentNode;
1868        }
1869    }
1870
1871    /**
1872     * Any errors that require explicitly generates will be passed to this
1873     * function. Intercept/override it if you want custom error handling.
1874     * @param {Error} err the error object.
1875     */
1876    req.onError = defaultOnError;
1877
1878    /**
1879     * Creates the node for the load command. Only used in browser envs.
1880     */
1881    req.createNode = function (config, moduleName, url) {
1882        var node = config.xhtml ?
1883                document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
1884                document.createElement('script');
1885        node.type = config.scriptType || 'text/javascript';
1886        node.charset = 'utf-8';
1887        node.async = true;
1888        return node;
1889    };
1890
1891    /**
1892     * Does the request to load a module for the browser case.
1893     * Make this a separate function to allow other environments
1894     * to override it.
1895     *
1896     * @param {Object} context the require context to find state.
1897     * @param {String} moduleName the name of the module.
1898     * @param {Object} url the URL to the module.
1899     */
1900    req.load = function (context, moduleName, url) {
1901        var config = (context && context.config) || {},
1902            node;
1903        if (isBrowser) {
1904            //In the browser so use a script tag
1905            node = req.createNode(config, moduleName, url);
1906
1907            node.setAttribute('data-requirecontext', context.contextName);
1908            node.setAttribute('data-requiremodule', moduleName);
1909
1910            //Set up load listener. Test attachEvent first because IE9 has
1911            //a subtle issue in its addEventListener and script onload firings
1912            //that do not match the behavior of all other browsers with
1913            //addEventListener support, which fire the onload event for a
1914            //script right after the script execution. See:
1915            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
1916            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
1917            //script execution mode.
1918            if (node.attachEvent &&
1919                    //Check if node.attachEvent is artificially added by custom script or
1920                    //natively supported by browser
1921                    //read https://github.com/requirejs/requirejs/issues/187
1922                    //if we can NOT find [native code] then it must NOT natively supported.
1923                    //in IE8, node.attachEvent does not have toString()
1924                    //Note the test for "[native code" with no closing brace, see:
1925                    //https://github.com/requirejs/requirejs/issues/273
1926                    !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
1927                    !isOpera) {
1928                //Probably IE. IE (at least 6-8) do not fire
1929                //script onload right after executing the script, so
1930                //we cannot tie the anonymous define call to a name.
1931                //However, IE reports the script as being in 'interactive'
1932                //readyState at the time of the define call.
1933                useInteractive = true;
1934
1935                node.attachEvent('onreadystatechange', context.onScriptLoad);
1936                //It would be great to add an error handler here to catch
1937                //404s in IE9+. However, onreadystatechange will fire before
1938                //the error handler, so that does not help. If addEventListener
1939                //is used, then IE will fire error before load, but we cannot
1940                //use that pathway given the connect.microsoft.com issue
1941                //mentioned above about not doing the 'script execute,
1942                //then fire the script load event listener before execute
1943                //next script' that other browsers do.
1944                //Best hope: IE10 fixes the issues,
1945                //and then destroys all installs of IE 6-9.
1946                //node.attachEvent('onerror', context.onScriptError);
1947            } else {
1948                node.addEventListener('load', context.onScriptLoad, false);
1949                node.addEventListener('error', context.onScriptError, false);
1950            }
1951            node.src = url;
1952
1953            //Calling onNodeCreated after all properties on the node have been
1954            //set, but before it is placed in the DOM.
1955            if (config.onNodeCreated) {
1956                config.onNodeCreated(node, config, moduleName, url);
1957            }
1958
1959            //For some cache cases in IE 6-8, the script executes before the end
1960            //of the appendChild execution, so to tie an anonymous define
1961            //call to the module name (which is stored on the node), hold on
1962            //to a reference to this node, but clear after the DOM insertion.
1963            currentlyAddingScript = node;
1964            if (baseElement) {
1965                head.insertBefore(node, baseElement);
1966            } else {
1967                head.appendChild(node);
1968            }
1969            currentlyAddingScript = null;
1970
1971            return node;
1972        } else if (isWebWorker) {
1973            try {
1974                //In a web worker, use importScripts. This is not a very
1975                //efficient use of importScripts, importScripts will block until
1976                //its script is downloaded and evaluated. However, if web workers
1977                //are in play, the expectation is that a build has been done so
1978                //that only one script needs to be loaded anyway. This may need
1979                //to be reevaluated if other use cases become common.
1980
1981                // Post a task to the event loop to work around a bug in WebKit
1982                // where the worker gets garbage-collected after calling
1983                // importScripts(): https://webkit.org/b/153317
1984                setTimeout(function() {}, 0);
1985                importScripts(url);
1986
1987                //Account for anonymous modules
1988                context.completeLoad(moduleName);
1989            } catch (e) {
1990                context.onError(makeError('importscripts',
1991                                'importScripts failed for ' +
1992                                    moduleName + ' at ' + url,
1993                                e,
1994                                [moduleName]));
1995            }
1996        }
1997    };
1998
1999    function getInteractiveScript() {
2000        if (interactiveScript && interactiveScript.readyState === 'interactive') {
2001            return interactiveScript;
2002        }
2003
2004        eachReverse(scripts(), function (script) {
2005            if (script.readyState === 'interactive') {
2006                return (interactiveScript = script);
2007            }
2008        });
2009        return interactiveScript;
2010    }
2011
2012    //Look for a data-main script attribute, which could also adjust the baseUrl.
2013    if (isBrowser && !cfg.skipDataMain) {
2014        //Figure out baseUrl. Get it from the script tag with require.js in it.
2015        eachReverse(scripts(), function (script) {
2016            //Set the 'head' where we can append children by
2017            //using the script's parent.
2018            if (!head) {
2019                head = script.parentNode;
2020            }
2021
2022            //Look for a data-main attribute to set main script for the page
2023            //to load. If it is there, the path to data main becomes the
2024            //baseUrl, if it is not already set.
2025            dataMain = script.getAttribute('data-main');
2026            if (dataMain) {
2027                //Preserve dataMain in case it is a path (i.e. contains '?')
2028                mainScript = dataMain;
2029
2030                //Set final baseUrl if there is not already an explicit one,
2031                //but only do so if the data-main value is not a loader plugin
2032                //module ID.
2033                if (!cfg.baseUrl && mainScript.indexOf('!') === -1) {
2034                    //Pull off the directory of data-main for use as the
2035                    //baseUrl.
2036                    src = mainScript.split('/');
2037                    mainScript = src.pop();
2038                    subPath = src.length ? src.join('/')  + '/' : './';
2039
2040                    cfg.baseUrl = subPath;
2041                }
2042
2043                //Strip off any trailing .js since mainScript is now
2044                //like a module name.
2045                mainScript = mainScript.replace(jsSuffixRegExp, '');
2046
2047                //If mainScript is still a path, fall back to dataMain
2048                if (req.jsExtRegExp.test(mainScript)) {
2049                    mainScript = dataMain;
2050                }
2051
2052                //Put the data-main script in the files to load.
2053                cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];
2054
2055                return true;
2056            }
2057        });
2058    }
2059
2060    /**
2061     * The function that handles definitions of modules. Differs from
2062     * require() in that a string for the module should be the first argument,
2063     * and the function to execute after dependencies are loaded should
2064     * return a value to define the module corresponding to the first argument's
2065     * name.
2066     */
2067    define = function (name, deps, callback) {
2068        var node, context;
2069
2070        //Allow for anonymous modules
2071        if (typeof name !== 'string') {
2072            //Adjust args appropriately
2073            callback = deps;
2074            deps = name;
2075            name = null;
2076        }
2077
2078        //This module may not have dependencies
2079        if (!isArray(deps)) {
2080            callback = deps;
2081            deps = null;
2082        }
2083
2084        //If no name, and callback is a function, then figure out if it a
2085        //CommonJS thing with dependencies.
2086        if (!deps && isFunction(callback)) {
2087            deps = [];
2088            //Remove comments from the callback string,
2089            //look for require calls, and pull them into the dependencies,
2090            //but only if there are function args.
2091            if (callback.length) {
2092                callback
2093                    .toString()
2094                    .replace(commentRegExp, commentReplace)
2095                    .replace(cjsRequireRegExp, function (match, dep) {
2096                        deps.push(dep);
2097                    });
2098
2099                //May be a CommonJS thing even without require calls, but still
2100                //could use exports, and module. Avoid doing exports and module
2101                //work though if it just needs require.
2102                //REQUIRES the function to expect the CommonJS variables in the
2103                //order listed below.
2104                deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
2105            }
2106        }
2107
2108        //If in IE 6-8 and hit an anonymous define() call, do the interactive
2109        //work.
2110        if (useInteractive) {
2111            node = currentlyAddingScript || getInteractiveScript();
2112            if (node) {
2113                if (!name) {
2114                    name = node.getAttribute('data-requiremodule');
2115                }
2116                context = contexts[node.getAttribute('data-requirecontext')];
2117            }
2118        }
2119
2120        //Always save off evaluating the def call until the script onload handler.
2121        //This allows multiple modules to be in a file without prematurely
2122        //tracing dependencies, and allows for anonymous module support,
2123        //where the module name is not known until the script onload event
2124        //occurs. If no context, use the global queue, and get it processed
2125        //in the onscript load callback.
2126        if (context) {
2127            context.defQueue.push([name, deps, callback]);
2128            context.defQueueMap[name] = true;
2129        } else {
2130            globalDefQueue.push([name, deps, callback]);
2131        }
2132    };
2133
2134    define.amd = {
2135        jQuery: true
2136    };
2137
2138    /**
2139     * Executes the text. Normally just uses eval, but can be modified
2140     * to use a better, environment-specific call. Only used for transpiling
2141     * loader plugins, not for plain JS modules.
2142     * @param {String} text the text to execute/evaluate.
2143     */
2144    req.exec = function (text) {
2145        /*jslint evil: true */
2146        return eval(text);
2147    };
2148
2149    //Set up with config info.
2150    req(cfg);
2151}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));
2152
2153requirejs.config({
2154    baseUrl: PORTAL_URL,
2155    paths: {
2156    "ace-mode-css": "++plone++static/components/ace-builds/src/mode-css",
2157    "ace-mode-javascript": "++plone++static/components/ace-builds/src/mode-javascript",
2158    "ace-mode-text": "++plone++static/components/ace-builds/src/mode-text",
2159    "ace-theme-monokai": "++plone++static/components/ace-builds/src/theme-monokai",
2160    "ace": "++plone++static/components/ace-builds/src/ace",
2161    "anonymouseditpatterns": "++plone++collective.anonymouseditpatterns/js/anonymouseditpatterns",
2162    "backbone": "++plone++static/components/backbone/backbone",
2163    "backbone.paginator": "++plone++static/components/backbone.paginator/lib/backbone.paginator",
2164    "bootstrap-alert": "++plone++static/components/bootstrap/js/alert",
2165    "bootstrap-collapse": "++plone++static/components/bootstrap/js/collapse",
2166    "bootstrap-dropdown": "++plone++static/components/bootstrap/js/dropdown",
2167    "bootstrap-tooltip": "++plone++static/components/bootstrap/js/tooltip",
2168    "bootstrap-transition": "++plone++static/components/bootstrap/js/transition",
2169    "bundle-leaflet": "++plone++patternslib/bundle-leaflet",
2170    "collective-slick-import": "++plone++collective.slick/bundle",
2171    "collective-slick-js": "++plone++collective.slick/slick.min",
2172    "datagridfield-bundle": "++resource++collective.z3cform.datagridfield/datagridfield-bundle",
2173    "datatables.net-autofill-bs": "++plone++static/components/datatables.net-autofill-bs/js/autoFill.bootstrap",
2174    "datatables.net-autofill": "++plone++static/components/datatables.net-autofill/js/dataTables.autoFill.min",
2175    "datatables.net-bs": "++plone++static/components/datatables.net-bs/js/dataTables.bootstrap",
2176    "datatables.net-buttons-bs": "++plone++static/components/datatables.net-buttons-bs/js/buttons.bootstrap.min",
2177    "datatables.net-buttons-colvis": "++plone++static/components/datatables.net-buttons/js/buttons.colVis.min",
2178    "datatables.net-buttons-flash": "++plone++static/components/datatables.net-buttons/js/buttons.flash.min",
2179    "datatables.net-buttons-html5": "++plone++static/components/datatables.net-buttons/js/buttons.html5.min",
2180    "datatables.net-buttons-print": "++plone++static/components/datatables.net-buttons/js/buttons.print.min",
2181    "datatables.net-buttons": "++plone++static/components/datatables.net-buttons/js/dataTables.buttons.min",
2182    "datatables.net-colreorder": "++plone++static/components/datatables.net-colreorder/js/dataTables.colReorder.min",
2183    "datatables.net-fixedcolumns": "++plone++static/components/datatables.net-fixedcolumns/js/dataTables.fixedColumns.min",
2184    "datatables.net-fixedheader": "++plone++static/components/datatables.net-fixedheader/js/dataTables.fixedHeader.min",
2185    "datatables.net-keytable": "++plone++static/components/datatables.net-keytable/js/dataTables.keyTable.min",
2186    "datatables.net-responsive-bs": "++plone++static/components/datatables.net-responsive-bs/js/responsive.bootstrap.min",
2187    "datatables.net-responsive": "++plone++static/components/datatables.net-responsive/js/dataTables.responsive.min",
2188    "datatables.net-rowreorder": "++plone++static/components/datatables.net-rowreorder/js/dataTables.rowReorder.min",
2189    "datatables.net-scroller": "++plone++static/components/datatables.net-scroller/js/dataTables.scroller.min",
2190    "datatables.net-select": "++plone++static/components/datatables.net-select/js/dataTables.select.min",
2191    "datatables.net": "++plone++static/components/datatables.net/js/jquery.dataTables",
2192    "desandro-matches-selector": "++plone++patternslib/components/desandro-matches-selector/matches-selector",
2193    "dropzone": "++plone++static/components/dropzone/dist/dropzone-amd-module",
2194    "ev-emitter": "++plone++patternslib/components/ev-emitter/ev-emitter",
2195    "filemanager": "++plone++static/filemanager",
2196    "get-size": "++plone++patternslib/components/get-size/get-size",
2197    "imagesloaded": "++plone++patternslib/components/imagesloaded/imagesloaded.pkgd",
2198    "jcrop": "++plone++patternslib/components/jcrop/js/jquery.Jcrop",
2199    "jqtree-contextmenu": "++plone++static/components/cs-jqtree-contextmenu/src/jqTreeContextMenu",
2200    "jqtree": "++plone++static/components/jqtree/tree.jquery",
2201    "jquery.anythingslider": "++plone++patternslib/components/AnythingSlider/js/jquery.anythingslider",
2202    "jquery.browser": "++plone++patternslib/components/jquery.browser/dist/jquery.browser",
2203    "jquery": "++plone++static/components/jquery/dist/jquery.min",
2204    "jquery.cookie": "++plone++static/components/jquery.cookie/jquery.cookie",
2205    "jquery.event.drag": "++resource++mockuplib/jquery.event.drag",
2206    "jquery.event.drop": "++resource++mockuplib/jquery.event.drop",
2207    "jquery.form": "++plone++static/components/jquery-form/src/jquery.form",
2208    "jquery.placeholder": "++plone++patternslib/components/jquery-placeholder/jquery.placeholder",
2209    "jquery.recurrenceinput": "++plone++static/components/jquery.recurrenceinput.js/src/jquery.recurrenceinput",
2210    "jquery.tmpl": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tmpl",
2211    "leaflet-awesomemarkers": "++plone++patternslib/components/Leaflet.awesome-markers/dist/leaflet.awesome-markers",
2212    "leaflet-fullscreen": "++plone++patternslib/components/Leaflet.fullscreen/dist/Leaflet.fullscreen",
2213    "leaflet-geosearch-bing": "++plone++patternslib/components/L.GeoSearch/src/js/l.geosearch.provider.bing",
2214    "leaflet-geosearch-esri": "++plone++patternslib/components/L.GeoSearch/src/js/l.geosearch.provider.esri",
2215    "leaflet-geosearch-google": "++plone++patternslib/components/L.GeoSearch/src/js/l.geosearch.provider.google",
2216    "leaflet-geosearch-openstreetmap": "++plone++patternslib/components/L.GeoSearch/src/js/l.geosearch.provider.openstreetmap",
2217    "leaflet-geosearch": "++plone++patternslib/components/L.GeoSearch/src/js/l.control.geosearch",
2218    "leaflet-locatecontrol": "++plone++patternslib/components/leaflet.locatecontrol/src/L.Control.Locate",
2219    "leaflet-markercluster": "++plone++patternslib/components/leaflet.markercluster/dist/leaflet.markercluster-src",
2220    "leaflet-minimap": "++plone++patternslib/components/Leaflet-MiniMap/dist/Control.MiniMap.min",
2221    "leaflet-providers": "++plone++patternslib/components/leaflet-providers/leaflet-providers",
2222    "leaflet-simplemarkers": "++plone++patternslib/components/Leaflet.SimpleMarkers/lib/Control.SimpleMarkers",
2223    "leaflet-sleep": "++plone++patternslib/components/Leaflet.Sleep/Leaflet.Sleep",
2224    "leaflet": "++plone++patternslib/components/leaflet/dist/leaflet-src",
2225    "less": "++plone++static/components/less/dist/less",
2226    "logging": "++plone++patternslib/components/logging/src/logging",
2227    "masonry": "++plone++patternslib/components/masonry/dist/masonry.pkgd",
2228    "mockup-i18n": "++resource++mockupjs/i18n",
2229    "mockup-patterns-autotoc": "++resource++mockup/autotoc/pattern",
2230    "mockup-patterns-backdrop": "++resource++mockup/backdrop/pattern",
2231    "mockup-patterns-base": "++resource++mockup/base/pattern",
2232    "mockup-patterns-contentloader": "++resource++mockup/contentloader/pattern",
2233    "mockup-patterns-cookietrigger": "++resource++mockup/cookietrigger/pattern",
2234    "mockup-patterns-datatables": "++resource++mockup/datatables/pattern",
2235    "mockup-patterns-filemanager": "++resource++mockup/filemanager/pattern",
2236    "mockup-patterns-filemanager-url": "++resource++mockup/filemanager",
2237    "mockup-patterns-formautofocus": "++resource++mockup/formautofocus/pattern",
2238    "mockup-patterns-formunloadalert": "++resource++mockup/formunloadalert/pattern",
2239    "mockup-patterns-inlinevalidation": "++resource++mockup/inlinevalidation/pattern",
2240    "mockup-patterns-livesearch": "++resource++mockup/livesearch/pattern",
2241    "mockup-patterns-markspeciallinks": "++resource++mockup/markspeciallinks/pattern",
2242    "mockup-patterns-modal": "++resource++mockup/modal/pattern",
2243    "mockup-patterns-moment": "++resource++mockup/moment/pattern",
2244    "mockup-patterns-navigationmarker": "++resource++mockup/navigationmarker/pattern",
2245    "mockup-patterns-pickadate": "++resource++mockup/pickadate/pattern",
2246    "mockup-patterns-preventdoublesubmit": "++resource++mockup/preventdoublesubmit/pattern",
2247    "mockup-patterns-querystring": "++resource++mockup/querystring/pattern",
2248    "mockup-patterns-recurrence": "++resource++mockup/recurrence/pattern",
2249    "mockup-patterns-relateditems-upload": "++resource++mockup/relateditems/upload",
2250    "mockup-patterns-relateditems": "++resource++mockup/relateditems/pattern",
2251    "mockup-patterns-relateditems-url": "++resource++mockup/relateditems",
2252    "mockup-patterns-resourceregistry": "++resource++mockup/resourceregistry/pattern",
2253    "mockup-patterns-resourceregistry-url": "++resource++mockup/resourceregistry",
2254    "mockup-patterns-select2": "++resource++mockup/select2/pattern",
2255    "mockup-patterns-sortable": "++resource++mockup/sortable/pattern",
2256    "mockup-patterns-structure": "++resource++mockup/structure/pattern",
2257    "mockup-patterns-structure-url": "++resource++mockup/structure",
2258    "mockup-patterns-structureupdater": "++resource++mockup/structure/pattern-structureupdater",
2259    "mockup-patterns-textareamimetypeselector": "++resource++mockup/textareamimetypeselector/pattern",
2260    "mockup-patterns-texteditor": "++resource++mockup/texteditor/pattern",
2261    "mockup-patterns-thememapper": "++resource++mockup/thememapper/pattern",
2262    "mockup-patterns-thememapper-url": "++resource++mockup/thememapper",
2263    "mockup-patterns-tinymce": "++resource++mockup/tinymce/pattern",
2264    "mockup-patterns-tinymce-url": "++resource++mockup/tinymce",
2265    "mockup-patterns-toggle": "++resource++mockup/toggle/pattern",
2266    "mockup-patterns-tooltip": "++resource++mockup/tooltip/pattern",
2267    "mockup-patterns-tree": "++resource++mockup/tree/pattern",
2268    "mockup-patterns-upload": "++resource++mockup/upload/pattern",
2269    "mockup-patterns-upload-url": "++resource++mockup/upload",
2270    "mockup-router": "++resource++mockupjs/router",
2271    "mockup-ui-url": "++resource++mockupjs/ui",
2272    "mockup-utils": "++resource++mockupjs/utils",
2273    "modernizr-csspositionsticky": "++plone++patternslib/components/modernizr/feature-detects/css-positionsticky",
2274    "modernizr": "++plone++patternslib/components/modernizr/modernizr",
2275    "moment-timezone-data": "++plone++patternslib/components/patternslib/src/pat/calendar/moment-timezone-with-data-2010-2020",
2276    "moment-timezone": "++plone++patternslib/components/moment-timezone/moment-timezone",
2277    "moment": "++plone++static/components/moment/min/moment.min",
2278    "moment-url": "++plone++static/components/moment/locale",
2279    "outlayer": "++plone++patternslib/components/outlayer/outlayer",
2280    "pat-ajax": "++plone++patternslib/components/patternslib/src/pat/ajax/ajax",
2281    "pat-auto-scale": "++plone++patternslib/components/patternslib/src/pat/auto-scale/auto-scale",
2282    "pat-auto-submit": "++plone++patternslib/components/patternslib/src/pat/auto-submit/auto-submit",
2283    "pat-auto-suggest": "++plone++patternslib/components/patternslib/src/pat/auto-suggest/auto-suggest",
2284    "pat-base": "++plone++patternslib/components/patternslib/src/core/base",
2285    "pat-breadcrumbs": "++plone++patternslib/components/patternslib/src/pat/breadcrumbs/breadcrumbs",
2286    "pat-bumper": "++plone++patternslib/components/patternslib/src/pat/bumper/bumper",
2287    "pat-checked-flag": "++plone++patternslib/components/patternslib/src/pat/checked-flag/checked-flag",
2288    "pat-checklist": "++plone++patternslib/components/patternslib/src/pat/checklist/checklist",
2289    "pat-clone": "++plone++patternslib/components/patternslib/src/pat/clone/clone",
2290    "pat-collapsible": "++plone++patternslib/components/patternslib/src/pat/collapsible/collapsible",
2291    "pat-colour-picker": "++plone++patternslib/components/patternslib/src/pat/colour-picker/colour-picker",
2292    "pat-compat": "++plone++patternslib/components/patternslib/src/core/compat",
2293    "pat-datagridfield": "++resource++collective.z3cform.datagridfield/datagridfield",
2294    "pat-date-picker": "++plone++patternslib/components/patternslib/src/pat/date-picker/date-picker",
2295    "pat-date-picker-url": "++plone++patternslib/components/patternslib/src/pat/date-picker",
2296    "pat-datetime-picker": "++plone++patternslib/components/patternslib/src/pat/datetime-picker/datetime-picker",
2297    "pat-depends": "++plone++patternslib/components/patternslib/src/pat/depends/depends",
2298    "pat-depends_parse": "++plone++patternslib/components/patternslib/src/lib/depends_parse",
2299    "pat-dependshandler": "++plone++patternslib/components/patternslib/src/lib/dependshandler",
2300    "pat-equaliser": "++plone++patternslib/components/patternslib/src/pat/equaliser/equaliser",
2301    "pat-expandable": "++plone++patternslib/components/patternslib/src/pat/expandable-tree/expandable-tree",
2302    "pat-focus": "++plone++patternslib/components/patternslib/src/pat/focus/focus",
2303    "pat-form-state": "++plone++patternslib/components/patternslib/src/pat/form-state/form-state",
2304    "pat-forward": "++plone++patternslib/components/patternslib/src/pat/forward/forward",
2305    "pat-gallery": "++plone++patternslib/components/patternslib/src/pat/gallery/gallery",
2306    "pat-gallery-url": "++plone++patternslib/components/patternslib/src/pat/gallery",
2307    "pat-grid": "++plone++patternslib/components/patternslib/src/pat/grid/grid",
2308    "pat-htmlparser": "++plone++patternslib/components/patternslib/src/lib/htmlparser",
2309    "pat-image-crop": "++plone++patternslib/components/patternslib/src/pat/image-crop/image-crop",
2310    "pat-inject": "++plone++patternslib/components/patternslib/src/pat/inject/inject",
2311    "pat-input-change-events": "++plone++patternslib/components/patternslib/src/lib/input-c
2311hange-events",
2312    "pat-jquery-ext": "++plone++patternslib/components/patternslib/src/core/jquery-ext",
2313    "pat-leaflet": "++plone++patternslib/components/pat-leaflet/src/pat-leaflet",
2314    "pat-legend": "++plone++patternslib/components/patternslib/src/pat/legend/legend",
2315    "pat-logger": "++plone++patternslib/components/patternslib/src/core/logger",
2316    "pat-markdown": "++plone++patternslib/components/patternslib/src/pat/markdown/markdown",
2317    "pat-masonry": "++plone++patternslib/components/patternslib/src/pat/masonry/masonry",
2318    "pat-menu": "++plone++patternslib/components/patternslib/src/pat/menu/menu",
2319    "pat-mockup-parser": "++plone++patternslib/components/patternslib/src/core/mockup-parser",
2320    "pat-modal": "++plone++patternslib/components/patternslib/src/pat/modal/modal",
2321    "pat-navigation": "++plone++patternslib/components/patternslib/src/pat/navigation/navigation",
2322    "pat-parser": "++plone++patternslib/components/patternslib/src/core/parser",
2323    "pat-placeholder": "++plone++patternslib/components/patternslib/src/pat/placeholder/placeholder",
2324    "pat-registry": "++plone++patternslib/components/patternslib/src/core/registry",
2325    "pat-remove": "++plone++patternslib/components/patternslib/src/core/remove",
2326    "pat-scroll": "++plone++patternslib/components/patternslib/src/pat/scroll/scroll",
2327    "pat-selectbox": "++plone++patternslib/components/patternslib/src/pat/selectbox/selectbox",
2328    "pat-slides": "++plone++patternslib/components/patternslib/src/pat/slides/slides",
2329    "pat-slideshow-builder": "++plone++patternslib/components/patternslib/src/pat/slideshow-builder/slideshow-builder",
2330    "pat-stacks": "++plone++patternslib/components/patternslib/src/pat/stacks/stacks",
2331    "pat-sticky": "++plone++patternslib/components/patternslib/src/pat/sticky/sticky",
2332    "pat-store": "++plone++patternslib/components/patternslib/src/core/store",
2333    "pat-subform": "++plone++patternslib/components/patternslib/src/pat/subform/subform",
2334    "pat-switch": "++plone++patternslib/components/patternslib/src/pat/switch/switch",
2335    "pat-utils": "++plone++patternslib/components/patternslib/src/core/utils",
2336    "pat-validation": "++plone++patternslib/components/patternslib/src/pat/validation/validation",
2337    "pat-zoom": "++plone++patternslib/components/patternslib/src/pat/zoom/zoom",
2338    "patterns": "++resource++patterns",
2339    "photoswipe-ui": "++plone++patternslib/components/photoswipe/dist/photoswipe-ui-default",
2340    "photoswipe": "++plone++patternslib/components/photoswipe/dist/photoswipe",
2341    "picker": "++plone++static/components/pickadate/lib/picker",
2342    "picker.date": "++plone++static/components/pickadate/lib/picker.date",
2343    "picker.time": "++plone++static/components/pickadate/lib/picker.time",
2344    "pikaday": "++plone++patternslib/components/pikaday/pikaday",
2345    "plone-app-discussion": "++plone++plone.app.discussion.javascripts/comments",
2346    "plone-app-event": "++plone++plone.app.event/event",
2347    "plone-base": "++resource++plone-base",
2348    "plone-datatables": "++resource++plone-datatables",
2349    "plone-editor-tools": "++resource++plone-editor-tools",
2350    "plone-logged-in": "++resource++plone-logged-in",
2351    "plone-moment": "++resource++plone-moment",
2352    "plone-patterns-portletmanager": "++resource++manage-portlets",
2353    "plone-patterns-toolbar": "++resource++mockup/toolbar/pattern",
2354    "plone-tinymce": "++resource++plone-tinymce",
2355    "plone": "++resource++plone",
2356    "prefixfree": "++plone++patternslib/components/prefixfree/prefixfree.min",
2357    "redturtle-gallery": "++plone++redturtle.gallery/js/integration",
2358    "resource-plone-app-jquerytools-dateinput-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.dateinput",
2359    "resource-plone-app-jquerytools-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.overlay",
2360    "resourceregistry": "++plone++static/resourceregistry",
2361    "select2": "++plone++static/components/select2/select2",
2362    "showdown-github": "++plone++patternslib/components/showdown/compressed/extensions/github.min",
2363    "showdown-table": "++plone++patternslib/components/showdown/compressed/extensions/table.min",
2364    "showdown": "++plone++patternslib/components/showdown/compressed/showdown",
2365    "slides": "++plone++patternslib/components/slides/src/slides",
2366    "spectrum": "++plone++patternslib/components/spectrum/spectrum",
2367    "stickyfill": "++plone++patternslib/components/Stickyfill/dist/stickyfill",
2368    "text": "++plone++static/components/requirejs-text/text",
2369    "thememapper": "++plone++static/thememapper",
2370    "tinymce-advlist": "++plone++static/components/tinymce-builded/js/tinymce/plugins/advlist/plugin",
2371    "tinymce-anchor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/anchor/plugin",
2372    "tinymce-autolink": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autolink/plugin",
2373    "tinymce-autoresize": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autoresize/plugin",
2374    "tinymce-autosave": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autosave/plugin",
2375    "tinymce-bbcode": "++plone++static/components/tinymce-builded/js/tinymce/plugins/bbcode/plugin",
2376    "tinymce-charmap": "++plone++static/components/tinymce-builded/js/tinymce/plugins/charmap/plugin",
2377    "tinymce-code": "++plone++static/components/tinymce-builded/js/tinymce/plugins/code/plugin",
2378    "tinymce-colorpicker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/colorpicker/plugin",
2379    "tinymce-compat3x": "++plone++static/components/tinymce-builded/js/tinymce/plugins/compat3x/plugin",
2380    "tinymce-contextmenu": "++plone++static/components/tinymce-builded/js/tinymce/plugins/contextmenu/plugin",
2381    "tinymce-directionality": "++plone++static/components/tinymce-builded/js/tinymce/plugins/directionality/plugin",
2382    "tinymce-emoticons": "++plone++static/components/tinymce-builded/js/tinymce/plugins/emoticons/plugin",
2383    "tinymce-fullpage": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullpage/plugin",
2384    "tinymce-fullscreen": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullscreen/plugin",
2385    "tinymce-hr": "++plone++static/components/tinymce-builded/js/tinymce/plugins/hr/plugin",
2386    "tinymce-image": "++plone++static/components/tinymce-builded/js/tinymce/plugins/image/plugin",
2387    "tinymce-importcss": "++plone++static/components/tinymce-builded/js/tinymce/plugins/importcss/plugin",
2388    "tinymce-insertdatetime": "++plone++static/components/tinymce-builded/js/tinymce/plugins/insertdatetime/plugin",
2389    "tinymce-legacyoutput": "++plone++static/components/tinymce-builded/js/tinymce/plugins/legacyoutput/plugin",
2390    "tinymce-link": "++plone++static/components/tinymce-builded/js/tinymce/plugins/link/plugin",
2391    "tinymce-lists": "++plone++static/components/tinymce-builded/js/tinymce/plugins/lists/plugin",
2392    "tinymce-media": "++plone++static/components/tinymce-builded/js/tinymce/plugins/media/plugin",
2393    "tinymce-modern-theme": "++plone++static/components/tinymce-builded/js/tinymce/themes/modern/theme",
2394    "tinymce-nonbreaking": "++plone++static/components/tinymce-builded/js/tinymce/plugins/nonbreaking/plugin",
2395    "tinymce-noneditable": "++plone++static/components/tinymce-builded/js/tinymce/plugins/noneditable/plugin",
2396    "tinymce-pagebreak": "++plone++static/components/tinymce-builded/js/tinymce/plugins/pagebreak/plugin",
2397    "tinymce-paste": "++plone++static/components/tinymce-builded/js/tinymce/plugins/paste/plugin",
2398    "tinymce-preview": "++plone++static/components/tinymce-builded/js/tinymce/plugins/preview/plugin",
2399    "tinymce-print": "++plone++static/components/tinymce-builded/js/tinymce/plugins/print/plugin",
2400    "tinymce-save": "++plone++static/components/tinymce-builded/js/tinymce/plugins/save/plugin",
2401    "tinymce-searchreplace": "++plone++static/components/tinymce-builded/js/tinymce/plugins/searchreplace/plugin",
2402    "tinymce-spellchecker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/spellchecker/plugin",
2403    "tinymce-tabfocus": "++plone++static/components/tinymce-builded/js/tinymce/plugins/tabfocus/plugin",
2404    "tinymce-table": "++plone++static/components/tinymce-builded/js/tinymce/plugins/table/plugin",
2405    "tinymce-template": "++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin",
2406    "tinymce-textcolor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textcolor/plugin",
2407    "tinymce-textpattern": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textpattern/plugin",
2408    "tinymce-visualblocks": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualblocks/plugin",
2409    "tinymce-visualchars": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualchars/plugin",
2410    "tinymce-wordcount": "++plone++static/components/tinymce-builded/js/tinymce/plugins/wordcount/plugin",
2411    "tinymce": "++plone++static/components/tinymce-builded/js/tinymce/tinymce",
2412    "translate": "++resource++mockupjs/i18n-wrapper",
2413    "underscore": "++plone++static/components/underscore/underscore",
2414    "validate": "++plone++patternslib/components/validate/validate"
2415},
2416    shim: {
2417        "backbone": {
2418            exports: "window.Backbone",
2419            deps: ["underscore", "jquery"]
2420        },
2421        "backbone.paginator": {
2422            exports: "window.Backbone.Paginator",
2423            deps: ["backbone"]
2424        },
2425        "bootstrap-alert": {
2426            deps: ["jquery"]
2427        },
2428        "bootstrap-collapse": {
2429            exports: "window.jQuery.fn.collapse.Constructor",
2430            deps: ["jquery"]
2431        },
2432        "bootstrap-dropdown": {
2433            deps: ["jquery"]
2434        },
2435        "bootstrap-tooltip": {
2436            deps: ["jquery"]
2437        },
2438        "bootstrap-transition": {
2439            exports: "window.jQuery.support.transition",
2440            deps: ["jquery"]
2441        },
2442        "jcrop": {
2443            deps: ["jquery"]
2444        },
2445        "jqtree-contextmenu": {
2446            deps: ["jqtree"]
2447        },
2448        "jqtree": {
2449            deps: ["jquery"]
2450        },
2451        "jquery.browser": {
2452            deps: ["jquery"]
2453        },
2454        "jquery.cookie": {
2455            deps: ["jquery"]
2456        },
2457        "jquery.event.drag": {
2458            deps: ["jquery"]
2459        },
2460        "jquery.event.drop": {
2461            exports: "$.drop",
2462            deps: ["jquery"]
2463        },
2464        "jquery.placeholder": {
2465            deps: ["jquery"]
2466        },
2467        "jquery.recurrenceinput": {
2468            deps: ["jquery", "resource-plone-app-jquerytools-js", "resource-plone-app-jquerytools-dateinput-js", "jquery.tmpl"]
2469        },
2470        "jquery.tmpl": {
2471            deps: ["jquery"]
2472        },
2473        "leaflet-awesomemarkers": {
2474            deps: ["leaflet"]
2475        },
2476        "leaflet-fullscreen": {
2477            deps: ["leaflet"]
2478        },
2479        "leaflet-geosearch-bing": {
2480            deps: ["leaflet-geosearch"]
2481        },
2482        "leaflet-geosearch-esri": {
2483            deps: ["leaflet-geosearch"]
2484        },
2485        "leaflet-geosearch-google": {
2486            deps: ["leaflet-geosearch"]
2487        },
2488        "leaflet-geosearch-openstreetmap": {
2489            deps: ["leaflet-geosearch"]
2490        },
2491        "leaflet-geosearch": {
2492            deps: ["leaflet"]
2493        },
2494        "leaflet-locatecontrol": {
2495            deps: ["leaflet"]
2496        },
2497        "leaflet-markercluster": {
2498            deps: ["leaflet"]
2499        },
2500        "leaflet-minimap": {
2501            deps: ["leaflet"]
2502        },
2503        "leaflet-simplemarkers": {
2504            deps: ["leaflet"]
2505        },
2506        "leaflet-sleep": {
2507            deps: ["leaflet"]
2508        },
2509        "modernizr-csspositionsticky": {
2510            deps: ["modernizr"]
2511        },
2512        "pat-leaflet": {
2513            deps: ["leaflet"]
2514        },
2515        "picker.date": {
2516            deps: ["picker"]
2517        },
2518        "picker.time": {
2519            deps: ["picker"]
2520        },
2521        "resource-plone-app-jquerytools-dateinput-js": {
2522            deps: ["jquery"]
2523        },
2524        "resource-plone-app-jquerytools-js": {
2525            deps: ["jquery"]
2526        },
2527        "showdown-github": {
2528            deps: ["showdown"]
2529        },
2530        "showdown-table": {
2531            deps: ["showdown"]
2532        },
2533        "spectrum": {
2534            deps: ["jquery"]
2535        },
2536        "tinymce-advlist": {
2537            deps: ["tinymce"]
2538        },
2539        "tinymce-anchor": {
2540            deps: ["tinymce"]
2541        },
2542        "tinymce-autolink": {
2543            deps: ["tinymce"]
2544        },
2545        "tinymce-autoresize": {
2546            deps: ["tinymce"]
2547        },
2548        "tinymce-autosave": {
2549            deps: ["tinymce"]
2550        },
2551        "tinymce-bbcode": {
2552            deps: ["tinymce"]
2553        },
2554        "tinymce-charmap": {
2555            deps: ["tinymce"]
2556        },
2557        "tinymce-code": {
2558            deps: ["tinymce"]
2559        },
2560        "tinymce-colorpicker": {
2561            deps: ["tinymce"]
2562        },
2563        "tinymce-compat3x": {
2564            deps: ["tinymce"]
2565        },
2566        "tinymce-contextmenu": {
2567            deps: ["tinymce"]
2568        },
2569        "tinymce-directionality": {
2570            deps: ["tinymce"]
2571        },
2572        "tinymce-emoticons": {
2573            deps: ["tinymce"]
2574        },
2575        "tinymce-fullpage": {
2576            deps: ["tinymce"]
2577        },
2578        "tinymce-fullscreen": {
2579            deps: ["tinymce"]
2580        },
2581        "tinymce-hr": {
2582            deps: ["tinymce"]
2583        },
2584        "tinymce-image": {
2585            deps: ["tinymce"]
2586        },
2587        "tinymce-importcss": {
2588            deps: ["tinymce"]
2589        },
2590        "tinymce-insertdatetime": {
2591            deps: ["tinymce"]
2592        },
2593        "tinymce-legacyoutput": {
2594            deps: ["tinymce"]
2595        },
2596        "tinymce-link": {
2597            deps: ["tinymce"]
2598        },
2599        "tinymce-lists": {
2600            deps: ["tinymce"]
2601        },
2602        "tinymce-media": {
2603            deps: ["tinymce"]
2604        },
2605        "tinymce-modern-theme": {
2606            deps: ["tinymce"]
2607        },
2608        "tinymce-nonbreaking": {
2609            deps: ["tinymce"]
2610        },
2611        "tinymce-noneditable": {
2612            deps: ["tinymce"]
2613        },
2614        "tinymce-pagebreak": {
2615            deps: ["tinymce"]
2616        },
2617        "tinymce-paste": {
2618            deps: ["tinymce"]
2619        },
2620        "tinymce-preview": {
2621            deps: ["tinymce"]
2622        },
2623        "tinymce-print": {
2624            deps: ["tinymce"]
2625        },
2626        "tinymce-save": {
2627            deps: ["tinymce"]
2628        },
2629        "tinymce-searchreplace": {
2630            deps: ["tinymce"]
2631        },
2632        "tinymce-spellchecker": {
2633            deps: ["tinymce"]
2634        },
2635        "tinymce-tabfocus": {
2636            deps: ["tinymce"]
2637        },
2638        "tinymce-table": {
2639            deps: ["tinymce"]
2640        },
2641        "tinymce-template": {
2642            deps: ["tinymce"]
2643        },
2644        "tinymce-textcolor": {
2645            deps: ["tinymce"]
2646        },
2647        "tinymce-textpattern": {
2648            deps: ["tinymce"]
2649        },
2650        "tinymce-visualblocks": {
2651            deps: ["tinymce"]
2652        },
2653        "tinymce-visualchars": {
2654            deps: ["tinymce"]
2655        },
2656        "tinymce-wordcount": {
2657            deps: ["tinymce"]
2658        },
2659        "tinymce": {
2660            exports: "window.tinyMCE",
2661            init: function () { this.tinyMCE.DOM.events.domLoaded = true; return this.tinyMCE; }
2662        },
2663        "underscore": {
2664            exports: "window._"
2665        }
2666    },
2667    optimize: 'uglify',
2668    wrapShim: true
2669});
2670define("mockup-patterns-inlinevalidation",["jquery","pat-base"],function(a,e){"use strict";return e.extend({name:"inlinevalidation",trigger:".pat-inlinevalidation",parser:"mockup",render_error:function(e,t){var i=a("div.fieldErrorBox",e);""!==t?(e.addClass("error"),i.html(t)):(e.removeClass("error"),i.html(""))},render_error_bootstrap:function(e,t){var i=a("input",e),e=a(".invali
2670d-feedback",e);""!==t?(i.addClass("is-invalid"),e.length?e.html(t):a('<div class="invalid-feedback">'+t+"</div>").insertAfter(i)):(i.removeClass("is-invalid"),e.length&&e.remove())},append_url_path:function(e,t){var i,n=e.split(/\?/),o=n[0];for("/"!==o[o.length-1]&&(o+="/"),o+=t,i=1;i<n.length;i+=1)o+="?"+n[i];return o},queue:function(e,t){void 0===t&&(t=e,e="fx"),a(window).queue(e,t)},validate_archetypes_field:function(e){var t=a(e),i=t.closest(".field"),n=i.attr("data-uid"),o=i.attr("data-fieldname"),e=t.val();t.prop("multiple")&&null===e&&(e=a([]).serialize());var s=a.param({uid:n,fname:o,value:e},!0);i&&n&&o&&this.queue(a.proxy(function(t){a.ajax({type:"POST",url:a("base").attr("href")+"/at_validate_field?"+s,iframe:!1,success:a.proxy(function(e){this.render_error(i,e.errmsg),t()},this),error:function(){t()},dataType:"json"})},this))},validate_formlib_field:function(e){var i=a(e).closest(".field"),n=i.closest("form").clone(),o=i.attr("data-fieldname");n.find("input[type=file]").remove(),this.queue(a.proxy(function(t){n.ajaxSubmit({url:this.append_url_path(n.attr("action"),"@@formlib_validate_field"),data:{fname:o},iframe:!1,success:a.proxy(function(e){this.render_error(i,e.errmsg),t()},this),error:function(){t()},dataType:"json"})},this))},validate_z3cform_field:function(e){var t=a(e),i=t.closest(".field"),e=i.closest("form"),n=e.clone(),o=t.closest("fieldset").attr("data-fieldset"),s=i.attr("data-fieldname");a.each(a("select",e),function(e,t){a('select[name="'+t.name+'"]',n).val(a(t).val())}),n.find("input[type=file]").remove(),s&&this.queue(a.proxy(function(t){n.ajaxSubmit({url:this.append_url_path(n.attr("action"),"@@z3cform_validate_field"),data:{fname:s,fset:o},iframe:!1,success:a.proxy(function(e){i.hasClass("form-group")?this.render_error_bootstrap(i,e.errmsg):this.render_error(i,e.errmsg),t()},this),error:function(){t()},dataType:"json"})},this))},init:function(){this.$el.find('input[type="text"], input[type="password"], input[type="checkbox"], select, textarea').on("blur",a.proxy(function(e){"archetypes"===this.options.type?this.validate_archetypes_field(e.target):"z3c.form"===this.options.type?this.validate_z3cform_field(e.target):"formlib"===this.options.type&&this.validate_formlib_field(e.target)},this))}})}),define("mockup-utils",["jquery"],function(l){"use strict";function e(e){var i=this;return i.className="plone-loader",i.options=l.extend({},{backdrop:null,zIndex:10005},e=e||{}),i.init=function(){i.$el=l("."+i.className),0===i.$el.length&&(i.$el=l("<div><div></div></div>"),i.$el.addClass(i.className).hide().appendTo("body"))},i.show=function(e){i.init(),i.$el.show();var t=i.options.zIndex;"function"==typeof t?t=Math.max(t(),10005):(t=10005,l(".plone-modal-wrapper,.plone-modal-backdrop").each(function(){t=Math.max(t,l(this).css("zIndex")||10005)}),t+=1),i.$el.css("zIndex",t),void 0===e&&(e=!0),i.options.backdrop&&(i.options.backdrop.closeOnClick=e,i.options.backdrop.closeOnEsc=e,i.options.backdrop.init(),i.options.backdrop.show())},i.hide=function(){i.init(),i.$el.hide()},i}function n(e){return(e=void 0===e?"id":e)+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var t={get:function(e){if(window.localStorage){e=window.localStorage[e];return"string"==typeof e?JSON.parse(e):void 0}},set:function(e,t){window.localStorage&&(window.localStorage[e]=JSON.stringify(t))}};return{bool:function(e){return"string"==typeof e&&(e=l.trim(e).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(e)},escapeHTML:function(e){return l("<div/>").text(e).html()},removeHTML:function(e){return e.replace(/<[^>]+>/gi,"")},featureSupport:{dragAndDrop:function(){return"draggable"in document.createElement("span")},fileApi:function(){return"undefined"!=typeof FileReader},history:function(){return!(!window.history||!window.history.pushState)}},generateId:n,getAuthenticator:function(){var e=l('input[name="_authenticator"]');return 0===e.length?0<(e=l('a[href*="_authenticator"]')).length?e.attr("href").split("_authenticator=")[1]:"":e.val()},getWindow:function(){var e=window;return e=e.parent!==window?e.parent:e},Loading:e,loading:new e,parseBodyTag:function(e){return l(/<body[^>]*>[^]*<\/body>/im.exec(e)[0].replace("<body","<div").replace("</body>","</div>")).eq(0).html()},QueryHelper:function(e){var r=this;return r.options=l.extend({},{pattern:null,vocabularyUrl:null,searchParam:"SearchableText",pathOperator:"plone.app.querystring.operation.string.path",attributes:["UID","Title","Description","getURL","portal_type"],batchSize:10,baseCriteria:[],sort_on:"is_folderish",sort_order:"reverse",pathDepth:1},e),r.pattern=r.options.pattern,void 0!==r.pattern&&null!==r.pattern||(r.pattern={browsing:!1,basePath:"/"}),r.options.url&&!r.options.vocabularyUrl?r.options.vocabularyUrl=r.options.url:r.pattern.vocabularyUrl&&(r.options.vocabularyUrl=r.pattern.vocabularyUrl),r.valid=Boolean(r.options.vocabularyUrl),r.getBatch=function(e){return{page:e||1,size:r.options.batchSize}},r.getCurrentPath=function(){var e=r.pattern,t=r.currentPath||e.currentPath,t=t="function"==typeof t?t():t;return t=t||(e.basePath||e.options.basePath||"/")},r.getCriterias=function(e,t){var i=[];return(t=l.extend({},{useBaseCriteria:!0,additionalCriterias:[]},t=void 0===t?{}:t)).useBaseCriteria&&(i=r.options.baseCriteria.slice(0)),e&&i.push({i:r.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:e+="*"}),t.searchPath?i.push({i:"path",o:r.options.pathOperator,v:t.searchPath+"::"+r.options.pathDepth}):r.pattern.browsing&&i.push({i:"path",o:r.options.pathOperator,v:r.getCurrentPath()+"::"+r.options.pathDepth}),i=i.concat(t.additionalCriterias)},r.getQueryData=function(e,t){e={query:JSON.stringify({criteria:r.getCriterias(e),sort_on:r.options.sort_on,sort_order:r.options.sort_order}),attributes:JSON.stringify(r.options.attributes)};return t&&(e.batch=JSON.stringify(r.getBatch(t))),e},r.getUrl=function(){var e=r.options.vocabularyUrl;return-1===e.indexOf("?")?e+="?":e+="&",e+l.param(r.getQueryData())}
2670,r.selectAjax=function(){return{url:r.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(e,t){return r.getQueryData(e,t)},results:function(e,t){t=10*t<e.total;return{results:e.results,more:t}}}},r.search=function(e,t,i,n,o,s){void 0===s&&(s="GET");var a=[];(a=(o=void 0===o?!0:o)?r.options.baseCriteria.slice(0):a).push({i:e,o:t,v:i});a={query:JSON.stringify({criteria:a}),attributes:JSON.stringify(r.options.attributes)};l.ajax({url:r.options.vocabularyUrl,dataType:"JSON",data:a,type:s,success:n})},r},setId:function(e,t){void 0===t&&(t="id");var i=void 0===(i=e.attr("id"))?n(t):i.replace(/\./g,"-");return e.attr("id",i),i},storage:t,createElementFromHTML:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}}}),define("mockup-i18n",["jquery"],function(n){"use strict";return function(){var r=this;r.baseUrl=n("body").attr("data-i18ncatalogurl"),r.currentLanguage=n("html").attr("lang")||"en",1<r.currentLanguage.split("-").length&&(r.currentLanguage=r.currentLanguage.split("-")[0]+"_"+r.currentLanguage.split("-")[1].toUpperCase()),r.storage=null,r.catalogs={},r.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(r.storage=window.localStorage)}catch(e){}r.configure=function(e){for(var t in e)r[t]=e[t]},r._setCatalog=function(e,t,i){e in r.catalogs||(r.catalogs[e]={}),r.catalogs[e][t]=i},r._storeCatalog=function(e,t,i){t=e+"-"+t;null!==r.storage&&null!==i&&(r.storage.setItem(t,JSON.stringify(i)),r.storage.setItem(t+"-updated",Date.now()))},r.getUrl=function(e,t){return r.baseUrl+"?domain="+e+"&language="+t},r.loadCatalog=function(t,i){if(void 0===i&&(i=r.currentLanguage),null!==r.storage){var e=t+"-"+i;if(e in r.storage&&Date.now()-parseInt(r.storage.getItem(e+"-updated"),10)<r.ttl){e=JSON.parse(r.storage.getItem(e));return void r._setCatalog(t,i,e)}}r.baseUrl&&n.getJSON(r.getUrl(t,i),function(e){null!==e&&(r._setCatalog(t,i,e),r._storeCatalog(t,i,e))})},r.MessageFactory=function(s,a){return a=a||r.currentLanguage,function(e,t){var i,n,o=s in r.catalogs&&a in r.catalogs[s]&&e in r.catalogs[s][a]?r.catalogs[s][a][e]:e;if(t)for(n in t)t.hasOwnProperty(n)&&(i=new RegExp("\\$\\{"+n+"\\}","g"),o=o.replace(i,t[n]));return o}}}}),define("translate",["mockup-i18n"],function(n){"use strict";var o=null;return function(e,t){var i;return null===o&&((i=new n).loadCatalog("widgets"),o=i.MessageFactory("widgets")),o(e,t)}}),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):"object"==typeof window?window.Picker=e(jQuery):this.Picker=e(jQuery)}(function(m){var n=m(window),g=m(document),o=m(document.documentElement),v=null!=document.documentElement.style.transition;function b(o,e,t,i){if(!o)return b;function n(){return this.start()}var s=!1,r={id:o.id||"P"+Math.abs(~~(Math.random()*new Date)),handlingOpen:!1},l=t?m.extend(!0,{},t.defaults,i):i||{},a=m.extend({},b.klasses(),l.klass),c=m(o),h=n.prototype={constructor:n,$node:c,start:function(){return r&&r.start?h:(r.methods={},r.start=!0,r.open=!1,r.type=o.type,o.autofocus=o==k(),o.readOnly=!l.editable,o.id=o.id||r.id,"text"!=o.type&&(o.type="text"),h.component=new t(h,l),h.$root=m('<div class="'+a.picker+'" id="'+o.id+'_root" />'),S(h.$root[0],"hidden",!0),h.$holder=m(d()).appendTo(h.$root),u(),l.formatSubmit&&function(){var e;!0===l.hiddenName?(e=o.name,o.name=""):e=(e=["string"==typeof l.hiddenPrefix?l.hiddenPrefix:"","string"==typeof l.hiddenSuffix?l.hiddenSuffix:"_submit"])[0]+o.name+e[1];h._hidden=m('<input type=hidden name="'+e+'"'+(c.data("value")||o.value?' value="'+h.get("select",l.formatSubmit)+'"':"")+">")[0],c.on("change."+r.id,function(){h._hidden.value=o.value?h.get("select",l.formatSubmit):""})}(),function(){c.data(e,h).addClass(a.input).val(c.data("value")?h.get("select",l.format):o.value).on("focus."+r.id+" click."+r.id,function(e){e.preventDefault(),h.open()}).on("mousedown",function(){r.handlingOpen=!0;var e=function(){setTimeout(function(){m(document).off("mouseup",e),r.handlingOpen=!1},0)};m(document).on("mouseup",e)}
vendor: 17,810 bytes, line 2670
2670),l.editable||c.on("keydown."+r.id,f);S(o,{haspopup:!0,expanded:!1,readonly:!1,owns:o.id+"_root"})}(),l.containerHidden?m(l.containerHidden).append(h._hidden):c.after(h._hidden),l.container?m(l.container).append(h.$root):c.after(h.$root),h.on({start:h.component.onStart,render:h.component.onRender,stop:h.component.onStop,open:h.component.onOpen,close:h.component.onClose,set:h.component.onSet}).on({start:l.onStart,render:l.onRender,stop:l.onStop,open:l.onOpen,close:l.onClose,set:l.onSet}),s=function(e){var t,i="position";e.currentStyle?t=e.currentStyle[i]:window.getComputedStyle&&(t=getComputedStyle(e)[i]);return"fixed"==t}(h.$holder[0]),o.autofocus&&h.open(),h.trigger("start").trigger("render"))},render:function(e){return e?(h.$holder=m(d()),u(),h.$root.html(h.$holder)):h.$root.find("."+a.box).html(h.component.nodes(r.open)),h.trigger("render")},stop:function(){return r.start&&(h.close(),h._hidden&&h._hidden.parentNode.removeChild(h._hidden),h.$root.remove(),c.removeClass(a.input).removeData(e),setTimeout(function(){c.off("."+r.id)},0),o.type=r.type,o.readOnly=!1,h.trigger("stop"),r.methods={},r.start=!1),h},open:function(e){return r.open?h:(c.addClass(a.active),S(o,"expanded",!0),setTimeout(function(){h.$root.addClass(a.opened),S(h.$root[0],"hidden",!1)},0),!1!==e&&(r.open=!0,s&&m("body").css("overflow","hidden").css("padding-right","+="+y()),s&&v?h.$holder.find("."+a.frame).one("transitionend",function(){h.$holder.eq(0).focus()}):setTimeout(function(){h.$holder.eq(0).focus()},0),g.on("click."+r.id+" focusin."+r.id,function(e){var t;r.handlingOpen||(t=w(e,o),e.isSimulated||t==o||t==document||3==e.which||h.close(t===h.$holder[0]))}).on("keydown."+r.id,function(e){var t=e.keyCode,i=h.component.key[t],n=w(e,o);27==t?h.close(!0):n!=h.$holder[0]||!i&&13!=t?m.contains(h.$root[0],n)&&13==t&&(e.preventDefault(),n.click()):(e.preventDefault(),i?b._.trigger(h.component.key.go,h,[b._.trigger(i)]):h.$root.find("."+a.highlighted).hasClass(a.disabled)||(h.set("select",h.component.item.highlight),l.closeOnSelect&&h.close(!0)))})),h.trigger("open"))},close:function(e){return e&&(l.editable?o.focus():(h.$holder.off("focus.toOpen").focus(),setTimeout(function(){h.$holder.on("focus.toOpen",p)},0))),c.removeClass(a.active),S(o,"expanded",!1),setTimeout(function(){h.$root.removeClass(a.opened+" "+a.focused),S(h.$root[0],"hidden",!0)},0),r.open?(r.open=!1,s&&m("body").css("overflow","").css("padding-right","-="+y()),g.off("."+r.id),h.trigger("close")):h},clear:function(e){return h.set("clear",null,e)},set:function(e,t,i){var n,o,s=m.isPlainObject(e),a=s?e:{};if(i=s&&m.isPlainObject(t)?t:i||{},e){for(n in s||(a[e]=t),a)o=a[n],n in h.component.item&&(void 0===o&&(o=null),h.component.set(n,o,i)),"select"!=n&&"clear"!=n||!l.updateInput||c.val("clear"==n?"":h.get(n,l.format)).trigger("change");h.render()}return i.muted?h:h.trigger("set",a)},get:function(e,t){if(null!=r[e=e||"value"])return r[e];if("valueSubmit"==e){if(h._hidden)return h._hidden.value;e="value"}if("value"==e)return o.value;if(e in h.component.item){if("string"!=typeof t)return h.component.get(e);e=h.component.get(e);return e?b._.trigger(h.component.formats.toString,h.component,[t,e]):""}},on:function(e,t,i){var n,o,s=m.isPlainObject(e),a=s?e:{};if(e)for(n in s||(a[e]=t),a)o=a[n],r.methods[n=i?"_"+n:n]=r.methods[n]||[],r.methods[n].push(o);return h},off:function(){var e,t=arguments,i=0;for(namesCount=t.length;i<namesCount;i+=1)(e=t[i])in r.methods&&delete r.methods[e];return h},trigger:function(e,t){function i(e){(e=r.methods[e])&&e.map(function(e){b._.trigger(e,h,[t])})}return i("_"+e),i(e),h}};function d(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",h.component.nodes(r.open),a.box),a.wrap),a.frame),a.holder,'tabindex="-1"')}function u(){h.$holder.on({keydown:f,"focus.toOpen":p,blur:function(){c.removeClass(a.target)},focusin:function(e){h.$root.removeClass(a.focused),e.stopPropagation()},"mousedown click":function(e){var t=w(e,o);t!=h.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||m(t).is("input, select, textarea, button, option")||(e.preventDefault(),h.$holder.eq(0).focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=m(this),t=e.data(),i=e.hasClass(a.navDisabled)||e.hasClass(a.disabled),e=(e=k())&&(e.type||e.href?e:null);(i||e&&!m.contains(h.$root[0],e))&&h.$holder.eq(0).focus(),!i&&t.nav?h.set("highlight",h.component.item.highlight,{nav:t.nav}):!i&&"pick"in t?(h.set("select",t.pick),l.closeOnSelect&&h.close(!0)):t.clear?(h.clear(),l.closeOnClear&&h.close(!0)):t.close&&h.close(!0)})}function p(e){e.stopPropagation(),c.addClass(a.target),h.$root.addClass(a.focused),h.open()}function f(e){var t=e.keyCode,i=/^(8|46)$/.test(t);if(27==t)return h.close(!0),!1;(32==t||i||!r.open&&h.component.key[t])&&(e.preventDefault(),e.stopPropagation(),i?h.clear().close():h.open())}return new n}function y(){if(o.height()<=n.height())return 0;var e=m('<div style="visibility:hidden;width:100px" />').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var i=m('<div style="width:100%" />').appendTo(e)[0].offsetWidth;return e.remove(),t-i}function w(e,t){var i=[];return e.path&&(i=e.path),(i=e.originalEvent&&e.originalEvent.path?e.originalEvent.path:i)&&0<i.length?t&&0<=i.indexOf(t)?t:i[0]:e.target}function S(e,t,i){if(m.isPlainObject(t))for(var n in t)s(e,n,t[n]);else s(e,t,i)}function s(e,t,i){e.setAttribute(("role"==t?"":"aria-")+t,i)}function k(){try{return document.activeElement}catch(e){}}return b.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},b._={group:function(e){for(var t,i="",n=b._.trigger(e.min,e);n<=b._.trigger(e.max,e,[n]);n+=e.i)t=b._.trigger(e.item,e,[n]),i+=b._.node(e.node,t[0],t[1],t[2]);return i},node:function(e,t,i,n){return t?"<"+e+(i=i?' class="'+i+'"':"")+(n=n?" "+n:"")+">"+(t=m.isArray(t)?t.join(""):t)+"</"+e+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,i){return"function"==typeof e?e.apply(t,i||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){m.isPlainObject(e)||(e={attribute:t});for(var i in t="",e){var n=("role"==i?"":"aria-")+i,o=e[i];t+=null==o?"":n+'="'+e[i]+'"'}return t}},b.extend=function(n,o){m.fn[n]=function(e,t){var i=this.data(n);return"picker"==e?i:i&&"string"==typeof e?b._.trigger(i[e],i,[t]):this.each(function(){m(this).data(n)||new b(this,n,o,e)})},m.fn[n].defaults=o.defaults},b}),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,f){var t,g=e._;function i(t,i){function e(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction}var n=this,o=t.$node[0],s=o.value,a=t.$node.data("value"),r=a||s,s=a?i.formatSubmit:i.format;n.settings=i,n.$node=t.$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=(i.disable||[]).slice(0),n.item.enable=-(!0===(a=n.item.disable)[0]?a.shift():-1),n.set("min",i.min).set("max",i.max).set("now"),r?n.set("select",r,{format:s,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return e()?-1:1},37:function(){return e()?1:-1},go:function(e){var t=n.item.highlight,t=new Date(t.year,t.month,t.date+e);n.set("highlight",t,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+i.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+i.klass.selectMonth).trigger("focus"))}),t.$root.find("."+i.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+i.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";n.disabled(n.get("now"))&&(e=":not(."+i.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}function n(e,t,i){e=e.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(e)+1),e.length}function o(e){return e.match(/\w+/)[0].length}i.prototype.set=function(t,i,n){var o=this,e=o.item;return null===i?e[t="clear"==t?"select":t]=i:(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return i=o[e](t,i,n)}).pop(),"select"==t?o.set("highlight",e.select,n):"highlight"==t?o.set("view",e.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",e.select,n),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",e.highlight,n))),o},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,t,i){var n;return(t=void 0===t?e:t)==-1/0||t==1/0?n=t:t=f.isPlainObject(t)&&g.isInteger(t.pick)?t.obj:f.isArray(t)?(t=new Date(t[0],t[1],t[2]),g.isDate(t)?t:this.create().obj):g.isInteger(t)||g.isDate(t)?this.normalize(new Date(t),i):this.now(e,t,i),{year:n||t.getFullYear(),month:n||t.getMonth(),date:n||t.getDate(),day:n||t.getDay(),obj:n||t,pick:n||t.getTime()}},i.prototype.createRange=function(e,t){function i(e){return!0===e||f.isArray(e)||g.isDate(e)?n.create(e):e}var n=this;return g.isInteger(e)||(e=i(e)),g.isInteger(t)||(t=i(t)),g.isInteger(e)&&f.isPlainObject(t)?e=[t.year,t.month,t.date+e]:g.isInteger(t)&&f.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)},i.prototype.navigate=function(e,t,i){var n,o,s,a=f.isArray(t),r=f.isPlainObject(t),l=this.item.view;if(a||r){for(s=r?(n=t.year,o=t.month,t.date):(n=+t[0],o=+t[1],+t[2]),i&&i.nav&&l&&l.month!==o&&(n=l.year,o=l.month),n=(i=new Date(n,o+(i&&i.nav?i.nav:0),1)).getFullYear(),o=i.getMonth();new Date(n,o,s).getMonth()!==o;)--s;t=[n,o,s]}return t},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){return g.isInteger(t)?t=this.now(e,t,{rel:t}):t?"string"==typeof t&&(t=this.parse(e,t)):t="min"==e?-1/0:1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,i,t){var n,o,s,a,r=this,l=i,c=t&&t.interval?t.interval:1,h=-1===r.item.enable,d=r.item.min,u=r.item.max,p=h&&r.item.disable.filter(function(e){var t;return f.isArray(e)&&((t=r.create(e).pick)<i.pick?n=!0:t>i.pick&&(o=!0)),g.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!h&&r.disabled(i)||h&&r.disabled(i)&&(p||n||o)||!h&&(i.pick<=d.pick||i.pick>=u.pick)))for(h&&!p&&(!o&&0<c||!n&&c<0)&&(c*=-1);r.disabled(i)&&(1<Math.abs(c)&&(i.month<l.month||i.month>l.month)&&(i=l,c=0<c?1:-1),i.pick<=d.pick?(s=!0,c=1,i=r.create([d.year,d.month,d.date+(i.pick===d.pick?0:-1)])):i.pick>=u.pick&&(a=!0,c=-1,i=r.create([u.year,u.month,u.date+(i.pick===u.pick?0:1)])),!s||!a);)i=r.create([i.year,i.month,i.date+c]);return i},i.prototype.disabled=function(t){var i=this,e=(e=i.item.disable.filter(function(e){return g.isInteger(e)?t.day===(i.settings.firstDay?e:e-1)%7:f.isArray(e)||g.isDate(e)?t.pick===i.create(e).pick:f.isPlainObject(e)?i.withinRange(e,t):void 0})).length&&!e.filter(function(e){return f.isArray(e)&&"inverted"==e[3]||f.isPlainObject(e)&&e.inverted}).length;return-1===i.item.enable?!e:e||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.parse=function(e,n,t){var o=this,s={};return n&&"string"==typeof n?(t&&t.format||((t=t||{}).format=o.settings.format),o.formats.toArray(t.format).map(function(e){var t=o.formats[e],i=t?g.trigger(t,o,[n,s]):e.replace(/^!/,"").length;t&&(s[e]=n.substr(0,i)),n=n.substr(i)}),[s.yyyy||s.yy,+(s.mm||s.m)-1,s.dd||s.d]):n},i.prototype.formats={d:function(e,t){return e?g.digits(e):t.date},dd:function(e,t){return e?2:g.lead(t.date)},ddd:function(e,t){return e?o(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?o(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?g.digits(e):t.month+1},mm:function(e,t){return e?2:g.lead(t.month+1)},mmm:function(e,t){var i=this.settings.monthsShort;return e?n(e,i,t):i[t.month]},mmmm:function(e,t){var i=this.settings.monthsFull;return e?n(e,i,t):i[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return g.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}},i.prototype.isDateExact=function(e,t){return g.isInteger(e)&&g.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(g.isDate(e)||f.isArray(e))&&(g.isDate(t)||f.isArray(t))?this.create(e).pick===this.create(t).pick:!(!f.isPlainObject(e)||!f.isPlainObject(t))&&(this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to))},i.prototype.isDateOverlap=function(e,t){var i=this.settings.firstDay?1:0;return g.isInteger(e)&&(g.isDate(t)||f.isArray(t))?(e=e%7+i)===this.create(t).day+1:g.isInteger(t)&&(g.isDate(e)||f.isArray(e))?(t=t%7+i)===this.create(e).day+1:!(!f.isPlainObject(e)||!f.isPlainObject(t))&&this.overlapRanges(e,t)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},i.prototype.deactivate=function(e,t){var n=this,o=n.item.disable.slice(0);return"flip"==t?n.flipEnable():!1===t?(n.flipEnable(1),o=[]):!0===t?(n.flipEnable(-1),o=[]):t.map(function(e){for(var t,i=0;i<o.length;i+=1)if(n.isDateExact(e,o[i])){t=!0;break}t||(g.isInteger(e)||g.isDate(e)||f.isArray(e)||f.isPlainObject(e)&&e.from&&e.to)&&o.push(e)}),o},i.prototype.activate=function(e,t){var s=this,a=s.item.disable,r=a.length;return"flip"==t?s.flipEnable():!0===t?(s.flipEnable(1),a=[]):!1===t?(s.flipEnable(-1),a=[]):t.map(function(e){for(var t,i,n,o=0;o<r;o+=1){if(i=a[o],s.isDateExact(i,e)){n=!(t=a[o]=null);break}if(s.isDateOverlap(i,e)){f.isPlainObject(e)?(e.inverted=!0,t=e):f.isArray(e)?(t=e)[3]||t.push("inverted"):g.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(o=0;o<r;o+=1)if(s.isDateExact(a[o],e)){a[o]=null;break}if(n)for(o=0;o<r;o+=1)if(s.isDateOverlap(a[o],e)){a[o]=null;break}t&&a.push(t)}),a.filter(function(e){return null!=e})},i.prototype.nodes=function(a){function e(e){return g.node("div"," ",l.klass["nav"+(e?"Next":"Prev")]+(e&&u.year>=m.year&&u.month>=m.month||!e&&u.year<=f.year&&u.month<=f.month?" "+l.klass.navDisabled:""),"data-nav="+(e||-1)+" "+g.ariaAttr({role:"button",controls:r.$node[0].id+"_table"})+' title="'+(e?l.labelMonthNext:l.labelMonthPrev)+'"')}function t(){var t=l.showMonthsShort?l.monthsShort:l.monthsFull;return l.selectMonths?g.node("select",g.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(u.month==e?" selected":"")+(u.year==f.year&&e<f.month||u.year==m.year&&e>m.month?" disabled":"")]}}),l.klass.selectMonth,(a?"":"disabled")+" "+g.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+l.labelMonthSelect+'"'):g.node("div",t[u.month],l.klass.month)}function i(){var t=u.year,e=!0===l.selectYears?5:~~(l.selectYears/2);if(e){var i=f.year,n=m.year,o=t-e,s=t+e;return o<i&&(s+=i-o,o=i),n<s&&(o-=(e=s-n)<(i=o-i)?e:i,s=n),g.node("select",g.group({min:o,max:s,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),l.klass.selectYear,(a?"":"disabled")+" "+g.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+l.labelYearSelect+'"')}return g.node("div",t,l.klass.year)}var n,o,r=this,l=r.settings,s=r.item,c=s.now,h=s.select,d=s.highlight,u=s.view,p=s.disable,f=s.min,m=s.max,s=(n=(l.showWeekdaysFull?l.weekdaysFull:l.weekdaysShort).slice(0),o=l.weekdaysFull.slice(0),l.firstDay&&(n.push(n.shift()),o.push(o.shift())),g.node("thead",g.node("tr",g.group({min:0,max:6,i:1,node:"th",item:function(e){return[n[e],l.klass.weekdays,'scope=col title="'+o[e]+'"']}}))));return g.node("div",(l.selectYears?i()+t():t()+i())+e()+e(1),l.klass.header)+g.node("table",s+g.node("tbody",g.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=l.firstDay&&0===r.create([u.year,u.month,1]).day?-7:0;return[g.group({min:7*e-u.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=r.create([u.year,u.month,e+(l.firstDay?1:0)]);var t,i=h&&h.pick==e.pick,n=d&&d.pick==e.pick,o=p&&r.disabled(e)||e.pick<f.pick||e.pick>m.pick,s=g.trigger(r.formats.toString,r,[l.format,e]);return[g.node("div",e.date,((t=[l.klass.day]).push(u.month==e.month?l.klass.infocus:l.klass.outfocus),c.pick==e.pick&&t.push(l.klass.now),i&&t.push(l.klass.selected),n&&t.push(l.klass.highlighted),o&&t.push(l.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+g.ariaAttr({role:"gridcell",label:s,selected:!(!i||r.$node.val()!==s)||null,activedescendant:!!n||null,disabled:!!o||null})),"",g.ariaAttr({role:"presentation"})]}})]}})),l.klass.table,'id="'+r.$node[0].id+'_table" '+g.ariaAttr({role:"grid",controls:r.$node[0].id,readonly:!0}))+g.node("div",g.node("button",l.today,l.klass.buttonToday,"type=button data-
2670pick="+c.pick+(a&&!r.disabled(c)?"":" disabled")+" "+g.ariaAttr({controls:r.$node[0].id}))+g.node("button",l.clear,l.klass.buttonClear,"type=button data-clear=1"+(a?"":" disabled")+" "+g.ariaAttr({controls:r.$node[0].id}))+g.node("button",l.close,l.klass.buttonClose,"type=button data-close=true "+(a?"":" disabled")+" "+g.ariaAttr({controls:r.$node[0].id})),l.klass.footer)},i.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,updateInput:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",i)}),function(e){"function"==typeof define&&define.amd?define("picker.time",["./picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,l){var t,o=1440,p=e._;function i(o,s){var t=this,e=o.$node[0].value,i=o.$node.data("value"),n=i||e,e=i?s.formatSubmit:s.format;t.settings=s,t.$node=o.$node,t.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},t.item={},t.item.clear=null,t.item.interval=s.interval||30,t.item.disable=(s.disable||[]).slice(0),t.item.enable=-(!0===(i=t.item.disable)[0]?i.shift():-1),t.set("min",s.min).set("max",s.max).set("now"),n?t.set("select",n,{format:e}):t.set("select",null).set("highlight",t.item.now),t.key={40:1,38:-1,39:1,37:-1,go:function(e){t.set("highlight",t.item.highlight.pick+e*t.item.interval,{interval:e*t.item.interval}),this.render()}},o.on("render",function(){function e(t,i){n("transform").map(function(e){t.css(e,i)}),n("transition").map(function(e){t.css(e,i)})}var t=o.$root.children(),i=t.find("."+s.klass.viewset),n=function(t){return["webkit","moz","ms","o",""].map(function(e){return(e?"-"+e+"-":"")+t})};i.length&&(e(t,"none"),t[0].scrollTop=~~i.position().top-2*i[0].clientHeight,e(t,""))},1).on("open",function(){o.$root.find("button").attr("disabled",!1)},1).on("close",function(){o.$root.find("button").attr("disabled",!0)},1)}i.prototype.set=function(t,i,n){var o=this,e=o.item;return null===i?e[t="clear"==t?"select":t]=i:(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return i=o[e](t,i,n)}).pop(),"select"==t?o.set("highlight",e.select,n):"highlight"==t?o.set("view",e.highlight,n):"interval"==t?o.set("min",e.min,n).set("max",e.max,n):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",i,n),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",i,n),"min"==t&&o.set("max",e.max,n))),o},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,t,i){var n=this;return p.isDate(t=void 0===t?e:t)&&(t=[t.getHours(),t.getMinutes()]),l.isPlainObject(t)&&p.isInteger(t.pick)?t=t.pick:l.isArray(t)?t=60*+t[0]+ +t[1]:p.isInteger(t)||(t=n.now(e,t,i)),"max"==e&&t<n.item.min.pick&&(t+=o),"min"!=e&&"max"!=e&&(t-n.item.min.pick)%n.item.interval!=0&&(t+=n.item.interval),{hour:~~(24+(t=n.normalize(e,t,i))/60)%24,mins:(60+t%60)%60,time:(o+t)%o,pick:t%o}},i.prototype.createRange=function(e,t){function i(e){return!0===e||l.isArray(e)||p.isDate(e)?n.create(e):e}var n=this;return p.isInteger(e)||(e=i(e)),p.isInteger(t)||(t=i(t)),p.isInteger(e)&&l.isPlainObject(t)?e=[t.hour,t.mins+e*n.settings.interval]:p.isInteger(t)&&l.isPlainObject(e)&&(t=[e.hour,e.mins+t*n.settings.interval]),{from:i(e),to:i(t)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t){var i=this.item.interval,n=new Date,o=60*n.getHours()+n.getMinutes();return o-=o%i,n=t<0&&i*t+o<=-i,o+="min"==e&&n?0:i,p.isInteger(t)&&(o+=i*(n&&"max"!=e?t+1:t)),o},i.prototype.normalize=function(e,t){var i=this.item.interval,n=this.item.min&&this.item.min.pick||0;return t-="min"==e?0:(t-n)%i},i.prototype.measure=function(e,t,i){return"string"==typeof(t=t||("min"==e?[0,0]:[23,59]))?t=this.parse(e,t):!0===t||p.isInteger(t)?t=this.now(e,t,i):l.isPlainObject(t)&&p.isInteger(t.pick)&&(t=this.normalize(e,t.pick,i)),t},i.prototype.validate=function(e,t,i){var n=this,i=(i&&i.interval?i:n.item).interval;return n.disabled(t)&&(t=n.shift(t,i)),t=n.scope(t),t=n.disabled(t)?n.shift(t,-1*i):t},i.prototype.disabled=function(t){var i=this,e=(e=i.item.disable.filter(function(e){return p.isInteger(e)?t.hour==e:l.isArray(e)||p.isDate(e)?t.pick==i.create(e).pick:l.isPlainObject(e)?i.withinRange(e,t):void 0})).length&&!e.filter(function(e){return l.isArray(e)&&"inverted"==e[2]||l.isPlainObject(e)&&e.inverted}).length;return-1===i.item.enable?!e:e||t.pick<i.item.min.pick||t.pick>i.item.max.pick},i.prototype.shift=function(e,t){var i=this,n=i.item.min.pick,o=i.item.max.pick;for(t=t||i.item.interval;i.disabled(e)&&!((e=i.create(e.pick+=t)).pick<=n||e.pick>=o););return e},i.prototype.scope=function(e){var t=this.item.min.pick,i=this.item.max.pick;return this.create(e.pick>i?i:e.pick<t?t:e)},i.prototype.parse=function(e,n,t){var i,o,s,a,r,l=this,c={};if(!n||"string"!=typeof n)return n;for(a in t&&t.format||((t=t||{}).format=l.settings.format),l.formats.toArray(t.format).map(function(e){var t=l.formats[e],i=t?p.trigger(t,l,[n,c]):e.replace(/^!/,"").length;t&&(t=n.substr(0,i),c[e]=t.match(/^\d+$/)?+t:t),n=n.substr(i)}),c)r=c[a],p.isInteger(r)?a.match(/^(h|hh)$/i)?(i=r,"h"!=a&&"hh"!=a||(i%=12)):"i"==a&&(o=r):a.match(/^a$/i)&&r.match(/^p/i)&&("h"in c||"hh"in c)&&(s=!0);return 60*(s?i+12:i)+o},i.prototype.formats={h:function(e,t){return e?p.digits(e):t.hour%12||12},hh:function(e,t){return e?2:p.lead(t.hour%12||12)},H:function(e,t){return e?p.digits(e):""+t.hour%24},HH:function(e,t){return e?p.digits(e):p.lead(t.hour%24)},i:function(e,t){return e?2:p.lead(t.mins)},a:function(e,t){return e?4:t.time%o<720?"a.m.":"p.m."},A:function(e,t){return e?2:t.time%o<720?"AM":"PM"},toArray:function(e){return e.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return p.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}},i.prototype.isTimeExact=function(e,t){return p.isInteger(e)&&p.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(p.isDate(e)||l.isArray(e))&&(p.isDate(t)||l.isArray(t))?this.create(e).pick===this.create(t).pick:!(!l.isPlainObject(e)||!l.isPlainObject(t))&&(this.isTimeExact(e.from,t.from)&&this.isTimeExact(e.to,t.to))},i.prototype.isTimeOverlap=function(e,t){return p.isInteger(e)&&(p.isDate(t)||l.isArray(t))?e===this.create(t).hour:p.isInteger(t)&&(p.isDate(e)||l.isArray(e))?t===this.create(e).hour:!(!l.isPlainObject(e)||!l.isPlainObject(t))&&this.overlapRanges(e,t)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},i.prototype.deactivate=function(e,t){var n=this,o=n.item.disable.slice(0);return"flip"==t?n.flipEnable():!1===t?(n.flipEnable(1),o=[]):!0===t?(n.flipEnable(-1),o=[]):t.map(function(e){for(var t,i=0;i<o.length;i+=1)if(n.isTimeExact(e,o[i])){t=!0;break}t||(p.isInteger(e)||p.isDate(e)||l.isArray(e)||l.isPlainObject(e)&&e.from&&e.to)&&o.push(e)}),o},i.prototype.activate=function(e,t){var s=this,a=s.item.disable,r=a.length;return"flip"==t?s.flipEnable():!0===t?(s.flipEnable(1),a=[]):!1===t?(s.flipEnable(-1),a=[]):t.map(function(e){for(var t,i,n,o=0;o<r;o+=1){if(i=a[o],s.isTimeExact(i,e)){n=!(t=a[o]=null);break}if(s.isTimeOverlap(i,e)){l.isPlainObject(e)?(e.inverted=!0,t=e):l.isArray(e)?(t=e)[2]||t.push("inverted"):p.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(o=0;o<r;o+=1)if(s.isTimeExact(a[o],e)){a[o]=null;break}if(n)for(o=0;o<r;o+=1)if(s.isTimeOverlap(a[o],e)){a[o]=null;break}t&&a.push(t)}),a.filter(function(e){return null!=e})},i.prototype.i=function(e,t){return p.isInteger(t)&&0<t?t:this.item.interval},i.prototype.nodes=function(e){var r=this,l=r.settings,c=r.item.select,h=r.item.highlight,d=r.item.view,u=r.
2670item.disable;return p.node("ul",p.group({min:r.item.min.pick,max:r.item.max.pick,i:r.item.interval,node:"li",item:function(e){var t,i=(e=r.create(e)).pick,n=c&&c.pick==i,o=h&&h.pick==i,s=u&&r.disabled(e),a=p.trigger(r.formats.toString,r,[l.format,e]);return[p.trigger(r.formats.toString,r,[p.trigger(l.formatLabel,r,[e])||l.format,e]),(t=[l.klass.listItem],n&&t.push(l.klass.selected),o&&t.push(l.klass.highlighted),d&&d.pick==i&&t.push(l.klass.viewset),s&&t.push(l.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+p.ariaAttr({role:"option",label:a,selected:!(!n||r.$node.val()!==a)||null,activedescendant:!!o||null,disabled:!!s||null})]}})+p.node("li",p.node("button",l.clear,l.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+p.ariaAttr({controls:r.$node[0].id})),"",p.ariaAttr({role:"presentation"})),l.klass.list,p.ariaAttr({role:"listbox",controls:r.$node[0].id}))},i.defaults={clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,updateInput:!0,klass:{picker:(t=e.klasses().picker)+" "+t+"--time",holder:t+"__holder",list:t+"__list",listItem:t+"__list-item",disabled:t+"__list-item--disabled",selected:t+"__list-item--selected",highlighted:t+"__list-item--highlighted",viewset:t+"__list-item--viewset",now:t+"__list-item--now",buttonClear:t+"__button--clear"}},e.extend("pickatime",i)}),function(e){define("select2",[],function(){return function(){var o;void 0===(o=jQuery).fn.each2&&o.extend(o.fn,{each2:function(e){for(var t=o([0]),i=-1,n=this.length;++i<n&&(t.context=t[0]=this[i])&&!1!==e.call(t[0],i,t););return this}}),function(v,b){"use strict";var e,t,i,y,o,r,w,c,n,s,a;function l(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}
2670function h(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return n[e]||e})}function d(e,t){for(var i=0,n=t.length;i<n;i+=1)if(u(e,t[i]))return i;return-1}function u(e,t){return e===t||e!==b&&t!==b&&(null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+""))}function p(e,t,i){var n,o,s;if(null===e||e.length<1)return[];for(o=0,s=(n=e.split(t)).length;o<s;o+=1)n[o]=i(n[o]);return n}function f(e){return e.outerWidth(!1)-e.width()}function m(t){var i="keyup-change-value";t.on("keydown",function(){v.data(t,i)===b&&v.data(t,i,t.val())}),t.on("keyup",function(){var e=v.data(t,i);e!==b&&t.val()!==e&&(v.removeData(t,i),t.trigger("keyup-change"))})}function g(t,i,n){var o;return n=n||b,function(){var e=arguments;window.clearTimeout(o),o=window.setTimeout(function(){i.apply(n,e)},t)}}function S(e){e.preventDefault(),e.stopPropagation()}function k(e,t,i){var n,o=[],s=v.trim(e.attr("class"));s&&v((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&o.push(this)}),(s=v.trim(t.attr("class")))&&v((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(n=i(this))&&o.push(n)}),e.attr("class",o.join(" "))}function x(e,t,i,n){var o=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),t=t.length;o<0?i.push(n(e)):(i.push(n(e.substring(0,o))),i.push("<span class='select2-match'>"),i.push(n(e.substring(o,o+t))),i.push("</span>"),i.push(n(e.substring(o+t,e.length))))}function C(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(s){var e,a=null,t=s.quietMillis||100,r=s.url,l=this;return function(o){window.clearTimeout(e),e=window.setTimeout(function(){var e=s.data,t=r,i=s.transport||v.fn.select2.ajaxDefaults.transport,n={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||b,dataType:s.dataType||"json"},n=v.extend({},v.fn.select2.ajaxDefaults.params,n),e=e?e.call(l,o.term,o.page,o.context):null,t="function"==typeof t?t.call(l,o.term,o.page,o.context):t;a&&"function"==typeof a.abort&&a.abort(),s.params&&(v.isFunction(s.params)?v.extend(n,s.params.call(l)):v.extend(n,s.params)),v.extend(n,{url:t,dataType:s.dataType,data:e,success:function(e){e=s.results(e,o.page,o);o.callback(e)},error:function(e,t,i){o.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:i})}}),a=i.call(l,n)},t)}}function O(e){var t,i,n=e,r=function(e){return""+e.text};v.isArray(n)&&(n={results:i=n}),!1===v.isFunction(n)&&(i=n,n=function(){return i});e=n();return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(o){var s,a=o.term,i={results:[]};""!==a?(s=function(e,t){var i,n;if((e=e[0]).children){for(n in i={},e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.children=[],v(e.children).each2(function(e,t){s(t,i.children)}),(i.children.length||o.matcher(a,r(i),e))&&t.push(i)}else o.matcher(a,r(e),e)&&t.push(e)},v(n().results).each2(function(e,t){s(t,i.results)}),o.callback(i)):o.callback(n())}}function E(t){var s=v.isFunction(t);return function(i){var n=i.term,o={results:[]},e=s?t(i):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==n&&!i.matcher(n,t)||o.results.push(e?this:{id:this,text:this})}),i.callback(o))}}function D(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function P(e,t){if(v.isFunction(e)){var i=Array.prototype.slice.call(arguments,2);return e.apply(t,i)}return e}function I(){var i=this;v.each(arguments,function(e,t){i[t].remove(),i[t]=null})}function $(e,t){function i(){}return((i.prototype=new e).constructor=i).prototype.parent=e.prototype,i.prototype=v.extend(i.prototype,t),i}window.Select2===b&&(r={x:0,y:0},c={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){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},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","Ʋ":"
2670V","Ꝟ":"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=v(document),s=1,y=function(){return s++},e=$(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var s,t,i,n,o,a=".select2-results";this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+y()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v(document.body),k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(P(e.containerCss,this.opts.element)),this.container.addClass(P(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",S),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(P(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",S),this.results=s=this.container.find(a),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",S),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),i=80,n=this.results,o=g(i,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){0<=d(e.target,n.get())&&o(e)}),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&s.mousewheel(function(e,t,i,n){var o=s.scrollTop();0<n&&o-n<=0?(s.scrollTop(0),S(e)):n<0&&s.get(0).scrollHeight-s.scrollTop()+n<=s.height()&&(s.scrollTop(s.get(0).scrollHeight-s.height()),S(e))}),m(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength);a=e.element.prop("disabled");this.enable(!(a=a===b?!1:a));a=e.element.prop("readonly");
2670this.readonly(a=a===b?!1:a),w=w||function(){var e=v("<div class='select2-measure-scrollbar'></div>");e.appendTo(document.body);var t={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),t}(),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),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,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),I.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:u(e.attr("locked"),"locked")||u(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(m){var t,e,i,g=this,a=m.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=m.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in m)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),m.debug=m.debug||v.fn.select2.defaults.debug,m.debug&&console&&console.warn&&(null!=m.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!=m.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!=m.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=m.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=m.ajax&&null!=m.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=m.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=m.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=m.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=m.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=m.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=m.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),m.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=m.element.data("tags")&&(i=m.element.data("tags"),v.isArray(i)||(i=[]),m.element.data("select2Tags",i)),null!=m.sorter&&(m.sortResults=m.sorter),null!=m.selectOnClose&&(m.selectOnBlur=m.selectOnClose),null!=m.ajax&&v.isFunction(m.ajax.processResults)&&(m.ajax.results=m.ajax.processResults),null!=m.language&&(i=m.language,v.isFunction(i.noMatches)&&(m.formatNoMatches=i.noMatches),v.isFunction(i.searching)&&(m.formatSearching=i.searching),v.isFunction(i.inputTooShort)&&(m.formatInputTooShort=i.inputTooShort),v.isFunction(i.inputTooLong)&&(m.formatInputTooLong=i.inputTooLong),v.isFunction(i.loadingMore)&&(m.formatLoading=i.loadingMore),v.isFunction(i.maximumSelected)&&(m.formatSelectionTooBig=i.maximumSelected)),"function"!=typeof(m=v.extend({},{populateResults:function(e,t,d){var u=this.opts.id,p=this.liveRegion,f=function(e,t,i){for(var n,o,s,a,r,l=[],c=0,h=(e=m.sortResults(e,t,d)).length;c<h;c+=1)s=!(r=!0===(n=e[c]).disabled)&&u(n)!==b,a=n.children&&0<n.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+i),o.addClass("select2-result"),o.addClass(s?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),a&&o.addClass("select2-result-with-children"),o.addClass(g.opts.formatResultCssClass(n)),o.attr("role","presentation"),(s=v(document.createElement("div"))).addClass("select2-result-label"),s.attr("id","select2-result-label-"+y()),s.attr("role","option"),(r=m.formatResult(n,s,d,g.opts.escapeMarkup))!==b&&(s.html(r),o.append(s)),a&&((a=v("<ul></ul>")).addClass("select2-result-sub"),f(n.children,a,i+1),o.append(a)),o.data("select2-data",n),l.push(o[0]);t.append(l),p.text(m.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,m)).id&&(t=m.id,m.id=function(e){return e[t]}
2670),v.isArray(m.element.data("select2Tags"))){if("tags"in m)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+m.element.attr("id");m.tags=m.element.data("select2Tags")}if(e?(m.query=this.bind(function(n){var e,i={results:[],more:!1},o=n.term,s=function(e,t){var i;e.is("option")?n.matcher(o,e.text(),e)&&t.push(g.optionToData(e)):e.is("optgroup")&&(i=g.optionToData(e),e.children().each2(function(e,t){s(t,i.children)}),0<i.children.length&&t.push(i))},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){s(t,i.results)}),n.callback(i)}),m.id=function(e){return e.id}):"query"in m||("ajax"in m?((e=m.element.data("ajax-url"))&&0<e.length&&(m.ajax.url=e),m.query=T.call(m.element,m.ajax)):"data"in m?m.query=O(m.data):"tags"in m&&(m.query=E(m.tags),m.createSearchChoice===b&&(m.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),m.initSelection===b&&(m.initSelection=function(e,t){var i=[];v(p(e.val(),m.separator,m.transformVal)).each(function(){var e={id:this,text:this},t=m.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(u(this.id,e.id))return e=this,!1}),i.push(e)}),t(i)}))),"function"!=typeof m.query)throw"query function not defined for Select2 "+m.element.attr("id");if("top"===m.createSearchChoicePosition)m.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===m.createSearchChoicePosition)m.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof m.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return m},monitorSource:function(){var e,t=this.opts.element,i=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled");this.enable(!(e=e===b?!1:e));e=t.prop("readonly");this.readonly(e=e===b?!1:e),this.container&&(k(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(P(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(k(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(P(this.opts.dropdownCssClass,this.opts.element)))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",i._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,i._sync)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b?!0:e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e===b?!1:e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,i,n=this.dropdown,o=this.container,s=o.offset(),a=o.outerHeight(!1),r=o.outerWidth(!1),l=n.outerHeight(!1),c=v(window),h=c.width(),d=c.height(),u=c.scrollLeft()+h,p=c.scrollTop()+d,f=s.top+a,m=s.left,g=f+l<=p,d=s.top-l>=c.scrollTop(),p=n.outerWidth(!1);n.hasClass("select2-drop-above")?(e=!0,!d&&g&&(e=!(t=!0))):(e=!1,!g&&d&&(e=t=!0)),t&&(n.hide(),s=this.container.offset(),a=this.container.outerHeight(!1),r=this.container.outerWidth(!1),l=n.outerHeight(!1),u=c.scrollLeft()+h,c.scrollTop(),f=s.top+a,m=s.left,p=n.outerWidth(!1),n.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(i=v(".select2-results",n)[0],n.addClass("select2-drop-auto-width"),n.css("width",""),r<(p=n.outerWidth(!1)+(i.scrollHeight===i.clientHeight?0:w.width))?r=p:p=r,l=n.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(f-=(i=this.body.offset()).top,m-=i.left),r={left:m=!(m+p<=u)&&s.left+u+o.outerWidth(!1)>p?s.left+this.container.outerWidth(!1)-p:m,width:r},e?(this.container.addClass("select2-drop-above"),n.addClass("select2-drop-above"),l=n.outerHeight(!1),r.top=s.top-l,r.bottom="auto"):(r.top=f,r.bottom="auto",this.container.removeClass("select2-drop-above"),n.removeClass("select2-drop-above")),r=v.extend(r,P(this.opts.dropdownCss,this.opts.element)),n.css(r)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var i,e=this.containerEventName,t="scroll."+e,n="resize."+e,o="orientationchange."+e;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last(
2670)[0]&&this.dropdown.detach().appendTo(this.body),0===(i=v("#select2-drop-mask")).length&&((i=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),i.hide(),i.appendTo(this.body),i.on("mousedown touchstart click",function(e){l(i);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==i[0]&&this.dropdown.before(i),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),i.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var s=this;this.container.parents().add(window).each(function(){v(this).on(n+" "+t+" "+o,function(e){s.opened()&&s.positionDropdown()})})},close:function(){var e,t,i,n;this.opened()&&(e=this.containerEventName,t="scroll."+e,i="resize."+e,n="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(i).off(n)}),this.clearDropdownAlignmentPreference(),v("#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(v.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!==b&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return P(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,i,n,o,s=this.results,a=this.highlight();a<0||(0!=a?(e=this.findHighlightableChoices().find(".select2-result-label"),i=(o=((t=v(e[a])).offset()||{}).top||0)+t.outerHeight(!0),a===e.length-1&&0<(n=s.find("li.select2-more-results")).length&&(i=n.offset().top+n.outerHeight(!0)),(n=s.offset().top+s.outerHeight(!1))<i&&s.scrollTop(s.scrollTop()+(i-n)),(o=o-s.offset().top)<0&&"none"!=t.css("display")&&s.scrollTop(s.scrollTop()+o)):s.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),i=this.highlight();-1<i&&i<t.length;){var n=v(t[i+=e]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return d(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(e=v(t[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",e.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(e.text()),(e=e.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},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(e){var t=v(e.target).closest(".select2-result-selectable");0<t.length&&!t.is(".select2-highlighted")?(e=this.findHighlightableChoices(),this.highlight(e.index(t))):0==t.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,i=t.find("li.select2-more-results"),n=this.resultsPage+1,o=this,s=this.search.val(),a=this.context;0!==i.length&&i.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:n,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){o.opened()&&(o.opts.populateResults.call(this,t,e.results,{term:s,page:n,context:a}),o.postprocessResults(e,!1,!1),!0===e.more?(i.detach().appendTo(t).html(o.opts.escapeMarkup(P(o.opts.formatLoadMore,o.opts.element,n+1))),window.setTimeout(function(){o.loadMoreIfNeeded()},10)):i.remove(),o.positionDropdown(),o.resultsPage=n,o.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(i){var e,n=this.search,o=this.results,s=this.opts,a=this,t=n.val(),r=v.data(this.container,"select2-last-term");if((!0===i||!r||!u(t,r))&&(v.data(this.container,"select2-last-term",t),!0===i||!1!==this.showSearchInput&&this.opened())){var l=++this.queryCount,t=this.getMaximumSelectionSize();if(!(1<=t&&(e=this.data(),v.isArray(e)&&e.length>=t&&D(s.formatSelectionTooBig,"formatSelectionTooBig"))))return n.val().length<s.minimumInputLength?(D(s.formatInputTooShort,"formatInputTooShort")?h("<li class='select2-no-results'>"+P(s.formatInputTooShort,s.element,n.val(),s.minimumInputLength)+"</li>"):h(""),void(i&&this.showSearch&&this.showSearch(!0))):void(s.maximumInputLength&&n.val().length>s.maximumInputLength?D(s.formatInputTooLong,"formatInputTooLong")?h("<li class='select2-no-results'>"+P(s.formatInputTooLong,s.element,n.val(),s.maximumInputLength)+"</li>"):h(""):(s.formatSearching&&0===this.findHighlightableChoices().length&&h("<li class='select2-searching'>"+P(s.formatSearching,s.element)+"</li>"),n.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&n.val(e),this.resultsPage=1,s.query({element:s.element,term:n.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind(function(e){var t;if(l==this.queryCount)if(this.opened())if(e.hasError!==b&&D(s.formatAjaxError,"formatAjaxError"))h("<li class='select2-ajax-error'>"+P(s.formatAjaxError,s.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>");else{if(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==n.val()&&(t=this.opts.createSearchChoice.call(a,n.val(),e.results))!==b&&null!==t&&a.id(t)!==b&&null!==a.id(t)&&0===v(e.results).filter(function(){return u(a.id(this),a.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&D(s.formatNoMatches,"formatNoMatches"))return h("<li class='select2-no-results'>"+P(s.formatNoMatches,s.element,n.val())+"</li>"),void(this.showSearch&&this.showSearch(n.val()));o.empty(),a.opts.populateResults.call(this,o,e.results,{term:n.val(),page:this.resultsPage,context:null}),!0===e.more&&D(s.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+s.escapeMarkup(P(s.formatLoadMore,s.element,this.resultsPage))+"</li>"),window.setTimeout(function(){a.loadMoreIfNeeded()},10)),this.postprocessResults(e,i),c(),this.opts.element.trigger({type:"select2-loaded",items:e})}else this.search.removeClass("select2-active")})})));h("<li class='select2-selection-limit'>"+P(s.formatSelectionTooBig,s.element,t)+"</li>")}function c(){n.removeClass("select2-active"),a.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?a.liveRegion.text(o.text()):a.liveRegion.text(a.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function h(e){o.html(e),c()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var i;(i=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=i[0],t=i.val().length;i.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((e=e.createTextRange()).collapse(!1),e.select()))},0)},selectHighlighted:function(e){var t,i;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(i,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())!==b?e.text():b)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();return this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0}},initContainerWidth:function(){var e=function(){var e,t,i,n,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(n=0,o=(t=e.split(";")).length;n<o;n+=1)if(null!==(i=t[n].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=i.length)return i[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}
2670),t=$(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.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(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,i=this.dropdown,n=y();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+n),this.focusser.attr("aria-labelledby","select2-chosen-"+n),this.results.attr("id","select2-results-"+n),this.search.attr("aria-owns","select2-results-"+n),this.focusser.attr("id","s2id_autogen"+n),e=v("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id"));n=this.opts.element.attr("title");this.opts.element.attr("title",n||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("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!==c.PAGE_UP&&e.which!==c.PAGE_DOWN)switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void S(e);case c.ENTER:return this.selectHighlighted(),void S(e);case c.TAB:return void this.selectHighlighted({noFocus:!0});case c.ESC:return this.cancel(e),void S(e)}else S(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.ESC){if(!1!==this.opts.openOnEnter||e.which!==c.ENTER)return e.which==c.DOW
2670N||e.which==c.UP||e.which==c.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void S(e)):void(e.which!=c.DELETE&&e.which!=c.BACKSPACE||(this.opts.allowClear&&this.clear(),S(e)));S(e)}})),m(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),S(e)})),i.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){S(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.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(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t,i=this.selection.data("select2-data");i&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var o=e.val(),s=null;a.query({matcher:function(e,t,i){var n=u(o,a.id(i));return n&&(s=i),n},callback:v.isFunction(t)?function(){t(s)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();this.isPlaceholderOptionSelected()&&e!==b&&(this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")))},postprocessResults:function(e,t,i){var n=0,o=this;this.findHighlightableChoices().each2(function(e,t){if(u(o.id(t.data("select2-data")),o.opts.element.val()))return n=e,!1}),!1!==i&&(!0===t&&0<=n?this.highlight(n):this.highlight(0)),!0!==t||0<=(t=this.opts.minimumResultsForSearch)&&this.showSearch(function i(e){var n=0;return v.each(e,function(e,t){t.children?n+=i(t.children):n++}),n}(e.results)>=t)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var i,n;this.triggerSelect(e)&&(i=this.opts.element.val(),n=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(),u(i,this.id(e))||this.triggerChange({added:e,removed:n}))},updateSelection:function(e){var t,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),i.empty(),(t=null!==e?this.opts.formatSelection(e,i,this.opts.escapeMarkup):t)!==b&&i.append(t),(e=this.opts.formatSelectionCssClass(e,i))!==b&&i.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,i=null,n=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=n.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),t&&this.triggerChange({added:i,removed:o});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){n.opts.element.val(e?n.id(e):""),n.updateSelection(e),n.setPlaceholder(),t&&n.triggerChange({added:e,removed:o})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,i=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(i=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:t})):this.clear(i)}}
2670),i=$(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.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 l&&(l.initSelection=l.initSelection||function(e,s){var a=p(e.val(),l.separator,l.transformVal),r=[];l.query({matcher:function(e,t,i){var n=v.grep(a,function(e){return u(e,l.id(i))}).length;return n&&r.push(i),n},callback:v.isFunction(s)?function(){for(var e=[],t=0;t<a.length;t++)for(var i=a[t],n=0;n<r.length;n++){var o=r[n];if(u(i,l.id(o))){e.push(o),r.splice(n,1);break}}s(e)}:v.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var l,e=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e);var t=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+y()),this.search.prev().text(v("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,i,n=l.find(".select2-search-choice-focus"),o=n.prev(".select2-search-choice:not(.select2-locked)"),s=n.next(".select2-search-choice:not(.select2-locked)"),a=(t=this.search,r=a=0,"selectionStart"in(t=v(t)[0])?(a=t.selectionStart,r=t.selectionEnd-a):"selection"in document&&(t.focus(),i=document.selection.createRange(),r=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),a=i.text.length-r),{offset:a,length:r});if(n.length&&(e.which==c.LEFT||e.which==c.RIGHT||e.which==c.BACKSPACE||e.which==c.DELETE||e.which==c.ENTER)){var r=n;return e.which==c.LEFT&&o.length?r=o:e.which==c.RIGHT?r=s.length?s:null:e.which===c.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),r=o.length?o:s):e.which==c.DELETE?this.unselect(n.first())&&(this.search.width(10),r=s.length?s:null):e.which==c.ENTER&&(r=null),this.selectChoice(r),S(e),void(r&&r.length||this.open())}if((e.which===c.BACKSPACE&&1==this.keydowns||e.which==c.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),void S(e);if(this.selectChoice(null),this.opened())switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void S(e);case c.ENTER:return this.selectHighlighted(),void S(e);case c.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case c.ESC:return this.cancel(e),void S(e)}if(e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.BACKSPACE&&e.which!==c.ESC){if(e.which===c.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==c.PAGE_UP&&e.which!==c.PAGE_DOWN||S(e),e.which===c.ENTER&&S(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){this.isInterfaceEnabled()&&(0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.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(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},i=[],n=this;v(e).each(function(){n.id(this)in t||(t[n.id(this)]=0,i.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(i),n.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!=b&&(this.search.val(e),0<e.length&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),i=this;v(e).each(function(){t.push(i.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t=!e.locked,i=v("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),n=v("<li class='select2-search-choice select2-locked'><div></div></li>"),o=t?i:n,i=this.id(e),n=this.opts.formatSelection(e,o.find("div"),this.opts.escapeMarkup);return n!=b&&o.find("div").replaceWith(v("<div></div>").html(n)),(n=this.opts.formatSelectionCssClass(e,o.find("div")))!=b&&o.addClass(n),t&&o.find(".select2-search-choice-close").on("mousedown",S
2670).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),S(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),o.data("select2-data",e),o.insertBefore(this.searchContainer),i},unselect:function(e){var t,i,n=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var o=v.Event("select2-removing");if(o.val=this.id(t),o.choice=t,this.opts.element.trigger(o),o.isDefaultPrevented())return!1;for(;0<=(i=d(this.id(t),n));)n.splice(i,1),this.setVal(n),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),o=this.results.find(".select2-result"),s=this.results.find(".select2-result-with-children"),a=this;o.each2(function(e,t){0<=d(a.id(t.data("select2-data")),n)&&(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!==i&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&0<!o.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+P(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-f(this.search)},resizeSearch:function(){var e,t,i,n=f(this.search);t=this.search,o||(i=t[0].currentStyle||window.getComputedStyle(t[0],null),(o=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v(document.body).append(o)),o.text(t.val()),e=o.width()+10,i=this.search.offset().left,(i=(i=(i=(t=this.selection.width())-(i-this.selection.offset().left)-n)<e?t-n:i)<40?t-n:i)<=0&&(i=e),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:p(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){var t,i;this.select?this.select.val(e):(t=[],i={},v(e).each(function(){this in i||(t.push(this),i[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(u(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(e,i){var n,o=this;if(0===arguments.length)return this.getVal();if((n=this.data()).length||(n=[]),!e&&0!==e)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:n}));if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,o.id);o.setVal(t),o.updateSelection(e),o.clearSearch(),i&&o.triggerChange(o.buildChangeDetails(n,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var i,n,o=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();n=this.data(),i=v.map(e=e||[],function(e){return o.opts.id(e)}),this.setVal(i),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(n,this.data()))}}),v.fn.select2=function(){var e,t,i,n,o=Array.prototype.slice.call(arguments,0),s=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","is
2670Focused","container","dropdown"],r=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(t=0===o.length?{}:v.extend({},o[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?n=t.element.prop("multiple"):(n=t.multiple||!1,"tags"in t&&(t.multiple=n=!0)),(e=new(n?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(d(o[0],s)<0)throw"Unknown method: "+o[0];if(i=b,(e=v(this).data("select2"))!==b)return t=o[0],i="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=l[t]?l[t]:t].apply(e,o.slice(1)),!(0<=d(o[0],a)||0<=d(o[0],r)&&1==o.length)&&void 0}}),i===b?this:i},v.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var o=[];return x(this.text(e),i.term,o,n),o.join("")},transformVal:function(e){return v.trim(e)},formatSelection:function(e,t,i){return e?i(this.text(e)):b},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},text:function(e){return e&&this.data&&this.data.text?v.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,i,n){var o,s,a,r,l,c=e,h=!1;if(!n.createSearchChoice||!n.tokenSeparators||n.tokenSeparators.length<1)return b;for(;;){for(s=-1,a=0,r=n.tokenSeparators.length;a<r&&(l=n.tokenSeparators[a],!(0<=(s=e.indexOf(l))));a++);if(s<0)break;if(o=e.substring(0,s),e=e.substring(s+l.length),0<o.length&&(o=n.createSearchChoice.call(this,o,t))!==b&&null!==o&&n.id(o)!==b&&null!==n.id(o)){for(h=!1,a=0,r=t.length;a<r;a++)if(u(n.id(o),n.id(t[a]))){h=!0;break}h||i(o)}}return c!==e?e:void 0},escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||0<navigator.msMaxTouchPoints)||!(e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.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,i){return"Loading failed"},formatInputTooShort:function(e,t){e=t-e.length;return"Please enter "+e+" or more character"+(1==e?"":"s")},formatInputTooLong:function(e,t){t=e.length-t;return"Please delete "+t+" character"+(1==t?"":"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…"}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:O,tags:E},util:{debounce:g,markMatch:x,escapeMarkup:C,stripDiacritics:h},class:{abstract:e,single:t,multi:i}})}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drag",["jquery"],function(){return function(){!function(u){u.fn.drag=function(e,t,i){var n="string"==typeof e?e:"",o=u.isFunction(e)?e:u.isFunction(t)?t:null;return 0!==n.indexOf("drag")&&(n="drag"+n),i=(e==o?t:i)||{},o?this.bind(n,i,o):this.trigger(n)};var p=u.event,n=p.special,f=n.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(e){var i=u.data(this,f.datakey),n=e.data||{};i.related+=1,u.each(f.defaults,function(e,t){void 0!==n[e]&&(i[e]=n[e])})},remove:function(){--u.data(this,f.datakey).related},setup:function(){var e;u.data(this,f.datakey)||(e=u.extend({related:0},f.defaults),u.data(this,f.datakey,e),p.add(this,"touchstart mousedown",f.init,e),this.attachEvent&&this.attachEvent("ondragstart",f.dontstart))},teardown:function(){(u.data(this,f.datakey)||{}).related||(u.removeData(this,f.datakey),p.remove(this,"touchstart mousedown",f.init),f.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",f.dontstart))},init:function(e){if(!f.touched){var t,i=e.data;if(!(0!=e.which&&0<i.which&&e.which!=i.which)&&!u(e.target).is(i.not)&&(!i.handle||u(e.target).closest(i.handle,e.currentTarget).length)&&(f.touched="touchstart"==e.type?this:null,i.propagates=1,i.mousedown=this,i.interactions=[f.interaction(this,i)],i.target=e.target,i.pageX=e.pageX,i.pageY=e.pageY,i.dragging=null,t=f.hijack(e,"draginit",i),i.propagates))return(t=f.flatten(t))&&t.length&&(i.interactions=[],u.each(t,function(){i.interactions.push(f.interaction(this,i))})),i.propagates=i.interactions.length,!1!==i.drop&&n.drop&&n.drop.handler(e,i
vendor: 1,883 bytes, line 2670
2670),f.textselect(!1),f.touched?p.add(f.touched,"touchmove touchend",f.handler,i):p.add(document,"mousemove mouseup",f.handler,i),!(!f.touched||i.live)&&void 0}},interaction:function(e,t){t=u(e)[t.relative?"position":"offset"]()||{top:0,left:0};return{drag:e,callback:new f.callback,droppable:[],offset:t}},handler:function(e){var t=e.data;switch(e.type){case!t.dragging&&"touchmove":e.preventDefault();case!t.dragging&&"mousemove":if(Math.pow(e.pageX-t.pageX,2)+Math.pow(e.pageY-t.pageY,2)<Math.pow(t.distance,2))break;e.target=t.target,f.hijack(e,"dragstart",t),t.propagates&&(t.dragging=!0);case"touchmove":e.preventDefault();case"mousemove":if(t.dragging){if(f.hijack(e,"drag",t),t.propagates){!1!==t.drop&&n.drop&&n.drop.handler(e,t);break}e.type="mouseup"}default:f.touched?p.remove(f.touched,"touchmove touchend",f.handler):p.remove(document,"mousemove mouseup",f.handler),t.dragging&&(!1!==t.drop&&n.drop&&n.drop.handler(e,t),f.hijack(e,"dragend",t)),f.textselect(!0),!1===t.click&&t.dragging&&u.data(t.mousedown,"suppress.click",(new Date).getTime()+5),t.dragging=f.touched=!1}},hijack:function(i,n,o,e,t){if(o){var s,a,r,l={event:i.originalEvent,type:i.type},c=n.indexOf("drop")?"drag":"drop",h=e||0,d=isNaN(e)?o.interactions.length:e;i.type=n,i.originalEvent=null,o.results=[];do{if(a=o.interactions[h]){if("dragend"!==n&&a.cancelled)continue;r=f.properties(i,o,a),a.results=[],u(t||a[c]||o.droppable).each(function(e,t){if(r.target=t,!(i.isPropagationStopped=function(){return!1})===(s=t?p.dispatch.call(t,i,r):null)?("drag"==c&&(a.cancelled=!0,--o.propagates),"drop"==n&&(a[c][e]=null)):"dropinit"==n&&a.droppable.push(f.element(s)||t),"dragstart"==n&&(a.proxy=u(f.element(s)||a.drag)[0]),a.results.push(s),delete i.result,"dropinit"!==n)return s}),o.results[h]=f.flatten(a.results),"dropinit"==n&&(a.droppable=f.flatten(a.droppable)),"dragstart"!=n||a.cancelled||r.update(
2670)}}while(++h<d);return i.type=l.type,i.originalEvent=l.event,f.flatten(o.results)}},properties:function(e,t,i){var n=i.callback;return n.drag=i.drag,n.proxy=i.proxy||i.drag,n.startX=t.pageX,n.startY=t.pageY,n.deltaX=e.pageX-t.pageX,n.deltaY=e.pageY-t.pageY,n.originalX=i.offset.left,n.originalY=i.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=f.flatten((i.drop||[]).slice()),n.available=f.flatten((i.droppable||[]).slice()),n},element:function(e){if(e&&(e.jquery||1==e.nodeType))return e},flatten:function(e){return u.map(e,function(e){return e&&e.jquery?u.makeArray(e):e&&e.length?f.flatten(e):e})},textselect:function(e){u(document)[e?"unbind":"bind"]("selectstart",f.dontstart).css("MozUserSelect",e?"":"none"),document.unselectable=e?"off":"on"},dontstart:function(){return!1},callback:function(){}};f.callback.prototype={update:function(){n.drop&&this.available.length&&u.each(this.available,function(e){n.drop.locate(this,e)})}};var t=p.dispatch;p.dispatch=function(e){if(!(0<u.data(this,"suppress."+e.type)-(new Date).getTime()))return t.apply(this,arguments);u.removeData(this,"suppress."+e.type)};var o=p.fixHooks.touchstart=p.fixHooks.touchmove=p.fixHooks.touchend=p.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(i,e){var n;return!e||(n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||null)&&u.each(o.props,function(e,t){i[t]=n[t]}),i}}}(jQuery)}.apply(e,arguments)})}(this),function(e){define("jquery.event.drop",["jquery"],function(){return function(){return function(p){p.fn.drop=function(e,t,i){var n="string"==typeof e?e:"",o=p.isFunction(e)?e:p.isFunction(t)?t:null;return 0!==n.indexOf("drop")&&(n="drop"+n),i=(e==o?t:i)||{},o?this.bind(n,i,o):this.trigger(n)},p.drop=function(e){m.multi=!0===(e=e||{}).multi?1/0:!1===e.multi?1:(isNaN(e.multi)?m:e).multi,m.delay=e.delay||m.delay,m.tolerance=p.isFunction(e.tolerance)?e.tolerance:null===e.tolerance?null:m.tolerance,m.mode=e.mode||m.mode||"intersect"};var f=p.event.special,m=p.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(e){p.data(this,m.datakey).related+=1},remove:function(){--p.data(this,m.datakey).related},setup:function(){p.data(this,m.datakey)||(p.data(this,m.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),m.targets.push(this))},teardown:function(){var t;(p.data(this,m.datakey)||{}).related||(p.removeData(this,m.datakey),t=this,m.targets=p.grep(m.targets,function(e){return e!==t}))},handler:function(e,t){var i;if(t)switch(e.type){case"mousedown":case"touchstart":i=p(m.targets),(i="string"==typeof t.drop?i.filter(t.drop):i).each(function(){var e=p.data(this,m.datakey);e.active=[],e.anyactive=0,e.winner=0}),t.droppable=i,f.drag.hijack(e,"dropinit",t);break;case"mousemove":case"touchmove":m.event=e,m.timer||m.tolerate(t);break;case"mouseup":case"touchend":m.timer=clearTimeout(m.timer),t.propagates&&(f.drag.hijack(e,"drop",t),f.drag.hijack(e,"dropend",t))}},locate:function(e,t){var i=p.data(e,m.datakey),n=p(e),o=n.offset()||{},s=n.outerHeight(),n=n.outerWidth(),s={elem:e,width:n,height:s,top:o.top,left:o.left,right:o.left+n,bottom:o.top+s};return i&&(i.location=s,i.index=t,i.elem=e),s},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,i){return this.contains(i,[e.pageX,e.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(e,t,i){return Math.max(0,Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top))*Math.max(0,Math.min(i.right,t.right)-Math.max(i.left,t.left))},fit:function(e,t,i){return this.contains(i,t)?1:0},middle:function(e,t,i){return this.contains(i,[t.left+.5*t.width,t.top+.5*t.height])?1:0}},sort:function(e,t){return t.winner-e.winner||e.index-t.index},tolerate:function(e){var t,i,n,o,s,a,r,l,c=0,h=e.interactions.length,d=[m.event.pageX,m.event.pageY],u=m.tolerance||m.modes[m.mode];do{if(l=e.interactions[c]){if(!l)return;l.drop=[],s=[],a=l.droppable.length,u&&(n=m.locate(l.proxy)),t=0;do{if(r=l.droppable[t]){if(!(i=(o=p.data(r,m.datakey)).location))continue;o.winner=u?u.call(m,m.event,n,i):m.contains(i,d)?1:0,s.push(o)}}while(++t<a);for(s.sort(m.sort),t=0;(o=s[t])&&(o.winner&&l.drop.length<m.multi?(o.active[c]||o.anyactive||(!1!==f.drag.hijack(m.event,"dropstart",e,c,o.elem)[0]?(o.active[c]=1,o.anyactive+=1):o.winner=0),o.winner&&l.drop.push(o.elem)):o.active[c]&&1==o.anyactive&&(f.drag.hijack(m.event,"dropend",e,c,o.elem),o.active[c]=0,--o.anyactive)),++t<a;);}}
2670while(++c<h);m.last&&d[0]==m.last.pageX&&d[1]==m.last.pageY?delete m.timer:m.timer=setTimeout(function(){m.tolerate(e)},m.delay),m.last=m.event}};f.dropinit=f.dropstart=f.dropend=m}(jQuery),$.drop}.apply(e,arguments)})}(this),define("mockup-patterns-select2",["jquery","pat-base","mockup-utils","select2","jquery.event.drag","jquery.event.drop"],function(r,e,l){"use strict";return e.extend({name:"select2",trigger:".pat-select2",parser:"mockup",defaults:{separator:","},initializeValues:function(){var o=this;o.options.initialValues&&(o.options.id=function(e){return e.id},o.options.initSelection=function(e,t){var i=[],e=e.val(),n=o.options.initialValues;"string"==typeof o.options.initialValues&&""!==o.options.initialValues&&("{"===o.options.initialValues[0]?n=JSON.parse(o.options.initialValues):(n={},r(o.options.initialValues.split(o.options.separator)).each(function(){var e=this.split(":"),t=r.trim(e[0]),e=r.trim(e[1]);n[t]=e}))),r(e.split(o.options.separator)).each(function(){var e=this;n[this]&&(e=n[this]),i.push({id:l.removeHTML(this),text:l.removeHTML(e)})}),t(i)})},initializeTags:function(){var e=this;e.options.tags&&"string"==typeof e.options.tags&&("["===e.options.tags.substr(0,1)?e.options.tags=JSON.parse(e.options.tags):e.options.tags=e.options.tags.split(e.options.separator)),e.options.tags&&!e.options.allowNewItems&&(e.options.data=r.map(e.options.tags,function(e,t){return{id:e,text:e}}),e.options.multiple=!0,delete e.options.tags)},initializeOrdering:function(){var i,n=this;n.options.orderable&&(i=function(e,t){return e?e.text:void 0},n.options.formatSelection&&(i=n.options.formatSelection),n.options.formatSelection=function(e,t){return t.parents("li").drag("start",function(e,t){return r(this).addClass("select2-choice-dragging"),n.$el.select2("onSortStart"),r.drop({tolerance:function(e,t,i){var n=e.pageY>i.top+i.height/2;return r.data(i.elem,"drop+reorder",n?"insertAfter":"insertBefore"),this.contains(i,[e.pageX,e.pageY])}}),r(this).clone().addClass("dragging").css({opacity:.75,position:"absolute"}).appendTo(document.body)}).drag(function(e,t){r(t.proxy).css({top:t.offsetY,left:t.offsetX});var i=t.drop[0],n=r.data(i||{},"drop+reorder");!i||i==t.current&&n==t.method||(r(this)[n](i),t.current=i,t.method=n,t.update())}).drag("end",function(e,t){r(this).removeClass("select2-choice-dragging"),n.$el.select2("onSortEnd"),r(t.proxy).remove()}).drop("init",function(e,t){return this!=t.drag}),i(e,t)})},initializeSelect2:function(){var i=this;function t(e,t){return e&&(i.options.debug&&console.debug("callback",e,t),(e="string"==typeof e?window[e]:e)(t))}i.options.formatResultCssClass=function(e){if(e.id)return"select2-option-"+e.id.toLowerCase().replace(/[ \:\)\(\[\]\{\}\_\+\=\&\*\%\#]/g,"-")},i.$el.select2(i.options),i.$el.on("select2-selected",function(e){t(i.options.onSelected,e)}),i.$el.on("select2-selecting",function(e){t(i.options.onSelecting,e)}),i.$el.on("select2-deselecting",function(e){t(i.options.onDeselecting,e)}),i.$el.on("select2-deselected",function(e){t(i.options.onDeselected,e)}),i.$select2=i.$el.parent().find(".select2-container"),i.$el.parent().off("close.plone-modal.patterns"),i.options.orderable&&i.$select2.addClass("select2-orderable")},opened:function(){return 1===r(".select2-dropdown-open",this.$el.parent()).length},init:function(){var s,e,t,i,a=this;a.options.allowNewItems=!a.options.hasOwnProperty("allowNewItems")||JSON.parse(a.options.allowNewItems),a.options.ajax||a.options.vocabularyUrl?(a.options.vocabularyUrl&&(a.options.multiple=void 0===a.options.multiple||a.options.multiple,a.options.ajax=a.options.ajax||{},a.options.ajax.url=a.options.vocabularyUrl,a.options.initSelection=function(e,t){var i=[],e=e.val();r(e.split(a.options.separator)).each(function(){var e=l.removeHTML(this);i.push({id:e,text:e})}),t(i)}),s="",a.options.ajax=r.extend({quietMillis:300,data:function(e,t){return{query:s=e,page_limit:10,page:t}},results:function(e,t){var i,n,o=e.results;return a.options.vocabularyUrl&&(i=[],r.each(e.results,function(e,t){i.push(t.id)}),o=[],n=""===s||0<=r.inArray(s,i),a.options.allowNewItems&&!n&&(s=l.removeHTML(s),o.push({id:s,text:s})),r.each(e.results,function(e,t){o.push(t)})),{results:o}}},a.options.ajax)):a.options.multiple&&a.$el.is("select")&&(e=a.$el.val()||[],t=r.map(a.$el.find("option"),function(e){return{text:r(e).html(),id:e.value}}),(i=r('<input type="hidden" />')).val(e.join(a.options.separator)),i.attr("class",a.$el.attr("class")),i.attr("name",a.$el.attr("name")),i.attr("id",a.$el.attr("id")),a.$orig=a.$el,a.$el.replaceWith(i),a.$el=i,a.options.data=t),a.initializeValues(),a.initializeTags(),a.initializeOrdering(),a.initializeSelect2()}})}),define("mockup-patterns-pickadate",["jquery","pat-base","mockup-utils","translate","picker","picker.date","picker.time","mockup-patterns-select2"],function(s,e,a,t){"use strict";return e.extend({name:"pickadate",trigger:".pat-pickadate",parser:"mockup",defaults:{separator:" ",date:{selectYears:!0,selectMonths:!0,formatSubmit:"yyyy-mm-dd",format:"yyyy-mm-dd",labelMonthNext:t("Next month"),labelMonthPrev:t("Previous month"),labelMonthSelect:t("Select a month"),labelYearSelect:t("Select a year"),clear:!1,close:!1,today:!1},time:{clear:!1},today:t("Today"),clear:t("Clear"),timezone:null,autoSetTimeOnDateChange:"+[0,0]",classWrapperName:"pattern-pickadate-wrapper",classSeparatorName:"pattern-pickadate-separator",classDateName:"pattern-pickadate-date",classDateWrapperName:"pattern-pickadate-date-wrapper",classTimeName:"pattern-pickadate-time",classTimeWrapperName:"pattern-pickadate-time-wrapper",classTimezoneName:"pattern-pickadate-timezone",classTimezoneWrapperName:"pattern-pickadate-timezone-wrapper",classClearName:"pattern-pickadate-clear",classNowName:"pattern-pickadate-now",placeholderDate:t("Enter date..."),placeholderTime:t("Enter time..."),placeholderTimezone:t("Enter timezone...")},parseTimeOffset:function(t){var e=void 0;0===t.indexOf("+")?t=t.split(e="+")[1]:0===t.indexOf("-")&&(t=t.
2670split(e="-")[1]);try{t=JSON.parse(t)}catch(e){t=void 0}if(!1===t)return!1;if(!0===t||!0!==Array.isArray(t))return[0,0];var i,n=parseInt(t[0],10)||0,o=parseInt(t[1],10)||0;return"+"!==e&&"-"!==e||(t=(i=new Date).getHours(),i=i.getMinutes(),"+"===e?(23<(n=t+n)&&(n=23),59<(o=i+o)&&(o=59)):"-"===e&&((n=t-n)<0&&(n=0),(o=i-o)<0&&(o=0))),[n,o]},init:function(){var t,i=this,e=i.$el.val().split(" "),n=e[0]||"",o=e[1]||"";!1===a.bool(i.options.date)&&(i.options.date=!1),!1===a.bool(i.options.time)&&(i.options.time=!1),i.options.autoSetTimeOnDateChange=i.parseTimeOffset(i.options.autoSetTimeOnDateChange),!1===i.options.date&&(o=e[0]),i.$el.hide(),i.$wrapper=s("<div/>").addClass(i.options.classWrapperName).insertAfter(i.$el),!1!==i.options.date&&(i.$date=s('<input type="text"/>').attr("placeholder",i.options.placeholderDate).attr("data-value",n).addClass(i.options.classDateName).appendTo(s("<div/>").addClass(i.options.classDateWrapperName).appendTo(i.$wrapper)).pickadate(s.extend(!0,{},i.options.date,{onSet:function(e){void 0!==e.select&&(i.$date.attr("data-value",e.select),!1!==i.options.autoSetTimeOnDateChange&&i.$time&&(i.$time.pickatime("picker").get("select")||i.$time.pickatime("picker").set("select",i.options.autoSetTimeOnDateChange)),!1!==i.options.time&&""===i.$time.attr("data-value")||i.updateValue.call(i)),e.hasOwnProperty("clear")&&(i.$el.val(""),i.$date.attr("data-value",""))}}))),!1!==i.options.time&&(i.options.time.formatSubmit="HH:i",i.$time=s('<input type="text"/>').attr("placeholder",i.options.placeholderTime).attr("data-value",o).addClass(i.options.classTimeName).appendTo(s("<div/>").addClass(i.options.classTimeWrapperName).appendTo(i.$wrapper)).pickatime(s.extend(!0,{},i.options.time,{onSet:function(e){void 0!==e.select&&(i.$time.attr("data-value",e.select),!1!==i.options.date&&""===i.$date.attr("data-value")||i.updateValue.call(i)),e.hasOwnProperty("clear")&&(i.$el.val(""),i.$time.attr("data-value",""))}})),"string"==typeof o&&"00"===o.substring(0,2)&&(i.$time.pickatime("picker").set("select",o.split(":")),i.$time.attr("data-value",o))),!1!==i.options.date&&!1!==i.options.time&&i.options.timezone&&(i.$separator=s("<span/>").addClass(i.options.classSeparatorName).html(" "===i.options.separator?"&nbsp;":i.options.separator).appendTo(i.$wrapper)),null!==i.options.timezone&&(i.$timezone=s('<input type="text"/>').addClass(i.options.classTimezoneName).appendTo(s("<div/>").addClass(i.options.classTimezoneWrapperName).appendTo(i.$wrapper)).patternSelect2(s.extend(!0,{placeholder:i.options.placeholderTimezone,width:"10em"},i.options.timezone,{multiple:!1})).on("change",function(e){void 0!==e.val&&(i.$timezone.attr("data-value",e.val),!1!==i.options.date&&""===i.$date.attr("data-value")||!1!==i.options.time&&""===i.$time.attr("data-value")||i.updateValue.call(i))}),(o=i.options.timezone.default)&&(i.options.timezone.data.some(function(e){return t=e.text===i.options.timezone.default}),t&&(i.$timezone.attr("data-value",o),i.$timezone.parent().find(".select2-chosen").text(o))),1===i.options.timezone.data.length&&(i.$timezone.attr("data-value",i.options.timezone.data[0].text),i.$timezone.parent().find(".select2-chosen").text(i.options.timezone.data[0].text),i.$timezone.select2("enable",!1))),a.bool(i.options.today)&&(i.$now=s('<button type="button" class="btn btn-xs btn-info" title="'+i.options.today+'"><span class="glyphicon glyphicon-time"></span></button>').addClass(i.options.classNowName).on("click",function(e){e.preventDefault();e=new Date;i.$date&&i.$date.data("pickadate").set("select",e),i.$time&&i.$time.data("pickatime").set("select",e),i.emit("updated")}).appendTo(i.$wrapper)),a.bool(i.options.clear)&&(i.$clear=s('<button type="button" class="btn btn-xs btn-danger" title="'+i.options.clear+'"><span class="glyphicon glyphicon-trash"></span></button>').addClass(i.options.classClearName).on("click",function(e){e.preventDefault(),i.$date&&i.$date.data("pickadate").clear(),i.$time&&i.$time.data("pickatime").clear(),i.emit("updated")}).appendTo(i.$wrapper))},updateValue:function(){var e,t,i,n,o=this,s="";!1!==o.options.date&&(t=o.$date.data("pickadate").component,i=o.$date.data("pickadate").get("select"),e=t.formats.toString,i&&(s+=e.apply(t,[o.options.date.formatSubmit,i]))),!1!==o.options.date&&!1!==o.options.time&&(s+=" "),!1!==o.options.time&&(t=o.$time.data("pickatime").component,n=o.$time.data("pickatime").get("select"),i=t.formats.toString,n&&(s+=i.apply(t,["HH:i",n]))),null===o.options.timezone||(n=" "+o.$timezone.attr("data-value"))&&(s+=n),o.$el.val(s),o.emit("updated")}})}),require(["mockup-patterns-inlinevalidation","mockup-patterns-pickadate"],function(){}),define("/Users/fred/buildouts/zeelandia52/develop/collective.anonymouseditpatterns/src/collective/anonymouseditpatterns/browser/static/js/anonymouseditpatterns.js",function(){});
2671//# sourceMappingURL=anonymouseditpatterns-compiled.min.js.map
2672!function(){function n(){}var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},e=t._,r=Array.prototype,a=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,l=r.slice,p=a.toString,o=a.hasOwnProperty,u=Array.isArray,c=Object.keys,s=Object.create,h=function(t){return t instanceof h?t:this instanceof h?void(this._wrapped=t):new h(t)};"undefined"==typeof exports||exports.nodeType?t._=h:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=h
2672),exports._=h),h.VERSION="1.9.1";function d(i,o,t){if(void 0===o)return i;switch(null==t?3:t){case 1:return function(t){return i.call(o,t)};case 3:return function(t,e,n){return i.call(o,t,e,n)};case 4:return function(t,e,n,r){return i.call(o,t,e,n,r)}}return function(){return i.apply(o,arguments)}}function y(t,e,n){return h.iteratee!==v?h.iteratee(t,e):null==t?h.identity:h.isFunction(t)?d(t,e,n):h.isObject(t)&&!h.isArray(t)?h.matcher(t):h.property(t)}var v;h.iteratee=v=function(t,e){return y(t,e,1/0)};function g(i,o){return o=null==o?i.length-1:+o,function(){for(var t=Math.max(arguments.length-o,0),e=Array(t),n=0;n<t;n++)e[n]=arguments[n+o];switch(o){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var r=Array(o+1);for(n=0;n<o;n++)r[n]=arguments[n];return r[o]=e,i.apply(this,r)}}function m(t){if(!h.isObject(t))return{};if(s)return s(t);n.prototype=t;var e=new n;return n.prototype=null,e}function w(e){return function(t){return null==t?void 0:t[e]}}function b(t,e){return null!=t&&o.call(t,e)}function x(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function j(t){var e=_(t);return"number"==typeof e&&0<=e&&e<=A}var A=Math.pow(2,53)-1,_=w("length");h.each=h.forEach=function(t,e,n){var r,i;if(e=d(e,n),j(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=h.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},h.map=h.collect=function(t,e,n){e=y(e,n);for(var r=!j(t)&&h.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=e(t[u],u,t)}return o};function E(l){return function(t,e,n,r){var i=3<=arguments.length;return function(t,e,n,r){var i=!j(t)&&h.keys(t),o=(i||t).length,a=0<l?0:o-1;for(r||(n=t[i?i[a]:a],a+=l);0<=a&&a<o;a+=l){var u=i?i[a]:a;n=e(n,t[u],u,t)}return n}(t,d(e,r,4),n,i)}}h.reduce=h.foldl=h.inject=E(1),h.reduceRight=h.foldr=E(-1),h.find=h.detect=function(t,e,n){var r=(j(t)?h.findIndex:h.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t[r]},h.filter=h.select=function(t,r,e){var i=[];return r=y(r,e),h.each(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i},h.reject=function(t,e,n){return h.filter(t,h.negate(y(e)),n)},h.every=h.all=function(t,e,n){e=y(e,n);for(var r=!j(t)&&h.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},h.some=h.any=function(t,e,n){e=y(e,n);for(var r=!j(t)&&h.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},h.contains=h.includes=h.include=function(t,e,n,r){return j(t)||(t=h.values(t)),"number"==typeof n&&!r||(n=0),0<=h.indexOf(t,e,n)},h.invoke=g(function(t,n,r){var i,o;return h.isFunction(n)?o=n:h.isArray(n)&&(i=n.slice(0,-1),n=n[n.length-1]),h.map(t,function(t){var e=o;if(!e){if(i&&i.length&&(t=x(t,i)),null==t)return;e=t[n]}return null==e?e:e.apply(t,r)})}),h.pluck=function(t,e){return h.map(t,h.property(e))},h.where=function(t,e){return h.filter(t,h.matcher(e))},h.findWhere=function(t,e){return h.find(t,h.matcher(e))},h.max=function(t,r,e){var n,i,o=-1/0,a=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var u=0,l=(t=j(t)?t:h.values(t)).length;u<l;u++)null!=(n=t[u])&&o<n&&(o=n);else r=y(r,e),h.each(t,function(t,e,n){i=r(t,e,n),(a<i||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},h.min=function(t,r,e){var n,i,o=1/0,a=1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var u=0,l=(t=j(t)?t:h.values(t)).length;u<l;u++)null!=(n=t[u])&&n<o&&(o=n);else r=y(r,e),h.each(t,function(t,e,n){((i=r(t,e,n))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},h.shuffle=function(t){return h.sample(t,1/0)},h.sample=function(t,e,n){if(null==e||n)return j(t)||(t=h.values(t)),t[h.random(t.length-1)];var r=j(t)?h.clone(t):h.values(t),i=_(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,a=0;a<e;a++){var u=h.random(a,o),l=r[a];r[a]=r[u],r[u]=l}return r.slice(0,e)},h.sortBy=function(t,r,e){var i=0;return r=y(r,e),h.pluck(h.map(t,function(t,e,n){return{value:t,index:i++,criteria:r(t,e,n)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};function O(a,e){return function(r,i,t){var o=e?[[],[]]:{};return i=y(i,t),h.each(r,function(t,e){var n=i(t,e,r);a(o,t,n)}),o}}h.groupBy=O(function(t,e,n){b(t,n)?t[n].push(e):t[n]=[e]}),h.indexBy=O(function(t,e,n){t[n]=e}),h.countBy=O(function(t,e,n){b(t,n)?t[n]++:t[n]=1});var k=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(t){return t?h.isArray(t)?l.call(t):h.isString(t)?t.match(k):j(t)?h.map(t,h.identity):h.values(t):[]},h.size=function(t){return null==t?0:j(t)?t.length:h.keys(t).length},h.partition=O(function(t,e,n){t[n?0:1].push(e)},!0),h.first=h.head=h.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:h.initial(t,t.length-e)},h.initial=function(t,e,n){return l.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},h.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:h.rest(t,Math.max(0,t.length-e))},h.rest=h.tail=h.drop=function(t,e,n){return l.call(t,null==e||n?1:e)},h.compact=function(t){return h.filter(t,Boolean)};var T=function(t,e,n,r){for(var i=(r=r||[]).length,o=0,a=_(t);o<a;o++){var u=t[o];if(j(u)&&(h.isArray(u)||h.isArguments(u)))if(e)for(var l=0,c=u.length;l<c;)r[i++]=u[l++];else T(u,e,n,r),i=r.length;else n||(r[i++]=u)}return r};h.flatten=function(t,e){return T(t,e,!1)},h.without=g(function(t,e){return h.difference(t,e)}),h.uniq=h.unique=function(t,e,n,r){h.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=y(n,r));for(var i=[],o=[],a=0,u=_(t);a<u;a++){var l=t[a],c=n?n(l,a,t):l;e&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=g(function(t){return h.uniq(T(t,!0,!0))}),h.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=_(t);r<i;r++){var o=t[r];
2672if(!h.contains(e,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},h.difference=g(function(t,e){return e=T(e,!0,!0),h.filter(t,function(t){return!h.contains(e,t)})}),h.unzip=function(t){for(var e=t&&h.max(t,_).length||0,n=Array(e),r=0;r<e;r++)n[r]=h.pluck(t,r);return n},h.zip=g(h.unzip),h.object=function(t,e){for(var n={},r=0,i=_(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n};function I(o){return function(t,e,n){e=y(e,n);for(var r=_(t),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(e(t[i],i,t))return i;return-1}}h.findIndex=I(1),h.findLastIndex=I(-1),h.sortedIndex=function(t,e,n,r){for(var i=(n=y(n,r,1))(e),o=0,a=_(t);o<a;){var u=Math.floor((o+a)/2);n(t[u])<i?o=u+1:a=u}return o};function S(o,a,u){return function(t,e,n){var r=0,i=_(t);if("number"==typeof n)0<o?r=0<=n?n:Math.max(n+i,r):i=0<=n?Math.min(n+1,i):n+i+1;else if(u&&n&&i)return t[n=u(t,e)]===e?n:-1;if(e!=e)return 0<=(n=a(l.call(t,r,i),h.isNaN))?n+r:-1;for(n=0<o?r:i-1;0<=n&&n<i;n+=o)if(t[n]===e)return n;return-1}}h.indexOf=S(1,h.findIndex,h.sortedIndex),h.lastIndexOf=S(-1,h.findLastIndex),h.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||(e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i},h.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(l.call(t,r,r+=e));return n};function F(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=m(t.prototype),a=t.apply(o,i);return h.isObject(a)?a:o}h.bind=g(function(e,n,r){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var i=g(function(t){return F(e,i,n,this,r.concat(t))});return i}),h.partial=g(function(i,o){var a=h.partial.placeholder,u=function(){for(var t=0,e=o.length,n=Array(e),r=0;r<e;r++)n[r]=o[r]===a?arguments[t++]:o[r];for(;t<arguments.length;)n.push(arguments[t++]);return F(i,u,this,this,n)};return u}),(h.partial.placeholder=h).bindAll=g(function(t,e){var n=(e=T(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=h.bind(t[r],t)}}),h.memoize=function(r,i){var o=function(t){var e=o.cache,n=""+(i?i.apply(this,arguments):t);return b(e,n)||(e[n]=r.apply(this,arguments)),e[n]};return o.cache={},o},h.delay=g(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(n,r,i){var o,a,u,l,c=0;i=i||{};function s(){c=!1===i.leading?0:h.now(),o=null,l=n.apply(a,u),o||(a=u=null)}function t(){var t=h.now();c||!1!==i.leading||(c=t);var e=r-(t-c);return a=this,u=arguments,e<=0||r<e?(o&&(clearTimeout(o),o=null),c=t,l=n.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(s,e)),l}return t.cancel=function(){clearTimeout(o),c=0,o=a=u=null},t},h.debounce=function(n,r,i){function o(t,e){a=null,e&&(u=n.apply(t,e))}var a,u,t=g(function(t){if(a&&clearTimeout(a),i){var e=!a;a=setTimeout(o,r),e&&(u=n.apply(this,t))}else a=h.delay(o,r,this,t);return u});return t.cancel=function(){clearTimeout(a),a=null},t},h.wrap=function(t,e){return h.partial(e,t)},h.negate=function(t){return function(){return!t.apply(this,arguments)}},h.compose=function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},h.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},h.before=function(t,e){var n;return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},h.once=h.partial(h.before,2),h.restArguments=g;function M(t,e){var n=L.length,r=t.constructor,i=h.isFunction(r)&&r.prototype||a,o="constructor";for(b(t,o)&&!h.contains(e,o)&&e.push(o);n--;)(o=L[n])in t&&t[o]!==i[o]&&!h.contains(e,o)&&e.push(o)}var N=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];h.keys=function(t){if(!h.isObject(t))return[];if(c)return c(t);var e=[];for(var n in t)b(t,n)&&e.push(n);return N&&M(t,e),e},h.allKeys=function(t){if(!h.isObject(t))return[];var e=[];for(var n in t)e.push(n);return N&&M(t,e),e},h.values=function(t){for(var e=h.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},h.mapObject=function(t,e,n){e=y(e,n);for(var r=h.keys(t),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=e(t[u],u,t)}return o},h.pairs=function(t){for(var e=h.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},h.invert=function(t){for(var e={},n=h.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},h.functions=h.methods=function(t){var e=[];for(var n in t)h.isFunction(t[n])&&e.push(n);return e.sort()};function P(l,c){return function(t){var e=arguments.length;if(c&&(t=Object(t)),e<2||null==t)return t;for(var n=1;n<e;n++)for(var r=arguments[n],i=l(r),o=i.length,a=0;a<o;a++){var u=i[a];c&&void 0!==t[u]||(t[u]=r[u])}return t}}h.extend=P(h.allKeys),h.extendOwn=h.assign=P(h.keys),h.findKey=function(t,e,n){e=y(e,n);for(var r,i=h.keys(t),o=0,a=i.length;o<a;o++)if(e(t[r=i[o]],r,t))return r};function q(t,e,n){return e in n}var R,C;h.pick=g(function(t,e){var n={},r=e[0];if(null==t)return n;
2672h.isFunction(r)?(1<e.length&&(r=d(r,e[1])),e=h.allKeys(t)):(r=q,e=T(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var a=e[i],u=t[a];r(u,a,t)&&(n[a]=u)}return n}),h.omit=g(function(t,n){var e,r=n[0];return h.isFunction(r)?(r=h.negate(r),1<n.length&&(e=n[1])):(n=h.map(T(n,!1,!1),String),r=function(t,e){return!h.contains(n,e)}),h.pick(t,r,e)}),h.defaults=P(h.allKeys,!0),h.create=function(t,e){var n=m(t);return e&&h.extendOwn(n,e),n},h.clone=function(t){return h.isObject(t)?h.isArray(t)?t.slice():h.extend({},t):t},h.tap=function(t,e){return e(t),t},h.isMatch=function(t,e){var n=h.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0},R=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"==i||"object"==i||"object"==typeof e)&&C(t,e,n,r)},C=function(t,e,n,r){t instanceof h&&(t=t._wrapped),e instanceof h&&(e=e._wrapped);var i=p.call(t);if(i!==p.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return f.valueOf.call(t)===f.valueOf.call(e)}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,u=e.constructor;if(a!==u&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===t)return r[l]===e;if(n.push(t),r.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!R(t[l],e[l],n,r))return!1}else{var c,s=h.keys(t);if(l=s.length,h.keys(e).length!==l)return!1;for(;l--;)if(c=s[l],!b(e,c)||!R(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(t,e){return R(t,e)},h.isEmpty=function(t){return null==t||(j(t)&&(h.isArray(t)||h.isString(t)||h.isArguments(t))?0===t.length:0===h.keys(t).length)},h.isElement=function(t){return!(!t||1!==t.nodeType)},h.isArray=u||function(t){return"[object Array]"===p.call(t)},h.isObject=function(t){var e=typeof t;return"function"==e||"object"==e&&!!t},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return p.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(t){return b(t,"callee")});var B=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(h.isFunction=function(t){return"function"==typeof t||!1}),h.isFinite=function(t){return!h.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},h.isNaN=function(t){return h.isNumber(t)&&isNaN(t)},h.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===p.call(t)},h.isNull=function(t){return null===t},h.isUndefined=function(t){return void 0===t},h.has=function(t,e){if(!h.isArray(e))return b(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!o.call(t,i))return!1;t=t[i]}return!!n},h.noConflict=function(){return t._=e,this},h.identity=function(t){return t},h.constant=function(t){return function(){return t}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return x(t,e)}:w(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?x(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(t,e,n){var r=Array(Math.max(0,t));e=d(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},h.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},h.now=Date.now||function(){return(new Date).getTime()};function W(e){function n(t){return e[t]}var t="(?:"+h.keys(e).join("|")+")",r=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}}var D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},$=h.invert(D);h.escape=W(D),h.unescape=W($),h.result=function(t,e,n){h.isArray(e)||(e=[e]);var r=e.length;if(!r)return h.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=h.isFunction(o)?o.call(t):o}return t};var U=0;h.uniqueId=function(t){var e=++U+"";return t?t+e:e},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function z(t){return"\\"+G[t]}var Q=/(.)^/,G={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g;h.template=function(o,t,e){!t&&e&&(t=e),t=h.defaults({},t,h.templateSettings);var n,r=RegExp([(t.escape||Q).source,(t.interpolate||Q).source,(t.evaluate||Q).source].join("|")+"|$","g"),a=0,u="__p+='";o.replace(r,function(t,e,n,r,i){return u+=o.slice(a,i).replace(H,z),a=i+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?u+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(u+="';\n"+r+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{n=new Function(t.variable||"obj","_",u)}catch(t){throw t.source=u,t}function i(t){return n.call(this,t,h)}var l=t.variable||"obj";return i.source="function("+l+"){\n"+u+"}",i},h.chain=function(t){var e=h(t);return e._chain=!0,e};function K(t,e){return t._chain?h(e).chain():e}h.mixin=function(n){return h.each(h.functions(n),function(t){var e=h[t]=n[t];h.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),K(this,e.apply(h,t))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=r[e];h.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],K(this,t)}}),h.each(["concat","join","slice"],function(t){var e=r[t];h.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}(),function(){var t,n;Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function e(){}function n(){return i.apply(this instanceof e&&t?this:t,r.concat(Array.prototype.slice.call(arguments)))}
2672var r=Array.prototype.slice.call(arguments,1),i=this;return e.prototype=this.prototype,n.prototype=new e,n});var i={DEBUG:10,INFO:20,WARN:30,ERROR:40,FATAL:50};function e(){}function r(){}function o(t,e){this._loggers={},this.name=t||"",this._parent=e||null,e||(this._enabled=!0,this._level=i.WARN)}function a(t){n=t}e.prototype={output:function(t,e,n){if(void 0!==window.console&&void 0!==console.log){t&&n.unshift(t+":");var r=n.join(" ");console.info,e<=i.DEBUG?(r="[DEBUG] "+r,console.log(r)):e<=i.INFO?console.info(r):e<=i.WARN?console.warn(r):console.error(r)}}},r.prototype={output:function(t,e,n){t&&n.unshift(t+":"),e<=i.DEBUG?(n.unshift("[DEBUG]"),console.log.apply(console,n)):e<=i.INFO?console.info.apply(console,n):e<=i.WARN?console.warn.apply(console,n):console.error.apply(console,n)}},o.prototype={getLogger:function(t){for(var e=t.split("."),n=this,r=this.name?[this.name]:[];e.length;){var i=e.shift();r.push(i),i in n._loggers||(n._loggers[i]=new o(r.join("."),n)),n=n._loggers[i]}return n},_getFlag:function(t){var e=this;for(t="_"+t;null!==e;){if(void 0!==e[t])return e[t];e=e._parent}return null},setEnabled:function(t){this._enabled=!!t},isEnabled:function(){this._getFlag("enabled")},setLevel:function(t){"number"==typeof t?this._level=t:"string"==typeof t&&(t=t.toUpperCase())in i&&(this._level=i[t])},getLevel:function(){return this._getFlag("level")},log:function(t,e){!e.length||!this._getFlag("enabled")||t<this._getFlag("level")||(e=Array.prototype.slice.call(e),n.output(this.name,t,e))},debug:function(){this.log(i.DEBUG,arguments)},info:function(){this.log(i.INFO,arguments)},warn:function(){this.log(i.WARN,arguments)},error:function(){this.log(i.ERROR,arguments)},fatal:function(){this.log(i.FATAL,arguments)}},window.console&&window.console.log&&"function"==typeof window.console.log.apply?a(new r):a(new e),t=new o;for(var u,l=/loglevel(|-[^=]+)=([^&]+)/g;null!==(u=l.exec(window.location.search));){(""===u[1]?t:t.getLogger(u[1].slice(1))).setLevel(u[2].toUpperCase())}var c={Level:i,getLogger:t.getLogger.bind(t),setEnabled:t.setEnabled.bind(t),isEnabled:t.isEnabled.bind(t),setLevel:t.setLevel.bind(t),getLevel:t.getLevel.bind(t),debug:t.debug.bind(t),info:t.info.bind(t),warn:t.warn.bind(t),error:t.error.bind(t),fatal:t.fatal.bind(t),getWriter:function(){return n},setWriter:a};"function"==typeof define?define("logging",[],function(){return c}):window.logging=c}(),define("pat-logger",["logging"],function(t){return t.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(t){"use strict";function e(t){void 0===t&&(t=window.navigator.userAgent),t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0<=t.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],n=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[],r={},i={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",versionNumber:e[4]||e[2]||"0",platform:n[0]||""};if(i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){i.browser="msie",r.msie=!0}if(r.edge){delete r.edge;i.browser="msedge",r.msedge=!0}if(r.safari&&r.blackberry){var o="blackberry";r[i.browser=o]=!0}if(r.safari&&r.playbook){var a="playbook";r[i.browser=a]=!0}if(r.bb){var u="blackberry";r[i.browser=u]=!0}if(r.opr){i.browser="opera",r.opera=!0}if(r.safari&&r.android){var l="android";r[i.browser=l]=!0}if(r.safari&&r.kindle){i.browser="kindle",r.kindle=!0}if(r.safari&&r.silk){i.browser="silk",r.silk=!0}return r.name=i.browser,r.platform=i.platform,r}return window.jQBrowser=e(window.navigator.userAgent),window.jQBrowser.uaMatch=e,t&&(t.browser=window.jQBrowser),window.jQBrowser}),define("pat-utils",["jquery","underscore","jquery.browser"],function(o,a){o.fn.safeClone=function(){var t=this.clone();return void 0!==o.browser.msie&&t.findInclusive(":input[placeholder]").each(function(t,e){var n=o(e);n.attr("placeholder")===n.val()&&n.val("")}
2672),t},Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,r;if(null===this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(n=e),r=0;r<o;){var a;r in i&&(a=i[r],t.call(n,a,r,i)),r++}});function u(t){var e=typeof t;return"function"==e||"object"==e&&!!t}var l={none:{hide:"hide",show:"show"},fade:{hide:"fadeOut",show:"fadeIn"},slide:{hide:"slideUp",show:"slideDown"}};return isElementInViewport=function(t,e,n){if(t===[])return!1;t instanceof o&&(t=t[0]);var r=t.getBoundingClientRect(),i=[r.top,r.bottom,r.left,r.right];return!a.every(i,function(t){if(0===t)return!0})&&(e?(void 0===n&&(n=0),r.top<=0+n&&r.bottom>=0+n):0<=r.top&&0<=r.left&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth))},{jqueryPlugin:function(n){return function(t,e){return 0===this.length?this:("object"==typeof t&&(e=t,t=void 0),"function"==typeof n?function(n,r,i){return this.each(function(){var t,e=o(this);if(t=n.init(e,i),r){if(void 0===t[r])return o.error("Method "+r+" does not exist on jQuery."+n.name),!1;if("_"===r.charAt(0))return o.error("Method "+r+" is private on jQuery."+n.name),!1;t[r].apply(t,[i])}}),this}.call(this,n,t,e):function(t,e,n){var r=this;if(e){if(t[e])return t[e].apply(r,[r].concat([n]));o.error("Method "+e+" does not exist on jQuery."+t.name)}else t.init.apply(r,[r].concat([n]));return r}.call(this,n,t,e))}},debounce:function(n,r){var i;return function(){var t=this,e=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n.apply(t,e)},r)}},escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isObject:u,extend:function(t){if(!u(t))return t;for(var e,n,r=1,i=arguments.length;r<i;r++)for(n in e=arguments[r])hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},rebaseURL:function(t,e){return-1!==e.indexOf("://")||"/"===e[0]?e:t.slice(0,t.lastIndexOf("/")+1)+e},findLabel:function(t){for(var e,n=t.parentNode;n&&11!==n.nodeType;n=n.parentNode)if("LABEL"===n.tagName)return n;return t.id&&(e=o('label[for="'+t.id+'"]')),e&&0===e.length&&t.form&&(e=o('label[for="'+t.name+'"]',t.form)),e&&e.length?e[0]:null},elementInViewport:function(t){var e=t.getBoundingClientRect(),n=document.documentElement,r=window.innerWidth||n.clientWidth,i=window.innerHeight||n.clientHeight;return!(e.right<0||e.bottom<0||e.left>r||e.top>i)},removeWildcardClass:function(t,e){if(-1===e.indexOf("*"))t.removeClass(e);else{var i=e.replace(/[\-\[\]{}()+?.,\\\^$|#\s]/g,"\\$&");i=i.replace(/[*]/g,".*"),i=new RegExp("^"+i+"$"),t.filter("[class]").each(function(){for(var t=o(this),e=t.attr("class").split(/\s+/),n=[],r=0;r<e.length;r++)i.test(e[r])||n.push(e[r]);n.length?t.attr("class",n.join(" ")):t.removeAttr("class")})}},hideOrShow:function(t,e,n,r){var i="css"===n.transition||"none"===n.transition?null:n.effect.duration;function o(){t.removeClass("in-progress").addClass(e?"visible":"hidden").trigger("pat-update",{pattern:r,transition:"complete"})}if(t.removeClass("visible hidden in-progress"),i){var a=l[n.transition];t.addClass("in-progress").trigger("pat-update",{pattern:r,transition:"start"}),t[e?a.show:a.hide]({duration:i,easing:n.effect.easing,complete:o})}else"css"!==n.transition&&t[e?"show":"hide"](),o()},addURLQueryParameter:function(t,e,n){var r=new RegExp("(\\?|\\&)"+e+"=.*?(?=(&|$))"),i=t.toString().split("#"),o=i[0],a=i[1],u=o;return u=r.test(o)?o.replace(r,"$1"+e+"="+n):/\?.+$/.test(o)?o+"&"+e+"="+n:o+"?"+e+"="+n,a&&(u+="#"+a),u},removeDuplicateObjects:function(t){return a.reduce(t,function(t,e){var n=!1;return a.each(t,function(t){n=a.keys(t).length===a.keys(e).length&&!a.chain(t).omit(function(t,e){return this[e]===t}.bind(e)).keys().value().length}),n||t.push(e),t},[])},mergeStack:function(t,r){for(var i=[],e=0;e<r;e++)i.push({});return a.each(t,function(t){for(var e=t.length-1,n=0;n<r;n++)i[n]=o.extend(i[n]||{},t[e<n?e:n])}),i},isElementInViewport:isElementInViewport}}),define("pat-compat",[],function(){var i,o,a,u;Array.prototype.every||(Array.prototype.every=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var r=arguments[1],i=0;i<n;i++)if(i in e&&!t.call(r,e[i],i,e))return!1;return!0}),Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var r=[],i=arguments[1],o=0;o<n;o++)if(o in e){var a=e[o];t.call(i,a,o,e)&&r.push(a)}return r}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,r;if(null===this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("[object Function]"!=={}.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),r=0;r<o;){var a;r in i&&(a=i[r],t.call(n,a,r,i)),r++}}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0==n)return-1;var r=0;if(0<arguments.length&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(0<r||-1)*Math.floor(Math.abs(r)))),n<=r)return-1;for(var i=0<=r?r:Math.max(n-Math.abs(r),0);i<n;i++)if(i in e&&e[i]===t)return i;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0==n)return-1;var r=n;1<arguments.length&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(0<r||-1)*Math.floor(Math.abs(r))));for(var i=0<=r?Math.min(r,n-1):n-Math.abs(r);0<=i;i--)if(i in e&&e[i]===t)return i;return-1}),Array.prototype.map||(Array.prototype.map=function(t,e){var n,r,i;if(null===this)throw new TypeError(" this is null or not defined");var o=Object(this),a=o.length>>>0;if("[object Function]"!=={}.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),r=new Array(a),i=0;i<a;){var u,l;i in o&&(u=o[i],l=t.call(n,u,i,o),r[i]=l),i++}
2672return r}),Array.prototype.reduce||(Array.prototype.reduce=function(t,e){if(null==this)throw new TypeError("Object is null or undefined");var n,r=0,i=this.length>>0;if("function"!=typeof t)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");n=this[0],r=1}else n=e;for(;r<i;)r in this&&(n=t.call(void 0,n,this[r],r,this)),++r;return n}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;if(0==n&&1===arguments.length)throw new TypeError;var r,i=n-1;if(2<=arguments.length)r=arguments[1];else for(;;){if(i in this){r=this[i--];break}if(--i<0)throw new TypeError}for(;0<=i;)i in e&&(r=t.call(void 0,r,e[i],i,e)),i--;return r}),Array.prototype.some||(Array.prototype.some=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var r=arguments[1],i=0;i<n;i++)if(i in e&&t.call(r,e[i],i,e))return!0;return!1}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function e(){}function n(){return i.apply(this instanceof e&&t?this:t,r.concat(Array.prototype.slice.call(arguments)))}var r=Array.prototype.slice.call(arguments,1),i=this;return e.prototype=this.prototype,n.prototype=new e,n}),Object.keys||(Object.keys=(i=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),u=(a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on non-object");var e=[];for(var n in t)i.call(t,n)&&e.push(n);if(o)for(var r=0;r<u;r++)i.call(t,a[r])&&e.push(a[r]);return e}))}),define("pat-jquery-ext",["jquery"],function(s){var r={init:function(e){var n={time:3,initialTime:8,exceptionAreas:[]};return this.each(function(){var t=s(this);t.data("timeout")||(e&&s.extend(n,e),t.data("timeout",{lastEvent:new Date,trueTime:n.time,time:n.initialTime,untouched:!0,inExceptionArea:!1}),t.bind("mouseover.timeout",r.mouseMoved),t.bind("mouseenter.timeout",r.mouseMoved),s(n.exceptionAreas).each(function(){t.find(this).live("mouseover.timeout",{parent:t},r.enteredException).live("mouseleave.timeout",{parent:t},r.leftException)}),0<n.initialTime?t.timeout("startTimer"):t.addClass("timeout"))})},enteredException:function(t){var e=t.data.parent.data("timeout");e.inExceptionArea=!0,t.data.parent.data("timeout",e),t.data.parent.trigger("mouseover")},leftException:function(t){var e=t.data.parent.data("timeout");e.inExceptionArea=!1,t.data.parent.data("timeout",e)},destroy:function(){return this.each(function(){var t=s(this),e=t.data("timeout");s(window).unbind(".timeout"),e.timeout.remove(),t.removeData("timeout")})},mouseMoved:function(){var t=s(this),e=t.data("timeout");t.hasClass("timeout")?(t.removeClass("timeout"),t.timeout("startTimer")):e.untouched&&(e.untouched=!1,e.time=e.trueTime),e.lastEvent=new Date,t.data("timeout",e)},startTimer:function(){var r=s(this),t=r.data("timeout"),i=function(){var t=r.data("timeout");if(t&&t.lastEvent)if(t.inExceptionArea)setTimeout(i,Math.floor(1e3*t.time));else{var e=new Date,n=Math.floor(1e3*t.time)-(e-t.lastEvent);0<n?setTimeout(i,100+n):r.addClass("timeout")}};setTimeout(i,Math.floor(1e3*t.time))}};s.fn.timeout=function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void s.error("Method "+t+" does not exist on jQuery.timeout"):r.init.apply(this,arguments)},s.extend(s.expr[":"],{scrollable:function(t){return"scroll"===s(t).css("overflow")||"scroll"===s(t).css("overflowX")||"scroll"===s(t).css("overflowY")||(t.clientHeight<t.scrollHeight&&(-1!==s.inArray(s(t).css("overflowY"),["scroll","auto"])||-1!==s.inArray(s(t).css("overflow"),["scroll","auto"]))||t.clientWidth<t.scrollWidth&&(-1!==s.inArray(s(t).css("overflowX"),["scroll","auto"])||-1!==s.inArray(s(t).css("overflow"),["scroll","auto"])))}}),s.fn.makeVisibleInScroll=function(t){var a=null;return"string"==typeof t?a=s("#"+t):t&&(a=s(t)),this.each(function(){var t,e=s(this);t=a||(0<(t=e.parents(":scrollable")).length?s(t[0]):s(window));var n=e.position().top,r=e.height()+n,i=t.scrollTop(),o=t.height()+i;n<i?t.scrollTop(n):r>o-t.height()/2&&t.scrollTop(n-(t.height()-e.height())/2)})},s.fn.setPositionAbsolute=function(u,l,c){return this.each(function(){var t=s(this),e=s(this).width(),n=u.offset(),r=u.width(),i=u.height(),o=n.left+r-e+c,a=n.top+i+l;t.css({"z-index":1,position:"absolute",marginLeft:0,marginTop:0,left:o+"px",top:a+"px",width:e}),t.remove().appendTo("body").show()})},s.fn.positionAncestor=function(a){var u=0,l=0;return this.each(function(){var t=s(this).closest(a);if(t.length&&"static"!==t.css("position")){var e=s(this),n=e.offset().left-parseInt(e.css("marginLeft"),10),r=e.offset().top-parseInt(e.css("marginTop"),10),i=t.offset().left+parseInt(t.css("borderLeftWidth"),10),o=t.offset().top+parseInt(t.css("borderTopWidth"),
267210);return u=n-i,l=r-o,!1}}),{left:u,top:l}},String.prototype.startsWith=function(t){return null!==this.match("^"+t)},String.prototype.endsWith=function(t){return null!==this.match(t+"$")},s.simplePlaceholder={placeholder_class:null,hide_placeholder:function(){var t=s(this);t.val()===t.attr("placeholder")&&t.val("").removeClass(s.simplePlaceholder.placeholder_class)},show_placeholder:function(){var t=s(this);""===t.val()&&t.val(t.attr("placeholder")).addClass(s.simplePlaceholder.placeholder_class)},prevent_placeholder_submit:function(){return s(this).find(".simple-placeholder").each(function(){var t=s(this);t.val()===t.attr("placeholder")&&t.val("")}),!0}},s.fn.simplePlaceholder=function(t){if(void 0===document.createElement("input").placeholder){var e={placeholder_class:"placeholding"};t&&s.extend(e,t),s.simplePlaceholder.placeholder_class=e.placeholder_class,this.each(function(){var t=s(this);t.focus(s.simplePlaceholder.hide_placeholder),t.blur(s.simplePlaceholder.show_placeholder),""===t.val()&&(t.val(t.attr("placeholder")),t.addClass(s.simplePlaceholder.placeholder_class)),t.addClass("simple-placeholder"),s(this.form).submit(s.simplePlaceholder.prevent_placeholder_submit)})}return this},s.fn.findInclusive=function(t){return this.find("*").addBack().filter(t)},s.fn.slideIn=function(t,e,n){return this.animate({width:"show"},t,e,n)},s.fn.slideOut=function(t,e,n){return this.animate({width:"hide"},t,e,n)},s.expr[":"].Contains=function(t,e,n){return 0<=s(t).text().toUpperCase().indexOf(n[3].toUpperCase())},s.fn.scopedFind=function(t){return t.startsWith("#")?s(t):this.find(t)}}),define("pat-registry",["jquery","underscore","pat-logger","pat-utils","pat-compat","pat-jquery-ext"],function(o,a,u,r){for(var t,i=u.getLogger("registry"),e=/patterns-disable=([^&]+)/g,n=/patterns-dont-catch/g,l=!1,c={};null!==(t=e.exec(window.location.search));)c[t[1]]=!0,i.info("Pattern disabled via url config:",t[1]);for(;null!==(t=n.exec(window.location.search));)l=!0,i.info("I will not catch init exceptions");var s={patterns:{},initialized:!1,init:function(){o(document).ready(function(){i.info("loaded: "+Object.keys(s.patterns).sort().join(", ")),s.scan(document.body),s.initialized=!0,i.info("finished initial scan.")})},clear:function(){this.patterns={}},transformPattern:function(e,t){if(c[e])i.debug("Skipping disabled pattern:",e);else{var n=s.patterns[e];if(n.transform)try{n.transform(o(t))}catch(t){if(l)throw t;i.error("Transform error for pattern"+e,t)}}},initPattern:function(t,e,n){var r=o(e),i=s.patterns[t];if(i.init&&(plog=u.getLogger("pat."+t),r.is(i.trigger))){plog.debug("Initialising:",r);try{i.init(r,null,n),plog.debug("done.")}catch(t){if(l)throw t;plog.error("Caught error:",t)}}},orderPatterns:function(t){return a.contains(t,"validation")&&a.contains(t,"inject")&&(t.splice(t.indexOf("validation"),1),t.unshift("validation")),t},scan:function(t,n,r){var i=[];(n=this.orderPatterns(n||Object.keys(s.patterns))).forEach(a.partial(this.transformPattern,a,t)),n=a.each(n,function(t){var e=s.patterns[t];e.trigger&&i.unshift(e.trigger)}),o(t).findInclusive(i.join(",")).filter(function(){return 0===o(this).parents("pre").length}).filter(":not(.cant-touch-this)").toArray().reduceRight(function(t,e){n.forEach(a.partial(this.initPattern,a,e,r))}.bind(this),null),o("body").addClass("patterns-loaded")},register:function(t,e){var n;return(e=e||t.name)?s.patterns[e]?(i.error("Already have a pattern called: "+e),!1):((s.patterns[e]=t).jquery_plugin&&(n=("pat-"+e).replace(/-([a-zA-Z])/g,function(t,e){return e.toUpperCase()}),o.fn[n]=r.jqueryPlugin(t),o.fn[n.replace(/^pat/,"pattern")]=o.fn[n]),i.debug("Registered pattern:",e,t),s.initialized&&s.scan(document.body,[e]),!0):(i.error("Pattern lacks a name:",t),!1)}};return s}),define("pat-mockup-parser",["jquery"],function(a){"use strict";return{getOptions:function t(e,n,r){r=r||{},0===e.length||a.nodeName(e[0],"body")||(r=t(e.parent(),n,r));var i={};if(0!==e.length&&(i=e.data("pat-"+n))&&"string"==typeof i){var o={};a.each(i.split(";"),function(t,e){(e=e.split(":")).reverse();var n=e.pop();n=n.replace(/^\s+|\s+$/g,""),e.reverse();var r=e.join(":");r=r.replace(/^\s+|\s+$/g,""),o[n]=r}),i=o}return a.extend(!0,{},r,i)}}}),define("pat-base",["jquery","pat-registry","pat-mockup-parser","pat-logger"],function(i,a,u,l){"use strict";function o(t,e,n){var r=this.prototype.name,i=l.getLogger("pat."+r),o=t.data("pattern-"+r);if(void 0===o&&a.patterns[r]){try{e="mockup"===this.prototype.parser?u.getOptions(t,r,e):e,o=new a.patterns[r](t,e,n)}catch(t){i.error("Failed while initializing '"+r+"' pattern.",t)}t.data("pattern-"+r,o)}return o}function c(t,e,n){this.$el=t,this.options=i.extend(!0,{},this.defaults||{},e||{}
2672),this.init(t,e,n),this.emit("init")}var s=l.getLogger("Patternslib Base");return c.prototype={constructor:c,on:function(t,e){this.$el.on(t+"."+this.name+".patterns",e)},emit:function(t,e){void 0===e&&(e=[]),this.$el.trigger(t+"."+this.name+".patterns",e)}},c.extend=function(t){var e,n=this;if(!t)throw new Error("Pattern configuration properties required when calling Base.extend");(e=t.hasOwnProperty("constructor")?t.constructor:function(){n.apply(this,arguments)}).extend=c.extend,e.init=o,e.jquery_plugin=!0,e.trigger=t.trigger;function r(){this.constructor=e}return r.prototype=n.prototype,e.prototype=new r,i.extend(!0,e.prototype,t),e.__super__=n.prototype,t.name?t.trigger?a.register(e,t.name):s.warn("The pattern '"+t.name+"' does not have a trigger attribute, it will not be registered."):s.warn("This pattern without a name attribute will not be registered!"),e},c}),window.jQuery&&define("jquery",[],function(){"use strict";return window.jQuery.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),window.jQuery}),require(["jquery","pat-registry","pat-base","pat-logger","pat-mockup-parser"],function(i,t){"use strict";window.parent!==window&&"IFRAME"!==window.frameElement.nodeName||i(document).ready(function(){i("body").addClass("pat-plone"),t.initialized||t.init()}),i(document).ready(function(){!0!=("selected"===i("#form-widgets-use_cookie_negotiation > input").value)?i("#formfield-form-widgets-authenticated_users_only").hide():i("#formfield-form-widgets-authenticated_users_only").show()}),i(document).ready(function(){function t(t){var e=i("#form-widgets-highpixeldensity_scales option:selected").attr("value"),n=i('div[data-fieldname="form.widgets.quality_2x"]'),r=i('div[data-fieldname="form.widgets.quality_3x"]');"disabled"==e?(n.fadeOut(),r.fadeOut()):"2x"==e?(n.fadeIn(),r.fadeOut()):"3x"==e&&(n.fadeIn(),r.fadeIn())}i("#ImagingSettings")&&(i('div[data-fieldname="form.widgets.quality_2x"]').hide(),i('div[data-fieldname="form.widgets.quality_3x"]').hide(),t(),i("#form-widgets-highpixeldensity_scales").change(t))})}),define("/home/_thet/data/dev/plone/buildout.coredev/src/plone.staticresources/src/plone/staticresources/static/plone-base.js",function(){});
2673//# sourceMappingURL=plone-base-compiled.min.js.map
2674!function(n){"use strict";"function"==typeof define&&define.amd?define("datatables.net",["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e=e||("undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e,t,t.document)}:n(jQuery,window,document)}(function(z,D,y,U){"use strict";function r(t){return!t||!0===t||"-"===t}function h(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function a(t,e){return n[e]||(n[e]=new RegExp(Ct(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(n[e],"."):t}function o(t,e,n){var o="string"==typeof t;return!!r(t)||(e&&o&&(t=a(t,e)),n&&o&&(t=t.replace(u,"")),!isNaN(parseFloat(t))&&isFinite(t))}function l(t,e,n){return!!r(t)||(function(t){return r(t)||"string"==typeof t}(t)&&!!o(f(t),e,n)||null)}function m(t,e,n,o){var r=[],a=0,l=e.length;if(o!==U)for(;a<l;a++)t[e[a]][n]&&r.push(t[e[a]][n][o]);else for(;a<l;a++)r.push(t[e[a]][n]);return r}function p(t,e){var n,o=[];e===U?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)o.push(r);return o}function g(t){for(var e=[],n=0,o=t.length;n<o;n++)t[n]&&e.push(t[n]);return e}var b,v,e,t,S=function(C){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new v(t?ae(this[b.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),o=z.isArray(t)&&(z.isArray(t[0])||z.isPlainObject(t[0]))?n.rows.add(t):n.row.add(t);return e!==U&&!e||n.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],o=n.oScroll;t===U||t?e.draw(!1):""===o.sX&&""===o.sY||Mt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();t!==U&&!t||e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var o=this.api(!0),r=o.rows(t),a=r.settings()[0],l=a.aoData[r[0][0]];return r.remove(),e&&e.call(this,a,l),n!==U&&!n||o.draw(),l},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,o,r,a){var l=this.api(!0);null===e||e===U?l.search(t,n,o,a):l.column(e).search(t,n,o,a),l.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t===U)return n.data().toArray();var o=t.nodeName?t.nodeName.toLowerCase():"";return e!==U||"td"==o||"th"==o?n.cell(t,e).data():n.row(t).data()||null},this.fnGetNodes=function(t){var e=this.api(!0);return t!==U?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"!=n&&"TH"!=n)return null;var o=e.cell(t).index();return[o.row,o.columnVisible,o.column]},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);e!==U&&!e||n.draw(!1)}
vendor: 30,112 bytes, line 2674
2674,this.fnSetColumnVis=function(t,e,n){var o=this.api(!0).column(t).visible(e);n!==U&&!n||o.columns.adjust().draw()},this.fnSettings=function(){return ae(this[b.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,o,r){var a=this.api(!0);return n===U||null===n?a.row(e).data(t):a.cell(e,n).data(t),r!==U&&!r||a.columns.adjust(),o!==U&&!o||a.draw(),0},this.fnVersionCheck=b.fnVersionCheck;var _=this,T=C===U,F=this.length;for(var t in T&&(C={}),this.oApi=this.internal=b.internal,S.ext.internal)t&&(this[t]=Le(t));return this.each(function(){var a,l=1<F?se({},C,!0):C,i=0,t=this.getAttribute("id"),s=!1,e=S.defaults,d=z(this);if("table"==this.nodeName.toLowerCase()){B(e),k(e.column),A(e,e,!0),A(e.column,e.column,!0),A(e,z.extend(l,d.data()));var n=S.settings;for(i=0,a=n.length;i<a;i++){var o=n[i];if(o.nTable==this||o.nTHead.parentNode==this||o.nTFoot&&o.nTFoot.parentNode==this){var r=l.bRetrieve!==U?l.bRetrieve:e.bRetrieve,c=l.bDestroy!==U?l.bDestroy:e.bDestroy;if(T||r)return o.oInstance;if(c){o.oInstance.fnDestroy();break}return void le(o,0,"Cannot reinitialise DataTable",3)}if(o.sTableId==this.id){n.splice(i,1);break}}null!==t&&""!==t||(t="DataTables_Table_"+S.ext._unique++,this.id=t);var u=z.extend(!0,{},S.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:t,sTableId:t});u.nTable=this,u.oApi=_.internal,u.oInit=l,n.push(u),u.oInstance=1===_.length?_:d.dataTable(),B(l),l.oLanguage&&R(l.oLanguage),l.aLengthMenu&&!l.iDisplayLength&&(l.iDisplayLength=z.isArray(l.aLengthMenu[0])?l.aLengthMenu[0][0]:l.aLengthMenu[0]),l=se(z.extend(!0,{},e),l),ie(u.oFeatures,l,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ie(u,l,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),ie(u.oScroll,l,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ie(u.oLanguage,l,"fnInfoCallback"),ce(u,"aoDrawCallback",l.fnDrawCallback,"user"),ce(u,"aoServerParams",l.fnServerParams,"user"),ce(u,"aoStateSaveParams",l.fnStateSaveParams,"user"),ce(u,"aoStateLoadParams",l.fnStateLoadParams,"user"),ce(u,"aoStateLoaded",l.fnStateLoaded,"user"),ce(u,"aoRowCallback",l.fnRowCallback,"user"),ce(u,"aoRowCreatedCallback",l.fnCreatedRow,"user"),ce(u,"aoHeaderCallback",l.fnHeaderCallback,"user"),ce(u,"aoFooterCallback",l.fnFooterCallback,"user"),ce(u,"aoInitComplete",l.fnInitComplete,"user"),ce(u,"aoPreDrawCallback",l.fnPreDrawCallback,"user"),u.rowIdFn=Y(l.rowId),N(u);var f=u.oClasses;if(z.extend(f,S.ext.classes,l.oClasses),d.addClass(f.sTable),u.iInitDisplayStart===U&&(u.iInitDisplayStart=l.iDisplayStart,u._iDisplayStart=l.iDisplayStart),null!==l.iDeferLoading){u.bDeferLoading=!0;var h=z.isArray(l.iDeferLoading);u._iRecordsDisplay=h?l.iDeferLoading[0]:l.iDeferLoading,u._iRecordsTotal=h?l.iDeferLoading[1]:l.iDeferLoading}var p=u.oLanguage;z.extend(!0,p,l.oLanguage),p.sUrl&&(z.ajax({dataType:"json",url:p.sUrl,success:function(t){R(t),A(e.oLanguage,t),z.extend(!0,p,t),kt(u)},error:function(){kt(u)}}),s=!0),null===l.asStripeClasses&&(u.asStripeClasses=[f.sStripeOdd,f.sStripeEven]);var m=u.asStripeClasses,g=d.children("tbody").find("tr").eq(0);-1!==z.inArray(!0,z.map(m,function(t,e){return g.hasClass(t)}))&&(z("tbody tr",this).removeClass(m.join(" ")),u.asDestroyStripes=m.slice());var b,y=[],v=this.getElementsByTagName("thead");if(0!==v.length&&(ct(u.aoHeader,v[0]),y=ut(u)),null===l.aoColumns)for(b=[],i=0,a=y.length;i<a;i++)b.push(null);else b=l.aoColumns;for(i=0,a=b.length;i<a;i++)L(u,y?y[i]:null);if(j(u,l.aoColumnDefs,b,function(t,e){H(u,t,e)}),g.length){var x=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};z(g[0]).children("th, td").each(function(t,e){var n=u.aoColumns[t];if(n.mData===t){var o=x(e,"sort")||x(e,"order"),r=x(e,"filter")||x(e,"search");null===o&&null===r||(n.mData={_:t+".display",sort:null!==o?t+".@data-"+o:U,type:null!==o?t+".@data-"+o:U,filter:null!==r?t+".@data-"+r:U},H(u,t))}})}var I=u.oFeatures,w=function(){if(l.aaSorting===U){var t=u.aaSorting;for(i=0,a=t.length;i<a;i++)t[i][1]=u.aoColumns[i].asSorting[0]}ee(u),I.bSort&&ce(u,"aoDrawCallback",function(){if(u.bSorted){var t=Yt(u),n={};z.each(t,function(t,e){n[e.src]=e.dir}),ue(u,null,"order",[u,t,n]),Qt(u)}}),ce(u,"aoDrawCallback",function(){(u.bSorted||"ssp"===pe(u)||I.bDeferRender)&&ee(u)},"sc");var e=d.children("caption").each(function(){this._captionSide=z(this).css("caption-side")}),n=d.children("thead");0===n.length&&(n=z("<thead/>").appendTo(d)),u.nTHead=n[0];var o=d.children("tbody");0===o.length&&(o=z("<tbody/>").appendTo(d)),u.nTBody=o[0];var r=d.children("tfoot");if(0===r.length&&0<e.length&&(""!==u.oScroll.sX||""!==u.oScroll.sY)&&(r=z("<tfoot/>").appendTo(d)),0===r.length||0===r.children().length?d.addClass(f.sNoFooter):0<r.length&&(u.nTFoot=r[0],ct(u.aoFooter,u.nTFoot)),l.aaData)for(i=0;i<l.aaData.length;i++)E(u,l.aaData[i]);else!u.bDeferLoading&&"dom"!=pe(u)||W(u,z(u.nTBody).children("tr"));u.aiDisplay=u.aiDisplayMaster.slice(),!(u.bInitialised=!0)===s&&kt(u)};l.bStateSave?(I.bStateSave=!0,ce(u,"aoDrawCallback",oe,"state_save"),re(u,l,w)):w()}else le(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),_=null,this},n={},i=/[\r\n]/g,s=/<.*?>/g,d=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,c=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),u=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,q=function(t,e,n){var o=[],r=0,a=t.length;if(n!==U)for(;r<a;r++)t[r]&&t[r][e]&&o.push(t[r][e][n]);else for(;r<a;r++)t[r]&&o.push(t[r][e]);return o},f=function(t){return t.replace(s,"")},x=function(t){if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],o=1,r=e.length;o<r;o++){if(e[o]===n)return!1;n=e[o]}return!0}(t))return t.slice();var e,n,o,r=[],a=t.length,l=0;t:for(n=0;n<a;n++){for(e=t[n],o=0;o<l;o++)if(r[o]===e)continue t;r.push(e),l++}return r};function I(n){var o,r,a={};z.each(n,function(t,e){(o=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(o[1]+" ")&&(r=t.replace(o[0],o[2].toLowerCase()),a[r]=t,"o"===o[1]&&I(n[t]))}),n._hungarianMap=a}function A(n,o,r){var a;n._hungarianMap||I(n),z.each(o,function(t,e){(a=n._hungarianMap[t])===U||!r&&o[a]!==U||("o"===a.charAt(0)?(o[a]||(o[a]={}),z.extend(!0,o[a],o[t]),A(n[a],o[a],r)):o[a]=o[t])})}function R(t){var e=S.defaults.oLanguage,n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&ie(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&ie(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var o=t.sDecimal;o&&ke(o)}S.util={throttle:function(o,t){var r,a,l=t!==U?t:200;return function(){var t=this,e=+new Date,n=arguments;r&&e<r+l?(clearTimeout(a),a=setTimeout(function(){r=U,o.apply(t,n)},l)):(r=e,o.apply(t,n))}},escapeRegex:function(t){return t.replace(c,"\\$1")}};var w=function(t,e,n){t[e]!==U&&(t[n]=t[e])};function B(t){w(t,"ordering","bSort"),w(t,"orderMulti","bSortMulti"),w(t,"orderClasses","bSortClasses"),w(t,"orderCellsTop","bSortCellsTop"),w(t,"order","aaSorting"),w(t,"orderFixed","aaSortingFixed"),w(t,"paging","bPaginate"),w(t,"pagingType","sPaginationType"),w(t,"pageLength","iDisplayLength"),w(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,o=e.length;n<o;n++)e[n]&&A(S.models.oSearch,e[n])}function k(t){w(t,"orderable","bSortable"),w(t,"orderData","aDataSort"),w(t,"orderSequence","asSorting"),w(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||z.isArray(e)||(t.aDataSort=[e])}function N(t){if(!S.__browser){var e={};S.__browser=e;var n=z("<div/>").css({position:"fixed",top:0,left:-1*z(D).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(z("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(z("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=n.children(),r=o.children();e.barWidth=o[0].offsetWidth-o[0].clientWidth,e.bScrollOversize=100===r[0].offsetWidth&&100!==o[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}z.extend(t.oBrowser,S.__browser),t.oScroll.iBarWidth=S.__browser.barWidth}function C(t,e,n,o,r,a){var l,i=o,s=!1;for(n!==U&&(l=n,s=!0);i!==r;)t.hasOwnProperty(i)&&(l=s?e(l,t[i],i,t):t[i],s=!0,i+=a);return l}function L(t,e){var n=S.defaults.column,o=t.aoColumns.length,r=z.extend({},S.models.oColumn,n,{nTh:e||y.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[o],mData:n.mData?n.mData:o,idx:o});t.aoColumns.push(r);var a=t.aoPreSearchCols;a[o]=z.extend({},S.models.oSearch,a[o]),H(t,o,z(e).data())}function H(t,e,n){var o=t.aoColumns[e],r=t.oClasses,a=z(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(o.sWidthOrig=l[1])}n!==U&&null!==n&&(k(n),A(S.defaults.column,n),n.mDataProp===U||n.mData||(n.mData=n.mDataProp),n.sType&&(o._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&a.addClass(n.sClass),z.extend(o,n),ie(o,n,"sWidth","sWidthOrig"),n.iDataSort!==U&&(o.aDataSort=[n.iDataSort]),ie(o,n,"aDataSort"));function i(t){return"string"==typeof t&&-1!==t.indexOf("@")}var s=o.mData,d=Y(s),c=o.mRender?Y(o.mRender):null;o._bAttrSrc=z.isPlainObject(s)&&(i(s.sort)||i(s.type)||i(s.filter)),o._setter=null,o.fnGetData=function(t,e,n){var o=d(t,e,U,n);return c&&e?c(o,e,t,n):o},o.fnSetData=function(t,e,n){return K(s)(t,e,n)},"number"!=typeof s&&(t._rowReadObject=!0),t.oFeatures.bSort||(o.bSortable=!1,a.addClass(r.sSortableNone));var u=-1!==z.inArray("asc",o.asSorting),f=-1!==z.inArray("desc",o.asSorting);o.bSortable&&(u||f)?u&&!f?(o.sSortingClass=r.sSortableAsc,o.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&f?(o.sSortingClass=r.sSortableDesc,o.sSortingClassJUI=r.sSortJUIDescAllowed):(o.sSortingClass=r.sSortable,o.sSortingClassJUI=r.sSortJUI):(o.sSortingClass=r.sSortableNone,o.sSortingClassJUI="")}function X(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;qt(t);for(var n=0,o=e.length;n<o;n++)e[n].nTh.style.width=e[n].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||Mt(t),ue(t,null,"column-sizing",[t])}function V(t,e){var n=P(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function _(t,e){var n=P(t,"bVisible"),o=z.inArray(e,n);return-1!==o?o:null}function O(t){var n=0;return z.each(t.aoColumns,function(t,e){e.bVisible&&"none"!==z(e.nTh).css("display")&&n++}),n}function P(t,n){var o=[];return z.map(t.aoColumns,function(t,e){t[n]&&o.push(e)}),o}function T(t){var e,n,o,r,a,l,i,s,d,c=t.aoColumns,u=t.aoData,f=S.ext.type.detect;for(e=0,n=c.length;e<n;e++)if(d=[],!(i=c[e]).sType&&i._sManualType)i.sType=i._sManualType;else if(!i.sType){for(o=0,r=f.length;o<r;o++){for(a=0,l=u.length;a<l&&(d[a]===U&&(d[a]=F(t,a,e,"type")),(s=f[o](d[a],t))||o===f.length-1)&&"html"!==s;a++);if(s){i.sType=s;break}}i.sType||(i.sType="string")}}function j(t,e,n,o){var r,a,l,i,s,d,c,u=t.aoColumns;if(e)for(r=e.length-1;0<=r;r--){var f=(c=e[r]).targets!==U?c.targets:c.aTargets;for(z.isArray(f)||(f=[f]),l=0,i=f.length;l<i;l++)if("number"==typeof f[l]&&0<=f[l]){for(;u.length<=f[l];)L(t);o(f[l],c)}else if("number"==typeof f[l]&&f[l]<0)o(u.length+f[l],c);else if("string"==typeof f[l])for(s=0,d=u.length;s<d;s++)"_all"!=f[l]&&!z(u[s].nTh).hasClass(f[l])||o(s,c)}if(n)for(r=0,a=n.length;r<a;r++)o(r,n[r])}function E(t,e,n,o){var r=t.aoData.length,a=z.extend(!0,{},S.models.oRow,{src:n?"dom":"data",idx:r});a._aData=e,t.aoData.push(a);for(var l=t.aoColumns,i=0,s=l.length;i<s;i++)l[i].sType=null;t.aiDisplayMaster.push(r);var d=t.rowIdFn(e);return d!==U&&(t.aIds[d]=a),!n&&t.oFeatures.bDeferRender||ot(t,r,n,o),r}function W(n,t){var o;return t instanceof z||(t=z(t)),t.map(function(t,e){return o=nt(n,e),E(n,o.data,e,o.cells)})}function F(t,e,n,o){var r=t.iDraw,a=t.aoColumns[n],l=t.aoData[e]._aData,i=a.sDefaultContent,s=a.fnGetData(l,o,{settings:t,row:e,col:n});if(s===U)return t.iDrawError!=r&&null===i&&(le(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),i;if(s!==l&&null!==s||null===i||o===U){if("function"==typeof s)return s.call(l)}else s=i;return null===s&&"display"==o?"":s}function M(t,e,n,o){var r=t.aoColumns[n],a=t.aoData[e]._aData;r.fnSetData(a,o,{settings:t,row:e,col:n})}var $=/\[.*?\]$/,G=/\(\)$/;function J(t){return z.map(t.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function Y(r){if(z.isPlainObject(r)){var a={};return z.each(r,function(t,e){e&&(a[t]=Y(e))}),function(t,e,n,o){var r=a[e]||a._;return r!==U?r(t,e,n,o):t}}if(null===r)return function(t){return t};if("function"==typeof r)return function(t,e,n,o){return r(t,e,n,o)};if("string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("("))return function(t,e){return t[r]};var h=function(t,e,n){var o,r,a,l;if(""!==n)for(var i=J(n),s=0,d=i.length;s<d;s++){if(o=i[s].match($),r=i[s].match(G),o){if(i[s]=i[s].replace($,""),""!==i[s]&&(t=t[i[s]]),a=[],i.splice(0,s+1),l=i.join("."),z.isArray(t))for(var c=0,u=t.length;c<u;c++)a.push(h(t[c],e,l));var f=o[0].substring(1,o[0].length-1);t=""===f?a:a.join(f);break}if(r)i[s]=i[s].replace(G,""),t=t[i[s]]();else{if(null===t||t[i[s]]===U)return U;t=t[i[s]]}}return t};return function(t,e){return h(t,e,r)}}function K(o){if(z.isPlainObject(o))return K(o._);if(null===o)return function(){};if("function"==typeof o)return function(t,e,n){o(t,"set",e,n)};if("string"!=typeof o||-1===o.indexOf(".")&&-1===o.indexOf("[")&&-1===o.indexOf("("))return function(t,e){t[o]=e};var p=function(t,e,n){for(var o,r,a,l,i,s=J(n),d=s[s.length-1],c=0,u=s.length-1;c<u;c++){if(r=s[c].match($),a=s[c].match(G),r){if(s[c]=s[c].replace($,""),t[s[c]]=[],(o=s.slice()).splice(0,c+1),i=o.join("."),z.isArray(e))for(var f=0,h=e.length;f<h;f++)p(l={},e[f],i),t[s[c]].push(l);else t[s[c]]=e;return}a&&(s[c]=s[c].replace(G,""),t=t[s[c]](e)),null!==t[s[c]]&&t[s[c]]!==U||(t[s[c]]={}),t=t[s[c]]}d.match(G)?t=t[d.replace(G,"")](e):t[d.replace($,"")]=e};return function(t,e){return p(t,e,o)}}function Q(t){return q(t.aoData,"_aData")}function Z(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function tt(t,e,n){for(var o=-1,r=0,a=t.length;r<a;r++)t[r]==e?o=r:t[r]>e&&t[r]--;-1!=o&&n===U&&t.splice(o,1)}function et(n,o,t,e){function r(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=F(n,o,e,"display")}var a,l,i=n.aoData[o];if("dom"!==t&&(t&&"auto"!==t||"dom"!==i.src)){var s=i.anCells;if(s)if(e!==U)r(s[e],e);else for(a=0,l=s.length;a<l;a++)r(s[a],a)}else i._aData=nt(n,i,e,e===U?U:i._aData).data;i._aSortData=null,i._aFilterData=null;var d=n.aoColumns;if(e!==U)d[e].sType=null;else{for(a=0,l=d.length;a<l;a++)d[a].sType=null;rt(n,i)}}function nt(t,e,n,r){var o,a,l,i=[],s=e.firstChild,d=0,c=t.aoColumns,u=t._rowReadObject;r=r!==U?r:u?{}:[];function f(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var o=t.substring(n+1);K(t)(r,e.getAttribute(o))}}}function h(t){n!==U&&n!==d||(a=c[d],l=z.trim(t.innerHTML),a&&a._bAttrSrc?(K(a.mData._)(r,l),f(a.mData.sort,t),f(a.mData.type,t),f(a.mData.filter,t)):u?(a._setter||(a._setter=K(a.mData)),a._setter(r,l)):r[d]=l),d++}if(s)for(;s;)"TD"!=(o=s.nodeName.toUpperCase())&&"TH"!=o||(h(s),i.push(s)),s=s.nextSibling;else for(var p=0,m=(i=e.anCells).length;p<m;p++)h(i[p]);var g=e.firstChild?e:e.nTr;if(g){var b=g.getAttribute("id");b&&K(t.rowId)(r,b)}return{data:r,cells:i}}function ot(t,e,n,o){var r,a,l,i,s,d=t.aoData[e],c=d._aData,u=[];if(null===d.nTr){for(r=n||y.createElement("tr"),d.nTr=r,d.anCells=u,r._DT_RowIndex=e,rt(t,d),i=0,s=t.aoColumns.length;i<s;i++)l=t.aoColumns[i],(a=n?o[i]:y.createElement(l.sCellType))._DT_CellIndex={row:e,column:i},u.push(a),n&&!l.mRender&&l.mData===i||z.isPlainObject(l.mData)&&l.mData._===i+".display"||(a.innerHTML=F(t,e,i,"display")),l.sClass&&(a.className+=" "+l.sClass),l.bVisible&&!n?r.appendChild(a):!l.bVisible&&n&&a.parentNode.removeChild(a),l.fnCreatedCell&&l.fnCreatedCell.call(t.oInstance,a,F(t,e,i),c,e,i);ue(t,"aoRowCreatedCallback",null,[r,c,e])}d.nTr.setAttribute("role","row")}function rt(t,e){var n=e.nTr,o=e._aData;if(n){var r=t.rowIdFn(o);if(r&&(n.id=r),o.DT_RowClass){var a=o.DT_RowClass.split(" ");e.__rowc=e.__rowc?x(e.__rowc.concat(a)):a,z(n).removeClass(e.__rowc.join(" ")).addClass(o.DT_RowClass)}o.DT_RowAttr&&z(n).attr(o.DT_RowAttr),o.DT_RowData&&z(n).data(o.DT_RowData)}}function at(t){var e,n,o,r,a,l=t.nTHead,i=t.nTFoot,s=0===z("th, td",l).length,d=t.oClasses,c=t.aoColumns;for(s&&(r=z("<tr/>").appendTo(l)),e=0,n=c.length;e<n;e++)a=c[e],o=z(a.nTh).addClass(a.sClass),s&&o.appendTo(r),t.oFeatures.bSort&&(o.addClass(a.sSortingClass),!1!==a.bSortable&&(o.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),te(t,a.nTh,e))),a.sTitle!=o[0].innerHTML&&o.html(a.sTitle),he(t,"header")(t,o,a,d);if(s&&ct(t.aoHeader,l),z(l).find(">tr").attr("role","row"),z(l).find(">tr>th, >tr>td").addClass(d.sHeaderTH),z(i).find(">tr>th, >tr>td").addClass(d.sFooterTH),null!==i){var u=t.aoFooter[0];for(e=0,n=u.length;e<n;e++)(a=c[e]).nTf=u[e].cell,a.sClass&&z(a.nTf).addClass(a.sClass)}}function lt(t,e,n){var o,r,a,l,i,s,d,c,u,f=[],h=[],p=t.aoColumns.length;if(e){for(n===U&&(n=!1),o=0,r=e.length;o<r;o++){for(f[o]=e[o].slice(),f[o].nTr=e[o].nTr,a=p-1;0<=a;a--)t.aoColumns[a].bVisible||n||f[o].splice(a,1);h.push([])}for(o=0,r=f.length;o<r;o++){if(d=f[o].nTr)for(;s=d.firstChild;)d.removeChild(s);for(a=0,l=f[o].length;a<l;a++)if(u=c=1,h[o][a]===U){for(d.appendChild(f[o][a].cell),h[o][a]=1;f[o+c]!==U&&f[o][a].cell==f[o+c][a].cell;)h[o+c][a]=1,c++;for(;f[o][a+u]!==U&&f[o][a].cell==f[o][a+u].cell;){for(i=0;i<c;i++)h[o+i][a+u]=1;u++}z(f[o][a].cell).attr("rowspan",c).attr("colspan",u)}}}}function it(t){var e=ue(t,"aoPreDrawCallback","preDraw",[t]);if(-1===z.inArray(!1,e)){var n=[],o=0,r=t.asStripeClasses,a=r.length,l=(t.aoOpenRows.length,t.oLanguage),i=t.iInitDisplayStart,s="ssp"==pe(t),d=t.aiDisplay;t.bDrawing=!0,i!==U&&-1!==i&&(t._iDisplayStart=s?i:i>=t.fnRecordsDisplay()?0:i,t.iInitDisplayStart=-1);var c=t._iDisplayStart,u=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Et(t,!1);else if(s){if(!t.bDestroying&&!ht(t))return}else t.iDraw++;if(0!==d.length)for(var f=s?0:c,h=s?t.aoData.length:u,p=f;p<h;p++){var m=d[p],g=t.aoData[m];null===g.nTr&&ot(t,m);var b=g.nTr;if(0!==a){var y=r[o%a];g._sRowStripe!=y&&(z(b).removeClass(g._sRowStripe).addClass(y),g._sRowStripe=y)}ue(t,"aoRowCallback",null,[b,g._aData,o,p]),n.push(b),o++}else{var v=l.sZeroRecords;1==t.iDraw&&"ajax"==pe(t)?v=l.sLoadingRecords:l.sEmptyTable&&0===t.fnRecordsTotal()&&(v=l.sEmptyTable),n[0]=z("<tr/>",{class:a?r[0]:""}).append(z("<td />",{valign:"top",colSpan:O(t),class:t.oClasses.sRowEmpty}).html(v))[0]}ue(t,"aoHeaderCallback","header",[z(t.nTHead).children("tr")[0],Q(t),c,u,d]),ue(t,"aoFooterCallback","footer",[z(t.nTFoot).children("tr")[0],Q(t),c,u,d]);var x=z(t.nTBody);x.children().detach(),x.append(z(n)),ue(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Et(t,!1)}function st(t,e){var n=t.oFeatures,o=n.bSort,r=n.bFilter;o&&Kt(t),r?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,it(t),t._drawHold=!1}function dt(t){var e=t.oClasses,n=z(t.nTable),o=z("<div/>").insertBefore(n),r=t.oFeatures,a=z("<div/>",{id:t.sTableId+"_wrapper",class:e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=o[0],t.nTableWrapper=a[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var l,i,s,d,c,u,f=t.sDom.split(""),h=0;h<f.length;h++){if(l=null,"<"==(i=f[h])){if(s=z("<div/>")[0],"'"==(d=f[h+1])||'"'==d){for(c="",u=2;f[h+u]!=d;)c+=f[h+u],u++;if("H"==c?c=e.sJUIHeader:"F"==c&&(c=e.sJUIFooter),-1!=c.indexOf(".")){var p=c.split(".");s.id=p[0].substr(1,p[0].length-1),s.className=p[1]}else"#"==c.charAt(0)?s.id=c.substr(1,c.length-1):s.className=c;h+=u}a.append(s),a=z(s)}else if(">"==i)a=a.parent();else if("l"==i&&r.bPaginate&&r.bLengthChange)l=Ht(t);else if("f"==i&&r.bFilter)l=bt(t);else if("r"==i&&r.bProcessing)l=jt(t);else if("t"==i)l=Wt(t);else if("i"==i&&r.bInfo)l=At(t);else if("p"==i&&r.bPaginate)l=Ot(t);else if(0!==S.ext.feature.length)for(var m=S.ext.feature,g=0,b=m.length;g<b;g++)if(i==m[g].cFeature){l=m[g].fnInit(t);break}if(l){var y=t.aanFeatures;y[i]||(y[i]=[]),y[i].push(l),a.append(l)}}o.replaceWith(a),t.nHolding=null}function ct(t,e){function n(t,e,n){for(var o=t[e];o[n];)n++;return n}var o,r,a,l,i,s,d,c,u,f,h=z(e).children("tr");for(t.splice(0,t.length),a=0,s=h.length;a<s;a++)t.push([]);for(a=0,s=h.length;a<s;a++)for(0,r=(o=h[a]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(c=(c=1*r.getAttribute("colspan"))&&0!==c&&1!==c?c:1,u=(u=1*r.getAttribute("rowspan"))&&0!==u&&1!==u?u:1,d=n(t,a,0),f=1===c,i=0;i<c;i++)for(l=0;l<u;l++)t[a+l][d+i]={cell:r,unique:f},t[a+l].nTr=o;r=r.nextSibling}}function ut(t,e,n){var o=[];n||(n=t.aoHeader,e&&ct(n=[],e));for(var r=0,a=n.length;r<a;r++)for(var l=0,i=n[r].length;l<i;l++)!n[r][l].unique||o[l]&&t.bSortCellsTop||(o[l]=n[r][l].cell);return o}function ft(r,t,e){if(ue(r,"aoServerParams","serverParams",[t]),t&&z.isArray(t)){var a={},l=/(.*?)\[\]$/;z.each(t,function(t,e){var n=e.name.match(l);if(n){var o=n[0];a[o]||(a[o]=[]),a[o].push(e.value)}else a[e.name]=e.value}),t=a}function n(t){ue(r,null,"xhr",[r,t,r.jqXHR]),e(t)}var o,i=r.ajax,s=r.oInstance;if(z.isPlainObject(i)&&i.data){o=i.data;var d=z.isFunction(o)?o(t,r):o;t=z.isFunction(o)&&d?d:z.extend(!0,t,d),delete i.data}var c={data:t,success:function(t){var e=t.error||t.sError;e&&le(r,0,e),r.json=t,n(t)},dataType:"json",cache:!1,type:r.sServerMethod,error:function(t,e,n){var o=ue(r,null,"xhr",[r,null,r.jqXHR]);-1===z.inArray(!0,o)&&("parsererror"==e?le(r,0,"Invalid JSON response",1):4===t.readyState&&le(r,0,"Ajax error",7)),Et(r,!1)}};r.oAjaxData=t,ue(r,null,"preXhr",[r,t]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,z.map(t,function(t,e){return{name:e,value:t}}),n,r):r.sAjaxSource||"string"==typeof i?r.jqXHR=z.ajax(z.extend(c,{url:i||r.sAjaxSource})):z.isFunction(i)?r.jqXHR=i.call(s,t,n,r):(r.jqXHR=z.ajax(z.extend(c,i)),i.data=o)}function ht(e){return!e.bAjaxDataGet||(e.iDraw++,Et(e,!0),ft(e,pt(e),function(t){mt(e,t)}),!1)}function pt(t){function n(t,e){u.push({name:t,value:e})}var e,o,r,a,l=t.aoColumns,i=l.length,s=t.oFeatures,d=t.oPreviousSearch,c=t.aoPreSearchCols,u=[],f=Yt(t),h=t._iDisplayStart,p=!1!==s.bPaginate?t._iDisplayLength:-1;n("sEcho",t.iDraw),n("iColumns",i),n("sColumns",q(l,"sName").join(",")),n("iDisplayStart",h),n("iDisplayLength",p);var m={draw:t.iDraw,columns:[],order:[],start:h,length:p,search:{value:d.sSearch,regex:d.bRegex}};for(e=0;e<i;e++)r=l[e],a=c[e],o="function"==typeof r.mData?"function":r.mData,m.columns.push({data:o,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),n("mDataProp_"+e,o),s.bFilter&&(n("sSearch_"+e,a.sSearch),n("bRegex_"+e,a.bRegex),n("bSearchable_"+e,r.bSearchable)),s.bSort&&n("bSortable_"+e,r.bSortable);s.bFilter&&(n("sSearch",d.sSearch),n("bRegex",d.bRegex)),s.bSort&&(z.each(f,function(t,e){m.order.push({column:e.col,dir:e.dir}),n("iSortCol_"+t,e.col),n("sSortDir_"+t,e.dir)}),n("iSortingCols",f.length));var g=S.ext.legacy.ajax;return null===g?t.sAjaxSource?u:m:g?u:m}function mt(t,n){function e(t,e){return n[t]!==U?n[t]:n[e]}var o=gt(t,n),r=e("sEcho","draw"),a=e("iTotalRecords","recordsTotal"),l=e("iTotalDisplayRecords","recordsFiltered");if(r){if(1*r<t.iDraw)return;t.iDraw=1*r}Z(t),t._iRecordsTotal=parseInt(a,10),t._iRecordsDisplay=parseInt(l,10);for(var i=0,s=o.length;i<s;i++)E(t,o[i]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,it(t),t._bInitComplete||Nt(t,n),t.bAjaxDataGet=!0,Et(t,!1)}function gt(t,e){var n=z.isPlainObject(t.ajax)&&t.ajax.dataSrc!==U?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===n?e.aaData||e[n]:""!==n?Y(n)(e):e}function bt(n){var t=n.oClasses,e=n.sTableId,o=n.oLanguage,r=n.oPreviousSearch,a=n.aanFeatures,l='<input type="search" class="'+t.sFilterInput+'"/>',i=o.sSearch;i=i.match(/_INPUT_/)?i.replace("_INPUT_",l):i+l;function s(){a.f;var t=this.value?this.value:"";t!=r.sSearch&&(yt(n,{sSearch:t,bRegex:r.bRegex,bSmart:r.bSmart,bCaseInsensitive:r.bCaseInsensitive}),n._iDisplayStart=0,it(n))}var d=z("<div/>",{id:a.f?null:e+"_filter",class:t.sFilter}).append(z("<label/>").append(i)),c=null!==n.searchDelay?n.searchDelay:"ssp"===pe(n)?400:0,u=z("input",d).val(r.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",c?Xt(s,c):s).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",e);return z(n.nTable).on("search.dt.DT",function(t,e){if(n===e)try{u[0]!==y.activeElement&&u.val(r.sSearch)}catch(t){}}),d[0]}function yt(t,e,n){function o(t){a.sSearch=t.sSearch,a.bRegex=t.bRegex,a.bSmart=t.bSmart,a.bCaseInsensitive=t.bCaseInsensitive}function r(t){return t.bEscapeRegex!==U?!t.bEscapeRegex:t.bRegex}var a=t.oPreviousSearch,l=t.aoPreSearchCols;if(T(t),"ssp"!=pe(t)){It(t,e.sSearch,n,r(e),e.bSmart,e.bCaseInsensitive),o(e);for(var i=0;i<l.length;i++)xt(t,l[i].sSearch,i,r(l[i]),l[i].bSmart,l[i].bCaseInsensitive);vt(t)}else o(e);t.bFiltered=!0,ue(t,null,"search",[t])}function vt(t){for(var e,n,o=S.ext.search,r=t.aiDisplay,a=0,l=o.length;a<l;a++){for(var i=[],s=0,d=r.length;s<d;s++)n=r[s],e=t.aoData[n],o[a](t,e._aFilterData,n,e._aData,s)&&i.push(n);r.length=0,z.merge(r,i)}}function xt(t,e,n,o,r,a){if(""!==e){for(var l,i=[],s=t.aiDisplay,d=wt(e,o,r,a),c=0;c<s.length;c++)l=t.aoData[s[c]]._aFilterData[n],d.test(l)&&i.push(s[c]);t.aiDisplay=i}}function It(t,e,n,o,r,a){var l,i,s,d=wt(e,o,r,a),c=t.oPreviousSearch.sSearch,u=t.aiDisplayMaster,f=[];if(0!==S.ext.search.length&&(n=!0),i=Ft(t),e.length<=0)t.aiDisplay=u.slice();else{for((i||n||c.length>e.length||0!==e.indexOf(c)||t.bSorted)&&(t.aiDisplay=u.slice()),l=t.aiDisplay,s=0;s<l.length;s++)d.test(t.aoData[l[s]]._sFilterRow)&&f.push(l[s]);t.aiDisplay=f}}function wt(t,e,n,o){t=e?t:Ct(t),n&&(t="^(?=.*?"+z.map(t.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(t,o?"i":"")}var Ct=S.util.escapeRegex,_t=z("<div>")[0],Tt=_t.textContent!==U;function Ft(t){var e,n,o,r,a,l,i,s,d=t.aoColumns,c=S.ext.type.search,u=!1;for(n=0,r=t.aoData.length;n<r;n++)if(!(s=t.aoData[n])._aFilterData){for(l=[],o=0,a=d.length;o<a;o++)(e=d[o]).bSearchable?(i=F(t,n,o,"filter"),c[e.sType]&&(i=c[e.sType](i)),null===i&&(i=""),"string"!=typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(_t.innerHTML=i,i=Tt?_t.textContent:_t.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),l.push(i);s._aFilterData=l,s._sFilterRow=l.join("  "),u=!0}return u}function St(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Dt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function At(t){var e=t.sTableId,n=t.aanFeatures.i,o=z("<div/>",{class:t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:Rt,sName:"information"}),o.attr("role","status").attr("aria-live","polite"),z(t.nTable).attr("aria-describedby",e+"_info")),o[0]}function Rt(t){var e=t.aanFeatures.i;if(0!==e.length){var n=t.oLanguage,o=t._iDisplayStart+1,r=t.fnDisplayEnd(),a=t.fnRecordsTotal(),l=t.fnRecordsDisplay(),i=l?n.sInfo:n.sInfoEmpty;l!==a&&(i+=" "+n.sInfoFiltered),i=Bt(t,i+=n.sInfoPostFix);var s=n.fnInfoCallback;null!==s&&(i=s.call(t.oInstance,t,o,r,a,l,i)),z(e).html(i)}}function Bt(t,e){var n=t.fnFormatNumber,o=t._iDisplayStart+1,r=t._iDisplayLength,a=t.fnRecordsDisplay(),l=-1===r;return e.replace(/_START_/g,n.call(t,o)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,a)).replace(/_PAGE_/g,n.call(t,l?1:Math.ceil(o/r))).replace(/_PAGES_/g,n.call(t,l?1:Math.ceil(a/r)))}function kt(n){var o,t,e,r=n.iInitDisplayStart,a=n.aoColumns,l=n.oFeatures,i=n.bDeferLoading;if(n.bInitialised){for(dt(n),at(n),lt(n,n.aoHeader),lt(n,n.aoFooter),Et(n,!0),l.bAutoWidth&&qt(n),o=0,t=a.length;o<t;o++)(e=a[o]).sWidth&&(e.nTh.style.width=Jt(e.sWidth));ue(n,null,"preInit",[n]),st(n);var s=pe(n);"ssp"==s&&!i||("ajax"==s?ft(n,[],function(t){var e=gt(n,t);for(o=0;o<e.length;o++)E(n,e[o]);n.iInitDisplayStart=r,st(n),Et(n,!1),Nt(n,t)}):(Et(n,!1),Nt(n)))}else setTimeout(function(){kt(n)},200)}function Nt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&X(t),ue(t,null,"plugin-init",[t,e]),ue(t,"aoInitComplete","init",[t,e])}function Lt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,fe(t),ue(t,null,"length",[t,n])}function Ht(o){for(var t=o.oClasses,e=o.sTableId,n=o.aLengthMenu,r=z.isArray(n[0]),a=r?n[0]:n,l=r?n[1]:n,i=z("<select/>",{name:e+"_length","aria-controls":e,class:t.sLengthSelect}),s=0,d=a.length;s<d;s++)i[0][s]=new Option("number"==typeof l[s]?o.fnFormatNumber(l[s]):l[s],a[s]);var c=z("<div><label/></div>").addClass(t.sLength);return o.aanFeatures.l||(c[0].id=e+"_length"),c.children().append(o.oLanguage.sLengthMenu.replace("_MENU_",i[0].outerHTML)),z("select",c).val(o._iDisplayLength).on("change.DT",function(t){Lt(o,z(this).val()),it(o)}),z(o.nTable).on("length.dt.DT",function(t,e,n){o===e&&z("select",c).val(n)}),c[0]}function Ot(t){function c(t){it(t)}var e=t.sPaginationType,u=S.ext.pager[e],f="function"==typeof u,n=z("<div/>
2674").addClass(t.oClasses.sPaging+e)[0],h=t.aanFeatures;return f||u.fnInit(t,n,c),h.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(f){var e,n,o=t._iDisplayStart,r=t._iDisplayLength,a=t.fnRecordsDisplay(),l=-1===r,i=l?0:Math.ceil(o/r),s=l?1:Math.ceil(a/r),d=u(i,s);for(e=0,n=h.p.length;e<n;e++)he(t,"pageButton")(t,h.p[e],e,d,i,s)}else u.fnUpdate(t,c)},sName:"pagination"})),n}function Pt(t,e,n){var o=t._iDisplayStart,r=t._iDisplayLength,a=t.fnRecordsDisplay();0===a||-1===r?o=0:"number"==typeof e?a<(o=e*r)&&(o=0):"first"==e?o=0:"previous"==e?(o=0<=r?o-r:0)<0&&(o=0):"next"==e?o+r<a&&(o+=r):"last"==e?o=Math.floor((a-1)/r)*r:le(t,0,"Unknown paging action: "+e,5);var l=t._iDisplayStart!==o;return t._iDisplayStart=o,l&&(ue(t,null,"page",[t]),n&&it(t)),l}function jt(t){return z("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function Et(t,e){t.oFeatures.bProcessing&&z(t.aanFeatures.r).css("display",e?"block":"none"),ue(t,null,"processing",[t,e])}function Wt(t){var e=z(t.nTable);e.attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;function o(t){return t?Jt(t):null}var r=n.sX,a=n.sY,l=t.oClasses,i=e.children("caption"),s=i.length?i[0]._captionSide:null,d=z(e[0].cloneNode(!1)),c=z(e[0].cloneNode(!1)),u=e.children("tfoot"),f="<div/>";u.length||(u=null);var h=z(f,{class:l.sScrollWrapper}).append(z(f,{class:l.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?o(r):"100%"}).append(z(f,{class:l.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(d.removeAttr("id").css("margin-left",0).append("top"===s?i:null).append(e.children("thead"))))).append(z(f,{class:l.sScrollBody}).css({position:"relative",overflow:"auto",width:o(r)}).append(e));u&&h.append(z(f,{class:l.sScrollFoot}).css({overflow:"hidden",border:0,width:r?o(r):"100%"}).append(z(f,{class:l.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?i:null).append(e.children("tfoot")))));var p=h.children(),m=p[0],g=p[1],b=u?p[2]:null;return r&&z(g).on("scroll.DT",function(t){var e=this.scrollLeft;m.scrollLeft=e,u&&(b.scrollLeft=e)}),z(g).css(a&&n.bCollapse?"max-height":"height",a),t.nScrollHead=m,t.nScrollBody=g,t.nScrollFoot=b,t.aoDrawCallback.push({fn:Mt,sName:"scrolling"}),h[0]}function Mt(n){function t(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var e,o,r,a,l,i,s,d,c,u=n.oScroll,f=u.sX,h=u.sXInner,p=u.sY,m=u.iBarWidth,g=z(n.nScrollHead),b=g[0].style,y=g.children("div"),v=y[0].style,x=y.children("table"),I=n.nScrollBody,w=z(I),C=I.style,_=z(n.nScrollFoot).children("div"),T=_.children("table"),F=z(n.nTHead),S=z(n.nTable),D=S[0],A=D.style,R=n.nTFoot?z(n.nTFoot):null,B=n.oBrowser,k=B.bScrollOversize,N=q(n.aoColumns,"nTh"),L=[],H=[],O=[],P=[],j=I.scrollHeight>I.clientHeight;if(n.scrollBarVis!==j&&n.scrollBarVis!==U)return n.scrollBarVis=j,void X(n);n.scrollBarVis=j,S.children("thead, tfoot").remove(),R&&(i=R.clone().prependTo(S),o=R.find("tr"),a=i.find("tr")),l=F.clone().prependTo(S),e=F.find("tr"),r=l.find("tr"),l.find("th, td").removeAttr("tabindex"),f||(C.width="100%",g[0].style.width="100%"),z.each(ut(n,l),function(t,e){s=V(n,t),e.style.width=n.aoColumns[s].sWidth}),R&&zt(function(t){t.style.width=""},a),c=S.outerWidth(),""===f?(A.width="100%",k&&(S.find("tbody").height()>I.offsetHeight||"scroll"==w.css("overflow-y"))&&(A.width=Jt(S.outerWidth()-m)),c=S.outerWidth()):""!==h&&(A.width=Jt(h),c=S.outerWidth()),zt(t,r),zt(function(t){O.push(t.innerHTML),L.push(Jt(z(t).css("width")))},r),zt(function(t,e){-1!==z.inArray(t,N)&&(t.style.width=L[e])},e),z(r).height(0),R&&(zt(t,a),zt(function(t){P.push(t.innerHTML),H.push(Jt(z(t).css("width")))},a),zt(function(t,e){t.style.width=H[e]},o),z(a).height(0)),zt(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+O[e]+"</div>",t.style.width=L[e]},r),R&&zt(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+P[e]+"</div>",t.style.width=H[e]},a),S.outerWidth()<c?(d=I.scrollHeight>I.offsetHeight||"scroll"==w.css("overflow-y")?c+m:c,k&&(I.scrollHeight>I.offsetHeight||"scroll"==w.css("overflow-y"))&&(A.width=Jt(d-m)),""!==f&&""===h||le(n,1,"Possible column misalignment",6)):d="100%",C.width=Jt(d),b.width=Jt(d),R&&(n.nScrollFoot.style.width=Jt(d)),p||k&&(C.height=Jt(D.offsetHeight+m));var E=S.outerWidth();x[0].style.width=Jt(E),v.width=Jt(E);var W=S.height()>I.clientHeight||"scroll"==w.css("overflow-y"),M="padding"+(B.bScrollbarLeft?"Left":"Right");v[M]=W?m+"px":"0px",R&&(T[0].style.width=Jt(E),_[0].style.width=Jt(E),_[0].style[M]=W?m+"px":"0px"),S.children("colgroup").insertBefore(S.children("thead")),w.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(I.scrollTop=0)}function zt(t,e,n){for(var o,r,a=0,l=0,i=e.length;l<i;){for(o=e[l].firstChild,r=n?n[l].firstChild:null;o;)1===o.nodeType&&(n?t(o,r,a):t(o,a),a++),o=o.nextSibling,r=n?r.nextSibling:null;l++}}var Ut=/<.*?>/g;function qt(t){var e,n,o,r=t.nTable,a=t.aoColumns,l=t.oScroll,i=l.sY,s=l.sX,d=l.sXInner,c=a.length,u=P(t,"bVisible"),f=z("th",t.nTHead),h=r.getAttribute("width"),p=r.parentNode,m=!1,g=t.oBrowser,b=g.bScrollOversize,y=r.style.width;for(y&&-1!==y.indexOf("%")&&(h=y),e=0;e<u.length;e++)null!==(n=a[u[e]]).sWidth&&(n.sWidth=Vt(n.sWidthOrig,p),m=!0);if(b||!m&&!s&&!i&&c==O(t)&&c==f.length)for(e=0;e<c;e++){var v=V(t,e);null!==v&&(a[v].sWidth=Jt(f.eq(e).width()))}else{var x=z(r).clone().css("visibility","hidden").removeAttr("id");x.find("tbody tr").remove();var I=z("<tr/>").appendTo(x.find("tbody"));for(x.find("thead, tfoot").remove(),x.append(z(t.nTHead).clone()).append(z(t.nTFoot).clone()),x.find("tfoot th, tfoot td").css("width",""),f=ut(t,x.find("thead")[0]),e=0;e<u.length;e++)n=a[u[e]],f[e].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?Jt(n.sWidthOrig):"",n.sWidthOrig&&s&&z(f[e]).append(z("<div/>").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(e=0;e<u.length;e++)n=a[o=u[e]],z($t(t,o)).clone(!1).append(n.sContentPadding).appendTo(I);z("[name]",x).removeAttr("name");var w=z("<div/>").css(s||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(x).appendTo(p);s&&d?x.width(d):s?(x.css("width","auto"),x.removeAttr("width"),x.width()<p.clientWidth&&h&&x.width(p.clientWidth)):i?x.width(p.clientWidth):h&&x.width(h);var C=0;for(e=0;e<u.length;e++){var _=z(f[e]),T=_.outerWidth()-_.width(),F=g.bBounding?Math.ceil(f[e].getBoundingClientRect().width):_.outerWidth();C+=F,a[u[e]].sWidth=Jt(F-T)}r.style.width=Jt(C),w.remove()}if(h&&(r.style.width=Jt(h)),(h||s)&&!t._reszEvt){var S=function(){z(D).on("resize.DT-"+t.sInstance,Xt(function(){X(t)}))};b?setTimeout(S,1e3):S(),t._reszEvt=!0}}var Xt=S.util.throttle;function Vt(t,e){if(!t)return 0;var n=z("<div/>").css("width",Jt(t)).appendTo(e||y.body),o=n[0].offsetWidth;return n.remove(),o}function $t(t,e){var n=Gt(t,e);if(n<0)return null;var o=t.aoData[n];return o.nTr?o.anCells[e]:z("<td/>
2674").html(F(t,n,e,"display"))[0]}function Gt(t,e){for(var n,o=-1,r=-1,a=0,l=t.aoData.length;a<l;a++)(n=(n=(n=F(t,a,e,"display")+"").replace(Ut,"")).replace(/&nbsp;/g," ")).length>o&&(o=n.length,r=a);return r}function Jt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Yt(t){function e(t){t.length&&!z.isArray(t[0])?h.push(t):z.merge(h,t)}var n,o,r,a,l,i,s,d=[],c=t.aoColumns,u=t.aaSortingFixed,f=z.isPlainObject(u),h=[];for(z.isArray(u)&&e(u),f&&u.pre&&e(u.pre),e(t.aaSorting),f&&u.post&&e(u.post),n=0;n<h.length;n++)for(o=0,r=(a=c[s=h[n][0]].aDataSort).length;o<r;o++)i=c[l=a[o]].sType||"string",h[n]._idx===U&&(h[n]._idx=z.inArray(h[n][1],c[l].asSorting)),d.push({src:s,col:l,dir:h[n][1],index:h[n]._idx,type:i,formatter:S.ext.type.order[i+"-pre"]});return d}function Kt(t){var e,n,o,r,c,u=[],f=S.ext.type.order,h=t.aoData,a=(t.aoColumns,0),l=t.aiDisplayMaster;for(T(t),e=0,n=(c=Yt(t)).length;e<n;e++)(r=c[e]).formatter&&a++,ne(t,r.col);if("ssp"!=pe(t)&&0!==c.length){for(e=0,o=l.length;e<o;e++)u[l[e]]=e;a===c.length?l.sort(function(t,e){var n,o,r,a,l,i=c.length,s=h[t]._aSortData,d=h[e]._aSortData;for(r=0;r<i;r++)if(0!=(a=(n=s[(l=c[r]).col])<(o=d[l.col])?-1:o<n?1:0))return"asc"===l.dir?a:-a;return(n=u[t])<(o=u[e])?-1:o<n?1:0}):l.sort(function(t,e){var n,o,r,a,l,i=c.length,s=h[t]._aSortData,d=h[e]._aSortData;for(r=0;r<i;r++)if(n=s[(l=c[r]).col],o=d[l.col],0!==(a=(f[l.type+"-"+l.dir]||f["string-"+l.dir])(n,o)))return a;return(n=u[t])<(o=u[e])?-1:o<n?1:0})}t.bSorted=!0}function Qt(t){for(var e,n=t.aoColumns,o=Yt(t),r=t.oLanguage.oAria,a=0,l=n.length;a<l;a++){var i=n[a],s=i.asSorting,d=i.sTitle.replace(/<.*?>/g,""),c=i.nTh;c.removeAttribute("aria-sort"),e=i.bSortable?d+("asc"===(0<o.length&&o[0].col==a?(c.setAttribute("aria-sort","asc"==o[0].dir?"ascending":"descending"),s[o[0].index+1]||s[0]):s[0])?r.sSortAscending:r.sSortDescending):d,c.setAttribute("aria-label",e)}}function Zt(t,e,n,o){function r(t,e){var n=t._idx;return n===U&&(n=z.inArray(t[1],s)),n+1<s.length?n+1:e?null:0}var a,l=t.aoColumns[e],i=t.aaSorting,s=l.asSorting;if("number"==typeof i[0]&&(i=t.aaSorting=[i]),n&&t.oFeatures.bSortMulti){var d=z.inArray(e,q(i,"0"));-1!==d?(null===(a=r(i[d],!0))&&1===i.length&&(a=0),null===a?i.splice(d,1):(i[d][1]=s[a],i[d]._idx=a)):(i.push([e,s[0],0]),i[i.length-1]._idx=0)}else i.length&&i[0][0]==e?(a=r(i[0]),i.length=1,i[0][1]=s[a],i[0]._idx=a):(i.length=0,i.push([e,s[0]]),i[0]._idx=0);st(t),"function"==typeof o&&o(t)}function te(e,t,n,o){var r=e.aoColumns[n];de(t,{},function(t){!1!==r.bSortable&&(e.oFeatures.bProcessing?(Et(e,!0),setTimeout(function(){Zt(e,n,t.shiftKey,o),"ssp"!==pe(e)&&Et(e,!1)},0)):Zt(e,n,t.shiftKey,o))})}function ee(t){var e,n,o,r=t.aLastSort,a=t.oClasses.sSortColumn,l=Yt(t),i=t.oFeatures;if(i.bSort&&i.bSortClasses){for(e=0,n=r.length;e<n;e++)o=r[e].src,z(q(t.aoData,"anCells",o)).removeClass(a+(e<2?e+1:3));for(e=0,n=l.length;e<n;e++)o=l[e].src,z(q(t.aoData,"anCells",o)).addClass(a+(e<2?e+1:3))}t.aLastSort=l}function ne(t,e){var n,o,r,a=t.aoColumns[e],l=S.ext.order[a.sSortDataType];l&&(n=l.call(t.oInstance,t,e,_(t,e)));for(var i=S.ext.type.order[a.sType+"-pre"],s=0,d=t.aoData.length;s<d;s++)(o=t.aoData[s])._aSortData||(o._aSortData=[]),o._aSortData[e]&&!l||(r=l?n[s]:F(t,s,e,"sort"),o._aSortData[e]=i?i(r):r)}function oe(n){if(n.oFeatures.bStateSave&&!n.bDestroying){var t={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:z.extend(!0,[],n.aaSorting),search:St(n.oPreviousSearch),columns:z.map(n.aoColumns,function(t,e){return{visible:t.bVisible,search:St(n.aoPreSearchCols[e])}})};ue(n,"aoStateSaveParams","stateSaveParams",[n,t]),n.oSavedState=t,n.fnStateSaveCallback.call(n.oInstance,n,t)}}function re(r,t,a){function e(t){if(t&&t.time){var e=ue(r,"aoStateLoadParams","stateLoadParams",[r,t]);if(-1===z.inArray(!1,e)){var n=r.iStateDuration;if(0<n&&t.time<+new Date-1e3*n)a();else if(t.columns&&s.length!==t.columns.length)a();else{if(r.oLoadedState=z.extend(!0,{},t),t.start!==U&&(r._iDisplayStart=t.start,r.iInitDisplayStart=t.start),t.length!==U&&(r._iDisplayLength=t.length),t.order!==U&&(r.aaSorting=[],z.each(t.order,function(t,e){r.aaSorting.push(e[0]>=s.length?[0,e[1]]:e)})),t.search!==U&&z.extend(r.oPreviousSearch,Dt(t.search)),t.columns)for(l=0,i=t.columns.length;l<i;l++){var o=t.columns[l];o.visible!==U&&(s[l].bVisible=o.visible),o.search!==U&&z.extend(r.aoPreSearchCols[l],Dt(o.search))}ue(r,"aoStateLoaded","stateLoaded",[r,t]),a()}}else a()}else a()}var l,i,s=r.aoColumns;if(r.oFeatures.bStateSave){var n=r.fnStateLoadCallback.call(r.oInstance,r,e);n!==U&&e(n)}else a()}function ae(t){var e=S.settings,n=z.inArray(t,q(e,"nTable"));return-1!==n?e[n]:null}function le(t,e,n,o){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,o&&(n+=". For more information about this error, please see http://datatables.net/tn/"+o),e)D.console&&console.log&&console.log(n);else{var r=S.ext,a=r.sErrMode||r.errMode;if(t&&ue(t,null,"error",[t,o,n]),"alert"==a)alert(n);else{if("throw"==a)throw new Error(n);"function"==typeof a&&a(t,o,n)}}}function ie(n,o,t,e){z.isArray(t)?z.each(t,function(t,e){z.isArray(e)?ie(n,o,e[0],e[1]):ie(n,o,e)}):(e===U&&(e=t),o[t]!==U&&(n[e]=o[t]))}function se(t,e,n){var o;for(var r in e)e.hasOwnProperty(r)&&(o=e[r],z.isPlainObject(o)?(z.isPlainObject(t[r])||(t[r]={}),z.extend(!0,t[r],o)):n&&"data"!==r&&"aaData"!==r&&z.isArray(o)?t[r]=o.slice():t[r]=o);return t}function de(e,t,n){z(e).on("click.DT",t,function(t){e.blur(),n(t)}).on("keypress.DT",t,function(t){13===t.which&&(t.preventDefault(),n(t))}).on("selectstart.DT",function(){return!1})}function ce(t,e,n,o){n&&t[e].push({fn:n,sName:o})}function ue(n,t,e,o){var r=[];if(t&&(r=z.map(n[t].slice().reverse(),function(t,e){return t.fn.apply(n.oInstance,o)})),null!==e){var a=z.Event(e+".dt");z(n.nTable).trigger(a,o),r.push(a.result)}return r}function fe(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),o=t._iDisplayLength;n<=e&&(e=n-o),e-=e%o,(-1===o||e<0)&&(e=0),t._iDisplayStart=e}function he(t,e){var n=t.renderer,o=S.ext.renderer[e];return z.isPlainObject(n)&&n[e]?o[n[e]]||o._:"string"==typeof n&&o[n]||o._}function pe(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var me=[],ge=Array.prototype;v=function(t,e){if(!(this instanceof v))return new v(t,e);function n(t){var e=function(t){var e,n,o=S.settings,r=z.map(o,function(t,e){return t.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=z.inArray(t,r))?[o[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=z(t):t instanceof z&&(n=t),n?n.map(function(t){return-1!==(e=z.inArray(this,r))?o[e]:null}).toArray():void 0):[]}(t);e&&(o=o.concat(e))}var o=[];if(z.isArray(t))for(var r=0,a=t.length;r<a;r++)n(t[r]);else n(t);this.context=x(o),e&&z.merge(this,e),this.selector={rows:null,cols:null,opts:null},v.extend(this,this,me)},S.Api=v,z.extend(v.prototype,{any:function(){return 0!==this.count()},concat:ge.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new v(e[t],this[t]):null},filter:function(t){var e=[];
2674if(ge.filter)e=ge.filter.call(this,t,this);else for(var n=0,o=this.length;n<o;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new v(this.context,e)},flatten:function(){var t=[];return new v(this.context,t.concat.apply(t,this.toArray()))},join:ge.join,indexOf:ge.indexOf||function(t,e){for(var n=e||0,o=this.length;n<o;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,o){var r,a,l,i,s,d,c,u,f=[],h=this.context,p=this.selector;for("string"==typeof t&&(o=n,n=e,e=t,t=!1),a=0,l=h.length;a<l;a++){var m=new v(h[a]);if("table"===e)(r=n.call(m,h[a],a))!==U&&f.push(r);else if("columns"===e||"rows"===e)(r=n.call(m,h[a],this[a],a))!==U&&f.push(r);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(c=this[a],"column-rows"===e&&(d=Ie(h[a],p.opts)),i=0,s=c.length;i<s;i++)u=c[i],(r="cell"===e?n.call(m,h[a],u.row,u.column,a,i):n.call(m,h[a],u,a,i,d))!==U&&f.push(r)}if(f.length||o){var g=new v(h,t?f.concat.apply([],f):f),b=g.selector;return b.rows=p.rows,b.cols=p.cols,b.opts=p.opts,g}return this},lastIndexOf:ge.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(ge.map)e=ge.map.call(this,t,this);else for(var n=0,o=this.length;n<o;n++)e.push(t.call(this,this[n],n));return new v(this.context,e)},pluck:function(e){return this.map(function(t){return t[e]})},pop:ge.pop,push:ge.push,reduce:ge.reduce||function(t,e){return C(this,t,e,0,this.length,1)},reduceRight:ge.reduceRight||function(t,e){return C(this,t,e,this.length-1,-1,-1)},reverse:ge.reverse,selector:null,shift:ge.shift,slice:function(){return new v(this.context,this)},sort:ge.sort,splice:ge.splice,toArray:function(){return ge.slice.call(this)},to$:function(){return z(this)},toJQuery:function(){return z(this)},unique:function(){return new v(this.context,x(this))},unshift:ge.unshift}),v.extend=function(t,e,n){if(n.length&&e&&(e instanceof v||e.__dt_wrapper)){var o,r,a,l=function(e,n,o){return function(){var t=n.apply(e,arguments);return v.extend(t,t,o.methodExt),t}};for(o=0,r=n.length;o<r;o++)e[(a=n[o]).name]="function"==typeof a.val?l(t,a.val,a):z.isPlainObject(a.val)?{}:a.val,e[a.name].__dt_wrapper=!0,v.extend(t,e[a.name],a.propExt)}},v.register=e=function(t,e){if(z.isArray(t))for(var n=0,o=t.length;n<o;n++)v.register(t[n],e);else{var r,a,l,i,s=t.split("."),d=me,c=function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n].name===e)return t[n];return null};for(r=0,a=s.length;r<a;r++){var u=c(d,l=(i=-1!==s[r].indexOf("()"))?s[r].replace("()",""):s[r]);u||(u={name:l,val:{},methodExt:[],propExt:[]},d.push(u)),r===a-1?u.val=e:d=i?u.methodExt:u.propExt}}},v.registerPlural=t=function(t,e,n){v.register(t,n),v.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof v?t.length?z.isArray(t[0])?new v(t.context,t[0]):t[0]:U:t})};e("tables()",function(t){return t?new v(function(t,n){if("number"==typeof t)return[n[t]];var o=z.map(n,function(t,e){return t.nTable});return z(o).filter(t).map(function(t){var e=z.inArray(this,o);return n[e]}).toArray()}(t,this.context)):this}),e("table()",function(t){var e=this.tables(t),n=e.context;return n.length?new v(n[0]):e}),t("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),t("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),t("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),t("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),t("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),e("draw()",function(e){return this.iterator("table",function(t){"page"===e?it(t):("string"==typeof e&&(e="full-hold"!==e),st(t,!1===e))})}),e("page()",function(e){return e===U?this.page.info().page:this.iterator("table",function(t){Pt(t,e)})}),e("page.info()",function(t){if(0===this.context.length)return U;var e=this.context[0],n=e._iDisplayStart,o=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),a=-1===o;return{page:a?0:Math.floor(n/o),pages:a?1:Math.ceil(r/o),start:n,end:e.fnDisplayEnd(),length:o,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===pe(e)}}),e("page.len()",function(e){return e===U?0!==this.context.length?this.context[0]._iDisplayLength:U:this.iterator("table",function(t){Lt(t,e)})});function be(r,a,t){if(t){var e=new v(r);e.one("draw",function(){t(e.ajax.json())})}if("ssp"==pe(r))st(r,a);else{Et(r,!0);var n=r.jqXHR;n&&4!==n.readyState&&n.abort(),ft(r,[],function(t){Z(r);for(var e=gt(r,t),n=0,o=e.length;n<o;n++)E(r,e[n]);st(r,a),Et(r,!1)})}}e("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}
2674),e("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),e("ajax.reload()",function(e,n){return this.iterator("table",function(t){be(t,!1===n,e)})}),e("ajax.url()",function(e){var t=this.context;return e===U?0===t.length?U:(t=t[0]).ajax?z.isPlainObject(t.ajax)?t.ajax.url:t.ajax:t.sAjaxSource:this.iterator("table",function(t){z.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e})}),e("ajax.url().load()",function(e,n){return this.iterator("table",function(t){be(t,!1===n,e)})});function ye(t,e,n,o,r){var a,l,i,s,d,c,u=[],f=typeof e;for(e&&"string"!=f&&"function"!=f&&e.length!==U||(e=[e]),i=0,s=e.length;i<s;i++)for(d=0,c=(l=e[i]&&e[i].split&&!e[i].match(/[\[\(:]/)?e[i].split(","):[e[i]]).length;d<c;d++)(a=n("string"==typeof l[d]?z.trim(l[d]):l[d]))&&a.length&&(u=u.concat(a));var h=b.selector[t];if(h.length)for(i=0,s=h.length;i<s;i++)u=h[i](o,r,u);return x(u)}function ve(t){return(t=t||{}).filter&&t.search===U&&(t.search=t.filter),z.extend({search:"none",order:"current",page:"all"},t)}function xe(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t}var Ie=function(t,e){var n,o,r,a=[],l=t.aiDisplay,i=t.aiDisplayMaster,s=e.search,d=e.order,c=e.page;if("ssp"==pe(t))return"removed"===s?[]:p(0,i.length);if("current"==c)for(n=t._iDisplayStart,o=t.fnDisplayEnd();n<o;n++)a.push(l[n]);else if("current"==d||"applied"==d)a="none"==s?i.slice():"applied"==s?l.slice():z.map(i,function(t,e){return-1===z.inArray(t,l)?t:null});else if("index"==d||"original"==d)for(n=0,o=t.aoData.length;n<o;n++)"none"==s?a.push(n):(-1===(r=z.inArray(n,l))&&"removed"==s||0<=r&&"applied"==s)&&a.push(n);return a};e("rows()",function(e,n){e===U?e="":z.isPlainObject(e)&&(n=e,e=""),n=ve(n);var t=this.iterator("table",function(t){return function(a,t,l){var i;return ye("row",t,function(n){var t=h(n);if(null!==t&&!l)return[t];if(i=i||Ie(a,l),null!==t&&-1!==z.inArray(t,i))return[t];if(null===n||n===U||""===n)return i;if("function"==typeof n)return z.map(i,function(t){var e=a.aoData[t];return n(t,e._aData,e.nTr)?t:null});var e=g(m(a.aoData,i,"nTr"));if(n.nodeName){if(n._DT_RowIndex!==U)return[n._DT_RowIndex];if(n._DT_CellIndex)return[n._DT_CellIndex.row];var o=z(n).closest("*[data-dt-row]");return o.length?[o.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var r=a.aIds[n.replace(/^#/,"")];if(r!==U)return[r.idx]}return z(e).filter(n).map(function(){return this._DT_RowIndex}).toArray()},a,l)}(t,e,n)},1);return t.selector.rows=e,t.selector.opts=n,t}),e("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||U},1)}),e("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return m(t.aoData,e,"_aData")},1)}),t("rows().cache()","row().cache()",function(o){return this.iterator("row",function(t,e){var n=t.aoData[e];return"search"===o?n._aFilterData:n._aSortData},1)}),t("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(t,e){et(t,e,n)})}),t("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),t("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,o=0,r=n.length;o<r;o++)for(var a=0,l=this[o].length;a<l;a++){var i=n[o].rowIdFn(n[o].aoData[this[o][a]]._aData);e.push((!0===t?"#":"")+i)}return new v(n,e)}),t("rows().remove()","row().remove()",function(){var f=this;return this.iterator("row",function(t,e,n){var o,r,a,l,i,s,d=t.aoData,c=d[e];for(d.splice(e,1),o=0,r=d.length;o<r;o++)if(s=(i=d[o]).anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=o),null!==s)for(a=0,l=s.length;a<l;a++)s[a]._DT_CellIndex.row=o;tt(t.aiDisplayMaster,e),tt(t.aiDisplay,e),tt(f[n],e,!1),0<t._iRecordsDisplay&&t._iRecordsDisplay--,fe(t);var u=t.rowIdFn(c._aData);u!==U&&delete t.aIds[u]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),e("rows.add()",function(a){var t=this.iterator("table",function(t){var e,n,o,r=[];for(n=0,o=a.length;n<o;n++)(e=a[n]).nodeName&&"TR"===e.nodeName.toUpperCase()?r.push(W(t,e)[0]):r.push(E(t,e));return r},1),e=this.rows(-1);return e.pop(),z.merge(e,t),e}),e("row()",function(t,e){return xe(this.rows(t,e))}),e("row().data()",function(t){var e=this.context;return t===U?e.length&&this.length?e[0].aoData[this[0]]._aData:U:(e[0].aoData[this[0]]._aData=t,et(e[0],this[0],"data"),this)}),e("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),e("row.add()",function(e){e instanceof z&&e.length&&(e=e[0]);
2674var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?W(t,e)[0]:E(t,e)});return this.row(t[0])});function we(t,e){var n=t.context;if(n.length){var o=n[0].aoData[e!==U?e:t[0]];o&&o._details&&(o._details.remove(),o._detailsShow=U,o._details=U)}}function Ce(t,e){var n=t.context;if(n.length&&t.length){var o=n[0].aoData[t[0]];o._details&&((o._detailsShow=e)?o._details.insertAfter(o.nTr):o._details.detach(),_e(n[0]))}}var _e=function(s){var r=new v(s),t=".dt.DT_details",e="draw"+t,n="column-visibility"+t,o="destroy"+t,d=s.aoData;r.off(e+" "+n+" "+o),0<q(d,"_details").length&&(r.on(e,function(t,e){s===e&&r.rows({page:"current"}).eq(0).each(function(t){var e=d[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(n,function(t,e,n,o){if(s===e)for(var r,a=O(e),l=0,i=d.length;l<i;l++)(r=d[l])._details&&r._details.children("td[colspan]").attr("colspan",a)}),r.on(o,function(t,e){if(s===e)for(var n=0,o=d.length;n<o;n++)d[n]._details&&we(r,n)}))},Te="row().child",Fe=Te+"()";e(Fe,function(t,e){var n=this.context;return t===U?n.length&&this.length?n[0].aoData[this[0]]._details:U:(!0===t?this.child.show():!1===t?we(this):n.length&&this.length&&function(a,t,e,n){var l=[],i=function(t,e){if(z.isArray(t)||t instanceof z)for(var n=0,o=t.length;n<o;n++)i(t[n],e);else if(t.nodeName&&"tr"===t.nodeName.toLowerCase())l.push(t);else{var r=z("<tr><td/></tr>").addClass(e);z("td",r).addClass(e).html(t)[0].colSpan=O(a),l.push(r[0])}};i(e,n),t._details&&t._details.detach(),t._details=z(l),t._detailsShow&&t._details.insertAfter(t.nTr)}(n[0],n[0].aoData[this[0]],t,e),this)}),e([Te+".show()",Fe+".show()"],function(t){return Ce(this,!0),this}),e([Te+".hide()",Fe+".hide()"],function(){return Ce(this,!1),this}),e([Te+".remove()",Fe+".remove()"],function(){return we(this),this}),e(Te+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});function Se(t,e,n,o,r){for(var a=[],l=0,i=r.length;l<i;l++)a.push(F(t,r[l],e));return a}var De=/^([^:]+):(name|visIdx|visible)$/;e("columns()",function(e,n){e===U?e="":z.isPlainObject(e)&&(n=e,e=""),n=ve(n);var t=this.iterator("table",function(t){return function(s,t,d){var c=s.aoColumns,u=q(c,"sName"),f=q(c,"nTh");return ye("column",t,function(n){var t=h(n);if(""===n)return p(c.length);if(null!==t)return[0<=t?t:c.length+t];if("function"==typeof n){var o=Ie(s,d);return z.map(c,function(t,e){return n(e,Se(s,e,0,0,o),f[e])?e:null})}var r="string"==typeof n?n.match(De):"";if(r)switch(r[2]){case"visIdx":case"visible":var e=parseInt(r[1],10);if(e<0){var a=z.map(c,function(t,e){return t.bVisible?e:null});return[a[a.length+e]]}return[V(s,e)];case"name":return z.map(u,function(t,e){return t===r[1]?e:null});default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var l=z(f).filter(n).map(function(){return z.inArray(this,f)}).toArray();if(l.length||!n.nodeName)return l;var i=z(n).closest("*[data-dt-column]");return i.length?[i.data("dt-column")]:[]},s,d)}(t,e,n)},1);return t.selector.cols=e,t.selector.opts=n,t}),t("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),t("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),t("columns().data()","column().data()",function(){return this.iterator("column-rows",Se,1)}),t("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),t("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(t,e,n,o,r){return m(t.aoData,r,"search"===a?"_aFilterData":"_aSortData",e)},1)}),t("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,o,r){return m(t.aoData,r,"anCells",e)},1)}),t("columns().visible()","column().visible()",function(n,o){var t=this.iterator("column",function(t,e){if(n===U)return t.aoColumns[e].bVisible;!function(t,e,n){var o,r,a,l,i=t.aoColumns,s=i[e],d=t.aoData;if(n===U)return s.bVisible;if(s.bVisible!==n){if(n){var c=z.inArray(!0,q(i,"bVisible"),e+1);for(r=0,a=d.length;r<a;r++)l=d[r].nTr,o=d[r].anCells,l&&l.insertBefore(o[e],o[c]||null)}else z(q(t.aoData,"anCells",e)).detach();s.bVisible=n,lt(t,t.aoHeader),lt(t,t.aoFooter),oe(t)}}(t,e,n)});return n!==U&&(this.iterator("column",function(t,e){ue(t,null,"column-visibility",[t,e,n,o])}),o!==U&&!o||this.columns.adjust()),t}),t("columns().indexes()","column().index()",function(n){return this.iterator("column",function(t,e){return"visible"===n?_(t,e):e},1)}),e("columns.adjust()",function(){return this.iterator("table",function(t){X(t)},1)}),e("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return V(n,e);if("fromData"===t||"toVisible"===t)return _(n,e)}}),e("column()",function(t,e){return xe(this.columns(t,e))});e("cells()",function(e,t,n){if(z.isPlainObject(e)&&(e.row===U?(n=e,e=null):(n=t,t=null)),z.isPlainObject(t)&&(n=t,t=null),null===t||t===U)return this.iterator("table",function(t){return function(o,t,e){var r,a,l,i,s,d,c,u=o.aoData,f=Ie(o,e),n=g(m(u,f,"anCells")),h=z([].concat.apply([],n)),p=o.aoColumns.length;return ye("cell",t,function(t){var e="function"==typeof t;if(null===t||t===U||e){for(a=[],l=0,i=f.length;l<i;l++)for(r=f[l],s=0;s<p;s++)d={row:r,column:s},e?(c=u[r],t(d,F(o,r,s),c.anCells?c.anCells[s]:null)&&a.push(d)):a.push(d);return a}if(z.isPlainObject(t))return[t];var n=h.filter(t).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return n.length||!t.nodeName?n:(c=z(t).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},o,e)}(t,e,ve(n))});var o,r,a,l,i,s=this.columns(t,n),d=this.rows(e,n),c=this.iterator("table",function(t,e){for(o=[],r=0,a=d[e].length;r<a;r++)for(l=0,i=s[e].length;l<i;l++)o.push({row:d[e][r],column:s[e][l]});return o},1);return z.extend(c.selector,{cols:t,rows:e,opts:n}
vendor: 4,240 bytes, line 2674
2674),c}),t("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var o=t.aoData[e];return o&&o.anCells?o.anCells[n]:U},1)}),e("cells().data()",function(){return this.iterator("cell",function(t,e,n){return F(t,e,n)},1)}),t("cells().cache()","cell().cache()",function(o){return o="search"===o?"_aFilterData":"_aSortData",this.iterator("cell",function(t,e,n){return t.aoData[e][o][n]},1)}),t("cells().render()","cell().render()",function(o){return this.iterator("cell",function(t,e,n){return F(t,e,n,o)},1)}),t("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:_(t,n)}},1)}),t("cells().invalidate()","cell().invalidate()",function(o){return this.iterator("cell",function(t,e,n){et(t,e,o,n)})}),e("cell()",function(t,e,n){return xe(this.cells(t,e,n))}),e("cell().data()",function(t){var e=this.context,n=this[0];return t===U?e.length&&n.length?F(e[0],n[0].row,n[0].column):U:(M(e[0],n[0].row,n[0].column,t),et(e[0],n[0].row,"data",n[0].column),this)}),e("order()",function(e,t){var n=this.context;return e===U?0!==n.length?n[0].aaSorting:U:("number"==typeof e?e=[[e,t]]:e.length&&!z.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),e("order.listener()",function(e,n,o){return this.iterator("table",function(t){te(t,e,n,o)})}),e("order.fixed()",function(e){if(e)return this.iterator("table",function(t){t.aaSortingFixed=z.extend(!0,{},e)});var t=this.context,n=t.length?t[0].aaSortingFixed:U;return z.isArray(n)?{pre:n}:n}),e(["columns().order()","column().order()"],function(o){var r=this;return this.iterator("table",function(t,e){var n=[];z.each(r[e],function(t,e){n.push([e,o])}),t.aaSorting=n})}),e("search()",function(e,n,o,r){var t=this.context;return e===U?0!==t.length?t[0].oPreviousSearch.sSearch:U:this.iterator("table",function(t){t.oFeatures.bFilter&&yt(t,z.extend({},t.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),1)})}),t("columns().search()","column().search()",function(o,r,a,l){return this.iterator("column",function(t,e){var n=t.aoPreSearchCols;if(o===U)return n[e].sSearch;t.oFeatures.bFilter&&(z.extend(n[e],{sSearch:o+"",bRegex:null!==r&&r,bSmart:null===a||a,bCaseInsensitive:null===l||l}),yt(t,t.oPreviousSearch,1))})}),e("state()",function(){return this.context.length?this.context[0].oSavedState:null}),e("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),e("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),e("state.save()",function(){return this.iterator("table",function(t){oe(t)})}),S.versionCheck=S.fnVersionCheck=function(t){for(var e,n,o=S.version.split("."),r=t.split("."),a=0,l=r.length;a<l;a++)if((e=parseInt(o[a],10)||0)!==(n=parseInt(r[a],10)||0))return n<e;return!0},S.isDataTable=S.fnIsDataTable=function(t){var r=z(t).get(0),a=!1;return t instanceof S.Api||(z.each(S.settings,function(t,e){var n=e.nScrollHead?z("table",e.nScrollHead)[0]:null,o=e.nScrollFoot?z("table",e.nScrollFoot)[0]:null;e.nTable!==r&&n!==r&&o!==r||(a=!0)}),a)},S.tables=S.fnTables=function(e){var t=!1;z.isPlainObject(e)&&(t=e.api,e=e.visible);var n=z.map(S.settings,function(t){if(!e||e&&z(t.nTable).is(":visible"))return t.nTable});return t?new v(n):n},S.camelToHungarian=A,e("$()",function(t,e){var n=this.rows(e).nodes(),o=z(n);return z([].concat(o.filter(t).toArray(),o.find(t).toArray()))}),z.each(["on","one","off"],function(t,n){e(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=z.map(t[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var e=z(this.tables().nodes());return e[n].apply(e,t),this})}),e("clear()",function(){return this.iterator("table",function(t){Z(t)})}),e("settings()",function(){return new v(this.context,this.context)}),e("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),e("data()",function(){return this.iterator("table",function(t){return q(t.aoData,"_aData")}).flatten()}),e("destroy()",function(p){return p=p||!1,this.iterator("table",function(e){var n,t=e.nTableWrapper.parentNode,o=e.oClasse
vendor: 5,512 bytes, line 2674
2674s,r=e.nTable,a=e.nTBody,l=e.nTHead,i=e.nTFoot,s=z(r),d=z(a),c=z(e.nTableWrapper),u=z.map(e.aoData,function(t){return t.nTr});e.bDestroying=!0,ue(e,"aoDestroyCallback","destroy",[e]),p||new v(e).columns().visible(!0),c.off(".DT").find(":not(tbody *)").off(".DT"),z(D).off(".DT-"+e.sInstance),r!=l.parentNode&&(s.children("thead").detach(),s.append(l)),i&&r!=i.parentNode&&(s.children("tfoot").detach(),s.append(i)),e.aaSorting=[],e.aaSortingFixed=[],ee(e),z(u).removeClass(e.asStripeClasses.join(" ")),z("th, td",l).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),d.children().detach(),d.append(u);var f=p?"remove":"detach";s[f](),c[f](),!p&&t&&(t.insertBefore(r,e.nTableReinsertBefore),s.css("width",e.sDestroyWidth).removeClass(o.sTable),(n=e.asDestroyStripes.length)&&d.children().each(function(t){z(this).addClass(e.asDestroyStripes[t%n])}));var h=z.inArray(e,S.settings);-1!==h&&S.settings.splice(h,1)})}),z.each(["column","row","cell"],function(t,s){e(s+"s().every()",function(a){var l=this.selector.opts,i=this;return this.iterator(s,function(t,e,n,o,r){a.call(i[s](e,"cell"===s?n:l,"cell"===s?l:U),e,n,o,r)})})}),e("i18n()",function(t,e,n){var o=this.context[0],r=Y(t)(o.oLanguage);return r===U&&(r=e),n!==U&&z.isPlainObject(r)&&(r=r[n]!==U?r[n]:r._),r.replace("%d",n)}),S.version="1.10.16",S.settings=[],S.models={},S.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},S.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},S.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},S.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:z.extend({},S.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},I(S.defaults),S.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},I(S.defaults.column),S.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:U,oAjaxD
2674ata:U,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,o=this.aiDisplay.length,r=this.oFeatures,a=r.bPaginate;return r.bServerSide?!1===a||-1===t?e+o:Math.min(e+t,this._iRecordsDisplay):!a||o<n||-1===t?o:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},S.ext=b={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:S.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:S.version},z.extend(b,{afnFiltering:b.search,aTypes:b.type.detect,ofnSearch:b.type.search,oSort:b.type.order,afnSortData:b.order,aoFeatures:b.feature,oApi:b.internal,oStdClasses:b.classes,oPagination:b.pager}),z.extend(S.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ae=S.ext.pager;function Re(t,e){var n=[],o=Ae.numbers_length,r=Math.floor(o/2);return e<=o?n=p(0,e):t<=r?((n=p(0,o-2)).push("ellipsis"),n.push(e-1)):(e-1-r<=t?(n=p(e-(o-2),e)).splice(0,0,"ellipsis"):((n=p(t-r+2,t+r-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis")),n.splice(0,0,0)),n.DT_el="span",n}z.extend(Ae,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Re(t,e)]},simple_numbers:function(t,e){return["previous",Re(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Re(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Re(t,e),"last"]},_numbers:Re,numbers_length:7}),z.extend(!0,S.ext.renderer,{pageButton:{_:function(i,t,s,e,d,c){var u,f,n,h=i.oClasses,p=i.oLanguage.oPaginate,m=i.oLanguage.oAria.paginate||{},g=0,b=function(t,e){function n(t){Pt(i,t.data.action,!0)}var o,r,a;for(o=0,r=e.length;o<r;o++)if(a=e[o],z.isArray(a)){var l=z("<"+(a.DT_el||"div")+"/>").appendTo(t);b(l,a)}else{switch(u=null,f="",a){case"ellipsis":t.append('<span class="ellipsis">&#x2026;</span>');break;case"first":u=p.sFirst,f=a+(0<d?"":" "+h.sPageButtonDisabled);break;case"previous":u=p.sPrevious,f=a+(0<d?"":" "+h.sPageButtonDisabled);break;case"next":u=p.sNext,f=a+(d<c-1?"":" "+h.sPageButtonDisabled);break;case"last":u=p.sLast,f=a+(d<c-1?"":" "+h.sPageButtonDisabled);break;default:u=a+1,f=d===a?h.sPageButtonActive:""}null!==u&&(de(z("<a>",{class:h.sPageButton+" "+f,"aria-controls":i.sTableId,"aria-label":m[a],"data-dt-idx":g,tabindex:i.iTabIndex,id:0===s&&"string"==typeof a?i.sTableId+"_"+a:null}).html(u).appendTo(t),{action:a},n),g++)}};try{n=z(t).find(y.activeElement).data("dt-idx")}catch(t){}b(z(t).empty(),e),n!==U&&z(t).find("[data-dt-idx="+n+"]").focus()}}}),z.extend(S.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return o(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!d.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||r(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return o(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return l(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return l(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return r(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),z.extend(S.ext.type.search,{html:function(t){return r(t)?t:"string"==typeof t?t.replace(i," ").replace(s,""):""},string:function(t){return r(t)?t:"string"==typeof t?t.replace(i," "):t}});var Be=function(t,e,n,o){return 0===t||t&&"-"!==t?(e&&(t=a(t,e)),t.replace&&(n&&(t=t.replace(n,"")),o&&(t=t.replace(o,""))),1*t):-1/0};function ke(n){z.each({num:function(t){return Be(t,n)},"num-fmt":function(t){return Be(t,n,u)},"html-num":function(t){return Be(t,n,s)},"html-num-fmt":function(t){return Be(t,n,s,u)}},function(t,e){b.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(b.type.search[t+n]=b.type.search.html)})}z.extend(b.type.order,{"date-pre":function(t){return Date.parse(t)||-1/0},"html-pre":function(t){return r(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return r(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0}}),ke(""),z.extend(!0,S.ext.renderer,{header:{_:function(a,l,i,s){z(a.nTable).on("order.dt.DT",function(t,e,n,o){if(a===e){var r=i.idx;l.removeClass(i.sSortingClass+" "+s.sSortAsc+" "+s.sSortDesc).addClass("asc"==o[r]?s.sSortAsc:"desc"==o[r]?s.sSortDesc:i.sSortingClass)}})},jqueryui:function(a,l,i,s){z("<div/>").addClass(s.sSortJUIWrapper).append(l.contents()).append(z("<span/>").addClass(s.sSortIcon+" "+i.sSortingClassJUI)).appendTo(l),z(a.nTable).on("order.dt.DT",function(t,e,n,o){if(a===e){var r=i.idx;l.removeClass(s.sSortAsc+" "+s.sSortDesc).addClass("asc"==o[r]?s.sSortAsc:"desc"==o[r]?s.sSortDesc:i.sSortingClass),l.find("span."+s.sSortIcon).removeClass(s.sSortJUIAsc+" "+s.sSortJUIDesc+" "+s.sSortJUI+" "+s.sSortJUIAscAllowed+" "+s.sSortJUIDescAllowed).addClass("asc"==o[r]?s.sSortJUIAsc:"desc"==o[r]?s.sSortJUIDesc:i.sSortingClassJUI)}})}}});function Ne(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t}function Le(e){return function(){var t=[ae(this[S.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return S.ext.internal[e].apply(this,t)}}return S.render={number:function(a,l,i,s,d){return{display:function(t){if("number"!=typeof t&&"string"!=typeof t)return t;var e=t<0?"-":"",n=parseFloat(t);if(isNaN(n))return Ne(t);n=n.toFixed(i),t=Math.abs(n);var o=parseInt(t,10),r=i?l+(t-o).toFixed(i).substring(2):"";return e+(s||"")+o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+r+(d||"")}}},text:function(){return{display:Ne}}},z.extend(S.ext.internal,{_fnExternApiFunc:Le,_fnBuildAjax:ft,_fnAjaxUpdate:ht,_fnAjaxParameters:pt,_fnAjaxUpdateDraw:mt,_fnAjaxDataSrc:gt,_fnAddColumn:L,_fnColumnOptions:H,_fnAdjustColumnSizing:X,_fnVisibleToColumnIndex:V,_fnColumnIndexToVisible:_,_fnVisbleColumns:O,_fnGetColumns:P,_fnColumnTypes:T,_fnApplyColumnDefs:j,_fnHungarianMap:I,_fnCamelToHungarian:A,_fnLanguageCompat:R,_fnBrowserDetect:N,_fnAddData:E,_fnAddTr:W,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==U?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,e,n){return z.inArray(n,t.aoData[e].anCells)},_fnGetCellData:F,_fnSetCellData:M,_fnSplitObjNotation:J,_fnGetObjectDataFn:Y,_fnSetObjectDataFn:K,_fnGetDataMaster:Q,_fnClearTable:Z,_fnDeleteIndex:tt,_fnInvalidate:et,_fnGetRowElements:nt,_fnCreateTr:ot,_fnBuildHead:at,_fnDrawHead:lt,_fnDraw:it,_fnReDraw:st,_fnAddOptionsHtml:dt,_fnDetectHeader:ct,_fnGetUniqueThs:ut,_fnFeatureHtmlFilter:bt,_fnFilterComplete:yt,_fnFilterCustom:vt,_fnFilterColumn:xt,_fnFilter:It,_fnFilterCreateSearch:wt,_fnEscapeRegex:Ct,_fnFilterData:Ft,_fnFeatureHtmlInfo:At,_fnUpdateInfo:Rt,_fnInfoMacros:Bt,_fnInitialise:kt,_fnInitComplete:Nt,_fnLengthChange:Lt,_fnFeatureHtmlLength:Ht,_fnFeatureHtmlPaginate:Ot,_fnPageChange:Pt,_fnFeatureHtmlProcessing:jt,_fnProcessingDisplay:Et,_fnFeatureHtmlTable:Wt,_fnScrollDraw:Mt,_fnApplyToChildren:zt,_fnCalculateColumnWidths:qt,_fnThrottle:Xt,_fnConvertToWidth:Vt,_fnGetWidestNode:$t,_fnGetMaxLenString:Gt,_fnStringToCss:Jt,_fnSortFlatten:Yt,_fnSort:Kt,_fnSortAria:Qt,_fnSortListener:Zt,_fnSortAttachListener:te,_fnSortingClasses:ee,_fnSortData:ne,_fnSaveState:oe,_fnLoadState:re,_fnSettingsFromNode:ae,_fnLog:le,_fnMap:ie,_fnBindAction:de,_fnCallbackReg:ce,_fnCallbackFire:ue,_fnLengthOverflow:fe,_fnRenderer:he,_fnDataSource:pe,_fnRowAttributes:rt,_fnCalculateEnd:function(){}}),((z.fn.dataTable=S).$=z).fn.dataTableSettings=S.settings,z.fn.dataTableExt=S.ext,z.fn.DataTable=function(t){return z(this).dataTable(t).api()},z.each(S,function(t,e){z.fn.DataTable[t]=e}),z.fn.dataTable}),function(n){"function"==typeof define&&define.amd?define("datatables.net-bs",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(v,t,o,r){"use strict";var a=v.fn.dataTable;return v.extend(!0,a.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),v.extend(a.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"}),a.ext.renderer.pageButton.bootstrap=function(i,t,s,e,d,c){var u,f,n,h=new a.Api(i),p=i.oClasses,m=i.oLanguage.oPaginate,g=i.oLanguage.oAria.paginate||{},b=0,y=function(t,e){function n(t){t.preventDefault(),v(t.currentTarget).hasClass("disabled")||h.page()==t.data.action||h.page(t.data.action).draw("page")}var o,r,a,l;for(o=0,r=e.length;o<r;o++)if(l=e[o],v.isArray(l))y(t,l);else{switch(f=u="",l){case"ellipsis":u="&#x2026;",f="disabled";break;case"first":u=m.sFirst,f=l+(0<d?"":" disabled");break;case"previous":u=m.sPrevious,f=l+(0<d?"":" disabled");break;case"next":u=m.sNext,f=l+(d<c-1?"":" disabled");break;case"last":u=m.sLast,f=l+(d<c-1?"":" disabled");break;default:u=l+1,f=d===l?"active":""}u&&(a=v("<li>",{class:p.sPageButton+" "+f,id:0===s&&"string"==typeof l?i.sTableId+"_"+l:null}).append(v("<a>",{href:"#","aria-controls":i.sTableId,"aria-label":g[l],"data-dt-idx":b,tabindex:i.iTabIndex}).html(u)).appendTo(t),i.oApi._fnBindAction(a,{action:l},n),b++)}};try{n=v(t).find(o.activeElement).data("dt-idx")}catch(t){}y(v(t).empty().html('<ul class="pagination"/>').children("ul"),e),n!==r&&v(t).find("[data-dt-idx="+n+"]").focus()},a}),function(n){"function"==typeof define&&define.amd?define("datatables.net-buttons",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(p,i,a,c){var r,m=p.fn.dataTable,n=0,d=0,s=m.ext.buttons,u=function(t,e){void 0===e&&(e={}),!0===e&&(e={}),p.isArray(e)&&(e={buttons:e}),this.c=p.extend(!0,{},u.defaults,e),e.buttons&&(this.c.buttons=e.buttons),this.s={dt:new m.Api(t),buttons:[],listenKeys:"",namespace:"dtb"+n++},this.dom={container:p("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};p.extend(u.prototype,{action:function(t,e){var n=this._nodeToButton(t);return e===c?n.conf.action:(n.conf.action=e,this)},active:function(t,e){var n=this._nodeToButton(t),o=this.c.dom.button.active;n=p(n.node);return e===c?n.hasClass(o):(n.toggleClass(o,e===c||e),this)},add:function(t,e){var n=this.s.buttons;if("string"==typeof e){for(var o=e.split("-"),r=(n=this.s,0),a=o.length-1;r<a;r++)n=n.buttons[1*o[r]];n=n.buttons,e=1*o[o.length-1]}return this._expandButton(n,t,!1,e),this._draw(),this},container:function(){return this.dom.container},disable:function(t){return t=this._nodeToButton(t),p(t.node).addClass(this.c.dom.button.disabled),this},destroy:function(){p("body").off("keyup."+this.s.namespace);var t,e,n=this.s.buttons.slice();for(t=0,e=n.length;t<e;t++)this.remove(n[t].node);for(this.dom.container.remove(),t=0,e=(n=this.s.dt.settings()[0]).length;t<e;t++)if(n.inst===this){n.splice(t,1);break}return this},enable:function(t,e){if(!1===e)return this.disable(t);var n=this._nodeToButton(t);return p(n.node).removeClass(this.c.dom.button.disabled),this},name:function(){return this.c.name},node:function(t){return t=this._nodeToButton(t),p(t.node)},processing:function(t,e){var n=this._nodeToButton(t);return e===c?p(n.node).hasClass("processing"):(p(n.node).toggleClass("processing",e),this)},remove:function(t){var e=this._nodeToButton(t),n=this._nodeToHost(t),o=this.s.dt;if(e.buttons.length)for(var r=e.buttons.length-1;0<=r;r--)this.remove(e.buttons[r].node);return e.conf.destroy&&e.conf.destroy.call(o.button(t),o,p(t),e.conf),this._removeKey(e.conf),p(e.node).remove(),t=p.inArray(e,n),n.splice(t,1),this},text:function(t,e){function n(t){return"function"==typeof t?t(a,l,o.conf):t}var o=this._nodeToButton(t),r=this.c.dom.collection.buttonLiner,a=(r=o.inCollection&&r&&r.tag?r.tag:this.c.dom.buttonLiner.tag,this.s.dt),l=p(o.node);return e===c?n(o.conf.text):(o.conf.text=e,r?l.children(r).html(n(e)):l.html(n(e)),this)},_constructor:function(){var n=this,t=this.s.dt,e=t.settings()[0],o=this.c.buttons;e._buttons||(e._buttons=[]),e._buttons.push({inst:this,name:this.c.name});e=0;for(var r=o.length;e<r;e++)this.add(o[e]);t.on("destroy",function(){n.destroy()}),p("body").on("keyup."+this.s.namespace,function(t){if(!a.activeElement||a.activeElement===a.body){var e=String.fromCharCode(t.keyCode).toLowerCase();-1!==n.s.listenKeys.toLowerCase().indexOf(e)&&n._keypress(e,t)}})},_addKey:function(t){t.key&&(this.s.listenKeys+=p.isPlainObject(t.key)?t.key.key:t.key)},_draw:function(t,e){t||(t=this.dom.container,e=this.s.buttons),t.children().detach();for(var n=0,o=e.length;n<o;n++)t.append(e[n].inserter),t.append(" "),e[n].buttons&&e[n].buttons.length&&this._draw(e[n].collection,e[n].buttons)},_expandButton:function(t,e,n,o){for(var r=this.s.dt,a=0,l=(e=p.isArray(e)?e:[e]).length;a<l;a++){var i=this._resolveExtends(e[a]);if(i)if(p.isArray(i))this._expandButton(t,i,n,o);else{var s=this._buildButton(i,n);if(s){if(o!==c?(t.splice(o,0,s),o++):t.push(s),s.conf.buttons){var d=this.c.dom.collection;s.collection=p("<"+d.tag+"/>").addClass(d.className).attr("role","menu"),s.conf._collection=s.collection,this._expandButton(s.buttons,s.conf.buttons,!0,o)}i.init&&i.init.call(r.button(s.node),r,p(s.node),i),0}}}},_buildButton:function(e,t){function n(t){return"function"==typeof t?t(l,s,e):t}var o=this.c.dom.button,r=this.c.dom.buttonLiner,a=this.c.dom.collection,l=this.s.dt;if(t&&a.button&&(o=a.button),t&&a.buttonLiner&&(r=a.buttonLiner),e.available&&!e.available(l,e))return!1;function i(t,e,n,o){o.action.call(e.button(n),t,e,n,o),p(e.table().node()).triggerHandler("buttons-action.dt",[e.button(n),e,n,o])}var s=p("<"+o.tag+"/>").addClass(o.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(t){t.preventDefault(),!s.hasClass(o.disabled)&&e.action&&i(t,l,s,e),s.blur()}).on("keyup.dtb",function(t){13===t.keyCode&&!s.hasClass(o.disabled)&&e.action&&i(t,l,s,e)});return"a"===o.tag.toLowerCase()&&s.attr("href","#"),r.tag?(a=p("<"+r.tag+"/>").html(n(e.text)).addClass(r.className),"a"===r.tag.toLowerCase()&&a.attr("href","#"),s.append(a)):s.html(n(e.text)),!1===e.enabled&&s.addClass(o.disabled),e.className&&s.addClass(e.className),e.titleAttr&&s.attr("title",n(e.titleAttr)),e.namespace||(e.namespace=".dt-button-"+d++),r=(r=this.c.dom.buttonContainer)&&r.tag?p("<"+r.tag+"/>").addClass(r.className).append(s):s,this._addKey(e),{conf:e,node:s.get(0),inserter:r,buttons:[],
2674inCollection:t,collection:null}},_nodeToButton:function(t,e){for(var n=0,o=(e=e||this.s.buttons).length;n<o;n++){if(e[n].node===t)return e[n];if(e[n].buttons.length){var r=this._nodeToButton(t,e[n].buttons);if(r)return r}}},_nodeToHost:function(t,e){for(var n=0,o=(e=e||this.s.buttons).length;n<o;n++){if(e[n].node===t)return e;if(e[n].buttons.length){var r=this._nodeToHost(t,e[n].buttons);if(r)return r}}},_keypress:function(a,l){var i=function(t){for(var e=0,n=t.length;e<n;e++){var o=t[e].conf,r=t[e].node;o.key&&(o.key===a?p(r).click():!p.isPlainObject(o.key)||o.key.key!==a||o.key.shiftKey&&!l.shiftKey||o.key.altKey&&!l.altKey||o.key.ctrlKey&&!l.ctrlKey||o.key.metaKey&&!l.metaKey||p(r).click()),t[e].buttons.length&&i(t[e].buttons)}};i(this.s.buttons)},_removeKey:function(t){if(t.key){var e=p.isPlainObject(t.key)?t.key.key:t.key;t=this.s.listenKeys.split(""),e=p.inArray(e,t);t.splice(e,1),this.s.listenKeys=t.join("")}},_resolveExtends:function(n){function t(t){for(var e=0;!p.isPlainObject(t)&&!p.isArray(t);){if(t===c)return;if("function"==typeof t){if(!(t=t(r,n)))return!1}else if("string"==typeof t){if(!s[t])throw"Unknown button type: "+t;t=s[t]}if(30<++e)throw"Buttons: Too many iterations"}return p.isArray(t)?t:p.extend({},t)}var e,o,r=this.s.dt;for(n=t(n);n&&n.extend;){if(!s[n.extend])throw"Cannot extend unknown button type: "+n.extend;var a=t(s[n.extend]);if(p.isArray(a))return a;if(!a)return!1;e=a.className,n=p.extend({},a,n),e&&n.className!==e&&(n.className=e+" "+n.className);var l=n.postfixButtons;if(l){for(n.buttons||(n.buttons=[]),e=0,o=l.length;e<o;e++)n.buttons.push(l[e]);n.postfixButtons=null}if(l=n.prefixButtons){for(n.buttons||(n.buttons=[]),e=0,o=l.length;e<o;e++)n.buttons.splice(e,0,l[e]);n.prefixButtons=null}n.extend=a.extend}return n}}),u.background=function(t,e,n){n===c&&(n=400),t?p("<div/>").addClass(e).css("display","none").appendTo("body").fadeIn(n):p("body > div."+e).fadeOut(n,function(){p(this).removeClass(e).remove()})},u.instanceSelector=function(t,o){if(!t)return p.map(o,function(t){return t.inst});var r=[],a=p.map(o,function(t){return t.name}),l=function(t){if(p.isArray(t))for(var e=0,n=t.length;e<n;e++)l(t[e]);else"string"==typeof t?-1!==t.indexOf(",")?l(t.split(",")):-1!==(t=p.inArray(p.trim(t),a))&&r.push(o[t].inst):"number"==typeof t&&r.push(o[t].inst)};return l(t),r},u.buttonSelector=function(t,e){for(var l=[],i=function(t,e,n){for(var o,r,a=0,l=e.length;a<l;a++)(o=e[a])&&(r=n!==c?n+a:a+"",t.push({node:o.node,name:o.conf.name,idx:r}),o.buttons&&i(t,o.buttons,r+"-"))},s=function(t,e){var n,o,r=[];if(i(r,e.s.buttons),n=p.map(r,function(t){return t.node}),p.isArray(t)||t instanceof p)for(n=0,o=t.length;n<o;n++)s(t[n],e);else if(null===t||t===c||"*"===t)for(n=0,o=r.length;n<o;n++)l.push({inst:e,node:r[n].node});else if("number"==typeof t)l.push({inst:e,node:e.s.buttons[t].node});else if("string"==typeof t)if(-1!==t.indexOf(","))for(n=0,o=(r=t.split(",")).length;n<o;n++)s(p.trim(r[n]),e);else if(t.match(/^\d+(\-\d+)*$/))n=p.map(r,function(t){return t.idx}),l.push({inst:e,node:r[p.inArray(t,n)].node});else if(-1!==t.indexOf(":name")){var a=t.replace(":name","");for(n=0,o=r.length;n<o;n++)r[n].name===a&&l.push({inst:e,node:r[n].node})}else p(n).filter(t).each(function(){l.push({inst:e,node:this})});else"object"==typeof t&&t.nodeName&&(-1!==(r=p.inArray(t,n))&&l.push({inst:e,node:n[r]}))},n=0,o=t.length;n<o;n++)s(e,t[n]);return l},u.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}},u.version="1.4.2",p.extend(s,{collection:{text:function(t){return t.i18n("buttons.collection","Collection")},className:"buttons-collection",action:function(t,n,e,o){t=e.offset();var r=p(n.table().container()),a=!1;p("div.dt-button-background").length&&(a=p(".dt-button-collection").offset(),p("body").trigger("click.dtb-collection")),o._collection.addClass(o.collectionLayout).css("display","none").appendTo("body").fadeIn(o.fade);var l=o._collection.css("position");
2674a&&"absolute"===l?o._collection.css({top:a.top,left:a.left}):"absolute"===l?(o._collection.css({top:t.top+e.outerHeight(),left:t.left}),a=r.offset().top+r.height(),e=t.top+e.outerHeight()+o._collection.outerHeight()-a,a=t.top-o._collection.outerHeight(),(a=r.offset().top-a)<e&&o._collection.css("top",t.top-o._collection.outerHeight()-5),e=t.left+o._collection.outerWidth(),(r=r.offset().left+r.width())<e&&o._collection.css("left",t.left-(e-r))):((t=o._collection.height()/2)>p(i).height()/2&&(t=p(i).height()/2),o._collection.css("marginTop",-1*t)),o.background&&u.background(!0,o.backgroundClassName,o.fade),setTimeout(function(){p("div.dt-button-background").on("click.dtb-collection",function(){}),p("body").on("click.dtb-collection",function(t){var e=p.fn.addBack?"addBack":"andSelf";p(t.target).parents()[e]().filter(o._collection).length||(o._collection.fadeOut(o.fade,function(){o._collection.detach()}),p("div.dt-button-background").off("click.dtb-collection"),u.background(!1,o.backgroundClassName,o.fade),p("body").off("click.dtb-collection"),n.off("buttons-action.b-internal"))})},10),o.autoClose&&n.on("buttons-action.b-internal",function(){p("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(t,e){return s.copyHtml5?"copyHtml5":s.copyFlash&&s.copyFlash.available(t,e)?"copyFlash":void 0},csv:function(t,e){return s.csvHtml5&&s.csvHtml5.available(t,e)?"csvHtml5":s.csvFlash&&s.csvFlash.available(t,e)?"csvFlash":void 0},excel:function(t,e){return s.excelHtml5&&s.excelHtml5.available(t,e)?"excelHtml5":s.excelFlash&&s.excelFlash.available(t,e)?"excelFlash":void 0},pdf:function(t,e){return s.pdfHtml5&&s.pdfHtml5.available(t,e)?"pdfHtml5":s.pdfFlash&&s.pdfFlash.available(t,e)?"pdfFlash":void 0},pageLength:function(t){t=t.settings()[0].aLengthMenu;function r(t){return t.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},t.page.len())}var e=p.isArray(t[0])?t[0]:t,n=p.isArray(t[0])?t[1]:t;return{extend:"collection",text:r,className:"buttons-page-length",autoClose:!0,buttons:p.map(e,function(r,t){return{text:n[t],className:"button-page-length",action:function(t,e){e.page.len(r).draw()},init:function(t,e,n){var o=this;e=function(){o.active(t.page.len()===r)};t.on("length.dt"+n.namespace,e),e()},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}),init:function(t,e,n){var o=this;t.on("length.dt"+n.namespace,function(){o.text(r(t))})},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}}
2674),m.Api.register("buttons()",function(e,n){n===c&&(n=e,e=c),this.selector.buttonGroup=e;var t=this.iterator(!0,"table",function(t){if(t._buttons)return u.buttonSelector(u.instanceSelector(e,t._buttons),n)},!0);return t._groupSelector=e,t}),m.Api.register("button()",function(t,e){var n=this.buttons(t,e);return 1<n.length&&n.splice(1,n.length),n}),m.Api.registerPlural("buttons().active()","button().active()",function(e){return e===c?this.map(function(t){return t.inst.active(t.node)}):this.each(function(t){t.inst.active(t.node,e)})}),m.Api.registerPlural("buttons().action()","button().action()",function(e){return e===c?this.map(function(t){return t.inst.action(t.node)}):this.each(function(t){t.inst.action(t.node,e)})}),m.Api.register(["buttons().enable()","button().enable()"],function(e){return this.each(function(t){t.inst.enable(t.node,e)})}),m.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(t){t.inst.disable(t.node)})}),m.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=p();return p(this.each(function(t){e=e.add(t.inst.node(t.node))})),e}),m.Api.registerPlural("buttons().processing()","button().processing()",function(e){return e===c?this.map(function(t){return t.inst.processing(t.node)}):this.each(function(t){t.inst.processing(t.node,e)})}),m.Api.registerPlural("buttons().text()","button().text()",function(e){return e===c?this.map(function(t){return t.inst.text(t.node)}):this.each(function(t){t.inst.text(t.node,e)})}),m.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(t){t.inst.node(t.node).trigger("click")})}),m.Api.registerPlural("buttons().containers()","buttons().container()",function(){var o=p(),r=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var e=0,n=(t=u.instanceSelector(r,t._buttons)).length;e<n;e++)o=o.add(t[e].container())}),o}),m.Api.register("button().add()",function(t,e){var n=this.context;return n.length&&((n=u.instanceSelector(this._groupSelector,n[0]._buttons)).length&&n[0].add(e,t)),this.button(this._groupSelector,t)}),m.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(t){t.destroy()}),this}),m.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(t){t.inst.remove(t.node)}),this}),m.Api.register("buttons.info()",function(t,e,n){var o=this;return!1===t?(p("#datatables_buttons_info").fadeOut(function(){p(this).remove()}),clearTimeout(r),r=null):(r&&clearTimeout(r),p("#datatables_buttons_info").length&&p("#datatables_buttons_info").remove(),p('<div id="datatables_buttons_info" class="dt-button-info"/>').html(t?"<h2>"+t+"</h2>":"").append(p("<div/>")["string"==typeof e?"html":"append"](e)).css("display","none").appendTo("body").fadeIn(),n!==c&&0!==n&&(r=setTimeout(function(){o.buttons.info(!1)},n))),this}),m.Api.register("buttons.exportData()",function(t){if(this.context.length){for(var n=new m.Api(this.context[0]),o=p.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(t){return e(t)},footer:function(t){return e(t)},body:function(t){return e(t)}}},t),e=function(t){return"string"!=typeof t||(t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),o.stripHtml&&(t=t.replace(/<[^>]*>/g,"")),o.trim&&(t=t.replace(/^\s+|\s+$/g,"")),o.stripNewlines&&(t=t.replace(/\n/g," ")),o.decodeEntities&&(g.innerHTML=t,t=g.value)),t},r=(t=n.columns(o.columns).indexes().map(function(t){var e=n.column(t).header();return o.format.header(e.innerHTML,t,e)}).toArray(),n.table().footer()?n.columns(o.columns).indexes().map(function(t){var e=n.column(t).footer();return o.format.footer(e?e.innerHTML:"",t,e)}).toArray():null),a=n.rows(o.rows,o.modifier).indexes().toArray(),l=(a=(l=n.cells(a,o.columns)).render(o.orthogonal).toArray(),l.nodes().toArray()),i=t.length,s=0<i?a.length/i:0,d=Array(s),c=0,u=0;u<s;u++){for(var f=Array(i),h=0;h<i;h++)f[h]=o.format.body(a[c],u,h,l[c]),c++;d[u]=f}
2674return{header:t,footer:r,body:d}}}),m.Api.register("buttons.exportInfo()",function(t){var e,n=t=t||{};return"function"==typeof(e="*"===n.filename&&"*"!==n.title&&n.title!==c?n.title:n.filename)&&(e=e()),e===c||null===e?e=null:(-1!==e.indexOf("*")&&(e=p.trim(e.replace("*",p("title").text()))),e=e.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""),(n=o(n.extension))||(n=""),e+=n),{filename:e,title:n=null===(n=o(t.title))?null:-1!==n.indexOf("*")?n.replace("*",p("title").text()||"Exported data"):n,messageTop:l(this,t.messageTop||t.message,"top"),messageBottom:l(this,t.messageBottom,"bottom")}});var o=function(t){return null===t||t===c?null:"function"==typeof t?t():t},l=function(t,e,n){return null===(e=o(e))?null:(t=p("caption",t.table().container()).eq(0),"*"===e?t.css("caption-side")!==n?null:t.length?t.text():"":e)},g=p("<textarea/>")[0];return p.fn.dataTable.Buttons=u,p.fn.DataTable.Buttons=u,p(a).on("init.dt plugin-init.dt",function(t,e){if("dt"===t.namespace){var n=e.oInit.buttons||m.defaults.buttons;n&&!e._buttons&&new u(e,n).container()}}),m.ext.feature.push({fnInit:function(t){var e=(t=new m.Api(t)).init().buttons||m.defaults.buttons;return new u(t,e).container()},cFeature:"B"}),u}),function(n){"function"==typeof define&&define.amd?define("datatables.net-buttons-colvis",["jquery","datatables.net","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t,t.document)}:n(jQuery,window,document)}(function(t,e,n,r){return e=t.fn.dataTable,t.extend(e.ext.buttons,{colvis:function(t,e){return{extend:"collection",text:function(t){return t.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:e.columns,columnText:e.columnText}]}},columnsToggle:function(t,e){return t.columns(e.columns).indexes().map(function(t){return{extend:"columnToggle",columns:t,columnText:e.columnText}}).toArray()},columnToggle:function(t,e){return{extend:"columnVisibility",columns:e.columns,columnText:e.columnText}},columnsVisibility:function(t,e){return t.columns(e.columns).indexes().map(function(t){return{extend:"columnVisibility",columns:t,visibility:e.visibility,columnText:e.columnText}}).toArray()},columnVisibility:{columns:r,text:function(t,e,n){return n._columnText(t,n)},className:"buttons-columnVisibility",action:function(t,e,n,o){e=(t=e.columns(o.columns)).visible(),t.visible(o.visibility!==r?o.visibility:!(e.length&&e[0]))},init:function(o,t,r){var a=this;o.on("column-visibility.dt"+r.namespace,function(t,e){e.bDestroying||e.nTable!=o.settings()[0].nTable||a.active(o.column(r.columns).visible())}).on("column-reorder.dt"+r.namespace,function(t,e,n){1===o.columns(r.columns).count()&&("number"==typeof r.columns&&(r.columns=n.mapping[r.columns]),t=o.column(r.columns),a.text(r._columnText(o,r)),a.active(t.visible()))}),this.active(o.column(r.columns).visible())},destroy:function(t,e,n){t.off("column-visibility.dt"+n.namespace).off("column-reorder.dt"+n.namespace)},_columnText:function(t,e){var n=t.column(e.columns).index(),o=t.settings()[0].aoColumns[n].sTitle.replace(/\n/g," ").replace(/<br\s*\/?>/gi," ").replace(/<.*?>/g,"").replace(/^\s+|\s+$/g,"");return e.columnText?e.columnText(t,n,o):o}},colvisRestore:{className:"buttons-colvisRestore",text:function(t){return t.i18n("buttons.colvisRestore","Restore visibility")},init:function(e,t,n){n._visOriginal=e.columns().indexes().map(function(t){return e.column(t).visible()}).toArray()},action:function(t,e,n,o){e.columns().every(function(t){t=e.colReorder&&e.colReorder.transpose?e.colReorder.transpose(t,"toOriginal"):t,this.visible(o._visOriginal[t])})}},colvisGroup:{className:"buttons-colvisGroup",action:function(t,e,n,o){e.columns(o.show).visible(!0,!1),e.columns(o.hide).visible(!1,!1),e.columns.adjust()},show:[],hide:[]}}),e.Buttons}),function(n){"function"==typeof define&&define.amd?define("datatables.net-buttons-flash",["jquery","datatables.net","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t,t.document)}:n(jQuery,window,document)}(function(p,l,i,m){function g(t){for(var e="";0<=t;
2674)e=String.fromCharCode(t%26+65)+e,t=Math.floor(t/26)-1;return e}function b(t,e,n){var o=t.createElement(e);return n&&(n.attr&&p(o).attr(n.attr),n.children&&p.each(n.children,function(t,e){o.appendChild(e)}),null!==n.text&&n.text!==m&&o.appendChild(t.createTextNode(n.text))),o}function y(t,e){var n,o=t.header[e].length;t.footer&&t.footer[e].length>o&&(o=t.footer[e].length);for(var r=0,a=t.body.length;r<a;r++)if(o<(n=-1!==(n=null!==(n=t.body[r][e])&&n!==m?n.toString():"").indexOf("\n")?((n=n.split("\n")).sort(function(t,e){return e.length-t.length}),n[0].length):n.length)&&(o=n),40<o)return 52;return 6<(o*=1.3)?o:6}var r=p.fn.dataTable,a={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(t){return"string"==typeof t&&(t=i.getElementById(t)),t.addClass||(t.hide=function(){this.style.display="none"},t.show=function(){this.style.display=""},t.addClass=function(t){this.removeClass(t),this.className+=" "+t},t.removeClass=function(t){this.className=this.className.replace(RegExp("\\s*"+t+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},t.hasClass=function(t){return!!this.className.match(RegExp("\\s*"+t+"\\s*"))}),t},setMoviePath:function(t){this.moviePath=t},dispatch:function(t,e,n){(t=this.clients[t])&&t.receiveEvent(e,n)},log:function(t){console.log("Flash: "+t)},register:function(t,e){this.clients[t]=e},getDOMObjectPosition:function(t){var e={left:0,top:0,width:t.width?t.width:t.offsetWidth,height:t.height?t.height:t.offsetHeight};for(""!==t.style.width&&(e.width=t.style.width.replace("px","")),""!==t.style.height&&(e.height=t.style.height.replace("px",""));t;)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},Client:function(t){this.handlers={},this.id=a.nextId++,this.movieId="ZeroClipboard_TableToolsMovie_"+this.id,a.register(this.id,this),t&&this.glue(t)}};a.Client.prototype={id:0,ready:!1,movie:null,clipText:"",fileName:"",action:"copy",handCursorEnabled:!0,cssEffects:!0,handlers:null,sized:!1,sheetName:"",glue:function(t,e){this.domElement=a.$(t);var n=99;this.domElement.style.zIndex&&(n=parseInt(this.domElement.style.zIndex,10)+1);var o=a.getDOMObjectPosition(this.domElement);this.div=i.createElement("div");var r=this.div.style;r.position="absolute",r.left="0px",r.top="0px",r.width=o.width+"px",r.height=o.height+"px",r.zIndex=n,void 0!==e&&""!==e&&(this.div.title=e),0!==o.width&&0!==o.height&&(this.sized=!0),this.domElement&&(this.domElement.appendChild(this.div),this.div.innerHTML=this.getHTML(o.width,o.height).replace(/&/g,"&amp;"))},positionElement:function(){var t=a.getDOMObjectPosition(this.domElement),e=this.div.style;e.position="absolute",e.width=t.width+"px",e.height=t.height+"px",0!==t.width&&0!==t.height&&(this.sized=!0,(e=this.div.childNodes[0]).width=t.width,e.height=t.height)},getHTML:function(t,e){var n="",o="id="+this.id+"&width="+t+"&height="+e;if(navigator.userAgent.match(/MSIE/))n=n+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+(location.href.match(/^https/i)?"https://":"http://")+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+t+'" height="'+e+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+a.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+o+'"/><param name="wmode" value="transparent"/></object>';else n+='<embed id="'+this.movieId+'" src="'+a.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+t+'" height="'+e+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+o+'" wmode="transparent" />';return n},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){var n=this;this.domElement&&this.div&&(p(this.div).remove(),this.div=this.domElement=null,p.each(a.clients,function(t,e){e===n&&delete a.clients[t]}))},reposition:function(t){if(t&&((this.domElement=a.$(t))||this.hide()),this.domElement&&this.div){t=a.getDOMObjectPosition(this.domElement);var e=this.div.style;e.left=t.left+"px",e.top=t.top+"px"}},clearText:function(){this.clipText="",this.ready&&this.movie.clearText()},appendText:function(t){this.clipText+=t,this.ready&&this.movie.appendText(t)},setText:function(t){this.clipText=t,this.ready&&this.movie.setText(t)},setFileName:function(t){this.fileName=t,this.ready&&this.movie.setFileName(t)},setSheetData:function(t){this.ready&&this.movie.setSheetData(JSON.stringify(t))}
2674,setAction:function(t){this.action=t,this.ready&&this.movie.setAction(t)},addEventListener:function(t,e){t=t.toString().toLowerCase().replace(/^on/,""),this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push(e)},setHandCursor:function(t){this.handCursorEnabled=t,this.ready&&this.movie.setHandCursor(t)},setCSSEffects:function(t){this.cssEffects=!!t},receiveEvent:function(t,e){var n;switch(t=t.toString().toLowerCase().replace(/^on/,"")){case"load":if(this.movie=i.getElementById(this.movieId),!this.movie)return n=this,void setTimeout(function(){n.receiveEvent("load",null)},1);if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/))return n=this,setTimeout(function(){n.receiveEvent("load",null)},100),void(this.ready=!0);this.ready=!0,this.movie.clearText(),this.movie.appendText(this.clipText),this.movie.setFileName(this.fileName),this.movie.setAction(this.action),this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":this.domElement&&this.cssEffects&&this.recoverActive&&this.domElement.addClass("active");break;case"mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0));break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[t])for(var o=0,r=this.handlers[t].length;o<r;o++){var a=this.handlers[t][o];"function"==typeof a?a(this,e):"object"==typeof a&&2==a.length?a[0][a[1]](this,e):"string"==typeof a&&l[a](this,e)}}},a.hasFlash=function(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(t){if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]!==m&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return!0}return!1},l.ZeroClipboard_TableTools=a;function v(t,e){var n=e.match(/[\s\S]{1,8192}/g)||[];t.clearText();for(var o=0,r=n.length;o<r;o++)t.appendText(n[o])}function x(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"}function s(t,e){function n(t){for(var e="",n=0,o=t.length;n<o;n++)0<n&&(e+=l),e+=a?a+(""+t[n]).replace(i,s+a)+a:t[n];return e}for(var o=x(e),r=t.buttons.exportData(e.exportOptions),a=e.fieldBoundary,l=e.fieldSeparator,i=RegExp(a,"g"),s=e.escapeChar!==m?e.escapeChar:"\\",d=e.header?n(r.header)+o:"",c=e.footer&&r.footer?o+n(r.footer):"",u=[],f=0,h=r.body.length;f<h;f++)u.push(n(r.body[f]));return{str:d+u.join(o)+c,rows:u.length}}var I,d=function(t,e){e.attr("id"),e.parents("html").length?t.glue(e[0],""):setTimeout(function(){d(t,e)},500)},t={available:function(){return a.hasFlash()},init:function(t,e,n){a.moviePath=r.Buttons.swfPath;var o=new a.Client;o.setHandCursor(!0),o.addEventListener("mouseDown",function(){n._fromFlash=!0,t.button(e[0]).trigger(),n._fromFlash=!1}),d(o,e),n._flash=o},destroy:function(t,e,n){n._flash.destroy()},fieldSeparator:",",fieldBoundary:'"',exportOptions:{},title:"*",messageTop:"*",messageBottom:"*",filename:"*",extension:".csv",header:!0,footer:!1},w="",C=(w=void 0===l.XMLSerializer?new function(){this.serializeToString=function(t){return t.xml}}:new XMLSerializer,{"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" />
2674<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="61"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9"   fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'}),_=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^[\d,]+$/,style:63},{match:/^[\d,]+\.\d{2}$/,style:64}];return r.Buttons.swfPath="//cdn.datatables.net/buttons/"+r.Buttons.version+"/swf/flashExport.swf",r.Api.register("buttons.resize()",function(){p.each(a.clients,function(t,e){e.domElement!==m&&e.domElement.parentNode&&e.positionElement()})}),r.ext.buttons.copyFlash=p.extend({},t,{className:"buttons-copy buttons-flash",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(t,e,n,o){if(o._fromFlash){this.processing(!0);t=o._flash;var r=s(e,o),a=(n=e.buttons.exportInfo(o),x(o));r=r.str;n.title&&(r=n.title+a+a+r),n.messageTop&&(r=n.messageTop+a+a+r),n.messageBottom&&(r=r+a+a+n.messageBottom),o.customize&&(r=o.customize(r,o)),t.setAction("copy"),v(t,r),this.processing(!1),e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),e.i18n("buttons.copySuccess",{_:"Copied %d rows to clipboard",1:"Copied 1 row to clipboard"},data.rows),3e3)}},fieldSeparator:"\t",fieldBoundary:""}),r.ext.buttons.csvFlash=p.extend({},t,{className:"buttons-csv buttons-flash",text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,n,o){t=o._flash,e=s(e,o),e=o.customize?o.customize(e.str,o):e.str,t.setAction("csv"),t.setFileName(_filename(o)),v(t,e)},escapeChar:'"'}),r.ext.buttons.excelFlash=p.extend({},t,{className:"buttons-excel buttons-flash",text:function(t){return t.i18n("buttons.excel","Excel")},action:function(t,e,n,o){this.processing(!0);t=o._flash;var s,d,c=0,u=p.parseXML(C["xl/worksheets/sheet1.xml"]),f=u.getElementsByTagName("sheetData")[0],r=(n={_rels:{".rels":p.parseXML(C["_rels/.rels"])},xl:{_rels:{"workbook.xml.rels":p.parseXML(C["xl/_rels/workbook.xml.rels"])},"workbook.xml":p.parseXML(C["xl/workbook.xml"]),"styles.xml":p.parseXML(C["xl/styles.xml"]),worksheets:{"sheet1.xml":u}},"[Content_Types].xml":p.parseXML(C["[Content_Types].xml"])},e.buttons.exportData(o.exportOptions)),a=function(t){d=b(u,"row",{attr:{r:s=c+1}});for(var e=0,n=t.length;e<n;e++){var o=g(e)+""+s,r=null;if(null!==t[e]&&t[e]!==m&&""!==t[e]){t[e]=p.trim(t[e]);for(var a=0,l=_.length;a<l;a++){var i=_[a];if(t[e].match&&!t[e].match(/^0\d+/)&&t[e].match(i.match)){r=t[e].replace(/[^\d\.\-]/g,""),i.fmt&&(r=i.fmt(r)),r=b(u,"c",{attr:{r:o,s:i.style},children:[b(u,"v",{text:r})]});break}}r=r||("number"==typeof t[e]||t[e].match&&t[e].match(/^-?\d+(\.\d+)?$/)&&!t[e].match(/^0\d+/)?b(u,"c",{attr:{t:"n",r:o},children:[b(u,"v",{text:t[e]})]}):(i=t[e].replace?t[e].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):t[e],b(u,"c",{attr:{t:"inlineStr",r:
2674o},children:{row:b(u,"is",{children:{row:b(u,"t",{text:i})}})}}))),d.appendChild(r)}}f.appendChild(d),c++};p("sheets sheet",n.xl["workbook.xml"]).attr("name",function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e}(o)),o.customizeData&&o.customizeData(r);var l=function(t,e){var n=p("mergeCells",u);n[0].appendChild(b(u,"mergeCell",{attr:{ref:"A"+t+":"+g(e)+t}})),n.attr("count",n.attr("count")+1),p("row:eq("+(t-1)+") c",u).attr("s","51")};(e=e.buttons.exportInfo(o)).title&&(a([e.title],c),l(c,r.header.length-1)),e.messageTop&&(a([e.messageTop],c),l(c,r.header.length-1)),o.header&&(a(r.header,c),p("row:last c",u).attr("s","2"));for(var i=0,h=r.body.length;i<h;i++)a(r.body[i],c);for(o.footer&&r.footer&&(a(r.footer,c),p("row:last c",u).attr("s","2")),e.messageBottom&&(a([e.messageBottom],c),l(c,r.header.length-1)),a=b(u,"cols"),p("worksheet",u).prepend(a),l=0,i=r.header.length;l<i;l++)a.appendChild(b(u,"col",{attr:{min:l+1,max:l+1,width:y(r,l),customWidth:1}}));o.customize&&o.customize(n),function i(s){I===m&&(I=-1===w.serializeToString(p.parseXML(C["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),p.each(s,function(t,e){if(p.isPlainObject(e))i(e);else{if(I){var n,o,r=e.childNodes[0],a=[];for(n=r.attributes.length-1;0<=n;n--){o=r.attributes[n].nodeName;var l=r.attributes[n].nodeValue;-1!==o.indexOf(":")&&(a.push({name:o,value:l}),r.removeAttribute(o))}for(n=0,o=a.length;n<o;n++)(l=e.createAttribute(a[n].name.replace(":","_dt_b_namespace_token_"))).value=a[n].value,r.setAttributeNode(l)}r=w.serializeToString(e),I&&(-1===r.indexOf("<?xml")&&(r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+r),r=r.replace(/_dt_b_namespace_token_/g,":")),r=r.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),s[t]=r}})}(n),t.setAction("excel"),t.setFileName(e.filename),t.setSheetData(n),v(t,""),this.processing(!1)},extension:".xlsx"}),r.ext.buttons.pdfFlash=p.extend({},t,{className:"buttons-pdf buttons-flash",text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(t,e,n,o){this.processing(!0);t=o._flash,n=e.buttons.exportData(o.exportOptions);var r=e.buttons.exportInfo(o),a=e.table().node().offsetWidth,l=e.columns(o.columns).indexes().map(function(t){return e.column(t).header().offsetWidth/a});t.setAction("pdf"),t.setFileName(r.filename),v(t,JSON.stringify({title:r.title||"",messageTop:r.messageTop||"",messageBottom:r.messageBottom||"",colWidth:l.toArray(),orientation:o.orientation,size:o.pageSize,header:o.header?n.header:null,footer:o.footer?n.footer:null,body:n.body})),this.processing(!1)},extension:".pdf",orientation:"portrait",pageSize:"A4",newline:"\n"}),r.Buttons}),function(r){"function"==typeof define&&define.amd?define("datatables.net-buttons-html5",["jquery","datatables.net","datatables.net-buttons"],function(t){return r(t,window,document)}):"object"==typeof exports?module.exports=function(t,e,n,o){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),r(e,t,t.document,n,o)}:r(jQuery,window,document)}(function(p,m,u,g,i,b){function y(t){for(var e="";0<=t;)e=String.fromCharCode(t%26+65)+e,t=Math.floor(t/26)-1;return e}function v(t,e,n){var o=t.createElement(e);return n&&(n.attr&&p(o).attr(n.attr),n.children&&p.each(n.children,function(t,e){o.appendChild(e)}),null!==n.text&&n.text!==b&&o.appendChild(t.createTextNode(n.text))),o}function x(t,e){var n,o=t.header[e].length;t.footer&&t.footer[e].length>o&&(o=t.footer[e].length);for(var r=0,a=t.body.length;r<a;r++)if(o<(n=-1!==(n=null!==(n=t.body[r][e])&&n!==b?n.toString():"").indexOf("\n")?((n=n.split("\n")).sort(function(t,e){return e.length-t.length}),n[0].length):n.length)&&(o=n),40<o)return 52;return 6<(o*=1.3)?o:6}var I,t=p.fn.dataTable,s="undefined"!=typeof self&&self||void 0!==m&&m||this.content;if(void 0===s||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))I=void 0;else{function d(t){(s.setImmediate||s.setTimeout)(function(){throw t},0)}function c(t){setTimeout(function(){"string"==typeof t?(s.URL||s.webkitURL||s).revokeObjectURL(t):t.remove()},4e4)}function f(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function o(t,e,n){n||(t=f(t));function o(){for(var t,e=(t=[].concat(t=["writestart","progress","write","writeend"])).length;e--;){var n=a["on"+t[e]];if("function"==typeof n)try{n.call(a,a)}catch(t){d(t)}}}var r,a=this;
2674n="application/octet-stream"===t.type;if(a.readyState=a.INIT,w)r=(s.URL||s.webkitURL||s).createObjectURL(t),setTimeout(function(){h.href=r,h.download=e;var t=new MouseEvent("click");h.dispatchEvent(t),o(),c(r),a.readyState=a.DONE});else if((_||n&&C)&&s.FileReader){var l=new FileReader;l.onloadend=function(){var t=_?l.result:l.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(t,"_blank")||(s.location.href=t),a.readyState=a.DONE,o()},l.readAsDataURL(t),a.readyState=a.INIT}else r=r||(s.URL||s.webkitURL||s).createObjectURL(t),n?s.location.href=r:s.open(r,"_blank")||(s.location.href=r),a.readyState=a.DONE,o(),c(r)}var h=s.document.createElementNS("http://www.w3.org/1999/xhtml","a"),w="download"in h,C=/constructor/i.test(s.HTMLElement)||s.safari,_=/CriOS\/[\d]+/.test(navigator.userAgent),e=o.prototype;I="undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=f(t)),navigator.msSaveOrOpenBlob(t,e)}:(e.abort=function(){},e.readyState=e.INIT=0,e.WRITING=1,e.DONE=2,e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null,function(t,e,n){return new o(t,e||t.name||"download",n)})}t.fileSave=I;function T(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"}function F(t,e){function n(t){for(var e="",n=0,o=t.length;n<o;n++)0<n&&(e+=l),e+=a?a+(""+t[n]).replace(i,s+a)+a:t[n];return e}for(var o=T(e),r=t.buttons.exportData(e.exportOptions),a=e.fieldBoundary,l=e.fieldSeparator,i=RegExp(a,"g"),s=e.escapeChar!==b?e.escapeChar:"\\",d=e.header?n(r.header)+o:"",c=e.footer&&r.footer?o+n(r.footer):"",u=[],f=0,h=r.body.length;f<h;f++)u.push(n(r.body[f]));return{str:d+u.join(o)+c,rows:u.length}}function S(){if(-1===navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("Chrome")||-1!==navigator.userAgent.indexOf("Opera"))return!1;var t=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return!!(t&&1<t.length&&1*t[1]<603.1)}try{var D,A=new XMLSerializer}catch(t){}var R={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="67"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9"   fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},B=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64}];return t.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(t,e,n,o){this.processing(!0);var r=this,a=(t=F(e,o),e.buttons.exportInfo(o)),l=T(o),i=t.str;n=p("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});if(a.title&&(i=a.title+l+l+i),a.messageTop&&(i=a.messageTop+l+l+i),a.messageBottom&&(i=i+l+l+a.messageBottom),o.customize&&(i=o.customize(i,o)),o=p("<textarea readonly/>").val(i).appendTo(n),u.queryCommandSupported("copy")){n.appendTo(e.table().container()),o[0].focus(),o[0].select();try{var s=u.execCommand("copy");if(n.remove(),s)return e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),e.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},t.rows),2e3),void this.processing(!1)}catch(t){}}s=p("<span>"+e.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(n),e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),s,0),o[0].focus(),o[0].select();function d(){c.off("click.buttons-copy"),p(u).off(".buttons-copy"),e.buttons.info(!1)}var c=p(s).closest(".dt-button-info");c.on("click.buttons-copy",d),p(u).on("keydown.buttons-copy",function(t){27===t.keyCode&&(d(),r.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){d(),r.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*"},t.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return m.FileReader!==b&&m.Blob},text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,n,o){this.processing(!0),t=F(e,o).str,e=e.buttons.exportInfo(o),n=o.charset,o
2674.customize&&(t=o.customize(t,o)),n=!1!==n?(n=n||(u.characterSet||u.charset))&&";charset="+n:"",o.bom&&(t="\ufeff"+t),I(new Blob([t],{type:"text/csv"+n}),e.filename,!0),this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},t.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return m.FileReader!==b&&(g||m.JSZip)!==b&&!S()&&A},text:function(t){return t.i18n("buttons.excel","Excel")},action:function(t,e,n,o){this.processing(!0);var s,d,r=this,c=0,u=(t=function(t){return p.parseXML(R[t])})("xl/worksheets/sheet1.xml"),f=u.getElementsByTagName("sheetData")[0],a=(t={_rels:{".rels":t("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":t("xl/_rels/workbook.xml.rels")},"workbook.xml":t("xl/workbook.xml"),"styles.xml":t("xl/styles.xml"),worksheets:{"sheet1.xml":u}},"[Content_Types].xml":t("[Content_Types].xml")},n=e.buttons.exportData(o.exportOptions),function(t){d=v(u,"row",{attr:{r:s=c+1}});for(var e=0,n=t.length;e<n;e++){var o=y(e)+""+s,r=null;if(null!==t[e]&&t[e]!==b&&""!==t[e]){t[e]=p.trim(t[e]);for(var a=0,l=B.length;a<l;a++){var i=B[a];if(t[e].match&&!t[e].match(/^0\d+/)&&t[e].match(i.match)){r=t[e].replace(/[^\d\.\-]/g,""),i.fmt&&(r=i.fmt(r)),r=v(u,"c",{attr:{r:o,s:i.style},children:[v(u,"v",{text:r})]});break}}r=r||("number"==typeof t[e]||t[e].match&&t[e].match(/^-?\d+(\.\d+)?$/)&&!t[e].match(/^0\d+/)?v(u,"c",{attr:{t:"n",r:o},children:[v(u,"v",{text:t[e]})]}):(i=t[e].replace?t[e].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):t[e],v(u,"c",{attr:{t:"inlineStr",r:o},children:{row:v(u,"is",{children:{row:v(u,"t",{text:i})}})}}))),d.appendChild(r)}}f.appendChild(d),c++});p("sheets sheet",t.xl["workbook.xml"]).attr("name",function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e}(o)),o.customizeData&&o.customizeData(n);var l=function(t,e){var n=p("mergeCells",u);n[0].appendChild(v(u,"mergeCell",{attr:{ref:"A"+t+":"+y(e)+t}})),n.attr("count",n.attr("count")+1),p("row:eq("+(t-1)+") c",u).attr("s","51")},i=e.buttons.exportInfo(o);i.title&&(a([i.title],c),l(c,n.header.length-1)),i.messageTop&&(a([i.messageTop],c),l(c,n.header.length-1)),o.header&&(a(n.header,c),p("row:last c",u).attr("s","2"));e=0;for(var h=n.body.length;e<h;e++)a(n.body[e],c);for(o.footer&&n.footer&&(a(n.footer,c),p("row:last c",u).attr("s","2")),i.messageBottom&&(a([i.messageBottom],c),l(c,n.header.length-1)),e=v(u,"cols"),p("worksheet",u).prepend(e),a=0,l=n.header.length;a<l;a++)e.appendChild(v(u,"col",{attr:{min:a+1,max:a+1,width:x(n,a),customWidth:1}}));o.customize&&o.customize(t),n={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},function i(s,t){D===b&&(D=-1===A.serializeToString(p.parseXML(R["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),p.each(t,function(t,e){if(p.isPlainObject(e))i(n=s.folder(t),e);else{if(D){var n,o,r,a=[];for(o=(n=e.childNodes[0]).attributes.length-1;0<=o;o--){r=n.attributes[o].nodeName;var l=n.attributes[o].nodeValue;-1!==r.indexOf(":")&&(a.push({name:r,value:l}),n.removeAttribute(r))}for(o=0,r=a.length;o<r;o++)(l=e.createAttribute(a[o].name.replace(":","_dt_b_namespace_token_"))).value=a[o].value,n.setAttributeNode(l)}n=A.serializeToString(e),D&&(-1===n.indexOf("<?xml")&&(n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+n),n=n.replace(/_dt_b_namespace_token_/g,":")),n=n.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),s.file(t,n)}})}(o=new(g||m.JSZip),t),o.generateAsync?o.generateAsync(n).then(function(t){I(t,i.filename),r.processing(!1)}):(I(o.generate(n),i.filename),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*"},t.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return m.FileReader!==b&&(i||m.pdfMake)},text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(t,e,n,o){this.processing(!0);var r=this,a=(t=e.buttons.exportData(o.exportOptions),e.buttons.exportInfo(o));e=[];o.header&&e.push(p.map(t.header,function(t){return{text:"string"==typeof t?t:t+"",style:"tableHeader"}}));var l=0;for(n=t.body.length;l<n;l++)e.push(p.map(t.body[l],function(t){return{text:"string"==typeof t?t:t+"",style:l%2?"tableBodyEven":"tableBodyOdd"}}));o.footer&&t.footer&&e.push(p.map(t.footer,function(t){return{text:"string"==typeof t?t:t+"",style:"tableFooter"}})),e={pageSize:o.pageSize,pageOrientation:o.orientation,content:[{table:{headerRows:1,body:e},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}},a.messageTop&&e.content.unshift({text:a.messageTop,style:"message",margin:[0,0,0,12]}),a.messageBottom&&e.content.push({text:a.messageBottom,style:"message",margin:[0,0,0,12]}),a.title&&e.content.unshift({text:a.title,style:"title",margin:[0,0,0,12]}),o.customize&&o.customize(e,o),e=(i||m.pdfMake).createPdf(e),"open"!==o.download||S()?e.getBuffer(function(t){t=new Blob([t],{type:"application/pdf"}),I(t,a.filename),r.processing(!1)}):(e.open(),this.processing(!1))},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,messageTop:"*",messageBottom:"*",customize:null,download:"download"},t.Buttons}),function(n){"function"==typeof define&&define.amd?define("datatables.net-buttons-print",["jquery","datatables.net","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t,t.document)}:n(jQuery,window,document)}(function(d,c,t){function u(t){return n.href=t,-1===(t=n.host).indexOf("/")&&0!==n.pathname.indexOf("/")&&(t+="/"),n.protocol+"//"+t+n.pathname+n.search}var e=d.fn.dataTable,n=t.createElement("a");return e.ext.buttons.print={className:"buttons-print",text:function(t){return t.i18n("buttons.print","Print")},action:function(t,e,n,o){function r(t,e){for(var n="<tr>",o=0,r=t.length;o<r;o++)n+="<"+e+">"+t[o]+"</"+e+">";return n+"</tr>"}t=e.buttons.exportData(d.extend({decodeEntities:!1},o.exportOptions)),n=e.buttons.exportInfo(o),e='<table class="'+e.table().node().className+'">';o.header&&(e+="<thead>"+r(t.header,"th")+"</thead>");e+="<tbody>";for(var a=0,l=t.body.length;a<l;a++)e+=r(t.body[a],"td");e+="</tbody>",o.footer&&t.footer&&(e+="<tfoot>"+r(t.footer,"th")+"</tfoot>");e+="</table>";var i=c.open("","");i.document.close();var s="<title>"+n.title+"</title>";d("style, link").each(function(){var t=s,e=d(this).clone()[0];
2674"link"===e.nodeName.toLowerCase()&&(e.href=u(e.href)),s=t+e.outerHTML});try{i.document.head.innerHTML=s}catch(t){d(i.document.head).html(s)}i.document.body.innerHTML="<h1>"+n.title+"</h1><div>"+(n.messageTop||"")+"</div>"+e+"<div>"+(n.messageBottom||"")+"</div>",d(i.document.body).addClass("dt-print-view"),d("img",i.document.body).each(function(t,e){e.setAttribute("src",u(e.getAttribute("src")))}),o.customize&&o.customize(i),setTimeout(function(){o.autoPrint&&(i.print(),i.close())},1e3)},title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null},e.Buttons}),function(n){"function"==typeof define&&define.amd?define("datatables.net-buttons-bs",["jquery","datatables.net-bs","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net-bs")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t.document)}:n(jQuery,window,document)}(function(t){var e=t.fn.dataTable;return t.extend(!0,e.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group"},button:{className:"btn btn-default"},collection:{tag:"ul",className:"dt-button-collection dropdown-menu",button:{tag:"li",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"a",className:""}}}}),e.ext.buttons.collection.text=function(t){return t.i18n("buttons.collection",'Collection <span class="caret"/>')},e.Buttons}),function(n){"function"==typeof define&&define.amd?define("datatables.net-colreorder",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(h,t,a,p){function m(t){for(var e=[],n=0,o=t.length;n<o;n++)e[t[n]]=n;return e}function g(t,e,n){e=t.splice(e,1)[0],t.splice(n,0,e)}function b(t,e,n){for(var o=[],r=0,a=t.childNodes.length;r<a;r++)1==t.childNodes[r].nodeType&&o.push(t.childNodes[r]);e=o[e],null!==n?t.insertBefore(e,o[n]):t.appendChild(e)}var r=h.fn.dataTable;h.fn.dataTableExt.oApi.fnColReorder=function(n,t,e,o,r){var a,l,i,s,d,c,u=n.aoColumns.length;if(d=function(t,e,n){if(t[e]&&"function"!=typeof t[e]){var o=t[e].split("."),r=o.shift();isNaN(1*r)||(t[e]=n[1*r]+"."+o.join("."))}},t!=e)if(t<0||u<=t)this.oApi._fnLog(n,1,"ColReorder 'from' index is out of bounds: "+t);else if(e<0||u<=e)this.oApi._fnLog(n,1,"ColReorder 'to' index is out of bounds: "+e);else{for(i=[],a=0,l=u;a<l;a++)i[a]=a;g(i,t,e);var f=m(i);for(a=0,l=n.aaSorting.length;a<l;
2674a++)n.aaSorting[a][0]=f[n.aaSorting[a][0]];if(null!==n.aaSortingFixed)for(a=0,l=n.aaSortingFixed.length;a<l;a++)n.aaSortingFixed[a][0]=f[n.aaSortingFixed[a][0]];for(a=0,l=u;a<l;a++){for(i=0,s=(c=n.aoColumns[a]).aDataSort.length;i<s;i++)c.aDataSort[i]=f[c.aDataSort[i]];c.idx=f[c.idx]}for(h.each(n.aLastSort,function(t,e){n.aLastSort[t].src=f[e.src]}),a=0,l=u;a<l;a++)"number"==typeof(c=n.aoColumns[a]).mData?c.mData=f[c.mData]:h.isPlainObject(c.mData)&&(d(c.mData,"_",f),d(c.mData,"filter",f),d(c.mData,"sort",f),d(c.mData,"type",f));if(n.aoColumns[t].bVisible){for(d=this.oApi._fnColumnIndexToVisible(n,t),s=null,a=e<t?e:e+1;null===s&&a<u;)s=this.oApi._fnColumnIndexToVisible(n,a),a++;for(a=0,l=(i=n.nTHead.getElementsByTagName("tr")).length;a<l;a++)b(i[a],d,s);if(null!==n.nTFoot)for(a=0,l=(i=n.nTFoot.getElementsByTagName("tr")).length;a<l;a++)b(i[a],d,s);for(a=0,l=n.aoData.length;a<l;a++)null!==n.aoData[a].nTr&&b(n.aoData[a].nTr,d,s)}for(g(n.aoColumns,t,e),a=0,l=u;a<l;a++)n.oApi._fnColumnOptions(n,a,{});for(g(n.aoPreSearchCols,t,e),a=0,l=n.aoData.length;a<l;a++){if(c=(s=n.aoData[a]).anCells)for(g(c,t,e),i=0,d=c.length;i<d;i++)c[i]&&c[i]._DT_CellIndex&&(c[i]._DT_CellIndex.column=i);"dom"!==s.src&&h.isArray(s._aData)&&g(s._aData,t,e)}for(a=0,l=n.aoHeader.length;a<l;a++)g(n.aoHeader[a],t,e);if(null!==n.aoFooter)for(a=0,l=n.aoFooter.length;a<l;a++)g(n.aoFooter[a],t,e);for(!r&&r!==p||h.fn.dataTable.Api(n).rows().invalidate(),a=0,l=u;a<l;a++)h(n.aoColumns[a].nTh).off("click.DT"),this.oApi._fnSortAttachListener(n,n.aoColumns[a].nTh,a);h(n.oInstance).trigger("column-reorder.dt",[n,{from:t,to:e,mapping:f,drop:o,iFrom:t,iTo:e,aiInvertMapping:f}])}};var l=function(t,e){var n=new h.fn.dataTable.Api(t).settings()[0];if(n._colReorder)return n._colReorder;!0===e&&(e={});var o=h.fn.dataTable.camelToHungarian;return o&&(o(l.defaults,l.defaults,!0),o(l.defaults,e||{})),this.s={dt:null,init:h.extend(!0,{},l.defaults,e),fixed:0,fixedRight:0,reorderCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]},this.dom={drag:null,pointer:null},this.s.dt=n,(this.s.dt._colReorder=this)._fnConstruct(),this};return h.extend(l.prototype,{fnReset:function(){return this._fnOrderColumns(this.fnOrder()),this},fnGetCurrentOrder:function(){return this.fnOrder()},fnOrder:function(t,e){var n,o,r=[],a=this.s.dt.aoColumns;if(t===p){for(n=0,o=a.length;n<o;n++)r.push(a[n]._ColReorder_iOrigCol);return r}if(e){for(a=this.fnOrder(),n=0,o=t.length;n<o;n++)r.push(h.inArray(t[n],a));t=r}return this._fnOrderColumns(m(t)),this},fnTranspose:function(t,e){e=e||"toCurrent";var n=this.fnOrder(),o=this.s.dt.aoColumns;return"toCurrent"===e?h.isArray(t)?h.map(t,function(t){return h.inArray(t,n)}):h.inArray(t,n):h.isArray(t)?h.map(t,function(t){return o[t]._ColReorder_iOrigCol}):o[t]._ColReorder_iOrigCol},_fnConstruct:function(){var t,n=this,e=this.s.dt.aoColumns.length,o=this.s.dt.nTable;for(this.s.init.iFixedColumns&&(this.s.fixed=this.s.init.iFixedColumns),this.s.init.iFixedColumnsLeft&&(this.s.fixed=this.s.init.iFixedColumnsLeft),this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0,this.s.init.fnReorderCallback&&(this.s.reorderCallback=this.s.init.fnReorderCallback),t=0;t<e;t++)t>this.s.fixed-1&&t<e-this.s.fixedRight&&this._fnMouseListener(t,this.s.dt.aoColumns[t].nTh),this.s.dt.aoColumns[t]._ColReorder_iOrigCol=t;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(t,e){n._fnStateSave.call(n,e)},"ColReorder_State");var r=null;if(this.s.init.aiOrder&&(r=this.s.init.aiOrder.slice()),this.s.dt.oLoadedState&&void 0!==this.s.dt.oLoadedState.ColReorder&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length&&(r=this.s.dt.oLoadedState.ColReorder),r)if(n.s.dt._bInitComplete)e=m(r),n._fnOrderColumns.call(n,e);else{var a=!1;h(o).on("draw.dt.colReorder",function(){if(!n.s.dt._bInitComplete&&!a){a=!0;var t=m(r);n._fnOrderColumns.call(n,t)}})}else this._fnSetColumnIndexes();h(o).on("destroy.dt.colReorder",function(){h(o).off("destroy.dt.colReorder draw.dt.colReorder"),h(n.s.dt.nTHead).find("*").off(".ColReorder"),h.each(n.s.dt.aoColumns,function(t,e){h(e.nTh).removeAttr("data-column-index")}),n.s.dt._colReorder=null,n.s=null})},_fnOrderColumns:function(t){var e=!1;if(t.length!=this.s.dt.aoColumns.length)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");else{for(var n=0,o=t.length;n<o;n++){var r=h.inArray(n,t);n!=r&&(g(t,r,n),this.s.dt.oInstance.fnColReorder(r,n,!0,!1),e=!0)}h.fn.dataTable.Api(this.s.dt).rows().invalidate(),this._fnSetColumnIndexes(),e&&(""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY||this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))}},_fnStateSave:function(t){var e,n,o,r=this.s.dt.aoColumns;if(t.ColReorder=[],t.aaSorting){for(e=0;e<t.aaSorting.length;e++)t.aaSorting[e][0]=r[t.aaSorting[e][0]]._ColReorder_iOrigCol;var a=h.extend(!0,[],t.aoSearchCols);for(e=0,n=r.length;e<n;e++)o=r[e]._ColReorder_iOrigCol,t.aoSearchCols[o]=a[e],t.abVisCols[o]=r[e].bVisible,t.ColReorder.push(o)}else if(t.order){for(e=0;e<t.order.length;e++)t.order[e][0]=r[t.order[e][0]]._ColReorder_iOrigCol;for(a=h.extend(!0,[],t.columns),e=0,n=r.length;e<n;e++)o=r[e]._ColReorder_iOrigCol,t.columns[o]=a[e],t.ColReorder.push(o)}},_fnMouseListener:function(t,e){var n=this;h(e).on("mousedown.ColReorder",function(t){n._fnMouseDown.call(n,t,e)}).on("touchstart.ColReorder",function(t){n._fnMouseDown.call(n,t,e)})},_fnMouseDown:function(t,e){var n=this,o=h(t.target).closest("th, td").offset(),r=parseInt(h(e).attr("data-column-index"),10);
2674r!==p&&(this.s.mouse.startX=this._fnCursorPosition(t,"pageX"),this.s.mouse.startY=this._fnCursorPosition(t,"pageY"),this.s.mouse.offsetX=this._fnCursorPosition(t,"pageX")-o.left,this.s.mouse.offsetY=this._fnCursorPosition(t,"pageY")-o.top,this.s.mouse.target=this.s.dt.aoColumns[r].nTh,this.s.mouse.targetIndex=r,this.s.mouse.fromIndex=r,this._fnRegions(),h(a).on("mousemove.ColReorder touchmove.ColReorder",function(t){n._fnMouseMove.call(n,t)}).on("mouseup.ColReorder touchend.ColReorder",function(t){n._fnMouseUp.call(n,t)}))},_fnMouseMove:function(t){if(null===this.dom.drag){if(Math.pow(Math.pow(this._fnCursorPosition(t,"pageX")-this.s.mouse.startX,2)+Math.pow(this._fnCursorPosition(t,"pageY")-this.s.mouse.startY,2),.5)<5)return;this._fnCreateDragNode()}this.dom.drag.css({left:this._fnCursorPosition(t,"pageX")-this.s.mouse.offsetX,top:this._fnCursorPosition(t,"pageY")-this.s.mouse.offsetY});for(var e=!1,n=this.s.mouse.toIndex,o=1,r=this.s.aoTargets.length;o<r;o++)if(this._fnCursorPosition(t,"pageX")<this.s.aoTargets[o-1].x+(this.s.aoTargets[o].x-this.s.aoTargets[o-1].x)/2){this.dom.pointer.css("left",this.s.aoTargets[o-1].x),this.s.mouse.toIndex=this.s.aoTargets[o-1].to,e=!0;break}e||(this.dom.pointer.css("left",this.s.aoTargets[this.s.aoTargets.length-1].x),this.s.mouse.toIndex=this.s.aoTargets[this.s.aoTargets.length-1].to),this.s.init.bRealtime&&n!==this.s.mouse.toIndex&&(this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!1),this.s.mouse.fromIndex=this.s.mouse.toIndex,this._fnRegions())},_fnMouseUp:function(){h(a).off(".ColReorder"),null!==this.dom.drag&&(this.dom.drag.remove(),this.dom.pointer.remove(),this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!0),this._fnSetColumnIndexes(),""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY||this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))},_fnRegions:function(){var t=this.s.dt.aoColumns;this.s.aoTargets.splice(0,this.s.aoTargets.length),this.s.aoTargets.push({x:h(this.s.dt.nTable).offset().left,to:0});for(var e=0,n=this.s.aoTargets[0].x,o=0,r=t.length;o<r;o++)o!=this.s.mouse.fromIndex&&e++,t[o].bVisible&&"none"!==t[o].nTh.style.display&&(n+=h(t[o].nTh).outerWidth(),this.s.aoTargets.push({x:n,to:e}));0!==this.s.fixedRight&&this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight),0!==this.s.fixed&&this.s.aoTargets.splice(0,this.s.fixed)},_fnCreateDragNode:function(){var t=""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY,e=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh,n=e.parentNode,o=n.parentNode,r=o.parentNode,a=h(e).clone();this.dom.drag=h(r.cloneNode(!1)).addClass("DTCR_clonedTable").append(h(o.cloneNode(!1)).append(h(n.cloneNode(!1)).append(a[0]))).css({position:"absolute",top:0,left:0,width:h(e).outerWidth(),height:h(e).outerHeight()}).appendTo("body"),this.dom.pointer=h("<div></div>").addClass("DTCR_pointer").css({position:"absolute",top:t?h("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:h(this.s.dt.nTable).offset().top,height:t?h("div.dataTables_scroll",this.s.dt.nTableWrapper).height():h(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){h.each(this.s.dt.aoColumns,function(t,e){h(e.nTh).attr("data-column-index",t)})},_fnCursorPosition:function(t,e){return-1!==t.type.indexOf("touch")?t.originalEvent.touches[0][e]:t[e]}}),l.defaults={aiOrder:null,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null},l.version="1.4.1",h.fn.dataTable.ColReorder=l,h.fn.DataTable.ColReorder=l,"function"==typeof h.fn.dataTable&&"function"==typeof h.fn.dataTableExt.fnVersionCheck&&h.fn.dataTableExt.fnVersionCheck("1.10.8")?h.fn.dataTableExt.aoFeatures.push({fnInit:function(t){var e=t.oInstance;return t._colReorder?e.oApi._fnLog(t,1,"ColReorder attempted to initialise twice. Ignoring second"):(e=t.oInit,new l(t,e.colReorder||e.oColReorder||{})),null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download"),h(a).on("preInit.dt.colReorder",function(t,e){if("dt"===t.namespace){var n=e.oInit.colReorder,o=r.defaults.colReorder;(n||o)&&(o=h.extend({},n,o),!1!==n&&new l(e,o))}}),h.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(t){t._colReorder.fnReset()})}),h.fn.dataTable.Api.register("colReorder.order()",function(e,n){return e?this.iterator("table",function(t){t._colReorder.fnOrder(e,n)}):this.context.length?this.context[0]._colReorder.fnOrder():null}),h.fn.dataTable.Api.register("colReorder.transpose()",function(t,e){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(t,e):t}),h.fn.dataTable.Api.register("colReorder.move()",function(t,e,n,o){return this.context.length&&this.context[0]._colReorder.s.dt.oInstance.fnColReorder(t,e,n,o),this}),l}),function(n){"function"==typeof define&&define.amd?define("datatables.net-rowreorder",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(b,l,y,t){var r=b.fn.dataTable,a=function(t,e){if(!r.versionCheck||!r.versionCheck("1.10.8"))throw"DataTables RowReorder requires DataTables 1.10.8 or newer";this.c=b.extend(!0,{},r.defaults.rowReorder,a.defaults,e),this.s={bodyTop:null,dt:new r.Api(t),getDataFn:r.ext.oApi._fnGetObjectDataFn(this.c.dataSrc),middles:null,scroll:{},scrollInterval:null,setDataFn:r.ext.oApi._fnSetObjectDataFn(this.c.dataSrc),start:{top:0,left:0,offsetTop:0,offsetLeft:0,nodes:[]},windowHeight:0,documentOuterHeight:0,domCloneOuterHeight:0},this.dom={clone:null,dtScroll:b("div.dataTables_scrollBody",this.s.dt.table().container())};var n=this.s.dt.settings()[0],o=n.rowreorder;if(o)return o;(n.rowreorder=this)._constructor()};b.extend(a.prototype,{_constructor:function(){var o=this,r=this.s.dt,t=b(r.table().node());"static"===t.css("position")&&t.css("position","relative"),b(r.table().container()).on("mousedown.rowReorder touchstart.rowReorder",this.c.selector,function(t){if(o.c.enable){var e=b(this).closest("tr"),n=r.row(e);if(n.any())return o._emitEvent("pre-row-reorder",{node:n.node(),index:n.index()}),o._mouseDown(t,e),!1}}),r.on("destroy.rowReorder",function(){b(r.table().container()).off(".rowReorder"),r.off(".rowReorder")})},_cachePositions:function(){var n=this.s.dt,e=b(n.table().node()).find("thead").outerHeight(),t=b.unique(n.rows({page:"current"}).nodes().toArray()),o=b.map(t,function(t){return b(t).position().top-e});t=b.map(o,function(t,e){return o.length<e-1?(t+o[e+1])/2:(t+t+b(n.row(":last-child").node()).outerHeight())/2});this.s.middles=t,this.s.bodyTop=b(n.table().body()).offset().top,this.s.windowHeight=b(l).height(),this.s.documentOuterHeight=b(y).outerHeight()},_clone:function(t){var e=b(this.s.dt.table().node().cloneNode(!1)).addClass("dt-rowReorder-float").append("<tbody/>").append(t.clone(!1)),n=t.outerWidth(),o=t.outerHeight(),r=t.children().map(function(){return b(this).width()});e.width(n).height(o).find("tr").children().each(function(t){this.style.width=r[t]+"px"}),e.appendTo("body"),this.dom.clone=e,this.s.domCloneOuterHeight=e.outerHeight()},_clonePosition:function(t){var e=this.s.start,n=this._eventToPage(t,"Y")-e.top,o=(t=this._eventToPage(t,"X")-e.left,this.c.snapX);n+=e.offsetTop,e=!0===o?e.offsetLeft:"number"==typeof o?e.offsetLeft+o:t+e.offsetLeft;n<0?n=0:n+this.s.domCloneOuterHeight>this.s.documentOuterHeight&&(n=this.s.documentOuterHeight-this.s.domCloneOuterHeight),this.dom.clone.css({top:n,left:e})},_emitEvent:function(e,n){this.s.dt.iterator("table",function(t){b(t.
2674nTable).triggerHandler(e+".dt",n)})},_eventToPage:function(t,e){return-1!==t.type.indexOf("touch")?t.originalEvent.touches[0]["page"+e]:t["page"+e]},_mouseDown:function(t,e){var n=this,o=this.s.dt,r=this.s.start,a=e.offset();r.top=this._eventToPage(t,"Y"),r.left=this._eventToPage(t,"X"),r.offsetTop=a.top,r.offsetLeft=a.left,r.nodes=b.unique(o.rows({page:"current"}).nodes().toArray()),this._cachePositions(),this._clone(e),this._clonePosition(t),(this.dom.target=e).addClass("dt-rowReorder-moving"),b(y).on("mouseup.rowReorder touchend.rowReorder",function(t){n._mouseUp(t)}).on("mousemove.rowReorder touchmove.rowReorder",function(t){n._mouseMove(t)}),b(l).width()===b(y).width()&&b(y.body).addClass("dt-rowReorder-noOverflow"),o=this.dom.dtScroll,this.s.scroll={windowHeight:b(l).height(),windowWidth:b(l).width(),dtTop:o.length?o.offset().top:null,dtLeft:o.length?o.offset().left:null,dtHeight:o.length?o.outerHeight():null,dtWidth:o.length?o.outerWidth():null}},_mouseMove:function(t){this._clonePosition(t);for(var e=this._eventToPage(t,"Y")-this.s.bodyTop,n=this.s.middles,o=null,r=this.s.dt,a=r.table().body(),l=0,i=n.length;l<i;l++)if(e<n[l]){o=l;break}null===o&&(o=n.length),null!==this.s.lastInsert&&this.s.lastInsert===o||(0===o?this.dom.target.prependTo(a):(e=b.unique(r.rows({page:"current"}).nodes().toArray()),o>this.s.lastInsert?this.dom.target.insertAfter(e[o-1]):this.dom.target.insertBefore(e[o])),this._cachePositions(),this.s.lastInsert=o),this._shiftScroll(t)},_mouseUp:function(){var e,n,o=this,r=this.s.dt,a=this.c.dataSrc;this.dom.clone.remove(),this.dom.clone=null,this.dom.target.removeClass("dt-rowReorder-moving"),b(y).off(".rowReorder"),b(y.body).removeClass("dt-rowReorder-noOverflow"),clearInterval(this.s.scrollInterval),this.s.scrollInterval=null;var t=this.s.start.nodes,l=b.unique(r.rows({page:"current"}).nodes().toArray()),i={},s=[],d=[],c=this.s.getDataFn,u=this.s.setDataFn;for(e=0,n=t.length;e<n;e++)if(t[e]!==l[e]){var f=r.row(l[e]).id(),h=r.row(l[e]).data(),p=r.row(t[e]).data();f&&(i[f]=c(p)),s.push({node:l[e],oldData:c(h),newData:c(p),newPosition:e,oldPosition:b.inArray(l[e],t)}),d.push(l[e])}var m=[s,{dataSrc:a,nodes:d,values:i,triggerRow:r.row(this.dom.target)}];this._emitEvent("row-reorder",m);function g(){if(o.c.update){for(e=0,n=s.length;e<n;e++){var t=r.row(s[e].node).data();u(t,s[e].newData),r.columns().every(function(){this.dataSrc()===a&&r.cell(s[e].node,this.index()).invalidate("data")})}o._emitEvent("row-reordered",m),r.draw(!1)}}this.c.editor?(this.c.enable=!1,this.c.editor.edit(d,!1,b.extend({submit:"changed"},this.c.formOptions)).multiSet(a,i).one("submitUnsuccessful.rowReorder",function(){r.draw(!1)}).one("submitSuccess.rowReorder",function(){g()}).one("submitComplete",function(){o.c.enable=!0,o.c.editor.off(".rowReorder")}).submit()):g()},_shiftScroll:function(t){var e,n,o=this,r=this.s.scroll,a=!1,l=t.pageY-y.body.scrollTop;l<65?e=-5:l>r.windowHeight-65&&(e=5),null!==r.dtTop&&t.pageY<r.dtTop+65?n=-5:null!==r.dtTop&&t.pageY>r.dtTop+r.dtHeight-65&&(n=5),e||n?(r.windowVert=e,r.dtVert=n,a=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null),!this.s.scrollInterval&&a&&(this.s.scrollInterval=setInterval(function(){if(r.windowVert&&(y.body.scrollTop=y.body.scrollTop+r.windowVert),r.dtVert){var t=o.dom.dtScroll[0];r.dtVert&&(t.scrollTop=t.scrollTop+r.dtVert)}},20))}}),a.defaults={dataSrc:0,editor:null,enable:!0,formOptions:{},selector:"td:first-child",snapX:!1,update:!0};var e=b.fn.dataTable.Api;return e.register("rowReorder()",function(){return this}),e.register("rowReorder.enable()",function(e){return e===t&&(e=!0),this.iterator("table",function(t){t.rowreorder&&(t.rowreorder.c.enable=e)})}),e.register("rowReorder.disable()",function(){return this.iterator("table",function(t){t.rowreorder&&(t.rowreorder.c.enable=!1)})}),a.version="1.2.3",b.fn.dataTable.RowReorder=a,b.fn.DataTable.RowReorder=a,b(y).on("init.dt.dtr",function(t,e){if("dt"===t.namespace){var n=e.oInit.rowReorder,o=r.defaults.rowReorder;(n||o)&&(o=b.extend({},n,o),!1!==n&&new a(e,o))}}),a}),function(n){"function"==typeof define&&define.amd?define("datatables.net-fixedcolumns",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(g,i,s,b){var e,r=g.fn.dataTable,d=function(t,e){var n=this;
2674if(this instanceof d){e!==b&&!0!==e||(e={});var o=g.fn.dataTable.camelToHungarian;if(o&&(o(d.defaults,d.defaults,!0),o(d.defaults,e)),o=new g.fn.dataTable.Api(t).settings()[0],this.s={dt:o,iTableColumns:o.aoColumns.length,aiOuterWidths:[],aiInnerWidths:[],rtl:"rtl"===g(o.nTable).css("direction")},this.dom={scroller:null,header:null,body:null,footer:null,grid:{wrapper:null,dt:null,left:{wrapper:null,head:null,body:null,foot:null},right:{wrapper:null,head:null,body:null,foot:null}},clone:{left:{header:null,body:null,footer:null},right:{header:null,body:null,footer:null}}},o._oFixedColumns)throw"FixedColumns already initialised on this table";o._oFixedColumns=this,o._bInitComplete?this._fnConstruct(e):o.oApi._fnCallbackReg(o,"aoInitComplete",function(){n._fnConstruct(e)},"FixedColumns")}else alert("FixedColumns warning: FixedColumns must be initialised with the 'new' keyword.")};return g.extend(d.prototype,{fnUpdate:function(){this._fnDraw(!0)},fnRedrawLayout:function(){this._fnColCalc(),this._fnGridLayout(),this.fnUpdate()},fnRecalculateHeight:function(t){delete t._DTTC_iHeight,t.style.height="auto"},fnSetRowHeight:function(t,e){t.style.height=e+"px"},fnGetPosition:function(t){var e=this.s.dt.oInstance;if(g(t).parents(".DTFC_Cloned").length){if("tr"===t.nodeName.toLowerCase())return t=g(t).index(),e.fnGetPosition(g("tr",this.s.dt.nTBody)[t]);var n=g(t).index();t=g(t.parentNode).index();return[e.fnGetPosition(g("tr",this.s.dt.nTBody)[t]),n,e.oApi._fnVisibleToColumnIndex(this.s.dt,n)]}return e.fnGetPosition(t)},_fnConstruct:function(t){var a=this;if("function"!=typeof this.s.dt.oInstance.fnVersionCheck||!0!==this.s.dt.oInstance.fnVersionCheck("1.8.0"))alert("FixedColumns "+d.VERSION+" required DataTables 1.8.0 or later. Please upgrade your DataTables installation");else if(""===this.s.dt.oScroll.sX)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"FixedColumns is not needed (no x-scrolling in DataTables enabled), so no action will be taken. Use 'FixedHeader' for column fixing when scrolling is not enabled");else{this.s=g.extend(!0,this.s,d.defaults,t),t=this.s.dt.oClasses,this.dom.grid.dt=g(this.s.dt.nTable).parents("div."+t.sScrollWrapper)[0],this.dom.scroller=g("div."+t.sScrollBody,this.dom.grid.dt)[0],this._fnColCalc(),this._fnGridSetup();var e,n=!1;g(this.s.dt.nTableWrapper).on("mousedown.DTFC",function(){n=!0,g(s).one("mouseup",function(){n=!1})}),g(this.dom.scroller).on("mouseover.DTFC touchstart.DTFC",function(){n||(e="main")}).on("scroll.DTFC",function(t){!e&&t.originalEvent&&(e="main"),"main"===e&&(0<a.s.iLeftColumns&&(a.dom.grid.left.liner.scrollTop=a.dom.scroller.scrollTop),0<a.s.iRightColumns)&&(a.dom.grid.right.liner.scrollTop=a.dom.scroller.scrollTop)});var o="onwheel"in s.createElement("div")?"wheel.DTFC":"mousewheel.DTFC";0<a.s.iLeftColumns&&g(a.dom.grid.left.liner).on("mouseover.DTFC touchstart.DTFC",function(){n||(e="left")}).on("scroll.DTFC",function(t){!e&&t.originalEvent&&(e="left"),"left"===e&&(a.dom.scroller.scrollTop=a.dom.grid.left.liner.scrollTop,0<a.s.iRightColumns&&(a.dom.grid.right.liner.scrollTop=a.dom.grid.left.liner.scrollTop))}).on(o,function(t){a.dom.scroller.scrollLeft-="wheel"===t.type?-t.originalEvent.deltaX:t.originalEvent.wheelDeltaX}),0<a.s.iRightColumns&&g(a.dom.grid.right.liner).on("mouseover.DTFC touchstart.DTFC",function(){n||(e="right")}).on("scroll.DTFC",function(t){!e&&t.originalEvent&&(e="right"),"right"===e&&(a.dom.scroller.scrollTop=a.dom.grid.right.liner.scrollTop,0<a.s.iLeftColumns&&(a.dom.grid.left.liner.scrollTop=a.dom.grid.right.liner.scrollTop))}).on(o,function(t){a.dom.scroller.scrollLeft-="wheel"===t.type?-t.originalEvent.deltaX:t.originalEvent.wheelDeltaX}),g(i).on("resize.DTFC",function(){a._fnGridLayout.call(a)});var r=!0,l=g(this.s.dt.nTable);l.on("draw.dt.DTFC",function(){a._fnColCalc(),a._fnDraw.call(a,r),r=!1}).on("column-sizing.dt.DTFC",function(){a._fnColCalc(),a._fnGridLayout(a)}).on("column-visibility.dt.DTFC",function(t,e,n,o,r){r!==b&&!r||(a._fnColCalc(),a._fnGridLayout(a),a._fnDraw(!0))}).on("select.dt.DTFC deselect.dt.DTFC",function(t){"dt"===t.namespace&&a._fnDraw(!1)}).on("destroy.dt.DTFC",function(){l.off(".DTFC"),g(a.dom.scroller).off(".DTFC"),g(i).off(".DTFC"),g(a.s.dt.nTableWrapper).off(".DTFC"),g(a.dom.grid.left.liner).off(".DTFC "+o),g(a.dom.grid.left.wrapper).remove(),g(a.dom.grid.right.liner).off(".DTFC "+o),g(a.dom.grid.right.wrapper).remove()}),this._fnGridLayout(),this.s.dt.oInstance.fnDraw(!1)}},_fnColCalc:function(){var a=this,l=0,i=0;this.s.aiInnerWidths=[],this.s.aiOuterWidths=[],g.each(this.s.dt.aoColumns,function(t,e){var n,o=g(e.nTh);if(o.filter(":visible").length){var r=o.outerWidth();0===a.s.aiOuterWidths.length&&(r+="string"==typeof(n=g(a.s.dt.nTable).css("border-left-width"))?1:parseInt(n,10)),a.s.aiOuterWidths.length===a.s.dt.aoColumns.length-1&&(r+="string"==typeof(n=g(a.s.dt.nTable).css("border-right-width"))?1:parseInt(n,10)),a.s.aiOuterWidths.push(r),a.s.aiInnerWidths.push(o.width()),t<a.s.iLeftColumns&&(l+=r),a.s.iTableColumns-a.s.iRightColumns<=t&&(i+=r)}else a.s.aiInnerWidths.push(0),a.s.aiOuterWidths.push(0)}),this.s.iLeftWidth=l,this.s.iRightWidth=i},_fnGridSetup:function(){var t,e=this._fnDTOverflow();this.dom.body=this.s.dt.nTable,this.dom.header=this.s.dt.nTHead.parentNode,this.dom.header.parentNode.parentNode.style.position="relative";var n=g('<div class="DTFC_ScrollWrapper" style="position:relative; clear:both;"><div class="DTFC_LeftWrapper" style="position:absolute; top:0; left:0;"><div class="DTFC_LeftHeadWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div><div class="DTFC_LeftBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;"><div class="DTFC_LeftBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_LeftFootWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div></div><div class="DTFC_RightWrapper" style="position:absolute; top:0; right:0;"><div class="DTFC_RightHeadWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightHeadBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div><div class="DTFC_RightBodyWrapper" style="position:relative; top:0; left:0; overflow:hidden;"><div class="DTFC_RightBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_RightFootWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightFootBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div></div></div>')[0],o=n.childNodes[0],r=n.childNodes[1];this.dom.grid.dt.parentNode.insertBefore(n,this.dom.grid.dt),n.appendChild(this.dom.grid.dt),this.dom.grid.wrapper=n,0<this.s.iLeftColumns&&(this.dom.grid.left.wrapper=o,this.dom.grid.left.head=o.childNodes[0],this.dom.grid.left.body=o.childNodes[1],this.dom.grid.left.liner=g("div.DTFC_LeftBodyLiner",n)[0],n.appendChild(o)),0<this.s.iRightColumns&&(this.dom.grid.right.wrapper=r,this.dom.grid.right.head=r.childNodes[0],this.dom.grid.right.body=r.childNodes[1],this.dom.grid.right.liner=g("div.DTFC_RightBodyLiner",n)[0],r.style.right=e.bar+"px",(t=g("div.DTFC_RightHeadBlocker",n)[0]).style.width=e.bar+"px",t.style.right=-e.bar+"px",this.dom.grid.right.headBlock=t,(t=g("div.DTFC_RightFootBlocker",n)[0]).style.width=e.bar+"px",t.style.right=-e.bar+"px",this.dom.grid.right.footBlock=t,n.appendChild(r)),this.s.dt.nTFoot&&(this.dom.footer=this.s.dt.nTFoot.parentNode,0<this.s.iLeftColumns&&(this.dom.grid.left.foot=o.childNodes[2]),0<this.s.iRightColumns)&&(this.dom.grid.right.foot=r.childNodes[2]),this.s.rtl&&g("div.DTFC_RightHeadBlocker",n).css({left:-e.bar+"px",right:""})},_fnGridLayout:function(){var n=this,t=this.dom.grid;g(t.wrapper).width();function e(t,e){a.bar?n._firefoxScrollError()?34<g(t).height()&&(t.style.width=e+a.bar+"px"):t.style.width=e+a.bar+"px":(t.style.width=e+20+"px",t.style.paddingRight="20px",t.style.boxSizing="border-box")}
2674var o=g(this.s.dt.nTable.parentNode).outerHeight(),r=g(this.s.dt.nTable.parentNode.parentNode).outerHeight(),a=this._fnDTOverflow(),l=this.s.iLeftWidth,i=this.s.iRightWidth,s="rtl"===g(this.dom.body).css("direction");a.x&&(o-=a.bar),t.wrapper.style.height=r+"px",0<this.s.iLeftColumns&&((r=t.left.wrapper).style.width=l+"px",r.style.height="1px",s?(r.style.left="",r.style.right=0):(r.style.left=0,r.style.right=""),t.left.body.style.height=o+"px",t.left.foot&&(t.left.foot.style.top=(a.x?a.bar:0)+"px"),e(t.left.liner,l),t.left.liner.style.height=o+"px",t.left.liner.style.maxHeight=o+"px"),0<this.s.iRightColumns&&((r=t.right.wrapper).style.width=i+"px",r.style.height="1px",this.s.rtl?(r.style.left=a.y?a.bar+"px":0,r.style.right=""):(r.style.left="",r.style.right=a.y?a.bar+"px":0),t.right.body.style.height=o+"px",t.right.foot&&(t.right.foot.style.top=(a.x?a.bar:0)+"px"),e(t.right.liner,i),t.right.liner.style.height=o+"px",t.right.liner.style.maxHeight=o+"px",t.right.headBlock.style.display=a.y?"block":"none",t.right.footBlock.style.display=a.y?"block":"none")},_fnDTOverflow:function(){var t=this.s.dt.nTable,e=t.parentNode,n={x:!1,y:!1,bar:this.s.dt.oScroll.iBarWidth};return t.offsetWidth>e.clientWidth&&(n.x=!0),t.offsetHeight>e.clientHeight&&(n.y=!0),n},_fnDraw:function(t){this._fnGridLayout(),this._fnCloneLeft(t),this._fnCloneRight(t),null!==this.s.fnDrawCallback&&this.s.fnDrawCallback.call(this,this.dom.clone.left,this.dom.clone.right),g(this).trigger("draw.dtfc",{leftClone:this.dom.clone.left,rightClone:this.dom.clone.right})},_fnCloneRight:function(t){if(!(this.s.iRightColumns<=0)){var e,n=[];for(e=this.s.iTableColumns-this.s.iRightColumns;e<this.s.iTableColumns;e++)this.s.dt.aoColumns[e].bVisible&&n.push(e);this._fnClone(this.dom.clone.right,this.dom.grid.right,n,t)}},_fnCloneLeft:function(t){if(!(this.s.iLeftColumns<=0)){var e,n=[];for(e=0;e<this.s.iLeftColumns;e++)this.s.dt.aoColumns[e].bVisible&&n.push(e);this._fnClone(this.dom.clone.left,this.dom.grid.left,n,t)}},_fnCopyLayout:function(t,e,n){for(var o=[],r=[],a=[],l=0,i=t.length;l<i;l++){var s=[];s.nTr=g(t[l].nTr).clone(n,!1)[0];for(var d=0,c=this.s.iTableColumns;d<c;d++)if(-1!==g.inArray(d,e)){var u=g.inArray(t[l][d].cell,a);-1===u?(u=g(t[l][d].cell).clone(n,!1)[0],r.push(u),a.push(t[l][d].cell),s.push({cell:u,unique:t[l][d].unique})):s.push({cell:r[u],unique:t[l][d].unique})}o.push(s)}return o},_fnClone:function(t,e,o,n){var r,a,l,i,s,d,c,u,f,h=this,p=this.s.dt;if(n){for(g(t.header).remove(),t.header=g(this.dom.header).clone(!0,!1)[0],t.header.className+=" DTFC_Cloned",t.header.style.width="100%",e.head.appendChild(t.header),u=this._fnCopyLayout(p.aoHeader,o,!0),(i=g(">thead",t.header)).empty(),r=0,a=u.length;r<a;r++)i[0].appendChild(u[r].nTr);p.oApi._fnDrawHead(p,u,!0)}else for(u=this._fnCopyLayout(p.aoHeader,o,!1),f=[],p.oApi._fnDetectHeader(f,g(">thead",t.header)[0]),r=0,a=u.length;r<a;r++)for(l=0,i=u[r].length;l<i;l++)f[r][l].cell.className=u[r][l].cell.className,g("span.DataTables_sort_icon",f[r][l].cell).each(function(){this.className=g("span.DataTables_sort_icon",u[r][l].cell)[0].className});this._fnEqualiseHeights("thead",this.dom.header,t.header),"auto"==this.s.sHeightMatch&&g(">tbody>tr",h.dom.body).css("height","auto"),null!==t.body&&(g(t.body).remove(),t.body=null),t.body=g(this.dom.body).clone(!0)[0],t.body.className+=" DTFC_Cloned",t.body.style.paddingBottom=p.oScroll.iBarWidth+"px",t.body.style.marginBottom=2*p.oScroll.iBarWidth+"px",null!==t.body.getAttribute("id")&&t.body.removeAttribute("id"),g(">thead>tr",t.body).empty(),g(">tfoot",t.body).remove();var m=g("tbody",t.body)[0];if(g(m).empty(),0<p.aiDisplay.length){for(a=g(">thead>tr",t.body)[0],c=0;c<o.length;c++)s=o[c],(d=g(p.aoColumns[s].nTh).clone(!0)[0]).innerHTML="",(i=d.style).paddingTop="0",i.paddingBottom="0",i.borderTopWidth="0",i.borderBottomWidth="0",i.height=0,i.width=h.s.aiInnerWidths[s]+"px",a.appendChild(d);g(">tbody>tr",h.dom.body).each(function(t){t=!1===h.s.dt.oFeatures.bServerSide?h.s.dt.aiDisplay[h.s.dt._iDisplayStart+t]:t;var e=h.s.dt.aoData[t].anCells||g(this).children("td, th"),n=this.cloneNode(!1);for(n.removeAttribute("id"),n.setAttribute("data-dt-row",t),c=0;c<o.length;c++)s=o[c],0<e.length&&((d=g(e[s]).clone(!0,!0)[0]).removeAttribute("id"),d.setAttribute("data-dt-row",t),d.setAttribute("data-dt-column",p.oApi._fnVisibleToColumnIndex(p,s)),n.appendChild(d));m.appendChild(n)})}else g(">tbody>tr",h.dom.body).each(function(){(d=this.cloneNode(!0)).className=d.className+" DTFC_NoData",g("td",d).html(""),m.appendChild(d)});if(t.body.style.width="100%",t.body.style.margin="0",t.body.style.padding="0",p.oScroller!==b&&(a=p.oScroller.dom.force,e.forcer?e.forcer.style.height=a.style.height:(e.forcer=a.cloneNode(!0),e.liner.appendChild(e.forcer))),e.liner.appendChild(t.body),this._fnEqualiseHeights("tbody",h.dom.body,t.body),null!==p.nTFoot){if(n){for(null!==t.footer&&t.footer.parentNode.removeChild(t.footer),t.footer=g(this.dom.footer).clone(!0,!0)[0],t.footer.className+=" DTFC_Cloned",t.footer.style.width="100%",e.foot.appendChild(t.footer),u=this._fnCopyLayout(p.aoFooter,o,!0),(e=g(">tfoot",t.footer)).empty(),r=0,a=u.length;r<a;r++)e[0].appendChild(u[r].nTr);p.oApi._fnDrawHead(p,u,!0)}else for(u=this._fnCopyLayout(p.aoFooter,o,!1),e=[],p.oApi._fnDetectHeader(e,g(">tfoot",t.footer)[0]),r=0,a=u.length;r<a;r++)for(l=0,i=u[r].length;l<i;l++)e[r][l].cell.className=u[r][l].cell.className;this._fnEqualiseHeights("tfoot",this.dom.footer,t.footer)}e=p.oApi._fnGetUniqueThs(p,g(">thead",t.header)[0]),g(e).each(function(t){s=o[t],this.style.width=h.s.aiInnerWidths[s]+"px"}),null!==h.s.dt.nTFoot&&(e=p.oApi._fnGetUniqueThs(p,g(">tfoot",t.footer)[0]),g(e).each(function(t){s=o[t],this.style.width=h.s.aiInnerWidths[s]+"px"}))},_fnGetTrNodes:function(t){for(var e=[],n=0,o=t.childNodes.length;n<o;n++)"TR"==t.childNodes[n].nodeName.toUpperCase()&&e.push(t.childNodes[n]);return e},_fnEqualiseHeights:function(t,e,n){if("none"!=this.s.sHeightMatch||"thead"===t||"tfoot"===t){var o,r,a=e.getElementsByTagName(t)[0];n=n.getElementsByTagName(t)[0];(t=g(">"+t+">tr:eq(0)",e).children(":first")).outerHeight(),t.height();a=this._fnGetTrNodes(a),e=this._fnGetTrNodes(n);var l=[];for(n=0,t=e.length;n<t;n++)o=(o=a[n].offsetHeight)<(r=e[n].offsetHeight)?r:o,"semiauto"==this.s.sHeightMatch&&(a[n]._DTTC_iHeight=o),l.push(o);for(n=0,t=e.length;n<t;n++)e[n].style.height=l[n]+"px",a[n].style.height=l[n]+"px"}},_firefoxScrollError:function(){if(e===b){var t=g("<div/>").css({position:"absolute",top:0,left:0,height:10,width:50,overflow:"scroll"}).appendTo("body");e=t[0].clientWidth===t[0].offsetWidth&&0!==this._fnDTOverflow().bar,t.remove()}return e}}),d.defaults={iLeftColumns:1,iRightColumns:0,fnDrawCallback:null,sHeightMatch:"semiauto"},d.version="3.2.3",r.Api.register("fixedColumns()",function(){return this}),r.Api.register("fixedColumns().update()",function(){return this.iterator("table",function(t){t._oFixedColumns&&t._oFixedColumns.fnUpdate()})}),r.Api.register("fixedColumns().relayout()",function(){return this.iterator("table",function(t){t._oFixedColumns&&t._oFixedColumns.fnRedrawLayout()})}),r.Api.register("rows().recalcHeight()",function(){return this.iterator("row",function(t,e){t._oFixedColumns&&t._oFixedColumns.fnRecalculateHeight(this.row(e).node())})}),r.Api.register("fixedColumns().rowIndex()",function(t){return(t=g(t)).parents(".DTFC_Cloned").length?this.rows({page:"current"}).indexes()[t.index()]:this.row(t).index()}),r.Api.register("fixedColumns().cellIndex()",function(t){if((t=g(t)).parents(".DTFC_Cloned").length){var e=t.parent().index();e=this.rows({page:"current"}).indexes()[e],t=t.parents(".DTFC_LeftWrapper").length?t.index():this.columns().flatten().length-this.context[0]._oFixedColumns.s.iRightColumns+t.index();return{row:e,column:this.column.index("toData",t),columnVisible:t}}return this.cell(t).index()}),g(s).on("init.dt.fixedColumns",function(t,e){if("dt"===t.namespace){var n=e.oInit.fixedColumns,o=r.defaults.fixedColumns;(n||o)&&(o=g.extend({},n,o),!1!==n&&new d(e,o))}}),g.fn.dataTable.FixedColumns=d,g.fn.DataTable.FixedColumns=d}),function(n){"function"==typeof define&&define.amd?define("datatables.net-fixedheader",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(l,o,i,r){var a=l.fn.dataTable,s=0,d=function(t,e){if(!(this instanceof d))throw"FixedHeader must be initialised with the 'new' keyword.";!0===e&&(e={}),t=new a.Api(t),this.c=l.extend(!0,{},d.defaults,e),this.s={dt:t,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:l(o).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:t.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+s++,scrollLeft:{header:-1,footer:-1}
2674,enable:!0},this.dom={floatingHeader:null,thead:l(t.table().header()),tbody:l(t.table().body()),tfoot:l(t.table().footer()),header:{host:null,floating:null,placeholder:null},footer:{host:null,floating:null,placeholder:null}},this.dom.header.host=this.dom.thead.parent(),this.dom.footer.host=this.dom.tfoot.parent();var n=t.settings()[0];if(n._fixedHeader)throw"FixedHeader already initialised on table "+n.nTable.id;(n._fixedHeader=this)._constructor()};return l.extend(d.prototype,{enable:function(t){this.s.enable=t,this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&this.dom.tfoot.length&&this._modeChange("in-place","footer",!0),this.update()},headerOffset:function(t){return t!==r&&(this.c.headerOffset=t,this.update()),this.c.headerOffset},footerOffset:function(t){return t!==r&&(this.c.footerOffset=t,this.update()),this.c.footerOffset},update:function(){this._positions(),this._scroll(!0)},_constructor:function(){var t=this,e=this.s.dt;l(o).on("scroll"+this.s.namespace,function(){t._scroll()}).on("resize"+this.s.namespace,function(){t.s.position.windowHeight=l(o).height(),t.update()});var n=l(".fh-fixedHeader");!this.c.headerOffset&&n.length&&(this.c.headerOffset=n.outerHeight()),n=l(".fh-fixedFooter"),!this.c.footerOffset&&n.length&&(this.c.footerOffset=n.outerHeight()),e.on("column-reorder.dt.dtfc column-visibility.dt.dtfc draw.dt.dtfc column-sizing.dt.dtfc",function(){t.update()}),e.on("destroy.dtfc",function(){e.off(".dtfc"),l(o).off(t.s.namespace)}),this._positions(),this._scroll()},_clone:function(t,e){var n=this.s.dt,o=this.dom[t],r="header"===t?this.dom.thead:this.dom.tfoot;!e&&o.floating?o.floating.removeClass("fixedHeader-floating fixedHeader-locked"):(o.floating&&(o.placeholder.remove(),this._unsize(t),o.floating.children().detach(),o.floating.remove()),o.floating=l(n.table().node().cloneNode(!1)).css("table-layout","fixed").removeAttr("id").append(r).appendTo("body"),o.placeholder=r.clone(!1),o.placeholder.find("*[id]").removeAttr("id"),o.host.prepend(o.placeholder),this._matchWidths(o.placeholder,o.floating))},_matchWidths:function(e,n){function t(t,e){l(t,n).each(function(t){l(this).css({width:e[t],minWidth:e[t]})})}var o=(r=function(t){return l(t,e).map(function(){return l(this).width()}).toArray()})("th"),r=r("td");t("th",o),t("td",r)},_unsize:function(t){var e=this.dom[t].floating;e&&("footer"===t||"header"===t&&!this.s.autoWidth)?l("th, td",e).css({width:"",minWidth:""}):e&&"header"===t&&l("th, td",e).css("min-width","")},_horizontal:function(t,e){var n=this.dom[t],o=this.s.position,r=this.s.scrollLeft;n.floating&&r[t]!==e&&(n.floating.css("left",o.left-e),r[t]=e)},_modeChange:function(t,e,n){var o=this.dom[e],r=this.s.position,a=l.contains(this.dom["footer"===e?"tfoot":"thead"][0],i.activeElement)?i.activeElement:null;"in-place"===t?(o.placeholder&&(o.placeholder.remove(),o.placeholder=null),this._unsize(e),"header"===e?o.host.prepend(this.dom.thead):o.host.append(this.dom.tfoot),o.floating&&(o.floating.remove(),o.floating=null)):"in"===t?(this._clone(e,n),o.floating.addClass("fixedHeader-floating").css("header"===e?"top":"bottom",this.c[e+"Offset"]).css("left",r.left+"px").css("width",r.width+"px"),"footer"===e&&o.floating.css("top","")):"below"===t?(this._clone(e,n),o.floating.addClass("fixedHeader-locked").css("top",r.tfootTop-r.theadHeight).css("left",r.left+"px").css("width",r.width+"px")):"above"===t&&(this._clone(e,n),o.floating.addClass("fixedHeader-locked").css("top",r.tbodyTop).css("left",r.left+"px").css("width",r.width+"px")),a&&a!==i.activeElement&&a.focus(),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[e+"Mode"]=t},_positions:function(){var t=this.s.dt.table(),e=this.s.position,n=this.dom,o=(t=l(t.node())).children("thead"),r=t.children("tfoot");n=n.tbody;e.visible=t.is(":visible"),e.width=t.outerWidth(),e.left=t.offset().left,e.theadTop=o.offset().top,e.tbodyTop=n.offset().top,e.theadHeight=e.tbodyTop-e.theadTop,r.length?(e.tfootTop=r.offset().top,e.tfootBottom=e.tfootTop+r.outerHeight(),e.tfootHeight=e.tfootBottom-e.tfootTop):(e.tfootTop=e.tbodyTop+n.outerHeight(),e.tfootBottom=e.tfootTop,e.tfootHeight=e.tfootTop)},_scroll:function(t){var e,n=l(i).scrollTop(),o=l(i).scrollLeft(),r=this.s.position;this.s.enable&&(this.c.header&&(e=!r.visible||n<=r.theadTop-this.c.headerOffset?"in-
2674place":n<=r.tfootTop-r.theadHeight-this.c.headerOffset?"in":"below",!t&&e===this.s.headerMode||this._modeChange(e,"header",t),this._horizontal("header",o)),this.c.footer&&this.dom.tfoot.length)&&(n=!r.visible||n+r.windowHeight>=r.tfootBottom+this.c.footerOffset?"in-place":r.windowHeight+n>r.tbodyTop+r.tfootHeight+this.c.footerOffset?"in":"above",!t&&n===this.s.footerMode||this._modeChange(n,"footer",t),this._horizontal("footer",o))}}),d.version="3.1.3",d.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},l.fn.dataTable.FixedHeader=d,l.fn.DataTable.FixedHeader=d,l(i).on("init.dt.dtfh",function(t,e){if("dt"===t.namespace){var n=e.oInit.fixedHeader,o=a.defaults.fixedHeader;!n&&!o||e._fixedHeader||(o=l.extend({},o,n),!1!==n&&new d(e,o))}}),a.Api.register("fixedHeader()",function(){}),a.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(t){(t=t._fixedHeader)&&t.update()})}),a.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(t){t=t._fixedHeader,e=e===r||e,t&&e!==t.s.enable&&t.enable(e)})}),a.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(t){(t=t._fixedHeader)&&t.s.enable&&t.enable(!1)})}),l.each(["header","footer"],function(t,n){a.Api.register("fixedHeader."+n+"Offset()",function(e){var t=this.context;return e===r?t.length&&t[0]._fixedHeader?t[0]._fixedHeader[n+"Offset"]():r:this.iterator("table",function(t){(t=t._fixedHeader)&&t[n+"Offset"](e)})})}),d}),function(n){"function"==typeof define&&define.amd?define("datatables.net-select",["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(c,l,t,u){function i(a,t,e){var n;n=function(e,n){if(n<e){var t=n;n=e,e=t}var o=!1;return a.columns(":visible").indexes().filter(function(t){return t===e&&(o=!0),t===n?!(o=!1):o})};function o(e,n){var t=a.rows({search:"applied"}).indexes();if(t.indexOf(e)>t.indexOf(n)){var o=n;n=e,e=o}var r=!1;return t.filter(function(t){return t===e&&(r=!0),t===n?!(r=!1):r})}e=a.cells({selected:!0}).any()||e?(n=n(e.column,t.column),o(e.row,t.row)):(n=n(0,t.column),o(0,t.row)),e=a.cells(e,n).flatten(),a.cells(t,{selected:!0}).any()?a.cells(e).deselect():a.cells(e).select()}function r(t){var e=t.settings()[0]._select.selector;c(t.table().container()).off("mousedown.dtSelect",e).off("mouseup.dtSelect",e).off("click.dtSelect",e),c("body").off("click.dtSelect"+t.table().node().id)}function a(a){var e=c(a.table().container()),n=a.settings()[0],o=n._select.selector;e.on("mousedown.dtSelect",o,function(t){(t.shiftKey||t.metaKey||t.ctrlKey)&&e.css("-moz-user-select","none").one("selectstart.dtSelect",o,function(){return!1})}).on("mouseup.dtSelect",o,function(){e.css("-moz-user-select","")}).on("click.dtSelect",o,function(t){var e=a.select.items();if(!l.getSelection||!c.trim(l.getSelection().toString())){var n=a.settings()[0];if(c(t.target).closest("div.dataTables_wrapper")[0]==a.table().container()){var o=a.cell(c(t.target).closest("td, th"));if(o.any()){var r=c.Event("user-select.dt");s(a,r,[e,o,t]),r.isDefaultPrevented()||(r=o.index(),"row"===e?(e=r.row,p(t,a,n,"row",e)):"column"===e?(e=o.index().column,p(t,a,n,"column",e)):"cell"===e&&(e=o.index(),p(t,a,n,"cell",e)),n._select_lastCell=r)}}}}),c("body").on("click.dtSelect"+a.table().node().id,function(t){!n._select.blurable||c(t.target).parents().filter(a.table().container()).length||0===c(t.target).parents("html").length||c(t.target).parents("div.DTE").length||h(n,!0)})}function s(t,e,n,o){o&&!t.flatten().length||("string"==typeof e&&(e+=".dt"),n.unshift(t),c(t.table().node()).trigger(e,n))}function d(o){var t=o.settings()[0];if(t._select.info&&t.aanFeatures.i&&"api"!==o.select.style()){function r(t,e,n){t.append(c('<span class="select-item"/>').append(o.i18n("select."+e+"s",{_:"%d "+e+"s selected",0:"",1:"1 "+e+" selected"},n)))}var a=o.rows({selected:!0}).flatten().length,l=o.columns({selected:!0}).flatten().length,i=o.cells({selected:!0}).flatten().length;c.each(t.aanFeatures.i,function(t,e){e=c(e);
2674var n=c('<span class="select-info"/>');r(n,"row",a),r(n,"column",l),r(n,"cell",i);var o=e.children("span.select-info");o.length&&o.remove(),""!==n.text()&&e.append(n)})}}function f(t,e,n,o){var r=t[e+"s"]({search:"applied"}).indexes(),a=(o=c.inArray(o,r),c.inArray(n,r));if(t[e+"s"]({selected:!0}).any()||-1!==o){if(a<o){var l=a;a=o,o=l}r.splice(a+1,r.length),r.splice(0,o)}else r.splice(c.inArray(n,r)+1,r.length);t[e](n,{selected:!0}).any()?(r.splice(c.inArray(n,r),1),t[e+"s"](r).deselect()):t[e+"s"](r).select()}function h(t,e){if(e||"single"===t._select.style){var n=new g.Api(t);n.rows({selected:!0}).deselect(),n.columns({selected:!0}).deselect(),n.cells({selected:!0}).deselect()}}function p(t,e,n,o,r){var a=e.select.style(),l=e[o](r,{selected:!0}).any();"os"===a?t.ctrlKey||t.metaKey?e[o](r).select(!l):t.shiftKey?"cell"===o?i(e,r,n._select_lastCell||null):f(e,o,r,n._select_lastCell?n._select_lastCell[o]:null):(t=e[o+"s"]({selected:!0}),l&&1===t.flatten().length?e[o](r).deselect():(t.deselect(),e[o](r).select())):"multi+shift"==a&&t.shiftKey?"cell"===o?i(e,r,n._select_lastCell||null):f(e,o,r,n._select_lastCell?n._select_lastCell[o]:null):e[o](r).select(!l)}function n(e,n){return function(t){return t.i18n("buttons."+e,n)}}function m(t){return"draw.dt.DT"+(t=t._eventNamespace)+" select.dt.DT"+t+" deselect.dt.DT"+t}var g=c.fn.dataTable;g.select={},g.select.version="1.2.3",g.select.init=function(t){var e=t.settings()[0],n=e.oInit.select,o=g.defaults.select,r=(n=n===u?o:n,o="row","api"),a=!1,l=!0,i="td, th",s="selected",d=!1;e._select={},!0===n?(r="os",d=!0):"string"==typeof n?(r=n,d=!0):c.isPlainObject(n)&&(n.blurable!==u&&(a=n.blurable),n.info!==u&&(l=n.info),n.items!==u&&(o=n.items),n.style!==u&&(r=n.style,d=!0),n.selector!==u&&(i=n.selector),n.className!==u)&&(s=n.className),t.select.selector(i),t.select.items(o),t.select.style(r),t.select.blurable(a),t.select.info(l),e._select.className=s,c.fn.dataTable.ext.order["select-checkbox"]=function(e,t){return this.api().column(t,{order:"index"}).nodes().map(function(t){return"row"===e._select.items?c(t).parent().hasClass(e._select.className):"cell"===e._select.items&&c(t).hasClass(e._select.className)})},!d&&c(t.table().node()).hasClass("selectable")&&t.select.style("os")},c.each([{type:"row",prop:"aoData"},{type:"column",prop:"aoColumns"}],function(t,i){g.ext.selector[i.type].push(function(t,e,n){var o,r=[];if((e=e.selected)===u)return n;for(var a=0,l=n.length;a<l;a++)o=t[i.prop][n[a]],(!0===e&&!0===o._select_selected||!1===e&&!o._select_selected)&&r.push(n[a]);return r})}),g.ext.selector.cell.push(function(t,e,n){var o,r=[];if((e=e.selected)===u)return n;for(var a=0,l=n.length;a<l;a++)o=t.aoData[n[a].row],(!0!==e||!o._selected_cells||!0!==o._selected_cells[n[a].column])&&(!1!==e||o._selected_cells&&o._selected_cells[n[a].column])||r.push(n[a]);return r});var e=g.Api.register,o=g.Api.registerPlural;e("select()",function(){return this.iterator("table",function(t){g.select.init(new g.Api(t))})}),e("select.blurable()",function(e){return e===u?this.context[0]._select.blurable:this.iterator("table",function(t){t._select.blurable=e})}),e("select.info()",function(e){return d===u?this.context[0]._select.info:this.iterator("table",function(t){t._select.info=e})}),e("select.items()",function(e){return e===u?this.context[0]._select.items:this.iterator("table",function(t){t._select.items=e,s(new g.Api(t),"selectItems",[e])})}),e("select.style()",function(e){return e===u?this.context[0]._select.style:this.iterator("table",function(o){if(o._select.style=e,!o._select_init){var n=new g.Api(o);o.aoRowCreatedCallback.push({fn:function(t,e,n){for((e=o.aoData[n])._select_selected&&c(t).addClass(o._select.className),t=0,n=o.aoColumns.length;t<n;t++)(o.aoColumns[t]._select_selected||e._selected_cells&&e._selected_cells[t])&&c(e.anCells[t]).addClass(o._select.className)},sName:"select-deferRender"}),n.on("preXhr.dt.dtSelect",function(){var t=n.rows({selected:!0}).ids(!0).filter(function(t){return t!==u}),e=n.cells({selected:!0}).eq(0).map(function(t){var e=n.row(t.row).id(!0);return e?{row:e,column:t.column}:u}).filter(function(t){return t!==u});n.one("draw.dt.dtSelect",function(){n.rows(t).select(),e.any()&&e.each(function(t){n.cells(t.row,t.column).select()})})}),n.on("draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt info.dt",function(){d(n)}),n.on("destroy.dtSelect",function(){r(n),n.off(".dtSelect")})}var t=new g.Api(o);r(t),"api"!==e&&a(t),s(new g.Api(o),"selectStyle",[e])})}),e("select.selector()",function(e){return e===u?this.context[0]._select.selector:this.iterator("table",function(t){r(new g.Api(t)),t._select.selector=e,"api"!==t._select.style&&a(new g.Api(t))})}),o("rows().select()","row().select()",function(t){var n=this;return!1===t?this.deselect():(this.iterator("row",function(t,e){h(t),t.aoData[e]._select_selected=!0,c(t.aoData[e].nTr).addClass(t._select.className)}),this.iterator("table",function(t,e){s(n,"select",["row",n[e]],!0)}),this)}),o("columns().select()","column().select()",function(t){var n=this;return!1===t?this.deselect():(this.iterator("column",function(t,e){h(t),t.aoColumns[e]._select_selected=!0;var n=new g.Api(t).column(e);c(n.header()).addClass(t._select.className),c(n.footer()).addClass(t._select.className),n.nodes().to$().addClass(t._select.className)}),this.iterator("table",function(t,e){s(n,"select",["column",n[e]],!0)}),this)}),o("cells().select()","cell().select()",function(t){var n=this;return!1===t?this.deselect():(this.iterator("cell",function(t,e,n){h(t),(e=t.aoData[e])._selected_cells===u&&(e._selected_cells=[]),e._selected_cells[n]=!0,e.anCells&&c(e.anCells[n]).addClass(t._select.className)}),this.iterator("table",function(t,e){s(n,"select",["cell",n[e]],!0)}),this)}),o("rows().deselect()","row().deselect()",function(){var n=this;return this.iterator("row",function(t,e){t.aoData[e]._select_selected=!1,c(t.aoData[e].nTr).removeClass(t._select.className)}),this.iterator("table",function(t,e){s(n,"deselect",["row",n[e]],!0)}),this}),o("columns().deselect()","column().deselect()",function(){var n=this;return this.iterator("column",function(o,t){o.aoColumns[t]._select_selected=!1;var e=new g.Api(o),n=e.column(t);c(n.header()).removeClass(o._select.className),c(n.footer()).removeClass(o._select.className),e.cells(null,t).indexes().each(function(t){var e=o.aoData[t.row],n=e._selected_cells;!e.anCells||n&&n[t.column]||c(e.anCells[t.column]).removeClass(o._select.className)})}),this.iterator("table",function(t,e){s(n,"deselect",["column",n[e]],!0)}),this}),o("cells().deselect()","cell().deselect()",function(){var n=this;return this.iterator("cell",function(t,e,n){(e=t.aoData[e])._selected_cells[n]=!1,e.anCells&&!t.aoColumns[n]._select_selected&&c(e.anCells[n]).removeClass(t._select.className)}),this.iterator("table",function(t,e){s(n,"deselect",["cell",n[e]],!0)}),this});var b=0;return c.extend(g.ext.buttons,{selected:{text:n("selected","Selected"),className:"buttons-selected",init:function(t,e,n){var o=this;n._eventNamespace=".select"+b++,t.on(m(n),function(){var t=o.rows({selected:!0}).any()||o.columns({selected:!0}).any()||o.cells({selected:!0}).any();o.enable(t)}
2674),this.disable()},destroy:function(t,e,n){t.off(n._eventNamespace)}},selectedSingle:{text:n("selectedSingle","Selected single"),className:"buttons-selected-single",init:function(e,t,n){var o=this;n._eventNamespace=".select"+b++,e.on(m(n),function(){var t=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;o.enable(1===t)}),this.disable()},destroy:function(t,e,n){t.off(n._eventNamespace)}},selectAll:{text:n("selectAll","Select all"),className:"buttons-select-all",action:function(){this[this.select.items()+"s"]().select()}},selectNone:{text:n("selectNone","Deselect all"),className:"buttons-select-none",action:function(){h(this.settings()[0],!0)},init:function(e,t,n){var o=this;n._eventNamespace=".select"+b++,e.on(m(n),function(){var t=e.rows({selected:!0}).flatten().length+e.columns({selected:!0}).flatten().length+e.cells({selected:!0}).flatten().length;o.enable(0<t)}),this.disable()},destroy:function(t,e,n){t.off(n._eventNamespace)}}}),c.each(["Row","Column","Cell"],function(t,e){var r=e.toLowerCase();g.ext.buttons["select"+e+"s"]={text:n("select"+e+"s","Select "+r+"s"),className:"buttons-select-"+r+"s",action:function(){this.select.items(r)},init:function(t){var o=this;t.on("selectItems.dt.DT",function(t,e,n){o.active(n===r)})}}}),c(t).on("preInit.dt.dtSelect",function(t,e){"dt"===t.namespace&&g.select.init(new g.Api(e))}),g.select}),define("mockup-patterns-datatables",["jquery","pat-base","datatables.net","datatables.net-bs","datatables.net-buttons","datatables.net-buttons-colvis","datatables.net-buttons-flash","datatables.net-buttons-html5","datatables.net-buttons-print","datatables.net-buttons-bs","datatables.net-colreorder","datatables.net-rowreorder","datatables.net-fixedcolumns","datatables.net-fixedheader","datatables.net-select"],function(t,e,n){"use strict";return e.extend({name:"datatables",trigger:".pat-datatables",parser:"mockup",table:null,defaults:{},init:function(){this.table=this.$el.DataTable(this.options)}})}),require(["mockup-patterns-datatables"],function(){}),define("/home/_thet/data/dev/plone/buildout.coredev/src/plone.staticresources/src/plone/staticresources/static/plone-datatables.js",function(){});
2675//# sourceMappingURL=plone-datatables-compiled.min.js.map
2676
2677/* reset requirejs definitions so that people who
2678   put requirejs in legacy compilation do not get errors */
2679var _old_define = define;
2680var _old_require = require;
2681define = undefined;
2682require = undefined;
2683try{
2684
2685/* Resource (error cooking): ++plone++plone.app.discussion.javascripts/comments.js */
2686/******************************************************************************
2687 *
2688 * jQuery functions for the plone.app.discussion comment viewlet and form.
2689 *
2690 ******************************************************************************/
2691/* global require */
2692
2693if (require === undefined) {
2694  require = function(reqs, torun) {
2695    // jshint ignore:line
2696    "use strict";
2697    return torun(window.jQuery);
2698  };
2699}
2700
2701require([
2702  // jshint ignore:line
2703  "jquery"
2704], function($) {
2705  "use strict";
2706
2707  // This unnamed function allows us to use $ inside of a block of code
2708  // without permanently overwriting $.
2709  // http://docs.jquery.com/Using_jQuery_with_Other_Libraries
2710  /**************************************************************************
2711   * Create a reply-to-comment form right beneath the form that is passed to
2712   * the function. We do this by copying the regular comment form and
2713   * adding a hidden in_reply_to field to the form.
2714   **************************************************************************/
2715  $.createReplyForm = function(comment_div) {
2716    var comment_id = comment_div.attr("id");
2717
2718    var reply_button = comment_div.find(".reply-to-comment-button");
2719
2720    /* Clone the reply div at the end of the page template that contains
2721     * the regular comment form.
2722     */
2723    var reply_div = $("#commenting").clone(true);
2724
2725    /* Remove the ReCaptcha JS code before appending the form. If not
2726     * removed, this causes problems
2727     */
2728    reply_div
2729      .find("#formfield-form-widgets-captcha")
2730      .find("script")
2731      .remove();
2732
2733    /* Insert the cloned comment form right after the reply button of the
2734     * current comment.
2735     */
2736    reply_div.appendTo(comment_div).css("display", "none");
2737
2738    /* Remove id='commenting' attribute, since we use it to uniquely define
2739           the main reply form. */
2740    // Still belongs to class='reply'
2741    reply_div.removeAttr("id");
2742
2743    /* Hide the reply button (only hide, because we may want to show it
2744     * again if the user hits the cancel button).
2745     */
2746    $(reply_button).css("display", "none");
2747
2748    /* Fetch the reply form inside the reply div */
2749    var reply_form = reply_div.find("form");
2750
2751    /* Change the id of the textarea of the reply form
2752     * To avoid conflict later between textareas with same id 'form-widgets-comment-text' while implementing a seperate instance of TinyMCE
2753     * */
2754    reply_form
2755      .find("#formfield-form-widgets-comment-text")
2756      .attr("id", "formfield-form-widgets-new-textarea" + comment_id);
2757    reply_form
2758      .find("#form-widgets-comment-text")
2759      .attr("id", "form-widgets-new-textarea" + comment_id);
2760
2761    /* Populate the hidden 'in_reply_to' field with the correct comment
2762           id */
2763    reply_form.find('input[name="form.widgets.in_reply_to"]').val(comment_id);
2764
2765    /* Add a remove-reply-to-comment Javascript function to remove the
2766           form */
2767    var cancel_reply_button = reply_div.find(".cancelreplytocomment");
2768    cancel_reply_button.attr("id", comment_id);
2769
2770    /* Show the cancel buttons. */
2771    reply_form
2772      .find('input[name="form.buttons.cancel"]')
2773      .css("display", "inline");
2774
2775    /* Show the reply layer with a slide down effect */
2776    reply_div.slideDown("slow");
2777
2778    /* Show the cancel button in the reply-to-comment form */
2779    cancel_reply_button.css("display", "inline");
2780  };
2781
2782  /**************************************************************************
2783   * Remove all error messages and field values from the form that is passed
2784   * to the function.
2785   **************************************************************************/
2786  $.clearForm = function(form_div) {
2787    form_div.find(".error").removeClass("error");
2788    form_div.find(".fieldErrorBox").remove();
2789    form_div.find('input[type="text"]').attr("value", "");
2790    form_div.find("textarea").attr("value", "");
2791    /* XXX: Clean all additional form extender fields. */
2792  };
2793
2794  function init_comment_eventhandler () {
2795      /**********************************************************************
2796       * Transmit a single comment.
2797       **********************************************************************/
2798      $('input[name="form.button.TransmitComment"]').on("click", function(e) {
2799        e.preventDefault();
2800        var trigger = this;
2801        var form = $(this).parents("form");
2802        var data = $(form).serialize();
2803        var form_url = $(form).attr("action");
2804        var comment_id = $(this).parents(".comment").attr("id");
2805        $.ajax({
2806          type: "GET",
2807          url: form_url,
2808          data: data,
2809          context: trigger,
2810          success: function(msg) {
2811              let url = location.href;
2812              $(this).parents(".comment").load(
2813                // loading child nodes is not enough,
2814                // class attributes are needed for visualization of workflow_state
2815                url + " #" + comment_id + ".comment",
2816                function() {
2817                  $(this).find(".comment").unwrap();
2818                  init_comment_eventhandler();
2819                  $(".pat-plone-modal").patPloneModal();
2820                }
2821              );
2822          },
2823          error: function(msg) {
2824            return true;
2825          }
2826        });
2827        return false;
2828      });
2829
2830      /**********************************************************************
2831       * Edit a comment
2832       **********************************************************************/
2833      if ($.fn.prepOverlay) {
2834        $('form[name="edit"]').prepOverlay({
2835          cssclass: "overlay-edit-comment",
2836          width: "60%",
2837          subtype: "ajax",
2838          filter: "#content>*"
2839        });
2840      }
2841
2842      /**********************************************************************
2843       * Delete a comment and its answers.
2844       **********************************************************************/
2845      $('input[name="form.button.DeleteComment"]').on("click", function(e) {
2846        e.preventDefault();
2847        var trigger = this;
2848        var form = $(this).parents("form");
2849        var data = $(form).serialize();
2850        var form_url = $(form).attr("action");
2851        $.ajax({
2852          type: "POST",
2853          url: form_url,
2854          data: data,
2855          context: $(trigger).parents(".comment"),
2856          success: function(data) {
2857            // jshint ignore:line
2858            var comment = $(this);
2859            var clss = comment.attr("class");
2860            // remove replies
2861            var treelevel = parseInt(
2862              clss[clss.indexOf("replyTreeLevel") + "replyTreeLevel".length],
2863              10
2864            );
2865            // selector for all the following elements of lower level
2866            var selector = ".replyTreeLevel" + treelevel;
2867            for (var i = 0; i < treelevel; i++) {
2868              selector += ", .replyTreeLevel" + i;
2869            }
2870            comment.nextUntil(selector).each(function() {
2871              $(this).fadeOut("fast", function() {
2872                $(this).remove();
2873              });
2874            });
2875            // Add delete button to the parent
2876            var parent = comment.prev(
2877              '[class*="replyTreeLevel' + (treelevel - 1) + '"]'
2878            );
2879            parent.find('form[name="delete"]').css("display", "inline");
2880            // remove comment
2881            $(this).fadeOut("fast", function() {
2882              $(this).remove();
2883            });
2884          },
2885          error: function(req, error) {
2886            // jshint ignore:line
2887            return true;
2888          }
2889        });
2890        return false;
2891      });
2892  };
2893
2894  $(document).ready(function() {
2895    init_comment_eventhandler();
2896
2897    /**********************************************************************
2898     * If the user has hit the reply button of a reply-to-comment form
2899     * (form was submitted with a value for the 'in_reply_to' field in the
2900     * request), create a reply-to-comment form right under this comment.
2901     **********************************************************************/
2902    var post_comment_div = $("#commenting");
2903    var in_reply_to_field = post_comment_div.find(
2904      'input[name="form.widgets.in_reply_to"]'
2905    );
2906    if (in_reply_to_field.length !== 0 && in_reply_to_field.val() !== "") {
2907      var current_reply_id = "#" + in_reply_to_field.val();
2908      var current_reply_to_div = $(".discussion").find(current_reply_id);
2909      $.createReplyForm(current_reply_to_div);
2910      $.clearForm(post_comment_div);
2911    }
2912
2913    /**********************************************************************
2914     * If the user hits the 'reply' button of an existing comment, create a
2915     * reply form right beneath this comment.
2916     **********************************************************************/
2917    $(".reply-to-comment-button").bind("click", function(e) {
2918      // jshint ignore:line
2919      var comment_div = $(this)
2920        .parents()
2921        .filter(".comment");
2922      $.createReplyForm(comment_div);
2923      $.clearForm(comment_div);
2924    });
2925
2926    /**********************************************************************
2927     * If the user hits the 'clear' button of an open reply-to-comment form,
2928     * remove the form and show the 'reply' button again.
2929     **********************************************************************/
2930    $("#commenting #form-buttons-cancel").bind("click", function(e) {
2931      e.preventDefault();
2932      var reply_to_comment_button = $(this)
2933        .parents()
2934        .filter(".comment")
2935        .find(".reply-to-comment-button");
2936
2937      /* Find the reply-to-comment form and hide and remove it again. */
2938      $.reply_to_comment_form = $(this)
2939        .parents()
2940        .filter(".reply");
2941      $.reply_to_comment_form.slideUp("slow", function() {
2942        $(this).remove();
2943      });
2944
2945      /* Show the reply-to-comment button again. */
2946      reply_to_comment_button.css("display", "inline");
2947    });
2948
2949    /**********************************************************************
2950     * By default, hide the reply and the cancel button for the regular add
2951     * comment form.
2952     **********************************************************************/
2953    $(".reply")
2954      .find('input[name="form.buttons.reply"]')
2955      .css("display", "none");
2956    $(".reply")
2957      .find('input[name="form.buttons.cancel"]')
2958      .css("display", "none");
2959
2960    /**********************************************************************
2961     * By default, show the reply button only when Javascript is enabled.
2962     * Otherwise hide it, since the reply functions only work with JS
2963     * enabled.
2964     **********************************************************************/
2965    $(".reply-to-comment-button").removeClass("hide");
2966  });
2967
2968});
2969
2970/* resource: ++plone++plone.app.event/event.js */
2971(function($){var eventedit={start_end_delta:1/24,$start_input:undefined,$start_container:undefined,$pickadate_starttime:undefined,$end_input:undefined,$end_container:undefined,$pickadate_endtime:undefined,$whole_day_input:undefined,$open_end_input:undefined,get_dom_element:function(sel,$container){var $el;if($container){$el=$(sel,$container);}else{$el=$(sel);}return $el.length?$el:undefined;},getDateTime:function(datetimewidget){var date,time,datetime,set_time;date=$('input[name="_submit"]:first',datetimewidget).prop('value');if(!date){return;}date=date.split('-');time=$('input[name="_submit"]:last',datetimewidget).prop('value');if(!time){set_time=true;time='00:00';}time=time.split(':');datetime=new Date(parseInt(date[0],10),parseInt(date[1],10)-1,parseInt(date[2],10),parseInt(time[0],10),parseInt(time[1],10));if(set_time){$('.pattern-pickadate-time',datetimewidget).pickatime('picker').set('select',datetime);}return datetime;},initStartEndDelta:function(start_container,end_container){var start_datetime=this.getDateTime(start_container);var end_datetime=this.getDateTime(end_container);if(!start_datetime||!end_datetime){return;}this.start_end_delta=(end_datetime-start_datetime)/1000/60;},updateEndDate:function(start_container,end_container){var start_date=this.getDateTime(start_container);if(!start_date){return;}var new_end_date=new Date(start_date);new_end_date.setMinutes(start_date.getMinutes()+this.start_end_delta);$('.pattern-pickadate-date',end_container).pickadate('picker').set('select',new_end_date);$('.pattern-pickadate-time',end_container).pickatime('picker').set('select',new_end_date);},validateEndDate:function(start_container,end_container){var start_datetime=this.getDateTime(start_container);var end_datetime=this.getDateTime(end_container);if(!start_datetime||!end_datetime){return;}if(end_datetime<start_datetime){start_container.addClass('error');}else{end_container.removeClass('error');}},show_hide_widget:function(widget,hide,fade){var $widget=$(widget);if(hide===true){if(fade===true){$widget.fadeOut();}else{$widget.hide();}}else{if(fade===true){$widget.fadeIn();}else{$widget.show();}}},event_listing_calendar_init:function(cal){if($().dateinput&&cal.length>0){var get_req_param,val;get_req_param=function(name){if(name===new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)').exec(window.location.search)){return decodeURIComponent(name[1]);}};val=get_req_param('date');if(val===undefined){val=new Date();}else{val=new Date(val);}cal.dateinput({selectors:true,trigger:true,format:'yyyy-mm-dd',yearRange:[-10,10],firstDay:1,value:val,change:function(){var value=this.getValue('yyyy-mm-dd');window.location.href='event_listing?mode=day&date='+value;}}).unbind('change').bind('onShow',function(){var trigger_offset=$(this).next().offset();$(this).data('dateinput').getCalendar().offset({top:trigger_offset.top+20,left:trigger_offset.left});});}},initilize_event:function(){var $start_container=this.$start_container,$end_container=this.$end_container,$pickadate_starttime=this.$pickadate_starttime,$pickadate_endtime=this.$pickadate_endtime,$o
2971pen_end_input=this.$open_end_input,$whole_day_input=this.$whole_day_input;if($whole_day_input.length>0){$whole_day_input.bind('change',function(e){this.show_hide_widget($pickadate_starttime,e.target.checked,true);this.show_hide_widget($pickadate_endtime,e.target.checked,true);}.bind(this));this.show_hide_widget($pickadate_starttime,$whole_day_input.get(0).checked,false);this.show_hide_widget($pickadate_endtime,$whole_day_input.get(0).checked,false);}if($open_end_input.length>0){$open_end_input.bind('change',function(e){this.show_hide_widget($end_container,e.target.checked,true);}.bind(this));this.show_hide_widget($end_container,$open_end_input.get(0).checked,false);}$start_container.on('focus','.picker__input',function(){this.initStartEndDelta($start_container,$end_container);}.bind(this));$start_container.on('change','.picker__input',function(){this.updateEndDate($start_container,$end_container);}.bind(this));$end_container.on('focus','.picker__input',function(){this.initStartEndDelta($start_container,$end_container);}.bind(this));$end_container.on('change','.picker__input',function(){this.validateEndDate($start_container,$end_container);}.bind(this));}};$(document).ready(function(){eventedit.$start_input=eventedit.get_dom_element('form input.event_start');if(!eventedit.$start_input){return;}eventedit.$end_input=eventedit.get_dom_element('form input.event_end');if(!eventedit.$end_input){return;}eventedit.$start_container=eventedit.$start_input.closest('div');eventedit.$end_container=eventedit.$end_input.closest('div');eventedit.$whole_day_input=eventedit.get_dom_element('form input.event_whole_day');eventedit.$open_end_input=eventedit.get_dom_element('form input.event_open_end');var interval=setInterval(function(){eventedit.$pickadate_starttime=!eventedit.$pickadate_starttime&&eventedit.get_dom_element('.pattern-pickadate-time-wrapper',eventedit.$start_container);eventedit.$pickadate_endtime=!eventedit.$pickadate_endtime&&eventedit.get_dom_element('.pattern-pickadate-time-wrapper',eventedit.$end_container);if(eventedit.$pickadate_starttime&&eventedit.$pickadate_endtime){clearInterval(interval);eventedit.initilize_event();}},100);eventedit.event_listing_calendar_init($('#event_listing_calendar'));});})(jQuery);
2972}catch(e){
2973    // log it
2974    if (typeof console !== "undefined"){
2975        console.log('Error loading javascripts!' + e);
2976    }
2977}finally{
2978    define = _old_define;
2979    require = _old_require;
2980}
2981
2982define("mockup-i18n",["jquery"],function(i){"use strict";return function(){var o=this;o.baseUrl=i("body").attr("data-i18ncatalogurl"),o.currentLanguage=i("html").attr("lang")||"en",1<o.currentLanguage.split("-").length&&(o.currentLanguage=o.currentLanguage.split("-")[0]+"_"+o.currentLanguage.split("-")[1].toUpperCase()),o.storage=null,o.catalogs={},o.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(o.storage=window.localStorage)}catch(e){}o.configure=function(e){for(var t in e)o[t]=e[t]},o._setCatalog=function(e,t,n){e in o.catalogs||(o.catalogs[e]={}),o.catalogs[e][t]=n},o._storeCatalog=function(e,t,n){var s=e+"-"+t;null!==o.storage&&null!==n&&(o.storage.setItem(s,JSON.stringify(n)),o.storage.setItem(s+"-updated",Date.now()))},o.getUrl=function(e,t){return o.baseUrl+"?domain="+e+"&language="+t},o.loadCatalog=function(t,n){if(void 0===n&&(n=o.currentLanguage),null!==o.storage){var e=t+"-"+n;if(e in o.storage&&Date.now()-parseInt(o.storage.getItem(e+"-updated"),10)<o.ttl){var s=JSON.parse(o.storage.getItem(e));return void o._setCatalog(t,n,s)}}o.baseUrl&&i.getJSON(o.getUrl(t,n),function(e){null!==e&&(o._setCatalog(t,n,e),o._storeCatalog(t,n,e))})},o.MessageFactory=function(r,a){return a=a||o.currentLanguage,function(e,t){var n,s,i;if(n=r in o.catalogs&&a in o.catalogs[r]&&e in o.catalogs[r][a]?o.catalogs[r][a][e]:e,t)for(i in t)t.hasOwnProperty(i)&&(s=new RegExp("\\$\\{"+i+"\\}","g"),n=n.replace(s,t[i]));return n}}}}),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";var e,i;function p(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)v(t,n)&&(e[n]=t[n]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return Yt(e,t,n,s,!0).utc()}function w(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invali
vendor: 10,923 bytes, line 2982
2982dFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=w(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function y(e){var t=m(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var r=p.momentProperties=[];function g(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=w(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++)l(i=t[s=r[n]])||(e[s]=i);return e}var t=!1;function k(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,p.updateOffset(this),t=!1)}function M(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=S(t)),n}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&D(e[s])!==D(t[s]))&&a++;return a+r}function Y(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,r){var a=!0;return f(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var s in e+="\n["+n+"] ",arguments[0])e+=s+": "+arguments[0][s]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}Y(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return r.apply(this,arguments)},r)}var s,O={};function T(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0)}function b(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,s=f({},e);for(n in t)v(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},f(s[n],e[n]),f(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)v(e,n)&&!v(t,n)&&u(e[n])&&(s[n]=f({},s[n]));return s}function P(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)v(e,t)&&n.push(t);return n};var W={};function C(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function L(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function U(e){var t,n,s={};for(n in e)v(e,n)&&(t=L(n))&&(s[t]=e[n]);return s}var R={};function H(e,t){R[e]=t}function F(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},E={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=A(t,e.localeData()),G[t]=G[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++)E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=b(r[t])?r[t].call(e,s):r[t];return n}}(t),G[t](e)):e.localeData().invalidDate()}function A(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(V.lastIndex=0;0<=n&&V.test(e);)e=e.replace(V,s),V.lastIndex=0,n-=1;return e}var z=/\d/,Z=/\d\d/,$=/\d{3}/,q=/\d{4}/,J=/[+-]?\d{6}/,B=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,se=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe={};function ue(e,n,s){oe[e]=b(n)?n:function(e,t){return e&&s?s:n}}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function he(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),d(n)&&(s=function(e,t){t[n]=D(e)}),t=0;t<e.length;t++)de[e[t]]=s}function ce(e,i){he(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var fe=0,me=1,_e=2,ye=3,ge=4,pe=5,ve=6,we=7,ke=8;function Me(e){return Se(e)?366:365}function Se(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),C("year","y"),H("year",1),ue("Y",se),ue("YY",B,Z),ue("YYYY",ee,q),ue("YYYYY",te,J),ue("YYYYYY",te,J),he(["YYYYY","YYYYYY"],fe),he("YYYY",function(e,t){t[fe]=2===e.length?p.parseTwoDigitYear(e):D(e)}),he("YY",function(e,t){t[fe]=p.parseTwoDigitYear(e)}),he("Y",function(e,t){t[fe]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3)};var De,Ye=Oe("FullYear",!0);function Oe(t,n){return function(e){return null!=e?(be(this,t,e),p.updateOffset(this,n),this):Te(this,t)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function be(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Se(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1==n?Se(e)?29:28:31-n%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),C("month","M"),H("month",8),ue("M",B),ue("MM",B,Z),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[me]=D(e)-1}),he(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[me]=i:w(n).invalidMonth=e});var Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,We="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ue(e){return null!=e?(Le(this,e),p.updateOffset(this,!0),this):Te(this,"Month")}var Re=ae,He=ae;function Fe(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=m([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=le(s[t]),i[t]=le(i[t]);for(t=0;t<24;t++)r[t]=le(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ne(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ve(e,t,n){var s=7+t-n;return-(7+Ne(e,0,s).getUTCDay()-t)%7+s-1}function Ge(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return a=o<=0?Me(r=e-1)+o:o>Me(e)?(r=e+1,o-Me(e)):(r=e,o),{year:r,dayOfYear:a}}function Ee(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ie(i=e.year()-1,t,n):a>Ie(e.year(),t,n)?(s=a-Ie(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ie(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Me(e)-s+i)/7}function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),H("week",5),H("isoWeek",5),ue("w",B),ue("ww",B,Z),ue("W",B),ue("WW",B,Z),ce(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=D(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),ce(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:w(n).invalidWeekday=e}),ce(["d","e","E"],function(e,t,n,s){t[s]=D(e)});var Ae="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=ae,qe=ae,Je=ae;function Be(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=le(o[t]),u[t]=le(u[t]),l[t]=le(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)}
vendor: 5,200 bytes, line 2982
2982),I("hmmss",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),C("hour","h"),H("hour",13),ue("a",Ke),ue("A",Ke),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,Z),ue("hh",B,Z),ue("kk",B,Z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),he(["H","HH"],ye),he(["k","kk"],function(e,t,n){var s=D(e);t[ye]=24===s?0:s}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ye]=D(e),w(n).bigHour=!0}),he("hmm",function(e,t,n){var s=e.length-2;t[ye]=D(e.substr(0,s)),t[ge]=D(e.substr(s)),w(n).bigHour=!0}),he("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ye]=D(e.substr(0,s)),t[ge]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),w(n).bigHour=!0}),he("Hmm",function(e,t,n){var s=e.length-2;t[ye]=D(e.substr(0,s)),t[ge]=D(e.substr(s))}),he("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ye]=D(e.substr(0,s)),t[ge]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var et,tt=Oe("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:We,monthsShort:Ce,week:{dow:0,doy:6},weekdays:Ae,weekdaysMin:Ze,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},st={},it={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!st[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),ot(t)}catch(e){}return st[e]}function ot(e,t){var n;return e&&((n=l(t)?lt(e):ut(e,t))?et=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function ut(e,t){if(null===t)return delete st[e],null;var n,s=nt;if(t.abbr=e,null!=st[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])s=st[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;s=n._config}return st[e]=new P(x(s,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ot(e),st[e]}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=rt(e[r]).split("-")).length,n=(n=rt(e[r+1]))?n.split("-"):null;0<t;){if(s=at(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}r++}return et}(e)}function dt(e){var t,n=e._a;return n&&-2===w(e).overflow&&(t=n[me]<0||11<n[me]?me:n[_e]<1||n[_e]>xe(n[fe],n[me])?_e:n[ye]<0||24<n[ye]||24===n[ye]&&(0!==n[ge]||0!==n[pe]||0!==n[ve])?ye:n[ge]<0||59<n[ge]?ge:n[pe]<0||59<n[pe]?pe:n[ve]<0||999<n[ve]?ve:-1,w(e)._overflowDayOfYear&&(t<fe||_e<t)&&(t=_e),w(e)._overflowWeeks&&-1===t&&(t=we),w(e)._overflowWeekday&&-1===t&&(t=ke),w(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(p.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[_e]&&null==e._a[me]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ht(t.GG,e._a[fe],Ee(Ot(),1,4).year),s=ht(t.W,1),((i=ht(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ee(Ot(),r,a);n=ht(t.gg,e._a[fe],l.year),s=ht(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r}s<1||s>Ie(n,r,a)?w(e)._overflowWeeks=!0:null!=u?w(e)._overflowWeekday=!0:(o=Ge(n,s,i,r,a),e._a[fe]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ht(e._a[fe],s[fe]),(e._dayOfYear>Me(r)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),n=Ne(r,0,e._dayOfYear),e._a[me]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ye]&&0===e._a[ge]&&0===e._a[pe]&&0===e._a[ve]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Ne:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(w(e).weekdayMismatch=!0)}}
vendor: 17,854 bytes, line 2982
2982var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,s,i,r,a,o=e._i,u=ft.exec(o)||mt.exec(o);if(u){for(w(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(u[1])){i=yt[t][0],s=!1!==yt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[3])){r=(u[2]||" ")+gt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!_t.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),St(e)}else e._isValid=!1}var wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var kt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e){var t,n,s,i=wt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var r=function(e,t,n,s,i,r){var a,o=[(a=parseInt(e,10),a<=49?2e3+a:a<=999?1900+a:a),Ce.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&o.push(parseInt(r,10)),o}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=r,s=e,(t=i[1])&&ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(w(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return kt[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i}(i[8],i[9],i[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function St(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],w(e).empty=!0;var t,n,s,i,r,a,o,u,l=""+e._i,d=l.length,h=0;for(s=A(e._f,e._locale).match(N)||[],t=0;t<s.length;t++)i=s[t],(n=(l.match((g=e,v(oe,y=i)?oe[y](g._strict,g._locale):new RegExp(le(y.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&w(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),h+=n.length),E[i]?(n?w(e).empty=!1:w(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&v(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&w(e).unusedTokens.push(i);w(e).charsLeftOver=d-h,0<l.length&&w(e).unusedInput.push(l),e._a[ye]<=12&&!0===w(e).bigHour&&0<e._a[ye]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[ye]=(c=e._locale,f=e._a[ye],null==(m=e._meridiem)?f:null!=c.meridiemHour?c.meridiemHour(f,m):(null!=c.isPM&&((_=c.isPM(m))&&f<12&&(f+=12),_||12!==f||(f=0)),f)),ct(e),dt(e)}else Mt(e);else vt(e);var c,f,m,_,y,g}function Dt(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||lt(e._l),null===r||void 0===a&&""===r?y({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),M(r)?new k(dt(r)):(h(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],St(t),_(t)&&(r+=w(t).charsLeftOver,r+=10*w(t).unusedTokens.length,w(t).score=r,(null==s||r<s)&&(s=r,n=t));f(e,n||t)}(e):a?St(e):l(n=(t=e)._i)?t._d=new Date(p.now()):h(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(s=t,null===(i=pt.exec(s._i))?(vt(s),!1===s._isValid&&(delete s._isValid,Mt(s),!1===s._isValid&&(delete s._isValid,p.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=c(n.slice(0),function(e){return parseInt(e,10)}),ct(t)):u(n)?function(e){if(!e._d){var t=U(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}(t):d(n)?t._d=new Date(n):p.createFromInputFallback(t),_(e)||(e._d=null),e))}function Yt(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new k(dt(Dt(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Ot(e,t,n,s){return Yt(e,t,n,s,!1)}p.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};var Tt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),bt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:y()});function xt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Wt(e){var t=U(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===De.call(Pt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Pt.length;++s)if(e[Pt[s]]){if(n)return!1;parseFloat(e[Pt[s]])!==D(e[Pt[s]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=lt(),this._bubble()}function Ct(e){return e instanceof Wt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ut(e,n){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+F(~~(e/60),2)+n+F(~~e%60,2)})}Ut("Z",":"),Ut("ZZ",""),ue("Z",re),ue("ZZ",re),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(re,e)});var Rt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n=(t||"").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+"").match(Rt)||["-",0,0],i=60*s[1]+D(s[2]);return 0===i?0:"+"===s[0]?i:-i}function Ft(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(M(e)||h(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),p.updateOffset(n,!1),n):Ot(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Vt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Gt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Et=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function It(e,t){var n,s,i,r,a,o,u=e,l=null;return Ct(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:d(e)?(u={},t?u[t]=e:u.milliseconds=e):(l=Gt.exec(e))?(n="-"===l[1]?-1:1,u={y:0,d:D(l[_e])*n,h:D(l[ye])*n,m:D(l[ge])*n,s:D(l[pe])*n,ms:D(Lt(1e3*l[ve]))*n}):(l=Et.exec(e))?(n="-"===l[1]?-1:1,u={y:jt(l[2],n),M:jt(l[3],n),w:jt(l[4],n),d:jt(l[5],n),h:jt(l[6],n),m:jt(l[7],n),s:jt(l[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(r=Ot(u.from),a=Ot(u.to),i=r.isValid()&&a.isValid()?(a=Ft(a,r),r.isBefore(a)?o=At(r,a):((o=At(a,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),s=new Wt(u),Ct(e)&&v(e,"_locale")&&(s._locale=e._locale),s}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function At(e,t){var n={};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 zt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(T(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,It(e="string"==typeof e?+e:e,t),s),this}}function Zt(e,t,n,s){var i=t._milliseconds,r=Lt(t._days),a=Lt(t._months);e.isValid()&&(s=null==s||s,a&&Le(e,Te(e,"Month")+a*n),r&&be(e,"Date",Te(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&p.updateOffset(e,r||a))}It.fn=Wt.prototype,It.invalid=function(){return It(NaN)};var $t=zt(1,"add"),qt=zt(-1,"subtract");function Jt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s)))||0}function Bt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=n("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)});function Xt(){return this._locale}var Kt=126227808e5;function en(e,t){return(e%t+t)%t}function tn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-Kt:new Date(e,t,n).valueOf()}function nn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-Kt:Date.UTC(e,t,n)}function sn(e,t){I(0,[e,e.length],0,t)}function rn(e,t,n,s,i){var r;return null==e?Ee(this,s,i).year:((r=Ie(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ge(e,t,n,s,i),a=Ne(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),ue("G",se),ue("g",se),ue("GG",B,Z),ue("gg",B,Z),ue("GGGG",ee,q),ue("gggg",ee,q),ue("GGGGG",te,J),ue("ggggg",te,J),ce(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=D(e)}),ce(["gg","GG"],function(e,t,n,s){t[s]=p.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),C("quarter","Q"),H("quarter",7),ue("Q",z),he("Q",function(e,t){t[me]=3*(D(e)-1)}),I("D",["DD",2],"Do","date"),C("date","D"),H("date",9),ue("D",B),ue("DD",B,Z),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],_e),he("Do",function(e,t){t[_e]=D(e.match(B)[0])});var an=Oe("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),H("dayOfYear",4),ue("DDD",K),ue("DDDD",$),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=D(e)}),I("m",["mm",2],0,"minute"),C("minute","m"),H("minute",14),ue("m",B),ue("mm",B,Z),he(["m","mm"],ge);var on=Oe("Minutes",!1);I("s",["ss",2],0,"second"),C("second","s"),H("second",15),ue("s",B),ue("ss",B,Z),he(["s","ss"],pe);var un,ln=Oe("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),H("millisecond",16),ue("S",K,z),ue("SS",K,Z),ue("SSS",K,$),un="SSSS";un.length<=9;un+="S")ue(un,ne);function dn(e,t){t[ve]=D(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")he(un,dn);var hn=Oe("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var cn=k.prototype;function fn(e){return e}cn.add=$t,cn.calendar=function(e,t){var n=e||Ot(),s=Ft(n,this).startOf("day"),i=p.calendarFormat(this,s)||"sameElse",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,Ot(n)))},cn.clone=function(){return new k(this)},cn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Ft(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=L(t)){case"year":r=Jt(this,s)/12;break;case"month":r=Jt(this,s);break;case"quarter":r=Jt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:S(r)},cn.endOf=function(e){var t;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?nn:tn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-en(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-en(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-en(t,1e3)-1}return this._d.setTime(t),p.updateOffset(this,!0),this},cn.format=function(e){e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},cn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?It({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.fromNow=function(e){return this.from(Ot(),e)},cn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?It({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.toNow=function(e){return this.to(Ot(),e)},cn.get=function(e){return b(this[e=L(e)])?this[e]():this},cn.invalidAt=function(){return w(this).overflow},cn.isAfter=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},cn.isBefore=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},cn.isBetween=function(e,t,n,s){var i=M(e)?e:Ot(e),r=M(t)?t:Ot(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n))},cn.isSame=function(e,t){var n,s=M(e)?e:Ot(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},cn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},cn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},cn.isValid=function(){return _(this)},cn.lang=Qt,cn.locale=Bt,cn.localeData=Xt,cn.max=bt,cn.min=Tt,cn.parsingFlags=function(){return f({},w(this))},cn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=U(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(b(this[e=L(e)]))return this[e](t);return this},cn.startOf=function(e){var t;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?nn:tn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=en(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=en(t,6e4);break;case"second":t=this._d.valueOf(),t-=en(t,1e3)}return this._d.setTime(t),p.updateOffset(this,!0),this},cn.subtract=qt,cn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},cn.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()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 4,459 bytes, line 2982
2982,cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=Ye,cn.isLeapYear=function(){return Se(this.year())},cn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},cn.month=Ue,cn.daysInMonth=function(){return xe(this.year(),this.month())},cn.week=cn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},cn.isoWeek=cn.isoWeeks=function(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},cn.weeksInYear=function(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)},cn.isoWeeksInYear=function(){return Ie(this.year(),1,4)},cn.date=an,cn.day=cn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},cn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},cn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7)},cn.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")},cn.hour=cn.hours=tt,cn.minute=cn.minutes=on,cn.second=cn.seconds=ln,cn.millisecond=cn.milliseconds=hn,cn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Nt(this);if("string"==typeof e){if(null===(e=Ht(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Nt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,It(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},cn.utc=function(e){return this.utcOffset(0,e)},cn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=Vt,cn.isUTC=Vt,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=n("dates accessor is deprecated. Use date instead.",an),cn.months=n("months accessor is deprecated. Use month instead",Ue),cn.years=n("years accessor is deprecated. Use year instead",Ye),cn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),cn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};
vendor: 13,145 bytes, line 2982
2982if(g(e,this),(e=Dt(e))._a){var t=e._isUTC?m(e._a):Ot(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var mn=P.prototype;function _n(e,t,n,s){var i=lt(),r=m().set(s,t);return i[n](r,e)}function yn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return _n(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=_n(e,s,n,"month");return i}function gn(e,t,n,s){"boolean"==typeof e?d(t)&&(n=t,t=void 0):(t=e,e=!1,d(n=t)&&(n=t,t=void 0)),t=t||"";var i,r=lt(),a=e?r._week.dow:0;if(null!=n)return _n(t,(n+a)%7,s,"day");var o=[];for(i=0;i<7;i++)o[i]=_n(t,(i+a)%7,s,"day");return o}mn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s},mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},mn.invalidDate=function(){return this._invalidDate},mn.ordinal=function(e){return this._ordinal.replace("%d",e)},mn.preparse=fn,mn.postformat=fn,mn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e)},mn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},mn.set=function(e){var t,n;for(n in e)b(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},mn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,a))?i:null:-1!==(i=De.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,a))?i:-1!==(i=De.call(this._longMonthsParse,a))?i:null:-1!==(i=De.call(this._longMonthsParse,a))?i:-1!==(i=De.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},mn.monthsRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},mn.monthsShortRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},mn.week=function(e){return Ee(e,this._week.dow,this._week.doy).week},mn.firstDayOfYear=function(){return this._week.doy},mn.firstDayOfWeek=function(){return this._week.dow},mn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},mn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},mn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},mn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=De.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,a))?i:-1!==(i=De.call(this._shortWeekdaysParse,a))?i:-1!==(i=De.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,a))?i:-1!==(i=De.call(this._weekdaysParse,a))?i:-1!==(i=De.call(this._minWeekdaysParse,a))?i:null:-1!==(i=De.call(this._minWeekdaysParse,a))?i:-1!==(i=De.call(this._weekdaysParse,a))?i:-1!==(i=De.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},mn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=n("moment.lang is deprecated. Use moment.locale instead.",ot),p.langData=n("moment.langData is deprecated. Use moment.localeData instead.",lt);var pn=Math.abs;function vn(e,t,n,s){var i=It(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function kn(e){return 4800*e/146097}function Mn(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var Dn=Sn("ms"),Yn=Sn("s"),On=Sn("m"),Tn=Sn("h"),bn=Sn("d"),xn=Sn("w"),Pn=Sn("M"),Wn=Sn("Q"),Cn=Sn("y");function Ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Ln("milliseconds"),Rn=Ln("seconds"),Hn=Ln("minutes"),Fn=Ln("hours"),Nn=Ln("days"),Vn=Ln("months"),Gn=Ln("years"),En=Math.round,In={ss:44,s:45,m:45,h:22,d:26,M:11},jn=Math.abs;function An(e){return(0<e)-(e<0)||+e}function zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=jn(this._milliseconds)/1e3,s=jn(this._days),i=jn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var c=h<0?"-":"",f=An(this._months)!==An(h)?"-":"",m=An(this._days)!==An(h)?"-":"",_=An(this._milliseconds)!==An(h)?"-":"";return c+"P"+(r?f+r+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||l||d?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var Zn=Wt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},Zn.add=function(e,t){return vn(this,e,t,1)},Zn.subtract=function(e,t){return vn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=L(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+kn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=Dn,Zn.asSeconds=Yn,Zn.asMinutes=On,Zn.asHours=Tn,Zn.asDays=bn,Zn.asWeeks=xn,Zn.asMonths=Pn,Zn.asQuarters=Wn,Zn.asYears=Cn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN},Zn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*wn(Mn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(kn(a+=S(n/24))),a-=wn(Mn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},Zn.clone=function(){return It(this)},Zn.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Un,Zn.seconds=Rn,Zn.minutes=Hn,Zn.hours=Fn,Zn.days=Nn,Zn.weeks=function(){return S(this.days()/7)},Zn.months=Vn,Zn.years=Gn,Zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,d,h=this.localeData(),c=(t=!e,n=h,s=It(this).abs(),i=En(s.as("s")),r=En(s.as("m")),a=En(s.as("h")),o=En(s.as("d")),u=En(s.as("M")),l=En(s.as("y")),(d=i<=In.ss&&["s",i]||i<In.s&&["ss",i]||r<=1&&["m"]||r<In.m&&["mm",r]||a<=1&&["h"]||a<In.h&&["hh",a]||o<=1&&["d"]||o<In.d&&["dd",o]||u<=1&&["M"]||u<In.M&&["MM",u]||l<=1&&["y"]||["yy",l])[2]=t,d[3]=0<+this,d[4]=n,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,d));return e&&(c=h.pastFuture(+this,c)),h.postformat(c)},Zn.toISOString=zn,Zn.toString=zn,Zn.toJSON=zn,Zn.locale=Bt,Zn.localeData=Xt,Zn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Zn.lang=Qt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ue("x",se),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(D(e))}),p.version="2.24.0",e=Ot,p.fn=cn,p.min=function(){return xt("isBefore",[].slice.call(arguments,0))},p.max=function(){return xt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=m,p.unix=function(e){return Ot(1e3*e)},p.months=function(e,t){return yn(e,t,"months")},p.isDate=h,p.locale=ot,p.invalid=y,p.duration=It,p.isMoment=M,p.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},p.parseZone=function(){return Ot.apply(null,arguments).parseZone()},p.localeData=lt,p.isDuration=Ct,p.monthsShort=function(e,t){return yn(e,t,"monthsShort")},p.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},p.defineLocale=ut,p.updateLocale=function(e,t){if(null!=t){var n,s,i=nt;null!=(s=at(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=st[e],st[e]=n,ot(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},p.locales=function(){return s(st)},p.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},p.normalizeUnits=L,p.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==In[e]&&(void 0===t?In[e]:(In[e]=t,"
2982s"===e&&(In.ss=t-1),!0))},p.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},p.prototype=cn,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},p}),define("mockup-patterns-moment",["jquery","pat-base","pat-registry","mockup-i18n","moment"],function(s,e,t,n,i){var r=(new n).currentLanguage,a=!1,o=[],u="ar-sa ar-tn ar az be bg bn bo br bs ca cs cv cy da de-at de dv el en-au en-ca en-gb en-ie en-nz eo es et eu fa fi fo fr-ca fr-ch fr fy gd gl he hi hr hu hy-am id is it ja jv ka kk km ko lb lo lt lv me mk ml mr ms-my ms my nb ne nl nn pl pt-br pt ro ru se si sk sl sq sr-cyrl sr sv sw ta te th tl-ph tlh tr tzl tzm-latn tzm uk uz vi zh-cn zh-tw";function l(e){return-1!==u.split(" ").indexOf(e)}return function(){if("en"!==r){var e=r.replace("_","-").toLowerCase();"en"!==(e=l(e=l(e)?e:e.split("-")[0])?e:"en")?require(["moment-url/"+e],function(){a=!0;for(var e=0;e<o.length;e++){o[e].init()}o=[]}):a=!0}else a=!0}(),e.extend({name:"moment",trigger:".pat-moment",parser:"mockup",moment_i18n_map:{no:"nb"},defaults:{selector:null,format:"LLL",setTitle:!1},convert:function(e){var t=this,n=e.attr("data-date");n||(n=s.trim(e.html()))&&"None"!==n&&e.attr("data-date",n),n&&"None"!==n&&(r in t.moment_i18n_map&&(r=t.moment_i18n_map[r]),i.locale([r,"en"]),(n=i(n)).isValid()&&(t.options.setTitle&&e.attr("title",n.format("LLLL")),(n="relative"===t.options.format?n.fromNow():"calendar"===t.options.format?n.calendar():n.format(t.options.format))&&e.html(n)))},init:function(){var e=this;a?e.options.selector?e.$el.find(e.options.selector).each(function(){e.convert(s(this))}):e.convert(e.$el):o.push(e)}})}),require(["mockup-patterns-moment"],function(){}),define("/home/_thet/data/dev/plone/buildout.coredev/src/plone.staticresources/src/plone/staticresources/static/plone-moment.js",function(){});
2983//# sourceMappingURL=plone-moment-compiled.min.js.map
2984define("mockup-patterns-autotoc",["jquery","pat-base"],function(a,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 o=this;o.$toc=a("<nav/>").addClass(o.options.classTOCName),o.options.prependTo?o.$toc.prependTo(o.options.prependTo):o.options.appendTo?o.$toc.appendTo(o.options.appendTo):o.$toc.prependTo(o.$el),o.options.className&&o.$el.addClass(o.options.className),a(o.options.section,o.$el).addClass(o.options.classSectionName);var r=o.$el.hasClass("autotabs"),n=null;a(o.options.levels,o.$el).each(function(t){var i=a(this),e=i.prop("id")?i.prop("id"):i.parents(o.options.section).prop("id");(!e||0<a("#"+e).length)&&(e=o.options.IDPrefix+o.name+"-"+t),window.location.hash==="#"+e&&(n=e),null===n&&i.hasClass(o.options.classActiveName)&&(n=e),i.data("navref",e),a("<a/>").appendTo(o.$toc).text(i.text()).attr("id",e).attr("href","#"+e).addClass(o.options.classLevelPrefixName+o.getLevel(i)).on("click",function(t,e){t.stopPropagation(),t.preventDefault(),e=e||{doScroll:!0,skipHash:!1};var n=a(this);o.$toc.children("."+o.options.classActiveName).removeClass(o.options.classActiveName),o.$el.children("."+o.options.classActiveName).removeClass(o.options.classActiveName),a(t.target).addClass(o.options.classActiveName),i.parents(o.options.section).addClass(o.options.classActiveName),!1!==e.doScroll&&o.options.scrollDuration&&i&&!r&&a("body,html").animate({scrollTop:i.offset().top},o.options.scrollDuration,o.options.scrollEasing),0!==o.$el.parents(".plone-modal").size()&&o.$el.trigger("resize.plone-modal.patterns"),a(this).trigger("clicked"),e.skipHash||window.history&&window.history.pushState&&window.history.pushState({},"","#"+n.attr("id"))}),i.data("autotoc-trigger-id",e)}),n?a("a#"+n).trigger("click",{doScroll:!0,skipHash:!0}):o.$toc.find("a").first().trigger("click",{doScroll:!1,skipHash:!0})},getLevel:function(n){var i=0;return a.each(this.options.levels.split(","),function(t,e){if(1===n.filter(e).size())return i=t+1,!1}),i}})}),define("mockup-utils",["jquery"],function(c){"use strict";function t(t){var n=this;return n.className="plone-loader",t=t||{},n.options=c.extend({},{backdrop:null,zIndex:10005},t),n.init=function(){n.$el=c("."+n.className),0===n.$el.length&&(n.$el=c("<div><div></div></div>"),n.$el.addClass(n.className).hide().appendTo("body"))},n.show=function(t){n.init(),n.$el.show();var e=n.options.zIndex;"function"==typeof e?e=Math.max(e(),10005):(e=10005,c(".plone-modal-wrapper,.plone-modal-backdrop").each(function(){e=Math.max(e,c(this).css("zIndex")||
298410005)}),e+=1),n.$el.css("zIndex",e),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}function i(t){return void 0===t&&(t="id"),t+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var e={get:function(t){if(window.localStorage){var e=window.localStorage[t];return"string"==typeof e?JSON.parse(e):void 0}},set:function(t,e){window.localStorage&&(window.localStorage[t]=JSON.stringify(e))}};return{bool:function(t){return"string"==typeof t&&(t=c.trim(t).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(t)},escapeHTML:function(t){return c("<div/>").text(t).html()},removeHTML:function(t){return t.replace(/<[^>]+>/gi,"")},featureSupport:{dragAndDrop:function(){return"draggable"in document.createElement("span")},fileApi:function(){return"undefined"!=typeof FileReader},history:function(){return!(!window.history||!window.history.pushState)}},generateId:i,getAuthenticator:function(){var t=c('input[name="_authenticator"]');return 0===t.length?0<(t=c('a[href*="_authenticator"]')).length?t.attr("href").split("_authenticator=")[1]:"":t.val()},getWindow:function(){var t=window;return t.parent!==window&&(t=t.parent),t},Loading:t,loading:new t,parseBodyTag:function(t){return c(/<body[^>]*>[^]*<\/body>/im.exec(t)[0].replace("<body","<div").replace("</body>","</div>")).eq(0).html()},QueryHelper:function(t){var l=this;return l.options=c.extend({},{pattern:null,vocabularyUrl:null,searchParam:"SearchableText",pathOperator:"plone.app.querystring.operation.string.path",attributes:["UID","Title","Description","getURL","portal_type"],batchSize:10,baseCriteria:[],sort_on:"is_folderish",sort_order:"reverse",pathDepth:1},t),l.pattern=l.options.pattern,void 0!==l.pattern&&null!==l.pattern||(l.pattern={browsing:!1,basePath:"/"}),l.options.url&&!l.options.vocabularyUrl?l.options.vocabularyUrl=l.options.url:l.pattern.vocabularyUrl&&(l.options.vocabularyUrl=l.pattern.vocabularyUrl),l.valid=Boolean(l.options.vocabularyUrl),l.getBatch=function(t){return{page:t||1,size:l.options.batchSize}},l.getCurrentPath=function(){var t,e=l.pattern;"function"==typeof(t=l.currentPath?l.currentPath:e.currentPath)&&(t=t());var n=t;return n=n||(e.basePath?e.basePath:e.options.basePath?e.options.basePath:"/")},l.getCriterias=function(t,e){void 0===e&&(e={});var n=[];return(e=c.extend({},{useBaseCriteria:!0,additionalCriterias:[]},e)).useBaseCriteria&&(n=l.options.baseCriteria.slice(0)),t&&(t+="*",n.push({i:l.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:t})),e.searchPath?n.push({i:"path",o:l.options.pathOperator,v:e.searchPath+"::"+l.options.pathDepth}):l.pattern.browsing&&n.push({i:"path",o:l.options.pathOperator,v:l.getCurrentPath()+"::"+l.options.pathDepth}),n=n.concat(e.additionalCriterias)},l.getQueryData=function(t,e){var n={query:JSON.stringify({criteria:l.getCriterias(t),sort_on:l.options.sort_on,sort_order:l.options.sort_order}),attributes:JSON.stringify(l.options.attributes)};return e&&(n.batch=JSON.stringify(l.getBatch(e))),n},l.getUrl=function(){var t=l.options.vocabularyUrl;return-1===t.indexOf("?")?t+="?":t+="&",t+c.param(l.getQueryData())},l.selectAjax=function(){return{url:l.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(t,e){return l.getQueryData(t,e)},results:function(t,e){var n=10*e<t.total;return{results:t.results,more:n}}}},l.search=function(t,e,n,i,o,r){void 0===o&&(o=!0),void 0===r&&(r="GET");var a=[];o&&(a=l.options.baseCriteria.slice(0)),a.push({i:t,o:e,v:n});var s={query:JSON.stringify({criteria:a}),attributes:JSON.stringify(l.options.attributes)};c.ajax({url:l.options.vocabularyUrl,dataType:"JSON",data:s,type:r,success:i})},l},setId:function(t,e){void 0===e&&(e="id");var n=t.attr("id");return n=void 0===n?i(e):n.replace(/\./g,"-"),t.attr("id",n),n},storage:e,createElementFromHTML:function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild}}}),define("mockup-patterns-contentloader",["jquery","pat-base","pat-logger","pat-registry","mockup-utils","underscore"],function(i,t,e,o,r,a){"use strict";var s=e.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")),e.$el.removeClass("loading-content"),e.$el.removeClass("content-load-error"),"immediate"===e.options.trigger?e._load():e.$el.on(e.options.trigger,function(t){t.preventDefault(),e._load()})},_load:function(){this.$el.addClass("loading-content"),this.options.url?this.loadRemote():this.loadLocal()},loadRemote:function(){var n=this;i.ajax({url:n.options.url,dataType:n.options.dataType,success:function(t){var e;if("html"===n.options.dataType)-1!==t.indexOf("<html")&&(t=r.parseBodyTag(t)),e=i("<div>"+t+"</div>");else if(-1!==n.options.dataType.indexOf("json")){t.constructor===Array&&1===t.length&&(t=t[0]);try{e=i(a.template(n.options.template)(t))}catch(t){return n.$el.removeClass("loading-content"),n.$el.addClass("content-load-error"),void s.warn("error rendering template. pat-contentloader will not work")}}null!==n.options.content&&(e=e.find(n.options.content)),n.loadLocal(e)},error:function(){n.$el.removeClass("loading-content"),n.$el.addClass("content-load-error")}})},loadLocal:function(t){var e=this;if(!t&&null===e.options.content)return e.$el.removeClass("loading-content"),e.$el.addClass("content-load-error"),void s.warn("No selector configured");var n=e.$el;if(null!==e.options.target&&0===(n=i(e.options.target)).size())return e.$el.removeClass("loading-content"),e.$el.addClass("content-load-error"),void s.warn("No target nodes found");(t=t||i(e.options.content).clone()).length?(t.show(),n.replaceWith(t),o.scan(t)):n.empty(),e.$el.removeClass("loading-content"),e.emit("loading-done")}})}),define("mockup-patterns-cookietrigger",["pat-base"],function(t){"use strict";return t.extend({name:"cookietrigger",trigger:".pat-cookietrigger",parser:"mockup",isCookiesEnabled:function(){var t="areYourCookiesEnabled=0";document.cookie=t;var e=document.cookie;return-1===e.indexOf(t)?0:(t="areYourCookiesEnabled=1",document.cookie=t,-1===(e=document.cookie).indexOf(t)?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-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-i18n",["jquery"],function(o){"use strict";return function(){var s=this;s.baseUrl=o("body").attr("data-i18ncatalogurl"),s.currentLanguage=o("html").attr("lang")||"en",1<s.currentLanguage.split("-").length&&(s.currentLanguage=s.currentLanguage.split("-")[0]+"_"+s.currentLanguage.split("-")[1].toUpperCase()),s.storage=null,s.catalogs={},s.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(s.storage=window.localStorage)}catch(t){}s.configure=function(t){for(var e in t)s[e]=t[e]},s._setCatalog=function(t,e,n){t in s.catalogs||(s.catalogs[t]={}),s.catalogs[t][e]=n},s._storeCatalog=function(t,e,n){var i=t+"-"+e;null!==s.storage&&null!==n&&(s.storage.setItem(i,JSON.stringify(n)),s.storage.setItem(i+"-updated",Date.now()))},s.getUrl=function(t,e){return s.baseUrl+"?domain="+t+"&language="+e},s.loadCatalog=function(e,n){if(void 0===n&&(n=s.currentLanguage),null!==s.storage){var t=e+"-"+n;if(t in s.storage&&Date.now()-parseInt(s.storage.getItem(t+"-updated"),10)<s.ttl){var i=JSON.parse(s.storage.getItem(t));return void s._setCatalog(e,n,i)}}s.baseUrl&&o.getJSON(s.getUrl(e,n),function(t){null!==t&&(s._setCatalog(e,n,t),s._storeCatalog(e,n,t))})},s.MessageFactory=function(r,a){return a=a||s.currentLanguage,function(t,e){var n,i,o;if(n=r in s.catalogs&&a in s.catalogs[r]&&t in s.catalogs[r][a]?s.catalogs[r][a][t]:t,e)for(o in e)e.hasOwnProperty(o)&&(i=new RegExp("\\$\\{"+o+"\\}","g"),n=n.replace(i,e[o]));return n}}}}),define("translate",["mockup-i18n"],function(i){"use strict";var o=null;return function(t,e){if(null===o){var n=new i;n.loadCatalog("widgets"),o=n.MessageFactory("widgets")}return o(t,e)}}),define("mockup-patterns-formunloadalert",["jquery","pat-base","translate"],function(o,t,e){"use strict";return t.extend({name:"formunloadalert",trigger:".pat-formunloadalert",parser:"mockup",_changed:!1,_suppressed:!1,defaults:{message:e("Discard changes? If you click OK, any changes you have made will be lost."),changingEvents:"change keyup paste",changingFields:"input,select,textarea,fileupload"},init:function(){var n=this;if(n.$el.is("form")){o(n.options.changingFields,n.$el).on(n.options.changingEvents,function(t){n._changed=!0});var i=n.$el.parents(".plone-modal");0!==i.size()?i.data("patternPloneModal").on("hide",function(t){var e=i.data("patternPloneModal");e&&(e._suppressHide=n._handleUnload.call(n,t))}):o(window).on("beforeunload",function(t){return n._handleUnload(t)}),n.$el.on("submit",function(t){n._suppressed=!0})}},_handleUnload:function(t){var e=this;if(e._suppressed)e._suppressed=!1;else if(e._changed){var n=e.options.message;return e._handleMsg(t,n),o(window).trigger("messageset"),n}},_handleMsg:function(t,e){(t||window.event).returnValue=e}})}),define("mockup-patterns-livesearch",["jquery","pat-base","underscore","translate"],function(a,t,s,l){"use strict";return t.extend({name:"livesearch",trigger:".pat-livesearch",parser:"mockup",timeout:null,active:!1,results:null,
2984selectedItem:-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(e){var o=this;o.active=!0,o.render(),o.$el.addClass("searching");var n=o.$el.serialize();void 0===e&&(e=1);var t=function(){var t=location.search,e=t.indexOf("sort_on");if(-1===e){var n=a("#search-results");return 0<n.length?n.attr("data-default-sort"):o.options.defaultSortOn}var i=t.substring(e);return i=(i=i.split("&")[0]).split("=")[1]}();a.ajax({url:o.options.ajaxUrl+"?"+n+"&page="+e+"&perPage="+o.options.perPage+"&sort_on="+t,dataType:"json"}).done(function(t){o.results=t,o.page=e,n!==o.$el.serialize()&&o.doSearch()}).fail(function(){o.results={items:[{url:"",title:l("Error"),description:l("There was an error searching…"),state:"error",error:!1}],total:1},o.page=1}).always(function(){o.active=!1,o.selectedItem=-1,o.$el.removeClass("searching"),o.render()})},render:function(){var i=this;if(i.$results.empty(),i.active?i.$results.append(a('<li class="searching">'+l("searching…")+"</li>")):null===i.results?i.$results.append(a('<li class="no-results no-search">'+l("enter search phrase")+"</li>")):0===i.results.total?i.$results.append(a('<li class="no-results">'+l("no results found")+"</li>")):i.$results.append(a('<li class="results-summary">'+l("found")+" "+i.results.total+" "+l("results")+"</li>")),null!==i.results){var o=s.template(i.options.itemTemplate);s.each(i.results.items,function(t,e){var n=a(o(a.extend({_t:l},t)));n.attr("data-url",t.url).on("click",function(){t.error||(window.location=t.url)}),e===i.selectedItem&&n.addClass("selected"),i.$results.append(n)});var t=[];if(1<i.page){var e=a('<a href="#" class="prev">'+l("Previous")+"</a>");e.click(function(t){i.disableHiding=!0,t.preventDefault(),i.doSearch(i.page-1)}),t.push(e)}if(i.page*i.options.perPage<i.results.total){var n=a('<a href="#" class="next">'+l("Next")+"</a>");n.click(function(t){i.disableHiding=!0,t.preventDefault(),i.doSearch(i.page+1)}),t.push(n)}if(0<t.length){var r=a('<li class="load-more"><div class="page">'+i.page+"</div></li>");r.prepend(t),i.$results.append(r)}}i.position()},position:function(){var t=this;t.$el.addClass("livesearch-active");var e=t.$input.position();t.$results.width(t.$el.outerWidth()),t.$results.css({top:e.top+t.$input.outerHeight(),left:e.left}),t.$results.show()},hide:function(){this.$results.hide(),this.$el.removeClass("livesearch-active")},init:function(){var n=this;n.$input=n.$el.find(n.options.inputSelector),n.$input.off("focusout").on("focusout",function(){setTimeout(function(){n.disableHiding?(n.disableHiding=!1,n.$input.focus()):n.hide()},200)}).off("focusin").on("focusin",function(){n.onceFocused?n.$results.is(":visible")||n.render():(n.onceFocused=!0,n.$input.val().length>=n.options.minimumInputLength&&n.doSearch())}).attr("autocomplete","off").off("keyup").on("keyup",function(t){var e=t.keyCode||t.which;if(27===e)return n.$input.val(""),void n.hide();if(n.results&&n.results.items&&0<n.results.items.length){if(13===e)return void(-1!==n.selectedItem&&(window.location=n.results.items[n.selectedItem].url));if(38===e)return void(-1!==n.selectedItem&&(n.selectedItem-=1,n.render()));if(40===e)return void(n.selectedItem<n.results.items.length&&(n.selectedItem+=1,n.render()))}null!==n.timeout&&(clearTimeout(n.timeout),n.timeout=null),n.active||(n.$input.val().length>=n.options.minimumInputLength?n.timeout=setTimeout(function(){n.doSearch()},n.options.quietMillis):(n.results=null,n.render()))}),a("#sorting-options a").click(function(t){t.preventDefault(),n.onceFocused=!1}),n.$results=a('<ul class="'+n.resultsClass+'"></ul>').hide().insertAfter(n.$input)}})}),define("mockup-patterns-markspeciallinks",["pat-base","jquery"],function(t,l){"use strict";return t.extend({name:"markspeciallinks",trigger:".pat-markspeciallinks",parser:"mockup",defaults:{external_links_open_new_window:!1,mark_special_links:!0},init:function(){var t,e,n,i,o,r,a=this,s=a.$el;"string"==typeof a.options.external_links_open_new_window?t="true"===a.options.external_links_open_new_window.toLowerCase():"boolean"==typeof a.options.external_links_open_new_window&&(t=a.options.external_links_open_new_window),"string"==typeof a.options.mark_special_links?e="true"===a.options.mark_special_links.toLowerCase():"boolean"==typeof a.options.mark_special_links&&(e=a.options.mark_special_links),n=window.location.protocol+"//"+window.location.host,i=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/,o=s,t&&o.find('a[href^="http"]:not(.link-plain):not([href^="'+n+'"])').attr("target","_blank").attr("rel","noopener"),e&&(o.find('a[href^="http:"]:not(.link-plain):not([href^="'+n+'"]):not(:has(img))').before('<i class="glyphicon link-external"></i>'),o.find('a[href]:not([href^="http:"]):not(.link-plain):not([href^="'+n+'"]):not(:has(img)):not([href^="#"])').each(function(){if(r=i.exec(l(this).attr("href"))){var t="glyphicon link-"+r[0];l(this).before('<i class="'+t+'"></i>')}}))}})}),define("mockup-patterns-backdrop",["jquery","pat-base"],function(t,e){"use strict";return e.extend({name:"backdrop",trigger:".pat-backdrop",parser:"mockup",defaults:{zIndex:null,opacity:.8,className:"plone-backdrop",classActiveName:"plone-backdrop-active",closeOnEsc:!0,closeOnClick:!0},init:function(){var n=this;n.$backdrop=t("> ."+n.options.className,n.$el),0===n.$backdrop.size()&&(n.$backdrop=t("<div/>").hide().appendTo(n.$el).addClass(n.options.className),null!==n.options.zIndex&&n.$backdrop.css("z-index",n.options.zIndex)),!0===n.options.closeOnEsc&&t(document).on("keydown",function(t,e){n.$el.is("."+n.options.classActiveName)&&27===t.keyCode&&n.hide()}),!0===n.options.closeOnClick&&n.$backdrop.on("click",function(){n.$el.is("."+n.options.classActiveName)&&n.hide()})},show:function(){var t=this;
2984t.$el.hasClass(t.options.classActiveName)||(t.emit("show"),t.$backdrop.css("opacity","0").show(),t.$el.addClass(t.options.classActiveName),t.$backdrop.animate({opacity:t.options.opacity},500),t.emit("shown"))},hide:function(){var t=this;t.$el.hasClass(t.options.classActiveName)&&(t.emit("hide"),t.$backdrop.animate({opacity:"0"},500).hide(),t.$el.removeClass(t.options.classActiveName),t.emit("hidden"))}})}),function(i,o){if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(t,e,n){i.Backbone=o(i,n,t,e)});else if("undefined"!=typeof exports){var t=require("underscore");o(i,exports,t)}else i.Backbone=o(i,{},i._,i.jQuery||i.Zepto||i.ender||i.$)}(this,function(t,s,k,e){var n=t.Backbone,i=[],o=i.slice;s.VERSION="1.1.2",s.$=e,s.noConflict=function(){return t.Backbone=n,this},s.emulateHTTP=!1,s.emulateJSON=!1;var r=s.Events={on:function(t,e,n){return p(this,"on",t,[e,n])&&e&&(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this})),this},once:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var i=this,o=k.once(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var i,o,r,a,s,l,c,u;if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(s=0,l=(a=t?[t]:k.keys(this._events)).length;s<l;s++)if(t=a[s],r=this._events[t]){if(this._events[t]=i=[],e||n)for(c=0,u=r.length;c<u;c++)o=r[c],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&a(n,e),i&&a(i,arguments),this},stopListening:function(t,e,n){var i=this._listeningTo;if(!i)return this;var o=!e&&!n;for(var r in n||"object"!=typeof e||(n=this),t&&((i={})[t._listenId]=t),i)(t=i[r]).off(e,n,this),(o||k.isEmpty(t._events))&&delete this._listeningTo[r];return this}},l=/\s+/,p=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(i));return!1}if(l.test(n)){for(var r=n.split(l),a=0,s=r.length;a<s;a++)t[e].apply(t,[r[a]].concat(i));return!1}return!0},a=function(t,e){var n,i=-1,o=t.length,r=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<o;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r);return;case 2:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r,a);return;case 3:for(;++i<o;)(n=t[i]).callback.call(n.ctx,r,a,s);return;default:for(;++i<o;)(n=t[i]).callback.apply(n.ctx,e);return}};k.each({listenTo:"on",listenToOnce:"once"},function(o,t){r[t]=function(t,e,n){var i=this._listeningTo||(this._listeningTo={});return n||"object"!=typeof e||(n=this),(i[t._listenId||(t._listenId=k.uniqueId("l"))]=t)[o](e,n,this),this}}),r.bind=r.on,r.unbind=r.off,k.extend(s,r);var $=s.Model=function(t,e){var n=t||{};e=e||{},this.cid=k.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=k.defaults({},n,k.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};k.extend($.prototype,r,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return k.clone(this.attributes)},sync:function(){return s.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return k.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var i,o,r,a,s,l,c,u;if(null==t)return this;if("object"==typeof t?(o=t,n=e):(o={})[t]=e,n=n||{},!this._validate(o,n))return!1;for(i in r=n.unset,s=n.silent,a=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=k.clone(this.attributes),this.changed={}),u=this.attributes,c=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]),o)e=o[i],k.isEqual(u[i],e)||a.push(i),k.isEqual(c[i],e)?delete this.changed[i]:this.changed[i]=e,r?delete u[i]:u[i]=e;
2984if(!s){a.length&&(this._pending=n);for(var p=0,d=a.length;p<d;p++)this.trigger("change:"+a[p],this,u[a[p]],n)}if(l)return this;if(!s)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,k.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,k.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!k.isEmpty(this.changed):k.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&k.clone(this.changed);var e,n=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)k.isEqual(i[o],e=t[o])||((n=n||{})[o]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return k.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?k.clone(e):{}).parse&&(e.parse=!0);var n=this,i=e.success;return e.success=function(t){if(!n.set(n.parse(t,e),e))return!1;i&&i(n,t,e),n.trigger("sync",n,t,e)},j(this,e),this.sync("read",this,e)},save:function(t,e,n){var i,o,r,a=this.attributes;if(null==t||"object"==typeof t?(i=t,n=e):(i={})[t]=e,n=k.extend({validate:!0},n),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;i&&n.wait&&(this.attributes=k.extend({},a,i)),void 0===n.parse&&(n.parse=!0);var s=this,l=n.success;return n.success=function(t){s.attributes=a;var e=s.parse(t,n);if(n.wait&&(e=k.extend(i||{},e)),k.isObject(e)&&!s.set(e,n))return!1;l&&l(s,t,n),s.trigger("sync",s,t,n)},j(this,n),"patch"==(o=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i),r=this.sync(o,this,n),i&&n.wait&&(this.attributes=a),r},destroy:function(e){e=e?k.clone(e):{};function n(){i.trigger("destroy",i,i.collection,e)}var i=this,o=e.success;if(e.success=function(t){(e.wait||i.isNew())&&n(),o&&o(i,t,e),i.isNew()||i.trigger("sync",i,t,e)},this.isNew())return e.success(),!1;j(this,e);var t=this.sync("delete",this,e);return e.wait||n(),t},url:function(){var t=k.result(this,"urlRoot")||k.result(this.collection,"url")||A();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},k.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=k.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,k.extend(e,{validationError:n})),!1)}});k.each(["keys","values","pairs","invert","pick","omit"],function(e){$.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.attributes),k[e].apply(k,t)}});var c=s.Collection=function(t,e){(e=e||{}).model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,k.extend({silent:!0},e))},T={add:!0,remove:!0,merge:!0},u={add:!0,remove:!1};k.extend(c.prototype,r,{model:$,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return s.sync.apply(this,arguments)},add:function(t,e){return this.set(t,k.extend({merge:!1},e,u))},remove:function(t,e){var n,i,o,r,a=!k.isArray(t);for(e=e||{},n=0,i=(t=a?[t]:k.clone(t)).length;n<i;n++)(r=t[n]=this.get(t[n]))&&(delete this._byId[r.id],delete this._byId[r.cid],o=this.indexOf(r),this.models.splice(o,1),this.length--,e.silent||(e.index=o,r.trigger("remove",r,this,e)),this._removeReference(r,e));return a?t[0]:t},set:function(t,e){(e=k.defaults({},e,T)).parse&&(t=this.parse(t,e));var n,i,o,r,a,s,l,c=!k.isArray(t);t=c?t?[t]:[]:k.clone(t);var u=e.at,p=this.model,d=this.comparator&&null==u&&!1!==e.sort,h=k.isString(this.comparator)?this.comparator:null,f=[],m=[],g={},v=e.add,y=e.merge,b=e.remove,w=!(d||!v||!b)&&[];for(n=0,i=t.length;n<i;n++){if(o=(a=t[n]||{})instanceof $?r=a:a[p.prototype.idAttribute||"id"],s=this.get(o))b&&(g[s.cid]=!0),y&&(a=a===r?r.attributes:a,e.parse&&(a=s.parse(a,e)),s.set(a,e),d&&!l&&s.hasChanged(h)&&(l=!0)),t[n]=s;else if(v){if(!(r=t[n]=this._prepareModel(a,e)))continue;f.push(r),this._addReference(r,e)}r=s||r,!w||!r.isNew()&&g[r.id]||w.push(r),g[r.id]=!0}if(b){for(n=0,i=this.length;n<i;++n)g[(r=this.models[n]).cid]||m.push(r);m.length&&this.remove(m,e)}
2984if(f.length||w&&w.length)if(d&&(l=!0),this.length+=f.length,null!=u)for(n=0,i=f.length;n<i;n++)this.models.splice(u+n,0,f[n]);else{w&&(this.models.length=0);var x=w||f;for(n=0,i=x.length;n<i;n++)this.models.push(x[n])}if(l&&this.sort({silent:!0}),!e.silent){for(n=0,i=f.length;n<i;n++)(r=f[n]).trigger("add",r,this,e);(l||w&&w.length)&&this.trigger("sort",this,e)}return c?t[0]:t},reset:function(t,e){e=e||{};for(var n=0,i=this.models.length;n<i;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,k.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,k.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,k.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(n,t){return k.isEmpty(n)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var e in n)if(n[e]!==t.get(e))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t=t||{},k.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(k.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return k.invoke(this.models,"get",t)},fetch:function(n){void 0===(n=n?k.clone(n):{}).parse&&(n.parse=!0);var i=n.success,o=this;return n.success=function(t){var e=n.reset?"reset":"set";o[e](t,n),i&&i(o,t,n),o.trigger("sync",o,t,n)},j(this,n),this.sync("read",this,n)},create:function(t,n){if(n=n?k.clone(n):{},!(t=this._prepareModel(t,n)))return!1;n.wait||this.add(t,n);var i=this,o=n.success;return n.success=function(t,e){n.wait&&i.add(t,n),o&&o(t,e,n)},t.save(null,n),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof $)return t;var n=new(((e=e?k.clone(e):{}).collection=this).model)(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){null!=(this._byId[t.cid]=t).id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});k.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],function(e){c.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.models),k[e].apply(k,t)}});k.each(["groupBy","countBy","sortBy","indexBy"],function(i){c.prototype[i]=function(e,t){var n=k.isFunction(e)?e:function(t){return t.get(e)};return k[i](this.models,n,t)}});var d=s.View=function(t){this.cid=k.uniqueId("view"),t=t||{},k.extend(this,k.pick(t,f)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},h=/^(\S+)\s*(.*)$/,f=["model","collection","el","id","attributes","className","tagName","events"];k.extend(d.prototype,r,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof s.$?t:s.$(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},delegateEvents:function(t){if(!(t=t||k.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(k.isFunction(n)||(n=this[t[e]]),n){var i=e.match(h),o=i[1],r=i[2];n=k.bind(n,this),o+=".delegateEvents"+this.cid,""===r?this.$el.on(o,n):this.$el.on(o,r,n
2984)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(k.result(this,"el"),!1);else{var t=k.extend({},k.result(this,"attributes"));this.id&&(t.id=k.result(this,"id")),this.className&&(t.class=k.result(this,"className"));var e=s.$("<"+k.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),s.sync=function(t,e,n){var i=g[t];k.defaults(n=n||{},{emulateHTTP:s.emulateHTTP,emulateJSON:s.emulateJSON});var o={type:i,dataType:"json"};if(n.url||(o.url=k.result(e,"url")||A()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),n.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){o.type="POST",n.emulateJSON&&(o.data._method=i);var r=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",i),r)return r.apply(this,arguments)}}"GET"===o.type||n.emulateJSON||(o.processData=!1),"PATCH"===o.type&&m&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=n.xhr=s.ajax(k.extend(o,n));return e.trigger("request",e,a,n),a};var m=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),g={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};s.ajax=function(){return s.$.ajax.apply(s.$,arguments)};var v=s.Router=function(t){(t=t||{}).routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},y=/\((.*?)\)/g,b=/(\(\?)?:\w+/g,w=/\*\w+/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;k.extend(v.prototype,r,{initialize:function(){},route:function(n,i,o){k.isRegExp(n)||(n=this._routeToRegExp(n)),k.isFunction(i)&&(o=i,i=""),o=o||this[i];var r=this;return s.history.route(n,function(t){var e=r._extractParameters(n,t);r.execute(o,e),r.trigger.apply(r,["route:"+i].concat(e)),r.trigger("route",i,e),s.history.trigger("route",r,i,e)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,e){return s.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=k.result(this,"routes");for(var t,e=k.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(x,"\\$&").replace(y,"(?:$1)?").replace(b,function(t,e){return e?t:"([^/?]+)"}).replace(w,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return k.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var _=s.History=function(){this.handlers=[],k.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},C=/^[#\/]|\s+$/g,S=/^\/+|\/+$/g,N=/msie [\w.]+/,E=/\/$/,O=/#.*$/;_.started=!1,k.extend(_.prototype,r,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(E,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(C,"")},start:function(t){if(_.started)throw new Error("Backbone.history has already been started");_.started=!0,this.options=k.extend({root:"/"},this.options,t),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 e=this.getFragment(),n=document.documentMode,i=N.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);if(this.root=("/"+this.root+"/").replace(S,"/"),i&&this._wantsHashChange){var o=s.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(e)}this._hasPushState?s.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?s.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=e;var r=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&r.hash&&(this.fragment=this.getHash().replace(C,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){s.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),_.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),k.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(t,e){if(!_.started)return!1;e&&!0!==e||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(O,""),this.fragment!==t){if(""===(this.fragment=t)&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),s.history=new _;$.extend=c.extend=v.extend=d.extend=_.extend=function(t,e){var n,i=this;n=t&&k.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},k.extend(n,i,e);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,t&&k.extend(n.prototype,t),n.__super__=i.prototype,n};var A=function(){throw new Error('A "url" property or function must be specified')},j=function(e,n){var i=n.error;
2984n.error=function(t){i&&i(e,t,n),e.trigger("error",e,t,n)}};return s}),define("mockup-router",["underscore","backbone"],function(s,t){"use strict";function l(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}return new(t.Router.extend({actions:[],redirects:{},addRoute:function(t,e,n,i,o,r){void 0===s.findWhere(this.patterns,{patternName:t,id:e})&&this.actions.push({patternName:t,id:e,callback:n,context:i,pathExp:o,expReplace:r});var a=new RegExp("("+l(t)+":"+l(e)+")");this.route(a,"handleRoute")},addRedirect:function(t,e){this.redirects[t]=e},handleRoute:function(t){var e=t.split(":"),n=e[0],i=e[1],o=s.findWhere(this.actions,{patternName:n,id:i});o&&o.callback.call(o.context)},redirect:function(){var n,i,o,r=window.parent.location.pathname;if(s.some(this.actions,function(t){if(t.pathExp&&(i=new RegExp(t.pathExp),r.match(i))){o="!/"+t.patternName+":"+t.id;var e="";return t.expReplace&&(e=t.expReplace),n=r.replace(i,e),!0}},this),void 0===o)for(var t in this.redirects)if(i=new RegExp(t),r.match(i)){o="!/"+this.redirects[t],n=r.replace(i,"");break}void 0!==o&&this._changeLocation.apply(this,[n,o])},_changeLocation:function(t,e){window.parent.location.hash=e,window.parent.location.pathname=t},start:function(){t.history.start()},reset:function(){this.actions=[]}}))}),function(n){"function"==typeof define&&define.amd?define("jquery.form",["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e),e}:n(jQuery)}(function(M){"use strict";var h=/\r?\n/g,$={};$.fileapi=void 0!==M('<input type="file">').get(0).files,$.formdata=void 0!==window.FormData;var P=!!M.fn.prop;function r(t){var e=t.data;t.isDefaultPrevented()||(t.preventDefault(),M(t.target).closest("form").ajaxSubmit(e))}function a(t){var e=t.target,n=M(e);if(!n.is("[type=submit],[type=image]")){var i=n.closest("[type=submit]");if(0===i.length)return;e=i[0]}var o=e.form;if("image"===(o.clk=e).type)if(void 0!==t.offsetX)o.clk_x=t.offsetX,o.clk_y=t.offsetY;else if("function"==typeof M.fn.offset){var r=n.offset();o.clk_x=t.pageX-r.left,o.clk_y=t.pageY-r.top}else o.clk_x=t.pageX-e.offsetLeft,o.clk_y=t.pageY-e.offsetTop;setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function L(){if(M.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)}}M.fn.attr2=function(){if(!P)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},M.fn.ajaxSubmit=function(A,t,e,n){if(!this.length)return L("ajaxSubmit: skipping submit process - no element selected"),this;var j,i,o,D=this;"function"==typeof A?A={success:A}:"string"==typeof A||!1===A&&0<arguments.length?(A={url:A,data:t,dataType:e},"function"==typeof n&&(A.success=n)):void 0===A&&(A={}),j=A.method||A.type||this.attr2("method"),o=(o=(o="string"==typeof(i=A.url||this.attr2("action"))?M.trim(i):"")||window.location.href||"")&&(o.match(/^([^#]+)/)||[])[1],A=M.extend(!0,{url:o,success:M.ajaxSettings.success,type:j||M.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},A);var r={};if(this.trigger("form-pre-serialize",[this,A,r]),r.veto)return L("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(A.beforeSerialize&&!1===A.beforeSerialize(this,A))return L("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var a=A.traditional;void 0===a&&(a=M.ajaxSettings.traditional);var s,I=[],l=this.formToArray(A.semantic,I,A.filtering);if(A.data){var c=M.isFunction(A.data)?A.data(l):A.data;A.extraData=c,s=M.param(c,a)}if(A.beforeSubmit&&!1===A.beforeSubmit(l,this,A))return L("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[l,this,A,r]),r.veto)return L("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var u=M.param(l,a);s&&(u=u?u+"&"+s:s),"GET"===A.type.toUpperCase()?(A.url+=(0<=A.url.indexOf("?")?"&":"?")+u,A.data=null):A.data=u;var p=[];if(A.resetForm&&p.push(function(){D.resetForm()}),A.clearForm&&p.push(function(){D.clearForm(A.includeHidden)}),!A.dataType&&A.target){var d=A.success||function(){};p.push(function(t,e,n){var i=arguments,o=A.replaceTarget?"replaceWith":"html";M(A.target)[o](t).each(function(){d.apply(this,i)})})}
vendor: 9,938 bytes, line 2984
2984else A.success&&(M.isArray(A.success)?M.merge(p,A.success):p.push(A.success));if(A.success=function(t,e,n){for(var i=A.context||this,o=0,r=p.length;o<r;o++)p[o].apply(i,[t,e,n||D,D])},A.error){var h=A.error;A.error=function(t,e,n){var i=A.context||this;h.apply(i,[t,e,n,D])}}if(A.complete){var f=A.complete;A.complete=function(t,e){var n=A.context||this;f.apply(n,[t,e,D])}}var m=0<M("input[type=file]:enabled",this).filter(function(){return""!==M(this).val()}).length,g="multipart/form-data",v=D.attr("enctype")===g||D.attr("encoding")===g,y=$.fileapi&&$.formdata;L("fileAPI :"+y);var b,w=(m||v)&&!y;!1!==A.iframe&&(A.iframe||w)?A.closeKeepAlive?M.get(A.closeKeepAlive,function(){b=k(l)}):b=k(l):b=(m||v)&&y?function(t){for(var n=new FormData,e=0;e<t.length;e++)n.append(t[e].name,t[e].value);if(A.extraData){var i=function(t){var e,n,i=M.param(t,A.traditional).split("&"),o=i.length,r=[];for(e=0;e<o;e++)i[e]=i[e].replace(/\+/g," "),n=i[e].split("="),r.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return r}(A.extraData);for(e=0;e<i.length;e++)i[e]&&n.append(i[e][0],i[e][1])}A.data=null;var o=M.extend(!0,{},M.ajaxSettings,A,{contentType:!1,processData:!1,cache:!1,type:j||"POST"});A.uploadProgress&&(o.xhr=function(){var t=M.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(t){var e=0,n=t.loaded||t.position,i=t.total;t.lengthComputable&&(e=Math.ceil(n/i*100)),A.uploadProgress(t,n,i,e)},!1),t});o.data=null;var r=o.beforeSend;return o.beforeSend=function(t,e){A.formData?e.data=A.formData:e.data=n,r&&r.call(this,t,e)},M.ajax(o)}(l):M.ajax(A),D.removeData("jqxhr").data("jqxhr",b);for(var x=0;x<I.length;x++)I[x]=null;return this.trigger("form-submit-notify",[this,A]),this;function k(t){var e,n,u,p,r,d,h,f,i,o,m,g,a=D[0],v=M.Deferred();if(v.abort=function(t){f.abort(t)},t)for(n=0;n<I.length;n++)e=M(I[n]),P?e.prop("disabled",!1):e.removeAttr("disabled");(u=M.extend(!0,{},M.ajaxSettings,A)).context=u.context||u,r="jqFormIO"+(new Date).getTime();var s=a.ownerDocument,l=D.closest("body");if(u.iframeTarget?(o=(d=M(u.iframeTarget,s)).attr2("name"))?r=o:d.attr2("name",r):(d=M('<iframe name="'+r+'" src="'+u.iframeSrc+'" />',s)).css({position:"absolute",top:"-1000px",left:"-1000px"}),h=d[0],f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var e="timeout"===t?"timeout":"aborted";L("aborting upload... "+e),this.aborted=1;try{h.contentWindow.document.execCommand&&h.contentWindow.document.execCommand("Stop")}catch(t){}d.attr("src",u.iframeSrc),f.error=e,u.error&&u.error.call(u.context,f,e,t),p&&M.event.trigger("ajaxError",[f,u,e]),u.complete&&u.complete.call(u.context,f,e)}},(p=u.global)&&0==M.active++&&M.event.trigger("ajaxStart"),p&&M.event.trigger("ajaxSend",[f,u]),u.beforeSend&&!1===u.beforeSend.call(u.context,f,u))return u.global&&M.active--,v.reject(),v;if(f.aborted)return v.reject(),v;(i=a.clk)&&(o=i.name)&&!i.disabled&&(u.extraData=u.extraData||{},u.extraData[o]=i.value,"image"===i.type&&(u.extraData[o+".x"]=a.clk_x,u.extraData[o+".y"]=a.clk_y));var y=1,b=2;function w(e){var n=null;try{e.contentWindow&&(n=e.contentWindow.document)}catch(t){L("cannot get iframe.contentWindow document: "+t)}if(n)return n;try{n=e.contentDocument?e.contentDocument:e.document}catch(t){L("cannot get iframe.contentDocument: "+t),n=e.document}return n}var c=M("meta[name=csrf-token]").attr("content"),x=M("meta[name=csrf-param]").attr("content");function k(){var t=D.attr2("target"),e=D.attr2("action"),n=D.attr("enctype")||D.attr("encoding")||"multipart/form-data";a.setAttribute("target",r),j&&!/post/i.test(j)||a.setAttribute("method","POST"),e!==u.url&&a.setAttribute("action",u.url),u.skipEncodingOverride||j&&!/post/i.test(j)||D.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),u.timeout&&(g=setTimeout(function(){m=!0,S(y)},u.timeout));var i=[];try{if(u.extraData)for(var o in u.extraData)u.extraData.hasOwnProperty(o)&&(M.isPlainObject(u.extraData[o])&&u.extraData[o].hasOwnProperty("name")&&u.extraData[o].hasOwnProperty("value")?i.push(M('<input type="hidden" name="'+u.extraData[o].name+'">',s).val(u.extraData[o].value).appendTo(a)[0]):i.push(M('<input type="hidden" name="'+o+'">',s).val(u.extraData[o]).appendTo(a)[0]));u.iframeTarget||d.appendTo(l),h.attachEvent?h.attachEvent("onload",S):h.addEventListener("load",S,!1),setTimeout(function t(){try{var e=w(h).readyState;L("state = "+e),e&&"uninitialized"===e.toLowerCase()&&setTimeout(t,50)}catch(t){L("Server abort: ",t," (",t.name,")"),S(b),g&&clearTimeout(g),g=void 0}},15);try{a.submit()}catch(t){document.createElement("form").submit.apply(a)}}finally{a.setAttribute("action",e),a.setAttribute("enctype",n),t?a.setAttribute("target",t):D.removeAttr("target"),M(i).remove()}}x&&c&&(u.extraData=u.extraData||{},u.extraData[x]=c),u.forceSync?k():setTimeout(k,10);var $,T,_,C=50;function S(t){if(!f.aborted&&!_){if((T=w(h))||(L("cannot access response document"),t=b),t===y&&f)return f.abort("timeout"),void v.reject(f,"timeout");if(t===b&&f)return f.abort("server abort"),void v.reject(f,"error","server abort");if(T&&T.location.href!==u.iframeSrc||m){h.detachEvent?h.detachEvent("onload",S):h.removeEventListener("load",S,!1);var e,n="success";try{if(m)throw"timeout";var i="xml"===u.dataType||T.XMLDocument||M.isXMLDoc(T);if(L("isXml="+i),!i&&window.opera&&(null===T.body||!T.body.innerHTML)&&--C)return L("requeing onLoad callback, DOM not available"),void setTimeout(S,250);var o=T.body?T.body:T.documentElement;f.responseText=o?o.innerHTML:null,f.responseXML=T.XMLDocument?T.XMLDocument:T,i&&(u.dataType="xml"),f.getResponseHeader=function(t){return{"content-type":u.dataType}[t.toLowerCase()]},o&&(f.status=Number(o.getAttribute("status"))||f.status,f.statusText=o.getAttribute("statusText")||f.statusText);var r=(u.dataType||"").toLowerCase(),a=/(json|script|text)/.test(r);if(a||u.textarea){var s=T.getElementsByTagName("textarea")[0];if(s)f.responseText=s.value,f.status=Number(s.getAttribute("status"))||f.status,f.statusText=s.getAttribute("statusText")||f.statusText;else if(a){var l=T.getElementsByTagName("pre")[0],c=T.getElementsByTagName("body")[0];l?f.responseText=l.textContent?l.textContent:l.innerText:c&&(f.responseText=c.textContent?c.textContent:c.innerText)}}else"xml"===r&&!f.responseXML&&f.responseText&&(f.responseXML=N(f.responseText));try{$=O(f,r,u)}catch(t){n="parsererror",f.error=e=t||n}}catch(t){L("error caught: ",t),n="error",f.error=e=t||n}f.aborted&&(L("upload aborted"),n=null),f.status&&(n=200<=f.status&&f.status<300||304===f.status?"success":"error"),"success"===n?(u.success&&u.success.call(u.context,$,"success",f),v.resolve(f.responseText,"success",f),p&&M.event.trigger("ajaxSuccess",[f,u])):n&&(void 0===e&&(e=f.statusText),u.error&&u.error.call(u.context,f,n,e),v.reject(f,"error",e),p&&M.event.trigger("ajaxError",[f,u,e])),p&&M.event.trigger("ajaxComplete",[f,u]),p&&!--M.active&&M.event.trigger("ajaxStop"),u.complete&&u.complete.call(u.context,f,n),_=!0,u.timeout&&clearTimeout(g),setTimeout(function(){u.iframeTarget?d.attr("src",u.iframeSrc):d.remove(),f.responseXML=null},100)}}}var N=M.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!==e.documentElement.nodeName?e:null},E=M.parseJSON||function(t){return window.eval("("+t+")")},O=function(t,e,n){var i=t.getResponseHeader("content-type")||"",o=("xml"===e||!e)&&0<=i.indexOf("xml"),r=o?t.responseXML:t.responseText;return o&&"parsererror"===r.documentElement.nodeName&&M.error&&M.error("parsererror"),n&&n.dataFilter&&(r=n.dataFilter(r,e)),"string"==typeof r&&(("json"===e||!e)&&0<=i.indexOf("json")?r=E(r):("script"===e||!e)&&0<=i.indexOf("javascript")&&M.globalEval(r)),r};return v}},M.fn.ajaxForm=function(t,e,n,i){if(("string"==typeof t||!1===t&&0<arguments.length)&&(t={url:t,data:e,dataType:n},"function"==typeof i&&(t.success=i)),(t=t||{}).delegation=t.delegation&&M.isFunction(M.fn.on),t.delegation||0!==this.length)return t.delegation?(M(document).off("submit.form-plugin",this.selector,r).off("click.form-plugin",this.selector,a).on("submit.form-plugin",this.selector,t,r).on("click.form-plugin",this.selector,t,a),this):this.ajaxFormUnbind().on("submit.form-plugin",t,r).on("click.form-plugin",t,a);var o={s:this.selector,c:this.context};return!M.isReady&&o.s?(L("DOM not ready, queuing ajaxForm"),M(function(){M(o.s,o.c).ajaxForm(t)})):L("terminating; zero elements found by selector"+(M.isReady?"":" (DOM not ready)")),this},M.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},M.fn.formToArray=function(t,e,n){var i=[];if(0===this.length)return i;var o,r,a,s,l,c,u,p,d=this[0],h=this.attr("id"),f=t||void 0===d.elements?d.getElementsByTagName("*"):d.elements;if(f=f&&M.makeArray(f),h&&(t||/(Edge|Trident)\//.test(navigator.userAgent))&&(o=M(':input[form="'+h+'"]').get()).length&&(f=(f||[]).concat(o)),!f||!f.length)return i;for(M.isFunction(n)&&(f=M.map(f,n)),r=0,u=f.length;r<u;r++)if((s=(c=f[r]).name)&&!c.disabled)if(t&&d.clk&&"image"===c.type)d.clk===c&&(i.push({name:s,value:M(c).val(),type:c.type}),i.push({name:s+".x",value:d.clk_x},{name:s+".y",value:d.clk_y}));else if((l=M.fieldValue(c,!0))&&l.constructor===Array)for(e&&e.push(c),a=0,p=l.length;a<p;a++)i.push({name:s,value:l[a]});else if($.fileapi&&"file"===c.type){e&&e.push(c);var m=c.files;if(m.length)for(a=0;a<m.length;a++)i.push({name:s,value:m[a],type:c.type});else i.push({name:s,value:"",type:c.type})}else null!=l&&(e&&e.push(c),i.push({name:s,value:l,type:c.type,required:c.required}));if(!t&&d.clk){var g=M(d.clk),v=g[0];(s=v.name)&&!v.disabled&&"image"===v.type&&(i.push({name:s,value:g.val()}),i.push({name:s+".x",value:d.clk_x},{name:s+".y",value:d.clk_y}))}return i}
2984,M.fn.formSerialize=function(t){return M.param(this.formToArray(t))},M.fn.fieldSerialize=function(o){var r=[];return this.each(function(){var t=this.name;if(t){var e=M.fieldValue(this,o);if(e&&e.constructor===Array)for(var n=0,i=e.length;n<i;n++)r.push({name:t,value:e[n]});else null!=e&&r.push({name:this.name,value:e})}}),M.param(r)},M.fn.fieldValue=function(t){for(var e=[],n=0,i=this.length;n<i;n++){var o=this[n],r=M.fieldValue(o,t);null==r||r.constructor===Array&&!r.length||(r.constructor===Array?M.merge(e,r):e.push(r))}return e},M.fieldValue=function(t,e){var n=t.name,i=t.type,o=t.tagName.toLowerCase();if(void 0===e&&(e=!0),e&&(!n||t.disabled||"reset"===i||"button"===i||("checkbox"===i||"radio"===i)&&!t.checked||("submit"===i||"image"===i)&&t.form&&t.form.clk!==t||"select"===o&&-1===t.selectedIndex))return null;if("select"!==o)return M(t).val().replace(h,"\r\n");var r=t.selectedIndex;if(r<0)return null;for(var a=[],s=t.options,l="select-one"===i,c=l?r+1:s.length,u=l?r:0;u<c;u++){var p=s[u];if(p.selected&&!p.disabled){var d=p.value;if(d=d||(p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value),l)return d;a.push(d)}}return a},M.fn.clearForm=function(t){return this.each(function(){M("input,select,textarea",this).clearFields(t)})},M.fn.clearFields=M.fn.clearInputs=function(n){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,e=this.tagName.toLowerCase();i.test(t)||"textarea"===e?this.value="":"checkbox"===t||"radio"===t?this.checked=!1:"select"===e?this.selectedIndex=-1:"file"===t?/MSIE/.test(navigator.userAgent)?M(this).replaceWith(M(this).clone(!0)):M(this).val(""):n&&(!0===n&&/hidden/.test(t)||"string"==typeof n&&M(this).is(n))&&(this.value="")})},M.fn.resetForm=function(){return this.each(function(){var e=M(this),t=this.tagName.toLowerCase();switch(t){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var n=e.parents("select");return n.length&&n[0].multiple?"option"===t?this.selected=this.defaultSelected:e.find("option").resetForm():n.resetForm(),!0;case"select":return e.find("option").each(function(t){if(this.selected=this.defaultSelected,this.defaultSelected&&!e[0].multiple)return e[0].selectedIndex=t,!1}),!0;case"label":var i=M(e.attr("for")),o=e.find("input,select,textarea");return i[0]&&o.unshift(i[0]),o.resetForm(),!0;case"form":return"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset(),!0;default:return e.find("form,input,label,select,textarea").resetForm(),!0}})},M.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},M.fn.selected=function(n){return void 0===n&&(n=!0),this.each(function(){var t=this.type;if("checkbox"===t||"radio"===t)this.checked=n;else if("option"===this.tagName.toLowerCase()){var e=M(this).parent("select");n&&e[0]&&"select-one"===e[0].type&&e.find("option").selected(!1),this.selected=n}})},M.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(p,l,t,i,o,e,r,a){"use strict";return t.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"], .formControls > button',content:"#content",automaticallyAddButtonActions:!0,loadLinksWithinModal:!0,prependContent:".portalMessage, #global_statusmessage",onRender:null,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 %>">
2984  <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, .alert-danger",formFieldError:".field.error",onSuccess:null,onError:null,onFormError:null,onTimeout:null,redirectOnResponse:!1,redirectToUrl:function(t,e,n){var i;return(i=/<body.*data-view-url=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length?i[1].split('"')[0]:(i=/<body.*data-base-url=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length?i[1].split('"')[0]:(i=/<base.*href=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length?i[1]:""}},routerOptions:{id:null,pathExp:null},form:function(t){var a=this,s=a.$modal;a.options.automaticallyAddButtonActions&&(t[a.options.buttons]={}),t.a={},p.each(t,function(t,n){var e=l.union(l.keys(a.options.actionOptions),["templateOptions"]),i=p.extend(!0,{},a.options.actionOptions,l.pick(n,e));n.templateOptions=p.extend(!0,n.templateOptions,a.options.templateOptions);var o=l.union(l.keys(a.options.actionOptions),["actions","actionOptions"]),r=p.extend(!0,l.omit(n,o),a.options);p(t,p("."+n.templateOptions.classBodyName,s)).each(function(t){var e=p(this);e.on(i.eventType,function(t){t.stopPropagation(),t.preventDefault(),a.loading.show(!1),null!==i.modalFunction?a[i.modalFunction]():p.nodeName(e[0],"input")||p.nodeName(e[0],"button")||!0===n.isForm?a.options.handleFormAction.apply(a,[e,i,r]):null===n.ajaxUrl&&!p.nodeName(e[0],"a")||a.options.handleLinkAction.apply(a,[e,i,r])})})})},handleFormAction:function(o,r,a){var t,e,s=this,n={};if(n[o.attr("name")]=o.attr("value"),t=p.nodeName(o[0],"form")?o:o.parents("form:not(.disableAutoSubmit)"),e=null!==r.ajaxUrl?"function"==typeof r.ajaxUrl?r.ajaxUrl.apply(s,[o,r]):r.ajaxUrl:o.parents("form").attr("action"),r.disableAjaxFormSubmit)return o.attr("name")&&o.attr("value")&&t.append(p('<input type="hidden" name="'+o.attr("name")+'" value="'+o.attr("value")+'" />')),void t.trigger("submit");t.on("submit",function(t){t.preventDefault()}),t.trigger("submit"),s.loading.show(!1),t.ajaxSubmit({timeout:r.timeout,data:n,url:e,error:function(t,e,n){s.loading.hide(),"timeout"===e&&r.onTimeout?r.onTimeout.apply(s,t,n):r.onError?"string"==typeof r.onError?window[r.onError](t,e,n):r.onError(t,e,n):console.log("error happened",e," do something"),s.emit("formActionError",[t,e,n])},success:function(t,e,n,i){s.loading.hide(),0===p(r.error,t).size()&&0===p(r.formFieldError,t).size()?!0!==r.redirectOnResponse?(r.onSuccess&&("string"==typeof r.onSuccess?window[r.onSuccess](s,t,e,n,i):r.onSuccess(s,t,e,n,i)),!0===r.displayInModal?s.redraw(t,a):(o.trigger("destroy.plone-modal.patterns"),r.reloadWindowOnClose&&s.reloadWindow()),s.emit("formActionSuccess",[t,e,n,i])):"function"==typeof r.redirectToUrl?window.parent.location.href=r.redirectToUrl.apply(s,[o,t,r]):window.parent.location.href=r.redirectToUrl:r.onF
2984ormError?"string"==typeof r.onFormError?window[r.onFormError](s,t,e,n,i):r.onFormError(s,t,e,n,i):s.redraw(t,a)}})},handleLinkAction:function(t,i,o){var e,r=this;t.hasClass("pat-plone-modal")||(e=i.ajaxUrl?"function"==typeof i.ajaxUrl?i.ajaxUrl.apply(r,[t,i]):i.ajaxUrl:t.attr("href"),!1!==i.displayInModal?p.ajax({url:e}).fail(function(t,e,n){"timeout"===e&&i.onTimeout?i.onTimeout(r.$modal,t,n):i.onError?i.onError(t,e,n):window.alert(a("There was an error loading modal.")),r.emit("linkActionError",[t,e,n])}).done(function(t,e,n){r.redraw(t,o),i.onSuccess&&("string"==typeof i.onSuccess?window[i.onSuccess](r,t,e,n):i.onSuccess(r,t,e,n)),r.emit("linkActionSuccess",[t,e,n])}).always(function(){r.loading.hide()}):"_blank"===t.attr("target")?(window.open(e,"_blank"),r.loading.hide()):window.location=e)},render:function(t){var n=this;if(n.emit("before-render"),n.$raw){var e=n.$raw.clone();p("input:checked",e).each(function(){this.setAttribute&&this.setAttribute("checked","checked")});var i={title:"",prepend:"<div />",content:"",buttons:'<div class="pattern-modal-buttons"></div>',options:t.templateOptions};if(null===t.title){var o=p(t.titleSelector,e);i.title=o.html(),p(t.titleSelector,e).remove()}else i.title=t.title;t.prependContent&&(i.prepend=p("<div />").append(p(t.prependContent,e).clone()).html(),p(t.prependContent,e).remove()),t.content?i.content=p(t.content,e).html():i.content=e.html(),n.$modal=p(l.template(n.options.templateOptions.template)(i)),n.$modalDialog=p("> ."+n.options.templateOptions.classDialog,n.$modal),n.$modalContent=p("> ."+n.options.templateOptions.classModal,n.$modalDialog),p("form",n.$modal).on("keydown",function(t){13===t.keyCode&&"TEXTAREA"!==t.target.nodeName&&(t.preventDefault(),p("input[type=submit], button[type=submit], button:not(type)",this).eq(0).trigger("click"))}),p(t.buttons,n.$modal).each(function(){var e=p(this);e.on("click",function(t){t.stopPropagation(),t.preventDefault()}).clone().appendTo(p(".pattern-modal-buttons",n.$modal)).off("click").on("click",function(t){t.stopPropagation(),t.preventDefault(),e.trigger("click")}),e.hide()}),n.emit("before-events-setup"),p(".plone-modal-header > a.plone-modal-close, .plone-modal-footer > a.plone-modal-close",n.$modal).off("click").on("click",function(t){t.stopPropagation(),t.preventDefault(),p(t.target).trigger("destroy.plone-modal.patterns")}),t.form&&t.form.apply(n,[t.actions]),n.$modal.addClass(n.options.templateOptions.className).on("destroy.plone-modal.patterns",function(t){t.stopPropagation(),n.hide()}).on("resize.plone-modal.patterns",function(t){t.stopPropagation(),t.preventDefault(),n.positionModal()}).appendTo(n.$wrapperInner),n.options.loadLinksWithinModal&&n.$modal.on("click",function(t){t.stopPropagation(),p.nodeName(t.target,"a")&&t.preventDefault(),n.$modal.trigger("modal-click")}),n.$modal.data("pattern-"+n.name,n),n.emit("after-render"),t.onRender&&("string"==typeof t.onRender?window[t.onRender](n):t.onRender(n))}}},reloadWindow:function(){window.parent.location.reload()},init:function(){var o=this;o.options.loadLinksWithinModal=p.parseJSON(o.options.loadLinksWithinModal),null!==o.options.routerOptions.id&&e.addRoute("modal",o.options.routerOptions.id,function(){this.show()},o,o.options.routerOptions.pathExp,o.options.routerOptions.expReplace),!0===o.options.backdropOptions.closeOnEsc&&p(document).on("keydown",function(t,e){o.$el.is("."+o.options.templateOptions.classActiveName)&&27===t.keyCode&&o.hide()}),p(window.parent).resize(function(){o.positionModal()}),o.options.triggers&&p.each(o.options.triggers,function(t,e){var n=e.substring(0,e.indexOf(" ")),i=e.substring(e.indexOf(" "),e.length);p(i||o.$el).on(n,function(t){t.stopPropagation(),t.preventDefault(),o.show()})}),o.$el.is("a")&&(o.$el.attr("href")&&!o.options.image&&(o.options.target||"#"!==o.$el.attr("href").substr(0,1)||(o.options.target=o.$el.attr("href"),o.options.content=""),o.options.ajaxUrl||"#"===o.$el.attr("href").substr(0,1)||(o.options.ajaxUrl=function(){return o.$el.attr("href")})),o.$el.on("click",function(t){t.stopPropagation(),t.preventDefault(),o.show()})),o.initModal()},createAjaxModal:function(){var o=this;
2984o.emit("before-ajax"),o.loading.show();var t=o.options.ajaxUrl;"function"==typeof t&&(t=t.apply(o,[o.options])),o.ajaxXHR=p.ajax({url:t,type:o.options.ajaxType}).done(function(t,e,n){o.ajaxXHR=void 0,o.$raw=p("<div />").append(p(r.parseBodyTag(t))),o.emit("after-ajax",o,e,n),o._show()}).fail(function(t,e,n){var i=o.options.actionOptions;"timeout"===e&&i.onTimeout?i.onTimeout(o.$modal,t,n):i.onError?i.onError(t,e,n):(window.alert(a("There was an error loading modal.")),o.hide()),o.emit("linkActionError",[t,e,n])}).always(function(){o.loading.hide()})},createTargetModal:function(){this.$raw=p(this.options.target).clone(),this._show()},createBasicModal:function(){this.$raw=p("<div/>").html(this.$el.clone()),this._show()},createHtmlModal:function(){var t=p(this.options.html);this.$raw=t,this._show()},createImageModal:function(){var t=this;t.$wrapper.addClass("image-modal");var e=t.$el.attr("href"),n=t.$el.attr("data-modal-srcset")||"",i=p.trim(t.$el.context.innerText)||"Image";t.$raw=p("<div><h1>"+i+'</h1><div id="content"><div class="modal-image"><img src="'+e+'" srcset="'+n+'" /></div></div></div>'),t._show()},initModal:function(){var t=this;t.options.ajaxUrl?t.createModal=t.createAjaxModal:t.options.target?t.createModal=t.createTargetModal:t.options.html?t.createModal=t.createHtmlModal:t.options.image?t.createModal=t.createImageModal:t.createModal=t.createBasicModal},findPosition:function(t,e,n,i,o,r,a){var s,l,c,u,p={};return u=c=s=c="auto","left"===t?(c=n+"px",r<i&&(c="0px"),p.left=c):"right"===t?(u=n+"px",r<i&&(u="0px"),p.right=u,p.left="auto"):(c=r/2-i/2-n+"px",r<i&&(c="0px"),p.left=c),"top"===e?(s=n+"px",a<o&&(s="0px"),p.top=s):"bottom"===e?(l=n+"px",a<o&&(l="0px"),p.bottom=l,p.top="auto"):(s=a/2-o/2-n+"px",a<o&&(s="0px"),p.top=s),p},modalInitialized:function(){return null!==this.$modal&&void 0!==this.$modal},positionModal:function(){var t=this;if(t.modalInitialized()){t.$modal.removeAttr("style"),t.$wrapper.parent().is("body")&&t.$wrapper.height(p(window.parent).height());var e="function"==typeof t.options.margin?t.options.margin():t.options.margin;t.$modal.css({position:"absolute",padding:e}),t.$modalDialog.css({margin:"0",padding:"0",width:t.options.width,height:t.options.height}),t.$modalContent.css({width:t.options.width});var n=t.options.position.split(" "),i=n[0],o=n[1],r=t.$modalDialog.outerWidth(!0),a=t.$modalDialog.outerHeight(!0),s=t.$wrapperInner.width(),l=t.$wrapperInner.height(),c=t.findPosition(i,o,e,r,a,s,l);for(var u in c)t.$modalDialog.css(u,c[u])}},render:function(t){this.emit("render"),this.options.render.apply(this,[t]),this.emit("rendered")},show:function(){this.backdrop=this.createBackdrop(),this.createModal()},createBackdrop:function(){var e=this,n=new i(e.$el.parents(e.options.backdrop),e.options.backdropOptions),t=1041;return p(e.options.zIndexSelector).each(function(){t=Math.max(t,parseInt(p(this).css("zIndex"))+1||1041)}),e.$wrapper=p("<div/>").hide().css({"z-index":t,"overflow-y":"auto",position:"fixed",height:"100%",width:"100%",bottom:"0",left:"0",right:"0",top:"0"}).addClass(e.options.templateOptions.classWrapperName).insertBefore(n.$backdrop).on("click",function(t){e.options.backdropOptions.closeOnClick&&(t.stopPropagation(),t.preventDefault(),n.hide())}),n.on("hidden",function(t){void 0!==e.$modal&&e.$modal.hasClass(e.options.templateOptions.classActiveName)&&e.hide()}),e.loading=new r.Loading({backdrop:n}),e.$wrapperInner=p("<div/>").addClass(e.options.classWrapperInnerName).css({position:"absolute",bottom:"0",left:"0",right:"0",top:"0"}).appendTo(e.$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),o.scan(t.$modal),t.positionModal(),p(window.parent).on("resize.plone-modal.patterns",function(){t.positionModal()}),p("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.o
2984ptions.templateOptions.classActiveName),void 0!==t.$modal&&(t.$modal.remove(),t.initModal()),t.$wrapper.remove(),p(".plone-modal",p("body")).size()<1&&(t._suppressHide=void 0,t.backdrop.hide(),p("body").removeClass("plone-modal-open"),p(window.parent).off("resize.plone-modal.patterns")),t.emit("hidden"))},redraw:function(t,e){var n=this;n.emit("beforeDraw"),n.$modal.remove(),n.$raw=p("<div />").append(p(r.parseBodyTag(t))),n.render.apply(n,[e||n.options]),n.$modal.addClass(n.options.templateOptions.classActiveName),n.positionModal(),o.scan(n.$modal),n.emit("afterDraw")}})}),define("mockup-patterns-navigationmarker",["jquery","pat-base"],function(c,t){return t.extend({name:"navigationmarker",trigger:".pat-navigationmarker",parser:"mockup",init:function(){var l=document.querySelector('head link[rel="canonical"]').href||window.location.href;c("a",this.$el).each(function(){var t=this.href.replace("/view","");if(-1!==l.indexOf(t)){var e=c(this).parent(),n=e.find("> input");n.length&&(n[0].checked=!0);for(var i=l.split("/"),o=t.split("/"),r=!1,a=0,s=o.length;a<s;a++)r=!1,o[a]===i[a]&&(r=!0);r&&e.addClass("inPath"),l===t&&e.addClass("current")}})}})}),define("mockup-patterns-preventdoublesubmit",["jquery","pat-base","translate"],function(n,t,e){"use strict";return t.extend({name:"preventdoublesubmit",trigger:".pat-preventdoublesubmit",parser:"mockup",defaults:{message:e("You already clicked the submit button. Do you really want to submit this form again?"),guardClassName:"submitting",optOutClassName:"allowMultiSubmit"},init:function(){var e=this;e.$el.is("form")&&n(":submit",e.$el).click(function(t){if(n(":submit").removeAttr("clicked"),n(this).attr("clicked","clicked"),n(this).hasClass(e.options.guardClassName)&&!n(this).hasClass(e.options.optOutClassName))return e._confirm.call(e);n(this).addClass(e.options.guardClassName)})},_confirm:function(t){return window.confirm(this.options.message)}})}),function(t){define("bootstrap-collapse",["jquery"],function(){return function(){return function(a){"use strict";var s=function(t,e){this.$element=a(t),this.options=a.extend({},s.DEFAULTS,e),this.$trigger=a('[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()};function o(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(n)}function l(i){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),n=a.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new s(this,n)),"string"==typeof i&&e[i]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=a.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return o.call(this);var r=a.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",a.proxy(o,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][r])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var n=a(e);this.addAriaAndCollapsedClass(o(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=s,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var n=o(e),i=n.data("bs.collapse")?"toggle":e.data();l.call(n,i)})}(jQuery),window.jQuery.fn.collapse.Constructor}.apply(t,arguments)})}(this),function(t){define("bootstrap-dropdown",["jquery"],function(){return function(){!function(a){"use strict";function i(t){a(t).on("click.bs.dropdown",this.toggle)}var s='[data-toggle="dropdown"]';function l(t){var e=t.attr("data-target"),n="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?a(document).find(e):null;return n&&n.length?n:t.parent()}function r(i){i&&3===i.which||(a(".dropdown-backdrop").remove(),a(s).each(function(){var t=a(this),e=l(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&a.contains(e[0],i.target)||(e.trigger(i=a.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","fal
2984se"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",r);var o={relatedTarget:this};if(n.trigger(t=a.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(a.Event("shown.bs.dropdown",o))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(s).trigger("focus"),e.trigger("click");var o=n.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var r=o.index(t.target);38==t.which&&0<r&&r--,40==t.which&&r<o.length-1&&r++,~r||(r=0),o.eq(r).trigger("focus")}}}};var t=a.fn.dropdown;a.fn.dropdown=function(n){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},a.fn.dropdown.Constructor=i,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=t,this},a(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,i.prototype.toggle).on("keydown.bs.dropdown.data-api",s,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery)}.apply(t,arguments)})}(this),function(t){define("bootstrap-tooltip",["jquery"],function(){return function(){!function(m){"use strict";var i=["sanitize","whiteList","sanitizeFn"],a=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},s=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function f(t,e){var n=t.nodeName.toLowerCase();if(-1!==m.inArray(n,e))return-1===m.inArray(n,a)||Boolean(t.nodeValue.match(s)||t.nodeValue.match(l));for(var i=m(e).filter(function(t,e){return e instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1}function o(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var i=document.implementation.createHTMLDocument("sanitization");i.body.innerHTML=t;for(var o=m.map(e,function(t,e){return e}),r=m(i.body).find("*"),a=0,s=r.length;a<s;a++){var l=r[a],c=l.nodeName.toLowerCase();if(-1!==m.inArray(c,o))for(var u=m.map(l.attributes,function(t){return t}),p=[].concat(e["*"]||[],e[c]||[]),d=0,h=u.length;d<h;d++)f(u[d],p)||l.removeAttribute(u[d].nodeName);else l.parentNode.removeChild(l)}return i.body.innerHTML}function g(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}g.VERSION="3.4.1",g.TRANSITION_DURATION=150,g.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},sanitize:!0,sanitizeFn:null,whiteList:t},g.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(document).find(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var r=i[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",s="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){var e=this.$element.data();for(var n in e)e.hasOwnProperty(n)&&-1!==m.inArray(n,i)&&delete e[n];return(t=m.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=o(t.template,t.whiteList,t.sanitizeFn)),t},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focu
2984s":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(r);s&&(r=r.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(m(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(s){var p=r,d=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>d.bottom?"top":"top"==r&&l.top-u<d.top?"bottom":"right"==r&&l.right+c>d.width?"left":"left"==r&&l.left-c<d.left?"right":r,i.removeClass(p).addClass(r)}var h=this.getCalculatedOffset(r,l,c,u);this.applyPlacement(h,r);var f=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(g.TRANSITION_DURATION):f()}},g.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),t.top+=r,t.left+=a,m.offset.setOffset(n[0],m.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=o&&(t.top=t.top+o-l);var c=this.getViewportAdjustedDelta(e,t,s,l);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(e),p=u?2*c.left-i+s:2*c.top-o+l,d=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(p,n[0][d],u)},g.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},g.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=o(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},g.prototype.hide=function(t){var e=this,n=m(this.$tip),i=m.Event("hide.bs."+this.type);function o(){"in"!=e.hoverState&&n.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),m.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(g.TRANSITION_DURATION):o(),this.hoverState=null,this},g.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=m.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&e instanceof window.SVGElement,r=n?{top:0,left:0}:o?null:t.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},i,a,s,r)},g.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},g.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-r-a.scroll,l=e.top+r-a.scroll+i;s<a.top?o.top=a.top-s:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var c=e.left-r,u=e.left+r+n;
vendor: 2,399 bytes, lines 2984-2985
2984c<a.left?o.left=a.left-c:u>a.right&&(o.left=a.left+a.width-u)}return o},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(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},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},g.prototype.sanitizeHtml=function(t){return o(t,this.options.whiteList,this.options.sanitizeFn)};var e=m.fn.tooltip;m.fn.tooltip=function(i){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new g(this,n)),"string"==typeof i&&e[i]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery)}.apply(t,arguments)})}(this),require(["mockup-patterns-autotoc","mockup-patterns-contentloader","mockup-patterns-cookietrigger","mockup-patterns-formautofocus","mockup-patterns-formunloadalert","mockup-patterns-livesearch","mockup-patterns-markspeciallinks","mockup-patterns-modal","mockup-patterns-navigationmarker","mockup-patterns-preventdoublesubmit","bootstrap-collapse","bootstrap-dropdown","bootstrap-tooltip"],function(){}),define("/home/_thet/data/dev/plone/buildout.coredev/src/plone.staticresources/src/plone/staticresources/static/plone.js",function(){});
2985//# 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.