2 lines
1.6 MiB
Plaintext
2 lines
1.6 MiB
Plaintext
/*! For license information please see titanOne.dll.js.LICENSE.txt */
|
||
var titanOne;(()=>{var __webpack_modules__={2638:(e,t,i)=>{var n,r,o;r=[i(4778)],void 0===(o="function"==typeof(n=function(e){"use strict";var t=e.Comm={ajaxTimeout:12e4,remoteRe:/\.action/,defaultHostKey:"ecas",defaultSettings:{type:"post",cache:!1,data:{},async:!0,processData:!1,traditional:!0,dataType:"json",hostKey:"",headers:{"x-requested-with":"x-requested-with"}},events:["success","error","beforeSend","complete"],postToRemote:function(t,i,n,r){var o=this,a=arguments,s=a.length,l=o.defaultSettings,c=e.util.clone(l);if($.isObject(t)?$.extend(c,t):$.extend(c,{url:t}),s>1)if($.isFunction(i))c.hasOwnProperty("success")||(c.success=i),n&&!c.hasOwnProperty("error")&&(c.error=n);else{n&&!c.hasOwnProperty("success")&&(c.success=n),r&&!c.hasOwnProperty("error")&&(c.error=r);var u=a[s-1],d=$.isBoolean(u)?u:e.Extra.warp;$.extend(c,{data:e.Extra.warpReqParams(i,d)})}c.hasOwnProperty("timeout")||$.extend(c,{timeout:o.ajaxTimeout});var p={};o.events.forEach((function(t){var i=c[t]||$.emptyFn;p[t]=function(){if(!1!==i.apply(this,arguments)){var n="recv"+e.String.capitalize(t)+"Dispatch";(o[n]||$.emptyFn).apply(this,arguments)}}})),c=o.convertDataParams($.extend(c,p)),o.executeAjax(c)},convertDataParams:function(t){if(t.data||(t.data={}),t.data&&"string"==typeof t.data&&(t.data=e.Object.fromQueryString(t.data)),-1!==t.url.indexOf("?")){var i=t.url.indexOf("?"),n=e.Object.fromQueryString(t.url.substring(i));t.url=t.url.substr(0,i),e.extend(!0,t.data,n)}return"GET"===t.type.toUpperCase()&&(t.processData=!0),t},executeAjax:function(t){e.ajax(t)}};e.apply(e,{postToRemote:e.Function.alias(t,"postToRemote")})})?n.apply(t,r):n)||(e.exports=o)},4778:function(e,t,i){var n,r,o;i(1703),i(7658),r="undefined"!=typeof window?window:this,o=function(i,r){var o=[],a=o.slice,s=o.concat,l=o.push,c=o.indexOf,u={},d=u.toString,p=u.hasOwnProperty,h={},f="2.1.4",g=function(e,t){return new g.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,y=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function w(e){var t="length"in e&&e.length,i=g.type(e);return"function"!==i&&!g.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.regExps={},g.fn=g.prototype={eui:f,constructor:g,selector:"",length:0,toArray:function(){return a.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return g.each(this,e,t)},map:function(e){return this.pushStack(g.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:l,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(r=arguments[s]))for(n in r)e=a[n],a!==(i=r[n])&&(c&&i&&(g.isPlainObject(i)||(t=g.isArray(i)))?(t?(t=!1,o=e&&g.isArray(e)?e:[]):o=e&&g.isPlainObject(e)?e:{},a[n]=g.extend(c,o,i)):void 0!==i&&(a[n]=i));return a},g.extend({expando:"Eui"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray||function(e){return"array"===g.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!g.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==g.type(e)||e.nodeType||g.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(h.ownLast)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){e&&g.trim(e)&&(i.execScript||function(e){i.eval.call(i,e)})(e)},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,r=e.length,o=w(e);if(i){if(o)for(;r>n&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(o)for(;r>n&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(w(Object(e))?g.merge(i,"string"==typeof e?[e]:e):l.call(i,e)),i},inArray:function(e,t,i){var n;if(t){if(c)return c.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;i>n;)e[r++]=t[n++];if(i!=i)for(;void 0!==t[n];)e[r++]=t[n++];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,a=!i;o>r;r++)!t(e[r],r)!==a&&n.push(e[r]);return n},map:function(e,t,i){var n,r=0,o=e.length,a=[];if(w(e))for(;o>r;r++)null!=(n=t(e[r],r,i))&&a.push(n);else for(r in e)null!=(n=t(e[r],r,i))&&a.push(n);return s.apply([],a)},guid:1,proxy:function(e,t){var i,n,r;return"string"==typeof t&&(r=e[t],t=e,e=r),g.isFunction(e)?(i=a.call(arguments,2),n=function(){return e.apply(t||this,i.concat(a.call(arguments)))},n.guid=e.guid=e.guid||g.guid++,n):void 0},now:function(){return+new Date},support:h}),g.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var _=function(e){var t,i,n,r,o,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w="sizzle"+1*new Date,_=e.document,x=0,$=0,C=ae(),k=ae(),S=ae(),E=function(e,t){return e===t&&(d=!0),0},j=1<<31,D={}.hasOwnProperty,T=[],I=T.pop,A=T.push,O=T.push,N=T.slice,P=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",L=R.replace("w","w#"),q="\\["+F+"*("+R+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+F+"*\\]",H=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp(F+"+","g"),B=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),G=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),W=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),Y=new RegExp(H),V=new RegExp("^"+L+"$"),K={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ne=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},re=function(){p()};try{O.apply(T=N.call(_.childNodes),_.childNodes),T[_.childNodes.length].nodeType}catch(e){O={apply:T.length?function(e,t){A.apply(e,N.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,r){var o,s,c,u,d,f,v,y,x,$;if((t?t.ownerDocument||t:_)!==h&&p(t),n=n||[],u=(t=t||h).nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return n;if(!r&&g){if(11!==u&&(o=Z.exec(e)))if(c=o[1]){if(9===u){if(!(s=t.getElementById(c))||!s.parentNode)return n;if(s.id===c)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&b(t,s)&&s.id===c)return n.push(s),n}else{if(o[2])return O.apply(n,t.getElementsByTagName(e)),n;if((c=o[3])&&i.getElementsByClassName)return O.apply(n,t.getElementsByClassName(c)),n}if(i.qsa&&(!m||!m.test(e))){if(y=v=w,x=t,$=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=a(e),(v=t.getAttribute("id"))?y=v.replace(te,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=f.length;d--;)f[d]=y+me(f[d]);x=ee.test(e)&&fe(t.parentNode)||t,$=f.join(",")}if($)try{return O.apply(n,x.querySelectorAll($)),n}catch(e){}finally{v||t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,n,r)}function ae(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function se(e){return e[w]=!0,e}function le(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),r=e.length;r--;)n.attrHandle[i[r]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function he(e){return se((function(t){return t=+t,se((function(i,n){for(var r,o=e([],i.length,t),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))}))}))}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:_;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,f=a.documentElement,(r=a.defaultView)&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",re,!1):r.attachEvent&&r.attachEvent("onunload",re)),g=!o(a),i.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=le((function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=Q.test(a.getElementsByClassName),i.getById=le((function(e){return f.appendChild(e).id=w,!a.getElementsByName||!a.getElementsByName(w).length})),i.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){return g?t.getElementsByClassName(e):void 0},v=[],m=[],(i.qsa=Q.test(a.querySelectorAll))&&(le((function(e){f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")})),le((function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le((function(e){i.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",H)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),b=t||Q.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===a||e.ownerDocument===_&&b(_,e)?-1:t===a||t.ownerDocument===_&&b(_,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,r=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!r||!o)return e===a?-1:t===a?1:r?-1:o?1:u?P(u,e)-P(u,t):0;if(r===o)return ue(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?ue(s[n],l[n]):s[n]===_?-1:l[n]===_?1:0},a):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(W,"='$1']"),i.matchesSelector&&g&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=n.attrHandle[t.toLowerCase()],o=r&&D.call(n.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:i.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],r=0,o=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return u=null,e},r=oe.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},n=oe.selectors={cacheLength:50,createPseudo:se,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&Y.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=oe.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,p,h,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(h=(c=(u=m[w]||(m[w]={}))[e]||[])[0]===x&&c[1],p=c[0]===x&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){u[e]=[x,h,p];break}}else if(y&&(c=(t[w]||(t[w]={}))[e])&&c[0]===x)p=c[1];else for(;(d=++h&&d&&d[g]||(p=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[w]||(d[w]={}))[e]=[x,p]),d!==t)););return(p-=r)===n||p%n==0&&p/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,i){for(var n,o=r(e,t),a=o.length;a--;)e[n=P(e,o[a])]=!(i[n]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:se((function(e){var t=[],i=[],n=s(e.replace(B,"$1"));return n[w]?se((function(e,t,i,r){for(var o,a=n(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:se((function(e){return function(t){return oe(e,t).length>0}})),contains:se((function(e){return e=e.replace(ie,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:se((function(e){return V.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(ie,ne).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,i){return[0>i?i+t:i]})),even:he((function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e})),odd:he((function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e})),lt:he((function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e})),gt:he((function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=pe(t);function ge(){}function me(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function ve(e,t,i){var n=t.dir,r=i&&"parentNode"===n,o=$++;return t.first?function(t,i,o){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,o)}:function(t,i,a){var s,l,c=[x,o];if(a){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,a))return!0}else for(;t=t[n];)if(1===t.nodeType||r){if((s=(l=t[w]||(t[w]={}))[n])&&s[0]===x&&s[1]===o)return c[2]=s[2];if(l[n]=c,c[2]=e(t,i,a))return!0}}}function ye(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function be(e,t,i,n,r){for(var o,a=[],s=0,l=e.length,c=null!=t;l>s;s++)(o=e[s])&&(!i||i(o,n,r))&&(a.push(o),c&&t.push(s));return a}function we(e,t,i,n,r,o){return n&&!n[w]&&(n=we(n)),r&&!r[w]&&(r=we(r,o)),se((function(o,a,s,l){var c,u,d,p=[],h=[],f=a.length,g=o||function(e,t,i){for(var n=0,r=t.length;r>n;n++)oe(e,t[n],i);return i}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:be(g,p,e,s,l),v=i?r||(o?e:f||n)?[]:a:m;if(i&&i(m,v,s,l),n)for(c=be(v,h),n(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(m[h[u]]=d));if(o){if(r||e){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=r?P(o,d):p[u])>-1&&(o[c]=!(a[c]=d))}}else v=be(v===a?v.splice(f,v.length):v),r?r(null,a,v,l):O.apply(a,v)}))}function _e(e){for(var t,i,r,o=e.length,a=n.relative[e[0].type],s=a||n.relative[" "],l=a?1:0,u=ve((function(e){return e===t}),s,!0),d=ve((function(e){return P(t,e)>-1}),s,!0),p=[function(e,i,n){var r=!a&&(n||i!==c)||((t=i).nodeType?u(e,i,n):d(e,i,n));return t=null,r}];o>l;l++)if(i=n.relative[e[l].type])p=[ve(ye(p),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;o>r&&!n.relative[e[r].type];r++);return we(l>1&&ye(p),l>1&&me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),i,r>l&&_e(e.slice(l,r)),o>r&&_e(e=e.slice(r)),o>r&&me(e))}p.push(i)}return ye(p)}function xe(e,t){var i=t.length>0,r=e.length>0,o=function(o,a,s,l,u){var d,p,f,g=0,m="0",v=o&&[],y=[],b=c,w=o||r&&n.find.TAG("*",u),_=x+=null==b?1:Math.random()||.1,$=w.length;for(u&&(c=a!==h&&a);m!==$&&null!=(d=w[m]);m++){if(r&&d){for(p=0;f=e[p++];)if(f(d,a,s)){l.push(d);break}u&&(x=_)}i&&((d=!f&&d)&&g--,o&&v.push(d))}if(g+=m,i&&m!==g){for(p=0;f=t[p++];)f(v,y,a,s);if(o){if(g>0)for(;m--;)v[m]||y[m]||(y[m]=I.call(l));y=be(y)}O.apply(l,y),u&&!o&&y.length>0&&g+t.length>1&&oe.uniqueSort(l)}return u&&(x=_,c=b),v};return i?se(o):o}return ge.prototype=n.filters=n.pseudos,n.setFilters=new ge,a=oe.tokenize=function(e,t){var i,r,o,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=n.preFilter;s;){for(a in(!i||(r=G.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=U.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(B," ")}),s=s.slice(i.length)),n.filter)!(r=K[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return t?s.length:s?oe.error(e):k(e,l).slice(0)},s=oe.compile=function(e,t){var i,n=[],r=[],o=S[e+" "];if(!o){for(t||(t=a(e)),i=t.length;i--;)(o=_e(t[i]))[w]?n.push(o):r.push(o);(o=S(e,xe(r,n))).selector=e}return o},l=oe.select=function(e,t,r,o){var l,c,u,d,p,h="function"==typeof e&&e,f=!o&&a(e=h.selector||e);if(r=r||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&i.getById&&9===t.nodeType&&g&&n.relative[c[1].type]){if(!(t=(n.find.ID(u.matches[0].replace(ie,ne),t)||[])[0]))return r;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=K.needsContext.test(e)?0:c.length;l--&&(u=c[l],!n.relative[d=u.type]);)if((p=n.find[d])&&(o=p(u.matches[0].replace(ie,ne),ee.test(c[0].type)&&fe(t.parentNode)||t))){if(c.splice(l,1),!(e=o.length&&me(c)))return O.apply(r,o),r;break}}return(h||s(e,f))(o,t,!g,r,ee.test(e)&&fe(t.parentNode)||t),r},i.sortStable=w.split("").sort(E).join("")===w,i.detectDuplicates=!!d,p(),i.sortDetached=le((function(e){return 1&e.compareDocumentPosition(h.createElement("div"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||ce(M,(function(e,t,i){var n;return i?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),oe}(i);g.find=_,g.expr=_.selectors,g.expr[":"]=g.expr.pseudos,g.unique=_.uniqueSort,g.text=_.getText,g.isXMLDoc=_.isXML,g.contains=_.contains;var x=g.expr.match.needsContext,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function S(e,t,i){if(g.isFunction(t))return g.grep(e,(function(e,n){return!!t.call(e,n,e)!==i}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if(k.test(t))return g.filter(t,e,i);t=g.filter(t,e)}return g.grep(e,(function(e){return g.inArray(e,t)>=0!==i}))}g.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?g.find.matchesSelector(n,e)?[n]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,i=[],n=this,r=n.length;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;r>t;t++)if(g.contains(n[t],this))return!0})));for(t=0;r>t;t++)g.find(e,n[t],i);return(i=this.pushStack(r>1?g.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&x.test(e)?g(e):e||[],!1).length}});var E,j=i.document,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,T=g.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:D.exec(e))||!i[1]&&t)return!t||t.eui?(t||E).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:j,!0)),C.test(i[1])&&g.isPlainObject(t))for(i in t)g.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=j.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return E.find(e);this.length=1,this[0]=n}return this.context=j,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==E.ready?E.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))};T.prototype=g.fn,E=g(j);var I=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}g.extend({dir:function(e,t,i){for(var n=[],r=e[t];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!g(r).is(i));)1===r.nodeType&&n.push(r),r=r[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),g.fn.extend({has:function(e){var t,i=g(e,this),n=i.length;return this.filter((function(){for(t=0;n>t;t++)if(g.contains(this,i[t]))return!0}))},closest:function(e,t){for(var i,n=0,r=this.length,o=[],a=x.test(e)||"string"!=typeof e?g(e,t||this.context):0;r>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&g.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?g.unique(o):o)},index:function(e){return e?"string"==typeof e?g.inArray(this[0],g(e)):g.inArray(e.eui?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.unique(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return g.dir(e,"parentNode")},parentsUntil:function(e,t,i){return g.dir(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return g.dir(e,"nextSibling")},prevAll:function(e){return g.dir(e,"previousSibling")},nextUntil:function(e,t,i){return g.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return g.dir(e,"previousSibling",i)},siblings:function(e){return g.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return g.sibling(e.firstChild)},contents:function(e){return g.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(i,n){var r=g.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=g.filter(n,r)),this.length>1&&(A[e]||(r=g.unique(r)),I.test(e)&&r.reverse()),this.pushStack(r)}}));var N,P=/\S+/g,M={};function F(){j.addEventListener?(j.removeEventListener("DOMContentLoaded",R,!1),i.removeEventListener("load",R,!1)):(j.detachEvent("onreadystatechange",R),i.detachEvent("onload",R))}function R(){(j.addEventListener||"load"===event.type||"complete"===j.readyState)&&(F(),g.ready())}g.Callbacks=function(e){e="string"==typeof e?M[e]||function(e){var t=M[e]={};return g.each(e.match(P)||[],(function(e,i){t[i]=!0})),t}(e):g.extend({},e);var t,i,n,r,o,a,s=[],l=!e.once&&[],c=function(d){for(i=e.memory&&d,n=!0,o=a||0,a=0,r=s.length,t=!0;s&&r>o;o++)if(!1===s[o].apply(d[0],d[1])&&e.stopOnFalse){i=!1;break}t=!1,s&&(l?l.length&&c(l.shift()):i?s=[]:u.disable())},u={add:function(){if(s){var n=s.length;!function t(i){g.each(i,(function(i,n){var r=g.type(n);"function"===r?e.unique&&u.has(n)||s.push(n):n&&n.length&&"string"!==r&&t(n)}))}(arguments),t?r=s.length:i&&(a=n,c(i))}return this},remove:function(){return s&&g.each(arguments,(function(e,i){for(var n;(n=g.inArray(i,s,n))>-1;)s.splice(n,1),t&&(r>=n&&r--,o>=n&&o--)})),this},has:function(e){return e?g.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],r=0,this},disable:function(){return s=l=i=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,i||u.disable(),this},locked:function(){return!l},fireWith:function(e,i){return!s||n&&!l||(i=[e,(i=i||[]).slice?i.slice():i],t?l.push(i):c(i)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(i){g.each(t,(function(t,o){var a=g.isFunction(e[t])&&e[t];r[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,n):n}},r={};return n.pipe=n.then,g.each(t,(function(e,o){var a=o[2],s=o[3];n[o[1]]=a.add,s&&a.add((function(){i=s}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=a.fireWith})),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,o=a.call(arguments),s=o.length,l=1!==s||e&&g.isFunction(e.promise)?s:0,c=1===l?e:g.Deferred(),u=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?a.call(arguments):r,n===t?c.notifyWith(i,n):--l||c.resolveWith(i,n)}};if(s>1)for(t=new Array(s),i=new Array(s),n=new Array(s);s>r;r++)o[r]&&g.isFunction(o[r].promise)?o[r].promise().done(u(r,n,o)).fail(c.reject).progress(u(r,i,t)):--l;return l||c.resolveWith(n,o),c.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){if(!0===e?!--g.readyWait:!g.isReady){if(!j.body)return setTimeout(g.ready);g.isReady=!0,!0!==e&&--g.readyWait>0||(N.resolveWith(j,[g]),g.fn.triggerHandler&&(g(j).triggerHandler("ready"),g(j).off("ready")))}}}),g.ready.promise=function(e){if(!N)if(N=g.Deferred(),"complete"===j.readyState)setTimeout(g.ready);else if(j.addEventListener)j.addEventListener("DOMContentLoaded",R,!1),i.addEventListener("load",R,!1);else{j.attachEvent("onreadystatechange",R),i.attachEvent("onload",R);var t=!1;try{t=null==i.frameElement&&j.documentElement}catch(e){}t&&t.doScroll&&function e(){if(!g.isReady){try{t.doScroll("left")}catch(t){return setTimeout(e,50)}F(),g.ready()}}()}return N.promise(e)};var L="undefined";for(di in g(h))break;h.ownLast="0"!==di,h.inlineBlockNeedsLayout=!1,g((function(){var e,t,i,n;(i=j.getElementsByTagName("body")[0])&&i.style&&(t=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==L&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",h.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))})),function(){var e=j.createElement("div");if(null==h.deleteExpando){h.deleteExpando=!0;try{delete e.test}catch(e){h.deleteExpando=!1}}e=null}(),g.acceptData=function(e){var t=g.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function z(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(H,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:q.test(i)?g.parseJSON(i):i)}catch(e){}g.data(e,t,i)}else i=void 0}return i}function B(e){var t;for(t in e)if(("data"!==t||!g.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function G(e,t,i,n){if(g.acceptData(e)){var r,a,s=g.expando,l=e.nodeType,c=l?g.cache:e,u=l?e[s]:e[s]&&s;if(u&&c[u]&&(n||c[u].data)||void 0!==i||"string"!=typeof t)return u||(u=l?e[s]=o.pop()||g.guid++:s),c[u]||(c[u]=l?{}:{toJSON:g.noop}),("object"==typeof t||"function"==typeof t)&&(n?c[u]=g.extend(c[u],t):c[u].data=g.extend(c[u].data,t)),a=c[u],n||(a.data||(a.data={}),a=a.data),void 0!==i&&(a[g.camelCase(t)]=i),"string"==typeof t?null==(r=a[t])&&(r=a[g.camelCase(t)]):r=a,r}}function U(e,t,i){if(g.acceptData(e)){var n,r,o=e.nodeType,a=o?g.cache:e,s=o?e[g.expando]:g.expando;if(a[s]){if(t&&(n=i?a[s]:a[s].data)){r=(t=g.isArray(t)?t.concat(g.map(t,g.camelCase)):t in n||(t=g.camelCase(t))in n?[t]:t.split(" ")).length;for(;r--;)delete n[t[r]];if(i?!B(n):!g.isEmptyObject(n))return}(i||(delete a[s].data,B(a[s])))&&(o?g.cleanData([e],!0):h.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}g.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?g.cache[e[g.expando]]:e[g.expando])&&!B(e)},data:function(e,t,i){return G(e,t,i)},removeData:function(e,t){return U(e,t)},_data:function(e,t,i){return G(e,t,i,!0)},_removeData:function(e,t){return U(e,t,!0)}}),g.fn.extend({data:function(e,t){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=g.data(o),1===o.nodeType&&!g._data(o,"parsedAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&z(o,n=g.camelCase(n.slice(5)),r[n]);g._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each((function(){g.data(this,e)})):arguments.length>1?this.each((function(){g.data(this,e,t)})):o?z(o,e,g.data(o,e)):void 0},removeData:function(e){return this.each((function(){g.removeData(this,e)}))}}),g.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=g._data(e,t),i&&(!n||g.isArray(i)?n=g._data(e,t,g.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=g.queue(e,t),n=i.length,r=i.shift(),o=g._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,(function(){g.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return g._data(e,i)||g._data(e,i,{empty:g.Callbacks("once memory").add((function(){g._removeData(e,t+"queue"),g._removeData(e,i)}))})}}),g.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?g.queue(this[0],e):void 0===t?this:this.each((function(){var i=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=g.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=g._data(o[a],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(t)}});var W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)},K=g.access=function(e,t,i,n,r,o,a){var s=0,l=e.length,c=null==i;if("object"===g.type(i))for(s in r=!0,i)g.access(e,t,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,g.isFunction(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(g(e),i)})),t))for(;l>s;s++)t(e[s],i,a?n:n.call(e[s],s,t(e[s],i)));return r?e:c?t.call(e):l?t(e[0],i):o},X=/^(?:checkbox|radio)$/i;!function(){var e=j.createElement("input"),t=j.createElement("div"),i=j.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",h.leadingWhitespace=3===t.firstChild.nodeType,h.tbody=!t.getElementsByTagName("tbody").length,h.htmlSerialize=!!t.getElementsByTagName("link").length,h.html5Clone="<:nav></:nav>"!==j.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),h.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",h.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,h.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){h.noCloneEvent=!1})),t.cloneNode(!0).click()),null==h.deleteExpando){h.deleteExpando=!0;try{delete t.test}catch(e){h.deleteExpando=!1}}}(),function(){var e,t,n=j.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(h[e+"Bubbles"]=t in i)||(n.setAttribute(t,"t"),h[e+"Bubbles"]=!1===n.attributes[t].expando);n=null}();var J=/^(?:input|select|textarea)$/i,Q=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,ee=/^(?:focusinfocus|focusoutblur)$/,te=/^([^.]*)(?:\.(.+)|)$/;function ie(){return!0}function ne(){return!1}function re(){try{return j.activeElement}catch(e){}}function oe(e){var t=ae.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}g.event={global:{},add:function(e,t,i,n,r){var o,a,s,l,c,u,d,p,h,f,m,v=g._data(e);if(v){for(i.handler&&(i=(l=i).handler,r=l.selector),i.guid||(i.guid=g.guid++),(a=v.events)||(a=v.events={}),(u=v.handle)||(u=v.handle=function(e){return typeof g===L||e&&g.event.triggered===e.type?void 0:g.event.dispatch.apply(u.elem,arguments)},u.elem=e),s=(t=(t||"").match(P)||[""]).length;s--;)h=m=(o=te.exec(t[s])||[])[1],f=(o[2]||"").split(".").sort(),h&&(c=g.event.special[h]||{},h=(r?c.delegateType:c.bindType)||h,c=g.event.special[h]||{},d=g.extend({type:h,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&g.expr.match.needsContext.test(r),namespace:f.join(".")},l),(p=a[h])||((p=a[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,f,u)||(e.addEventListener?e.addEventListener(h,u,!1):e.attachEvent&&e.attachEvent("on"+h,u))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),g.event.global[h]=!0);e=null}},remove:function(e,t,i,n,r){var o,a,s,l,c,u,d,p,h,f,m,v=g.hasData(e)&&g._data(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(h=m=(s=te.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=g.event.special[h]||{},p=u[h=(n?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)a=p[o],!r&&m!==a.origType||i&&i.guid!==a.guid||s&&!s.test(a.namespace)||n&&n!==a.selector&&("**"!==n||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,d.remove&&d.remove.call(e,a));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||g.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)g.event.remove(e,h+t[c],i,n,!0);g.isEmptyObject(u)&&(delete v.handle,g._removeData(e,"events"))}},trigger:function(e,t,n,r){var o,a,s,l,c,u,d,h=[n||j],f=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(s=u=n=n||j,3!==n.nodeType&&8!==n.nodeType&&!ee.test(f+g.event.triggered)&&(f.indexOf(".")>=0&&(m=f.split("."),f=m.shift(),m.sort()),a=f.indexOf(":")<0&&"on"+f,(e=e[g.expando]?e:new g.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:g.makeArray(t,[e]),c=g.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!g.isWindow(n)){for(l=c.delegateType||f,ee.test(l+f)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(n.ownerDocument||j)&&h.push(u.defaultView||u.parentWindow||i)}for(d=0;(s=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||f,(o=(g._data(s,"events")||{})[e.type]&&g._data(s,"handle"))&&o.apply(s,t),(o=a&&s[a])&&o.apply&&g.acceptData(s)&&(e.result=o.apply(s,t),!1===e.result&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),t))&&g.acceptData(n)&&a&&n[f]&&!g.isWindow(n)){(u=n[a])&&(n[a]=null),g.event.triggered=f;try{n[f]()}catch(e){}g.event.triggered=void 0,u&&(n[a]=u)}return e.result}},dispatch:function(e){e=g.event.fix(e);var t,i,n,r,o,s=[],l=a.call(arguments),c=(g._data(this,"events")||{})[e.type]||[],u=g.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=g.event.handlers.call(this,e,c),t=0;(r=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,o=0;(n=r.handlers[o++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(n.namespace))&&(e.handleObj=n,e.data=n.data,void 0!==(i=((g.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],o=0;s>o;o++)void 0===r[i=(n=t[o]).selector+" "]&&(r[i]=n.needsContext?g(i,this).index(l)>=0:g.find(i,this,null,[l]).length),r[i]&&r.push(n);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[g.expando])return e;var t,i,n,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Z.test(r)?this.mouseHooks:Q.test(r)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,e=new g.Event(o),t=n.length;t--;)e[i=n[t]]=o[i];return e.target||(e.target=o.srcElement||j),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||j).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==re()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===re()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return g.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var r=g.extend(new g.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?g.event.trigger(r,null,t):g.event.dispatch.call(t,r),r.isDefaultPrevented()&&i.preventDefault()}},g.removeEvent=j.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var n="on"+t;e.detachEvent&&(typeof e[n]===L&&(e[n]=null),e.detachEvent(n,i))},g.Event=function(e,t){return this instanceof g.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ie:ne):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),void(this[g.expando]=!0)):new g.Event(e,t)},g.Event.prototype={isDefaultPrevented:ne,isPropagationStopped:ne,isImmediatePropagationStopped:ne,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ie,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ie,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ie,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return(!n||n!==this&&!g.contains(this,n))&&(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),h.submitBubbles||(g.event.special.submit={setup:function(){return!g.nodeName(this,"form")&&void g.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,i=g.nodeName(t,"input")||g.nodeName(t,"button")?t.form:void 0;i&&!g._data(i,"submitBubbles")&&(g.event.add(i,"submit._submit",(function(e){e._submit_bubble=!0})),g._data(i,"submitBubbles",!0))}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&g.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!g.nodeName(this,"form")&&void g.event.remove(this,"._submit")}}),h.changeBubbles||(g.event.special.change={setup:function(){return J.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(g.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),g.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),g.event.simulate("change",this,e,!0)}))),!1):void g.event.add(this,"beforeactivate._change",(function(e){var t=e.target;J.test(t.nodeName)&&!g._data(t,"changeBubbles")&&(g.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||g.event.simulate("change",this.parentNode,e,!0)})),g._data(t,"changeBubbles",!0))}))},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return g.event.remove(this,"._change"),!J.test(this.nodeName)}}),h.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){g.event.simulate(t,e.target,g.event.fix(e),!0)};g.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=g._data(n,t);r||n.addEventListener(e,i,!0),g._data(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=g._data(n,t)-1;r?g._data(n,t,r):(n.removeEventListener(e,i,!0),g._removeData(n,t))}}})),g.fn.extend({on:function(e,t,i,n,r){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(i=i||t,t=void 0),e)this.on(o,t,i,e[o],r);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=ne;else if(!n)return this;return 1===r&&(a=n,n=function(e){return g().off(e),a.apply(this,arguments)},n.guid=a.guid||(a.guid=g.guid++)),this.each((function(){g.event.add(this,e,n,i,t)}))},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,g(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(!1===t||"function"==typeof t)&&(i=t,t=void 0),!1===i&&(i=ne),this.each((function(){g.event.remove(this,e,i,t)}))},trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];return i?g.event.trigger(e,t,i,!0):void 0}});var ae="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",se=/ Eui\d+="(?:null|\d+)"/g,le=new RegExp("<(?:"+ae+")[\\s/>]","i"),ce=/^\s+/,ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,de=/<([\w:]+)/,pe=/<tbody/i,he=/<|&#?\w+;/,fe=/<(?:script|style|link)/i,ge=/checked\s*(?:[^=]|=\s*.checked.)/i,me=/^$|\/(?:java|ecma)script/i,ve=/^true\/(.*)/,ye=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,be={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:h.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},we=oe(j).appendChild(j.createElement("div"));function _e(e,t){var i,n,r=0,o=typeof e.getElementsByTagName!==L?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==L?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],i=e.childNodes||e;null!=(n=i[r]);r++)!t||g.nodeName(n,t)?o.push(n):g.merge(o,_e(n,t));return void 0===t||t&&g.nodeName(e,t)?g.merge([e],o):o}function xe(e){X.test(e.type)&&(e.defaultChecked=e.checked)}function $e(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ce(e){return e.type=(null!==g.find.attr(e,"type"))+"/"+e.type,e}function ke(e){var t=ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Se(e,t){for(var i,n=0;null!=(i=e[n]);n++)g._data(i,"globalEval",!t||g._data(t[n],"globalEval"))}function Ee(e,t){if(1===t.nodeType&&g.hasData(e)){var i,n,r,o=g._data(e),a=g._data(t,o),s=o.events;if(s)for(i in delete a.handle,a.events={},s)for(n=0,r=s[i].length;r>n;n++)g.event.add(t,i,s[i][n]);a.data&&(a.data=g.extend({},a.data))}}function je(e,t){var i,n,r;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!h.noCloneEvent&&t[g.expando]){for(n in(r=g._data(t)).events)g.removeEvent(t,n,r.handle);t.removeAttribute(g.expando)}"script"===i&&t.text!==e.text?(Ce(t).text=e.text,ke(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),h.html5Clone&&e.innerHTML&&!g.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&X.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}}be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,g.extend({clone:function(e,t,i){var n,r,o,a,s,l=g.contains(e.ownerDocument,e);if(h.html5Clone||g.isXMLDoc(e)||!le.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(we.innerHTML=e.outerHTML,we.removeChild(o=we.firstChild)),!(h.noCloneEvent&&h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(n=_e(o),s=_e(e),a=0;null!=(r=s[a]);++a)n[a]&&je(r,n[a]);if(t)if(i)for(s=s||_e(e),n=n||_e(o),a=0;null!=(r=s[a]);a++)Ee(r,n[a]);else Ee(e,o);return(n=_e(o,"script")).length>0&&Se(n,!l&&_e(e,"script")),n=s=r=null,o},buildFragment:function(e,t,i,n){for(var r,o,a,s,l,c,u,d=e.length,p=oe(t),f=[],m=0;d>m;m++)if((o=e[m])||0===o)if("object"===g.type(o))g.merge(f,o.nodeType?[o]:o);else if(he.test(o)){for(s=s||p.appendChild(t.createElement("div")),l=(de.exec(o)||["",""])[1].toLowerCase(),u=be[l]||be._default,s.innerHTML=u[1]+o.replace(ue,"<$1></$2>")+u[2],r=u[0];r--;)s=s.lastChild;if(!h.leadingWhitespace&&ce.test(o)&&f.push(t.createTextNode(ce.exec(o)[0])),!h.tbody)for(r=(o="table"!==l||pe.test(o)?"<table>"!==u[1]||pe.test(o)?0:s:s.firstChild)&&o.childNodes.length;r--;)g.nodeName(c=o.childNodes[r],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(g.merge(f,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else f.push(t.createTextNode(o));for(s&&p.removeChild(s),h.appendChecked||g.grep(_e(f,"input"),xe),m=0;o=f[m++];)if((!n||-1===g.inArray(o,n))&&(a=g.contains(o.ownerDocument,o),s=_e(p.appendChild(o),"script"),a&&Se(s),i))for(r=0;o=s[r++];)me.test(o.type||"")&&i.push(o);return s=null,p},cleanData:function(e,t){for(var i,n,r,a,s=0,l=g.expando,c=g.cache,u=h.deleteExpando,d=g.event.special;null!=(i=e[s]);s++)if((t||g.acceptData(i))&&(a=(r=i[l])&&c[r])){if(a.events)for(n in a.events)d[n]?g.event.remove(i,n):g.removeEvent(i,n,a.handle);c[r]&&(delete c[r],u?delete i[l]:typeof i.removeAttribute!==L?i.removeAttribute(l):i[l]=null,o.push(r))}}}),g.fn.extend({text:function(e){return K(this,(function(e){return void 0===e?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||j).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var i,n=e?g.filter(e,this):this,r=0;null!=(i=n[r]);r++)t||1!==i.nodeType||g.cleanData(_e(i)),i.parentNode&&(t&&g.contains(i.ownerDocument,i)&&Se(_e(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&g.cleanData(_e(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&g.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return K(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(se,""):void 0;if("string"==typeof e&&!fe.test(e)&&(h.htmlSerialize||!le.test(e))&&(h.leadingWhitespace||!ce.test(e))&&!be[(de.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ue,"<$1></$2>");try{for(;n>i;i++)1===(t=this[i]||{}).nodeType&&(g.cleanData(_e(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,g.cleanData(_e(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var i,n,r,o,a,l,c=0,u=this.length,d=this,p=u-1,f=e[0],m=g.isFunction(f);if(m||u>1&&"string"==typeof f&&!h.checkClone&&ge.test(f))return this.each((function(i){var n=d.eq(i);m&&(e[0]=f.call(this,i,n.html())),n.domManip(e,t)}));if(u&&(i=(l=g.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=i),i)){for(r=(o=g.map(_e(l,"script"),Ce)).length;u>c;c++)n=l,c!==p&&(n=g.clone(n,!0,!0),r&&g.merge(o,_e(n,"script"))),t.call(this[c],n,c);if(r)for(a=o[o.length-1].ownerDocument,g.map(o,ke),c=0;r>c;c++)n=o[c],me.test(n.type||"")&&!g._data(n,"globalEval")&&g.contains(a,n)&&(n.src?g._evalUrl&&g._evalUrl(n.src):g.globalEval((n.text||n.textContent||n.innerHTML||"").replace(ye,"")));l=i=null}return this}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var i,n=0,r=[],o=g(e),a=o.length-1;a>=n;n++)i=n===a?this:this.clone(!0),g(o[n])[t](i),l.apply(r,i.get());return this.pushStack(r)}}));var De,Te={};function Ie(e,t){var n,r=g(t.createElement(e)).appendTo(t.body),o=i.getDefaultComputedStyle&&(n=i.getDefaultComputedStyle(r[0]))?n.display:g.css(r[0],"display");return r.detach(),o}function Ae(e){var t=j,i=Te[e];return i||("none"!==(i=Ie(e,t))&&i||((t=((De=(De||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||De[0].contentDocument).document).write(),t.close(),i=Ie(e,t),De.detach()),Te[e]=i),i}!function(){var e;h.shrinkWrapBlocks=function(){return null!=e?e:(e=!1,(i=j.getElementsByTagName("body")[0])&&i.style?(t=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==L&&(t.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",t.appendChild(j.createElement("div")).style.width="5px",e=3!==t.offsetWidth),i.removeChild(n),e):void 0);var t,i,n}}();var Oe,Ne,Pe=/^margin/,Me=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Fe=/^(top|right|bottom|left)$/;function Re(e,t){return{get:function(){var i=e();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}i.getComputedStyle?(Oe=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):i.getComputedStyle(e,null)},Ne=function(e,t,i){var n,r,o,a,s=e.style;return a=(i=i||Oe(e))?i.getPropertyValue(t)||i[t]:void 0,i&&(""!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),Me.test(a)&&Pe.test(t)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o)),void 0===a?a:a+""}):j.documentElement.currentStyle&&(Oe=function(e){return e.currentStyle},Ne=function(e,t,i){var n,r,o,a,s=e.style;return null==(a=(i=i||Oe(e))?i[t]:void 0)&&s&&s[t]&&(a=s[t]),Me.test(a)&&!Fe.test(t)&&(n=s.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=n,o&&(r.left=o)),void 0===a?a:a+""||"auto"}),function(){var e,t,n,r,o,a,s;if((e=j.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=(n=e.getElementsByTagName("a")[0])&&n.style){function l(){var e,t,n,l;(t=j.getElementsByTagName("body")[0])&&t.style&&(e=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=o=!1,s=!0,i.getComputedStyle&&(r="1%"!==(i.getComputedStyle(e,null)||{}).top,o="4px"===(i.getComputedStyle(e,null)||{width:"4px"}).width,(l=e.appendChild(j.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",e.style.width="1px",s=!parseFloat((i.getComputedStyle(l,null)||{}).marginRight),e.removeChild(l)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",a=0===l[0].offsetHeight),t.removeChild(n))}t.cssText="float:left;opacity:.5",h.opacity="0.5"===t.opacity,h.cssFloat=!!t.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===e.style.backgroundClip,h.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing,g.extend(h,{reliableHiddenOffsets:function(){return null==a&&l(),a},boxSizingReliable:function(){return null==o&&l(),o},pixelPosition:function(){return null==r&&l(),r},reliableMarginRight:function(){return null==s&&l(),s}})}}(),g.swap=function(e,t,i,n){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=i.apply(e,n||[]),t)e.style[o]=a[o];return r};var Le=/alpha\([^)]*\)/i,qe=/opacity\s*=\s*([^)]*)/,He=/^(none|table(?!-c[ea]).+)/,ze=new RegExp("^("+W+")(.*)$","i"),Be=new RegExp("^([+-])=("+W+")","i"),Ge={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},We=["Webkit","O","Moz","ms"];function Ye(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,r=We.length;r--;)if((t=We[r]+i)in e)return t;return n}function Ve(e,t){for(var i,n,r,o=[],a=0,s=e.length;s>a;a++)(n=e[a]).style&&(o[a]=g._data(n,"olddisplay"),i=n.style.display,t?(o[a]||"none"!==i||(n.style.display=""),""===n.style.display&&V(n)&&(o[a]=g._data(n,"olddisplay",Ae(n.nodeName)))):(r=V(n),(i&&"none"!==i||!r)&&g._data(n,"olddisplay",r?i:g.css(n,"display"))));for(a=0;s>a;a++)(n=e[a]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?o[a]||"":"none"));return e}function Ke(e,t,i){var n=ze.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Xe(e,t,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=g.css(e,i+Y[o],!0,r)),n?("content"===i&&(a-=g.css(e,"padding"+Y[o],!0,r)),"margin"!==i&&(a-=g.css(e,"border"+Y[o]+"Width",!0,r))):(a+=g.css(e,"padding"+Y[o],!0,r),"padding"!==i&&(a+=g.css(e,"border"+Y[o]+"Width",!0,r)));return a}function Je(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Oe(e),a=h.boxSizing&&"border-box"===g.css(e,"boxSizing",!1,o);if(0>=r||null==r){if((0>(r=Ne(e,t,o))||null==r)&&(r=e.style[t]),Me.test(r))return r;n=a&&(h.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+Xe(e,t,i||(a?"border":"content"),n,o)+"px"}function Qe(e,t,i,n,r){return new Qe.prototype.init(e,t,i,n,r)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ne(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:h.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=g.camelCase(t),l=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=Ye(l,s)),a=g.cssHooks[t]||g.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:l[t];if("string"==(o=typeof i)&&(r=Be.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(g.css(e,t)),o="number"),null!=i&&i==i&&("number"!==o||g.cssNumber[s]||(i+="px"),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),!a||!("set"in a)||void 0!==(i=a.set(e,i,n))))try{l[t]=i}catch(e){}}},css:function(e,t,i,n){var r,o,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=Ye(e.style,s)),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,i)),void 0===o&&(o=Ne(e,t,n)),"normal"===o&&t in Ue&&(o=Ue[t]),""===i||i?(r=parseFloat(o),!0===i||g.isNumeric(r)?r||0:o):o}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,i,n){return i?He.test(g.css(e,"display"))&&0===e.offsetWidth?g.swap(e,Ge,(function(){return Je(e,t,n)})):Je(e,t,n):void 0},set:function(e,i,n){var r=n&&Oe(e);return Ke(0,i,n?Xe(e,t,n,h.boxSizing&&"border-box"===g.css(e,"boxSizing",!1,r),r):0)}}})),h.opacity||(g.cssHooks.opacity={get:function(e,t){return qe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,r=g.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===g.trim(o.replace(Le,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=Le.test(o)?o.replace(Le,r):o+" "+r)}}),g.cssHooks.marginRight=Re(h.reliableMarginRight,(function(e,t){return t?g.swap(e,{display:"inline-block"},Ne,[e,"marginRight"]):void 0})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[e+Y[n]+t]=o[n]||o[n-2]||o[0];return r}},Pe.test(e)||(g.cssHooks[e+t].set=Ke)})),g.fn.extend({css:function(e,t){return K(this,(function(e,t,i){var n,r,o={},a=0;if(g.isArray(t)){for(n=Oe(e),r=t.length;r>a;a++)o[t[a]]=g.css(e,t[a],!1,n);return o}return void 0!==i?g.style(e,t,i):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ve(this,!0)},hide:function(){return Ve(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){V(this)?g(this).show():g(this).hide()}))}}),g.Tween=Qe,Qe.prototype={constructor:Qe,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(g.cssNumber[i]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,i=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Qe.propHooks._default.set(this),this}},Qe.prototype.init.prototype=Qe.prototype,Qe.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[g.cssProps[e.prop]]||g.cssHooks[e.prop])?g.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Qe.propHooks.scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},g.fx=Qe.prototype.init,g.fx.step={};var Ze,et,tt=/^(?:toggle|show|hide)$/,it=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),nt=/queueHooks$/,rt=[function(e,t,i){var n,r,o,a,s,l,c,u=this,d={},p=e.style,f=e.nodeType&&V(e),m=g._data(e,"fxshow");for(n in i.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always((function(){u.always((function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=g.css(e,"display"))?g._data(e,"olddisplay")||Ae(e.nodeName):c)&&"none"===g.css(e,"float")&&(h.inlineBlockNeedsLayout&&"inline"!==Ae(e.nodeName)?p.zoom=1:p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.shrinkWrapBlocks()||u.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),t)if(r=t[n],tt.exec(r)){if(delete t[n],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;f=!0}d[n]=m&&m[n]||g.style(e,n)}else c=void 0;if(g.isEmptyObject(d))"inline"===("none"===c?Ae(e.nodeName):c)&&(p.display=c);else for(n in m?"hidden"in m&&(f=m.hidden):m=g._data(e,"fxshow",{}),o&&(m.hidden=!f),f?g(e).show():u.done((function(){g(e).hide()})),u.done((function(){var t;for(t in g._removeData(e,"fxshow"),d)g.style(e,t,d[t])})),d)a=lt(f?m[n]:0,n,u),n in m||(m[n]=a.start,f&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}],ot={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),r=it.exec(t),o=r&&r[3]||(g.cssNumber[e]?"":"px"),a=(g.cssNumber[e]||"px"!==o&&+n)&&it.exec(g.css(i.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+n||1;do{a/=s=s||".5",g.style(i.elem,e,a+o)}while(s!==(s=i.cur()/n)&&1!==s&&--l)}return r&&(a=i.start=+a||+n||0,i.unit=o,i.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),i}]};function at(){return setTimeout((function(){Ze=void 0})),Ze=g.now()}function st(e,t){var i,n={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n["margin"+(i=Y[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function lt(e,t,i){for(var n,r=(ot[t]||[]).concat(ot["*"]),o=0,a=r.length;a>o;o++)if(n=r[o].call(i,t,e))return n}function ct(e,t,i){var n,r,o=0,a=rt.length,s=g.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=Ze||at(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,a=c.tweens.length;a>o;o++)c.tweens[o].run(n);return s.notifyWith(e,[c,n,i]),1>n&&a?i:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Ze||at(),duration:i.duration,tweens:[],createTween:function(t,i){var n=g.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)c.tweens[i].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var i,n,r,o,a;for(i in e)if(r=t[n=g.camelCase(i)],o=e[i],g.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(a=g.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);a>o;o++)if(n=rt[o].call(c,e,u,c.opts))return n;return g.map(u,lt,c),g.isFunction(c.opts.start)&&c.opts.start.call(e,c),g.fx.timer(g.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}g.Animation=g.extend(ct,{tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,r=e.length;r>n;n++)i=e[n],ot[i]=ot[i]||[],ot[i].unshift(t)},prefilter:function(e,t){t?rt.unshift(e):rt.push(e)}}),g.speed=function(e,t,i){var n=e&&"object"==typeof e?g.extend({},e):{complete:i||!i&&t||g.isFunction(e)&&e,duration:e,easing:i&&t||t&&!g.isFunction(t)&&t};return n.duration=g.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in g.fx.speeds?g.fx.speeds[n.duration]:g.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){g.isFunction(n.old)&&n.old.call(this),n.queue&&g.dequeue(this,n.queue)},n},g.fn.extend({fadeTo:function(e,t,i,n){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=g.isEmptyObject(e),o=g.speed(t,i,n),a=function(){var t=ct(this,g.extend({},e),o);(r||g._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&0!=e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=g.timers,a=g._data(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&nt.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));(t||!i)&&g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=g._data(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=g.timers,a=n?n.length:0;for(i.finish=!0,g.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var i=g.fn[t];g.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(t,!0),e,n,r)}})),g.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),g.timers=[],g.fx.tick=function(){var e,t=g.timers,i=0;for(Ze=g.now();i<t.length;i++)(e=t[i])()||t[i]!==e||t.splice(i--,1);t.length||g.fx.stop(),Ze=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){et||(et=setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){clearInterval(et),et=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}}))},function(){var e,t,i,n,r;(t=j.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=t.getElementsByTagName("a")[0],r=(i=j.createElement("select")).appendChild(j.createElement("option")),e=t.getElementsByTagName("input")[0],n.style.cssText="top:1px",h.getSetAttribute="t"!==t.className,h.style=/top/.test(n.getAttribute("style")),h.hrefNormalized="/a"===n.getAttribute("href"),h.checkOn=!!e.value,h.optSelected=r.selected,h.enctype=!!j.createElement("form").enctype,i.disabled=!0,h.optDisabled=!r.disabled,(e=j.createElement("input")).setAttribute("value",""),h.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),h.radioValue="t"===e.value}();var ut=/\r/g;g.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=g.isFunction(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,g(this).val()):e)?r="":"number"==typeof r?r+="":g.isArray(r)&&(r=g.map(r,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=g.valHooks[r.type]||g.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ut,""):null==i?"":i:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e))}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:n.length,l=0>r?s:o?r:0;s>l;l++)if(((i=n[l]).selected||l===r)&&(h.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!g.nodeName(i.parentNode,"optgroup"))){if(t=g(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,r=e.options,o=g.makeArray(t),a=r.length;a--;)if(n=r[a],g.inArray(g.valHooks.option.get(n),o)>=0)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),r}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){return g.isArray(t)?e.checked=g.inArray(g(e).val(),t)>=0:void 0}},h.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var dt,pt,ht=g.expr.attrHandle,ft=/^(?:checked|selected)$/i,gt=h.getSetAttribute,mt=h.input;g.fn.extend({attr:function(e,t){return K(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===L?g.prop(e,t,i):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),n=g.attrHooks[t]||(g.expr.match.bool.test(t)?pt:dt)),void 0===i?n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=g.find.attr(e,t))?void 0:r:null!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):void g.removeAttr(e,t))},removeAttr:function(e,t){var i,n,r=0,o=t&&t.match(P);if(o&&1===e.nodeType)for(;i=o[r++];)n=g.propFix[i]||i,g.expr.match.bool.test(i)?mt&>||!ft.test(i)?e[n]=!1:e[g.camelCase("default-"+i)]=e[n]=!1:g.attr(e,i,""),e.removeAttribute(gt?i:n)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&g.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),pt={set:function(e,t,i){return!1===t?g.removeAttr(e,i):mt&>||!ft.test(i)?e.setAttribute(!gt&&g.propFix[i]||i,i):e[g.camelCase("default-"+i)]=e[i]=!0,i}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=ht[t]||g.find.attr;ht[t]=mt&>||!ft.test(t)?function(e,t,n){var r,o;return n||(o=ht[t],ht[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,ht[t]=o),r}:function(e,t,i){return i?void 0:e[g.camelCase("default-"+t)]?t.toLowerCase():null}})),mt&>||(g.attrHooks.value={set:function(e,t,i){return g.nodeName(e,"input")?void(e.defaultValue=t):dt&&dt.set(e,t,i)}}),gt||(dt={set:function(e,t,i){var n=e.getAttributeNode(i);return n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i)?t:void 0}},ht.id=ht.name=ht.coords=function(e,t,i){var n;return i?void 0:(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},g.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);return i&&i.specified?i.value:void 0},set:dt.set},g.attrHooks.contenteditable={set:function(e,t,i){dt.set(e,""!==t&&t,i)}},g.each(["width","height"],(function(e,t){g.attrHooks[t]={set:function(e,i){return""===i?(e.setAttribute(t,"auto"),i):void 0}}}))),h.style||(g.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var vt=/^(?:input|select|textarea|button|object)$/i,yt=/^(?:a|area)$/i;g.fn.extend({prop:function(e,t){return K(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return e=g.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),g.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!g.isXMLDoc(e))&&(t=g.propFix[t]||t,r=g.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}}}),h.hrefNormalized||g.each(["href","src"],(function(e,t){g.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),h.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this})),h.enctype||(g.propFix.enctype="encoding");var bt=/[\t\r\n\f]/g;g.fn.extend({addClass:function(e){var t,i,n,r,o,a,s=0,l=this.length,c="string"==typeof e&&e;if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,this.className))}));if(c)for(t=(e||"").match(P)||[];l>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(bt," "):" ")){for(o=0;r=t[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=g.trim(n),i.className!==a&&(i.className=a)}return this},removeClass:function(e){var t,i,n,r,o,a,s=0,l=this.length,c=0===arguments.length||"string"==typeof e&&e;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,this.className))}));if(c)for(t=(e||"").match(P)||[];l>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(bt," "):"")){for(o=0;r=t[o++];)for(;n.indexOf(" "+r+" ")>=0;)n=n.replace(" "+r+" "," ");a=e?g.trim(n):"",i.className!==a&&(i.className=a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(i){g(this).toggleClass(e.call(this,i,this.className,t),t)})):this.each((function(){if("string"===i)for(var t,n=0,r=g(this),o=e.match(P)||[];t=o[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(i===L||"boolean"===i)&&(this.className&&g._data(this,"__className__",this.className),this.className=this.className||!1===e?"":g._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(bt," ").indexOf(t)>=0)return!0;return!1}}),g.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(e,t){g.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var wt=g.now(),_t=/\?/;g.parseJSON=function(e){return i.JSON&&i.JSON.parse?i.JSON.parse(e+""):void g.error("No support JSON.parse function!")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{i.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var xt,$t,Ct=/#.*$/,kt=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Et=/^(?:GET|HEAD)$/,jt=/^\/\//,Dt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Tt={},It={},At="*/".concat("*");try{$t=location.href}catch(e){($t=j.createElement("a")).href="",$t=$t.href}function Ot(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(P)||[];if(g.isFunction(i))for(;n=o[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Nt(e,t,i,n){var r={},o=e===It;function a(s){var l;return r[s]=!0,g.each(e[s]||[],(function(e,s){var c=s(t,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Pt(e,t){var i,n,r=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&g.extend(!0,e,i),e}xt=Dt.exec($t.toLowerCase())||[],g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pt(Pt(e,g.ajaxSettings),t):Pt(g.ajaxSettings,e)},ajaxPrefilter:Ot(Tt),ajaxTransport:Ot(It),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,r,o,a,s,l,c,u=g.ajaxSetup({},t),d=u.context||u,p=u.context&&(d.nodeType||d.eui)?g(d):g.event,h=g.Deferred(),f=g.Callbacks("once memory"),m=u.statusCode||{},v={},y={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=St.exec(o);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return b||(e=y[i]=y[i]||e,v[e]=t),this},overrideMimeType:function(e){return b||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||w;return l&&l.abort(t),x(0,t),this}};if(h.promise(_).complete=f.add,_.success=_.done,_.error=_.fail,u.url=((e||u.url||$t)+"").replace(Ct,"").replace(jt,xt[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=g.trim(u.dataType||"*").toLowerCase().match(P)||[""],null==u.crossDomain&&(i=Dt.exec(u.url.toLowerCase()),u.crossDomain=!(!i||i[1]===xt[1]&&i[2]===xt[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(xt[3]||("http:"===xt[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=g.param(u.data,u.traditional)),Nt(Tt,u,t,_),2===b)return _;for(n in(s=g.event&&u.global)&&0==g.active++&&g.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Et.test(u.type),r=u.url,u.hasContent||(u.data&&(r=u.url+=(_t.test(r)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=kt.test(r)?r.replace(kt,"$1_="+wt++):r+(_t.test(r)?"&":"?")+"_="+wt++)),u.ifModified&&(g.lastModified[r]&&_.setRequestHeader("If-Modified-Since",g.lastModified[r]),g.etag[r]&&_.setRequestHeader("If-None-Match",g.etag[r])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&_.setRequestHeader("Content-Type",u.contentType),_.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+At+"; q=0.01":""):u.accepts["*"]),u.headers)_.setRequestHeader(n,u.headers[n]);if(u.beforeSend&&(!1===u.beforeSend.call(d,_,u)||2===b))return _.abort();for(n in w="abort",{success:1,error:1,complete:1})_[n](u[n]);if(l=Nt(It,u,t,_)){_.readyState=1,s&&p.trigger("ajaxSend",[_,u]),u.async&&u.timeout>0&&(a=setTimeout((function(){_.abort("timeout")}),u.timeout));try{b=1,l.send(v,x)}catch(e){if(!(2>b))throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,i,n){var c,v,y,w,x,$=t;2!==b&&(b=2,a&&clearTimeout(a),l=void 0,o=n||"",_.readyState=e>0?4:0,c=e>=200&&300>e||304===e,i&&(w=function(e,t,i){for(var n,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in i)o=l[0];else{for(a in i){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}n||(n=a)}o=o||n}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}(u,_,i)),w=function(e,t,i,n){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(u,w,_,c),c?(u.ifModified&&((x=_.getResponseHeader("Last-Modified"))&&(g.lastModified[r]=x),(x=_.getResponseHeader("etag"))&&(g.etag[r]=x)),204===e||"HEAD"===u.type?$="nocontent":304===e?$="notmodified":($=w.state,v=w.data,c=!(y=w.error))):(y=$,(e||!$)&&($="error",0>e&&(e=0))),_.status=e,_.statusText=(t||$)+"",c?h.resolveWith(d,[v,$,_]):h.rejectWith(d,[_,$,y]),_.statusCode(m),m=void 0,s&&p.trigger(c?"ajaxSuccess":"ajaxError",[_,u,c?v:y]),f.fireWith(d,[_,$]),s&&(p.trigger("ajaxComplete",[_,u]),--g.active||g.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,i){return g.get(e,t,i,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,i,n,r){return g.isFunction(i)&&(r=r||n,n=i,i=void 0),g.ajax({url:e,type:t,dataType:r,data:i,success:n})}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){if(g.isFunction(e))return this.each((function(t){g(this).wrapAll(e.call(this,t))}));if(this[0]){var t=g(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(i){g(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!h.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||g.css(e,"display"))},g.expr.filters.visible=function(e){return!g.expr.filters.hidden(e)};var Mt=/%20/g,Ft=/\[\]$/,Rt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,qt=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,i,n){var r;if(g.isArray(t))g.each(t,(function(t,r){i||Ft.test(e)?n(e,r):Ht(e+"["+("object"==typeof r?t:"")+"]",r,i,n)}));else if(i||"object"!==g.type(t))n(e,t);else for(r in t)Ht(e+"["+r+"]",t[r],i,n)}g.extend(g.regExps,{rCRLF:Rt,rsubmittable:qt,rsubmitterTypes:Lt,rcheckableType:X}),g.param=function(e,t){var i,n=[],r=function(e,t){t=g.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.eui&&!g.isPlainObject(e))g.each(e,(function(){r(this.name,this.value)}));else for(i in e)Ht(i,e[i],t,r);return n.join("&").replace(Mt,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&qt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!X.test(e))})).map((function(e,t){var i=g(this).val();return null==i?null:g.isArray(i)?g.map(i,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:i.replace(Rt,"\r\n")}})).get()}}),g.ajaxSettings.xhr=void 0!==i.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Ut()||function(){try{return new i.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Ut;var zt=0,Bt={},Gt=g.ajaxSettings.xhr();function Ut(){try{return new i.XMLHttpRequest}catch(e){}}i.attachEvent&&i.attachEvent("onunload",(function(){for(var e in Bt)Bt[e](void 0,!0)})),h.cors=!!Gt&&"withCredentials"in Gt,(Gt=h.ajax=!!Gt)&&g.ajaxTransport((function(e){var t;if(!e.crossDomain||h.cors)return{send:function(i,n){var r,o=e.xhr(),a=++zt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];for(r in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&o.setRequestHeader(r,i[r]+"");o.send(e.hasContent&&e.data||null),t=function(i,r){var s,l,c;if(t&&(r||4===o.readyState))if(delete Bt[a],t=void 0,o.onreadystatechange=g.noop,r)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&n(s,l,c,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Bt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),g.ajaxTransport("script",(function(e){if(e.crossDomain){var t,i=j.head||g("head")[0]||j.documentElement;return{send:function(n,r){(t=j.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||r(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Wt=[],Yt=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||g.expando+"_"+wt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(_t.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||g.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Wt.push(r)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"):void 0})),h.createHTMLDocument=function(){var e=i.document.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),g.parseHTML=function(e,t,i){return e&&"string"==typeof e?("boolean"==typeof t&&(i=t,t=!1),t||(h.createHTMLDocument?((n=(t=j.implementation.createHTMLDocument("")).createElement("base")).href=j.location.href,t.head.appendChild(n)):t=j),o=!i&&[],(r=C.exec(e))?[t.createElement(r[1])]:(r=g.buildFragment([e],t,o),o&&o.length&&g(o).remove(),g.merge([],r.childNodes))):null;var n,r,o};var Vt=g.fn.load;g.fn.load=function(e,t,i,n){if("string"!=typeof e&&Vt)return Vt.apply(this,arguments);var r,o,a,s=this,l=e.indexOf(" ");return l>=0&&(r=g.trim(e.slice(l,e.length)),e=e.slice(0,l)),g.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&g.ajax({url:e,type:a,dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?g("<div>").append(g.parseHTML(e)).find(r):e),n&&g.isFunction(n)&&n.call(null,$(r))})).complete(i&&function(e,t){s.each(i,o||[e.responseText,t,e])}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length};var Kt=i.document.documentElement;function Xt(e){return g.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}g.offset={setOffset:function(e,t,i){var n,r,o,a,s,l,c=g.css(e,"position"),u=g(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=g.css(e,"top"),l=g.css(e,"left"),("absolute"===c||"fixed"===c)&&g.inArray("auto",[o,l])>-1?(a=(n=u.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),g.isFunction(t)&&(t=t.call(e,i,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,i,n={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(t=o.documentElement,g.contains(t,r)?(typeof r.getBoundingClientRect!==L&&(n=r.getBoundingClientRect()),i=Xt(o),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(i=e.offset()),i.top+=g.css(e[0],"borderTopWidth",!0),i.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-g.css(n,"marginTop",!0),left:t.left-i.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Kt;e&&!g.nodeName(e,"html")&&"static"===g.css(e,"position");)e=e.offsetParent;return e||Kt}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i=/Y/.test(t);g.fn[e]=function(n){return K(this,(function(e,n,r){var o=Xt(e);return void 0===r?o?t in o?o[t]:o.document.documentElement[n]:e[n]:void(o?o.scrollTo(i?g(o).scrollLeft():r,i?r:g(o).scrollTop()):e[n]=r)}),e,n,arguments.length,null)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=Re(h.pixelPosition,(function(e,i){return i?(i=Ne(e,t),Me.test(i)?g(e).position()[t]+"px":i):void 0}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){g.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),a=i||(!0===n||!0===r?"margin":"border");return K(this,(function(t,i,n){var r;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?g.css(t,i,a):g.style(t,i,n,a)}),t,o?n:void 0,o,null)}}))})),g.fn.size=function(){return this.length},g.fn.andSelf=g.fn.addBack;var Jt={};Jt.fileapi=void 0!==g("<input type='file'/>").get(0).files,Jt.formdata=void 0!==i.FormData;var Qt=!!g.fn.prop;function Zt(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),g(e.target).ajaxSubmit(t))}function ei(e){var t=e.target,i=g(t);if(!i.is("[type=submit],[type=image]")){var n=i.closest("[type=submit]");if(0===n.length)return;t=n[0]}var r=this;if(r.clk=t,"image"==t.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof g.fn.offset){var o=i.offset();r.clk_x=e.pageX-o.left,r.clk_y=e.pageY-o.top}else r.clk_x=e.pageX-t.offsetLeft,r.clk_y=e.pageY-t.offsetTop;setTimeout((function(){r.clk=r.clk_x=r.clk_y=null}),100)}function ti(){if(g.fn.ajaxSubmit.debug){var e="[eui.form] "+Array.prototype.join.call(arguments,"");i.console&&i.console.log?i.console.log(e):i.opera&&i.opera.postError&&i.opera.postError(e)}}g.fn.attr2=function(){if(!Qt)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.eui||"string"==typeof e?e:this.attr.apply(this,arguments)},g.fn.ajaxSubmit=function(e){if(!this.length)return ti("ajaxSubmit: skipping submit process - no element selected"),this;var t,n,r,o=this;"function"==typeof e?e={success:e}:void 0===e&&(e={}),t=e.type||this.attr2("method"),(r=(r="string"==typeof(n=e.url||this.attr2("action"))?g.trim(n):"")||i.location.href||"")&&(r=(r.match(/^([^#]+)/)||[])[1]),e=g.extend(!0,{url:r,success:g.ajaxSettings.success,type:t||g.ajaxSettings.type,iframeSrc:/^https/i.test(i.location.href||"")?"javascript:false":"about:blank"},e);var a={};if(this.trigger("form-pre-serialize",[this,e,a]),a.veto)return ti("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return ti("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var s=e.traditional;void 0===s&&(s=g.ajaxSettings.traditional);var l,c=[],u=this.formToArray(e.semantic,c);if(e.data&&(e.extraData=e.data,l=g.param(e.data,s)),e.beforeSubmit&&!1===e.beforeSubmit(u,this,e))return ti("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[u,this,e,a]),a.veto)return ti("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var d=g.param(u,s);l&&(d=d?d+"&"+l:l),"GET"==e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+d,e.data=null):e.data=d;var p=[];if(e.resetForm&&p.push((function(){o.resetForm()})),e.clearForm&&p.push((function(){o.clearForm(e.includeHidden)})),!e.dataType&&e.target){var h=e.success||function(){};p.push((function(t){var i=e.replaceTarget?"replaceWith":"html";g(e.target)[i](t).each(h,arguments)}))}else e.success&&p.push(e.success);if(e.success=function(t,i,n){for(var r=e.context||this,a=0,s=p.length;s>a;a++)p[a].apply(r,[t,i,n||o,o])},e.error){var f=e.error;e.error=function(t,i,n){var r=e.context||this;f.apply(r,[t,i,n,o])}}if(e.complete){var m=e.complete;e.complete=function(t,i){var n=e.context||this;m.apply(n,[t,i,o])}}var v=g("input[type=file]:enabled",this).filter((function(){return""!==g(this).val()})).length>0,y="multipart/form-data",b=o.attr("enctype")==y||o.attr("encoding")==y,w=Jt.fileapi&&Jt.formdata;ti("fileAPI :"+w);var _,x=(v||b)&&!w;!1!==e.iframe&&(e.iframe||x)?e.closeKeepAlive?g.get(e.closeKeepAlive,(function(){_=C(u)})):_=C(u):_=(v||b)&&w?function(i){for(var n=new FormData,r=0;r<i.length;r++)n.append(i[r].name,i[r].value);if(e.extraData){var o=function(t){var i,n,r=g.param(t,e.traditional).split("&"),o=r.length,a=[];for(i=0;o>i;i++)r[i]=r[i].replace(/\+/g," "),n=r[i].split("="),a.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return a}(e.extraData);for(r=0;r<o.length;r++)o[r]&&n.append(o[r][0],o[r][1])}e.data=null;var a=g.extend(!0,{},g.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:t||"POST"});e.uploadProgress&&(a.xhr=function(){var t=g.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",(function(t){var i=0,n=t.loaded||t.position,r=t.total;t.lengthComputable&&(i=Math.ceil(n/r*100)),e.uploadProgress(t,n,r,i)}),!1),t}),a.data=null;var s=a.beforeSend;return a.beforeSend=function(t,i){e.formData?i.data=e.formData:i.data=n,s&&s.call(this,t,i)},g.ajax(a)}(u):g.ajax(e),o.removeData("jqxhr").data("jqxhr",_);for(var $=0;$<c.length;$++)c[$]=null;return this.trigger("form-submit-notify",[this,e]),this;function C(n){var r,a,s,l,u,d,p,h,f,m,v,y,b=o[0],w=g.Deferred();if(w.abort=function(e){h.abort(e)},n)for(a=0;a<c.length;a++)r=g(c[a]),Qt?r.prop("disabled",!1):r.removeAttr("disabled");if((s=g.extend(!0,{},g.ajaxSettings,e)).context=s.context||s,u="jqFormIO"+(new Date).getTime(),s.iframeTarget?(m=(d=g(s.iframeTarget)).attr2("name"))?u=m:d.attr2("name",u):(d=g('<iframe name="'+u+'" src="'+s.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=d[0],h={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";ti("aborting upload... "+t),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",s.iframeSrc),h.error=t,s.error&&s.error.call(s.context,h,t,e),l&&g.event.trigger("ajaxError",[h,s,t]),s.complete&&s.complete.call(s.context,h,t)}},(l=s.global)&&0==g.active++&&g.event.trigger("ajaxStart"),l&&g.event.trigger("ajaxSend",[h,s]),s.beforeSend&&!1===s.beforeSend.call(s.context,h,s))return s.global&&g.active--,w.reject(),w;if(h.aborted)return w.reject(),w;(f=b.clk)&&(m=f.name)&&!f.disabled&&(s.extraData=s.extraData||{},s.extraData[m]=f.value,"image"==f.type&&(s.extraData[m+".x"]=b.clk_x,s.extraData[m+".y"]=b.clk_y));var _=1,x=2;function $(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){ti("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){ti("cannot get iframe.contentDocument: "+i),t=e.document}return t}var C=g("meta[name=csrf-token]").attr("content"),k=g("meta[name=csrf-param]").attr("content");function S(){var e=o.attr2("target"),i=o.attr2("action"),n=o.attr("enctype")||o.attr("encoding")||"multipart/form-data";b.setAttribute("target",u),(!t||/post/i.test(t))&&b.setAttribute("method","POST"),i!=s.url&&b.setAttribute("action",s.url),s.skipEncodingOverride||t&&!/post/i.test(t)||o.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),s.timeout&&(y=setTimeout((function(){v=!0,A(_)}),s.timeout));var r=[];try{if(s.extraData)for(var a in s.extraData)s.extraData.hasOwnProperty(a)&&(g.isPlainObject(s.extraData[a])&&s.extraData[a].hasOwnProperty("name")&&s.extraData[a].hasOwnProperty("value")?r.push(g('<input type="hidden" name="'+s.extraData[a].name+'">').val(s.extraData[a].value).appendTo(b)[0]):r.push(g('<input type="hidden" name="'+a+'">').val(s.extraData[a]).appendTo(b)[0]));s.iframeTarget||d.appendTo("body"),p.attachEvent?p.attachEvent("onload",A):p.addEventListener("load",A,!1),setTimeout((function e(){try{var t=$(p).readyState;ti("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){ti("Server abort: ",e," (",e.name,")"),A(x),y&&clearTimeout(y),y=void 0}}),15);try{b.submit()}catch(e){j.createElement("form").submit.apply(b)}}finally{b.setAttribute("action",i),b.setAttribute("enctype",n),e?b.setAttribute("target",e):o.removeAttr("target"),g(r).remove()}}k&&C&&(s.extraData=s.extraData||{},s.extraData[k]=C),s.forceSync?S():setTimeout(S,10);var E,D,T,I=50;function A(e){if(!h.aborted&&!T){if((D=$(p))||(ti("cannot access response document"),e=x),e===_&&h)return h.abort("timeout"),void w.reject(h,"timeout");if(e==x&&h)return h.abort("server abort"),void w.reject(h,"error","server abort");if(D&&D.location.href!=s.iframeSrc||v){p.detachEvent?p.detachEvent("onload",A):p.removeEventListener("load",A,!1);var t,n="success";try{if(v)throw"timeout";var r="xml"==s.dataType||D.XMLDocument||g.isXMLDoc(D);if(ti("isXml="+r),!r&&i.opera&&(null===D.body||!D.body.innerHTML)&&--I)return ti("requeing onLoad callback, DOM not available"),void setTimeout(A,250);var o=D.body?D.body:D.documentElement;h.responseText=o?o.innerHTML:null,h.responseXML=D.XMLDocument?D.XMLDocument:D,r&&(s.dataType="xml"),h.getResponseHeader=function(e){return{"content-type":s.dataType}[e.toLowerCase()]},o&&(h.status=Number(o.getAttribute("status"))||h.status,h.statusText=o.getAttribute("statusText")||h.statusText);var a=(s.dataType||"").toLowerCase(),c=/(json|script|text)/.test(a);if(c||s.textarea){var u=D.getElementsByTagName("textarea")[0];if(u)h.responseText=u.value,h.status=Number(u.getAttribute("status"))||h.status,h.statusText=u.getAttribute("statusText")||h.statusText;else if(c){var f=D.getElementsByTagName("pre")[0],m=D.getElementsByTagName("body")[0];f?h.responseText=f.textContent?f.textContent:f.innerText:m&&(h.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==a&&!h.responseXML&&h.responseText&&(h.responseXML=O(h.responseText));try{E=P(h,a,s)}catch(e){n="parsererror",h.error=t=e||n}}catch(e){ti("error caught: ",e),n="error",h.error=t=e||n}h.aborted&&(ti("upload aborted"),n=null),h.status&&(n=h.status>=200&&h.status<300||304===h.status?"success":"error"),"success"===n?(s.success&&s.success.call(s.context,E,"success",h),w.resolve(h.responseText,"success",h),l&&g.event.trigger("ajaxSuccess",[h,s])):n&&(void 0===t&&(t=h.statusText),s.error&&s.error.call(s.context,h,n,t),w.reject(h,"error",t),l&&g.event.trigger("ajaxError",[h,s,t])),l&&g.event.trigger("ajaxComplete",[h,s]),l&&!--g.active&&g.event.trigger("ajaxStop"),s.complete&&s.complete.call(s.context,h,n),T=!0,s.timeout&&clearTimeout(y),setTimeout((function(){s.iframeTarget?d.attr("src",s.iframeSrc):d.remove(),h.responseXML=null}),100)}}}var O=g.parseXML||function(e,t){return i.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},N=g.parseJSON||function(e){return i.eval("("+e+")")},P=function(e,t,i){var n=e.getResponseHeader("content-type")||"",r="xml"===t||!t&&n.indexOf("xml")>=0,o=r?e.responseXML:e.responseText;return r&&"parsererror"===o.documentElement.nodeName&&g.error&&g.error("parsererror"),i&&i.dataFilter&&(o=i.dataFilter(o,t)),"string"==typeof o&&("json"===t||!t&&n.indexOf("json")>=0?o=N(o):("script"===t||!t&&n.indexOf("javascript")>=0)&&g.globalEval(o)),o};return w}},g.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&g.isFunction(g.fn.on),!e.delegation&&0===this.length){var t={s:this.selector,c:this.context};return!g.isReady&&t.s?(ti("DOM not ready, queuing ajaxForm"),g((function(){g(t.s,t.c).ajaxForm(e)})),this):(ti("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)")),this)}return e.delegation?(g(j).off("submit.form-plugin",this.selector,Zt).off("click.form-plugin",this.selector,ei).on("submit.form-plugin",this.selector,e,Zt).on("click.form-plugin",this.selector,e,ei),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,Zt).bind("click.form-plugin",e,ei)},g.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},g.fn.formToArray=function(e,t){var i=[];if(0===this.length)return i;var n,r,o,a,s,l,c,u,d=this[0],p=this.attr("id"),h=e?d.getElementsByTagName("*"):d.elements;if(h&&!/MSIE [678]/.test(navigator.userAgent)&&(h=g(h).get()),p&&(n=g(':input[form="'+p+'"]').get()).length&&(h=(h||[]).concat(n)),!h||!h.length)return i;for(r=0,c=h.length;c>r;r++)if((a=(l=h[r]).name)&&!l.disabled)if(e&&d.clk&&"image"==l.type)d.clk==l&&(i.push({name:a,value:g(l).val(),type:l.type}),i.push({name:a+".x",value:d.clk_x},{name:a+".y",value:d.clk_y}));else if((s=g.fieldValue(l,!0))&&s.constructor==Array)for(t&&t.push(l),o=0,u=s.length;u>o;o++)i.push({name:a,value:s[o]});else if(Jt.fileapi&&"file"==l.type){t&&t.push(l);var f=l.files;if(f.length)for(o=0;o<f.length;o++)i.push({name:a,value:f[o],type:l.type});else i.push({name:a,value:"",type:l.type})}else null!=s&&(t&&t.push(l),i.push({name:a,value:s,type:l.type,required:l.required}));if(!e&&d.clk){var m=g(d.clk),v=m[0];(a=v.name)&&!v.disabled&&"image"==v.type&&(i.push({name:a,value:m.val()}),i.push({name:a+".x",value:d.clk_x},{name:a+".y",value:d.clk_y}))}return i},g.fn.formFields=function(e,t){var i=[];if(0===this.length)return i;var n,r,o,a,s,l=this[0],c=this.attr("id"),u=e?l.getElementsByTagName("*"):l.elements;if(u&&!/MSIE [678]/.test(navigator.userAgent)&&(u=g(u).get()),c&&(n=g(':input[form="'+c+'"]').get()).length&&(u=(u||[]).concat(n)),!u||!u.length)return i;for(r=0,s=u.length;s>r;r++)(o=(a=u[r]).id||a.name)&&i.push(o);return g.unique(i)},g.fn.formSerialize=function(e){return g.param(this.formToArray(e))},g.fn.fieldSerialize=function(e){var t=[];return this.each((function(){var i=this.name;if(i){var n=g.fieldValue(this,e);if(n&&n.constructor==Array)for(var r=0,o=n.length;o>r;r++)t.push({name:i,value:n[r]});else null!=n&&t.push({name:this.name,value:n})}})),g.param(t)},g.fn.fieldValue=function(e){for(var t=[],i=0,n=this.length;n>i;i++){var r=this[i],o=g.fieldValue(r,e);null==o||o.constructor==Array&&!o.length||(o.constructor==Array?g.merge(t,o):t.push(o))}return t},g.fieldValue=function(e,t){var i=e.name,n=e.type,r=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!i||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==r&&-1==e.selectedIndex))return null;if("select"==r){var o=e.selectedIndex;if(0>o)return null;for(var a=[],s=e.options,l="select-one"==n,c=l?o+1:s.length,u=l?o:0;c>u;u++){var d=s[u];if(d.selected){var p=d.value;if(p||(p=d.attributes&&d.attributes.value&&!d.attributes.value.specified?d.text:d.value),l)return p;a.push(p)}}return a}return g(e).val()},g.fn.clearForm=function(e){return this.each((function(){g("input,select,textarea",this).clearFields(e)}))},g.fn.clearFields=g.fn.clearInputs=function(e){var t=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each((function(){var i=this.type,n=this.tagName.toLowerCase();t.test(i)||"textarea"==n?this.value="":"checkbox"==i||"radio"==i?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==i?/MSIE/.test(navigator.userAgent)?g(this).replaceWith(g(this).clone(!0)):g(this).val(""):e&&(!0===e&&/hidden/.test(i)||"string"==typeof e&&g(this).is(e))&&(this.value="")}))},g.fn.resetForm=function(){return this.each((function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()}))},g.fn.enable=function(e){return void 0===e&&(e=!0),this.each((function(){this.disabled=!e}))},g.fn.selected=function(e){return void 0===e&&(e=!0),this.each((function(){var t=this.type;if("checkbox"==t||"radio"==t)this.checked=e;else if("option"==this.tagName.toLowerCase()){var i=g(this).parent("select");e&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=e}}))},g.fn.ajaxSubmit.debug=!1;var ii,ni=g([]),ri=g.resize=g.extend(g.resize,{}),oi="setTimeout",ai="resize",si=ai+"-special-event",li="delay",ci="throttleWindow";function ui(){ii=i[oi]((function(){ni.each((function(){var e=g(this),t=e.width(),i=e.height(),n=g.data(this,si);(t!==n.w||i!==n.h)&&e.trigger(ai,[n.w=t,n.h=i])})),ui()}),ri[li])}ri[li]=250,ri[ci]=!0,g.event.special[ai]={setup:function(){if(!ri[ci]&&this[oi])return!1;var e=g(this);ni=ni.add(e),g.data(this,si,{w:e.width(),h:e.height()}),1===ni.length&&ui()},teardown:function(){if(!ri[ci]&&this[oi])return!1;var e=g(this);ni=ni.not(e),e.removeData(si),ni.length||clearTimeout(ii)},add:function(e){if(!ri[ci]&&this[oi])return!1;var t;function i(e,i,n){var r=g(this),o=g.data(this,si);o.w=void 0!==i?i:r.width(),o.h=void 0!==n?n:r.height(),t.apply(this,arguments)}return g.isFunction(e)?(t=e,i):(t=e.handler,void(e.handler=i))}},d=Object.prototype.toString;var di,pi=!0,hi=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/;for(di in g.global=this,{toString:1})pi=null;pi&&(pi=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]),g.enumerables=pi,g.apply=function(e,t,i){if(i&&g.apply(e,i),e&&t&&"object"==typeof t){var n,r,o;for(n in t)e[n]=t[n];if(pi)for(r=pi.length;r--;)o=pi[r],t.hasOwnProperty(o)&&(e[o]=t[o])}return e},g.postMessage=function(e,t,i){if(arguments.length>1){var n=g.getFrameContent(e),r=g.Array.toArray(arguments,1);1===r.length&&r.push("/"),g.each(n,(function(e,t){t.postMessage.apply(t,r)}))}else g.Logger.log("error","The postMessage function must at least 2 parameter !")},g.getFrameContent=function(e){var t=[];return e.eui?t=e.map((function(){return this.contentWindow})):t.push(e),t},g.extend({USE_NATIVE_JSON:!1,emptyFn:function(){},emptyString:new String,applyIf:function(e,t){var i;if(e)for(i in t)void 0===e[i]&&(e[i]=t[i]);return e},isIterable:function(e){return!(!e||"number"!=typeof e.length||"string"==typeof e||"function"==typeof e)&&(e.propertyIsEnumerable?!(!e.hasOwnProperty("length")||e.propertyIsEnumerable("length"))||hi.test(d.call(e)):!!e.item)},isObject:"[object Object]"===d.call(null)?function(e){return null!=e&&"[object Object]"===d.call(e)&&void 0===e.ownerDocument}:function(e){return"[object Object]"===d.call(e)},isEmpty:function(e,t){return null==e||!t&&""===e||g.isArray(e)&&0===e.length},isDate:function(e){return"[object Date]"===d.call(e)},isSimpleObject:function(e){return e instanceof Object&&e.constructor===Object},isPrimitive:function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},isPrimitiveArray:function(e){return 0==e.length||g.Array.some(e,(function(e){return this.isPrimitive(e)}))},isNumber:function(e){return"number"==typeof e&&isFinite(e)},isString:function(e){return"string"==typeof e},isBoolean:function(e){return"boolean"==typeof e},isDefined:function(e){return void 0!==e},encodeToJsonStr:function(e){return"{"+e+"}"},escapeRe:function(e){return e.replace(/([-.*+?\^${}()|\[\]\/\\])/g,"\\$1")},copyTo:function(e,t,i,n){"string"==typeof i&&(i=i.split(/[,;\s]/));var r,o,a=i?i.length:0;for(r=0;a>r;r++)o=i[r],(n||t.hasOwnProperty(o))&&(e[o]=t[o]);return e},partition:function(e,t){var i,n,r=[[],[]],o=e.length;for(i=0;o>i;i++)n=e[i],r[t&&t(n,i,e)||!t&&n?0:1].push(n);return r},invoke:function(e,t){var i,n,r=[],o=Array.prototype.slice.call(arguments,2),a=e.length;for(i=0;a>i;i++)(n=e[i])&&"function"==typeof n[t]?r.push(n[t].apply(n,o)):r.push(void 0);return r},functionFactory:function(){var e=Array.prototype.slice.call(arguments);return Function.prototype.constructor.apply(Function.prototype,e)}}),g.util={clone:function(e){var t,i,n,r,o,a;if(null==e)return e;if(e.nodeType&&e.cloneNode)return e.cloneNode(!0);if("[object Date]"===(t=d.call(e)))return new Date(e.getTime());if("[object Array]"===t)for(i=e.length,o=[];i--;)o[i]=g.util.clone(e[i]);else if("[object Object]"===t&&e.constructor===Object){for(a in o={},e)o[a]=g.util.clone(e[a]);if(pi)for(n=pi.length;n--;)r=pi[n],e.hasOwnProperty(r)&&(o[r]=e[r])}return o||e}},g.String=function(){var e,t,i,n,r=/^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+$/g,o=/('|\\)/g,a=/\{(\d+)\}/g,s=/([-.*+?\^${}()|\[\]\/\\])/g,l=/^\s+|\s+$/g,c=/\s+/,u=/(^[^a-z]*|[^\w])/gi,d=function(t,i){return e[i]},p=function(e,i){return i in t?t[i]:String.fromCharCode(parseInt(i.substr(2),10))},h=function(e,t){return null!=e&&null!=t&&t.length<=e.length};return{insert:function(e,t,i){if(!e)return t;if(!t)return e;var n=e.length;return i||0===i||(i=n),0>i&&(i=(i*=-1)>=n?0:n-i),0===i?e=t+e:i>=e.length?e+=t:e=e.substr(0,i)+t+e.substr(i),e},startsWith:function(e,t,i){var n=h(e,t);return n&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),n=0===e.lastIndexOf(t,0)),n},endsWith:function(e,t,i){var n=h(e,t);return n&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),n=-1!==e.indexOf(t,e.length-t.length)),n},createVarName:function(e){return e.replace(u,"")},htmlEncode:function(e){return e?String(e).replace(i,d):e},htmlDecode:function(e){return e?String(e).replace(n,p):e},addCharacterEntities:function(r){var o,a,s=[],l=[];for(o in r)a=r[o],t[o]=a,e[a]=o,s.push(a),l.push(o);i=new RegExp("("+s.join("|")+")","g"),n=new RegExp("("+l.join("|")+"|&#[0-9]{1,5};)","g")},resetCharacterEntities:function(){e={},t={},this.addCharacterEntities({"&":"&",">":">","<":"<",""":'"',"'":"'"})},urlAppend:function(e,t){return g.isEmpty(t)?e:e+(-1===e.indexOf("?")?"?":"&")+t},trim:function(e){return e.replace(r,"")},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1)},uncapitalize:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},ellipsis:function(e,t,i){if(e&&e.length>t){if(i){var n=e.substr(0,t-2),r=Math.max(n.lastIndexOf(" "),n.lastIndexOf("."),n.lastIndexOf("!"),n.lastIndexOf("?"));if(-1!==r&&r>=t-15)return n.substr(0,r)+"..."}return e.substr(0,t-3)+"..."}return e},escapeRegex:function(e){return e.replace(s,"\\$1")},escape:function(e){return e.replace(o,"\\$1")},toggle:function(e,t,i){return e===t?i:t},leftPad:function(e,t,i){var n=String(e);for(i=i||" ";n.length<t;)n=i+n;return n},format:function(e){var t=g.Array.toArray(arguments,1);return e.replace(a,(function(e,i){return t[i]}))},repeat:function(e,t,i){1>t&&(t=0);for(var n=[],r=t;r--;)n.push(e);return n.join(i||"")},splitWords:function(e){return e&&"string"==typeof e?e.replace(l,"").split(c):e||[]}}}(),g.String.resetCharacterEntities(),g.htmlEncode=g.String.htmlEncode,g.htmlDecode=g.String.htmlDecode,g.urlAppend=g.String.urlAppend,g.formatStr=g.String.format,function(){var e,t=g.util.Format={},i=/<\/?[^>]+>/gi,n=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/gi,r=/\r?\n/g,o=/^#+$/,a=/[\d,\.#]+/,s=/[^\d\.#]/g,l={};g.apply(t,{thousandSeparator:",",decimalSeparator:".",currencyPrecision:2,currencySign:"$",currencyAtEnd:!1,undef:function(e){return void 0!==e?e:""},defaultValue:function(e,t){return void 0!==e&&""!==e?e:t},substr:function(e,t,i){return String(e).substr(t,i)},lowercase:function(e){return String(e).toLowerCase()},uppercase:function(e){return String(e).toUpperCase()},usMoney:function(e){return t.currency(e,"$",2)},currency:function(e,i,n,r){var o="",a=",0",s=0;for(0>(e-=0)&&(e=-e,o="-"),a+=(n=g.isDefined(n)?n:t.currencyPrecision)>0?".":"";n>s;s++)a+="0";return e=t.number(e,a),!0===(r||t.currencyAtEnd)?g.String.format("{0}{1}{2}",o,e,i||t.currencySign):g.String.format("{0}{1}{2}",o,i||t.currencySign,e)},date:function(e,t){return e?(g.isDate(e)||(e=new Date(Date.parse(e))),g.Date.dateFormat(e,t||g.Date.defaultFormat)):""},dateRenderer:function(e){return function(i){return t.date(i,e)}},stripTags:function(e){return e?String(e).replace(i,""):e},stripScripts:function(e){return e?String(e).replace(n,""):e},fileSize:function(){var e=1048576,t=1073741824;return function(i){return 1024>i?1===i?"1 byte":i+" bytes":e>i?Math.round(10*i/1024)/10+" KB":t>i?Math.round(10*i/e)/10+" MB":Math.round(10*i/t)/10+" GB"}}(),math:function(){var e={};return function(t,i){return e[i]||(e[i]=g.functionFactory("v","return v "+i+";")),e[i](t)}}(),round:function(e,t){var i=Number(e);return"number"==typeof t&&(t=Math.pow(10,t),i=Math.round(e*t)/t),i},number:function(i,n){if(!n)return i;var r=l[n];if(!r){var c,u,d,p,h,f=n,m=t.thousandSeparator,v=t.decimalSeparator,y=0;"/i"==n.substr(n.length-2)?(e||(e=new RegExp("[^\\d\\"+t.decimalSeparator+"]","g")),c=-1!=(n=n.substr(0,n.length-2)).indexOf(m),u=n.replace(e,"").split(v)):(c=-1!=n.indexOf(","),u=n.replace(s,"").split(".")),d=n.replace(a,""),u.length>2?console.log("Invalid number format, should have no more than 1 decimal"):2===u.length&&(y=u[1].length,p=o.test(u[1])),h=["var utilFormat=Eui.util.Format,extNumber=Eui.Number,neg,fnum,parts"+(c?",thousandSeparator,thousands=[],j,n,i":"")+(d?',formatString="'+n+'",formatPattern=/[\\d,\\.#]+/':"")+(p?",trailingZeroes=/\\.?0+$/;":";")+'return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return "";neg=v<0;',"fnum=Eui.Number.toFixed(Math.abs(v), "+y+");"],c?(y&&(h[h.length]='parts=fnum.split(".");',h[h.length]="fnum=parts[0];"),h[h.length]="if(v>=1000) {",h[h.length]="thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i<j;i+=n){if(i!==0){n=3;}thousands[thousands.length]=fnum.substr(i,n);}fnum=thousands.join(thousandSeparator);}",y&&(h[h.length]="fnum += utilFormat.decimalSeparator+parts[1];")):y&&(h[h.length]='if(utilFormat.decimalSeparator!=="."){parts=fnum.split(".");fnum=parts[0]+utilFormat.decimalSeparator+parts[1];}'),p&&(h[h.length]='fnum=fnum.replace(trailingZeroes,"");'),h[h.length]='if(neg&&fnum!=="'+(y?"0."+g.String.repeat("0",y):"0")+'")fnum="-"+fnum;',h[h.length]="return ",h[h.length]=d?"formatString.replace(formatPattern, fnum);":"fnum;",h[h.length]="};",r=l[f]=g.functionFactory("Eui",h.join(""))(g)}return r(i)},numberRenderer:function(e){return function(i){return t.number(i,e)}},attributes:function(e){if("object"==typeof e){var t,i=[];for(t in e)i.push(t,'="',"style"===t?g.DomHelper.generateStyles(e[t]):g.htmlEncode(e[t]),'"');e=i.join("")}return e||""},plural:function(e,t,i){return e+" "+(1==e?t:i||t+"s")},nl2br:function(e){return g.isEmpty(e)?"":e.replace(r,"<br/>")},capitalize:g.String.capitalize,ellipsis:g.String.ellipsis,format:g.String.format,htmlDecode:g.String.htmlDecode,htmlEncode:g.String.htmlEncode,leftPad:g.String.leftPad,trim:g.String.trim,parseBox:function(e){if("number"==typeof(e=e||0))return{top:e,right:e,bottom:e,left:e};var t=e.split(" "),i=t.length;return 1==i?t[1]=t[2]=t[3]=t[0]:2==i?(t[2]=t[0],t[3]=t[1]):3==i&&(t[3]=t[1]),{top:parseInt(t[0],10)||0,right:parseInt(t[1],10)||0,bottom:parseInt(t[2],10)||0,left:parseInt(t[3],10)||0}},escapeRegex:function(e){return e.replace(/([\-.*+?\^${}()|\[\]\/\\])/g,"\\$1")}}),g.extend({toSentence:function(e,t){var i,n,r=e.length;return 1>=r?e[0]:(i=e.slice(0,r-1),n=e[r-1],g.util.Format.format("{0} {1} {2}",i.join(", "),t||"and",n))}})}(),g.Number=function(){var e="1"!==.9.toFixed(),t=Math;return{constrain:function(e,t,i){var n=parseFloat(e);return t>n?t:n>i?i:n},snap:function(e,t,i,n){var r;return void 0===e||i>e?i||0:(t&&0!=(r=e%t)&&(e-=r,2*r>=t?e+=t:-t>2*r&&(e-=t)),this.constrain(e,i,n))},snapInRange:function(e,t,i,n){var r;return i=i||0,void 0===e||i>e?i:(t&&(r=(e-i)%t)&&(e-=r,(r*=2)>=t&&(e+=t)),void 0!==n&&e>(n=this.snapInRange(n,t,i))&&(e=n),e)},toFixed:e?function(e,i){i=i||0;var n=t.pow(10,i);return(t.round(e*n)/n).toFixed(i)}:function(e,t){return e.toFixed(t)},from:function(e,t){return isFinite(e)&&(e=parseFloat(e)),isNaN(e)?t:e},randomInt:function(e,i){return t.floor(t.random()*(i-e+1)+e)},correctFloat:function(e){return parseFloat(e.toPrecision(14))}}}(),g.num=function(){return g.Number.from.apply(this,arguments)},function(){var e,t,n,r,o=Array.prototype,a=o.slice,s=function(){var e,t=[],i=20;if(!t.splice)return!1;for(;i--;)t.push("A");return t.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F"),e=t.length,t.splice(13,0,"XXX"),e+1===t.length}(),l="forEach"in o,c="map"in o,u="indexOf"in o,d="every"in o,p="some"in o,h="filter"in o,f=function(){var e=[1,2,3,4,5].sort((function(){return 0}));return 1===e[0]&&2===e[1]&&3===e[2]&&4===e[3]&&5===e[4]}(),m=!0;try{void 0!==j&&a.call(j.getElementsByTagName("body"))}catch(e){m=!1}function v(e,t){return 0>t?Math.max(0,e.length+t):Math.min(e.length,t)}function y(e,t,i,n){var r,o,a,s,l,c,u=n?n.length:0,d=e.length,p=v(e,t);if(p===d)u&&e.push.apply(e,n);else{if(s=d-(o=p+(r=Math.min(i,d-p))),l=d-r,o>(a=o+u-r))for(c=0;s>c;++c)e[a+c]=e[o+c];else if(a>o)for(c=s;c--;)e[a+c]=e[o+c];if(u&&p===l)e.length=l,e.push.apply(e,n);else for(e.length=l+u,c=0;u>c;++c)e[p+c]=n[c]}return e}function b(e,t,i){var n=v(e,t),r=e.slice(t,v(e,n+i));return arguments.length<4?y(e,n,i):y(e,n,i,a.call(arguments,3)),r}t=s?function(e,t,i){return e.splice(t,i),e}:function(e,t,i){return y(e,t,i)},n=s?function(e,t,i,n){return n&&n.length?0!==t||i?t<e.length?e.splice.apply(e,[t,i].concat(n)):e.push.apply(e,n):e.unshift.apply(e,n):e.splice(t,i),e}:y,r=s?function(e){return e.splice.apply(e,a.call(arguments,1))}:b,e=g.Array={each:function(t,i,n,r){var o,a=(t=e.from(t)).length;if(!0!==r){for(o=0;a>o;o++)if(!1===i.call(n||t[o],t[o],o,t))return o}else for(o=a-1;o>-1;o--)if(!1===i.call(n||t[o],t[o],o,t))return o;return!0},forEach:l?function(e,t,i){e.forEach(t,i)}:function(e,t,i){for(var n=0,r=e.length;r>n;n++)t.call(i,e[n],n,e)},indexOf:u?function(e,t,i){return o.indexOf.call(e,t,i)}:function(e,t,i){var n,r=e.length;for(n=0>i?Math.max(0,r+i):i||0;r>n;n++)if(e[n]===t)return n;return-1},contains:u?function(e,t){return-1!==o.indexOf.call(e,t)}:function(e,t){var i,n;for(i=0,n=e.length;n>i;i++)if(e[i]===t)return!0;return!1},toArray:function(e,t,i){if(!e||!e.length)return[];if("string"==typeof e&&(e=e.split("")),m)return a.call(e,t||0,i||e.length);var n,r=[];for(t=t||0,i=i?0>i?e.length+i:i:e.length,n=t;i>n;n++)r.push(e[n]);return r},pluck:function(e,t){var i,n,r,o=[];for(i=0,n=e.length;n>i;i++)r=e[i],o.push(r[t]);return o},map:c?function(e,t,i){return t||console.error("Eui.Array.map must have a callback function passed as second argument."),e.map(t,i)}:function(e,t,i){t||console.error("Eui.Array.map must have a callback function passed as second argument.");for(var n=[],r=0,o=e.length;o>r;r++)n[r]=t.call(i,e[r],r,e);return n},every:d?function(e,t,i){return t||g.Error.raise("Eui.Array.every must have a callback function passed as second argument."),e.every(t,i)}:function(e,t,i){t||g.Error.raise("Eui.Array.every must have a callback function passed as second argument.");for(var n=0,r=e.length;r>n;++n)if(!t.call(i,e[n],n,e))return!1;return!0},some:p?function(e,t,i){return t||g.Error.raise("Eui.Array.some must have a callback function passed as second argument."),e.some(t,i)}:function(e,t,i){t||g.Error.raise("Eui.Array.some must have a callback function passed as second argument.");for(var n=0,r=e.length;r>n;++n)if(t.call(i,e[n],n,e))return!0;return!1},equals:function(e,t){var i,n=e.length,r=t.length;if(e===t)return!0;if(n!==r)return!1;for(i=0;n>i;++i)if(e[i]!==t[i])return!1;return!0},clean:function(e){for(var t,i=[],n=0,r=e.length;r>n;n++)t=e[n],g.isEmpty(t)||i.push(t);return i},unique:function(t){for(var i,n=[],r=0,o=t.length;o>r;r++)i=t[r],-1===e.indexOf(n,i)&&n.push(i);return n},filter:h?function(e,t,n){return!t&&i.console&&console.log("Eui.Array.filter must have a filter function passed as second argument."),e.filter(t,n)}:function(e,t,n){!t&&i.console&&console.log("Eui.Array.filter must have a filter function passed as second argument.");for(var r=[],o=0,a=e.length;a>o;o++)t.call(n,e[o],o,e)&&r.push(e[o]);return r},findBy:function(e,t,i){for(var n=0,r=e.length;r>n;n++)if(t.call(i||e,e[n],n))return e[n];return null},from:function(t,i){if(null==t)return[];if(g.isArray(t))return i?a.call(t):t;var n=typeof t;return!t||void 0===t.length||"string"===n||"function"===n&&t.apply?[t]:e.toArray(t)},remove:function(i,n){var r=e.indexOf(i,n);return-1!==r&&t(i,r,1),i},include:function(t,i){e.contains(t,i)||t.push(i)},clone:function(e){return a.call(e)},merge:function(){var t,i,n=a.call(arguments),r=[];for(t=0,i=n.length;i>t;t++)r=r.concat(n[t]);return e.unique(r)},intersect:function(){var i,n,r,o,s,l,c,u,d,p,h,f,g=[],m=a.call(arguments);if(!m.length)return g;for(i=m.length,p=s=0;i>p;p++)l=m[p],(!o||l.length<o.length)&&(o=l,s=p);for(o=e.unique(o),t(m,s,1),c=o.length,i=m.length,p=0;c>p;p++){for(u=o[p],d=0,h=0;i>h;h++)for(r=(n=m[h]).length,f=0;r>f;f++)if(u===n[f]){d++;break}d===i&&g.push(u)}return g},difference:function(e,i){var n,r,o,s=a.call(e),l=s.length;for(n=0,o=i.length;o>n;n++)for(r=0;l>r;r++)s[r]===i[n]&&(t(s,r,1),r--,l--);return s},slice:[1,2].slice(1,void 0).length?function(e,t,i){return a.call(e,t,i)}:function(e,t,i){return void 0===t?a.call(e):void 0===i?a.call(e,t):a.call(e,t,i)},sort:f?function(e,t){return t?e.sort(t):e.sort()}:function(e,t){for(var i,n,r,o=e.length,a=0;o>a;a++){for(n=a,i=a+1;o>i;i++)t?0>t(e[i],e[n])&&(n=i):e[i]<e[n]&&(n=i);n!==a&&(r=e[a],e[a]=e[n],e[n]=r)}return e},flatten:function(e){var t=[];return function e(i){var n,r,o;for(n=0,r=i.length;r>n;n++)o=i[n],g.isArray(o)?e(o):t.push(o);return t}(e)},min:function(e,t){var i,n,r,o=e[0];for(i=0,n=e.length;n>i;i++)r=e[i],t?1===t(o,r)&&(o=r):o>r&&(o=r);return o},max:function(e,t){var i,n,r,o=e[0];for(i=0,n=e.length;n>i;i++)r=e[i],t?-1===t(o,r)&&(o=r):r>o&&(o=r);return o},mean:function(t){return t.length>0?e.sum(t)/t.length:void 0},sum:function(e){var t,i,n=0;for(t=0,i=e.length;i>t;t++)n+=e[t];return n},toMap:function(e,t,i){var n={},r=e.length;if(t)if("string"==typeof t)for(;r--;)n[e[r][t]]=r+1;else for(;r--;)n[t.call(i,e[r])]=r+1;else for(;r--;)n[e[r]]=r+1;return n},toValueMap:function(e,t,i){var n={},r=e.length;if(t)if("string"==typeof t)for(;r--;)n[e[r][t]]=e[r];else for(;r--;)n[t.call(i,e[r])]=e[r];else for(;r--;)n[e[r]]=e[r];return n},_replaceSim:y,_spliceSim:b,erase:t,insert:function(e,t,i){return n(e,t,0,i)},replace:n,splice:r,push:function(e){var t,i=arguments.length,n=1;for(void 0===e?e=[]:g.isArray(e)||(e=[e]);i>n;n++)t=arguments[n],Array.prototype.push[g.isIterable(t)?"apply":"call"](e,t);return e}},e.union=e.merge,g.min=e.min,g.max=e.max,g.sum=e.sum,g.mean=e.mean,g.flatten=e.flatten,g.clean=e.clean,g.pluck=e.pluck,g.toArray=function(){return e.toArray.apply(e,arguments)},g.extend({zip:function(){var e,t,i,n=this,r=n.partition(arguments,(function(e){return"function"!=typeof e})),o=r[0],a=r[1][0],s=n.max(n.pluck(o,"length")),l=[];for(e=0;s>e;e++)if(l[e]=[],a)l[e]=a.apply(a,n.pluck(o,e));else for(t=0,i=o.length;i>t;t++)l[e].push(o[t][e]);return l}})}(),g.Function={flexSetter:function(e){return function(t,i){var n,r;if(null===t)return this;if("string"!=typeof t){for(n in t)t.hasOwnProperty(n)&&e.call(this,n,t[n]);if(g.enumerables)for(r=g.enumerables.length;r--;)n=g.enumerables[r],t.hasOwnProperty(n)&&e.call(this,n,t[n])}else e.call(this,t,i);return this}},bind:function(e,t,i,n){if(2===arguments.length)return function(){return e.apply(t,arguments)};var r=e,o=Array.prototype.slice;return function(){var e=i||arguments;return!0===n?e=(e=o.call(arguments,0)).concat(i):"number"==typeof n&&(e=o.call(arguments,0),g.Array.insert(e,n,i)),r.apply(t||g.global,e)}},pass:function(e,t,i){return g.isArray(t)||(t=g.isIterable(t)?g.Array.clone(t):void 0!==t?[t]:[]),function(){var n=[].concat(t);return n.push.apply(n,arguments),e.apply(i||this,n)}},alias:function(e,t){return function(){return e[t].apply(e,arguments)}},clone:function(e){return function(){return e.apply(this,arguments)}},createInterceptor:function(e,t,i,n){return g.isFunction(t)?(n=g.isDefined(n)?n:null,function(){var r=this,o=arguments;return t.target=r,t.method=e,!1!==t.apply(i||r||g.global,o)?e.apply(r||g.global,o):n}):e},createDelayed:function(e,t,i,n,r){return(i||n)&&(e=g.Function.bind(e,i,n,r)),function(){var i=this,n=Array.prototype.slice.call(arguments);setTimeout((function(){e.apply(i,n)}),t)}},defer:function(e,t,i,n,r){return e=g.Function.bind(e,i,n,r),t>0?setTimeout(g.supports.TimeoutActualLateness?function(){e()}:e,t):(e(),0)},createSequence:function(e,t,i){return t?function(){var n=e.apply(this,arguments);return t.apply(i||this,arguments),n}:e},createBuffered:function(e,t,i,n){var r;return function(){var o=n||Array.prototype.slice.call(arguments,0),a=i||this;r&&clearTimeout(r),r=setTimeout((function(){e.apply(a,o)}),t)}},createThrottled:function(e,t,i){var n,r,o,a,s=function(){e.apply(i||this,o),n=g.Date.now()};return function(){r=g.Date.now()-n,o=arguments,clearTimeout(a),!n||r>=t?s():a=setTimeout(s,t-r)}},interceptBefore:function(e,t,i,n){var r=e[t]||g.emptyFn;return e[t]=function(){var e=i.apply(n||this,arguments);return r.apply(this,arguments),e}},interceptAfter:function(e,t,i,n){var r=e[t]||g.emptyFn;return e[t]=function(){return r.apply(this,arguments),i.apply(n||this,arguments)}}},g.defer=g.Function.alias(g.Function,"defer"),g.pass=g.Function.alias(g.Function,"pass"),g.bind=g.Function.alias(g.Function,"bind"),function(){var e=function(){},t=g.Object={chain:Object.create||function(t){e.prototype=t;var i=new e;return e.prototype=null,i},toQueryObjects:function(e,i,n){var r,o,a=t.toQueryObjects,s=[];if(g.isArray(i))for(r=0,o=i.length;o>r;r++)n?s=s.concat(a(e+"["+r+"]",i[r],!0)):s.push({name:e,value:i[r]});else if(g.isObject(i))for(r in i)i.hasOwnProperty(r)&&(n?s=s.concat(a(e+"["+r+"]",i[r],!0)):s.push({name:e,value:i[r]}));else s.push({name:e,value:i});return s},toQueryString:function(e,i){var n,r,o,a,s,l=[],c=[];for(n in e)e.hasOwnProperty(n)&&(l=l.concat(t.toQueryObjects(n,e[n],i)));for(r=0,o=l.length;o>r;r++)s=(a=l[r]).value,g.isEmpty(s)?s="":g.isDate(s)&&(s=g.Date.toString(s)),c.push(encodeURIComponent(a.name)+"="+encodeURIComponent(String(s)));return c.join("&")},fromQueryString:function(e,t){var i,n,r,o,a,s,l,c,u,d,p,h,f,m,v=e.replace(/^\?/,"").split("&"),y={};for(a=0,s=v.length;s>a;a++)if((l=v[a]).length>0)if(n=l.split("="),r=decodeURIComponent(n[0]),o=void 0!==n[1]?decodeURIComponent(n[1]):"",t){if(d=r.match(/(\[):?([^\]]*)\]/g),!(p=r.match(/^([^\[]+)/)))throw new Error('[Eui.Object.fromQueryString] Malformed query string given, failed parsing name from "'+l+'"');if(r=p[0],h=[],null===d){y[r]=o;continue}for(c=0,u=d.length;u>c;c++)f=2===(f=d[c]).length?"":f.substring(1,f.length-1),h.push(f);for(h.unshift(r),i=y,c=0,u=h.length;u>c;c++)f=h[c],c===u-1?g.isArray(i)&&""===f?i.push(o):i[f]=o:((void 0===i[f]||"string"==typeof i[f])&&(m=h[c+1],i[f]=g.isNumeric(m)||""===m?[]:{}),i=i[f])}else y.hasOwnProperty(r)?(g.isArray(y[r])||(y[r]=[y[r]]),y[r].push(o)):y[r]=o;return y},each:function(e,t,i){for(var n in e)if(e.hasOwnProperty(n)&&!1===t.call(i||e,n,e[n],e))return},merge:function(e){for(var i,n,r,o,a=1,s=arguments.length,l=t.merge,c=g.util.clone;s>a;a++)for(n in i=arguments[a])(r=i[n])&&r.constructor===Object?(o=e[n])&&o.constructor===Object?l(o,r):e[n]=c(r):e[n]=r;return e},mergeIf:function(e){for(var t,i,n,r=1,o=arguments.length,a=g.clone;o>r;r++)for(i in t=arguments[r])i in e||((n=t[i])&&n.constructor===Object?e[i]=a(n):e[i]=n);return e},getKey:function(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return null},getKeyValue:function(e,t,i){return e.hasOwnProperty(t)?e[t]:null!=i?i:null},getValues:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(e[t]);return i},getKeys:"function"==typeof Object.keys?function(e){return e?Object.keys(e):[]}:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i},getSize:function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&i++;return i},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},equals:function(){var e=function(e,t){var i;for(i in e)if(e.hasOwnProperty(i)&&e[i]!==t[i])return!1;return!0};return function(t,i){return t===i||(t&&i?e(t,i)&&e(i,t):!t&&!i&&t===i)}}(),classify:function(e){var i,n,r=e,o=[],a={},s=function(){for(var e,t=0,i=o.length;i>t;t++)this[e=o[t]]=new a[e]};for(i in e)e.hasOwnProperty(i)&&(n=e[i])&&n.constructor===Object&&(o.push(i),a[i]=t.classify(n));return s.prototype=r,s}};g.mergeIf=g.Object.mergeIf,g.urlEncode=function(){var e=g.Array.from(arguments),i="";return"string"==typeof e[1]&&(i=e[1]+"&",e[1]=!1),i+t.toQueryString.apply(t,e)},g.urlDecode=function(){return t.fromQueryString.apply(t,arguments)}}(),g.Date=new function(){var e=this,t=/(\\.)/g,n=/([gGhHisucUOPZ]|MS)/,r=/([djzmnYycU]|MS)/,o=/\\/gi,a=/\{(\d+)\}/g,s=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/"),l=["var me = this, dt, y, m, d, h, i, s, ms, o, O, z, zz, u, v, W, year, jan4, week1monday, daysInMonth, dayMatched,","def = me.defaults,","from = Eui.Number.from,","results = String(input).match(me.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = me.clearTime(new Date);","y = from(y, from(def.y, dt.getFullYear()));","m = from(m, from(def.m - 1, dt.getMonth()));","dayMatched = d !== undefined;","d = from(d, from(def.d, dt.getDate()));","if (!dayMatched) {","dt.setDate(1);","dt.setMonth(m);","dt.setFullYear(y);","daysInMonth = me.getDaysInMonth(dt);","if (d > daysInMonth) {","d = daysInMonth;","}","}","h = from(h, from(def.h, dt.getHours()));","i = from(i, from(def.i, dt.getMinutes()));","s = from(s, from(def.s, dt.getSeconds()));","ms = from(ms, from(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);","}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","if (W) {","year = y || (new Date()).getFullYear(),","jan4 = new Date(year, 0, 4, 0, 0, 0),","week1monday = new Date(jan4.getTime() - ((jan4.getDay() - 1) * 86400000));","v = Eui.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000)));","} else {","v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","}","}","}","}","if(v){","if(zz != null){","v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return v;"].join("\n");function c(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(a,(function(e,i){return t[i]}))}g.apply(e,{now:Date.now||function(){return+new Date},toString:function(e){var t=g.String.leftPad;return e.getFullYear()+"-"+t(e.getMonth()+1,2,"0")+"-"+t(e.getDate(),2,"0")+"T"+t(e.getHours(),2,"0")+":"+t(e.getMinutes(),2,"0")+":"+t(e.getSeconds(),2,"0")},getElapsed:function(t,i){return Math.abs(t-(i||e.now()))},useStrict:!1,formatCodeToRegex:function(t,i){var n=e.parseCodes[t];return n&&(n="function"==typeof n?n():n,e.parseCodes[t]=n),n?g.applyIf({c:n.c?c(n.c,i||"{0}"):n.c},n):{g:0,c:null,s:g.String.escapeRegex(t)}},parseFunctions:{MS:function(e,t){var i=(e||"").match(s);return i?new Date(1*((i[1]||"")+i[2])):null},time:function(e,t){var i=parseInt(e,10);return i||0===i?new Date(i):null},timestamp:function(e,t){var i=parseInt(e,10);return i||0===i?new Date(1e3*i):null}},parseRegexes:[],formatFunctions:{MS:function(){return"\\/Date("+this.getTime()+")\\/"},time:function(){return this.getTime().toString()},timestamp:function(){return e.format(this,"U")}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:"m/d/Y",getShortMonthName:function(e){return g.Date.monthNames[e].substring(0,3)},getShortDayName:function(e){return g.Date.dayNames[e].substring(0,3)},getMonthNumber:function(e){return g.Date.monthNumbers[e.substring(0,1).toUpperCase()+e.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(e){return n.test(e.replace(t,""))},formatContainsDateInfo:function(e){return r.test(e.replace(t,""))},unescapeFormat:function(e){return e.replace(o,"")},formatCodes:{d:"Eui.String.leftPad(this.getDate(), 2, '0')",D:"Eui.Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Eui.Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"Eui.Date.getSuffix(this)",w:"this.getDay()",z:"Eui.Date.getDayOfYear(this)",W:"Eui.String.leftPad(Eui.Date.getWeekOfYear(this), 2, '0')",F:"Eui.Date.monthNames[this.getMonth()]",m:"Eui.String.leftPad(this.getMonth() + 1, 2, '0')",M:"Eui.Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"Eui.Date.getDaysInMonth(this)",L:"(Eui.Date.isLeapYear(this) ? 1 : 0)",o:"(this.getFullYear() + (Eui.Date.getWeekOfYear(this) == 1 && this.getMonth() > 0 ? +1 : (Eui.Date.getWeekOfYear(this) >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"Eui.String.leftPad(this.getFullYear(), 4, '0')",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"Eui.String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"Eui.String.leftPad(this.getHours(), 2, '0')",i:"Eui.String.leftPad(this.getMinutes(), 2, '0')",s:"Eui.String.leftPad(this.getSeconds(), 2, '0')",u:"Eui.String.leftPad(this.getMilliseconds(), 3, '0')",O:"Eui.Date.getGMTOffset(this)",P:"Eui.Date.getGMTOffset(this, true)",T:"Eui.Date.getTimezone(this)",Z:"(this.getTimezoneOffset() * -60)",c:function(){var t,i,n;for("Y-m-dTH:i:sP",t=[],i=0;12>i;++i)n="Y-m-dTH:i:sP".charAt(i),t.push("T"==n?"'T'":e.getFormatCode(n));return t.join(" + ")},U:"Math.round(this.getTime() / 1000)"},isValid:function(t,i,n,r,o,a,s){r=r||0,o=o||0,a=a||0,s=s||0;var l=e.add(new Date(100>t?100:t,i-1,n,r,o,a,s),e.YEAR,100>t?t-100:0);return t==l.getFullYear()&&i==l.getMonth()+1&&n==l.getDate()&&r==l.getHours()&&o==l.getMinutes()&&a==l.getSeconds()&&s==l.getMilliseconds()},parse:function(t,i,n){var r=e.parseFunctions;return null==r[i]&&e.createParser(i),r[i].call(e,t,g.isDefined(n)?n:e.useStrict)},parseDate:function(t,i,n){return e.parse(t,i,n)},getFormatCode:function(t){var i=e.formatCodes[t];return i&&(i="function"==typeof i?i():i,e.formatCodes[t]=i),i||"'"+g.String.escape(t)+"'"},createFormat:function(t){var i,n=[],r=!1,o="";for(i=0;i<t.length;++i)o=t.charAt(i),r||"\\"!=o?r?(r=!1,n.push("'"+g.String.escape(o)+"'")):n.push(e.getFormatCode(o)):r=!0;e.formatFunctions[t]=g.functionFactory("return "+n.join("+"))},createParser:function(t){for(var i,n=e.parseRegexes.length,r=1,o=[],a=[],s=!1,u="",d=0,p=t.length,h=[];p>d;++d)u=t.charAt(d),s||"\\"!=u?s?(s=!1,a.push(g.String.escape(u))):(r+=(i=e.formatCodeToRegex(u,r)).g,a.push(i.s),i.g&&i.c&&(i.calcAtEnd?h.push(i.c):o.push(i.c))):s=!0;o=o.concat(h),e.parseRegexes[n]=new RegExp("^"+a.join("")+"$","i"),e.parseFunctions[t]=g.functionFactory("input","strict",c(l,n,o.join("")))},parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|0[1-9])"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|[1-9])"},D:function(){for(var t=[],i=0;7>i;t.push(e.getShortDayName(i)),++i);return{g:0,c:null,s:"(?:"+t.join("|")+")"}},l:function(){return{g:0,c:null,s:"(?:"+e.dayNames.join("|")+")"}},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:1,c:"W = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},F:function(){return{g:1,c:"m = parseInt(me.getMonthNumber(results[{0}]), 10);\n",s:"("+e.monthNames.join("|")+")"}},M:function(){for(var t=[],i=0;12>i;t.push(e.getShortMonthName(i)),++i);return g.applyIf({s:"("+t.join("|")+")"},e.formatCodeToRegex("F"))},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|0[1-9])"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|[1-9])"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm|AM|PM)",calcAtEnd:!0},A:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)",calcAtEnd:!0},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[0-9])"},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|1[0-9]|[0-9])"},h:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|0[1-9])"},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|[0-1][0-9])"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Eui.String.leftPad(hr, 2, '0') + Eui.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Eui.String.leftPad(hr, 2, '0') + Eui.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,5}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var t,i,n=[],r=[e.formatCodeToRegex("Y",1),e.formatCodeToRegex("m",2),e.formatCodeToRegex("d",3),e.formatCodeToRegex("H",4),e.formatCodeToRegex("i",5),e.formatCodeToRegex("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",e.formatCodeToRegex("P",8).c,"}else{",e.formatCodeToRegex("O",8).c,"}","}"].join("\n")}];for(t=0,i=r.length;i>t;++t)n.push(r[t].c);return{g:1,c:n.join(""),s:[r[0].s,"(?:","-",r[1].s,"(?:","-",r[2].s,"(?:","(?:T| )?",r[3].s,":",r[4].s,"(?::",r[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},dateFormat:function(t,i){return e.format(t,i)},isEqual:function(e,t){return e&&t?e.getTime()===t.getTime():!(e||t)},format:function(t,i){var n=e.formatFunctions;return g.isDate(t)?(null==n[i]&&e.createFormat(i),n[i].call(t)+""):""},getTimezone:function(e){return e.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(e,t){var i=e.getTimezoneOffset();return(i>0?"-":"+")+g.String.leftPad(Math.floor(Math.abs(i)/60),2,"0")+(t?":":"")+g.String.leftPad(Math.abs(i%60),2,"0")},getDayOfYear:function(t){var i,n=0,r=g.Date.clone(t),o=t.getMonth();for(i=0,r.setDate(1),r.setMonth(0);o>i;r.setMonth(++i))n+=e.getDaysInMonth(r);return n+t.getDate()-1},getWeekOfYear:function(){var e=864e5,t=7*e;return function(i){var n=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()+3)/e,r=Math.floor(n/7),o=new Date(r*t).getUTCFullYear();return r-Math.floor(Date.UTC(o,0,7)/t)+1}}(),isLeapYear:function(e){var t=e.getFullYear();return!(0!=(3&t)||!(t%100||t%400==0&&t))},getFirstDayOfMonth:function(e){var t=(e.getDay()-(e.getDate()-1))%7;return 0>t?t+7:t},getLastDayOfMonth:function(t){return e.getLastDateOfMonth(t).getDay()},getFirstDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),1)},getLastDateOfMonth:function(t){return new Date(t.getFullYear(),t.getMonth(),e.getDaysInMonth(t))},getDaysInMonth:function(){var t=[31,28,31,30,31,30,31,31,30,31,30,31];return function(i){var n=i.getMonth();return 1==n&&e.isLeapYear(i)?29:t[n]}}(),getSuffix:function(e){switch(e.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},clone:function(e){return new Date(e.getTime())},isDST:function(e){return new Date(e.getFullYear(),0,1).getTimezoneOffset()!=e.getTimezoneOffset()},clearTime:function(t,i){if(i)return g.Date.clearTime(g.Date.clone(t));var n,r,o=t.getDate();if(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.getDate()!=o){for(n=1,r=e.add(t,g.Date.HOUR,n);r.getDate()!=o;n++,r=e.add(t,g.Date.HOUR,n));t.setDate(o),t.setHours(r.getHours())}return t},add:function(t,i,n){var r,o,a=g.Date.clone(t),s=0;if(!i||0===n)return a;if(o=n-parseInt(n,10),n=parseInt(n,10))switch(i.toLowerCase()){case g.Date.MILLI:a.setTime(a.getTime()+n);break;case g.Date.SECOND:a.setTime(a.getTime()+1e3*n);break;case g.Date.MINUTE:a.setTime(a.getTime()+60*n*1e3);break;case g.Date.HOUR:a.setTime(a.getTime()+60*n*60*1e3);break;case g.Date.DAY:a.setDate(a.getDate()+n);break;case g.Date.MONTH:(r=t.getDate())>28&&(r=Math.min(r,g.Date.getLastDateOfMonth(g.Date.add(g.Date.getFirstDateOfMonth(t),g.Date.MONTH,n)).getDate())),a.setDate(r),a.setMonth(t.getMonth()+n);break;case g.Date.YEAR:(r=t.getDate())>28&&(r=Math.min(r,g.Date.getLastDateOfMonth(g.Date.add(g.Date.getFirstDateOfMonth(t),g.Date.YEAR,n)).getDate())),a.setDate(r),a.setFullYear(t.getFullYear()+n)}if(o){switch(i.toLowerCase()){case g.Date.MILLI:s=1;break;case g.Date.SECOND:s=1e3;break;case g.Date.MINUTE:s=6e4;break;case g.Date.HOUR:s=36e5;break;case g.Date.DAY:s=864e5;break;case g.Date.MONTH:s=864e5*(r=e.getDaysInMonth(a));break;case g.Date.YEAR:s=864e5*(r=e.isLeapYear(a)?366:365)}s&&a.setTime(a.getTime()+s*o)}return a},subtract:function(t,i,n){return e.add(t,i,-n)},between:function(e,t,i){var n=e.getTime();return t.getTime()<=n&&n<=i.getTime()},compat:function(){var t,n,r,o,a=i.Date,s=["useStrict","formatCodeToRegex","parseFunctions","parseRegexes","formatFunctions","y2kYear","MILLI","SECOND","MINUTE","HOUR","DAY","MONTH","YEAR","defaults","dayNames","monthNames","monthNumbers","getShortMonthName","getShortDayName","getMonthNumber","formatCodes","isValid","parseDate","getFormatCode","createFormat","createParser","parseCodes"],l=["dateFormat","format","getTimezone","getGMTOffset","getDayOfYear","getWeekOfYear","isLeapYear","getFirstDayOfMonth","getLastDayOfMonth","getDaysInMonth","getSuffix","clone","isDST","clearTime","add","between"],c=s.length,u=l.length;for(o=0;c>o;o++)a[n=s[o]]=e[n];for(t=0;u>t;t++)r=l[t],a.prototype[r]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),e[r].apply(e,t)}}})},g.Date.patterns={ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},g.JSON=new function(){var e,t,n=this,r=null,o=!!{}.hasOwnProperty,a=function(){return null===r&&(r=g.USE_NATIVE_JSON&&i.JSON&&"[object JSON]"==JSON.toString()),r},s=function(e){return 10>e?"0"+e:e},l=function(e){return i.eval.call(i,"("+e+")")},c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\","\v":"\\u000b"},u=/[\\\"\x00-\x1f\x7f-\uffff]/g;n.encodeString=function(e){return'"'+e.replace(u,(function(e){var t=c[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"'},n.encodeValue=function(e,t){return null==e?"null":g.isDate(e)?g.JSON.encodeDate(e):g.isString(e)?g.JSON.encodeString(e):"number"==typeof e?isFinite(e)?String(e):"null":g.isBoolean(e)?String(e):e.toJSON?e.toJSON():g.isArray(e)?function(e,t){if(t)return function(e,t){var i,n=e.length,r=t+" ",o=","+r,a=["[",r];for(i=0;n>i;i+=1)a.push(g.JSON.encodeValue(e[i],r),o);return a[a.length-1]=t+"]",a.join("")}(e,t);var i,n=["[",""],r=e.length;for(i=0;r>i;i+=1)n.push(g.JSON.encodeValue(e[i]),",");return n[n.length-1]="]",n.join("")}(e,t):g.isObject(e)?function(e,t){if(t)return function(e,t){var i,n,r=t+" ",a=","+r,s=["{",r];for(i in e)if(n=e[i],!o||e.hasOwnProperty(i)){if("function"==typeof n||void 0===n)continue;s.push(g.JSON.encodeValue(i)+": "+g.JSON.encodeValue(n,r),a)}return s[s.length-1]=t+"}",s.join("")}(e,t);var i,n,r=["{",""];for(i in e)if(n=e[i],!o||e.hasOwnProperty(i)){if("function"==typeof n||void 0===n)continue;r.push(g.JSON.encodeValue(i),":",g.JSON.encodeValue(n),",")}return r[r.length-1]="}",r.join("")}(e,t):"function"==typeof e?"null":"undefined"},n.encodeDate=function(e){return'"'+e.getFullYear()+"-"+s(e.getMonth()+1)+"-"+s(e.getDate())+"T"+s(e.getHours())+":"+s(e.getMinutes())+":"+s(e.getSeconds())+'"'},n.encode=function(t){return e||(e=a()?JSON.stringify:n.encodeValue),e(t)},n.decode=function(e,i){t||(t=a()?JSON.parse:l);try{return t(e)}catch(t){if(!0===i)return null;$.log("warn","You're trying to decode an invalid JSON String: "+e)}}},g.encode=g.JSON.encode,g.decode=g.JSON.decode,g.util.HashMap=function(e){var t=this,i=(e=e||{}).keyFn;t.initialConfig=e,t.clear(!0),i&&(t.getKey=i)},g.util.HashMap.prototype={generation:0,map:{},length:0,getCount:function(){return this.length},getData:function(e,t){return void 0===t&&(t=e,e=this.getKey(t)),[e,t]},getKey:function(e){return e.id},add:function(e,t){var i=this;return 1===arguments.length&&(t=e,e=i.getKey(t)),i.containsKey(e)?i.replace(e,t):(i.map[e]=t,++i.length,i.generation++,t)},replace:function(e,t){var i=this,n=i.map;return 1===arguments.length&&(t=e,e=i.getKey(t)),i.containsKey(e)||i.add(e,t),n[e],n[e]=t,i.generation++,t},remove:function(e){var t=this.findKey(e);return void 0!==t&&this.removeAtKey(t)},removeAtKey:function(e){var t=this;return!!t.containsKey(e)&&(t.map[e],delete t.map[e],--t.length,t.generation++,!0)},get:function(e){var t=this.map;return t.hasOwnProperty(e)?t[e]:void 0},clear:function(e){var t=this;return(e||t.generation)&&(t.map={},t.length=0,t.generation=e?0:t.generation+1),t},containsKey:function(e){var t=this.map;return t.hasOwnProperty(e)&&void 0!==t[e]},contains:function(e){return this.containsKey(this.findKey(e))},getKeys:function(){return this.getArray(!0)},getValues:function(){return this.getArray(!1)},getArray:function(e){var t,i=[],n=this.map;for(t in n)n.hasOwnProperty(t)&&i.push(e?t:n[t]);return i},each:function(e,t){var i,n=g.apply({},this.map),r=this.length;for(i in t=t||this,n)if(n.hasOwnProperty(i)&&!1===e.call(t,i,n[i],r))break;return this},clone:function(){var e,t=new this.self(this.initialConfig),i=this.map;for(e in t.suspendEvents(),i)i.hasOwnProperty(e)&&t.add(e,i[e]);return t.resumeEvents(),t},findKey:function(e){var t,i=this.map;for(t in i)if(i.hasOwnProperty(t)&&i[t]===e)return t}},g.apply(g,{isSuccess:function(e){return e.success}});var fi=g.Extra={warp:!0,warpKey:"reqJson",trimSerialize:function(e){return e.replace(/\+/g," ")},warpReqParams:function(e,t,i){if(g.isString(e))return e;var n=arguments.length,r=this.warp,o=this.warpKey;if(2==n&&($.isBoolean(t)?r=t:g.isString(t)?i=t:g.isObject(t)&&(t.hasOwnProperty("warp")&&(r=t.warp),t.hasOwnProperty("warpKey")&&(o=t.warpKey))),3==n&&(r=t,o=i),r){var a={};return a[o]=g.encode(e),a}return e},toDataObjects:function(e,t,i){var n,r,o=fi.toDataObjects,a={};if(g.isArray(e))for(n=0,r=e.length;r>n;n++)t?g.Object.merge(a,o(e[n],!0)):a[i]=e[n];else if(g.isObject(e))for(n in e)e.hasOwnProperty(n)&&(t?g.Object.merge(a,o(e[n],!0,(i?i+".":"")+n)):a[i]=e[n]);else a[i]=e;return a},replaceKeys:function(e,t,i,n){var r=this;i=null!=i&&i,n=null==n||n,g.isEmpty(e)||g.isEmpty(t)||(g.isObject(e)&&g.Object.each(e,(function(o,a){if(t.hasOwnProperty(o)){var s=t[o];g.isEmpty(s)||(e[s]=a,n&&delete e[o])}i&&r.replaceKeys(a,t,i,n)})),g.isArray(e)&&g.Array.each(e,(function(e){r.replaceKeys(e,t,i,n)})))},filterDataByKey:function(e,t,i,n){var r=this;if(n=n||{},!g.isEmpty(t))return g.isObject(e)&&g.Object.each(e,(function(o,a){g.Array.contains(t,o)?(n[o]=a,delete e[o]):(g.isObject(a)||g.isArray(a))&&i&&r.filterDataByKey(a,t,i)})),g.isArray(e)&&g.Array.each(e,(function(e){r.filterDataByKey(e,t,i)})),n},addPrefixForObject:function(e,t){return!g.isEmpty(t)&&g.isObject(e)&&g.Object.each(e,(function(i,n){-1===i.indexOf(".")&&(e[t+"."+i]=n,delete e[i])})),e},getFieldValue:function(e,t){if(!e||!t)return e;for(var i=(t=t.replace(/\[/g,".").replace(/\]/g,"")).split("."),n=0;n<i.length;n++){var r=i[n];if(void 0===e[r])return;e=e[r]}return e}},gi=g.Logger={methodMap:["silly","debug","info","warn","error"],level:"debug",lookupLevel:function(e){if("string"==typeof e){var t=this.methodMap.indexOf(e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){var t=this,i=g.Array.toArray(arguments),n=i.length;if(e=t.lookupLevel(e),"undefined"!=typeof console&&t.lookupLevel(t.level)<=e){var r=t.methodMap[e];console[r]||(r="log");var o=i[n-1];if(g.isBoolean(o)&&!0===o){var a=i.slice(2,-1),s=i[1].replace(/\{(\d+)\}/g,(function(e,t){return a[t]}));console[r].apply(console,[s])}else{for(var l=arguments.length,c=(s=Array(l>1?l-1:0),1);l>c;c++)s[c-1]=arguments[c];console[r].apply(console,s)}}}};g.apply(g,{log:g.Function.alias(gi,"log")}),g.env={proxy:{}},g.apply(g,{getEnv:function(e){return this.env.hasOwnProperty(e)?this.env[e]:(g.Logger.log("debug","You have't define '{0}' key,please make sure it.",e,!0),"")},getProxy:function(e){var t=this.getEnv("proxy");return t&&"object"===g.type(t)&&!g.Object.isEmpty(t)?t.hasOwnProperty(e)?t[e]:"":void 0},getAppServer:function(e){var t=this.getProxy(e),i=g.type(t);return"string"===i?t:"object"===i?t.server:(g.Logger.log("warn","unknown define when get {0} proxy info.",e,!0),"")}}),void 0===(n=function(){return g}.apply(t,[]))||(e.exports=n);var mi=i.Eui,vi=i.$;return g.noConflict=function(e){return i.$===g&&(i.$=vi),e&&i.Eui===g&&(i.Eui=mi),g},r||(i.Eui=i.$=g),g},"object"==typeof e.exports?e.exports=r.document?o(r,!1):function(e){if(!e.document)throw new Error("Eui requires a window with a document");return o(e)}:o(r)},587:(e,t,i)=>{var n,r,o;i(7658),r=[i(4778),i(2638)],void 0===(o="function"==typeof(n=function(t){var i,n,r;!function(e,i){t.apply(t.util,{mapByKey:function(t,i,n){var r={};return e.map(t,(function(t,o){!0===n?-1==e.inArray(o,i)&&(r[o]=t):e.inArray(o,i)>-1&&(r[o]=t)})),r},defaultValue:function(e,t){return void 0!==e?e:void 0!==t?t:""},formatDate:function(t,i,n){return t?(e.isDate(t)||(t=e.Date.parse(t,i)),e.Date.format(t,n||e.Date.defaultFormat)):""},formatMilliDate:function(t,i){return t?(e.isDate(t)||(t=new Date(t)),e.Date.dateFormat(t,i||e.Date.patterns.ISO8601Long)):""},dateRenderer:function(t,i,n){return this.formatDate(t,i||"Ymd",n||e.Date.patterns.ISO8601Short)},timeRenderer:function(e,t,i){return this.formatDate(e,t||"His",i||"H:i:s")},dateTimeRenderer:function(t,i,n){return this.formatDate(t,i||"YmdHis",n||e.Date.patterns.ISO8601Long)},domUniqueId:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e}});var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Math.uuid=function(e,t){var i,r,o=n,a=[];if(t=t||o.length,e)for(i=0;e>i;i++)a[i]=o[0|Math.random()*t];else for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",i=0;36>i;i++)a[i]||(r=0|16*Math.random(),a[i]=o[19==i?3&r|8:r]);return a.join("")},Math.uuidFast=function(){for(var e,t=n,i=new Array(36),r=0,o=0;36>o;o++)8==o||13==o||18==o||23==o?i[o]="-":14==o?i[o]="4":(2>=r&&(r=33554432+16777216*Math.random()|0),e=15&r,r>>=4,i[o]=t[19==o?3&e|8:e]);return i.join("")},Math.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}}(t,t.Function.alias),i=t,n=t.Function.alias,r=t.Messager={messages:{},format:function(e,t){var i=t;return e.replace(/\{(\d+)\}/g,(function(e,t){return i[t]}))},parseResultMsg:function(e){if(!e)return"";var t=e.split("|@|"),n=e,r=!1;return t.length>1&&(r=!0,n=t[0]),e=this.getMsg(n),r&&e!==n&&(e=this.format(e,i.Array.slice(t,1))),e},getMsg:function(e,i){var n=t.getEnv("i18n")||"zh_CN";return"en"===n&&(n="en_US"),t.Extra.getObjectDeepKey(this.messages[n]||{},e,i)},showAlertInfo:t.emptyFn,showWarnInfo:function(e){var i=t.getMsg("ALERT_TITLE_WARNING");this.showAlertInfo(e,i,"glyphicon glyphicon-warning-sign")},showInfo:function(e){var i=t.getMsg("ALERT_TITLE_SHOW");this.showAlertInfo(e,i,"glyphicon glyphicon-info-sign")},showErrorInfo:function(e){var i=t.getMsg("ALERT_TITLE_ERROR");this.showAlertInfo(e,i,"glyphicon glyphicon-remove-sign")},confirm:t.emptyFn,showToast:t.emptyFn},t.apply(t,{getMsg:n(r,"getMsg"),parseResultMsg:n(r,"parseResultMsg")}),t.apply(t.Extra,{showToast:n(r,"showToast"),showAlertInfo:n(r,"showAlertInfo"),showWarnInfo:n(r,"showWarnInfo"),showInfo:n(r,"showInfo"),showErrorInfo:n(r,"showErrorInfo"),confirm:n(r,"confirm")}),function(e,i){var n=t.Storage={storageStrategy:"L",_getStorageObj:function(e){var t;switch(e=e||this.storageStrategy,(!window.localStorage||!window.sessionStorage)&&window.console,e){case"L":t=localStorage;break;case"S":t=sessionStorage}return t},getLength:function(e){return this._getStorageObj(e).length},getItem:function(e,i,n){var r=this._getStorageObj(n).getItem(e);return i?t.decode(r):r},setItem:function(e,i,n){"object"==typeof i&&(i=t.encode(i)),this._getStorageObj(n).setItem(e,i)},removeItem:function(e,t){this._getStorageObj(t).removeItem(e)},clear:function(e){this._getStorageObj(e).clear()},key:function(e,t){return this._getStorageObj(t).key(e)},initObjToStorage:function(t,i){var n=this;i=i||n.storageStrategy,e.isObject(t)&&e.Object.each(t,(function(e,t){n.setItem(e,t,i)}))},batchStore:function(){var i=this,n=e.Array.toArray(arguments),r=n.length,o=i.storageStrategy;if("object"!==e.type(n[0])){var a=n[r-1],s=t.LocalStore.defaultDataNode,l=e.emptyFn;r>1&&e.isArray(a)&&(s=a[0],2===a.length&&(o=a[1]),n=n.slice(0,-1)),e.Array.each(n,(function(t){return e.isFunction(t)?(l=t,e.Array.remove(n,t),!1):void 0})),e.Function.pass(t.postToRemote,n)((function(e){if(t.isSuccess(e)){var i=t.Extra.getField(e,s);i?(c(i),l(i,o)):t.Logger.log("warn",'have no data by node path ("{0}")',s,!0)}}))}else c(n[0]);function c(t){e.Object.each(t,(function(e,t){i.setItem(e,t,o)}))}}};t.apply(t,{initStorage:i(n,"initStorage")})}(t,t.Function.alias),function(e,i){t.apply(t.Extra,{getField:function(e,t){if(!e||!t)return e;for(var i=(t=t.replace(/\[/g,".").replace(/\]/g,"")).split("."),n=0;n<i.length;n++){var r=i[n];if(void 0===e[r])return;e=e[r]}return e},showMask:function(i,n){var r=t.getMsg(n||"IN_PROCESSING"),o=e(i||"body");if(!o.children("div.eui-mask").length){var a=e('<div class="eui-mask" style="display:block"></div>').appendTo(o),s=e('<div class="eui-mask-msg" style="display:block;left:50%"></div>').html(r).appendTo(o);a.css({zIndex:t.zIndex++}),s._outerHeight(40),s.css({marginLeft:-s.outerWidth()/2,lineHeight:s.height()+"px",zIndex:t.zIndex++})}},hideMask:function(t){var i=t||e("body");t&&e.isString(t)&&(i=e(t)),i.eui&&(i.find("div.eui-mask-msg").remove(),i.find("div.eui-mask").remove())},createBackdrop:function(i){if(e(".global-backdrop").length>0)t.Logger.log("warn","has exist backdrop, do not repeat to create it.");else{var n=e('<div class="global-backdrop"></div>');e("body").append(n),n.on("click",(function(e){i&&0==i.call(this,n)||(n.remove(),e.stopPropagation())}))}},getUrlVars:function(){var t=window.location.href,i=t.slice(t.indexOf("?")+1);return e.Object.fromQueryString(i,!0)},findObjectBy:function(t,i,n){if(e.isEmpty(i))return{};var r={};return e.isObject(t)&&e.Object.each(t,(function(o,a){e.Array.contains(i,o)&&(r[o]=a,n&&delete t[o])})),r},addPrefixForParam:function(t,i,n){var r=null!=n&&n;if(!e.isEmpty(i))if(e.isArray(t)){var o=t;(t={})[i]=o}else e.Object.each(t,(function(e,n){(-1===e.indexOf(".")||r)&&(t[i+"."+e]=n,delete t[e])}));return t},strToObject:function(t){return e.isEmpty(t)?{}:e.decode("{"+t+"}")},executeAgencyEvent:function(t){var i=arguments;if(t&&e.isFunction(t)){var n=e.Array.slice(i,1);return e.Function.pass(t,n)()}return!0},executeParser:function(i,n,r){var o=e.Array.toArray(arguments),a=o.length;if(2>a)t.Logger.log("error","The 'executeParser' function need less than 2 params(queues and name)!");else{var s=i[n];if(s){var l={},c=o[a-1],u=!1;e.isObject(c)&&!c.eui&&(l=c,u=!0);var d=e.Array.slice(o,2);if(e.isObject(s)){s.options&&(l=e.extend(!0,{},s.options,l));var p=d.length;d=e.Array.replace(d,u?p-1:p,u?1:0,[l]);var h=s.handler;if(h&&e.isFunction(h)){var f=e.Function.pass(h,d,s)(),g=d[d.length-1];if(e.isObject(g)&&!g.eui&&g.afterRender){var m=g.afterRender;t.pass(m,f,g)()}var v=s.afterReady;return v&&t.pass(v,d,s)(),f}t.Logger.log("error","The parser must have handler property and then typeof is function.")}else if(e.isFunction(s))return e.Function.pass(s,d)()}else t.log("error",'The parser of "{0}" unrealized, the error from "executeParser" function!',n,!0)}},ignoreWarpKeys:["queryId"],prepareObjectParams:function(i,n){var r,o=n||{},a=o.ignoreWarpKeys&&o.ignoreWarpKeys.length?e.Array.merge(o.ignoreWarpKeys,this.ignoreWarpKeys):this.ignoreWarpKeys;r=t.Extra.filterDataByKey(i,a,!1);var s=o.paramPrefix;if(s){var l={},c=o.ignorePrefixKeys;c&&c.length&&(l=t.Extra.filterDataByKey(i,c,!1)),t.Extra.addPrefixForParam(i,s,o.includePrefix),e.extend(i,l)}var u=o.extraParams;return u&&"object"===e.type(u)&&e.extend(!0,i,u),t.shouldWarpParams(o.warp)&&!o.multipart&&(i=t.Extra.warpReqParams(i,!0)),e.extend(i,r),i},getObjectDeepKey:function(i,n,r){var o,a=i||this.message,s=t.util.defaultValue(r,!0),l=n;return n?e.isObject(a)?((o=a[l])||(o=t.Extra.getField(a,l)),!0===s?o||l:o):(t.log("warn","The first param must be a javascript Object,please rectify it!"),""):""},objKeyValueOfFirst:function(e,i){var n={};return e&&i&&t.Object.each(e,(function(e,r){n[e]=t.Object.getKeyValue(i,e,r)})),n},someTypeInArr:function(t,i){return!!e.isArray(t)&&e.Array.some(t,(function(e,t,n){return i(e,t,n)}))}}),t.apply(t,{uiExtensions:{},zIndex:9e3,globalValidated:!0,idSelector:function(e){return"#"+e},idOrNameSelector:function(e){return"#"+e+",[name='"+e+"']"},shouldValidate:function(e){return this.globalValidated&&t.util.defaultValue(e,this.globalValidated)},shouldWarpParams:function(e){var i=t.Extra.warp;return i&&t.util.defaultValue(e,i)},getJqDom:function(t){return t.eui?t:e(t)},domData:function(e,i,n){var r=arguments.length,o=this.getJqDom(e);return 2>r?void t.log("The params no less than 2."):2===r?o.data(i):void(3===r&&o.data(i,n))},registerParseQueue:function(e,i,n){if(void 0===e)t.Logger.log("error","The Queue Map Object is not exist, Please define it first!");else{var r={};r[i]=n,t.apply(e,r)}}}),t.apply(t.Array,{toKeyMap:function(e){for(var t={},i=e.length;i--;){var n=e[i];for(var r in n)t.hasOwnProperty(r)?t[r].push(n[r]):t[r]=[n[r]]}return t},getKeysValue:function(t,i,n){var r=e.isArray(i)?i:[i],o=e.type(t),a={};if(n=n||[],"object"===o){for(var s in t)r.indexOf(s)>-1&&(a[s]=t[s]);return a}if("array"===o)for(var l=t.length;l--;)a=this.getKeysValue(t[l],i,n),n.push(a);return n}})}(t,t.Function.alias),function(e,i){var n=t.Formatter={formatters:{currency:{options:{sign:e.util.Format.currencySign,decimals:e.util.Format.currencyPrecision,end:e.util.Format.currencyAtEnd},handler:function(t,i,n,r){var o=arguments,a=o[o.length-1];return e.util.Format.currency(t,a.sign,a.decimals,a.end)}},datetime:{options:{fromFormat:"Ymd",toFormat:e.Date.patterns.ISO8601Short},handler:function(e,i,n,r){var o=arguments,a=o[o.length-1];return t.util.formatDate(e,a.fromFormat,a.toFormat)}},htmlEncode:{options:{tpl:""},handler:function(e,i,n,r){var o=arguments,a=o[o.length-1].tpl;return a&&(e=t.String.format(a,e)),t.String.htmlEncode(e)}}},registerFormatter:function(e,t){var i=this.formatters;return i[e]=t,i},executeFormatter:function(i){var r=e.Array.toArray(arguments),o=n.formatters,a=e.Array.insert(r,0,[o]),s=t.Extra.executeParser;return e.Function.pass(s,a)()}};t.apply(t.Extra,{registerFormatter:i(n,"registerFormatter")})}(t,t.Function.alias),t.Defaults={_afterGetLocalStoreData:{}},function(e,i){t.Download={exportExcel:function(i){var n=e.extend(!0,{},i||{});return n.url?void this.exportFile(e.extend(n,{params:t.Extra.prepareObjectParams(n.params,n)||{}})):(t.Logger.log("warn","please define url property!"),!1)},getXhrFilename:function(e){var i="";try{i=t.Object.fromQueryString(e.getResponseHeader("content-disposition").split(";")[1]).filename.replace(/"/g,"")}catch(e){}return i},exportFile:function(i,n){var r=this,o=arguments.length,a={type:"get"};1===o?"string"==typeof i?a.url=i:e.extend(a,i):2===o&&t.extend(a,{url:i,params:n});var s="",l=a.url,c=a.callback,u=a.netErrorCallback;a.params&&(s="object"==typeof a.params?e.param(a.params,!0):a.params);var d="get"===a.type.toLocaleLowerCase();d&&(l=t.String.urlAppend(l,s)),l=r.getExportUrl(l,a.hostKey||t.Comm.defaultHostKey);var p=new XMLHttpRequest;p.open(a.type,l,!0),a.progress&&p.addEventListener("progress",(function(e){if(e.lengthComputable){var t=e.loaded/e.total;try{a.progress.call(e,t,(100*t).toFixed(2)+"%")}catch(e){}}}),!1),p.responseType=r.isWebEnv()?"blob":"arraybuffer",p.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),p.onreadystatechange=function(){if(4===p.readyState&&200===p.status){var e=p.getResponseHeader("content-type"),i=!e||-1===e.indexOf("application/json");if(i){var n=r.getXhrFilename(p)||(a.filename&&"function"==typeof a.filename?a.filename(a.fileType):a.filename),o=r.isWebEnv()?p.response:new Buffer(p.response,"binary");r.showSaveDialog(n,o),c&&c.call(null,i,n)}else c&&(s=c.call(null,i,p.response)),!1!==s&&t.Extra.showToast("warning","error.export.doc")}var s;4===p.readyState&&200!==p.status&&(u&&(s=u.call(null,!1,p.response,p.status)),!1!==s&&t.Extra.showToast("warning","error.export.doc"))},d?p.send():p.send(s)},isWebEnv:function(){return!0},getExportUrl:function(e,t){return"/"+t+"/"+e},showSaveDialog:function(e,t){if(void 0!==window.chrome){var i=document.createElement("a");i.href=window.URL.createObjectURL(t),i.download=e,i.click()}else if(void 0!==window.navigator.msSaveBlob){var n=new Blob([t],{type:"application/force-download"});window.navigator.msSaveBlob(n,e)}else{var r=new File([t],e,{type:"application/force-download"});window.open(URL.createObjectURL(r))}}},t.apply(t,{exportExcel:i(t.Download,"exportExcel")})}(t,t.Function.alias),t.apply(t.Comm,{recvErrorDispatch:function(e){t.Logger.log("debug",e);var i=e.status;"404"==i&&t.Extra.showToast("error",t.formatStr(t.getMsg("UNFIND_REQUEST_URL"),i))}}),t.apply(t,{isSuccess:function(e){return!e.hasOwnProperty("success")||e.success},hasPermission:function(e){return!0}}),function(e,i){var n=t.LocalStore={defaultStoreKey:"dictionaries",defaultDataNode:"data",dictionaries:{},isExitKey:function(e){return this.hasOwnProperty(e)},setValue:function(t,i){var n=this,r=i||n.defaultStoreKey;n.isExitKey(r)||(n[r]={}),e.Object.merge(n[r],t)},getValue:function(e,i){var n=this,r=i||n.defaultStoreKey;if(n.isExitKey(r)){var o=n[r];return t.Extra.getField(o,e)}t.Logger.log("error","Have no store identify key of '{0}'.",r,!0)},batchStore:function(){var i=this,n=e.Array.toArray(arguments),r=n.length,o=i.defaultDataNode,a=i.defaultStoreKey,s=n[r-1],l=e.emptyFn;r>1&&e.isArray(s)&&(o=s[0],2===s.length&&(a=s[1]),n=n.slice(0,-1)),e.Array.each(n,(function(t){return e.isFunction(t)?(l=t,e.Array.remove(n,t),!1):void 0})),e.Function.pass(t.postToRemote,n)((function(e){if(t.isSuccess(e)){var n=t.Extra.getField(e,o);n?(i.setValue(n,a),l(n,a)):t.Logger.log("warn",'have no data by node path ("{0}")',o,!0)}}))},batchStores:function(t){e.isEmpty(t)||e.Array.each(t,(function(t,i,n){return e.isArray(t)?void e.Function.pass(n.batchStore,t)():(e.Function.pass(n.batchStore,n)(),!1)}))}};t.apply(t,{batchStore:i(n,"batchStore")})}(t,t.Function.alias),e.exports={"error.export.doc":"occur an exception when export file!","error.user.noRight":"You have no functional operation permissions!",ALERT_TITLE_WARNING:"Warning",ALERT_TITLE_SHOW:"Prompt",ALERT_TITLE_ERROR:"Error",IN_PROCESSING:"In processing, please wait ...",IN_INIT_DATA:"In init data,please wait ...",RESULT_IS_NOT_OBJECT:"Result is not javascript Object type,please check it!",CONFIRM_INFO:"Are you sure to do this?",EXECUTE_SUCCESS:"Execute Success!",EXECUTE_FAILRE:"Execute Failre!",RESULT_QUERY_SUCCESS:"Query successful, total returns {0} records!",RESULT_QUERY_FAILRE:"Query fails!",UNFIND_REQUEST_URL:"I'm sorry,the network connection lost,please contact the administrator,The error code is [{0}]!",BUTTON_TRIGGER_WARN_MSG:"You operate too frequently, please try again later!"},function(e,i){var n=t.Logic={defaultReadyMap:{localStore:{options:{localStores:[],autoRender:!0},handler:function(i){var n=i||{},r=n.localStores,o=n.autoRender;function a(i){var n;if(o&&!0!==t.Extra.someTypeInArr(i,(function(t){return e.isFunction(t)}))){n=function(e,i){var n=t.Defaults._afterGetLocalStoreData;t.Logic.parseQueues(n,e,i)};var r=i.length,a=i[r-1],s=e.isArray(a)?-1:r>1?r-1:1;i=e.Array.insert(i,s,[n])}e.Function.pass(t.batchStore,i)()}e.isEmpty(r)||e.Array.each(r,(function(t,i,n){return e.isArray(t)?void a(t):(a(n),!1)}))}}},toRenderMap:{},onReady:function(i,n){var r=this,o=t.util.defaultValue(n,{});e(document).ready((function(){i&&0==i(o)||r.executeDefaultOnReady(o)}))},executeDefaultOnReady:function(e){var t=this.defaultReadyMap;this.parseQueues(t,e)},parseQueues:function(i){var n,r=e.Array.toArray(arguments),o=r.length,a=[],s=0,l=o,c=this.toRenderMap;o>0&&(e.isSimpleObject(r[0])&&(c=r[0],s=1),"function"==typeof r[l]&&(n=r[l],l=-1),o>s&&(a=r.slice(s,l)));var u=e.Array.clone(a);e.Object.each(c,(function(i,n,r){var o=e.Array.insert([r,i],2,u);e.pass(t.Extra.executeParser,o)()})),n&&n(u)},_queuePriority:{},sortQueueByPriority:function(i,n){var r=this._queuePriority;if("object"==e.type(i)){var o={};t.Object.each(i,(function(t,i){i&&"object"==e.type(i)&&i.hasOwnProperty("priority")&&(o[t]=i.priority)})),r[n]=o}else t.Logger.log("warn","only support object type and have priority property!")}};t.apply(t,{onReady:i(n,"onReady"),parseQueues:i(n,"parseQueues")})}(t,t.Function.alias)})?n.apply(t,r):n)||(e.exports=o)},2449:e=>{e.exports=class{constructor(){this.scopeId=null,this.replyChannel="",this.cmsdWindow=null,this.params={};var e=this;Eui.Processor&&Eui.apply(Eui.Processor.directives,{"receive:cmsd":{options:{msg:""},handler:function(t,i){var n=i||{};Eui.Ipc.send({scopeId:e.scopeId,title:`${e.replyChannel||"ipc:cmsd:"}${n.command}`},n.msg)}}})}getRealUrl(e,t){return process.platform,Eui.commonUtils.getRelativeURL(e,t)}start(e){let t=this;var i=e||{};if("object"!=typeof i)return void Eui.Logger.log("error","the options type error, it must be a object.");if(!i.url||!i.groupId)return void Eui.Logger.log("error","the options must has the property url and groupId.");if(!i.scopeId)return void Eui.Logger.log("error","the options must has the property scopeId.");this.scopeId=i.scopeId,delete i.scopeId,i.replyChannel&&(this.replyChannel=i.replyChannel,delete i.replyChannel),i.data&&(this.params=i.data),t.options=i;let n=this.getRealUrl(i.url,i.groupId),r=$.extend(!0,{},i,{loadMode:"custom",openOnce:!0,content:`<iframe src="${n}" style="width:100%;height:100%;border:0"/>`,callback:function(e){t.cmsdWindow=e.find("iframe")[0].contentWindow,i.data&&(t.cmsdWindow.onload=function(){Eui.postMessage(t.cmsdWindow,{action:"init",data:i.data,panelId:e.attr("id")})})}});Eui.App.openWithJsPanel(r)}send(e){Eui.postMessage(this.cmsdWindow,{action:"receive",data:e})}}},5099:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={header:function(e,t){this.isAuthApp(t.hostKey)||e.setRequestHeader("titanOne-client","titanOne-client")},url:function(e,t){var i=t.url;i?t.url=this.getAppRealUrl(i,t.hostKey):Eui.Logger.log("warn","Make sure you have pass url param, when call 'postToRemote' function!")},type:function(e,t){"POST"===t.type.toUpperCase()&&!1===t.processData&&(t.data=Eui.Object.toQueryString(t.data))}};t.default=i},9459:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={sendCacheParams:function(e,t){var i=t.containerId,n=t.loadType;Eui.Ipc.send("ipc:save:cacheParams",{containerId:i,loadType:n,params:e})},coverSinglePage:Eui.emptyFn,addFooterNavElement:Eui.emptyFn,openWorkbenchWithModal:Eui.emptyFn,cacheWidgetButtonData:Eui.emptyFn,waitingAnimate:{status:!1,waitingHtml:'<div class="loader">\n <div class="loader-round">\n \n </div>\n </div>',showWaiting:function(){var e=$(this.waitingHtml),t=$(".loader");t.length?t.show():$("body").append(e.show()),this.status=!0},hideWaiting:function(e){var t=$(".loader");t.length&&t.remove(),this.status=!1,e&&"function"==typeof e&&e()}}};t.default=i},8872:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={caches:new Map,set:function(e,t){this.caches.set(e,t)},get:function(e){return this.caches.get(e)},has:function(e){return this.caches.has(e)},delete:function(e){return this.caches.delete(e)},clear:function(){this.caches.clear()}};t.default=i},5843:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function l(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.prefix=t}var t,i;return t=e,i=[{key:"set",value:function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];(e=Eui.Storage).setItem.apply(e,o(this._transformArgs(i)))}},{key:"get",value:function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(e=Eui.Storage).getItem.apply(e,o(this._transformArgs(i)))}},{key:"remove",value:function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];(e=Eui.Storage).removeItem.apply(e,o(this._transformArgs(i)))}},{key:"batchSet",value:function(e,t){for(var i=0,n=Object.entries(e);i<n.length;i++){var o=r(n[i],2),a=o[0],s=o[1];this.set(a,s,t)}}},{key:"_getKey",value:function(e){return"".concat(this.prefix,":").concat(e)}},{key:"_transformArgs",value:function(e){var t=r(e,1)[0];return e[0]=this._getKey(t),e}}],i&&l(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},1025:(e,t,i)=>{i(7658),Eui.Extra.getModuleNameFromUrl=function(e){var t=e.split("/"),i=[];return t=function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];if(i!==e.length-1||/^index.html/.test(n)){if(i===e.length-1||!n||"."===n||".."===n)continue}else n=n.split(".")[0];t.push(n)}return t}(t),$.each(t,(function(e,t){e>=1&&(t=t.replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))),i.push(t)})),i.join("")}},3283:(e,t,i)=>{i(1703),i(7658),i(587);var n=h(i(8872)),r=h(i(6132)),o=h(i(5399)),a=h(i(5817)),s=h(i(5843)),l=h(i(9459)),c=h(i(239)),u=h(i(1848)),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var i=p(t);if(i&&i.has(e))return i.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,i&&i.set(e,n),n}(i(2779));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(p=function(e){return e?i:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function v(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){y(e,t,i[t])}))}return e}function y(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Eui.apply(Eui,v({es6:u.default,commonUtils:d,Cache:n.default,Ws:o.default,Ipc:a.default,Main:c.default,App:l.default,Share:new s.default("system:share"),Setting:new s.default("system:param"),cacheGlobal:function(e,t){for(var i=0,n=Object.entries(t);i<n.length;i++){var r=g(n[i],2),o=r[0],a=r[1];Eui[e].set(o,a)}},clearGlobalCache:function(){if("true"!==Eui.getEnv("cacheClear")){var e=Eui.Share.get("bios");if(Eui.env.ignoreLocalKeys&&$.isArray(Eui.env.ignoreLocalKeys))for(var t=0,i=Object.entries(localStorage);t<i.length;t++){var n=g(i[t],2),r=n[0];n[1],Eui.env.ignoreLocalKeys.indexOf(r)<0&&localStorage.removeItem(r)}else localStorage.clear();Eui.Share.set("bios",e),Eui.setEnv({cacheClear:"true"})}},setEnv:function(e){if(Eui.isObject(e)){Eui.extend(Eui.env,e);var t=JSON.parse(sessionStorage.getItem("configs"));sessionStorage.setItem("configs",JSON.stringify(v({},t,e)))}else Eui.Logger.log("error","The params must be a object!")},isLogin:function(){return!!Eui.Share.get("loginId")},initI18n:function(e){if(Eui.Locale.localize)for(var t=0,i=Object.entries(e);t<i.length;t++){var n=g(i[t],2),o=n[0],a=n[1];Eui.Extra.executeParser(r.default,o,a)}},subscribeWs:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Eui.pass(Eui.getWsParams,t)();Eui.pass(Eui.Ws.subscribeAndRegister,n,Eui.Ws)()},unSubscribeWs:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Eui.pass(Eui.getWsParams,t)();Eui.pass(Eui.Ws.unsubscribeAndRegister,n,Eui.Ws)()},getWsParams:function(e){var t=e.length,i=e[t-1],n=Eui.wsIndex;return"number"===Eui.type(i)&&(n=i,e=e.slice(0,t-1)),e.push({scopeId:Eui.scopeId}),void 0!==n&&e.push(n),e},openReloginWin:$.emptyFn,getCacheParams:$.emptyFn,rightClickHandle:$.emptyFn},{showSaveDialog:function(e,t){if(void 0!==window.chrome){var i=document.createElement("a");i.href=window.URL.createObjectURL(t),i.download=e,i.click()}else if(void 0!==window.navigator.msSaveBlob){var n=new Blob([t],{type:"application/force-download"});window.navigator.msSaveBlob(n,e)}else{var r=new File([t],e,{type:"application/force-download"});window.open(URL.createObjectURL(r))}}})),i(1025),i(8603)},5817:(e,t,i)=>{i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(8217))&&n.__esModule?n:{default:n};function o(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var s={sendDirectiveToHome:function(e,t,i,n){var r=arguments.length;if(r>3&&4!==r)Eui.Logger.log("error","When you pass callback function please also pass scope parammter! ");else{var o,a=[],s={title:"ipc:home:command"},l={command:e,params:t};if(i&&"function"==typeof i){var c=this.getPageScope(n),u={replyChannel:Math.uuidFast(),once:!1,scope:c,pScopeId:c.scopeId};"object"===Eui.type(t)&&!t.groupId&&Eui.iframe&&Eui.applCode&&(u.groupId=Eui.applCode),Eui.extend(!0,s,u),Eui.extend(!0,l.params,u),o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.apply(this,t)}}a.push(s,l),o&&a.push(o),this.send.apply(null,a)}},showToast:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];this.sendDirectiveToHome("showToast",t)},send:function(e,t,i){var n={data:t};"object"===Eui.type(e)?Eui.extend(n,e):n.title=e;var o=["message:send",n];i&&"function"==typeof i&&o.push(i),r.default.subscribe.apply(null,o)},pageScopeKeys:["scopeId","applCode"],getPageScope:function(e){var t={};if("object"===Eui.type(e)){var i,n=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=o(e))){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}(this.pageScopeKeys);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.hasOwnProperty(r)&&(t[r]=e[r])}}catch(e){n.e(e)}finally{n.f()}}else Eui.log("error","The page scope must be a object.");return t},subscribe:function(e,t,i){var n=arguments.length;if(n<2)Eui.Logger.log("error","You must pass less 2 param, includes channel, scope !");else{var o,a=i,s={replyChannel:Math.uuidFast()};if(2===n?a=t:3===n&&(o=t),"object"===Eui.type(e)?Eui.extend(s,e):s.title=e,"object"===Eui.type(a)){var l=["title:subscribe"];Eui.extend(s,{scope:this.getPageScope(a)}),l.push(s),o&&l.push((function(e,t){o.call(null,e,t)})),r.default.subscribe.apply(null,l)}else Eui.Logger.log("warn","The scope must include scopeId!")}},unsubscribe:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length;if(o<2)Eui.Logger.log("error","You must pass less 2 param, includes channel, scope !");else{var a,s=i,l={};if(2===o?s=t:3===o&&(a=t),"object"===Eui.type(e)?Eui.extend(l,e):l.title=e,"object"===Eui.type(s)){var c=["title:unsubscribe"];Eui.extend(l,{scope:this.getPageScope(s)}),c.push(l),a&&(Eui.extend(l,{once:!0,replyChannel:Math.uuidFast()}),c.push((function(e,t){a.call(null,e,t)}))),n&&(l.replyChannel="ws:message:unobserve"),r.default.subscribe.apply(null,c)}else Eui.Logger.log("warn","The scope must include scopeId!")}},addSubscribes:function(e,t){for(var i=0,n=Object.entries(e);i<n.length;i++){var r=(l=n[i],c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(l,c)||o(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],s=r[1];this.subscribe(a,s,t)}var l,c},clearScope:function(e){r.default.subscribe("scope:clear",{scopeId:e})},customSubscribe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r.default.subscribe.apply(null,t)}};t.default=s},6132:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={message:{handler:function(e){Eui.Object.merge(Eui.Messager.message,e)}},dict:{handler:function(e){Eui.Object.merge(Eui.LocalStore.dictionaries,e)}}};t.default=i},239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(4077).Z;t.default=n},1093:(e,t,i)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={"configs-setting":function(e){for(var t=e||{},i=0,r=Object.entries(t);i<r.length;i++){var o=(l=r[i],c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(l,c)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=o[1];Eui.Storage.setItem(a,s,"S")}var l,c}};t.default=r},4077:(e,t,i)=>{t.Z=void 0;var n,r=(n=i(1093))&&n.__esModule?n:{default:n},o={send:function(e,t){Eui.Extra.executeParser(r.default,e,t)},sendSync:Eui.emptyFn};t.Z=o},8603:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i(7658),i(1703);var r=function(e){return e&&e.__esModule?e:{default:e}}(i(5099));function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}Eui.apply(Eui.Comm,{beforeSendQueues:r.default,isAuthApp:function(e){return e===Eui.getEnv("authAppHostKey")},getAppRealUrl:function(e,t){return e&&this.remoteRe.test(e)?this.getReqServerURL(e,t):e},getReqServerURL:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Eui.Comm.defaultHostKey;if(e&&!/^(https|http)?:\/\//.test(e)){var n=(Eui.getProxy(i)||{}).alias,r=void 0===n?i:n;return[Eui.getAppServer(i)||Eui.getEnv("AppHostUrl")].concat((t=r&&"/"!==r?[r]:[],function(e){if(Array.isArray(e))return s(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[Eui.getEnv("urlPlaceholders")?this.parseUrlPlaceholder(e):e]).join("/")}return e},parseUrlPlaceholder:function(e){var t=Eui.env.urlPlaceholders,i=void 0===t?{}:t;return!0===i&&(i={}),e.replace(/\$\{[a-zA-Z]+\}/g,(function(e){var t=e.substring(2,e.length-1);return i[t]||t}))},recvCompleteDispatch:function(e,t){if("json"===this.dataType&&"success"===t){var i,n,r=e.responseJSON,o=r.message,a=Eui.Cache.get("leafMenus");if(o&&!Eui.isStableLogined(o)&&a&&0===a.size){var s,l=null===(s=Eui.service.findPluginByName("loginPlugin"))||void 0===s?void 0:s.redirectToLogin;l&&l()}Eui.isSuccess(r)||Eui.isStableLogined(o)||(Eui.isLogin()?"timeout"!==Eui.Share.get("systemStatus")&&(Eui.Share.set("systemStatus","timeout"),i="relogin"):i="login",i&&(Eui.iframe?Eui.Ipc.send("ipc:interface:status",{url:this.url,message:o,action:i}):(null===(n=Eui.service.findPluginByName("loginPlugin"))||void 0===n?void 0:n.relogin)(i,"error.user.sl.exit"===o)))}},recvSuccessDispatch:function(e){if(e){var t=e.message,i=this.dataType,n=this.autoTip,r=void 0===n||n,o=Eui.isSuccess(e);if("json"===i&&Eui.Logger.log("debug","ReqUrl => {%s}, Method type => {%s}, Params => {%o},Response data =>",this.url,this.type,Eui.Object.fromQueryString(this.data||""),e),Eui.isStableLogined(t)&&"json"===i&&r&&(t||!o)){var a=o?"info":"warning",s=t||"EXECUTE_FAILRE",l=Eui.Messager.parseResultMsg(s);Eui.Messager.showToast(a,l)}}},recvErrorDispatch:function(e){Eui.Logger.log("warn","服务发生异常,状态码 => %s, 详情 => %s.",e.status,e.responseText)},beforeResolveSuccess:function(e){return e},beforeRejectError:function(e){return e},showHttpResMsg:function(e,t){Eui.Extra.showToast(e,t)},recvBeforeSendDispatch:function(e,t){var i=Eui.Comm;t.hostKey||(t.hostKey=i.defaultHostKey);for(var n=0,r=Object.values(i.beforeSendQueues);n<r.length;n++)r[n].call(i,e,t)}}),Eui.apply(Eui,{isStableLogined:function(e){return!(e&&("ecas.core.user.notLogin"===e||"error.user.notLogin"===e||"error.user.sl.exit"===e))},hasPermission:function(e,t){if(!Eui.getEnv("verifyPowerBit"))return!0;if(!t)return Eui.Logger.log("error","Please connect framework developers, unget 'applCode' param in this scene."),!1;var i=Eui.Share.get("userRoles",!0)||{};if(!i.hasOwnProperty(t))return!1;var n=i[t]||[],r=!1;return $.each(n,(function(t,i){var n=i||"0000",o=(e-1)/4;if(o>=n.length)Eui.Logger.log("debug","权限位[".concat(e,"]超权限[").concat(n,"]长度!"));else{var a=n.charCodeAt(o);if((1<<(e-1)%4&a-(a>57?55:48))>0)return r=!0,!1}return!0})),r}}),Eui.apply(Eui.Download,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({isWebEnv:function(){return!0},getExportUrl:function(e,t){return Eui.Comm.getAppRealUrl(e,t)}},{})),Eui.apply(Eui.App.waitingAnimate,{showWaiting:function(e){var t=Eui.env.spinType,i=void 0===t?"spin":t,n="",r=!1;e&&(n=e.title,r=e.opacity);var o=this;"dot"!==i&&(o.waitingHtml='<div class="loader">\n <div class="loader-spin ant-spin-lg">\n <span class="ant-spin-dot ant-spin-dot-spin">\n <i class="ant-spin-dot-item"></i>\n <i class="ant-spin-dot-item"></i>\n <i class="ant-spin-dot-item"></i>\n <i class="ant-spin-dot-item"></i>\n </span>\n </div>\n <div class="loader-content">'.concat(n,"</div>\n </div>"));var a=$(o.waitingHtml),s=$(".loader");s.length?(s.show(),s.click((function(){Eui.App.waitingAnimate.hideWaiting()}))):($("body").append(a.show()),a.click((function(){Eui.App.waitingAnimate.hideWaiting()}))),r&&s.length?s.css({opacity:r}):a.css({opacity:r}),o.status=!0}})},4047:(e,t)=>{t.Z=function(e){if(e&&"object"===Eui.type(e)){var t=function(t){var n=e[t].rootPath,r="".concat(n);Eui.ajax({url:"".concat(r,"/setting.json"),async:!1,success:function(e){Eui.extend(i,e)},error:function(){Eui.Logger.log("info","The app of %s don't have define setting.json file.",t)}})};for(var n in e)t(n)}return i};var i={noticeAllMaxLength:"100",noticeMaxLength:"20",noticeHistoryMaxLength:"1000",toastRefreshFreq:"100",toastDestroyTime:"3000",heartBeatFreq:"10",widgetMaximize:!0,widgetZoom:!0,widgetPopup:!1,alert2HomeCtrl:!0,toast2HomeCtrl:!0}},8217:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={subscribe:function(e,t,n){var r=arguments,o=r.length,a=n,s="ipc-message",l={channel:s,sync:!1,directive:e};if(window.plus&&window.plus.webview.isPopWin()){var c=plus.webview.getTargetId();l.webviewId=c}if(2===o){var u=i(r[1]);"function"===u?a=r[1]:"object"===u&&Eui.extend(!0,l,t)}else 3===o&&Eui.extend(!0,l,r[1]);if(a&&"function"==typeof a){var d=l.replyChannel||"".concat(s,":").concat(e),p=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];a.apply(this,t)},h=l.scope.scopeId;if(h){var f=Eui.Processor.observer.getScoperef(h);f&&(l.once?f.once(d,p):f.on(d,p))}else Eui.Logger.log("error","You have no store the relation of scopeId({0}) to eventEmitter!",h,!0)}Eui.iframe?Eui.postMessage(window.parent,{command:"ipc:transmit",channel:s,opts:l}):Eui.Processor.eventEmitter.emit(s,l)}};t.default=n},1848:(e,t,i)=>{function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={objToStrMap:function(e){for(var t=new Map,i=0,r=Object.entries(e);i<r.length;i++){var o=n(r[i],2),a=o[0],s=o[1];t.set(a,s)}return t},jsonToStrMap:function(e){return this.objToStrMap(JSON.parse(e))},jsonToMap:function(e){return new Map(JSON.parse(e))},strMapToObj:function(e){var t,i=Object.create(null),o=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=r(e))){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}(e);try{for(o.s();!(t=o.n()).done;){var a=n(t.value,2),s=a[0],l=a[1];i[s]=l}}catch(e){o.e(e)}finally{o.f()}return i},strMapToJson:function(e){return JSON.stringify(this.strMapToObj(e))},mapToArrayJson:function(e){return JSON.stringify(function(e){if(Array.isArray(e))return o(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t}};t.default=a},2779:(e,t)=>{function i(e){var t="",i=Eui.getEnv("appSchema");if("S"===i||!e&&!Eui.applCode)t="..";else if("M"===i){var n=Eui.env,r=n.asarsDir,o=n.i18n,a=n.electron,s=n.baseEntry,l=n.defaultI18n;t=l?"".concat(r,"/").concat(e).concat(a?".asar":"","/").concat(l,"/").concat(s):"".concat(r,"/").concat(e).concat(a?".asar":"","/").concat(o,"/").concat(s)}return t}function n(e){return encodeURI(e.replace(/\\/g,"/"))}Object.defineProperty(t,"__esModule",{value:!0}),t.decimalPrecision=void 0,t.encodeFileURI=n,t.getContextPath=i,t.getRelativeURL=function(e,t){var r=i(t);return n("".concat(r,"/").concat(e))},t.isElectron=function(){return window.navigator.userAgent.indexOf("Electron")>=0},t.isGtTo=function(e,t){return Eui.isNumber(e)||(e=Number(e.replace("px",""))),e>t},t.decimalPrecision=function(){void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Math.trunc&&(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)});var e=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,1e15,1e16,1e17,1e18,1e19,1e20,1e21,1e22],t=function(t){return t<0||t>22?Math.pow(10,t):e[t]},i=function(e,i,n){if("round"!==e&&function(e,i){var n=t(i);return Math.round(e*n)/n===e}(i,n||0))return i;var r=t(n||0),o=i*r*(1+Number.EPSILON);return Math[e](o)/r};return{round:function(e,t){return i("round",e,t)},ceil:function(e,t){return i("ceil",e,t)},floor:function(e,t){return i("floor",e,t)},trunc:function(e,t){return i("trunc",e,t)},toFixed:function(e,t){return i("round",e,t).toFixed(t)}}}()},5399:(e,t,i)=>{i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(8217)),r=o(i(5817));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){var i=[],n=Eui.type(t);return"array"===n?i=t:"string"===n&&(i=t.split("|")),i.map((function(t){return"client".concat(e,"_").concat(t)}))}function u(e){return Eui.isNumber(e)}var d={start:function(e,t){"object"===Eui.type(e)&&e.hasOwnProperty("url")?n.default.subscribe("ws:start",e,t):Eui.Logger.log("error","The params must be a object type and less 'url' property!")},stop:function(e){n.default.subscribe("ws:stop",{wsIndex:e})},subscribe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],o=t.length,s=t[o-1],l=u(s),d="ws:message:observe";t[0]={title:l?c(s,n):n,replyChannel:l?"client".concat(s,"_").concat(d,"_").concat(Math.random()):d},r.default.subscribe.apply(r.default,a(l?t.slice(0,o-1):t))},subscribeAndRegister:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],o=t[t.length-1],a=["ipc:ws:subscribe",[n]];u(o)&&a[1].push(o),r.default.send.apply(r.default,a),this.subscribe.apply(this,t)},unsubscribe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[t.length-1],o=t[0],a=u(n);a&&(t[0]=c(n,o)),a?t[3]=!0:t.push(!0),r.default.unsubscribe.apply(r.default,t)},unsubscribeWithUnregister:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=t.length,s=t[o-1],l=t[0],d=u(s);d&&(t[0]=c(s,l)),r.default.unsubscribe.apply(r.default,a(d?t.slice(0,o-1):t)),n.default.subscribe("ws:unregister",{titles:l,lastArg:s})},unsubscribeAndRegister:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,o,a,l,d=t[t.length-1],p=(l=3,function(e){if(Array.isArray(e))return e}(a=t)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(a,l)||s(a,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=p[0],f=p[1],g=p[2],m=u(d);m&&(t=t.slice(0,-1));var v=t.length;1===v?o={scopeId:Eui.scopeId}:2===v?o=f:3===v&&(n=f,o=g),r.default.unsubscribe(m?c(d,h):h,(function(e,t){n&&n(e,t);var i=["ipc:ws:unSubscribe",[h]];m&&i[1].push(d),r.default.send.apply(r.default,i)}),o,!0)},register:function(e,t){n.default.subscribe("ws:register",{title:e,wsIndex:t})},unregister:function(e,t){n.default.subscribe("ws:unregister",{title:e,wsIndex:t})},send:function(e,t){n.default.subscribe("ws:send",{content:e,wsIndex:t})}};t.default=d},1793:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__(1703),__webpack_require__(7658),__webpack_require__(2262),__webpack_require__(4506),__webpack_require__(2801),__webpack_require__(8675),__webpack_require__(3408),__webpack_require__(4590),__webpack_require__(3462),__webpack_require__(3767),__webpack_require__(8585),__webpack_require__(8696);var dll=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=10)}([function(e,t,i){var n;!function(t,i){"object"==typeof e.exports?e.exports=t.document?i(t,!1):function(e){if(!e.document)throw new Error("Eui requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(i,r){var o=[],a=o.slice,s=o.concat,l=o.push,c=o.indexOf,u={},d=u.toString,p=u.hasOwnProperty,h={},f="2.1.4",g=function(e,t){return new g.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,y=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function w(e){var t="length"in e&&e.length,i=g.type(e);return"function"!==i&&!g.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.regExps={},g.fn=g.prototype={eui:f,constructor:g,selector:"",length:0,toArray:function(){return a.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return g.each(this,e,t)},map:function(e){return this.pushStack(g.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:l,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(r=arguments[s]))for(n in r)e=a[n],a!==(i=r[n])&&(c&&i&&(g.isPlainObject(i)||(t=g.isArray(i)))?(t?(t=!1,o=e&&g.isArray(e)?e:[]):o=e&&g.isPlainObject(e)?e:{},a[n]=g.extend(c,o,i)):void 0!==i&&(a[n]=i));return a},g.extend({expando:"Eui"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray||function(e){return"array"===g.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!g.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==g.type(e)||e.nodeType||g.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(h.ownLast)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){e&&g.trim(e)&&(i.execScript||function(e){i.eval.call(i,e)})(e)},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,r=e.length,o=w(e);if(i){if(o)for(;r>n&&!1!==t.apply(e[n],i);n++);else for(n in e)if(!1===t.apply(e[n],i))break}else if(o)for(;r>n&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(w(Object(e))?g.merge(i,"string"==typeof e?[e]:e):l.call(i,e)),i},inArray:function(e,t,i){var n;if(t){if(c)return c.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;i>n;)e[r++]=t[n++];if(i!=i)for(;void 0!==t[n];)e[r++]=t[n++];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,a=!i;o>r;r++)!t(e[r],r)!==a&&n.push(e[r]);return n},map:function(e,t,i){var n,r=0,o=e.length,a=[];if(w(e))for(;o>r;r++)null!=(n=t(e[r],r,i))&&a.push(n);else for(r in e)null!=(n=t(e[r],r,i))&&a.push(n);return s.apply([],a)},guid:1,proxy:function(e,t){var i,n,r;return"string"==typeof t&&(r=e[t],t=e,e=r),g.isFunction(e)?(i=a.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||g.guid++,n):void 0},now:function(){return+new Date},support:h}),g.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var _=function(e){var t,i,n,r,o,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w="sizzle"+1*new Date,_=e.document,x=0,$=0,C=oe(),k=oe(),S=oe(),E=function(e,t){return e===t&&(d=!0),0},j={}.hasOwnProperty,D=[],T=D.pop,I=D.push,A=D.push,O=D.slice,N=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=F.replace("w","w#"),L="\\["+M+"*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",q=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",H=new RegExp(M+"+","g"),z=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),B=new RegExp("^"+M+"*,"+M+"*"),G=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),W=new RegExp(q),Y=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ie=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ne=function(){p()};try{A.apply(D=O.call(_.childNodes),_.childNodes),D[_.childNodes.length].nodeType}catch(e){A={apply:D.length?function(e,t){I.apply(e,O.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function re(e,t,n,r){var o,s,c,u,d,f,v,y,x,$;if((t?t.ownerDocument||t:_)!==h&&p(t),n=n||[],u=(t=t||h).nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return n;if(!r&&g){if(11!==u&&(o=Q.exec(e)))if(c=o[1]){if(9===u){if(!(s=t.getElementById(c))||!s.parentNode)return n;if(s.id===c)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&b(t,s)&&s.id===c)return n.push(s),n}else{if(o[2])return A.apply(n,t.getElementsByTagName(e)),n;if((c=o[3])&&i.getElementsByClassName)return A.apply(n,t.getElementsByClassName(c)),n}if(i.qsa&&(!m||!m.test(e))){if(y=v=w,x=t,$=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=a(e),(v=t.getAttribute("id"))?y=v.replace(ee,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=f.length;d--;)f[d]=y+ge(f[d]);x=Z.test(e)&&he(t.parentNode)||t,$=f.join(",")}if($)try{return A.apply(n,x.querySelectorAll($)),n}catch(e){}finally{v||t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,n,r)}function oe(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function ae(e){return e[w]=!0,e}function se(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),r=e.length;r--;)n.attrHandle[i[r]]=t}function ce(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function pe(e){return ae((function(t){return t=+t,ae((function(i,n){for(var r,o=e([],i.length,t),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))}))}))}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=re.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:_;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,f=a.documentElement,(r=a.defaultView)&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),g=!o(a),i.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=se((function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(a.getElementsByClassName),i.getById=se((function(e){return f.appendChild(e).id=w,!a.getElementsByName||!a.getElementsByName(w).length})),i.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){return g?t.getElementsByClassName(e):void 0},v=[],m=[],(i.qsa=J.test(a.querySelectorAll))&&(se((function(e){f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")})),se((function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&se((function(e){i.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",q)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===a||e.ownerDocument===_&&b(_,e)?-1:t===a||t.ownerDocument===_&&b(_,t)?1:u?N(u,e)-N(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,r=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!r||!o)return e===a?-1:t===a?1:r?-1:o?1:u?N(u,e)-N(u,t):0;if(r===o)return ce(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?ce(s[n],l[n]):s[n]===_?-1:l[n]===_?1:0},a):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(U,"='$1']"),i.matchesSelector&&g&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=n.attrHandle[t.toLowerCase()],o=r&&j.call(n.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:i.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],r=0,o=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return u=null,e},r=re.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=re.selectors={cacheLength:50,createPseudo:ae,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=re.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(H," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,p,h,f,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&y){for(h=(c=(u=m[w]||(m[w]={}))[e]||[])[0]===x&&c[1],p=c[0]===x&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(p=h=0)||f.pop();)if(1===d.nodeType&&++p&&d===t){u[e]=[x,h,p];break}}else if(y&&(c=(t[w]||(t[w]={}))[e])&&c[0]===x)p=c[1];else for(;(d=++h&&d&&d[g]||(p=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[w]||(d[w]={}))[e]=[x,p]),d!==t)););return(p-=r)===n||p%n==0&&p/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,i){for(var n,o=r(e,t),a=o.length;a--;)e[n=N(e,o[a])]=!(i[n]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:ae((function(e){var t=[],i=[],n=s(e.replace(z,"$1"));return n[w]?ae((function(e,t,i,r){for(var o,a=n(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:ae((function(e){return function(t){return re(e,t).length>0}})),contains:ae((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:ae((function(e){return Y.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe((function(){return[0]})),last:pe((function(e,t){return[t-1]})),eq:pe((function(e,t,i){return[0>i?i+t:i]})),even:pe((function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e})),odd:pe((function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e})),lt:pe((function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e})),gt:pe((function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=ue(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=de(t);function fe(){}function ge(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function me(e,t,i){var n=t.dir,r=i&&"parentNode"===n,o=$++;return t.first?function(t,i,o){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,o)}:function(t,i,a){var s,l,c=[x,o];if(a){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,a))return!0}else for(;t=t[n];)if(1===t.nodeType||r){if((s=(l=t[w]||(t[w]={}))[n])&&s[0]===x&&s[1]===o)return c[2]=s[2];if(l[n]=c,c[2]=e(t,i,a))return!0}}}function ve(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function ye(e,t,i,n,r){for(var o,a=[],s=0,l=e.length,c=null!=t;l>s;s++)(o=e[s])&&(!i||i(o,n,r))&&(a.push(o),c&&t.push(s));return a}function be(e,t,i,n,r,o){return n&&!n[w]&&(n=be(n)),r&&!r[w]&&(r=be(r,o)),ae((function(o,a,s,l){var c,u,d,p=[],h=[],f=a.length,g=o||function(e,t,i){for(var n=0,r=t.length;r>n;n++)re(e,t[n],i);return i}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:ye(g,p,e,s,l),v=i?r||(o?e:f||n)?[]:a:m;if(i&&i(m,v,s,l),n)for(c=ye(v,h),n(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(m[h[u]]=d));if(o){if(r||e){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=r?N(o,d):p[u])>-1&&(o[c]=!(a[c]=d))}}else v=ye(v===a?v.splice(f,v.length):v),r?r(null,a,v,l):A.apply(a,v)}))}function we(e){for(var t,i,r,o=e.length,a=n.relative[e[0].type],s=a||n.relative[" "],l=a?1:0,u=me((function(e){return e===t}),s,!0),d=me((function(e){return N(t,e)>-1}),s,!0),p=[function(e,i,n){var r=!a&&(n||i!==c)||((t=i).nodeType?u(e,i,n):d(e,i,n));return t=null,r}];o>l;l++)if(i=n.relative[e[l].type])p=[me(ve(p),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;o>r&&!n.relative[e[r].type];r++);return be(l>1&&ve(p),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),i,r>l&&we(e.slice(l,r)),o>r&&we(e=e.slice(r)),o>r&&ge(e))}p.push(i)}return ve(p)}function _e(e,t){var i=t.length>0,r=e.length>0,o=function(o,a,s,l,u){var d,p,f,g=0,m="0",v=o&&[],y=[],b=c,w=o||r&&n.find.TAG("*",u),_=x+=null==b?1:Math.random()||.1,$=w.length;for(u&&(c=a!==h&&a);m!==$&&null!=(d=w[m]);m++){if(r&&d){for(p=0;f=e[p++];)if(f(d,a,s)){l.push(d);break}u&&(x=_)}i&&((d=!f&&d)&&g--,o&&v.push(d))}if(g+=m,i&&m!==g){for(p=0;f=t[p++];)f(v,y,a,s);if(o){if(g>0)for(;m--;)v[m]||y[m]||(y[m]=T.call(l));y=ye(y)}A.apply(l,y),u&&!o&&y.length>0&&g+t.length>1&&re.uniqueSort(l)}return u&&(x=_,c=b),v};return i?ae(o):o}return fe.prototype=n.filters=n.pseudos,n.setFilters=new fe,a=re.tokenize=function(e,t){var i,r,o,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=n.preFilter;s;){for(a in(!i||(r=B.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=G.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(z," ")}),s=s.slice(i.length)),n.filter)!(r=V[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return t?s.length:s?re.error(e):k(e,l).slice(0)},s=re.compile=function(e,t){var i,n=[],r=[],o=S[e+" "];if(!o){for(t||(t=a(e)),i=t.length;i--;)(o=we(t[i]))[w]?n.push(o):r.push(o);(o=S(e,_e(r,n))).selector=e}return o},l=re.select=function(e,t,r,o){var l,c,u,d,p,h="function"==typeof e&&e,f=!o&&a(e=h.selector||e);if(r=r||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&i.getById&&9===t.nodeType&&g&&n.relative[c[1].type]){if(!(t=(n.find.ID(u.matches[0].replace(te,ie),t)||[])[0]))return r;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=V.needsContext.test(e)?0:c.length;l--&&(u=c[l],!n.relative[d=u.type]);)if((p=n.find[d])&&(o=p(u.matches[0].replace(te,ie),Z.test(c[0].type)&&he(t.parentNode)||t))){if(c.splice(l,1),!(e=o.length&&ge(c)))return A.apply(r,o),r;break}}return(h||s(e,f))(o,t,!g,r,Z.test(e)&&he(t.parentNode)||t),r},i.sortStable=w.split("").sort(E).join("")===w,i.detectDuplicates=!!d,p(),i.sortDetached=se((function(e){return 1&e.compareDocumentPosition(h.createElement("div"))})),se((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||le("type|href|height|width",(function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&se((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||le("value",(function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||le(P,(function(e,t,i){var n;return i?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),re}(i);g.find=_,g.expr=_.selectors,g.expr[":"]=g.expr.pseudos,g.unique=_.uniqueSort,g.text=_.getText,g.isXMLDoc=_.isXML,g.contains=_.contains;var x=g.expr.match.needsContext,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^.[^:#\[\.,]*$/;function S(e,t,i){if(g.isFunction(t))return g.grep(e,(function(e,n){return!!t.call(e,n,e)!==i}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if(k.test(t))return g.filter(t,e,i);t=g.filter(t,e)}return g.grep(e,(function(e){return g.inArray(e,t)>=0!==i}))}g.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?g.find.matchesSelector(n,e)?[n]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,i=[],n=this,r=n.length;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;r>t;t++)if(g.contains(n[t],this))return!0})));for(t=0;r>t;t++)g.find(e,n[t],i);return(i=this.pushStack(r>1?g.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&x.test(e)?g(e):e||[],!1).length}});var E,j=i.document,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:D.exec(e))||!i[1]&&t)return!t||t.eui?(t||E).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:j,!0)),C.test(i[1])&&g.isPlainObject(t))for(i in t)g.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=j.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return E.find(e);this.length=1,this[0]=n}return this.context=j,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==E.ready?E.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,E=g(j);var T=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}g.extend({dir:function(e,t,i){for(var n=[],r=e[t];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!g(r).is(i));)1===r.nodeType&&n.push(r),r=r[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),g.fn.extend({has:function(e){var t,i=g(e,this),n=i.length;return this.filter((function(){for(t=0;n>t;t++)if(g.contains(this,i[t]))return!0}))},closest:function(e,t){for(var i,n=0,r=this.length,o=[],a=x.test(e)||"string"!=typeof e?g(e,t||this.context):0;r>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&g.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?g.unique(o):o)},index:function(e){return e?"string"==typeof e?g.inArray(this[0],g(e)):g.inArray(e.eui?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.unique(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return g.dir(e,"parentNode")},parentsUntil:function(e,t,i){return g.dir(e,"parentNode",i)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return g.dir(e,"nextSibling")},prevAll:function(e){return g.dir(e,"previousSibling")},nextUntil:function(e,t,i){return g.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return g.dir(e,"previousSibling",i)},siblings:function(e){return g.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return g.sibling(e.firstChild)},contents:function(e){return g.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(i,n){var r=g.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=g.filter(n,r)),this.length>1&&(I[e]||(r=g.unique(r)),T.test(e)&&r.reverse()),this.pushStack(r)}}));var O,N=/\S+/g,P={};function M(){j.addEventListener?(j.removeEventListener("DOMContentLoaded",F,!1),i.removeEventListener("load",F,!1)):(j.detachEvent("onreadystatechange",F),i.detachEvent("onload",F))}function F(){(j.addEventListener||"load"===event.type||"complete"===j.readyState)&&(M(),g.ready())}g.Callbacks=function(e){e="string"==typeof e?P[e]||function(e){var t=P[e]={};return g.each(e.match(N)||[],(function(e,i){t[i]=!0})),t}(e):g.extend({},e);var t,i,n,r,o,a,s=[],l=!e.once&&[],c=function(d){for(i=e.memory&&d,n=!0,o=a||0,a=0,r=s.length,t=!0;s&&r>o;o++)if(!1===s[o].apply(d[0],d[1])&&e.stopOnFalse){i=!1;break}t=!1,s&&(l?l.length&&c(l.shift()):i?s=[]:u.disable())},u={add:function(){if(s){var n=s.length;!function t(i){g.each(i,(function(i,n){var r=g.type(n);"function"===r?e.unique&&u.has(n)||s.push(n):n&&n.length&&"string"!==r&&t(n)}))}(arguments),t?r=s.length:i&&(a=n,c(i))}return this},remove:function(){return s&&g.each(arguments,(function(e,i){for(var n;(n=g.inArray(i,s,n))>-1;)s.splice(n,1),t&&(r>=n&&r--,o>=n&&o--)})),this},has:function(e){return e?g.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],r=0,this},disable:function(){return s=l=i=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,i||u.disable(),this},locked:function(){return!l},fireWith:function(e,i){return!s||n&&!l||(i=[e,(i=i||[]).slice?i.slice():i],t?l.push(i):c(i)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(i){g.each(t,(function(t,o){var a=g.isFunction(e[t])&&e[t];r[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,n):n}},r={};return n.pipe=n.then,g.each(t,(function(e,o){var a=o[2],s=o[3];n[o[1]]=a.add,s&&a.add((function(){i=s}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=a.fireWith})),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,o=a.call(arguments),s=o.length,l=1!==s||e&&g.isFunction(e.promise)?s:0,c=1===l?e:g.Deferred(),u=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?a.call(arguments):r,n===t?c.notifyWith(i,n):--l||c.resolveWith(i,n)}};if(s>1)for(t=new Array(s),i=new Array(s),n=new Array(s);s>r;r++)o[r]&&g.isFunction(o[r].promise)?o[r].promise().done(u(r,n,o)).fail(c.reject).progress(u(r,i,t)):--l;return l||c.resolveWith(n,o),c.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){if(!0===e?!--g.readyWait:!g.isReady){if(!j.body)return setTimeout(g.ready);g.isReady=!0,!0!==e&&--g.readyWait>0||(O.resolveWith(j,[g]),g.fn.triggerHandler&&(g(j).triggerHandler("ready"),g(j).off("ready")))}}}),g.ready.promise=function(e){if(!O)if(O=g.Deferred(),"complete"===j.readyState)setTimeout(g.ready);else if(j.addEventListener)j.addEventListener("DOMContentLoaded",F,!1),i.addEventListener("load",F,!1);else{j.attachEvent("onreadystatechange",F),i.attachEvent("onload",F);var t=!1;try{t=null==i.frameElement&&j.documentElement}catch(e){}t&&t.doScroll&&function e(){if(!g.isReady){try{t.doScroll("left")}catch(t){return setTimeout(e,50)}M(),g.ready()}}()}return O.promise(e)};var R="undefined";for(ci in g(h))break;h.ownLast="0"!==ci,h.inlineBlockNeedsLayout=!1,g((function(){var e,t,i,n;(i=j.getElementsByTagName("body")[0])&&i.style&&(t=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==R&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",h.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))})),function(){var e=j.createElement("div");if(null==h.deleteExpando){h.deleteExpando=!0;try{delete e.test}catch(e){h.deleteExpando=!1}}e=null}(),g.acceptData=function(e){var t=g.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var L=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;function H(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(q,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:L.test(i)?g.parseJSON(i):i)}catch(e){}g.data(e,t,i)}else i=void 0}return i}function z(e){var t;for(t in e)if(("data"!==t||!g.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function B(e,t,i,n){if(g.acceptData(e)){var r,a,s=g.expando,l=e.nodeType,c=l?g.cache:e,u=l?e[s]:e[s]&&s;if(u&&c[u]&&(n||c[u].data)||void 0!==i||"string"!=typeof t)return u||(u=l?e[s]=o.pop()||g.guid++:s),c[u]||(c[u]=l?{}:{toJSON:g.noop}),("object"==typeof t||"function"==typeof t)&&(n?c[u]=g.extend(c[u],t):c[u].data=g.extend(c[u].data,t)),a=c[u],n||(a.data||(a.data={}),a=a.data),void 0!==i&&(a[g.camelCase(t)]=i),"string"==typeof t?null==(r=a[t])&&(r=a[g.camelCase(t)]):r=a,r}}function G(e,t,i){if(g.acceptData(e)){var n,r,o=e.nodeType,a=o?g.cache:e,s=o?e[g.expando]:g.expando;if(a[s]){if(t&&(n=i?a[s]:a[s].data)){r=(t=g.isArray(t)?t.concat(g.map(t,g.camelCase)):t in n||(t=g.camelCase(t))in n?[t]:t.split(" ")).length;for(;r--;)delete n[t[r]];if(i?!z(n):!g.isEmptyObject(n))return}(i||(delete a[s].data,z(a[s])))&&(o?g.cleanData([e],!0):h.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}g.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?g.cache[e[g.expando]]:e[g.expando])&&!z(e)},data:function(e,t,i){return B(e,t,i)},removeData:function(e,t){return G(e,t)},_data:function(e,t,i){return B(e,t,i,!0)},_removeData:function(e,t){return G(e,t,!0)}}),g.fn.extend({data:function(e,t){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=g.data(o),1===o.nodeType&&!g._data(o,"parsedAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&H(o,n=g.camelCase(n.slice(5)),r[n]);g._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each((function(){g.data(this,e)})):arguments.length>1?this.each((function(){g.data(this,e,t)})):o?H(o,e,g.data(o,e)):void 0},removeData:function(e){return this.each((function(){g.removeData(this,e)}))}}),g.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=g._data(e,t),i&&(!n||g.isArray(i)?n=g._data(e,t,g.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=g.queue(e,t),n=i.length,r=i.shift(),o=g._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,(function(){g.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return g._data(e,i)||g._data(e,i,{empty:g.Callbacks("once memory").add((function(){g._removeData(e,t+"queue"),g._removeData(e,i)}))})}}),g.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?g.queue(this[0],e):void 0===t?this:this.each((function(){var i=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=g.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=g._data(o[a],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(t)}});var U=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=["Top","Right","Bottom","Left"],Y=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)},V=g.access=function(e,t,i,n,r,o,a){var s=0,l=e.length,c=null==i;if("object"===g.type(i))for(s in r=!0,i)g.access(e,t,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,g.isFunction(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(g(e),i)})),t))for(;l>s;s++)t(e[s],i,a?n:n.call(e[s],s,t(e[s],i)));return r?e:c?t.call(e):l?t(e[0],i):o},K=/^(?:checkbox|radio)$/i;!function(){var e=j.createElement("input"),t=j.createElement("div"),i=j.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",h.leadingWhitespace=3===t.firstChild.nodeType,h.tbody=!t.getElementsByTagName("tbody").length,h.htmlSerialize=!!t.getElementsByTagName("link").length,h.html5Clone="<:nav></:nav>"!==j.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),h.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",h.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,h.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){h.noCloneEvent=!1})),t.cloneNode(!0).click()),null==h.deleteExpando){h.deleteExpando=!0;try{delete t.test}catch(e){h.deleteExpando=!1}}}(),function(){var e,t,n=j.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(h[e+"Bubbles"]=t in i)||(n.setAttribute(t,"t"),h[e+"Bubbles"]=!1===n.attributes[t].expando);n=null}();var X=/^(?:input|select|textarea)$/i,J=/^key/,Q=/^(?:mouse|pointer|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,ee=/^([^.]*)(?:\.(.+)|)$/;function te(){return!0}function ie(){return!1}function ne(){try{return j.activeElement}catch(e){}}function re(e){var t=oe.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}g.event={global:{},add:function(e,t,i,n,r){var o,a,s,l,c,u,d,p,h,f,m,v=g._data(e);if(v){for(i.handler&&(i=(l=i).handler,r=l.selector),i.guid||(i.guid=g.guid++),(a=v.events)||(a=v.events={}),(u=v.handle)||((u=v.handle=function(e){return typeof g===R||e&&g.event.triggered===e.type?void 0:g.event.dispatch.apply(u.elem,arguments)}).elem=e),s=(t=(t||"").match(N)||[""]).length;s--;)h=m=(o=ee.exec(t[s])||[])[1],f=(o[2]||"").split(".").sort(),h&&(c=g.event.special[h]||{},h=(r?c.delegateType:c.bindType)||h,c=g.event.special[h]||{},d=g.extend({type:h,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&g.expr.match.needsContext.test(r),namespace:f.join(".")},l),(p=a[h])||((p=a[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,f,u)||(e.addEventListener?e.addEventListener(h,u,!1):e.attachEvent&&e.attachEvent("on"+h,u))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),g.event.global[h]=!0);e=null}},remove:function(e,t,i,n,r){var o,a,s,l,c,u,d,p,h,f,m,v=g.hasData(e)&&g._data(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(h=m=(s=ee.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=g.event.special[h]||{},p=u[h=(n?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)a=p[o],!r&&m!==a.origType||i&&i.guid!==a.guid||s&&!s.test(a.namespace)||n&&n!==a.selector&&("**"!==n||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,d.remove&&d.remove.call(e,a));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||g.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)g.event.remove(e,h+t[c],i,n,!0);g.isEmptyObject(u)&&(delete v.handle,g._removeData(e,"events"))}},trigger:function(e,t,n,r){var o,a,s,l,c,u,d,h=[n||j],f=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(s=u=n=n||j,3!==n.nodeType&&8!==n.nodeType&&!Z.test(f+g.event.triggered)&&(f.indexOf(".")>=0&&(m=f.split("."),f=m.shift(),m.sort()),a=f.indexOf(":")<0&&"on"+f,(e=e[g.expando]?e:new g.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:g.makeArray(t,[e]),c=g.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!g.isWindow(n)){for(l=c.delegateType||f,Z.test(l+f)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(n.ownerDocument||j)&&h.push(u.defaultView||u.parentWindow||i)}for(d=0;(s=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||f,(o=(g._data(s,"events")||{})[e.type]&&g._data(s,"handle"))&&o.apply(s,t),(o=a&&s[a])&&o.apply&&g.acceptData(s)&&(e.result=o.apply(s,t),!1===e.result&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),t))&&g.acceptData(n)&&a&&n[f]&&!g.isWindow(n)){(u=n[a])&&(n[a]=null),g.event.triggered=f;try{n[f]()}catch(e){}g.event.triggered=void 0,u&&(n[a]=u)}return e.result}},dispatch:function(e){e=g.event.fix(e);var t,i,n,r,o,s=[],l=a.call(arguments),c=(g._data(this,"events")||{})[e.type]||[],u=g.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=g.event.handlers.call(this,e,c),t=0;(r=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,o=0;(n=r.handlers[o++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(n.namespace))&&(e.handleObj=n,e.data=n.data,void 0!==(i=((g.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],o=0;s>o;o++)void 0===r[i=(n=t[o]).selector+" "]&&(r[i]=n.needsContext?g(i,this).index(l)>=0:g.find(i,this,null,[l]).length),r[i]&&r.push(n);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[g.expando])return e;var t,i,n,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Q.test(r)?this.mouseHooks:J.test(r)?this.keyHooks:{}),n=a.props?this.props.concat(a.props):this.props,e=new g.Event(o),t=n.length;t--;)e[i=n[t]]=o[i];return e.target||(e.target=o.srcElement||j),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||j).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ne()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===ne()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return g.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,n){var r=g.extend(new g.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?g.event.trigger(r,null,t):g.event.dispatch.call(t,r),r.isDefaultPrevented()&&i.preventDefault()}},g.removeEvent=j.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var n="on"+t;e.detachEvent&&(typeof e[n]===R&&(e[n]=null),e.detachEvent(n,i))},g.Event=function(e,t){return this instanceof g.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?te:ie):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),void(this[g.expando]=!0)):new g.Event(e,t)},g.Event.prototype={isDefaultPrevented:ie,isPropagationStopped:ie,isImmediatePropagationStopped:ie,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=te,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=te,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=te,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return(!n||n!==this&&!g.contains(this,n))&&(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),h.submitBubbles||(g.event.special.submit={setup:function(){return!g.nodeName(this,"form")&&void g.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,i=g.nodeName(t,"input")||g.nodeName(t,"button")?t.form:void 0;i&&!g._data(i,"submitBubbles")&&(g.event.add(i,"submit._submit",(function(e){e._submit_bubble=!0})),g._data(i,"submitBubbles",!0))}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&g.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!g.nodeName(this,"form")&&void g.event.remove(this,"._submit")}}),h.changeBubbles||(g.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(g.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),g.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),g.event.simulate("change",this,e,!0)}))),!1):void g.event.add(this,"beforeactivate._change",(function(e){var t=e.target;X.test(t.nodeName)&&!g._data(t,"changeBubbles")&&(g.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||g.event.simulate("change",this.parentNode,e,!0)})),g._data(t,"changeBubbles",!0))}))},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return g.event.remove(this,"._change"),!X.test(this.nodeName)}}),h.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){g.event.simulate(t,e.target,g.event.fix(e),!0)};g.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=g._data(n,t);r||n.addEventListener(e,i,!0),g._data(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=g._data(n,t)-1;r?g._data(n,t,r):(n.removeEventListener(e,i,!0),g._removeData(n,t))}}})),g.fn.extend({on:function(e,t,i,n,r){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(i=i||t,t=void 0),e)this.on(o,t,i,e[o],r);return this}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=ie;else if(!n)return this;return 1===r&&(a=n,(n=function(e){return g().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=g.guid++)),this.each((function(){g.event.add(this,e,n,i,t)}))},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,g(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(!1===t||"function"==typeof t)&&(i=t,t=void 0),!1===i&&(i=ie),this.each((function(){g.event.remove(this,e,i,t)}))},trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];return i?g.event.trigger(e,t,i,!0):void 0}});var oe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ae=/ Eui\d+="(?:null|\d+)"/g,se=new RegExp("<(?:"+oe+")[\\s/>]","i"),le=/^\s+/,ce=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ue=/<([\w:]+)/,de=/<tbody/i,pe=/<|&#?\w+;/,he=/<(?:script|style|link)/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^$|\/(?:java|ecma)script/i,me=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ye={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:h.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},be=re(j).appendChild(j.createElement("div"));function we(e,t){var i,n,r=0,o=typeof e.getElementsByTagName!==R?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==R?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],i=e.childNodes||e;null!=(n=i[r]);r++)!t||g.nodeName(n,t)?o.push(n):g.merge(o,we(n,t));return void 0===t||t&&g.nodeName(e,t)?g.merge([e],o):o}function _e(e){K.test(e.type)&&(e.defaultChecked=e.checked)}function xe(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function $e(e){return e.type=(null!==g.find.attr(e,"type"))+"/"+e.type,e}function Ce(e){var t=me.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ke(e,t){for(var i,n=0;null!=(i=e[n]);n++)g._data(i,"globalEval",!t||g._data(t[n],"globalEval"))}function Se(e,t){if(1===t.nodeType&&g.hasData(e)){var i,n,r,o=g._data(e),a=g._data(t,o),s=o.events;if(s)for(i in delete a.handle,a.events={},s)for(n=0,r=s[i].length;r>n;n++)g.event.add(t,i,s[i][n]);a.data&&(a.data=g.extend({},a.data))}}function Ee(e,t){var i,n,r;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!h.noCloneEvent&&t[g.expando]){for(n in(r=g._data(t)).events)g.removeEvent(t,n,r.handle);t.removeAttribute(g.expando)}"script"===i&&t.text!==e.text?($e(t).text=e.text,Ce(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),h.html5Clone&&e.innerHTML&&!g.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&K.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.extend({clone:function(e,t,i){var n,r,o,a,s,l=g.contains(e.ownerDocument,e);if(h.html5Clone||g.isXMLDoc(e)||!se.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(be.innerHTML=e.outerHTML,be.removeChild(o=be.firstChild)),!(h.noCloneEvent&&h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(n=we(o),s=we(e),a=0;null!=(r=s[a]);++a)n[a]&&Ee(r,n[a]);if(t)if(i)for(s=s||we(e),n=n||we(o),a=0;null!=(r=s[a]);a++)Se(r,n[a]);else Se(e,o);return(n=we(o,"script")).length>0&&ke(n,!l&&we(e,"script")),n=s=r=null,o},buildFragment:function(e,t,i,n){for(var r,o,a,s,l,c,u,d=e.length,p=re(t),f=[],m=0;d>m;m++)if((o=e[m])||0===o)if("object"===g.type(o))g.merge(f,o.nodeType?[o]:o);else if(pe.test(o)){for(s=s||p.appendChild(t.createElement("div")),l=(ue.exec(o)||["",""])[1].toLowerCase(),u=ye[l]||ye._default,s.innerHTML=u[1]+o.replace(ce,"<$1></$2>")+u[2],r=u[0];r--;)s=s.lastChild;if(!h.leadingWhitespace&&le.test(o)&&f.push(t.createTextNode(le.exec(o)[0])),!h.tbody)for(r=(o="table"!==l||de.test(o)?"<table>"!==u[1]||de.test(o)?0:s:s.firstChild)&&o.childNodes.length;r--;)g.nodeName(c=o.childNodes[r],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(g.merge(f,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else f.push(t.createTextNode(o));for(s&&p.removeChild(s),h.appendChecked||g.grep(we(f,"input"),_e),m=0;o=f[m++];)if((!n||-1===g.inArray(o,n))&&(a=g.contains(o.ownerDocument,o),s=we(p.appendChild(o),"script"),a&&ke(s),i))for(r=0;o=s[r++];)ge.test(o.type||"")&&i.push(o);return s=null,p},cleanData:function(e,t){for(var i,n,r,a,s=0,l=g.expando,c=g.cache,u=h.deleteExpando,d=g.event.special;null!=(i=e[s]);s++)if((t||g.acceptData(i))&&(a=(r=i[l])&&c[r])){if(a.events)for(n in a.events)d[n]?g.event.remove(i,n):g.removeEvent(i,n,a.handle);c[r]&&(delete c[r],u?delete i[l]:typeof i.removeAttribute!==R?i.removeAttribute(l):i[l]=null,o.push(r))}}}),g.fn.extend({text:function(e){return V(this,(function(e){return void 0===e?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||j).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||xe(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=xe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var i,n=e?g.filter(e,this):this,r=0;null!=(i=n[r]);r++)t||1!==i.nodeType||g.cleanData(we(i)),i.parentNode&&(t&&g.contains(i.ownerDocument,i)&&ke(we(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&g.cleanData(we(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&g.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ae,""):void 0;if("string"==typeof e&&!he.test(e)&&(h.htmlSerialize||!se.test(e))&&(h.leadingWhitespace||!le.test(e))&&!ye[(ue.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ce,"<$1></$2>");try{for(;n>i;i++)1===(t=this[i]||{}).nodeType&&(g.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,g.cleanData(we(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var i,n,r,o,a,l,c=0,u=this.length,d=this,p=u-1,f=e[0],m=g.isFunction(f);if(m||u>1&&"string"==typeof f&&!h.checkClone&&fe.test(f))return this.each((function(i){var n=d.eq(i);m&&(e[0]=f.call(this,i,n.html())),n.domManip(e,t)}));if(u&&(i=(l=g.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=i),i)){for(r=(o=g.map(we(l,"script"),$e)).length;u>c;c++)n=l,c!==p&&(n=g.clone(n,!0,!0),r&&g.merge(o,we(n,"script"))),t.call(this[c],n,c);if(r)for(a=o[o.length-1].ownerDocument,g.map(o,Ce),c=0;r>c;c++)n=o[c],ge.test(n.type||"")&&!g._data(n,"globalEval")&&g.contains(a,n)&&(n.src?g._evalUrl&&g._evalUrl(n.src):g.globalEval((n.text||n.textContent||n.innerHTML||"").replace(ve,"")));l=i=null}return this}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var i,n=0,r=[],o=g(e),a=o.length-1;a>=n;n++)i=n===a?this:this.clone(!0),g(o[n])[t](i),l.apply(r,i.get());return this.pushStack(r)}}));var je,De={};function Te(e,t){var n,r=g(t.createElement(e)).appendTo(t.body),o=i.getDefaultComputedStyle&&(n=i.getDefaultComputedStyle(r[0]))?n.display:g.css(r[0],"display");return r.detach(),o}function Ie(e){var t=j,i=De[e];return i||("none"!==(i=Te(e,t))&&i||((t=((je=(je||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||je[0].contentDocument).document).write(),t.close(),i=Te(e,t),je.detach()),De[e]=i),i}!function(){var e;h.shrinkWrapBlocks=function(){return null!=e?e:(e=!1,(i=j.getElementsByTagName("body")[0])&&i.style?(t=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==R&&(t.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",t.appendChild(j.createElement("div")).style.width="5px",e=3!==t.offsetWidth),i.removeChild(n),e):void 0);var t,i,n}}();var Ae,Oe,Ne=/^margin/,Pe=new RegExp("^("+U+")(?!px)[a-z%]+$","i"),Me=/^(top|right|bottom|left)$/;function Fe(e,t){return{get:function(){var i=e();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}i.getComputedStyle?(Ae=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):i.getComputedStyle(e,null)},Oe=function(e,t,i){var n,r,o,a,s=e.style;return a=(i=i||Ae(e))?i.getPropertyValue(t)||i[t]:void 0,i&&(""!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),Pe.test(a)&&Ne.test(t)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o)),void 0===a?a:a+""}):j.documentElement.currentStyle&&(Ae=function(e){return e.currentStyle},Oe=function(e,t,i){var n,r,o,a,s=e.style;return null==(a=(i=i||Ae(e))?i[t]:void 0)&&s&&s[t]&&(a=s[t]),Pe.test(a)&&!Me.test(t)&&(n=s.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=n,o&&(r.left=o)),void 0===a?a:a+""||"auto"}),function(){var e,t,n,r,o,a,s;if((e=j.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=(n=e.getElementsByTagName("a")[0])&&n.style){function l(){var e,t,n,l;(t=j.getElementsByTagName("body")[0])&&t.style&&(e=j.createElement("div"),(n=j.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=o=!1,s=!0,i.getComputedStyle&&(r="1%"!==(i.getComputedStyle(e,null)||{}).top,o="4px"===(i.getComputedStyle(e,null)||{width:"4px"}).width,(l=e.appendChild(j.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",e.style.width="1px",s=!parseFloat((i.getComputedStyle(l,null)||{}).marginRight),e.removeChild(l)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",a=0===l[0].offsetHeight),t.removeChild(n))}t.cssText="float:left;opacity:.5",h.opacity="0.5"===t.opacity,h.cssFloat=!!t.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===e.style.backgroundClip,h.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing,g.extend(h,{reliableHiddenOffsets:function(){return null==a&&l(),a},boxSizingReliable:function(){return null==o&&l(),o},pixelPosition:function(){return null==r&&l(),r},reliableMarginRight:function(){return null==s&&l(),s}})}}(),g.swap=function(e,t,i,n){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=i.apply(e,n||[]),t)e.style[o]=a[o];return r};var Re=/alpha\([^)]*\)/i,Le=/opacity\s*=\s*([^)]*)/,qe=/^(none|table(?!-c[ea]).+)/,He=new RegExp("^("+U+")(.*)$","i"),ze=new RegExp("^([+-])=("+U+")","i"),Be={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","O","Moz","ms"];function We(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,r=Ue.length;r--;)if((t=Ue[r]+i)in e)return t;return n}function Ye(e,t){for(var i,n,r,o=[],a=0,s=e.length;s>a;a++)(n=e[a]).style&&(o[a]=g._data(n,"olddisplay"),i=n.style.display,t?(o[a]||"none"!==i||(n.style.display=""),""===n.style.display&&Y(n)&&(o[a]=g._data(n,"olddisplay",Ie(n.nodeName)))):(r=Y(n),(i&&"none"!==i||!r)&&g._data(n,"olddisplay",r?i:g.css(n,"display"))));for(a=0;s>a;a++)(n=e[a]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?o[a]||"":"none"));return e}function Ve(e,t,i){var n=He.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function Ke(e,t,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=g.css(e,i+W[o],!0,r)),n?("content"===i&&(a-=g.css(e,"padding"+W[o],!0,r)),"margin"!==i&&(a-=g.css(e,"border"+W[o]+"Width",!0,r))):(a+=g.css(e,"padding"+W[o],!0,r),"padding"!==i&&(a+=g.css(e,"border"+W[o]+"Width",!0,r)));return a}function Xe(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Ae(e),a=h.boxSizing&&"border-box"===g.css(e,"boxSizing",!1,o);if(0>=r||null==r){if((0>(r=Oe(e,t,o))||null==r)&&(r=e.style[t]),Pe.test(r))return r;n=a&&(h.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+Ke(e,t,i||(a?"border":"content"),n,o)+"px"}function Je(e,t,i,n,r){return new Je.prototype.init(e,t,i,n,r)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Oe(e,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:h.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=g.camelCase(t),l=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=We(l,s)),a=g.cssHooks[t]||g.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(e,!1,n))?r:l[t];if("string"==(o=typeof i)&&(r=ze.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(g.css(e,t)),o="number"),null!=i&&i==i&&("number"!==o||g.cssNumber[s]||(i+="px"),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),!a||!("set"in a)||void 0!==(i=a.set(e,i,n))))try{l[t]=i}catch(e){}}},css:function(e,t,i,n){var r,o,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=We(e.style,s)),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,i)),void 0===o&&(o=Oe(e,t,n)),"normal"===o&&t in Ge&&(o=Ge[t]),""===i||i?(r=parseFloat(o),!0===i||g.isNumeric(r)?r||0:o):o}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,i,n){return i?qe.test(g.css(e,"display"))&&0===e.offsetWidth?g.swap(e,Be,(function(){return Xe(e,t,n)})):Xe(e,t,n):void 0},set:function(e,i,n){var r=n&&Ae(e);return Ve(0,i,n?Ke(e,t,n,h.boxSizing&&"border-box"===g.css(e,"boxSizing",!1,r),r):0)}}})),h.opacity||(g.cssHooks.opacity={get:function(e,t){return Le.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,r=g.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===g.trim(o.replace(Re,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=Re.test(o)?o.replace(Re,r):o+" "+r)}}),g.cssHooks.marginRight=Fe(h.reliableMarginRight,(function(e,t){return t?g.swap(e,{display:"inline-block"},Oe,[e,"marginRight"]):void 0})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[e+W[n]+t]=o[n]||o[n-2]||o[0];return r}},Ne.test(e)||(g.cssHooks[e+t].set=Ve)})),g.fn.extend({css:function(e,t){return V(this,(function(e,t,i){var n,r,o={},a=0;if(g.isArray(t)){for(n=Ae(e),r=t.length;r>a;a++)o[t[a]]=g.css(e,t[a],!1,n);return o}return void 0!==i?g.style(e,t,i):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ye(this,!0)},hide:function(){return Ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Y(this)?g(this).show():g(this).hide()}))}}),g.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(g.cssNumber[i]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,i=Je.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[g.cssProps[e.prop]]||g.cssHooks[e.prop])?g.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},g.fx=Je.prototype.init,g.fx.step={};var Qe,Ze,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+U+")([a-z%]*)$","i"),it=/queueHooks$/,nt=[function(e,t,i){var n,r,o,a,s,l,c,u=this,d={},p=e.style,f=e.nodeType&&Y(e),m=g._data(e,"fxshow");for(n in i.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always((function(){u.always((function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=g.css(e,"display"))?g._data(e,"olddisplay")||Ie(e.nodeName):c)&&"none"===g.css(e,"float")&&(h.inlineBlockNeedsLayout&&"inline"!==Ie(e.nodeName)?p.zoom=1:p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.shrinkWrapBlocks()||u.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),t)if(r=t[n],et.exec(r)){if(delete t[n],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;f=!0}d[n]=m&&m[n]||g.style(e,n)}else c=void 0;if(g.isEmptyObject(d))"inline"===("none"===c?Ie(e.nodeName):c)&&(p.display=c);else for(n in m?"hidden"in m&&(f=m.hidden):m=g._data(e,"fxshow",{}),o&&(m.hidden=!f),f?g(e).show():u.done((function(){g(e).hide()})),u.done((function(){var t;for(t in g._removeData(e,"fxshow"),d)g.style(e,t,d[t])})),d)a=st(f?m[n]:0,n,u),n in m||(m[n]=a.start,f&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}],rt={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),r=tt.exec(t),o=r&&r[3]||(g.cssNumber[e]?"":"px"),a=(g.cssNumber[e]||"px"!==o&&+n)&&tt.exec(g.css(i.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+n||1;do{a/=s=s||".5",g.style(i.elem,e,a+o)}while(s!==(s=i.cur()/n)&&1!==s&&--l)}return r&&(a=i.start=+a||+n||0,i.unit=o,i.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),i}]};function ot(){return setTimeout((function(){Qe=void 0})),Qe=g.now()}function at(e,t){var i,n={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n["margin"+(i=W[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function st(e,t,i){for(var n,r=(rt[t]||[]).concat(rt["*"]),o=0,a=r.length;a>o;o++)if(n=r[o].call(i,t,e))return n}function lt(e,t,i){var n,r,o=0,a=nt.length,s=g.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=Qe||ot(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,a=c.tweens.length;a>o;o++)c.tweens[o].run(n);return s.notifyWith(e,[c,n,i]),1>n&&a?i:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Qe||ot(),duration:i.duration,tweens:[],createTween:function(t,i){var n=g.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)c.tweens[i].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var i,n,r,o,a;for(i in e)if(r=t[n=g.camelCase(i)],o=e[i],g.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(a=g.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);a>o;o++)if(n=nt[o].call(c,e,u,c.opts))return n;return g.map(u,st,c),g.isFunction(c.opts.start)&&c.opts.start.call(e,c),g.fx.timer(g.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}g.Animation=g.extend(lt,{tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,r=e.length;r>n;n++)i=e[n],rt[i]=rt[i]||[],rt[i].unshift(t)},prefilter:function(e,t){t?nt.unshift(e):nt.push(e)}}),g.speed=function(e,t,i){var n=e&&"object"==typeof e?g.extend({},e):{complete:i||!i&&t||g.isFunction(e)&&e,duration:e,easing:i&&t||t&&!g.isFunction(t)&&t};return n.duration=g.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in g.fx.speeds?g.fx.speeds[n.duration]:g.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){g.isFunction(n.old)&&n.old.call(this),n.queue&&g.dequeue(this,n.queue)},n},g.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Y).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=g.isEmptyObject(e),o=g.speed(t,i,n),a=function(){var t=lt(this,g.extend({},e),o);(r||g._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&0!=e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=g.timers,a=g._data(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&it.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));(t||!i)&&g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=g._data(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=g.timers,a=n?n.length:0;for(i.finish=!0,g.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var i=g.fn[t];g.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(at(t,!0),e,n,r)}})),g.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),g.timers=[],g.fx.tick=function(){var e,t=g.timers,i=0;for(Qe=g.now();i<t.length;i++)(e=t[i])()||t[i]!==e||t.splice(i--,1);t.length||g.fx.stop(),Qe=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){Ze||(Ze=setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){clearInterval(Ze),Ze=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}}))},function(){var e,t,i,n,r;(t=j.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=t.getElementsByTagName("a")[0],r=(i=j.createElement("select")).appendChild(j.createElement("option")),e=t.getElementsByTagName("input")[0],n.style.cssText="top:1px",h.getSetAttribute="t"!==t.className,h.style=/top/.test(n.getAttribute("style")),h.hrefNormalized="/a"===n.getAttribute("href"),h.checkOn=!!e.value,h.optSelected=r.selected,h.enctype=!!j.createElement("form").enctype,i.disabled=!0,h.optDisabled=!r.disabled,(e=j.createElement("input")).setAttribute("value",""),h.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),h.radioValue="t"===e.value}();var ct=/\r/g;g.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=g.isFunction(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,g(this).val()):e)?r="":"number"==typeof r?r+="":g.isArray(r)&&(r=g.map(r,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=g.valHooks[r.type]||g.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ct,""):null==i?"":i:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e))}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:n.length,l=0>r?s:o?r:0;s>l;l++)if(((i=n[l]).selected||l===r)&&(h.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!g.nodeName(i.parentNode,"optgroup"))){if(t=g(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,r=e.options,o=g.makeArray(t),a=r.length;a--;)if(n=r[a],g.inArray(g.valHooks.option.get(n),o)>=0)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),r}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){return g.isArray(t)?e.checked=g.inArray(g(e).val(),t)>=0:void 0}},h.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ut,dt,pt=g.expr.attrHandle,ht=/^(?:checked|selected)$/i,ft=h.getSetAttribute,gt=h.input;g.fn.extend({attr:function(e,t){return V(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===R?g.prop(e,t,i):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),n=g.attrHooks[t]||(g.expr.match.bool.test(t)?dt:ut)),void 0===i?n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=g.find.attr(e,t))?void 0:r:null!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):void g.removeAttr(e,t))},removeAttr:function(e,t){var i,n,r=0,o=t&&t.match(N);if(o&&1===e.nodeType)for(;i=o[r++];)n=g.propFix[i]||i,g.expr.match.bool.test(i)?gt&&ft||!ht.test(i)?e[n]=!1:e[g.camelCase("default-"+i)]=e[n]=!1:g.attr(e,i,""),e.removeAttribute(ft?i:n)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&g.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),dt={set:function(e,t,i){return!1===t?g.removeAttr(e,i):gt&&ft||!ht.test(i)?e.setAttribute(!ft&&g.propFix[i]||i,i):e[g.camelCase("default-"+i)]=e[i]=!0,i}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=pt[t]||g.find.attr;pt[t]=gt&&ft||!ht.test(t)?function(e,t,n){var r,o;return n||(o=pt[t],pt[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,pt[t]=o),r}:function(e,t,i){return i?void 0:e[g.camelCase("default-"+t)]?t.toLowerCase():null}})),gt&&ft||(g.attrHooks.value={set:function(e,t,i){return g.nodeName(e,"input")?void(e.defaultValue=t):ut&&ut.set(e,t,i)}}),ft||(ut={set:function(e,t,i){var n=e.getAttributeNode(i);return n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i)?t:void 0}},pt.id=pt.name=pt.coords=function(e,t,i){var n;return i?void 0:(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},g.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);return i&&i.specified?i.value:void 0},set:ut.set},g.attrHooks.contenteditable={set:function(e,t,i){ut.set(e,""!==t&&t,i)}},g.each(["width","height"],(function(e,t){g.attrHooks[t]={set:function(e,i){return""===i?(e.setAttribute(t,"auto"),i):void 0}}}))),h.style||(g.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var mt=/^(?:input|select|textarea|button|object)$/i,vt=/^(?:a|area)$/i;g.fn.extend({prop:function(e,t){return V(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return e=g.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),g.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!g.isXMLDoc(e))&&(t=g.propFix[t]||t,r=g.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}}}),h.hrefNormalized||g.each(["href","src"],(function(e,t){g.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),h.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this})),h.enctype||(g.propFix.enctype="encoding");var yt=/[\t\r\n\f]/g;g.fn.extend({addClass:function(e){var t,i,n,r,o,a,s=0,l=this.length,c="string"==typeof e&&e;if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,this.className))}));if(c)for(t=(e||"").match(N)||[];l>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(yt," "):" ")){for(o=0;r=t[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=g.trim(n),i.className!==a&&(i.className=a)}return this},removeClass:function(e){var t,i,n,r,o,a,s=0,l=this.length,c=0===arguments.length||"string"==typeof e&&e;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,this.className))}));if(c)for(t=(e||"").match(N)||[];l>s;s++)if(n=1===(i=this[s]).nodeType&&(i.className?(" "+i.className+" ").replace(yt," "):"")){for(o=0;r=t[o++];)for(;n.indexOf(" "+r+" ")>=0;)n=n.replace(" "+r+" "," ");a=e?g.trim(n):"",i.className!==a&&(i.className=a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(i){g(this).toggleClass(e.call(this,i,this.className,t),t)})):this.each((function(){if("string"===i)for(var t,n=0,r=g(this),o=e.match(N)||[];t=o[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(i===R||"boolean"===i)&&(this.className&&g._data(this,"__className__",this.className),this.className=this.className||!1===e?"":g._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(yt," ").indexOf(t)>=0)return!0;return!1}}),g.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(e,t){g.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var bt=g.now(),wt=/\?/;g.parseJSON=function(e){return i.JSON&&i.JSON.parse?i.JSON.parse(e+""):void g.error("No support JSON.parse function!")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{i.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var _t,xt,$t=/#.*$/,Ct=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,St=/^(?:GET|HEAD)$/,Et=/^\/\//,jt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Dt={},Tt={},It="*/".concat("*");try{xt=location.href}catch(e){(xt=j.createElement("a")).href="",xt=xt.href}function At(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(N)||[];if(g.isFunction(i))for(;n=o[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Ot(e,t,i,n){var r={},o=e===Tt;function a(s){var l;return r[s]=!0,g.each(e[s]||[],(function(e,s){var c=s(t,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Nt(e,t){var i,n,r=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&g.extend(!0,e,i),e}_t=jt.exec(xt.toLowerCase())||[],g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Nt(Nt(e,g.ajaxSettings),t):Nt(g.ajaxSettings,e)},ajaxPrefilter:At(Dt),ajaxTransport:At(Tt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,r,o,a,s,l,c,u=g.ajaxSetup({},t),d=u.context||u,p=u.context&&(d.nodeType||d.eui)?g(d):g.event,h=g.Deferred(),f=g.Callbacks("once memory"),m=u.statusCode||{},v={},y={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=kt.exec(o);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return b||(e=y[i]=y[i]||e,v[e]=t),this},overrideMimeType:function(e){return b||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||w;return l&&l.abort(t),x(0,t),this}};if(h.promise(_).complete=f.add,_.success=_.done,_.error=_.fail,u.url=((e||u.url||xt)+"").replace($t,"").replace(Et,_t[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=g.trim(u.dataType||"*").toLowerCase().match(N)||[""],null==u.crossDomain&&(i=jt.exec(u.url.toLowerCase()),u.crossDomain=!(!i||i[1]===_t[1]&&i[2]===_t[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(_t[3]||("http:"===_t[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=g.param(u.data,u.traditional)),Ot(Dt,u,t,_),2===b)return _;for(n in(s=g.event&&u.global)&&0==g.active++&&g.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!St.test(u.type),r=u.url,u.hasContent||(u.data&&(r=u.url+=(wt.test(r)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Ct.test(r)?r.replace(Ct,"$1_="+bt++):r+(wt.test(r)?"&":"?")+"_="+bt++)),u.ifModified&&(g.lastModified[r]&&_.setRequestHeader("If-Modified-Since",g.lastModified[r]),g.etag[r]&&_.setRequestHeader("If-None-Match",g.etag[r])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&_.setRequestHeader("Content-Type",u.contentType),_.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+It+"; q=0.01":""):u.accepts["*"]),u.headers)_.setRequestHeader(n,u.headers[n]);if(u.beforeSend&&(!1===u.beforeSend.call(d,_,u)||2===b))return _.abort();for(n in w="abort",{success:1,error:1,complete:1})_[n](u[n]);if(l=Ot(Tt,u,t,_)){_.readyState=1,s&&p.trigger("ajaxSend",[_,u]),u.async&&u.timeout>0&&(a=setTimeout((function(){_.abort("timeout")}),u.timeout));try{b=1,l.send(v,x)}catch(e){if(!(2>b))throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,i,n){var c,v,y,w,x,$=t;2!==b&&(b=2,a&&clearTimeout(a),l=void 0,o=n||"",_.readyState=e>0?4:0,c=e>=200&&300>e||304===e,i&&(w=function(e,t,i){for(var n,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in i)o=l[0];else{for(a in i){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}n||(n=a)}o=o||n}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}(u,_,i)),w=function(e,t,i,n){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(u,w,_,c),c?(u.ifModified&&((x=_.getResponseHeader("Last-Modified"))&&(g.lastModified[r]=x),(x=_.getResponseHeader("etag"))&&(g.etag[r]=x)),204===e||"HEAD"===u.type?$="nocontent":304===e?$="notmodified":($=w.state,v=w.data,c=!(y=w.error))):(y=$,(e||!$)&&($="error",0>e&&(e=0))),_.status=e,_.statusText=(t||$)+"",c?h.resolveWith(d,[v,$,_]):h.rejectWith(d,[_,$,y]),_.statusCode(m),m=void 0,s&&p.trigger(c?"ajaxSuccess":"ajaxError",[_,u,c?v:y]),f.fireWith(d,[_,$]),s&&(p.trigger("ajaxComplete",[_,u]),--g.active||g.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,i){return g.get(e,t,i,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,i,n,r){return g.isFunction(i)&&(r=r||n,n=i,i=void 0),g.ajax({url:e,type:t,dataType:r,data:i,success:n})}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){if(g.isFunction(e))return this.each((function(t){g(this).wrapAll(e.call(this,t))}));if(this[0]){var t=g(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(i){g(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!h.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||g.css(e,"display"))},g.expr.filters.visible=function(e){return!g.expr.filters.hidden(e)};var Pt=/%20/g,Mt=/\[\]$/,Ft=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function qt(e,t,i,n){var r;if(g.isArray(t))g.each(t,(function(t,r){i||Mt.test(e)?n(e,r):qt(e+"["+("object"==typeof r?t:"")+"]",r,i,n)}));else if(i||"object"!==g.type(t))n(e,t);else for(r in t)qt(e+"["+r+"]",t[r],i,n)}g.extend(g.regExps,{rCRLF:Ft,rsubmittable:Lt,rsubmitterTypes:Rt,rcheckableType:K}),g.param=function(e,t){var i,n=[],r=function(e,t){t=g.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.eui&&!g.isPlainObject(e))g.each(e,(function(){r(this.name,this.value)}));else for(i in e)qt(i,e[i],t,r);return n.join("&").replace(Pt,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&Lt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!K.test(e))})).map((function(e,t){var i=g(this).val();return null==i?null:g.isArray(i)?g.map(i,(function(e){return{name:t.name,value:e.replace(Ft,"\r\n")}})):{name:t.name,value:i.replace(Ft,"\r\n")}})).get()}}),g.ajaxSettings.xhr=void 0!==i.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Gt()||function(){try{return new i.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Gt;var Ht=0,zt={},Bt=g.ajaxSettings.xhr();function Gt(){try{return new i.XMLHttpRequest}catch(e){}}i.attachEvent&&i.attachEvent("onunload",(function(){for(var e in zt)zt[e](void 0,!0)})),h.cors=!!Bt&&"withCredentials"in Bt,(Bt=h.ajax=!!Bt)&&g.ajaxTransport((function(e){var t;if(!e.crossDomain||h.cors)return{send:function(i,n){var r,o=e.xhr(),a=++Ht;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];for(r in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&o.setRequestHeader(r,i[r]+"");o.send(e.hasContent&&e.data||null),t=function(i,r){var s,l,c;if(t&&(r||4===o.readyState))if(delete zt[a],t=void 0,o.onreadystatechange=g.noop,r)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&n(s,l,c,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=zt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),g.ajaxTransport("script",(function(e){if(e.crossDomain){var t,i=j.head||g("head")[0]||j.documentElement;return{send:function(n,r){(t=j.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||r(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Ut=[],Wt=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||g.expando+"_"+bt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(Wt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Wt,"$1"+r):!1!==e.jsonp&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||g.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(r)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"):void 0})),h.createHTMLDocument=function(){var e=i.document.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),g.parseHTML=function(e,t,i){return e&&"string"==typeof e?("boolean"==typeof t&&(i=t,t=!1),t||(h.createHTMLDocument?((n=(t=j.implementation.createHTMLDocument("")).createElement("base")).href=j.location.href,t.head.appendChild(n)):t=j),o=!i&&[],(r=C.exec(e))?[t.createElement(r[1])]:(r=g.buildFragment([e],t,o),o&&o.length&&g(o).remove(),g.merge([],r.childNodes))):null;var n,r,o};var Yt=g.fn.load;g.fn.load=function(e,t,i,n){if("string"!=typeof e&&Yt)return Yt.apply(this,arguments);var r,o,a,s=this,l=e.indexOf(" ");return l>=0&&(r=g.trim(e.slice(l,e.length)),e=e.slice(0,l)),g.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&g.ajax({url:e,type:a,dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?g("<div>").append(g.parseHTML(e)).find(r):e),n&&g.isFunction(n)&&n.call(null,$(r))})).complete(i&&function(e,t){s.each(i,o||[e.responseText,t,e])}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length};var Vt=i.document.documentElement;function Kt(e){return g.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}g.offset={setOffset:function(e,t,i){var n,r,o,a,s,l,c=g.css(e,"position"),u=g(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=g.css(e,"top"),l=g.css(e,"left"),("absolute"===c||"fixed"===c)&&g.inArray("auto",[o,l])>-1?(a=(n=u.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),g.isFunction(t)&&(t=t.call(e,i,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,i,n={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(t=o.documentElement,g.contains(t,r)?(typeof r.getBoundingClientRect!==R&&(n=r.getBoundingClientRect()),i=Kt(o),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(i=e.offset()),i.top+=g.css(e[0],"borderTopWidth",!0),i.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-g.css(n,"marginTop",!0),left:t.left-i.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Vt;e&&!g.nodeName(e,"html")&&"static"===g.css(e,"position");)e=e.offsetParent;return e||Vt}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i=/Y/.test(t);g.fn[e]=function(n){return V(this,(function(e,n,r){var o=Kt(e);return void 0===r?o?t in o?o[t]:o.document.documentElement[n]:e[n]:void(o?o.scrollTo(i?g(o).scrollLeft():r,i?r:g(o).scrollTop()):e[n]=r)}),e,n,arguments.length,null)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=Fe(h.pixelPosition,(function(e,i){return i?(i=Oe(e,t),Pe.test(i)?g(e).position()[t]+"px":i):void 0}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){g.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),a=i||(!0===n||!0===r?"margin":"border");return V(this,(function(t,i,n){var r;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?g.css(t,i,a):g.style(t,i,n,a)}),t,o?n:void 0,o,null)}}))})),g.fn.size=function(){return this.length},g.fn.andSelf=g.fn.addBack;var Xt={};Xt.fileapi=void 0!==g("<input type='file'/>").get(0).files,Xt.formdata=void 0!==i.FormData;var Jt=!!g.fn.prop;function Qt(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),g(e.target).ajaxSubmit(t))}function Zt(e){var t=e.target,i=g(t);if(!i.is("[type=submit],[type=image]")){var n=i.closest("[type=submit]");if(0===n.length)return;t=n[0]}var r=this;if(r.clk=t,"image"==t.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof g.fn.offset){var o=i.offset();r.clk_x=e.pageX-o.left,r.clk_y=e.pageY-o.top}else r.clk_x=e.pageX-t.offsetLeft,r.clk_y=e.pageY-t.offsetTop;setTimeout((function(){r.clk=r.clk_x=r.clk_y=null}),100)}function ei(){if(g.fn.ajaxSubmit.debug){var e="[eui.form] "+Array.prototype.join.call(arguments,"");i.console&&i.console.log?i.console.log(e):i.opera&&i.opera.postError&&i.opera.postError(e)}}g.fn.attr2=function(){if(!Jt)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.eui||"string"==typeof e?e:this.attr.apply(this,arguments)},g.fn.ajaxSubmit=function(e){if(!this.length)return ei("ajaxSubmit: skipping submit process - no element selected"),this;var t,n,r,o=this;"function"==typeof e?e={success:e}:void 0===e&&(e={}),t=e.type||this.attr2("method"),(r=(r="string"==typeof(n=e.url||this.attr2("action"))?g.trim(n):"")||i.location.href||"")&&(r=(r.match(/^([^#]+)/)||[])[1]),e=g.extend(!0,{url:r,success:g.ajaxSettings.success,type:t||g.ajaxSettings.type,iframeSrc:/^https/i.test(i.location.href||"")?"javascript:false":"about:blank"},e);var a={};if(this.trigger("form-pre-serialize",[this,e,a]),a.veto)return ei("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return ei("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var s=e.traditional;void 0===s&&(s=g.ajaxSettings.traditional);var l,c=[],u=this.formToArray(e.semantic,c);if(e.data&&(e.extraData=e.data,l=g.param(e.data,s)),e.beforeSubmit&&!1===e.beforeSubmit(u,this,e))return ei("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[u,this,e,a]),a.veto)return ei("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var d=g.param(u,s);l&&(d=d?d+"&"+l:l),"GET"==e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+d,e.data=null):e.data=d;var p=[];if(e.resetForm&&p.push((function(){o.resetForm()})),e.clearForm&&p.push((function(){o.clearForm(e.includeHidden)})),!e.dataType&&e.target){var h=e.success||function(){};p.push((function(t){var i=e.replaceTarget?"replaceWith":"html";g(e.target)[i](t).each(h,arguments)}))}else e.success&&p.push(e.success);if(e.success=function(t,i,n){for(var r=e.context||this,a=0,s=p.length;s>a;a++)p[a].apply(r,[t,i,n||o,o])},e.error){var f=e.error;e.error=function(t,i,n){var r=e.context||this;f.apply(r,[t,i,n,o])}}if(e.complete){var m=e.complete;e.complete=function(t,i){var n=e.context||this;m.apply(n,[t,i,o])}}var v=g("input[type=file]:enabled",this).filter((function(){return""!==g(this).val()})).length>0,y="multipart/form-data",b=o.attr("enctype")==y||o.attr("encoding")==y,w=Xt.fileapi&&Xt.formdata;ei("fileAPI :"+w);var _,x=(v||b)&&!w;!1!==e.iframe&&(e.iframe||x)?e.closeKeepAlive?g.get(e.closeKeepAlive,(function(){_=C(u)})):_=C(u):_=(v||b)&&w?function(i){for(var n=new FormData,r=0;r<i.length;r++)n.append(i[r].name,i[r].value);if(e.extraData){var o=function(t){var i,n,r=g.param(t,e.traditional).split("&"),o=r.length,a=[];for(i=0;o>i;i++)r[i]=r[i].replace(/\+/g," "),n=r[i].split("="),a.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return a}(e.extraData);for(r=0;r<o.length;r++)o[r]&&n.append(o[r][0],o[r][1])}e.data=null;var a=g.extend(!0,{},g.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:t||"POST"});e.uploadProgress&&(a.xhr=function(){var t=g.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",(function(t){var i=0,n=t.loaded||t.position,r=t.total;t.lengthComputable&&(i=Math.ceil(n/r*100)),e.uploadProgress(t,n,r,i)}),!1),t}),a.data=null;var s=a.beforeSend;return a.beforeSend=function(t,i){e.formData?i.data=e.formData:i.data=n,s&&s.call(this,t,i)},g.ajax(a)}(u):g.ajax(e),o.removeData("jqxhr").data("jqxhr",_);for(var $=0;$<c.length;$++)c[$]=null;return this.trigger("form-submit-notify",[this,e]),this;function C(n){var r,a,s,l,u,d,p,h,f,m,v,y,b=o[0],w=g.Deferred();if(w.abort=function(e){h.abort(e)},n)for(a=0;a<c.length;a++)r=g(c[a]),Jt?r.prop("disabled",!1):r.removeAttr("disabled");if((s=g.extend(!0,{},g.ajaxSettings,e)).context=s.context||s,u="jqFormIO"+(new Date).getTime(),s.iframeTarget?(m=(d=g(s.iframeTarget)).attr2("name"))?u=m:d.attr2("name",u):(d=g('<iframe name="'+u+'" src="'+s.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=d[0],h={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";ei("aborting upload... "+t),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",s.iframeSrc),h.error=t,s.error&&s.error.call(s.context,h,t,e),l&&g.event.trigger("ajaxError",[h,s,t]),s.complete&&s.complete.call(s.context,h,t)}},(l=s.global)&&0==g.active++&&g.event.trigger("ajaxStart"),l&&g.event.trigger("ajaxSend",[h,s]),s.beforeSend&&!1===s.beforeSend.call(s.context,h,s))return s.global&&g.active--,w.reject(),w;if(h.aborted)return w.reject(),w;function _(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){ei("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){ei("cannot get iframe.contentDocument: "+i),t=e.document}return t}(f=b.clk)&&(m=f.name)&&!f.disabled&&(s.extraData=s.extraData||{},s.extraData[m]=f.value,"image"==f.type&&(s.extraData[m+".x"]=b.clk_x,s.extraData[m+".y"]=b.clk_y));var x=g("meta[name=csrf-token]").attr("content"),$=g("meta[name=csrf-param]").attr("content");function C(){var e=o.attr2("target"),i=o.attr2("action"),n=o.attr("enctype")||o.attr("encoding")||"multipart/form-data";b.setAttribute("target",u),(!t||/post/i.test(t))&&b.setAttribute("method","POST"),i!=s.url&&b.setAttribute("action",s.url),s.skipEncodingOverride||t&&!/post/i.test(t)||o.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),s.timeout&&(y=setTimeout((function(){v=!0,T(1)}),s.timeout));var r=[];try{if(s.extraData)for(var a in s.extraData)s.extraData.hasOwnProperty(a)&&(g.isPlainObject(s.extraData[a])&&s.extraData[a].hasOwnProperty("name")&&s.extraData[a].hasOwnProperty("value")?r.push(g('<input type="hidden" name="'+s.extraData[a].name+'">').val(s.extraData[a].value).appendTo(b)[0]):r.push(g('<input type="hidden" name="'+a+'">').val(s.extraData[a]).appendTo(b)[0]));s.iframeTarget||d.appendTo("body"),p.attachEvent?p.attachEvent("onload",T):p.addEventListener("load",T,!1),setTimeout((function e(){try{var t=_(p).readyState;ei("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){ei("Server abort: ",e," (",e.name,")"),T(2),y&&clearTimeout(y),y=void 0}}),15);try{b.submit()}catch(e){j.createElement("form").submit.apply(b)}}finally{b.setAttribute("action",i),b.setAttribute("enctype",n),e?b.setAttribute("target",e):o.removeAttr("target"),g(r).remove()}}$&&x&&(s.extraData=s.extraData||{},s.extraData[$]=x),s.forceSync?C():setTimeout(C,10);var k,S,E,D=50;function T(e){if(!h.aborted&&!E){if((S=_(p))||(ei("cannot access response document"),e=2),1===e&&h)return h.abort("timeout"),void w.reject(h,"timeout");if(2==e&&h)return h.abort("server abort"),void w.reject(h,"error","server abort");if(S&&S.location.href!=s.iframeSrc||v){p.detachEvent?p.detachEvent("onload",T):p.removeEventListener("load",T,!1);var t,n="success";try{if(v)throw"timeout";var r="xml"==s.dataType||S.XMLDocument||g.isXMLDoc(S);if(ei("isXml="+r),!r&&i.opera&&(null===S.body||!S.body.innerHTML)&&--D)return ei("requeing onLoad callback, DOM not available"),void setTimeout(T,250);var o=S.body?S.body:S.documentElement;h.responseText=o?o.innerHTML:null,h.responseXML=S.XMLDocument?S.XMLDocument:S,r&&(s.dataType="xml"),h.getResponseHeader=function(e){return{"content-type":s.dataType}[e.toLowerCase()]},o&&(h.status=Number(o.getAttribute("status"))||h.status,h.statusText=o.getAttribute("statusText")||h.statusText);var a=(s.dataType||"").toLowerCase(),c=/(json|script|text)/.test(a);if(c||s.textarea){var u=S.getElementsByTagName("textarea")[0];if(u)h.responseText=u.value,h.status=Number(u.getAttribute("status"))||h.status,h.statusText=u.getAttribute("statusText")||h.statusText;else if(c){var f=S.getElementsByTagName("pre")[0],m=S.getElementsByTagName("body")[0];f?h.responseText=f.textContent?f.textContent:f.innerText:m&&(h.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==a&&!h.responseXML&&h.responseText&&(h.responseXML=I(h.responseText));try{k=O(h,a,s)}catch(e){n="parsererror",h.error=t=e||n}}catch(e){ei("error caught: ",e),n="error",h.error=t=e||n}h.aborted&&(ei("upload aborted"),n=null),h.status&&(n=h.status>=200&&h.status<300||304===h.status?"success":"error"),"success"===n?(s.success&&s.success.call(s.context,k,"success",h),w.resolve(h.responseText,"success",h),l&&g.event.trigger("ajaxSuccess",[h,s])):n&&(void 0===t&&(t=h.statusText),s.error&&s.error.call(s.context,h,n,t),w.reject(h,"error",t),l&&g.event.trigger("ajaxError",[h,s,t])),l&&g.event.trigger("ajaxComplete",[h,s]),l&&!--g.active&&g.event.trigger("ajaxStop"),s.complete&&s.complete.call(s.context,h,n),E=!0,s.timeout&&clearTimeout(y),setTimeout((function(){s.iframeTarget?d.attr("src",s.iframeSrc):d.remove(),h.responseXML=null}),100)}}}var I=g.parseXML||function(e,t){return i.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},A=g.parseJSON||function(e){return i.eval("("+e+")")},O=function(e,t,i){var n=e.getResponseHeader("content-type")||"",r="xml"===t||!t&&n.indexOf("xml")>=0,o=r?e.responseXML:e.responseText;return r&&"parsererror"===o.documentElement.nodeName&&g.error&&g.error("parsererror"),i&&i.dataFilter&&(o=i.dataFilter(o,t)),"string"==typeof o&&("json"===t||!t&&n.indexOf("json")>=0?o=A(o):("script"===t||!t&&n.indexOf("javascript")>=0)&&g.globalEval(o)),o};return w}},g.fn.ajaxForm=function(e){if((e=e||{}).delegation=e.delegation&&g.isFunction(g.fn.on),!e.delegation&&0===this.length){var t={s:this.selector,c:this.context};return!g.isReady&&t.s?(ei("DOM not ready, queuing ajaxForm"),g((function(){g(t.s,t.c).ajaxForm(e)})),this):(ei("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)")),this)}return e.delegation?(g(j).off("submit.form-plugin",this.selector,Qt).off("click.form-plugin",this.selector,Zt).on("submit.form-plugin",this.selector,e,Qt).on("click.form-plugin",this.selector,e,Zt),this):this.ajaxFormUnbind().bind("submit.form-plugin",e,Qt).bind("click.form-plugin",e,Zt)},g.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},g.fn.formToArray=function(e,t){var i=[];if(0===this.length)return i;var n,r,o,a,s,l,c,u,d=this[0],p=this.attr("id"),h=e?d.getElementsByTagName("*"):d.elements;if(h&&!/MSIE [678]/.test(navigator.userAgent)&&(h=g(h).get()),p&&(n=g(':input[form="'+p+'"]').get()).length&&(h=(h||[]).concat(n)),!h||!h.length)return i;for(r=0,c=h.length;c>r;r++)if((a=(l=h[r]).name)&&!l.disabled)if(e&&d.clk&&"image"==l.type)d.clk==l&&(i.push({name:a,value:g(l).val(),type:l.type}),i.push({name:a+".x",value:d.clk_x},{name:a+".y",value:d.clk_y}));else if((s=g.fieldValue(l,!0))&&s.constructor==Array)for(t&&t.push(l),o=0,u=s.length;u>o;o++)i.push({name:a,value:s[o]});else if(Xt.fileapi&&"file"==l.type){t&&t.push(l);var f=l.files;if(f.length)for(o=0;o<f.length;o++)i.push({name:a,value:f[o],type:l.type});else i.push({name:a,value:"",type:l.type})}else null!=s&&(t&&t.push(l),i.push({name:a,value:s,type:l.type,required:l.required}));if(!e&&d.clk){var m=g(d.clk),v=m[0];(a=v.name)&&!v.disabled&&"image"==v.type&&(i.push({name:a,value:m.val()}),i.push({name:a+".x",value:d.clk_x},{name:a+".y",value:d.clk_y}))}return i},g.fn.formFields=function(e,t){var i=[];if(0===this.length)return i;var n,r,o,a,s,l=this[0],c=this.attr("id"),u=e?l.getElementsByTagName("*"):l.elements;if(u&&!/MSIE [678]/.test(navigator.userAgent)&&(u=g(u).get()),c&&(n=g(':input[form="'+c+'"]').get()).length&&(u=(u||[]).concat(n)),!u||!u.length)return i;for(r=0,s=u.length;s>r;r++)(o=(a=u[r]).id||a.name)&&i.push(o);return g.unique(i)},g.fn.formSerialize=function(e){return g.param(this.formToArray(e))},g.fn.fieldSerialize=function(e){var t=[];return this.each((function(){var i=this.name;if(i){var n=g.fieldValue(this,e);if(n&&n.constructor==Array)for(var r=0,o=n.length;o>r;r++)t.push({name:i,value:n[r]});else null!=n&&t.push({name:this.name,value:n})}})),g.param(t)},g.fn.fieldValue=function(e){for(var t=[],i=0,n=this.length;n>i;i++){var r=this[i],o=g.fieldValue(r,e);null==o||o.constructor==Array&&!o.length||(o.constructor==Array?g.merge(t,o):t.push(o))}return t},g.fieldValue=function(e,t){var i=e.name,n=e.type,r=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!i||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==r&&-1==e.selectedIndex))return null;if("select"==r){var o=e.selectedIndex;if(0>o)return null;for(var a=[],s=e.options,l="select-one"==n,c=l?o+1:s.length,u=l?o:0;c>u;u++){var d=s[u];if(d.selected){var p=d.value;if(p||(p=d.attributes&&d.attributes.value&&!d.attributes.value.specified?d.text:d.value),l)return p;a.push(p)}}return a}return g(e).val()},g.fn.clearForm=function(e){return this.each((function(){g("input,select,textarea",this).clearFields(e)}))},g.fn.clearFields=g.fn.clearInputs=function(e){var t=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each((function(){var i=this.type,n=this.tagName.toLowerCase();t.test(i)||"textarea"==n?this.value="":"checkbox"==i||"radio"==i?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==i?/MSIE/.test(navigator.userAgent)?g(this).replaceWith(g(this).clone(!0)):g(this).val(""):e&&(!0===e&&/hidden/.test(i)||"string"==typeof e&&g(this).is(e))&&(this.value="")}))},g.fn.resetForm=function(){return this.each((function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()}))},g.fn.enable=function(e){return void 0===e&&(e=!0),this.each((function(){this.disabled=!e}))},g.fn.selected=function(e){return void 0===e&&(e=!0),this.each((function(){var t=this.type;if("checkbox"==t||"radio"==t)this.checked=e;else if("option"==this.tagName.toLowerCase()){var i=g(this).parent("select");e&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=e}}))},g.fn.ajaxSubmit.debug=!1;var ti,ii=g([]),ni=g.resize=g.extend(g.resize,{}),ri="setTimeout",oi="resize",ai=oi+"-special-event",si="throttleWindow";function li(){ti=i[ri]((function(){ii.each((function(){var e=g(this),t=e.width(),i=e.height(),n=g.data(this,ai);(t!==n.w||i!==n.h)&&e.trigger(oi,[n.w=t,n.h=i])})),li()}),ni.delay)}ni.delay=250,ni[si]=!0,g.event.special[oi]={setup:function(){if(!ni[si]&&this[ri])return!1;var e=g(this);ii=ii.add(e),g.data(this,ai,{w:e.width(),h:e.height()}),1===ii.length&&li()},teardown:function(){if(!ni[si]&&this[ri])return!1;var e=g(this);ii=ii.not(e),e.removeData(ai),ii.length||clearTimeout(ti)},add:function(e){if(!ni[si]&&this[ri])return!1;var t;function i(e,i,n){var r=g(this),o=g.data(this,ai);o.w=void 0!==i?i:r.width(),o.h=void 0!==n?n:r.height(),t.apply(this,arguments)}return g.isFunction(e)?(t=e,i):(t=e.handler,void(e.handler=i))}},d=Object.prototype.toString;var ci,ui=!0,di=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/;for(ci in g.global=this,{toString:1})ui=null;ui&&(ui=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]),g.enumerables=ui,g.apply=function(e,t,i){if(i&&g.apply(e,i),e&&t&&"object"==typeof t){var n,r,o;for(n in t)e[n]=t[n];if(ui)for(r=ui.length;r--;)o=ui[r],t.hasOwnProperty(o)&&(e[o]=t[o])}return e},g.postMessage=function(e,t,i){if(arguments.length>1){var n=g.getFrameContent(e),r=g.Array.toArray(arguments,1);1===r.length&&r.push("/"),g.each(n,(function(e,t){t.postMessage.apply(t,r)}))}else g.Logger.log("error","The postMessage function must at least 2 parameter !")},g.getFrameContent=function(e){var t=[];return e.eui?t=e.map((function(){return this.contentWindow})):t.push(e),t},g.extend({USE_NATIVE_JSON:!1,emptyFn:function(){},emptyString:new String,applyIf:function(e,t){var i;if(e)for(i in t)void 0===e[i]&&(e[i]=t[i]);return e},isIterable:function(e){return!(!e||"number"!=typeof e.length||"string"==typeof e||"function"==typeof e)&&(e.propertyIsEnumerable?!(!e.hasOwnProperty("length")||e.propertyIsEnumerable("length"))||di.test(d.call(e)):!!e.item)},isObject:"[object Object]"===d.call(null)?function(e){return null!=e&&"[object Object]"===d.call(e)&&void 0===e.ownerDocument}:function(e){return"[object Object]"===d.call(e)},isEmpty:function(e,t){return null==e||!t&&""===e||g.isArray(e)&&0===e.length},isDate:function(e){return"[object Date]"===d.call(e)},isSimpleObject:function(e){return e instanceof Object&&e.constructor===Object},isPrimitive:function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},isPrimitiveArray:function(e){return 0==e.length||g.Array.some(e,(function(e){return this.isPrimitive(e)}))},isNumber:function(e){return"number"==typeof e&&isFinite(e)},isString:function(e){return"string"==typeof e},isBoolean:function(e){return"boolean"==typeof e},isDefined:function(e){return void 0!==e},encodeToJsonStr:function(e){return"{"+e+"}"},escapeRe:function(e){return e.replace(/([-.*+?\^${}()|\[\]\/\\])/g,"\\$1")},copyTo:function(e,t,i,n){"string"==typeof i&&(i=i.split(/[,;\s]/));var r,o,a=i?i.length:0;for(r=0;a>r;r++)o=i[r],(n||t.hasOwnProperty(o))&&(e[o]=t[o]);return e},partition:function(e,t){var i,n,r=[[],[]],o=e.length;for(i=0;o>i;i++)n=e[i],r[t&&t(n,i,e)||!t&&n?0:1].push(n);return r},invoke:function(e,t){var i,n,r=[],o=Array.prototype.slice.call(arguments,2),a=e.length;for(i=0;a>i;i++)(n=e[i])&&"function"==typeof n[t]?r.push(n[t].apply(n,o)):r.push(void 0);return r},functionFactory:function(){var e=Array.prototype.slice.call(arguments);return Function.prototype.constructor.apply(Function.prototype,e)}}),g.util={clone:function(e){var t,i,n,r,o,a;if(null==e)return e;if(e.nodeType&&e.cloneNode)return e.cloneNode(!0);if("[object Date]"===(t=d.call(e)))return new Date(e.getTime());if("[object Array]"===t)for(i=e.length,o=[];i--;)o[i]=g.util.clone(e[i]);else if("[object Object]"===t&&e.constructor===Object){for(a in o={},e)o[a]=g.util.clone(e[a]);if(ui)for(n=ui.length;n--;)r=ui[n],e.hasOwnProperty(r)&&(o[r]=e[r])}return o||e}},g.String=function(){var e,t,i,n,r=/^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+$/g,o=/('|\\)/g,a=/\{(\d+)\}/g,s=/([-.*+?\^${}()|\[\]\/\\])/g,l=/^\s+|\s+$/g,c=/\s+/,u=/(^[^a-z]*|[^\w])/gi,d=function(t,i){return e[i]},p=function(e,i){return i in t?t[i]:String.fromCharCode(parseInt(i.substr(2),10))},h=function(e,t){return null!=e&&null!=t&&t.length<=e.length};return{insert:function(e,t,i){if(!e)return t;if(!t)return e;var n=e.length;return i||0===i||(i=n),0>i&&(i=(i*=-1)>=n?0:n-i),0===i?e=t+e:i>=e.length?e+=t:e=e.substr(0,i)+t+e.substr(i),e},startsWith:function(e,t,i){var n=h(e,t);return n&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),n=0===e.lastIndexOf(t,0)),n},endsWith:function(e,t,i){var n=h(e,t);return n&&(i&&(e=e.toLowerCase(),t=t.toLowerCase()),n=-1!==e.indexOf(t,e.length-t.length)),n},createVarName:function(e){return e.replace(u,"")},htmlEncode:function(e){return e?String(e).replace(i,d):e},htmlDecode:function(e){return e?String(e).replace(n,p):e},addCharacterEntities:function(r){var o,a,s=[],l=[];for(o in r)a=r[o],t[o]=a,e[a]=o,s.push(a),l.push(o);i=new RegExp("("+s.join("|")+")","g"),n=new RegExp("("+l.join("|")+"|&#[0-9]{1,5};)","g")},resetCharacterEntities:function(){e={},t={},this.addCharacterEntities({"&":"&",">":">","<":"<",""":'"',"'":"'"})},urlAppend:function(e,t){return g.isEmpty(t)?e:e+(-1===e.indexOf("?")?"?":"&")+t},trim:function(e){return e.replace(r,"")},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1)},uncapitalize:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},ellipsis:function(e,t,i){if(e&&e.length>t){if(i){var n=e.substr(0,t-2),r=Math.max(n.lastIndexOf(" "),n.lastIndexOf("."),n.lastIndexOf("!"),n.lastIndexOf("?"));if(-1!==r&&r>=t-15)return n.substr(0,r)+"..."}return e.substr(0,t-3)+"..."}return e},escapeRegex:function(e){return e.replace(s,"\\$1")},escape:function(e){return e.replace(o,"\\$1")},toggle:function(e,t,i){return e===t?i:t},leftPad:function(e,t,i){var n=String(e);for(i=i||" ";n.length<t;)n=i+n;return n},format:function(e){var t=g.Array.toArray(arguments,1);return e.replace(a,(function(e,i){return t[i]}))},repeat:function(e,t,i){1>t&&(t=0);for(var n=[],r=t;r--;)n.push(e);return n.join(i||"")},splitWords:function(e){return e&&"string"==typeof e?e.replace(l,"").split(c):e||[]}}}(),g.String.resetCharacterEntities(),g.htmlEncode=g.String.htmlEncode,g.htmlDecode=g.String.htmlDecode,g.urlAppend=g.String.urlAppend,g.formatStr=g.String.format,function(){var e,t=g.util.Format={},i=/<\/?[^>]+>/gi,n=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/gi,r=/\r?\n/g,o=/^#+$/,a=/[\d,\.#]+/,s=/[^\d\.#]/g,l={};g.apply(t,{thousandSeparator:",",decimalSeparator:".",currencyPrecision:2,currencySign:"$",currencyAtEnd:!1,undef:function(e){return void 0!==e?e:""},defaultValue:function(e,t){return void 0!==e&&""!==e?e:t},substr:function(e,t,i){return String(e).substr(t,i)},lowercase:function(e){return String(e).toLowerCase()},uppercase:function(e){return String(e).toUpperCase()},usMoney:function(e){return t.currency(e,"$",2)},currency:function(e,i,n,r){var o="",a=",0",s=0;for(0>(e-=0)&&(e=-e,o="-"),a+=(n=g.isDefined(n)?n:t.currencyPrecision)>0?".":"";n>s;s++)a+="0";return e=t.number(e,a),!0===(r||t.currencyAtEnd)?g.String.format("{0}{1}{2}",o,e,i||t.currencySign):g.String.format("{0}{1}{2}",o,i||t.currencySign,e)},date:function(e,t){return e?(g.isDate(e)||(e=new Date(Date.parse(e))),g.Date.dateFormat(e,t||g.Date.defaultFormat)):""},dateRenderer:function(e){return function(i){return t.date(i,e)}},stripTags:function(e){return e?String(e).replace(i,""):e},stripScripts:function(e){return e?String(e).replace(n,""):e},fileSize:function(){var e=1048576,t=1073741824;return function(i){return 1024>i?1===i?"1 byte":i+" bytes":e>i?Math.round(10*i/1024)/10+" KB":t>i?Math.round(10*i/e)/10+" MB":Math.round(10*i/t)/10+" GB"}}(),math:function(){var e={};return function(t,i){return e[i]||(e[i]=g.functionFactory("v","return v "+i+";")),e[i](t)}}(),round:function(e,t){var i=Number(e);return"number"==typeof t&&(t=Math.pow(10,t),i=Math.round(e*t)/t),i},number:function(i,n){if(!n)return i;var r=l[n];if(!r){var c,u,d,p,h,f=n,m=t.thousandSeparator,v=t.decimalSeparator,y=0;"/i"==n.substr(n.length-2)?(e||(e=new RegExp("[^\\d\\"+t.decimalSeparator+"]","g")),c=-1!=(n=n.substr(0,n.length-2)).indexOf(m),u=n.replace(e,"").split(v)):(c=-1!=n.indexOf(","),u=n.replace(s,"").split(".")),d=n.replace(a,""),u.length>2?console.log("Invalid number format, should have no more than 1 decimal"):2===u.length&&(y=u[1].length,p=o.test(u[1])),h=["var utilFormat=Eui.util.Format,extNumber=Eui.Number,neg,fnum,parts"+(c?",thousandSeparator,thousands=[],j,n,i":"")+(d?',formatString="'+n+'",formatPattern=/[\\d,\\.#]+/':"")+(p?",trailingZeroes=/\\.?0+$/;":";")+'return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return "";neg=v<0;',"fnum=Eui.Number.toFixed(Math.abs(v), "+y+");"],c?(y&&(h[h.length]='parts=fnum.split(".");',h[h.length]="fnum=parts[0];"),h[h.length]="if(v>=1000) {",h[h.length]="thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i<j;i+=n){if(i!==0){n=3;}thousands[thousands.length]=fnum.substr(i,n);}fnum=thousands.join(thousandSeparator);}",y&&(h[h.length]="fnum += utilFormat.decimalSeparator+parts[1];")):y&&(h[h.length]='if(utilFormat.decimalSeparator!=="."){parts=fnum.split(".");fnum=parts[0]+utilFormat.decimalSeparator+parts[1];}'),p&&(h[h.length]='fnum=fnum.replace(trailingZeroes,"");'),h[h.length]='if(neg&&fnum!=="'+(y?"0."+g.String.repeat("0",y):"0")+'")fnum="-"+fnum;',h[h.length]="return ",h[h.length]=d?"formatString.replace(formatPattern, fnum);":"fnum;",h[h.length]="};",r=l[f]=g.functionFactory("Eui",h.join(""))(g)}return r(i)},numberRenderer:function(e){return function(i){return t.number(i,e)}},attributes:function(e){if("object"==typeof e){var t,i=[];for(t in e)i.push(t,'="',"style"===t?g.DomHelper.generateStyles(e[t]):g.htmlEncode(e[t]),'"');e=i.join("")}return e||""},plural:function(e,t,i){return e+" "+(1==e?t:i||t+"s")},nl2br:function(e){return g.isEmpty(e)?"":e.replace(r,"<br/>")},capitalize:g.String.capitalize,ellipsis:g.String.ellipsis,format:g.String.format,htmlDecode:g.String.htmlDecode,htmlEncode:g.String.htmlEncode,leftPad:g.String.leftPad,trim:g.String.trim,parseBox:function(e){if("number"==typeof(e=e||0))return{top:e,right:e,bottom:e,left:e};var t=e.split(" "),i=t.length;return 1==i?t[1]=t[2]=t[3]=t[0]:2==i?(t[2]=t[0],t[3]=t[1]):3==i&&(t[3]=t[1]),{top:parseInt(t[0],10)||0,right:parseInt(t[1],10)||0,bottom:parseInt(t[2],10)||0,left:parseInt(t[3],10)||0}},escapeRegex:function(e){return e.replace(/([\-.*+?\^${}()|\[\]\/\\])/g,"\\$1")}}),g.extend({toSentence:function(e,t){var i,n,r=e.length;return 1>=r?e[0]:(i=e.slice(0,r-1),n=e[r-1],g.util.Format.format("{0} {1} {2}",i.join(", "),t||"and",n))}})}(),g.Number=function(){var e="1"!==.9.toFixed(),t=Math;return{constrain:function(e,t,i){var n=parseFloat(e);return t>n?t:n>i?i:n},snap:function(e,t,i,n){var r;return void 0===e||i>e?i||0:(t&&0!=(r=e%t)&&(e-=r,2*r>=t?e+=t:-t>2*r&&(e-=t)),this.constrain(e,i,n))},snapInRange:function(e,t,i,n){var r;return i=i||0,void 0===e||i>e?i:(t&&(r=(e-i)%t)&&(e-=r,(r*=2)>=t&&(e+=t)),void 0!==n&&e>(n=this.snapInRange(n,t,i))&&(e=n),e)},toFixed:e?function(e,i){i=i||0;var n=t.pow(10,i);return(t.round(e*n)/n).toFixed(i)}:function(e,t){return e.toFixed(t)},from:function(e,t){return isFinite(e)&&(e=parseFloat(e)),isNaN(e)?t:e},randomInt:function(e,i){return t.floor(t.random()*(i-e+1)+e)},correctFloat:function(e){return parseFloat(e.toPrecision(14))}}}(),g.num=function(){return g.Number.from.apply(this,arguments)},function(){var e,t,n,r,o=Array.prototype,a=o.slice,s=function(){var e,t=[],i=20;if(!t.splice)return!1;for(;i--;)t.push("A");return t.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F"),e=t.length,t.splice(13,0,"XXX"),e+1===t.length}(),l="forEach"in o,c="map"in o,u="indexOf"in o,d="every"in o,p="some"in o,h="filter"in o,f=function(){var e=[1,2,3,4,5].sort((function(){return 0}));return 1===e[0]&&2===e[1]&&3===e[2]&&4===e[3]&&5===e[4]}(),m=!0;try{void 0!==j&&a.call(j.getElementsByTagName("body"))}catch(e){m=!1}function v(e,t){return 0>t?Math.max(0,e.length+t):Math.min(e.length,t)}function y(e,t,i,n){var r,o,a,s,l,c,u=n?n.length:0,d=e.length,p=v(e,t);if(p===d)u&&e.push.apply(e,n);else{if(s=d-(o=p+(r=Math.min(i,d-p))),l=d-r,o>(a=o+u-r))for(c=0;s>c;++c)e[a+c]=e[o+c];else if(a>o)for(c=s;c--;)e[a+c]=e[o+c];if(u&&p===l)e.length=l,e.push.apply(e,n);else for(e.length=l+u,c=0;u>c;++c)e[p+c]=n[c]}return e}function b(e,t,i){var n=v(e,t),r=e.slice(t,v(e,n+i));return arguments.length<4?y(e,n,i):y(e,n,i,a.call(arguments,3)),r}t=s?function(e,t,i){return e.splice(t,i),e}:function(e,t,i){return y(e,t,i)},n=s?function(e,t,i,n){return n&&n.length?0!==t||i?t<e.length?e.splice.apply(e,[t,i].concat(n)):e.push.apply(e,n):e.unshift.apply(e,n):e.splice(t,i),e}:y,r=s?function(e){return e.splice.apply(e,a.call(arguments,1))}:b,(e=g.Array={each:function(t,i,n,r){var o,a=(t=e.from(t)).length;if(!0!==r){for(o=0;a>o;o++)if(!1===i.call(n||t[o],t[o],o,t))return o}else for(o=a-1;o>-1;o--)if(!1===i.call(n||t[o],t[o],o,t))return o;return!0},forEach:l?function(e,t,i){e.forEach(t,i)}:function(e,t,i){for(var n=0,r=e.length;r>n;n++)t.call(i,e[n],n,e)},indexOf:u?function(e,t,i){return o.indexOf.call(e,t,i)}:function(e,t,i){var n,r=e.length;for(n=0>i?Math.max(0,r+i):i||0;r>n;n++)if(e[n]===t)return n;return-1},contains:u?function(e,t){return-1!==o.indexOf.call(e,t)}:function(e,t){var i,n;for(i=0,n=e.length;n>i;i++)if(e[i]===t)return!0;return!1},toArray:function(e,t,i){if(!e||!e.length)return[];if("string"==typeof e&&(e=e.split("")),m)return a.call(e,t||0,i||e.length);var n,r=[];for(t=t||0,i=i?0>i?e.length+i:i:e.length,n=t;i>n;n++)r.push(e[n]);return r},pluck:function(e,t){var i,n,r,o=[];for(i=0,n=e.length;n>i;i++)r=e[i],o.push(r[t]);return o},map:c?function(e,t,i){return t||console.error("Eui.Array.map must have a callback function passed as second argument."),e.map(t,i)}:function(e,t,i){t||console.error("Eui.Array.map must have a callback function passed as second argument.");for(var n=[],r=0,o=e.length;o>r;r++)n[r]=t.call(i,e[r],r,e);return n},every:d?function(e,t,i){return t||g.Error.raise("Eui.Array.every must have a callback function passed as second argument."),e.every(t,i)}:function(e,t,i){t||g.Error.raise("Eui.Array.every must have a callback function passed as second argument.");for(var n=0,r=e.length;r>n;++n)if(!t.call(i,e[n],n,e))return!1;return!0},some:p?function(e,t,i){return t||g.Error.raise("Eui.Array.some must have a callback function passed as second argument."),e.some(t,i)}:function(e,t,i){t||g.Error.raise("Eui.Array.some must have a callback function passed as second argument.");for(var n=0,r=e.length;r>n;++n)if(t.call(i,e[n],n,e))return!0;return!1},equals:function(e,t){var i,n=e.length,r=t.length;if(e===t)return!0;if(n!==r)return!1;for(i=0;n>i;++i)if(e[i]!==t[i])return!1;return!0},clean:function(e){for(var t,i=[],n=0,r=e.length;r>n;n++)t=e[n],g.isEmpty(t)||i.push(t);return i},unique:function(t){for(var i,n=[],r=0,o=t.length;o>r;r++)i=t[r],-1===e.indexOf(n,i)&&n.push(i);return n},filter:h?function(e,t,n){return!t&&i.console&&console.log("Eui.Array.filter must have a filter function passed as second argument."),e.filter(t,n)}:function(e,t,n){!t&&i.console&&console.log("Eui.Array.filter must have a filter function passed as second argument.");for(var r=[],o=0,a=e.length;a>o;o++)t.call(n,e[o],o,e)&&r.push(e[o]);return r},findBy:function(e,t,i){for(var n=0,r=e.length;r>n;n++)if(t.call(i||e,e[n],n))return e[n];return null},from:function(t,i){if(null==t)return[];if(g.isArray(t))return i?a.call(t):t;var n=typeof t;return!t||void 0===t.length||"string"===n||"function"===n&&t.apply?[t]:e.toArray(t)},remove:function(i,n){var r=e.indexOf(i,n);return-1!==r&&t(i,r,1),i},include:function(t,i){e.contains(t,i)||t.push(i)},clone:function(e){return a.call(e)},merge:function(){var t,i,n=a.call(arguments),r=[];for(t=0,i=n.length;i>t;t++)r=r.concat(n[t]);return e.unique(r)},intersect:function(){var i,n,r,o,s,l,c,u,d,p,h,f,g=[],m=a.call(arguments);if(!m.length)return g;for(i=m.length,p=s=0;i>p;p++)l=m[p],(!o||l.length<o.length)&&(o=l,s=p);for(o=e.unique(o),t(m,s,1),c=o.length,i=m.length,p=0;c>p;p++){for(u=o[p],d=0,h=0;i>h;h++)for(r=(n=m[h]).length,f=0;r>f;f++)if(u===n[f]){d++;break}d===i&&g.push(u)}return g},difference:function(e,i){var n,r,o,s=a.call(e),l=s.length;for(n=0,o=i.length;o>n;n++)for(r=0;l>r;r++)s[r]===i[n]&&(t(s,r,1),r--,l--);return s},slice:[1,2].slice(1,void 0).length?function(e,t,i){return a.call(e,t,i)}:function(e,t,i){return void 0===t?a.call(e):void 0===i?a.call(e,t):a.call(e,t,i)},sort:f?function(e,t){return t?e.sort(t):e.sort()}:function(e,t){for(var i,n,r,o=e.length,a=0;o>a;a++){for(n=a,i=a+1;o>i;i++)t?0>t(e[i],e[n])&&(n=i):e[i]<e[n]&&(n=i);n!==a&&(r=e[a],e[a]=e[n],e[n]=r)}return e},flatten:function(e){var t=[];return function e(i){var n,r,o;for(n=0,r=i.length;r>n;n++)o=i[n],g.isArray(o)?e(o):t.push(o);return t}(e)},min:function(e,t){var i,n,r,o=e[0];for(i=0,n=e.length;n>i;i++)r=e[i],t?1===t(o,r)&&(o=r):o>r&&(o=r);return o},max:function(e,t){var i,n,r,o=e[0];for(i=0,n=e.length;n>i;i++)r=e[i],t?-1===t(o,r)&&(o=r):r>o&&(o=r);return o},mean:function(t){return t.length>0?e.sum(t)/t.length:void 0},sum:function(e){var t,i,n=0;for(t=0,i=e.length;i>t;t++)n+=e[t];return n},toMap:function(e,t,i){var n={},r=e.length;if(t)if("string"==typeof t)for(;r--;)n[e[r][t]]=r+1;else for(;r--;)n[t.call(i,e[r])]=r+1;else for(;r--;)n[e[r]]=r+1;return n},toValueMap:function(e,t,i){var n={},r=e.length;if(t)if("string"==typeof t)for(;r--;)n[e[r][t]]=e[r];else for(;r--;)n[t.call(i,e[r])]=e[r];else for(;r--;)n[e[r]]=e[r];return n},_replaceSim:y,_spliceSim:b,erase:t,insert:function(e,t,i){return n(e,t,0,i)},replace:n,splice:r,push:function(e){var t,i=arguments.length,n=1;for(void 0===e?e=[]:g.isArray(e)||(e=[e]);i>n;n++)t=arguments[n],Array.prototype.push[g.isIterable(t)?"apply":"call"](e,t);return e}}).union=e.merge,g.min=e.min,g.max=e.max,g.sum=e.sum,g.mean=e.mean,g.flatten=e.flatten,g.clean=e.clean,g.pluck=e.pluck,g.toArray=function(){return e.toArray.apply(e,arguments)},g.extend({zip:function(){var e,t,i,n=this,r=n.partition(arguments,(function(e){return"function"!=typeof e})),o=r[0],a=r[1][0],s=n.max(n.pluck(o,"length")),l=[];for(e=0;s>e;e++)if(l[e]=[],a)l[e]=a.apply(a,n.pluck(o,e));else for(t=0,i=o.length;i>t;t++)l[e].push(o[t][e]);return l}})}(),g.Function={flexSetter:function(e){return function(t,i){var n,r;if(null===t)return this;if("string"!=typeof t){for(n in t)t.hasOwnProperty(n)&&e.call(this,n,t[n]);if(g.enumerables)for(r=g.enumerables.length;r--;)n=g.enumerables[r],t.hasOwnProperty(n)&&e.call(this,n,t[n])}else e.call(this,t,i);return this}},bind:function(e,t,i,n){if(2===arguments.length)return function(){return e.apply(t,arguments)};var r=e,o=Array.prototype.slice;return function(){var e=i||arguments;return!0===n?e=(e=o.call(arguments,0)).concat(i):"number"==typeof n&&(e=o.call(arguments,0),g.Array.insert(e,n,i)),r.apply(t||g.global,e)}},pass:function(e,t,i){return g.isArray(t)||(t=g.isIterable(t)?g.Array.clone(t):void 0!==t?[t]:[]),function(){var n=[].concat(t);return n.push.apply(n,arguments),e.apply(i||this,n)}},alias:function(e,t){return function(){return e[t].apply(e,arguments)}},clone:function(e){return function(){return e.apply(this,arguments)}},createInterceptor:function(e,t,i,n){return g.isFunction(t)?(n=g.isDefined(n)?n:null,function(){var r=this,o=arguments;return t.target=r,t.method=e,!1!==t.apply(i||r||g.global,o)?e.apply(r||g.global,o):n}):e},createDelayed:function(e,t,i,n,r){return(i||n)&&(e=g.Function.bind(e,i,n,r)),function(){var i=this,n=Array.prototype.slice.call(arguments);setTimeout((function(){e.apply(i,n)}),t)}},defer:function(e,t,i,n,r){return e=g.Function.bind(e,i,n,r),t>0?setTimeout(g.supports.TimeoutActualLateness?function(){e()}:e,t):(e(),0)},createSequence:function(e,t,i){return t?function(){var n=e.apply(this,arguments);return t.apply(i||this,arguments),n}:e},createBuffered:function(e,t,i,n){var r;return function(){var o=n||Array.prototype.slice.call(arguments,0),a=i||this;r&&clearTimeout(r),r=setTimeout((function(){e.apply(a,o)}),t)}},createThrottled:function(e,t,i){var n,r,o,a,s=function(){e.apply(i||this,o),n=g.Date.now()};return function(){r=g.Date.now()-n,o=arguments,clearTimeout(a),!n||r>=t?s():a=setTimeout(s,t-r)}},interceptBefore:function(e,t,i,n){var r=e[t]||g.emptyFn;return e[t]=function(){var e=i.apply(n||this,arguments);return r.apply(this,arguments),e}},interceptAfter:function(e,t,i,n){var r=e[t]||g.emptyFn;return e[t]=function(){return r.apply(this,arguments),i.apply(n||this,arguments)}}},g.defer=g.Function.alias(g.Function,"defer"),g.pass=g.Function.alias(g.Function,"pass"),g.bind=g.Function.alias(g.Function,"bind"),function(){var e=function(){},t=g.Object={chain:Object.create||function(t){e.prototype=t;var i=new e;return e.prototype=null,i},toQueryObjects:function(e,i,n){var r,o,a=t.toQueryObjects,s=[];if(g.isArray(i))for(r=0,o=i.length;o>r;r++)n?s=s.concat(a(e+"["+r+"]",i[r],!0)):s.push({name:e,value:i[r]});else if(g.isObject(i))for(r in i)i.hasOwnProperty(r)&&(n?s=s.concat(a(e+"["+r+"]",i[r],!0)):s.push({name:e,value:i[r]}));else s.push({name:e,value:i});return s},toQueryString:function(e,i){var n,r,o,a,s,l=[],c=[];for(n in e)e.hasOwnProperty(n)&&(l=l.concat(t.toQueryObjects(n,e[n],i)));for(r=0,o=l.length;o>r;r++)s=(a=l[r]).value,g.isEmpty(s)?s="":g.isDate(s)&&(s=g.Date.toString(s)),c.push(encodeURIComponent(a.name)+"="+encodeURIComponent(String(s)));return c.join("&")},fromQueryString:function(e,t){var i,n,r,o,a,s,l,c,u,d,p,h,f,m,v=e.replace(/^\?/,"").split("&"),y={};for(a=0,s=v.length;s>a;a++)if((l=v[a]).length>0)if(n=l.split("="),r=decodeURIComponent(n[0]),o=void 0!==n[1]?decodeURIComponent(n[1]):"",t){if(d=r.match(/(\[):?([^\]]*)\]/g),!(p=r.match(/^([^\[]+)/)))throw new Error('[Eui.Object.fromQueryString] Malformed query string given, failed parsing name from "'+l+'"');if(r=p[0],h=[],null===d){y[r]=o;continue}for(c=0,u=d.length;u>c;c++)f=2===(f=d[c]).length?"":f.substring(1,f.length-1),h.push(f);for(h.unshift(r),i=y,c=0,u=h.length;u>c;c++)f=h[c],c===u-1?g.isArray(i)&&""===f?i.push(o):i[f]=o:((void 0===i[f]||"string"==typeof i[f])&&(m=h[c+1],i[f]=g.isNumeric(m)||""===m?[]:{}),i=i[f])}else y.hasOwnProperty(r)?(g.isArray(y[r])||(y[r]=[y[r]]),y[r].push(o)):y[r]=o;return y},each:function(e,t,i){for(var n in e)if(e.hasOwnProperty(n)&&!1===t.call(i||e,n,e[n],e))return},merge:function(e){for(var i,n,r,o,a=1,s=arguments.length,l=t.merge,c=g.util.clone;s>a;a++)for(n in i=arguments[a])(r=i[n])&&r.constructor===Object?(o=e[n])&&o.constructor===Object?l(o,r):e[n]=c(r):e[n]=r;return e},mergeIf:function(e){for(var t,i,n,r=1,o=arguments.length,a=g.clone;o>r;r++)for(i in t=arguments[r])i in e||((n=t[i])&&n.constructor===Object?e[i]=a(n):e[i]=n);return e},getKey:function(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return null},getKeyValue:function(e,t,i){return e.hasOwnProperty(t)?e[t]:null!=i?i:null},getValues:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(e[t]);return i},getKeys:"function"==typeof Object.keys?function(e){return e?Object.keys(e):[]}:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i},getSize:function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&i++;return i},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},equals:function(){var e=function(e,t){var i;for(i in e)if(e.hasOwnProperty(i)&&e[i]!==t[i])return!1;return!0};return function(t,i){return t===i||(t&&i?e(t,i)&&e(i,t):!t&&!i&&t===i)}}(),classify:function(e){var i,n,r=e,o=[],a={},s=function(){for(var e,t=0,i=o.length;i>t;t++)this[e=o[t]]=new a[e]};for(i in e)e.hasOwnProperty(i)&&(n=e[i])&&n.constructor===Object&&(o.push(i),a[i]=t.classify(n));return s.prototype=r,s}};g.mergeIf=g.Object.mergeIf,g.urlEncode=function(){var e=g.Array.from(arguments),i="";return"string"==typeof e[1]&&(i=e[1]+"&",e[1]=!1),i+t.toQueryString.apply(t,e)},g.urlDecode=function(){return t.fromQueryString.apply(t,arguments)}}(),g.Date=new function(){var e=this,t=/(\\.)/g,n=/([gGhHisucUOPZ]|MS)/,r=/([djzmnYycU]|MS)/,o=/\\/gi,a=/\{(\d+)\}/g,s=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/"),l=["var me = this, dt, y, m, d, h, i, s, ms, o, O, z, zz, u, v, W, year, jan4, week1monday, daysInMonth, dayMatched,","def = me.defaults,","from = Eui.Number.from,","results = String(input).match(me.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = me.clearTime(new Date);","y = from(y, from(def.y, dt.getFullYear()));","m = from(m, from(def.m - 1, dt.getMonth()));","dayMatched = d !== undefined;","d = from(d, from(def.d, dt.getDate()));","if (!dayMatched) {","dt.setDate(1);","dt.setMonth(m);","dt.setFullYear(y);","daysInMonth = me.getDaysInMonth(dt);","if (d > daysInMonth) {","d = daysInMonth;","}","}","h = from(h, from(def.h, dt.getHours()));","i = from(i, from(def.i, dt.getMinutes()));","s = from(s, from(def.s, dt.getSeconds()));","ms = from(ms, from(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);","}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","if (W) {","year = y || (new Date()).getFullYear(),","jan4 = new Date(year, 0, 4, 0, 0, 0),","week1monday = new Date(jan4.getTime() - ((jan4.getDay() - 1) * 86400000));","v = Eui.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000)));","} else {","v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","}","}","}","}","if(v){","if(zz != null){","v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return v;"].join("\n");function c(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(a,(function(e,i){return t[i]}))}g.apply(e,{now:Date.now||function(){return+new Date},toString:function(e){var t=g.String.leftPad;return e.getFullYear()+"-"+t(e.getMonth()+1,2,"0")+"-"+t(e.getDate(),2,"0")+"T"+t(e.getHours(),2,"0")+":"+t(e.getMinutes(),2,"0")+":"+t(e.getSeconds(),2,"0")},getElapsed:function(t,i){return Math.abs(t-(i||e.now()))},useStrict:!1,formatCodeToRegex:function(t,i){var n=e.parseCodes[t];return n&&(n="function"==typeof n?n():n,e.parseCodes[t]=n),n?g.applyIf({c:n.c?c(n.c,i||"{0}"):n.c},n):{g:0,c:null,s:g.String.escapeRegex(t)}},parseFunctions:{MS:function(e,t){var i=(e||"").match(s);return i?new Date(1*((i[1]||"")+i[2])):null},time:function(e,t){var i=parseInt(e,10);return i||0===i?new Date(i):null},timestamp:function(e,t){var i=parseInt(e,10);return i||0===i?new Date(1e3*i):null}},parseRegexes:[],formatFunctions:{MS:function(){return"\\/Date("+this.getTime()+")\\/"},time:function(){return this.getTime().toString()},timestamp:function(){return e.format(this,"U")}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:"m/d/Y",getShortMonthName:function(e){return g.Date.monthNames[e].substring(0,3)},getShortDayName:function(e){return g.Date.dayNames[e].substring(0,3)},getMonthNumber:function(e){return g.Date.monthNumbers[e.substring(0,1).toUpperCase()+e.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(e){return n.test(e.replace(t,""))},formatContainsDateInfo:function(e){return r.test(e.replace(t,""))},unescapeFormat:function(e){return e.replace(o,"")},formatCodes:{d:"Eui.String.leftPad(this.getDate(), 2, '0')",D:"Eui.Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Eui.Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"Eui.Date.getSuffix(this)",w:"this.getDay()",z:"Eui.Date.getDayOfYear(this)",W:"Eui.String.leftPad(Eui.Date.getWeekOfYear(this), 2, '0')",F:"Eui.Date.monthNames[this.getMonth()]",m:"Eui.String.leftPad(this.getMonth() + 1, 2, '0')",M:"Eui.Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"Eui.Date.getDaysInMonth(this)",L:"(Eui.Date.isLeapYear(this) ? 1 : 0)",o:"(this.getFullYear() + (Eui.Date.getWeekOfYear(this) == 1 && this.getMonth() > 0 ? +1 : (Eui.Date.getWeekOfYear(this) >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"Eui.String.leftPad(this.getFullYear(), 4, '0')",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"Eui.String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"Eui.String.leftPad(this.getHours(), 2, '0')",i:"Eui.String.leftPad(this.getMinutes(), 2, '0')",s:"Eui.String.leftPad(this.getSeconds(), 2, '0')",u:"Eui.String.leftPad(this.getMilliseconds(), 3, '0')",O:"Eui.Date.getGMTOffset(this)",P:"Eui.Date.getGMTOffset(this, true)",T:"Eui.Date.getTimezone(this)",Z:"(this.getTimezoneOffset() * -60)",c:function(){var t,i,n;for(t=[],i=0,12;12>i;++i)n="Y-m-dTH:i:sP".charAt(i),t.push("T"==n?"'T'":e.getFormatCode(n));return t.join(" + ")},U:"Math.round(this.getTime() / 1000)"},isValid:function(t,i,n,r,o,a,s){r=r||0,o=o||0,a=a||0,s=s||0;var l=e.add(new Date(100>t?100:t,i-1,n,r,o,a,s),e.YEAR,100>t?t-100:0);return t==l.getFullYear()&&i==l.getMonth()+1&&n==l.getDate()&&r==l.getHours()&&o==l.getMinutes()&&a==l.getSeconds()&&s==l.getMilliseconds()},parse:function(t,i,n){var r=e.parseFunctions;return null==r[i]&&e.createParser(i),r[i].call(e,t,g.isDefined(n)?n:e.useStrict)},parseDate:function(t,i,n){return e.parse(t,i,n)},getFormatCode:function(t){var i=e.formatCodes[t];return i&&(i="function"==typeof i?i():i,e.formatCodes[t]=i),i||"'"+g.String.escape(t)+"'"},createFormat:function(t){var i,n=[],r=!1,o="";for(i=0;i<t.length;++i)o=t.charAt(i),r||"\\"!=o?r?(r=!1,n.push("'"+g.String.escape(o)+"'")):n.push(e.getFormatCode(o)):r=!0;e.formatFunctions[t]=g.functionFactory("return "+n.join("+"))},createParser:function(t){for(var i,n=e.parseRegexes.length,r=1,o=[],a=[],s=!1,u="",d=0,p=t.length,h=[];p>d;++d)u=t.charAt(d),s||"\\"!=u?s?(s=!1,a.push(g.String.escape(u))):(r+=(i=e.formatCodeToRegex(u,r)).g,a.push(i.s),i.g&&i.c&&(i.calcAtEnd?h.push(i.c):o.push(i.c))):s=!0;o=o.concat(h),e.parseRegexes[n]=new RegExp("^"+a.join("")+"$","i"),e.parseFunctions[t]=g.functionFactory("input","strict",c(l,n,o.join("")))},parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|0[1-9])"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|[1-9])"},D:function(){for(var t=[],i=0;7>i;t.push(e.getShortDayName(i)),++i);return{g:0,c:null,s:"(?:"+t.join("|")+")"}},l:function(){return{g:0,c:null,s:"(?:"+e.dayNames.join("|")+")"}},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:1,c:"W = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},F:function(){return{g:1,c:"m = parseInt(me.getMonthNumber(results[{0}]), 10);\n",s:"("+e.monthNames.join("|")+")"}},M:function(){for(var t=[],i=0;12>i;t.push(e.getShortMonthName(i)),++i);return g.applyIf({s:"("+t.join("|")+")"},e.formatCodeToRegex("F"))},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|0[1-9])"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|[1-9])"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm|AM|PM)",calcAtEnd:!0},A:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)",calcAtEnd:!0},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[0-9])"},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|1[0-9]|[0-9])"},h:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|0[1-9])"},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|[0-1][0-9])"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Eui.String.leftPad(hr, 2, '0') + Eui.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Eui.String.leftPad(hr, 2, '0') + Eui.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,5}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var t,i,n=[],r=[e.formatCodeToRegex("Y",1),e.formatCodeToRegex("m",2),e.formatCodeToRegex("d",3),e.formatCodeToRegex("H",4),e.formatCodeToRegex("i",5),e.formatCodeToRegex("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",e.formatCodeToRegex("P",8).c,"}else{",e.formatCodeToRegex("O",8).c,"}","}"].join("\n")}];for(t=0,i=r.length;i>t;++t)n.push(r[t].c);return{g:1,c:n.join(""),s:[r[0].s,"(?:","-",r[1].s,"(?:","-",r[2].s,"(?:","(?:T| )?",r[3].s,":",r[4].s,"(?::",r[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},dateFormat:function(t,i){return e.format(t,i)},isEqual:function(e,t){return e&&t?e.getTime()===t.getTime():!(e||t)},format:function(t,i){var n=e.formatFunctions;return g.isDate(t)?(null==n[i]&&e.createFormat(i),n[i].call(t)+""):""},getTimezone:function(e){return e.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(e,t){var i=e.getTimezoneOffset();return(i>0?"-":"+")+g.String.leftPad(Math.floor(Math.abs(i)/60),2,"0")+(t?":":"")+g.String.leftPad(Math.abs(i%60),2,"0")},getDayOfYear:function(t){var i,n=0,r=g.Date.clone(t),o=t.getMonth();for(i=0,r.setDate(1),r.setMonth(0);o>i;r.setMonth(++i))n+=e.getDaysInMonth(r);return n+t.getDate()-1},getWeekOfYear:function(){var e=864e5,t=7*e;return function(i){var n=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()+3)/e,r=Math.floor(n/7),o=new Date(r*t).getUTCFullYear();return r-Math.floor(Date.UTC(o,0,7)/t)+1}}(),isLeapYear:function(e){var t=e.getFullYear();return!(0!=(3&t)||!(t%100||t%400==0&&t))},getFirstDayOfMonth:function(e){var t=(e.getDay()-(e.getDate()-1))%7;return 0>t?t+7:t},getLastDayOfMonth:function(t){return e.getLastDateOfMonth(t).getDay()},getFirstDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),1)},getLastDateOfMonth:function(t){return new Date(t.getFullYear(),t.getMonth(),e.getDaysInMonth(t))},getDaysInMonth:function(){var t=[31,28,31,30,31,30,31,31,30,31,30,31];return function(i){var n=i.getMonth();return 1==n&&e.isLeapYear(i)?29:t[n]}}(),getSuffix:function(e){switch(e.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},clone:function(e){return new Date(e.getTime())},isDST:function(e){return new Date(e.getFullYear(),0,1).getTimezoneOffset()!=e.getTimezoneOffset()},clearTime:function(t,i){if(i)return g.Date.clearTime(g.Date.clone(t));var n,r,o=t.getDate();if(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.getDate()!=o){for(n=1,r=e.add(t,g.Date.HOUR,n);r.getDate()!=o;n++,r=e.add(t,g.Date.HOUR,n));t.setDate(o),t.setHours(r.getHours())}return t},add:function(t,i,n){var r,o,a=g.Date.clone(t),s=0;if(!i||0===n)return a;if(o=n-parseInt(n,10),n=parseInt(n,10))switch(i.toLowerCase()){case g.Date.MILLI:a.setTime(a.getTime()+n);break;case g.Date.SECOND:a.setTime(a.getTime()+1e3*n);break;case g.Date.MINUTE:a.setTime(a.getTime()+60*n*1e3);break;case g.Date.HOUR:a.setTime(a.getTime()+60*n*60*1e3);break;case g.Date.DAY:a.setDate(a.getDate()+n);break;case g.Date.MONTH:(r=t.getDate())>28&&(r=Math.min(r,g.Date.getLastDateOfMonth(g.Date.add(g.Date.getFirstDateOfMonth(t),g.Date.MONTH,n)).getDate())),a.setDate(r),a.setMonth(t.getMonth()+n);break;case g.Date.YEAR:(r=t.getDate())>28&&(r=Math.min(r,g.Date.getLastDateOfMonth(g.Date.add(g.Date.getFirstDateOfMonth(t),g.Date.YEAR,n)).getDate())),a.setDate(r),a.setFullYear(t.getFullYear()+n)}if(o){switch(i.toLowerCase()){case g.Date.MILLI:s=1;break;case g.Date.SECOND:s=1e3;break;case g.Date.MINUTE:s=6e4;break;case g.Date.HOUR:s=36e5;break;case g.Date.DAY:s=864e5;break;case g.Date.MONTH:s=864e5*(r=e.getDaysInMonth(a));break;case g.Date.YEAR:s=864e5*(r=e.isLeapYear(a)?366:365)}s&&a.setTime(a.getTime()+s*o)}return a},subtract:function(t,i,n){return e.add(t,i,-n)},between:function(e,t,i){var n=e.getTime();return t.getTime()<=n&&n<=i.getTime()},compat:function(){var t,n,r,o,a=i.Date,s=["useStrict","formatCodeToRegex","parseFunctions","parseRegexes","formatFunctions","y2kYear","MILLI","SECOND","MINUTE","HOUR","DAY","MONTH","YEAR","defaults","dayNames","monthNames","monthNumbers","getShortMonthName","getShortDayName","getMonthNumber","formatCodes","isValid","parseDate","getFormatCode","createFormat","createParser","parseCodes"],l=["dateFormat","format","getTimezone","getGMTOffset","getDayOfYear","getWeekOfYear","isLeapYear","getFirstDayOfMonth","getLastDayOfMonth","getDaysInMonth","getSuffix","clone","isDST","clearTime","add","between"],c=s.length,u=l.length;for(o=0;c>o;o++)a[n=s[o]]=e[n];for(t=0;u>t;t++)r=l[t],a.prototype[r]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),e[r].apply(e,t)}}})},g.Date.patterns={ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},g.JSON=new function(){var e,t,n=this,r=null,o=!!{}.hasOwnProperty,a=function(){return null===r&&(r=g.USE_NATIVE_JSON&&i.JSON&&"[object JSON]"==JSON.toString()),r},s=function(e){return 10>e?"0"+e:e},l=function(e){return i.eval.call(i,"("+e+")")},c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\","\v":"\\u000b"},u=/[\\\"\x00-\x1f\x7f-\uffff]/g;n.encodeString=function(e){return'"'+e.replace(u,(function(e){var t=c[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"'},n.encodeValue=function(e,t){return null==e?"null":g.isDate(e)?g.JSON.encodeDate(e):g.isString(e)?g.JSON.encodeString(e):"number"==typeof e?isFinite(e)?String(e):"null":g.isBoolean(e)?String(e):e.toJSON?e.toJSON():g.isArray(e)?function(e,t){if(t)return function(e,t){var i,n=e.length,r=t+" ",o=","+r,a=["[",r];for(i=0;n>i;i+=1)a.push(g.JSON.encodeValue(e[i],r),o);return a[a.length-1]=t+"]",a.join("")}(e,t);var i,n=["[",""],r=e.length;for(i=0;r>i;i+=1)n.push(g.JSON.encodeValue(e[i]),",");return n[n.length-1]="]",n.join("")}(e,t):g.isObject(e)?function(e,t){if(t)return function(e,t){var i,n,r=t+" ",a=","+r,s=["{",r];for(i in e)if(n=e[i],!o||e.hasOwnProperty(i)){if("function"==typeof n||void 0===n)continue;s.push(g.JSON.encodeValue(i)+": "+g.JSON.encodeValue(n,r),a)}return s[s.length-1]=t+"}",s.join("")}(e,t);var i,n,r=["{",""];for(i in e)if(n=e[i],!o||e.hasOwnProperty(i)){if("function"==typeof n||void 0===n)continue;r.push(g.JSON.encodeValue(i),":",g.JSON.encodeValue(n),",")}return r[r.length-1]="}",r.join("")}(e,t):"function"==typeof e?"null":"undefined"},n.encodeDate=function(e){return'"'+e.getFullYear()+"-"+s(e.getMonth()+1)+"-"+s(e.getDate())+"T"+s(e.getHours())+":"+s(e.getMinutes())+":"+s(e.getSeconds())+'"'},n.encode=function(t){return e||(e=a()?JSON.stringify:n.encodeValue),e(t)},n.decode=function(e,i){t||(t=a()?JSON.parse:l);try{return t(e)}catch(t){if(!0===i)return null;$.log("warn","You're trying to decode an invalid JSON String: "+e)}}},g.encode=g.JSON.encode,g.decode=g.JSON.decode,g.util.HashMap=function(e){var t=this,i=(e=e||{}).keyFn;t.initialConfig=e,t.clear(!0),i&&(t.getKey=i)},g.util.HashMap.prototype={generation:0,map:{},length:0,getCount:function(){return this.length},getData:function(e,t){return void 0===t&&(t=e,e=this.getKey(t)),[e,t]},getKey:function(e){return e.id},add:function(e,t){var i=this;return 1===arguments.length&&(t=e,e=i.getKey(t)),i.containsKey(e)?i.replace(e,t):(i.map[e]=t,++i.length,i.generation++,t)},replace:function(e,t){var i=this,n=i.map;return 1===arguments.length&&(t=e,e=i.getKey(t)),i.containsKey(e)||i.add(e,t),n[e],n[e]=t,i.generation++,t},remove:function(e){var t=this.findKey(e);return void 0!==t&&this.removeAtKey(t)},removeAtKey:function(e){var t=this;return!!t.containsKey(e)&&(t.map[e],delete t.map[e],--t.length,t.generation++,!0)},get:function(e){var t=this.map;return t.hasOwnProperty(e)?t[e]:void 0},clear:function(e){var t=this;return(e||t.generation)&&(t.map={},t.length=0,t.generation=e?0:t.generation+1),t},containsKey:function(e){var t=this.map;return t.hasOwnProperty(e)&&void 0!==t[e]},contains:function(e){return this.containsKey(this.findKey(e))},getKeys:function(){return this.getArray(!0)},getValues:function(){return this.getArray(!1)},getArray:function(e){var t,i=[],n=this.map;for(t in n)n.hasOwnProperty(t)&&i.push(e?t:n[t]);return i},each:function(e,t){var i,n=g.apply({},this.map),r=this.length;for(i in t=t||this,n)if(n.hasOwnProperty(i)&&!1===e.call(t,i,n[i],r))break;return this},clone:function(){var e,t=new this.self(this.initialConfig),i=this.map;for(e in t.suspendEvents(),i)i.hasOwnProperty(e)&&t.add(e,i[e]);return t.resumeEvents(),t},findKey:function(e){var t,i=this.map;for(t in i)if(i.hasOwnProperty(t)&&i[t]===e)return t}},g.apply(g,{isSuccess:function(e){return e.success}});var pi=g.Extra={warp:!0,warpKey:"reqJson",trimSerialize:function(e){return e.replace(/\+/g," ")},warpReqParams:function(e,t,i){if(g.isString(e))return e;var n=arguments.length,r=this.warp,o=this.warpKey;if(2==n&&($.isBoolean(t)?r=t:g.isString(t)?i=t:g.isObject(t)&&(t.hasOwnProperty("warp")&&(r=t.warp),t.hasOwnProperty("warpKey")&&(o=t.warpKey))),3==n&&(r=t,o=i),r){var a={};return a[o]=g.encode(e),a}return e},toDataObjects:function(e,t,i){var n,r,o=pi.toDataObjects,a={};if(g.isArray(e))for(n=0,r=e.length;r>n;n++)t?g.Object.merge(a,o(e[n],!0)):a[i]=e[n];else if(g.isObject(e))for(n in e)e.hasOwnProperty(n)&&(t?g.Object.merge(a,o(e[n],!0,(i?i+".":"")+n)):a[i]=e[n]);else a[i]=e;return a},replaceKeys:function(e,t,i,n){var r=this;i=null!=i&&i,n=null==n||n,g.isEmpty(e)||g.isEmpty(t)||(g.isObject(e)&&g.Object.each(e,(function(o,a){if(t.hasOwnProperty(o)){var s=t[o];g.isEmpty(s)||(e[s]=a,n&&delete e[o])}i&&r.replaceKeys(a,t,i,n)})),g.isArray(e)&&g.Array.each(e,(function(e){r.replaceKeys(e,t,i,n)})))},filterDataByKey:function(e,t,i,n){var r=this;if(n=n||{},!g.isEmpty(t))return g.isObject(e)&&g.Object.each(e,(function(o,a){g.Array.contains(t,o)?(n[o]=a,delete e[o]):(g.isObject(a)||g.isArray(a))&&i&&r.filterDataByKey(a,t,i)})),g.isArray(e)&&g.Array.each(e,(function(e){r.filterDataByKey(e,t,i)})),n},addPrefixForObject:function(e,t){return!g.isEmpty(t)&&g.isObject(e)&&g.Object.each(e,(function(i,n){-1===i.indexOf(".")&&(e[t+"."+i]=n,delete e[i])})),e},getFieldValue:function(e,t){if(!e||!t)return e;for(var i=(t=t.replace(/\[/g,".").replace(/\]/g,"")).split("."),n=0;n<i.length;n++){var r=i[n];if(void 0===e[r])return;e=e[r]}return e}},hi=g.Logger={methodMap:["silly","debug","info","warn","error"],level:"debug",lookupLevel:function(e){if("string"==typeof e){var t=this.methodMap.indexOf(e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){var t=this,i=g.Array.toArray(arguments),n=i.length;if(e=t.lookupLevel(e),"undefined"!=typeof console&&t.lookupLevel(t.level)<=e){var r=t.methodMap[e];console[r]||(r="log");var o=i[n-1];if(g.isBoolean(o)&&!0===o){var a=i.slice(2,-1),s=i[1].replace(/\{(\d+)\}/g,(function(e,t){return a[t]}));console[r].apply(console,[s])}else{for(var l=arguments.length,c=(s=Array(l>1?l-1:0),1);l>c;c++)s[c-1]=arguments[c];console[r].apply(console,s)}}}};g.apply(g,{log:g.Function.alias(hi,"log")}),g.env={proxy:{}},g.apply(g,{getEnv:function(e){return this.env.hasOwnProperty(e)?this.env[e]:(g.Logger.log("debug","You have't define '{0}' key,please make sure it.",e,!0),"")},getProxy:function(e){var t=this.getEnv("proxy");return t&&"object"===g.type(t)&&!g.Object.isEmpty(t)?t.hasOwnProperty(e)?t[e]:"":void 0},getAppServer:function(e){var t=this.getProxy(e),i=g.type(t);return"string"===i?t:"object"===i?t.server:(g.Logger.log("warn","unknown define when get {0} proxy info.",e,!0),"")}}),void 0===(n=function(){return g}.apply(t,[]))||(e.exports=n);var fi=i.Eui,gi=i.$;return g.noConflict=function(e){return i.$===g&&(i.$=gi),e&&i.Eui===g&&(i.Eui=fi),g},r||(i.Eui=i.$=g),g}))},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){"use strict";var t=e.Comm={ajaxTimeout:12e4,remoteRe:/\.action/,defaultHostKey:"ecas",defaultSettings:{type:"post",cache:!1,data:{},async:!0,processData:!1,traditional:!0,dataType:"json",hostKey:"",headers:{"x-requested-with":"x-requested-with"}},events:["success","error","beforeSend","complete"],postToRemote:function(t,i,n,r){var o=this,a=arguments,s=a.length,l=o.defaultSettings,c=e.util.clone(l);if($.isObject(t)?$.extend(c,t):$.extend(c,{url:t}),s>1)if($.isFunction(i))c.hasOwnProperty("success")||(c.success=i),n&&!c.hasOwnProperty("error")&&(c.error=n);else{n&&!c.hasOwnProperty("success")&&(c.success=n),r&&!c.hasOwnProperty("error")&&(c.error=r);var u=a[s-1],d=$.isBoolean(u)?u:e.Extra.warp;$.extend(c,{data:e.Extra.warpReqParams(i,d)})}c.hasOwnProperty("timeout")||$.extend(c,{timeout:o.ajaxTimeout});var p={};o.events.forEach((function(t){var i=c[t]||$.emptyFn;p[t]=function(){if(!1!==i.apply(this,arguments)){var n="recv"+e.String.capitalize(t)+"Dispatch";(o[n]||$.emptyFn).apply(this,arguments)}}})),c=o.convertDataParams($.extend(c,p)),o.executeAjax(c)},convertDataParams:function(t){if(t.data||(t.data={}),t.data&&"string"==typeof t.data&&(t.data=e.Object.fromQueryString(t.data)),-1!==t.url.indexOf("?")){var i=t.url.indexOf("?"),n=e.Object.fromQueryString(t.url.substring(i));t.url=t.url.substr(0,i),e.extend(!0,t.data,n)}return"GET"===t.type.toUpperCase()&&(t.processData=!0),t},executeAjax:function(t){e.ajax(t)}};e.apply(e,{postToRemote:e.Function.alias(t,"postToRemote")})})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){e.exports=function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){"use strict";function n(){var e=p();return e.compile=function(t,i){return l.compile(t,i,e)},e.precompile=function(t,i){return l.precompile(t,i,e)},e.AST=a.default,e.Compiler=l.Compiler,e.JavaScriptCompiler=c.default,e.Parser=s.parser,e.parse=s.parse,e}var r=i(1).default;t.__esModule=!0;var o=r(i(2)),a=r(i(35)),s=i(36),l=i(43),c=r(i(44)),u=r(i(41)),d=r(i(34)),p=o.default.create,h=n();h.create=n,d.default(h),h.Visitor=u.default,h.default=h,t.default=h,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,i){"use strict";function n(){var e=new a.HandlebarsEnvironment;return c.extend(e,a),e.SafeString=s.default,e.Exception=l.default,e.Utils=c,e.escapeExpression=c.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var r=i(3).default,o=i(1).default;t.__esModule=!0;var a=r(i(4)),s=o(i(21)),l=o(i(6)),c=r(i(5)),u=r(i(22)),d=o(i(34)),p=n();p.create=n,d.default(p),p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t},t.__esModule=!0},function(e,t,i){"use strict";function n(e,t,i){this.helpers=e||{},this.partials=t||{},this.decorators=i||{},s.registerDefaultHelpers(this),l.registerDefaultDecorators(this)}var r=i(1).default;t.__esModule=!0,t.HandlebarsEnvironment=n;var o=i(5),a=r(i(6)),s=i(10),l=i(18),c=r(i(20));t.VERSION="4.0.7",t.COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};var u="[object Object]";n.prototype={constructor:n,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(o.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(o.toString.call(e)===u)o.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(o.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var d=c.default.log;t.log=d,t.createFrame=o.createFrame,t.logger=c.default},function(e,t){"use strict";function i(e){return r[e]}function n(e){for(var t=1;t<arguments.length;t++)for(var i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(e[i]=arguments[t][i]);return e}t.__esModule=!0,t.extend=n,t.indexOf=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return a.test(e)?e.replace(o,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=n({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,a=/[&<>"'`=]/,s=Object.prototype.toString;t.toString=s;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===s.call(e)};t.isArray=c},function(e,t,i){"use strict";function n(e,t){var i=t&&t.loc,a=void 0,s=void 0;i&&(e+=" - "+(a=i.start.line)+":"+(s=i.start.column));for(var l=Error.prototype.constructor.call(this,e),c=0;c<o.length;c++)this[o[c]]=l[o[c]];Error.captureStackTrace&&Error.captureStackTrace(this,n);try{i&&(this.lineNumber=a,r?Object.defineProperty(this,"column",{value:s,enumerable:!0}):this.column=s)}catch(e){}}var r=i(7).default;t.__esModule=!0;var o=["description","fileName","lineNumber","message","name","number","stack"];n.prototype=new Error,t.default=n,e.exports=t.default},function(e,t,i){e.exports={default:i(8),__esModule:!0}},function(e,t,i){var n=i(9);e.exports=function(e,t,i){return n.setDesc(e,t,i)}},function(e,t){var i=Object;e.exports={create:i.create,getProto:i.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:i.getOwnPropertyDescriptor,setDesc:i.defineProperty,setDescs:i.defineProperties,getKeys:i.keys,getNames:i.getOwnPropertyNames,getSymbols:i.getOwnPropertySymbols,each:[].forEach}},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){r.default(e),o.default(e),a.default(e),s.default(e),l.default(e),c.default(e),u.default(e)};var r=n(i(11)),o=n(i(12)),a=n(i(13)),s=n(i(14)),l=n(i(15)),c=n(i(16)),u=n(i(17))},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,i){var r=i.inverse,o=i.fn;if(!0===t)return o(this);if(!1===t||null==t)return r(this);if(n.isArray(t))return t.length>0?(i.ids&&(i.ids=[i.name]),e.helpers.each(t,i)):r(this);if(i.data&&i.ids){var a=n.createFrame(i.data);a.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:a}}return o(t,i)}))},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0;var r=i(5),o=n(i(6));t.default=function(e){e.registerHelper("each",(function(e,t){function i(t,i,o){c&&(c.key=t,c.index=i,c.first=0===i,c.last=!!o,u&&(c.contextPath=u+t)),l+=n(e[t],{data:c,blockParams:r.blockParams([e[t],t],[u+t,null])})}if(!t)throw new o.default("Must pass iterator to #each");var n=t.fn,a=t.inverse,s=0,l="",c=void 0,u=void 0;if(t.data&&t.ids&&(u=r.appendContextPath(t.data.contextPath,t.ids[0])+"."),r.isFunction(e)&&(e=e.call(this)),t.data&&(c=r.createFrame(t.data)),e&&"object"==typeof e)if(r.isArray(e))for(var d=e.length;s<d;s++)s in e&&i(s,s,s===e.length-1);else{var p=void 0;for(var h in e)e.hasOwnProperty(h)&&(void 0!==p&&i(p,s-1),p=h,s++);void 0!==p&&i(p,s-1,!0)}return 0===s&&(l=a(this)),l}))},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0;var r=n(i(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5);t.default=function(e){e.registerHelper("if",(function(e,t){return n.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||n.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,i){return e.helpers.if.call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],i=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var r=1;null!=i.hash.level?r=i.hash.level:i.data&&null!=i.data.level&&(r=i.data.level),t[0]=r,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t){return e&&e[t]}))},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5);t.default=function(e){e.registerHelper("with",(function(e,t){n.isFunction(e)&&(e=e.call(this));var i=t.fn;if(n.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=n.createFrame(t.data)).contextPath=n.appendContextPath(t.data.contextPath,t.ids[0])),i(e,{data:r,blockParams:n.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){r.default(e)};var r=n(i(19))},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,i,r){var o=e;return t.partials||(t.partials={},o=function(r,o){var a=i.partials;i.partials=n.extend({},a,t.partials);var s=e(r,o);return i.partials=a,s}),t.partials[r.args[0]]=r.fn,o}))},e.exports=t.default},function(e,t,i){"use strict";t.__esModule=!0;var n=i(5),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(r.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),"undefined"!=typeof console&&r.lookupLevel(r.level)<=e){var t=r.methodMap[e];console[t]||(t="log");for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];console[t].apply(console,n)}}};t.default=r,e.exports=t.default},function(e,t){"use strict";function i(e){this.string=e}t.__esModule=!0,i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},t.default=i,e.exports=t.default},function(e,t,i){"use strict";function n(e,t,i,n,r,a,s){function l(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),i(e,t,e.helpers,e.partials,r.data||n,a&&[r.blockParams].concat(a),o)}return(l=o(i,l,e,s,n,a)).program=t,l.depth=s?s.length:0,l.blockParams=r||0,l}function r(){return""}function o(e,t,i,n,r,o){if(e.decorator){var a={};t=e.decorator(t,a,i,n&&n[0],r,o,n),c.extend(t,a)}return t}var a=i(23).default,s=i(3).default,l=i(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,i=d.COMPILER_REVISION;if(t!==i){if(t<i){var n=d.REVISION_CHANGES[i],r=d.REVISION_CHANGES[t];throw new u.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+r+").")}throw new u.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){function i(t){function n(t){return""+e.main(r,t,r.helpers,r.partials,s,c,l)}var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a.data;i._setup(a),!a.partial&&e.useData&&(s=function(e,t){return t&&"root"in t||((t=t?d.createFrame(t):{}).root=e),t}(t,s));var l=void 0,c=e.useBlockParams?[]:void 0;return e.useDepths&&(l=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(n=o(e.main,n,r,a.depths||[],s,c))(t,a)}if(!t)throw new u.default("No environment passed to template");if(!e||!e.main)throw new u.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r={strict:function(e,t){if(!(t in e))throw new u.default('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n]&&null!=e[n][t])return e[n][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:c.escapeExpression,invokePartial:function(i,n,r){r.hash&&(n=c.extend({},n,r.hash),r.ids&&(r.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,n,r);var o=t.VM.invokePartial.call(this,i,n,r);if(null==o&&t.compile&&(r.partials[r.name]=t.compile(i,e.compilerOptions,t),o=r.partials[r.name](n,r)),null!=o){if(r.indent){for(var a=o.split("\n"),s=0,l=a.length;s<l&&(a[s]||s+1!==l);s++)a[s]=r.indent+a[s];o=a.join("\n")}return o}throw new u.default("The partial "+r.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var i=e[t];return i.decorator=e[t+"_d"],i},programs:[],program:function(e,t,i,r,o){var a=this.programs[e],s=this.fn(e);return t||o||r||i?a=n(this,e,s,t,i,r,o):a||(a=this.programs[e]=n(this,e,s)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var i=e||t;return e&&t&&e!==t&&(i=c.extend({},t,e)),i},nullContext:a({}),noop:t.VM.noop,compilerInfo:e.compiler};return i.isTop=!0,i._setup=function(i){i.partial?(r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators):(r.helpers=r.merge(i.helpers,t.helpers),e.usePartial&&(r.partials=r.merge(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=r.merge(i.decorators,t.decorators)))},i._child=function(t,i,o,a){if(e.useBlockParams&&!o)throw new u.default("must pass block params");if(e.useDepths&&!a)throw new u.default("must pass parent depths");return n(r,t,e[t],i,0,o,a)},i},t.wrapProgram=n,t.resolvePartial=function(e,t,i){return e?e.call||i.name||(i.name=e,e=i.partials[e]):e="@partial-block"===i.name?i.data["partial-block"]:i.partials[i.name],e},t.invokePartial=function(e,t,i){var n=i.data&&i.data["partial-block"];i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath);var o=void 0;if(i.fn&&i.fn!==r&&function(){i.data=d.createFrame(i.data);var e=i.fn;o=i.data["partial-block"]=function(t,i){return i.data=d.createFrame(i.data),i.data["partial-block"]=n,e(t,i)},e.partials&&(i.partials=c.extend({},i.partials,e.partials))}(),void 0===e&&o&&(e=o),void 0===e)throw new u.default("The partial "+i.name+" could not be found");if(e instanceof Function)return e(t,i)},t.noop=r;var c=s(i(5)),u=l(i(6)),d=i(4)},function(e,t,i){e.exports={default:i(24),__esModule:!0}},function(e,t,i){i(25),e.exports=i(30).Object.seal},function(e,t,i){var n=i(26);i(27)("seal",(function(e){return function(t){return e&&n(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){var n=i(28),r=i(30),o=i(33);e.exports=function(e,t){var i=(r.Object||{})[e]||Object[e],a={};a[e]=t(i),n(n.S+n.F*o((function(){i(1)})),"Object",a)}},function(e,t,i){var n=i(29),r=i(30),o=i(31),a="prototype",s=function(e,t,i){var l,c,u,d=e&s.F,p=e&s.G,h=e&s.S,f=e&s.P,g=e&s.B,m=e&s.W,v=p?r:r[t]||(r[t]={}),y=p?n:h?n[t]:(n[t]||{})[a];for(l in p&&(i=t),i)(c=!d&&y&&l in y)&&l in v||(u=c?y[l]:i[l],v[l]=p&&"function"!=typeof y[l]?i[l]:g&&c?o(u,n):m&&y[l]==u?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(u):f&&"function"==typeof u?o(Function.call,u):u,f&&((v[a]||(v[a]={}))[l]=u))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){var i=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n=i(32);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){(function(i){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==i?i:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var i={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!i.helpers.scopedId(e)&&!e.depth}}};t.default=i,e.exports=t.default},function(e,t,i){"use strict";var n=i(1).default,r=i(3).default;t.__esModule=!0,t.parse=function(e,t){return"Program"===e.type?e:(o.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},new a.default(t).accept(o.default.parse(e)))};var o=n(i(37)),a=n(i(40)),s=r(i(42)),l=i(5);t.parser=o.default;var c={};l.extend(c,s)},function(e,t,i){"use strict";var n=i(38).default;t.__esModule=!0;var r=function(){function e(){this.yy={}}var t=function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},i=[2,46],r=[1,20],o=[5,14,15,19,29,34,39,44,47,48,51,55,60],a=[1,35],s=[1,28],l=[1,29],c=[1,30],u=[1,31],d=[1,32],p=[1,34],h=[14,15,19,29,34,39,44,47,48,51,55,60],f=[14,15,19,29,34,44,47,48,51,55,60],g=[1,44],m=[14,15,19,29,34,47,48,51,55,60],v=[33,65,72,80,81,82,83,84,85],y=[23,33,54,65,68,72,75,80,81,82,83,84,85],b=[1,51],w=[23,33,54,65,68,72,75,80,81,82,83,84,85,87],_=[2,45],x=[54,65,72,80,81,82,83,84,85],$=[1,58],C=[1,59],k=[15,18],S=[1,67],E=[33,65,72,75,80,81,82,83,84,85],j=[23,65,72,80,81,82,83,84,85],D=[1,79],T=[65,68,72,80,81,82,83,84,85],I=[33,75],A=[23,33,54,68,72,75],O=[1,109],N=[1,121],P=[72,77],M={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,i,n,r,o,a){var s=o.length-1;switch(r){case 1:return o[s-1];case 2:this.$=n.prepareProgram(o[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=o[s];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(o[s]),strip:n.stripFlags(o[s],o[s]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[s],value:o[s],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(o[s-2],o[s-1],o[s],this._$);break;case 12:this.$={path:o[s-3],params:o[s-2],hash:o[s-1]};break;case 13:this.$=n.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!1,this._$);break;case 14:this.$=n.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!0,this._$);break;case 15:this.$={open:o[s-5],path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:n.stripFlags(o[s-5],o[s])};break;case 16:case 17:this.$={path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:n.stripFlags(o[s-5],o[s])};break;case 18:this.$={strip:n.stripFlags(o[s-1],o[s-1]),program:o[s]};break;case 19:var l=n.prepareBlock(o[s-2],o[s-1],o[s],o[s],!1,this._$),c=n.prepareProgram([l],o[s-1].loc);c.chained=!0,this.$={strip:o[s-2].strip,program:c,chain:!0};break;case 21:this.$={path:o[s-1],strip:n.stripFlags(o[s-2],o[s])};break;case 22:case 23:this.$=n.prepareMustache(o[s-3],o[s-2],o[s-1],o[s-4],n.stripFlags(o[s-4],o[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[s-3],params:o[s-2],hash:o[s-1],indent:"",strip:n.stripFlags(o[s-4],o[s]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(o[s-2],o[s-1],o[s],this._$);break;case 26:this.$={path:o[s-3],params:o[s-2],hash:o[s-1],strip:n.stripFlags(o[s-4],o[s])};break;case 29:this.$={type:"SubExpression",path:o[s-3],params:o[s-2],hash:o[s-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[s],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(o[s-2]),value:o[s],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(o[s-1]);break;case 35:this.$={type:"StringLiteral",value:o[s],original:o[s],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[s]),original:Number(o[s]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===o[s],original:"true"===o[s],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,o[s],this._$);break;case 43:this.$=n.preparePath(!1,o[s],this._$);break;case 44:o[s-2].push({part:n.id(o[s]),original:o[s],separator:o[s-1]}),this.$=o[s-2];break;case 45:this.$=[{part:n.id(o[s]),original:o[s]}];break;case 46:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:o[s-1].push(o[s]);break;case 48:case 98:case 100:this.$=[o[s]]}},table:[t([5,14,15,19,29,34,48,51,55,60],i,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],51:[1,14],55:[1,18],60:[1,24]}),{1:[2,1]},t(o,[2,47]),t(o,[2,3]),t(o,[2,4]),t(o,[2,5]),t(o,[2,6]),t(o,[2,7]),t(o,[2,8]),t(o,[2,9]),{20:25,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{20:36,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(h,i,{6:3,4:37}),t(f,i,{6:3,4:38}),{13:40,15:r,17:39},{20:42,56:41,64:43,65:g,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(m,i,{6:3,4:45}),t([5,14,15,18,19,29,34,39,44,47,48,51,55,60],[2,10]),{20:46,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{20:47,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{20:48,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{20:42,56:49,64:43,65:g,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(v,[2,78],{49:50}),t(y,[2,33]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(y,[2,39]),t(y,[2,43],{87:b}),{72:a,86:52},t(w,_),t(x,[2,82],{52:53}),{25:54,38:56,39:$,43:57,44:C,45:55,47:[2,54]},{28:60,43:61,44:C,47:[2,56]},{13:63,15:r,18:[1,62]},t(k,[2,48]),t(v,[2,86],{57:64}),t(v,[2,40]),t(v,[2,41]),{20:65,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{26:66,47:S},t(E,[2,58],{30:68}),t(E,[2,64],{35:69}),t(j,[2,50],{21:70}),t(v,[2,90],{61:71}),{20:75,33:[2,80],50:72,63:73,64:76,65:g,69:74,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{72:[1,80]},t(y,[2,42],{87:b}),{20:75,53:81,54:[2,84],63:82,64:76,65:g,69:83,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{26:84,47:S},{47:[2,55]},t(h,i,{6:3,4:85}),{47:[2,20]},{20:86,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(m,i,{6:3,4:87}),{26:88,47:S},{47:[2,57]},t(o,[2,11]),t(k,[2,49]),{20:75,33:[2,88],58:89,63:90,64:76,65:g,69:91,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(T,[2,94],{66:92}),t(o,[2,25]),{20:93,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(I,[2,60],{78:26,79:27,86:33,20:75,64:76,70:77,71:78,31:94,63:95,69:96,65:g,72:D,80:s,81:l,82:c,83:u,84:d,85:p}),t(I,[2,66],{78:26,79:27,86:33,20:75,64:76,70:77,71:78,36:97,63:98,69:99,65:g,72:D,80:s,81:l,82:c,83:u,84:d,85:p}),{20:75,22:100,23:[2,52],63:101,64:76,65:g,69:102,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:g,69:105,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{33:[1,106]},t(v,[2,79]),{33:[2,81]},t(y,[2,27]),t(y,[2,28]),t([23,33,54,68,75],[2,30],{71:107,72:[1,108]}),t(A,[2,98]),t(w,_,{73:O}),t(w,[2,44]),{54:[1,110]},t(x,[2,83]),{54:[2,85]},t(o,[2,13]),{38:56,39:$,43:57,44:C,45:112,46:111,47:[2,76]},t(E,[2,70],{40:113}),{47:[2,18]},t(o,[2,14]),{33:[1,114]},t(v,[2,87]),{33:[2,89]},{20:75,63:116,64:76,65:g,67:115,68:[2,96],69:117,70:77,71:78,72:D,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:N},t(E,[2,59]),t(I,[2,61]),{33:[2,68],37:122,74:123,75:N},t(E,[2,65]),t(I,[2,67]),{23:[1,124]},t(j,[2,51]),{23:[2,53]},{33:[1,125]},t(v,[2,91]),{33:[2,93]},t(o,[2,22]),t(A,[2,99]),{73:O},{20:75,63:126,64:76,65:g,72:a,78:26,79:27,80:s,81:l,82:c,83:u,84:d,85:p,86:33},t(o,[2,23]),{47:[2,19]},{47:[2,77]},t(I,[2,72],{78:26,79:27,86:33,20:75,64:76,70:77,71:78,41:127,63:128,69:129,65:g,72:D,80:s,81:l,82:c,83:u,84:d,85:p}),t(o,[2,24]),{68:[1,130]},t(T,[2,95]),{68:[2,97]},t(o,[2,21]),{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},t(m,[2,26]),t(A,[2,31]),{33:[2,74],42:135,74:136,75:N},t(E,[2,71]),t(I,[2,73]),t(y,[2,29]),t(h,[2,15]),{72:[1,138],77:[1,137]},t(P,[2,100]),t(f,[2,16]),{33:[1,139]},{33:[2,75]},{33:[2,32]},t(P,[2,101]),t(h,[2,17])],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(e,t){if(!t.recoverable){var i=function(e,t){this.message=e,this.hash=t};throw i.prototype=new Error,new i(e,t)}this.trace(e)},parse:function(e){var t=this,i=[0],r=[null],o=[],a=this.table,s="",l=0,c=0,u=0,d=o.slice.call(arguments,1),p=n(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);p.setInput(e,h.yy),h.yy.lexer=p,h.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var g=p.yylloc;o.push(g);var m=p.options&&p.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,y,b,w,_,x,$,C,k,S=function(){var e;return"number"!=typeof(e=p.lex()||1)&&(e=t.symbols_[e]||e),e},E={};;){if(b=i[i.length-1],this.defaultActions[b]?w=this.defaultActions[b]:(null!=v||(v=S()),w=a[b]&&a[b][v]),void 0===w||!w.length||!w[0]){var j;for(x in k=[],a[b])this.terminals_[x]&&x>2&&k.push("'"+this.terminals_[x]+"'");j=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(j,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:g,expected:k})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(w[0]){case 1:i.push(v),r.push(p.yytext),o.push(p.yylloc),i.push(w[1]),v=null,y?(v=y,y=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc,u>0&&u--);break;case 2:if($=this.productions_[w[1]][1],E.$=r[r.length-$],E._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},m&&(E._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(E,[s,c,l,h.yy,w[1],r,o].concat(d))))return _;$&&(i=i.slice(0,-1*$*2),r=r.slice(0,-1*$),o=o.slice(0,-1*$)),i.push(this.productions_[w[1]][0]),r.push(E.$),o.push(E._$),C=a[i[i.length-2]][i[i.length-1]],i.push(C);break;case 3:return!0}}return!0}},F={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((i=this._input.match(this.rules[r[o]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,i,n){function r(e,i){return t.yytext=t.yytext.substr(e,t.yyleng-i)}switch(i){case 0:if("\\\\"===t.yytext.slice(-2)?(r(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(r(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(t.yytext=t.yytext.substr(5,t.yyleng-9),18);case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=r(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=r(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return M.lexer=F,e.prototype=M,M.Parser=e,new e}();t.default=r,e.exports=t.default},function(e,t,i){e.exports={default:i(39),__esModule:!0}},function(e,t,i){var n=i(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t,i){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function r(e,t,i){void 0===t&&(t=e.length);var n=e[t-1],r=e[t-2];return n?"ContentStatement"===n.type?(r||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:i}function o(e,t,i){void 0===t&&(t=-1);var n=e[t+1],r=e[t+2];return n?"ContentStatement"===n.type?(r||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:i}function a(e,t,i){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(i||!n.rightStripped)){var r=n.value;n.value=n.value.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==r}}function s(e,t,i){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(i||!n.leftStripped)){var r=n.value;return n.value=n.value.replace(i?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==r,n.leftStripped}}var l=i(1).default;t.__esModule=!0;var c=l(i(41));n.prototype=new c.default,n.prototype.Program=function(e){var t=!this.options.ignoreStandalone,i=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,l=0,c=n.length;l<c;l++){var u=n[l],d=this.accept(u);if(d){var p=r(n,l,i),h=o(n,l,i),f=d.openStandalone&&p,g=d.closeStandalone&&h,m=d.inlineStandalone&&p&&h;d.close&&a(n,l,!0),d.open&&s(n,l,!0),t&&m&&(a(n,l),s(n,l)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(n[l-1].original)[1])),t&&f&&(a((u.program||u.inverse).body),s(n,l)),t&&g&&(a(n,l),s((u.inverse||u.program).body))}}return e},n.prototype.BlockStatement=n.prototype.DecoratorBlock=n.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,i=e.program&&e.inverse,n=i,l=i;if(i&&i.chained)for(n=i.body[0].program;l.chained;)l=l.body[l.body.length-1].program;var c={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:r((n||t).body)};if(e.openStrip.close&&a(t.body,null,!0),i){var u=e.inverseStrip;u.open&&s(t.body,null,!0),u.close&&a(n.body,null,!0),e.closeStrip.open&&s(l.body,null,!0),!this.options.ignoreStandalone&&r(t.body)&&o(n.body)&&(s(t.body),a(n.body))}else e.closeStrip.open&&s(t.body,null,!0);return c},n.prototype.Decorator=n.prototype.MustacheStatement=function(e){return e.strip},n.prototype.PartialStatement=n.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=n,e.exports=t.default},function(e,t,i){"use strict";function n(){this.parents=[]}function r(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){r.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function a(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var s=i(1).default;t.__esModule=!0;var l=s(i(6));n.prototype={constructor:n,mutating:!1,acceptKey:function(e,t){var i=this.accept(e[t]);if(this.mutating){if(i&&!n.prototype[i.type])throw new l.default('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+e.type);e[t]=i}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new l.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,i=e.length;t<i;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,i--)},accept:function(e){if(e){if(!this[e.type])throw new l.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:r,Decorator:r,BlockStatement:o,DecoratorBlock:o,PartialStatement:a,PartialBlockStatement:function(e){a.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:r,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=n,e.exports=t.default},function(e,t,i){"use strict";function n(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var i={loc:e.path.loc};throw new o.default(e.path.original+" doesn't match "+t,i)}}var r=i(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substr(1,e.length-2):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,i){i=this.locInfo(i);for(var n=e?"@":"",r=[],a=0,s=0,l=t.length;s<l;s++){var c=t[s].part,u=t[s].original!==c;if(n+=(t[s].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)r.push(c);else{if(r.length>0)throw new o.default("Invalid path: "+n,{loc:i});".."===c&&a++}}return{type:"PathExpression",data:e,depth:a,parts:r,original:n,loc:i}},t.prepareMustache=function(e,t,i,n,r,o){var a=n.charAt(3)||n.charAt(2),s="{"!==a&&"&"!==a;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:i,escaped:s,strip:r,loc:this.locInfo(o)}},t.prepareRawBlock=function(e,t,i,r){n(e,i);var o={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,i,r,a,s){r&&r.path&&n(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(i){if(l)throw new o.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=r.strip),u=i.strip,c=i.program}return a&&(a=c,c=t,t=a),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(s)}},t.prepareProgram=function(e,t){if(!t&&e.length){var i=e[0].loc,n=e[e.length-1].loc;i&&n&&(t={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,i,r){return n(e,i),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:i&&i.strip,loc:this.locInfo(r)}};var o=r(i(6))},function(e,t,i){"use strict";function n(){}function r(e,t){if(e===t)return!0;if(l.isArray(e)&&l.isArray(t)&&e.length===t.length){for(var i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1;return!0}}function o(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var a=i(1).default;t.__esModule=!0,t.Compiler=n,t.precompile=function(e,t,i){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=i.parse(e,t),r=(new i.Compiler).compile(n,t);return(new i.JavaScriptCompiler).compile(r,t)},t.compile=function(e,t,i){function n(){var n=i.parse(e,t),r=(new i.Compiler).compile(n,t),o=(new i.JavaScriptCompiler).compile(r,t,void 0,!0);return i.template(o)}function r(e,t){return o||(o=n()),o.call(this,e,t)}if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;return r._setup=function(e){return o||(o=n()),o._setup(e)},r._child=function(e,t,i,r){return o||(o=n()),o._child(e,t,i,r)},r};var s=a(i(6)),l=i(5),c=a(i(35)),u=[].slice;n.prototype={compiler:n,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var i=0;i<t;i++){var n=this.opcodes[i],o=e.opcodes[i];if(n.opcode!==o.opcode||!r(n.args,o.args))return!1}for(t=this.children.length,i=0;i<t;i++)if(!this.children[i].equals(e.children[i]))return!1;return!0},guid:0,compile:function(e,t){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[];var i=t.knownHelpers;if(t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},i)for(var n in i)n in i&&(t.knownHelpers[n]=i[n]);return this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),i=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[i]=t,this.useDepths=this.useDepths||t.useDepths,i},accept:function(e){if(!this[e.type])throw new s.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,i=t.length,n=0;n<i;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===i,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){o(e);var t=e.program,i=e.inverse;t=t&&this.compileProgram(t),i=i&&this.compileProgram(i);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,i):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),i=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",i.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var i=e.params;if(i.length>1)throw new s.default("Unsupported number of partial arguments: "+i.length,e);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,r="SubExpression"===e.name.type;r&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var o=e.indent||"";this.options.preventIndent&&o&&(this.opcode("appendContent",o),o=""),this.opcode("invokePartial",r,n,o),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){o(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,i){var n=e.path,r=n.parts[0],o=null!=t||null!=i;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",r,o)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,i){var n=this.setupFullMustacheParams(e,t,i),r=e.path,o=r.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",n.length,o);else{if(this.options.knownHelpersOnly)throw new s.default("You specified knownHelpersOnly, but used the unknown helper "+o,e);r.strict=!0,r.falsy=!0,this.accept(r),this.opcode("invokeHelper",n.length,r.original,c.default.helpers.simpleId(r))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],i=c.default.helpers.scopedId(e),n=!e.depth&&!i&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,i):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,i=0,n=t.length;for(this.opcode("pushHash");i<n;i++)this.pushParam(t[i].value);for(;i--;)this.opcode("assignToHash",t[i].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:u.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=c.default.helpers.simpleId(e.path),i=t&&!!this.blockParamIndex(e.path.parts[0]),n=!i&&c.default.helpers.helperExpression(e),r=!i&&(n||t);if(r&&!n){var o=e.path.parts[0],a=this.options;a.knownHelpers[o]?n=!0:a.knownHelpersOnly&&(r=!1)}return n?"helper":r?"ambiguous":"simple"},pushParams:function(e){for(var t=0,i=e.length;t<i;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var i=void 0;if(!e.parts||c.default.helpers.scopedId(e)||e.depth||(i=this.blockParamIndex(e.parts[0])),i){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",i,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,i,n){var r=e.params;return this.pushParams(r),this.opcode("pushProgram",t),this.opcode("pushProgram",i),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),r},blockParamIndex:function(e){for(var t=0,i=this.options.blockParams.length;t<i;t++){var n=this.options.blockParams[t],r=n&&l.indexOf(n,e);if(n&&r>=0)return[t,r]}}}},function(e,t,i){"use strict";function n(e){this.value=e}function r(){}var o=i(1).default;t.__esModule=!0;var a=i(4),s=o(i(6)),l=i(5),c=o(i(45));r.prototype={nameLookup:function(e,t){return r.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=a.COMPILER_REVISION;return[e,a.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,i){return l.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,i,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var r=e.opcodes,o=void 0,a=void 0,l=void 0,c=void 0;for(l=0,c=r.length;l<c;l++)o=r[l],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,h=p.programs,f=p.decorators;for(l=0,c=h.length;l<c;l++)h[l]&&(d[l]=h[l],f[l]&&(d[l+"_d"]=f[l],d.useDecorators=!0));return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),t.srcName?(d=d.toStringWithSourceMap({file:t.destName})).map=d.map&&d.map.toString():d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new c.default(this.options.srcName),this.decorators=new c.default(this.options.srcName)},createFunctionContext:function(e){var t="",i=this.stackVars.concat(this.registers.list);i.length>0&&(t+=", "+i.join(", "));var n=0;for(var r in this.aliases){var o=this.aliases[r];this.aliases.hasOwnProperty(r)&&o.children&&o.referenceCount>1&&(t+=", alias"+ ++n+"="+r,o.children[0]="alias"+n)}var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var s=this.mergeSource(t);return e?(a.push(s),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,i=!this.forceBuffer,n=void 0,r=void 0,o=void 0,a=void 0;return this.source.each((function(e){e.appendToBuffer?(o?e.prepend(" + "):o=e,a=e):(o&&(r?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),r=!0,t||(i=!1))})),i?o?(o.prepend("return "),a.add(";")):r||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("helpers.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(t,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var i=this.topStack();t.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,i,n){var r=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[r++])),this.resolvePath("context",e,r,t,i)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,i)},resolvePath:function(e,t,i,n,r){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,i,n){var r=t.popStack(),o=0,a=i.length;for(e&&a--;o<a;o++)r=t.nameLookup(r,i[o],n);return e?[t.aliasable("container.strict"),"(",r,", ",t.quotedString(i[o]),")"]:r}(this.options.strict&&r,this,t,e));else for(var a=t.length;i<a;i++)this.replaceStack((function(r){var a=o.nameLookup(r,t[i],e);return n?[" && ",a]:[" != null ? ",a," : ",r]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var i=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(i,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,i){var n=this.popStack(),r=this.setupHelper(e,t),o=i?[r.name," || "]:"",a=["("].concat(o,n);this.options.strict||a.push(" || ",this.aliasable("helpers.helperMissing")),a.push(")"),this.push(this.source.functionCall(a,"call",r.callParams))},invokeKnownHelper:function(e,t){var i=this.setupHelper(e,t);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),r=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",i,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",r,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,i){var n=[],r=this.setupParams(t,1,n);e&&(t=this.popStack(),delete r.name),i&&(r.indent=JSON.stringify(i)),r.helpers="helpers",r.partials="partials",r.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(r.depths="depths"),r=this.objectLiteral(r),n.push(r),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),i=void 0,n=void 0,r=void 0;this.trackIds&&(r=this.popStack()),this.stringParams&&(n=this.popStack(),i=this.popStack());var o=this.hash;i&&(o.contexts[e]=i),n&&(o.types[e]=n),r&&(o.ids[e]=r),o.values[e]=t},pushId:function(e,t,i){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(i?" + "+JSON.stringify("."+i):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:r,compileChildren:function(e,t){for(var i=e.children,n=void 0,r=void 0,o=0,a=i.length;o<a;o++){n=i[o],r=new this.compiler;var s=this.matchExistingProgram(n);if(null==s){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=r.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=r.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=s.index,n.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(e){for(var t=0,i=this.context.environments.length;t<i;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],i=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths"),"container.program("+i.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof n||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new n(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],i=void 0,r=void 0,o=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof n)t=["(",i=[a.value]],o=!0;else{r=!0;var l=this.incrStack();t=["((",this.push(l)," = ",a,")"],i=this.topStack()}var c=e.call(this,i);o||this.popStack(),r&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,i=e.length;t<i;t++){var r=e[t];if(r instanceof n)this.compileStack.push(r);else{var o=this.incrStack();this.pushSource([o," = ",r,";"]),this.compileStack.push(o)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),i=(t?this.inlineStack:this.compileStack).pop();if(!e&&i instanceof n)return i.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return i},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof n?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,i){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,i),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,i){var n={},r=[],o=[],a=[],s=!i,l=void 0;s&&(i=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(n.fn=u||"container.noop",n.inverse=c||"container.noop");for(var d=t;d--;)l=this.popStack(),i[d]=l,this.trackIds&&(a[d]=this.popStack()),this.stringParams&&(o[d]=this.popStack(),r[d]=this.popStack());return s&&(n.args=this.source.generateArray(i)),this.trackIds&&(n.ids=this.source.generateArray(a)),this.stringParams&&(n.types=this.source.generateArray(o),n.contexts=this.source.generateArray(r)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,i,n){var r=this.setupParams(e,t,i);return r=this.objectLiteral(r),n?(this.useRegister("options"),i.push("options"),["options=",r]):i?(i.push(r),""):r}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=r.RESERVED_WORDS={},i=0,n=e.length;i<n;i++)t[e[i]]=!0}(),r.isValidJavaScriptVariableName=function(e){return!r.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=r,e.exports=t.default},function(e,t,i){"use strict";function n(e,t,i){if(o.isArray(e)){for(var n=[],r=0,a=e.length;r<a;r++)n.push(t.wrap(e[r],i));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function r(e){this.srcFile=e,this.source=[]}t.__esModule=!0;var o=i(5),a=void 0;a||((a=function(e,t,i,n){this.src="",n&&this.add(n)}).prototype={add:function(e){o.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){o.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),r.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,i=this.source.length;t<i;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new a(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof a?e:(e=n(e,this,t),new a(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,i){return i=this.generateList(i),this.wrap([e,t?"."+t+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i)){var r=n(e[i],this);"undefined"!==r&&t.push([this.quotedString(i),":",r])}var o=this.generateList(t);return o.prepend("{"),o.add("}"),o},generateList:function(e){for(var t=this.empty(),i=0,r=e.length;i<r;i++)i&&t.add(","),t.add(n(e[i],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=r,e.exports=t.default}])},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,i,n;t&&t.requirejs||(t?i=t:t={},function(t){var r,o,a,s,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var i,n,r,o,a,s,l,c,d,p,h,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(a=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(i=e.split("/")).length;d>0;d-=1){if(n=i.slice(0,d).join("/"),g)for(p=g.length;p>0;p-=1)if((r=m[g.slice(0,p).join("/")])&&(r=r[n])){o=r,s=d;break}if(o)break;!l&&v&&v[n]&&(l=v[n],c=d)}!o&&l&&(o=l,s=c),o&&(i.splice(0,s,o),e=i.join("/"))}return e}function v(e,i){return function(){var n=h.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(t,n.concat([e,i]))}}function y(e){return function(t){l[e]=t}}function b(e){if(g(c,e)){var i=c[e];delete c[e],d[e]=!0,r.apply(t,i)}if(!g(l,e)&&!g(d,e))throw new Error("No "+e);return l[e]}function w(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function _(e){return e?w(e):[]}function x(e){return function(){return u&&u.config&&u.config[e]||{}}}a=function(e,t){var i,n=w(e),r=n[0],o=t[1];return e=n[1],r&&(i=b(r=m(r,o))),r?e=i&&i.normalize?i.normalize(e,function(e){return function(t){return m(t,e)}}(o)):m(e,o):(r=(n=w(e=m(e,o)))[0],e=n[1],r&&(i=b(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:i}},s={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:x(e)}}},r=function(e,i,n,r){var o,u,p,h,f,m,w,x=[],$=typeof n;if(m=_(r=r||e),"undefined"===$||"function"===$){for(i=!i.length&&n.length?["require","exports","module"]:i,f=0;f<i.length;f+=1)if("require"===(u=(h=a(i[f],m)).f))x[f]=s.require(e);else if("exports"===u)x[f]=s.exports(e),w=!0;else if("module"===u)o=x[f]=s.module(e);else if(g(l,u)||g(c,u)||g(d,u))x[f]=b(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,v(r,!0),y(u),{}),x[f]=l[u]}p=n?n.apply(l[e],x):void 0,e&&(o&&o.exports!==t&&o.exports!==l[e]?l[e]=o.exports:p===t&&w||(l[e]=p))}else e&&(l[e]=n)},e=i=o=function(e,i,n,l,c){if("string"==typeof e)return s[e]?s[e](i):b(a(e,_(i)).f);if(!e.splice){if((u=e).deps&&o(u.deps,u.callback),!i)return;i.splice?(e=i,i=n,n=null):e=t}return i=i||function(){},"function"==typeof n&&(n=l,l=c),l?r(t,e,i,n):setTimeout((function(){r(t,e,i,n)}),4),o},o.config=function(e){return o(e)},e._defined=l,(n=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,i])}).amd={Eui:!0}}(),t.requirejs=e,t.require=i,t.define=n)}(),t.define("almond",(function(){})),t.define("eui",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of Eui or a Eui-compatible library was not found. Make sure that you are including Eui before Select2 on your web page."),t})),t.define("select2/utils",["eui"],(function(e){var t={};function i(e){var t=e.prototype,i=[];for(var n in t)"function"==typeof t[n]&&"constructor"!==n&&i.push(n);return i}t.Extend=function(e,t){var i={}.hasOwnProperty;function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},t.Decorate=function(e,t){var n=i(t),r=i(e);function o(){var i=Array.prototype.unshift,n=t.prototype.constructor.length,r=e.prototype.constructor;n>0&&(i.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<r.length;a++){var s=r[a];o.prototype[s]=e.prototype[s]}for(var l=function(e){var i=function(){};e in o.prototype&&(i=o.prototype[e]);var n=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}},c=0;c<n.length;c++){var u=n[c];o.prototype[u]=l(u)}return o};var n=function(){this.listeners={}};return n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var i=0,n=e.length;i<n;i++)e[i].apply(this,t)},t.Observable=n,t.generateChars=function(e){for(var t="",i=0;i<e;i++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var i=t.split("-"),n=e;if(1!==i.length){for(var r=0;r<i.length;r++){var o=i[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in n||(n[o]={}),r==i.length-1&&(n[o]=e[t]),n=n[o]}delete e[t]}}return e},t.hasScroll=function(t,i){var n=e(i),r=i.style.overflowX,o=i.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,i){if("1.7"===e.fn.eui.substr(0,3)){var n=e();e.map(i,(function(e){n=n.add(e)})),i=n}t.append(i)},t})),t.define("select2/results",["eui","./utils"],(function(e,t){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);n.append(i(r(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var n=e.results[i],r=this.option(n);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current((function(i){var n=e.map(i,(function(e){return e.id.toString()}));t.$results.find(".select2-results__option[aria-selected]").each((function(){var t=e(this),i=e.data(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(r,n)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")}))}))},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},i=this.option(t);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var r in t.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==t.id&&delete n["aria-selected"],null!=t._resultId&&(i.id=t._resultId),t.title&&(i.title=t.title),t.children&&(n.role="group",n["aria-label"]=t.text,delete n["aria-selected"]),n){var o=n[r];i.setAttribute(r,o)}if(t.children){var a=e(i),s=document.createElement("strong");s.className="select2-results__group",e(s),this.template(t,s);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),a.append(s),a.append(p)}else this.template(t,i);return e.data(i,"data",t),i},i.prototype.bind=function(t,i){var n=this,r=t.id+"-results";this.$results.attr("id",r),t.on("results:all",(function(e){n.clear(),n.append(e.data),t.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),t.on("results:append",(function(e){n.append(e.data),t.isOpen()&&n.setClasses()})),t.on("query",(function(e){n.hideMessages(),n.showLoading(e)})),t.on("select",(function(){t.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),t.on("unselect",(function(){t.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),t.on("open",(function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()})),t.on("close",(function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")})),t.on("results:toggle",(function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),t.on("results:select",(function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:t})}})),t.on("results:previous",(function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e);if(0!==i){var r=i-1;0===e.length&&(r=0);var o=t.eq(r);o.trigger("mouseenter");var a=n.$results.offset().top,s=o.offset().top,l=n.$results.scrollTop()+(s-a);0===r?n.$results.scrollTop(0):s-a<0&&n.$results.scrollTop(l)}})),t.on("results:next",(function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e)+1;if(!(i>=t.length)){var r=t.eq(i);r.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),s=n.$results.scrollTop()+a-o;0===i?n.$results.scrollTop(0):a>o&&n.$results.scrollTop(s)}})),t.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),t.on("results:message",(function(e){n.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(t){var i=e(this),r=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:t,data:r}):n.trigger("close",{})):void n.trigger("select",{originalEvent:t,data:r})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(t){var i=e(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:e(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),i=this.$results.offset().top,n=e.offset().top,r=this.$results.scrollTop()+(n-i),o=n-i;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=n(t,i);null==o?i.style.display="none":"string"==typeof o?i.innerHTML=r(o):e(i).append(o)},i})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["eui","../utils","../keys"],(function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},n.prototype.bind=function(e,t){var n=this,r=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",(function(e){n.trigger("focus",e)})),this.$selection.on("blur",(function(e){n._handleBlur(e)})),this.$selection.on("keydown",(function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){n.update(e.data)})),e.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)})),e.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)})),e.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex)})),e.on("disable",(function(){n.$selection.attr("tabindex","-1")}))},n.prototype._handleBlur=function(t){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)}),1)},n.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,(function(t){var i=e(t.target).closest(".select2");e(".select2.select2-container--open").each((function(){var t=e(this);this!=i[0]&&t.data("element").select2("close")}))}))},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){t.find(".selection").append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n})),t.define("select2/selection/single",["eui","./base","../utils","../keys"],(function(e,t,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var i=this;r.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",(function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||i.$selection.focus()})),e.on("selection:update",(function(e){i.update(e.data)}))},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(t,i);i.empty().append(n),i.prop("title",t.title||t.text)}else this.clear()},r})),t.define("select2/selection/multiple",["eui","./base","../utils"],(function(e,t,i){function n(e,t){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(t,i){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.options.get("disabled")){var i=e(this).parent().data("data");r.trigger("unselect",{originalEvent:t,data:i})}}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=this.selectionContainer(),a=this.display(r,o);o.append(a),o.prop("title",r.title||r.text),o.data("data",r),t.push(o)}var s=this.$selection.find(".select2-selection__rendered");i.appendMany(s,t)}},n})),t.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||i)return e.call(this,t);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t})),t.define("select2/selection/allowClear",["eui","../keys"],(function(e,t){function i(){}return i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){n._handleClear(e)})),t.on("keypress",(function(e){n._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();for(var n=i.data("data"),r=0;r<n.length;r++){var o={data:n[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(e,i,n){n.isOpen()||i.which!=t.DELETE&&i.which!=t.BACKSPACE||this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=e('<span class="select2-selection__clear">×</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i})),t.define("select2/selection/search",["eui","../utils","../keys"],(function(e,t,i){function n(e,t,i){e.call(this,t,i)}return n.prototype.render=function(t){var i=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=t.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",(function(){r.$search.trigger("focus")})),t.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),t.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),t.on("disable",(function(){r.$search.prop("disabled",!0)})),t.on("focus",(function(e){r.$search.trigger("focus")})),t.on("results:focus",(function(e){r.$search.attr("aria-activedescendant",e.id)})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===i.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var n=t.data("data");r.searchRemoveChoice(n),e.preventDefault()}}}));var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){return a?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(a&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&r.handleSearch(e)}}))},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.prototype.resizeSearch=function(){var e;this.$search.css("width","25px"),e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},n})),t.define("select2/selection/eventRelay",["eui"],(function(e){function t(){}return t.prototype.bind=function(t,i,n){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];t.call(this,i,n),i.on("*",(function(t,i){if(-1!==e.inArray(t,o)){i=i||{};var n=e.Event("select2:"+t,{params:i});r.$element.trigger(n),-1!==e.inArray(t,a)&&(i.prevented=n.isDefaultPrevented())}}))},t})),t.define("select2/translation",["eui","require"],(function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var n=t(e);i._cache[e]=n}return new i(i._cache[e])},i})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"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",Ʋ:"V",Ꝟ:"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",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var n=t.id+"-result-";return(n+=e.generateChars(4))+(null!=i.id?"-"+i.id.toString():"-"+e.generateChars(4))},t})),t.define("select2/data/select",["./base","../utils","eui"],(function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each((function(){var e=i(this),r=n.item(e);t.push(r)})),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,i(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var r=[];(e=[e]).push.apply(e,n);for(var o=0;o<e.length;o++){var a=e[o].id;-1===i.inArray(a,r)&&r.push(a)}t.$element.val(r),t.$element.trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,i(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current((function(n){for(var r=[],o=0;o<n.length;o++){var a=n[o].id;a!==e.id&&-1===i.inArray(a,r)&&r.push(a)}t.$element.val(r),t.$element.trigger("change")}))},n.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",(function(e){i.select(e.data)})),e.on("unselect",(function(e){i.unselect(e.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){i.removeData(this,"data")}))},n.prototype.query=function(e,t){var n=[],r=this;this.$element.children().each((function(){var t=i(this);if(t.is("option")||t.is("optgroup")){var o=r.item(t),a=r.matches(e,o);null!==a&&n.push(a)}})),t({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,null!=e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=i(t),r=this._normalizeItem(e);return r.element=t,i.data(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=i.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],o=0;o<n.length;o++){var a=i(n[o]),s=this.item(a);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],i.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){return i.isPlainObject(e)||(e={id:e,text:e}),null!=(e=i.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n})),t.define("select2/data/array",["./select","../utils","eui"],(function(e,t,i){function n(e,t){var i=t.get("data")||[];null!=t.get("loadFilter")&&(this.loadFilter=t.get("loadFilter")),n.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(i))}return t.Extend(n,e),n.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,i){return i.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){var n=this;e=n.loadFilter(e);var r=this.$element.find("option"),o=r.map((function(){return n.item(i(this)).id})).get(),a=[];function s(e){return function(){return i(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(i.inArray(c.id,o)>=0){var u=r.filter(s(c)),d=this.item(u),p=i.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}a.push(f)}}return a},n.prototype.loadFilter=function(e){return e},n.prototype.loadData=function(e){this.addOptions(this.convertToOptions(e))},n})),t.define("select2/data/ajax",["./array","../utils","eui"],(function(e,t,i){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,n){var r=i.ajax(e);return r.then(t),r.fail(n),r}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){var n=this,r=n.options.get("ajax");if(r&&(r.cache||"true"===r.cache)&&n.cacheData)t(n.cacheData);else{null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(a,this.ajaxOptions.delay)):a()}function a(){var r=o.transport(o,(function(r){var o=n.processResults(r,e);n.options.get("debug")&&window.console&&console.error&&(o&&o.results&&i.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),o.results=n.loadFilter(o.results),t(o)}),(function(){r.status&&"0"===r.status||n.trigger("results:message",{message:"errorLoading"})}));n._request=r}},n})),t.define("select2/data/tags",["eui"],(function(e){function t(t,i,n){var r=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var a=n.get("insertTag");if(void 0!==a&&(this.insertTag=a),t.call(this,i,n),e.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,i){var n=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(r,o){for(var a=r.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!e({results:l.children},!0);if(l.text===t.term||c)return!o&&(r.data=a,void i(r))}if(o)return!0;var u=n.createTag(t);if(null!=u){var d=n.option(u);d.attr("data-select2-tag",!0),n.addOptions([d]),n.insertTag(a,u)}r.results=a,i(r)})):e.call(this,t,i)},t.prototype.createTag=function(t,i){var n=e.trim(i.term);return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){this._lastTag,this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["eui"],(function(e){function t(e,t,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,n){var r=this;i.term=i.term||"";var o=this.tokenizer(i,this.options,(function(t){var i=r._normalizeItem(t);if(!r.$element.find("option").filter((function(){return e(this).val()===i.id})).length){var n=r.option(i);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(i)}));o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),i.term=o.term),t.call(this,i,n)},t.prototype.tokenizer=function(t,i,n,r){for(var o=n.get("tokenSeparators")||[],a=i.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];if(-1!==e.inArray(c,o)){var u=a.substr(0,s),d=l(e.extend({},i,{term:u}));null!=d?(r(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){var n=this;this.current((function(r){var o=null!=r?r.length:0;return n.maximumSelectionLength>0&&o>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void e.call(n,t,i)}))},e})),t.define("select2/dropdown",["eui","./utils"],(function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),t.define("select2/dropdown/search",["eui","../utils"],(function(e,t){function i(){}return i.prototype.render=function(t){var i=t.call(this),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),i.on("open",(function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout((function(){r.$search.focus()}),0)})),i.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.val("")})),i.on("focus",(function(){i.isOpen()&&r.$search.focus()})),i.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}))},i.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.showSearch=function(e,t){return!0},i})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var r=t[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},e})),t.define("select2/dropdown/infiniteScroll",["eui"],(function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),i.on("query",(function(e){r.lastParams=e,r.loading=!0})),i.on("query:append",(function(e){r.lastParams=e,r.loading=!0})),this.$results.on("scroll",(function(){var t=e.contains(document.documentElement,r.$loadingMore[0]);!r.loading&&t&&r.$results.offset().top+r.$results.outerHeight(!1)+50>=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1)&&r.loadMore()}))},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["eui","../utils"],(function(e,t){function i(t,i,n){this.$dropdownParent=n.get("dropdownParent")||e(document.body),t.call(this,i,n)}return i.prototype.bind=function(e,t,i){var n=this,r=!1;e.call(this,t,i),t.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(t),r||(r=!0,t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()}))),Eui.uiExtensions.Select2.openModalLock&&setTimeout((function(){n.$dropdownParent.find(".modal.in").css({"overflow-y":"hidden"})}),0)})),t.on("close",(function(){Eui.uiExtensions.Select2.openModalLock&&n.$dropdownParent.find(".modal.in").css({"overflow-y":"auto"}),n._hideDropdown(),n._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:Eui.uiExtensions.Select2.dropPosition||"fixed",top:-999999,zIndex:999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var r=this,o="scroll.select2."+n.id,a="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(o,(function(t){var i=e(this).data("select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(o+" "+a+" "+s,(function(e){r._positionDropdown(),r._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+a)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-s,d=c>o.bottom+s,p={left:o.left,top:a.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f=h.offset();p.top-=f.top,p.left-=f.left,i||n||(r="below"),d||!u||i?u&&d&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(p.top=a.top-f.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(p)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,n)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var i=0,n=0;n<t.length;n++){var r=t[n];r.children?i+=e(r.children):i++}return i}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e})),t.define("select2/dropdown/selectOnClose",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("close",(function(e){n._handleSelectOnClose(e)}))},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var i=t.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var r=n.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",(function(e){n._selectTriggered(e)})),t.on("unselect",(function(e){n._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),t.define("select2/defaults",["eui","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,i,n,r,o,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w,_,x,$,C,k,S,E,j){function D(){this.reset()}return D.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var j=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,j)}if(null!=d.initSelection){var D=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,$)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var T=c.Decorate(w,_);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,k)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var I=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,I)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=r:d.selectionAdapter=n,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,o)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var A=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,A)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var O=d.language.split("-")[0];d.language=[d.language,O]}else d.language=[d.language];if(e.isArray(d.language)){var N=new u;d.language.push("en");for(var P=d.language,M=0;M<P.length;M++){var F=P[M],R={};try{R=u.loadPath(F)}catch(e){try{F=this.defaults.amdLanguageBase+F,R=u.loadPath(F)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+F+'" could not be automatically loaded. A fallback will be used instead.');continue}}N.extend(R)}d.translations=N}else{var L=u.loadPath(this.defaults.amdLanguageBase+"en"),q=new u(d.language);q.extend(L),d.translations=q}return d},D.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:j,matcher:function i(n,r){if(""===e.trim(n.term))return r;if(r.children&&r.children.length>0){for(var o=e.extend(!0,{},r),a=r.children.length-1;a>=0;a--)null==i(n,r.children[a])&&o.children.splice(a,1);return o.children.length>0?o:i(n,o)}var s=t(r.text).toUpperCase(),l=t(n.term).toUpperCase();return s.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},D.prototype.set=function(t,i){var n={};n[e.camelCase(t)]=i;var r=c._convertData(n);e.extend(this.defaults,r)},new D})),t.define("select2/options",["require","eui","./defaults","./utils"],(function(e,t,i,n){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),this.options=i.apply(this.options),r&&r.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(e){var i,r=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl"))),i=t.fn.eui&&"1."==t.fn.eui.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var o=t.extend(!0,{},i);for(var a in o=n._convertData(o))t.inArray(a,r)>-1||(t.isPlainObject(this.options[a])?t.extend(this.options[a],o[a]):this.options[a]=o[a]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r})),t.define("select2/core",["eui","./options","./utils","./keys"],(function(e,t,i,n){var r=function(e,i){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){u.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),this.options.get("autoLoad")&&this.options.get("ajax")&&this.options.get("ajax").url&&this.dataAdapter.query({},(function(e){u.dataAdapter.cacheData=e,u.dataAdapter.addOptions(u.dataAdapter.convertToOptions(e.results));var t=u.$element.data("originalVal"),i=u.$element.val();if(null!=t||null!=i){var n=t||i;u.$element.val(n).trigger("change")}})),e.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n((function(i){setTimeout((function(){e.each(i,t._syncA),e.each(i,t._syncS)}),0)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,i){e.trigger(t,i)}))},r.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(n,r){-1===e.inArray(n,i)&&t.trigger(n,r)}))},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,i){e.trigger(t,i)}))},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,i){e.trigger(t,i)}))},r.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(i){e.trigger("results:all",{data:i,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(i){e.trigger("results:append",{data:i,query:t})}))})),this.on("keypress",(function(t){var i=t.which;e.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&t.altKey?(e.close(),t.preventDefault()):i===n.ENTER?(e.trigger("results:select",{}),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(e,t){var i=!1,n=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var r=0;r<t.addedNodes.length;r++)t.addedNodes[r].selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))}},r.prototype.trigger=function(e,t){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in n){var o=n[e],a={prevented:!1,name:e,args:t};if(i.call(this,o,a),a.prevented)return void(t.prevented=!0)}i.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];e.isArray(i)&&(i=e.map(i,(function(e){return e.toString()}))),this.$element.val(i).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=this.$element[0].name,i=e('<span class="select2 select2-container" '+(t?'role-name="'+t+'"':"")+'><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return i.attr("dir",this.options.get("dir")),this.$container=i,this.$container.addClass("select2-container--"+this.options.get("theme")),i.data("element",this.$element),i},r.prototype.loadData=function(e){this.$element.empty(),this.dataAdapter.loadData(e)},r})),t.define("eui-mousewheel",["eui"],(function(e){return e})),t.define("eui.select2",["eui","eui-mousewheel","./select2/core","./select2/defaults"],(function(e,t,i,n){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var n=e.extend(!0,{},t);new i(e(this),n)})),this;if("string"==typeof t){var n,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var i=e(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=i[t].apply(i,o)})),e.inArray(t,r)>-1?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i})),{define:t.define,require:t.require}}(),i=t.require("eui.select2");return e.fn.select2.amd=t,i})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){!function(e){var t=function(e){var t=arguments,i=!0,n=1;return e=e.replace(/%s/g,(function(){var e=t[n++];return void 0===e?(i=!1,""):e})),i?e:""},i=function(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],i=0;i<t.length;i++)e=e.replace(t[i].letters,t[i].base);return e};function n(i,n){var r=this,o=i.attr("name")||n.name||"";this.options=n,this.$el=i.hide(),this.$label=this.$el.closest("label"),0===this.$label.length&&this.$el.attr("id")&&(this.$label=e(t('label[for="%s"]',this.$el.attr("id").replace(/:/g,"\\:")))),this.$parent=e(t('<div class="ms-parent %s" %s/>',i.attr("class")||"",t('role-name="%s"',i.attr("name")),t('title="%s"',i.attr("title")))),this.$choice=e(t(['<button type="button" class="ms-choice">','<span class="placeholder">%s</span>',"<div></div>","</button>"].join(""),this.options.placeholder)),this.$drop=e(t('<div class="ms-drop %s"%s></div>',this.options.position,t(' style="width: %s"',this.options.dropWidth))),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),this.$el.prop("disabled")&&this.$choice.addClass("disabled"),this.$parent.css("width",this.options.width||this.$el.css("width")||this.$el.outerWidth()+20),this.selectAllName='data-name="selectAll'+o+'"',this.selectGroupName='data-name="selectGroup'+o+'"',this.selectItemName='data-name="selectItem'+o+'"',this.options.keepOpen||e(document).click((function(t){e(t.target)[0]!==r.$choice[0]&&e(t.target).parents(".ms-choice")[0]!==r.$choice[0]&&(e(t.target)[0]===r.$drop[0]||e(t.target).parents(".ms-drop")[0]!==r.$drop[0]&&t.target!==i[0])&&r.options.isOpen&&r.close()}))}n.prototype={constructor:n,init:function(){var t=this,i=t.options;t.ajaxOptions=e.extend({},i.ajax);var n=i.data;"function"==typeof n&&(n=i.data=i.data.call(t.$el,t)),n&&n.length&&t._appendOptions(n);var r=i.url;if(r){t.ajaxOptions.url=r;var o=i.extraParam||{};t.query(o,(function(e){t.loadData(e)}))}else t._renderSelectItems()},loadData:function(e){this._appendOptions(e),this._renderSelectItems()},query:function(t,i){var n=this,r=n.options,o=e.extend({},n.ajaxOptions);if("function"==typeof o.url&&(o.url=o.url.call(n.$el,t)),e.extend(!0,o,{data:t}),0!=r.beforeLoad.call(n,t,o)){function a(){r.transport(o,(function(e){i(e)}),(function(){r.loadError.call(n,arguments)}))}this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(a,this.ajaxOptions.delay)):a()}},_appendOptions:function(e){var t=this,i=t.options;if(e||i.data,t.items=i.loadFilter.call(t,e),!1!==i.beforeRender.call(t,e)){var n=i.formatterOptions(t.items,i)||"";t.$el.html("").append(n),t.$el.html("").append(n)}},_renderSelectItems:function(){var i=this,n=e("<ul></ul>");this.$drop.html(""),this.options.filter&&this.$drop.append(['<div class="ms-search">','<input type="text" autocomplete="off" autocorrect="off" autocapitilize="off" spellcheck="false">',"</div>"].join("")),this.options.selectAll&&!this.options.single&&n.append(['<li class="ms-select-all">',"<label>",t('<input type="checkbox" %s /> ',this.selectAllName),this.options.selectAllDelimiter[0],this.options.selectAllText,this.options.selectAllDelimiter[1],"</label>","</li>"].join("")),e.each(this.$el.children(),(function(e,t){n.append(i.optionToHtml(e,t))})),n.append(t('<li class="ms-no-results">%s</li>',this.options.noMatchesFound)),this.$drop.append(n),this.$drop.find("ul").css("max-height",this.options.maxHeight+"px"),this.$drop.find(".multiple").css("width",this.options.multipleWidth+"px"),this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input["+this.selectAllName+"]"),this.$selectGroups=this.$drop.find("input["+this.selectGroupName+"]"),this.$selectItems=this.$drop.find("input["+this.selectItemName+"]:enabled"),this.$disableItems=this.$drop.find("input["+this.selectItemName+"]:disabled"),this.$noResults=this.$drop.find(".ms-no-results"),this.events(),this.updateSelectAll(!0),this.update(!0),this.options.isOpen&&this.open()},optionToHtml:function(i,n,r,o){var a,s=this,l=e(n),c=l.attr("class")||"",u=t('title="%s"',l.attr("title")),d=this.options.multiple?"multiple":"",p=this.options.single?"radio":"checkbox";if(l.is("option")){var h,f=l.val(),g=s.options.textTemplate(l),m=l.prop("selected"),v=t('style="%s"',this.options.styler(f));return a=o||l.prop("disabled"),(h=e([t('<li class="%s %s" %s %s>',d,c,u,v),t('<label class="%s">',a?"disabled":""),t('<input type="%s" %s%s%s%s>',p,this.selectItemName,m?' checked="checked"':"",a?' disabled="disabled"':"",t(' data-group="%s"',r)),g,"</label>","</li>"].join(""))).find("input").val(f),h}if(l.is("optgroup")){var y=s.options.labelTemplate(l),b=e("<div/>");return r="group_"+i,a=l.prop("disabled"),b.append(['<li class="group">',t('<label class="optgroup %s" data-group="%s">',a?"disabled":"",r),this.options.hideOptgroupCheckboxes||this.options.single?"":t('<input type="checkbox" %s %s>',this.selectGroupName,a?'disabled="disabled"':""),y,"</label>","</li>"].join("")),e.each(l.children(),(function(e,t){b.append(s.optionToHtml(e,t,r,a))})),b.html()}},events:function(){var i=this,n=function(e){e.preventDefault(),i[i.options.isOpen?"close":"open"]()};this.$label&&this.$label.off("click").on("click",(function(e){"label"===e.target.nodeName.toLowerCase()&&e.target===this&&(n(e),i.options.filter&&i.options.isOpen||i.focus(),e.stopPropagation())})),this.$choice.off("click").on("click",n).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(function(e){27===e.which&&(i.close(),i.$choice.focus())})),this.$searchInput.off("keydown").on("keydown",(function(e){9===e.keyCode&&e.shiftKey&&i.close()})).off("keyup").on("keyup",(function(e){return i.options.filterAcceptOnEnter&&(13===e.which||32==e.which)&&i.$searchInput.val()?(i.$selectAll.click(),i.close(),void i.focus()):void i.filter()})),this.$selectAll.off("click").on("click",(function(){var t=e(this).prop("checked"),n=i.$selectItems.filter(":visible");n.length===i.$selectItems.length?i[t?"checkAll":"uncheckAll"]():(i.$selectGroups.prop("checked",t),n.prop("checked",t),i.options[t?"onCheckAll":"onUncheckAll"](),i.update())})),this.$selectGroups.off("click").on("click",(function(){var n=e(this).parent().attr("data-group"),r=i.$selectItems.filter(":visible").filter(t('[data-group="%s"]',n)),o=r.length!==r.filter(":checked").length;r.prop("checked",o),i.updateSelectAll(),i.update(),i.options.onOptgroupClick({label:e(this).parent().text(),checked:o,children:r.get(),instance:i})})),this.$selectItems.off("click").on("click",(function(){if(i.updateSelectAll(),i.update(),i.updateOptGroupSelect(),i.options.onClick({label:e(this).parent().text(),value:e(this).val(),checked:e(this).prop("checked"),instance:i}),i.options.single&&i.options.isOpen&&!i.options.keepOpen&&i.close(),i.options.single){var t=e(this).val();i.$selectItems.filter((function(){return e(this).val()!==t})).each((function(){e(this).prop("checked",!1)})),i.update()}}))},open:function(){if(!this.$choice.hasClass("disabled")){if(this.options.isOpen=!0,this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.options.container){var t=this.$drop.offset();this.$drop.appendTo(e(this.options.container)),this.$drop.offset({top:t.top,left:t.left})}this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter()),0===this.$el.children().length&&(this.$selectAll.parent().hide(),this.$noResults.show()),this.$parent.addClass("ms-open"),this.options.onOpen(this)}},close:function(){this.options.isOpen=!1,this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.$parent.removeClass("ms-open"),this.options.onClose()},animateMethod:function(e){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[e][this.options.animate]||e},update:function(t){var i=this.options.displayValues?this.getSelects():this.getSelects("text"),n=this.$choice.find(">span"),r=i.length;0===r?n.addClass("placeholder").html(this.options.placeholder):this.options.allSelected&&r===this.$selectItems.length+this.$disableItems.length?n.removeClass("placeholder").html(this.options.allSelected):this.options.ellipsis&&r>this.options.minimumCountSelected?n.removeClass("placeholder").text(i.slice(0,this.options.minimumCountSelected).join(this.options.delimiter)+"..."):this.options.countSelected&&r>this.options.minimumCountSelected?n.removeClass("placeholder").html(this.options.countSelected.replace("#",i.length).replace("%",this.$selectItems.length+this.$disableItems.length)):n.removeClass("placeholder").text(i.join(this.options.delimiter)),this.options.addTitle&&n.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()).trigger("change"),this.$drop.find("li").removeClass("selected"),this.$drop.find("input:checked").each((function(){e(this).parents("li").first().addClass("selected")})),t||this.$el.trigger("change")},updateSelectAll:function(e){var t=this.$selectItems;e||(t=t.filter(":visible")),this.$selectAll.prop("checked",t.length&&t.length===t.filter(":checked").length),!e&&this.$selectAll.prop("checked")&&this.options.onCheckAll()},updateOptGroupSelect:function(){var i=this.$selectItems.filter(":visible");e.each(this.$selectGroups,(function(n,r){var o=e(r).parent().attr("data-group"),a=i.filter(t('[data-group="%s"]',o));e(r).prop("checked",a.length&&a.length===a.filter(":checked").length)}))},getSelects:function(i){var n=this,r=[],o=[];return this.$drop.find(t("input[%s]:checked",this.selectItemName)).each((function(){r.push(e(this).parents("li").first().text()),o.push(e(this).val())})),"text"===i&&this.$selectGroups.length&&(r=[],this.$selectGroups.each((function(){var i=[],o=e.trim(e(this).parent().text()),a=e(this).parent().data("group"),s=n.$drop.find(t('[%s][data-group="%s"]',n.selectItemName,a)),l=s.filter(":checked");if(l.length){if(i.push("["),i.push(o),s.length>l.length){var c=[];l.each((function(){c.push(e(this).parent().text())})),i.push(": "+c.join(", "))}i.push("]"),r.push(i.join(""))}}))),"text"===i?r:o},setSelects:function(i){var n=this;this.$selectItems.prop("checked",!1),this.$disableItems.prop("checked",!1),e.each(i,(function(e,i){n.$selectItems.filter(t('[value="%s"]',i)).prop("checked",!0),n.$disableItems.filter(t('[value="%s"]',i)).prop("checked",!0)})),this.$selectAll.prop("checked",this.$selectItems.length===this.$selectItems.filter(":checked").length+this.$disableItems.filter(":checked").length),e.each(n.$selectGroups,(function(t,i){var r=e(i).parent().attr("data-group"),o=n.$selectItems.filter('[data-group="'+r+'"]');e(i).prop("checked",o.length&&o.length===o.filter(":checked").length)})),this.update()},enable:function(){this.$choice.removeClass("disabled")},disable:function(){this.$choice.addClass("disabled")},checkAll:function(){this.$selectItems.prop("checked",!0),this.$selectGroups.prop("checked",!0),this.$selectAll.prop("checked",!0),this.update(),this.options.onCheckAll()},uncheckAll:function(){this.$selectItems.prop("checked",!1),this.$selectGroups.prop("checked",!1),this.$selectAll.prop("checked",!1),this.update(),this.options.onUncheckAll()},focus:function(){this.$choice.focus(),this.options.onFocus()},blur:function(){this.$choice.blur(),this.options.onBlur()},refresh:function(){this.init()},filter:function(){var n=this,r=e.trim(this.$searchInput.val()).toLowerCase();0===r.length?(this.$selectAll.parent().show(),this.$selectItems.parent().show(),this.$disableItems.parent().show(),this.$selectGroups.parent().show(),this.$noResults.hide()):(this.$selectItems.each((function(){var t=e(this).parent();t[i(t.text().toLowerCase()).indexOf(i(r))<0?"hide":"show"]()})),this.options.excludeDisableOnFilter?this.$disableItems.parent().hide():this.$disableItems.each((function(){var t=e(this).parent();t[i(t.text().toLowerCase()).indexOf(i(r))<0?"hide":"show"]()})),this.$selectGroups.each((function(){var i=e(this).parent(),r=i.attr("data-group");i[n.$selectItems.filter(":visible").filter(t('[data-group="%s"]',r)).length?"show":"hide"]()})),this.$selectItems.parent().filter(":visible").length?(this.$selectAll.parent().show(),this.$noResults.hide()):(this.$selectAll.parent().hide(),this.$noResults.show())),this.updateOptGroupSelect(),this.updateSelectAll(),this.options.onFilter(r)}},e.fn.multipleSelect=function(){var t,i=arguments[0],r=arguments,o=["getSelects","setSelects","enable","disable","open","close","checkAll","uncheckAll","focus","blur","refresh","close","loadData","query"];return this.each((function(){var a=e(this),s=a.data("multipleSelect"),l=e.extend({},e.fn.multipleSelect.defaults,a.data(),"object"==typeof i&&i);if(s||(s=new n(a,l),a.data("multipleSelect",s)),"string"==typeof i){if(e.inArray(i,o)<0)throw"Unknown method: "+i;t=s[i](r[1])}else s.init(),r[1]&&(t=s[r[1]].apply(s,[].slice.call(r,2)))})),void 0!==t?t:this},e.fn.multipleSelect.defaults={name:"",isOpen:!1,placeholder:"",selectAll:!0,selectAllDelimiter:["[","]"],minimumCountSelected:3,ellipsis:!1,multiple:!1,multipleWidth:80,single:!1,filter:!1,width:void 0,dropWidth:void 0,maxHeight:250,container:null,position:"bottom",keepOpen:!1,animate:"none",displayValues:!1,delimiter:", ",addTitle:!1,filterAcceptOnEnter:!1,hideOptgroupCheckboxes:!1,excludeDisableOnFilter:!0,selectAllText:"Select all",allSelected:"All selected",countSelected:"# of % selected",noMatchesFound:"No matches found",url:"",data:[],ajax:{method:"post"},valueField:"value",textField:"label",extraParam:{},loadFilter:function(e){return e},transport:function(t,i,n){var r=e.ajax(t);r.then(i),r.fail(n)},tpl:"{{#each items}} {{formatter this ../options }} {{/each}}",formatterOptions:function(t,i){var n=this;if("array"===e.type(t)){var r=[];return t.forEach((function(e,t){e.index=t,r.push(n.formatter(e,i))})),r.join("")}},formatter:function(e,t){var i=t.textField;return'<option value="'+e[t.valueField]+'"'+(e.disabled?' disabled="disabled"':"")+(e.selected?' selected="selected"':"")+">"+e[i]+"</option>"},styler:function(){return!1},textTemplate:function(e){return e.html()},labelTemplate:function(e){return e.attr("label")},onOpen:function(e){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onClick:function(){return!1},onFilter:function(){return!1},beforeRender:function(){},beforeLoad:function(e,t){},loadError:function(){}}}(e)})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){!function(e,t){e.extend(e.fn,{validate:function(t){if(this.length){var i=e.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new e.validator(t,this[0]),e.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",(function(t){i.settings.submitHandler&&(i.submitButton=t.target),e(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(i.cancelSubmit=!0)})),this.on("submit.validate",(function(t){function n(){var n,r;return!i.settings.submitHandler||(i.submitButton&&(n=e("<input type='hidden'/>").attr("name",i.submitButton.name).val(e(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&n.remove(),void 0!==r&&r)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)}))),i)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,i,n;return e(this[0]).is("form")?t=this.validate().form():(n=[],t=!0,i=e(this[0].form).validate(),this.each((function(){(t=i.element(this)&&t)||(n=n.concat(i.errorList))})),i.errorList=n),t},rules:function(t,i){if(this.length){var n,r,o,a,s,l,c=this[0],u=this;if(t)switch(n=e.data(c.form,"validator").settings,r=n.rules,o=e.validator.staticRules(c),t){case"add":e.extend(o,e.validator.normalizeRule(i)),delete o.messages,r[c.name]=o,i.messages&&(n.messages[c.name]=e.extend(n.messages[c.name],i.messages));break;case"remove":return i?(l={},e.each(i.split(/\s/),(function(t,i){if(l[i]=o[i],delete o[i],"required"===i){var n=u.getAriaTargetEle();e(n).removeAttr("aria-required")}})),l):(delete r[c.name],o)}if((a=e.validator.normalizeRules(e.extend({},e.validator.classRules(c),e.validator.attributeRules(c),e.validator.dataRules(c),e.validator.staticRules(c)),c)).required){s=a.required,delete a.required,a=e.extend({required:s},a);var d=u.getAriaTargetEle();e(d).attr("aria-required","true")}return a.remote&&(s=a.remote,delete a.remote,a=e.extend(a,{remote:s})),a}},isXtype:function(){return this.is("[xtype]")},getAriaTargetEle:function(){return this}}),e.extend(e.expr[":"],{blank:function(t){return!e.trim(""+e(t).val())},filled:function(t){var i=e(t).val();return null!==i&&!!e.trim(""+i)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,i){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=i,this.init()},e.validator.format=function(t,i){return 1===arguments.length?function(){var i=e.makeArray(arguments);return i.unshift(t),e.validator.format.apply(this,i)}:(void 0===i||(arguments.length>2&&i.constructor!==Array&&(i=e.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),e.each(i,(function(e,i){t=t.replace(new RegExp("\\{"+e+"\\}","g"),(function(){return i}))}))),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"note note-error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){!this.checkable(e)&&e.name&&(e.name in this.submitted||!this.optional(e))&&this.element(e)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||-1!==e.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(n).parent().addClass("state-error").removeClass("state-success"):e(t).addClass(i).removeClass(n).parent().addClass("state-error").removeClass("state-success")},unhighlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(n).parent().addClass("state-success").removeClass("state-error"):e(t).removeClass(i).addClass(n).parent().addClass("state-success").removeClass("state-error")},eleTypeValues:function(e){return e.val()}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){var i=e.data(this.form,"validator"),n="on"+t.type.replace(/^validate/,""),r=i.settings;r[n]&&!e(this).is(r.ignore)&&r[n].call(i,this,t)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};e.each(this.settings.groups,(function(t,i){"string"==typeof i&&(i=i.split(/\s/)),e.each(i,(function(e,i){n[i]=t}))})),i=this.settings.rules,e.each(i,(function(t,n){i[t]=e.validator.normalizeRule(n)})),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),e(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var i,n,r=this.clean(t),o=this.validationTargetFor(r),a=this,s=!0;return void 0===o?delete this.invalid[r.name]:(this.prepareElement(o),this.currentElements=e(o),(n=this.groups[o.name])&&e.each(this.groups,(function(e,t){t===n&&e!==o.name&&(r=a.validationTargetFor(a.clean(a.findByName(e))))&&r.name in a.invalid&&(a.currentElements.push(r),s=s&&a.check(r))})),i=!1!==this.check(o),s=s&&i,this.invalid[o.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(t).attr("aria-invalid",!i)),s},showErrors:function(t){if(t){var i=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,(function(e,t){return{message:e,element:i.findByName(t)[0]}})),this.successList=e.grep(this.successList,(function(e){return!(e.name in t)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,i=0;for(t in e)e[t]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,(function(e){return e.element.name===t.name})).length&&t},elements:function(){var t=this,i={},n=t.settings.ignore,r=this.currentForm.getAttribute("aria-visible");return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset,:button, :image, :disabled").filter((function(){if(e(this).isXtype()){if("true"===r&&!e(this).getAriaTargetEle(t).is(":visible"))return!1}else if(e(this).is(n))return!1;var o=this.name||e(this).attr("name")||e(this).attr("role-name");return!o&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0]),!(o in i||!t.objectLength(e(this).rules())||(i[o]=!0,0))}))},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var i,n,r=e(t),o=t.type;return"radio"===o||"checkbox"===o?this.findByName(t.name).filter(":checked").val():"number"===o&&void 0!==t.validity?t.validity.badInput?"NaN":r.val():(i=t.hasAttribute("contenteditable")?r.text():this.settings.eleTypeValues(r,this.currentForm),"file"===o?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(n=i.lastIndexOf("/"))>=0||(n=i.lastIndexOf("\\"))>=0?i.substr(n+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,n,r,o=e(t).rules(),a=e.map(o,(function(e,t){return t})).length,s=!1,l=this.elementValue(t);if("function"==typeof o.normalizer){if("string"!=typeof(l=o.normalizer.call(t,l)))throw new TypeError("The normalizer should return a string value.");delete o.normalizer}for(n in o){r={method:n,parameters:o[n]};try{if("dependency-mismatch"===(i=e.validator.methods[n].call(this,l,t,r.parameters))&&1===a){s=!0;continue}if(s=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),e}}if(!s)return this.objectLength(o)&&this.successList.push(t),!0},customDataMessage:function(t,i){return e(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var i=this.settings.messages[e];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,i){var n=this.findDefined(this.customMessage(t.name||e(t).attr("role-name"),i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,i.parameters,t):r.test(n)&&(n=e.validator.format(n.replace(r,"{$1}"),i.parameters)),n},formatAndAdd:function(e,t){var i=this.defaultMessage(e,t);this.errorList.push({message:i,element:e,method:t.method});var n=this.eleRealName(e);this.errorMap[n]=i,this.submitted[n]=i},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,i;for(e=0;this.errorList[e];e++)i=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.map((function(){return e(this).getAriaTargetEle()[0]})).not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map((function(){return this.element}))},showLabel:function(t,i){var n,r,o,a,s=this.errorsFor(t),l=this.idOrName(t),c=e(t).attr("aria-describedby");s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(n=s=e("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,e(t)):n.insertAfter(t),s.is("label")?s.attr("for",l):0===s.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(o=s.attr("id"),c?c.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(c+=" "+o):c=o,e(t).attr("aria-describedby",c),(r=this.groups[t.name])&&(a=this,e.each(a.groups,(function(t,i){i===r&&e("[name='"+a.escapeCssMeta(t)+"']",a.currentForm).attr("aria-describedby",s.attr("id"))}))))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,t)),this.toShow=this.toShow.add(s)},errorsFor:function(t){var i=this.escapeCssMeta(this.idOrName(t)),n=e(t).attr("aria-describedby"),r="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(r=r+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(e){return(e=e||"").replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){var t=this.eleRealName(e);return this.groups[t]||(this.checkable(e)?e.name:e.id||t)},eleRealName:function(e){return e.name||e.getAttribute("role-name")},validationTargetFor:function(t){return t=this.checkable(t)?this.findByName(t.name):e(t).getAriaTargetEle(),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},findByUiName:function(t){return e(this.currentForm).find("[role-name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return e("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,i){return!!e(t,i.form).length},function:function(e,t){return e(t)}},optional:function(t){var i=this.elementValue(t);return!e.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:e.extend(this.classRuleSettings,t)},classRules:function(t){var i={},n=e(t).attr("class");return n&&e.each(n.split(" "),(function(){this in e.validator.classRuleSettings&&e.extend(i,e.validator.classRuleSettings[this])})),i},normalizeAttributeRule:function(e,t,i,n){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?e[i]=n:t===i&&"range"!==t&&(e[i]=!0)},attributeRules:function(t){var i,n,r={},o=e(t),a=t.getAttribute("type");for(i in e.validator.methods)"required"===i?(""===(n=t.getAttribute(i))&&(n=!0),n=!!n):n=o.attr(i),this.normalizeAttributeRule(r,a,i,n);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var i,n,r={},o=e(t),a=t.getAttribute("type");for(i in e.validator.methods)n=o.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,a,i,n);return r},staticRules:function(t){var i={},n=t.form?t.form:e(t).closest("form")[0],r=e.data(n,"validator");return r.settings.rules&&(i=e.validator.normalizeRule(r.settings.rules[t.name||t.getAttribute("role-name")])||{}),i},normalizeRules:function(t,i){return e.each(t,(function(n,r){if(!1!==r){if(r.param||r.depends){var o=!0;switch(typeof r.depends){case"string":o=!!e(r.depends,i.form).length;break;case"function":o=r.depends.call(i,i)}o?t[n]=void 0===r.param||r.param:(e.data(i.form,"validator").resetElements(e(i)),delete t[n])}}else delete t[n]})),e.each(t,(function(n,r){t[n]=e.isFunction(r)&&"normalizer"!==n?r(i):r})),e.each(["minlength","maxlength"],(function(){t[this]&&(t[this]=Number(t[this]))})),e.each(["rangelength","range"],(function(){var i;t[this]&&(e.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))})),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};e.each(t.split(/\s/),(function(){i[this]=!0})),t=i}return t},addMethod:function(t,i,n){e.validator.methods[t]=i,e.validator.messages[t]=void 0!==n?n:e.validator.messages[t],i.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=e(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(t,i)>0:(e.isString(t)&&(t=t.trim()),t.length>0)},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n},maxlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r<=n},rangelength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n[0]&&r<=n[1]},min:function(e,t,i){return this.optional(t)||e>=i},max:function(e,t,i){return this.optional(t)||e<=i},range:function(e,t,i){return this.optional(t)||e>=i[0]&&e<=i[1]},step:function(t,i,n){var r=e(i).attr("type"),o="Step attribute on input type "+r+" is not supported.",a=new RegExp("\\b"+r+"\\b");if(r&&!a.test(["text","number","range"].join()))throw new Error(o);return this.optional(i)||t%n==0},equalTo:function(t,i,n){var r=e(n);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",(function(){e(i).valid()})),t===r.val()},remote:function(t,i,n,r){if(this.optional(i))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var o,a,s,l=this.previousValue(i,r);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][r],this.settings.messages[i.name][r]=l.message,n="string"==typeof n&&{url:n}||n,s=e.param(e.extend({data:t},n.data)),l.old===s?l.valid:(l.old=s,o=this,this.startRequest(i),(a={})[i.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:o.currentForm,success:function(e){var n,a,s,c=!0===e||"true"===e;o.settings.messages[i.name][r]=l.originalMessage,c?(s=o.formSubmitted,o.resetInternals(),o.toHide=o.errorsFor(i),o.formSubmitted=s,o.successList.push(i),o.invalid[i.name]=!1,o.showErrors()):(n={},a=e||o.defaultMessage(i,{method:r,parameters:t}),n[i.name]=l.message=a,o.invalid[i.name]=!0,o.showErrors(n)),l.valid=c,o.stopRequest(i,c)}},n)),"pending")}}});var i,n={};e.ajaxPrefilter?e.ajaxPrefilter((function(e,t,i){var r=e.port;"abort"===e.mode&&(n[r]&&n[r].abort(),n[r]=i)})):(i=e.ajax,e.ajax=function(t){var r=("mode"in t?t:e.ajaxSettings).mode,o=("port"in t?t:e.ajaxSettings).port;return"abort"===r?(n[o]&&n[o].abort(),n[o]=i.apply(this,arguments),n[o]):i.apply(this,arguments)}),e.validator.addMethod("byterangelength",(function(e,t,i){for(var n=e.length,r=0;r<e.length;r++)e.charCodeAt(r)>127&&n++;return this.optional(t)||n>=i[0]&&n<=i[1]}),e.validator.format("Please enter a value which the byte length between {0} and {1}.(one chinese word count 2 bytes)")),e.validator.addMethod("datetime",(function(t,i,n){return this.optional(i)||void 0!==e.Date.parse(t,n)}),"Please enter a valid datetime value in {0} format"),e.validator.addMethod("filetype",(function(e,t,i){if(e){var n=e.match(/^(.*)(\.)(.{1,8})$/)[3],r=i.indexOf(n);return this.optional(t)||r>-1}return!0}),"Do not support the type of file, please upload file of {0} suffixes"),e.validator.addMethod("idcard",(function(e,t){return this.optional(t)||/((11|12|13|14|15|21|22|23|31|32|33|34|35|36|37|41|42|43|44|45|46|50|51|52|53|54|61|62|63|64|65)[0-9]{4})(([1|2][0-9]{3}[0|1][0-9][0-3][0-9][0-9]{3}[Xx0-9])|([0-9]{2}[0|1][0-9][0-3][0-9][0-9]{3}))/.test(e)}),"Please enter a valid idcard number."),e.validator.addMethod("cellphone",(function(e,t){return this.optional(t)||/^(((1[3|5|8][0-9]{1}))+\d{8})$/.test(e)}),"Please enter a valid phone number."),e.validator.addMethod("fax",(function(e,t){return this.optional(t)||/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/.test(e)}),"Please enter a valid fax number."),e.validator.addMethod("telephone",(function(e,t){return this.optional(t)||/^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/.test(e)||/^(((1[3|5|8][0-9]{1}))+\d{8})$/.test(e)}),"Please enter a valid telephone number."),e.validator.addMethod("zipcode",(function(e,t){return this.optional(t)||/^[0-9]{6}$/.test(e)}),"Please enter a valid zip code."),e.validator.addMethod("pattern",(function(e,t,i){return i=new RegExp(i),this.optional(t)||i.test(e)}),"Input content and regexp don't match."),e.validator.addMethod("time",(function(e,t){return this.optional(t)||/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/.test(e)}),"Please enter a valid time, between 00:00 and 23:59."),e.validator.addMethod("time12h",(function(e,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(e)}),"Please enter a valid time in 12-hour am/pm format")}(e,e.Function.alias)})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){function t(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonIcon:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=i(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,n)}function n(){e.datepicker._isDisabledDatepicker(u.inline?u.dpDiv.parent()[0]:u.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}function o(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}function a(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.ui=e.ui||{};var s=(e.ui.version="2.3.27",0),l=Array.prototype.slice;e.cleanData=function(t){return function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)try{(n=e._data(r,"events"))&&n.remove&&e(r).triggerHandler("remove")}catch(e){}t(i)}}(e.cleanData),e.widget=function(t,i,n){var r,o,a,s={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),e.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},r=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(a=new i).options=e.widget.extend({},a.options),e.each(n,(function(t,n){return e.isFunction(n)?void(s[t]=function(){function e(){return i.prototype[t].apply(this,arguments)}function r(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=e,this._superApply=r,t=n.apply(this,arguments),this._super=i,this._superApply=o,t}}()):void(s[t]=n)})),o.prototype=e.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||t},s,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),r?(e.each(r._childConstructors,(function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete r._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,n,r=l.call(arguments,1),o=0,a=r.length;o<a;o++)for(i in r[o])n=r[o][i],r[o].hasOwnProperty(i)&&void 0!==n&&(e.isPlainObject(n)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],n):e.widget.extend({},n):t[i]=n);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(r){var o="string"==typeof r,a=l.call(arguments,1),s=this;return o?this.each((function(){var i,o=e.data(this,n);return"instance"===r?(s=o,!1):o?e.isFunction(o[r])&&"_"!==r.charAt(0)?(i=o[r].apply(o,a))!==o&&void 0!==i?(s=i&&i.eui?s.pushStack(i.get()):i,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")})):(a.length&&(r=e.widget.extend.apply(null,[r].concat(a))),this.each((function(){var t=e.data(this,n);t?(t.option(r||{}),t._init&&t._init()):e.data(this,n,new i(r,this))}))),s}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,i){t._removeClass(i,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,r,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},n=t.split("."),t=n.shift(),n.length){for(r=a[t]=e.widget.extend({},this.options[t]),o=0;o<n.length-1;o++)r[n[o]]=r[n[o]]||{},r=r[n[o]];if(t=n.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,r;for(i in t)r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length&&(n=e(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=e(t.add?e.unique(a.get().concat(t.element.get())):a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}var n=[],r=this;return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof e||null===e,o={extra:r?t:i,keys:r?e:t,element:r?this.element:e,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(t,i,n){var r,o=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=r=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),e.each(n,(function(n,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?r.on(c,u,s):i.on(c,s)}))},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i).off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout((function(){return("string"==typeof e?i[e]:e).apply(i,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var r,o,a=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!(e.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,i){e.Widget.prototype["_"+t]=function(n,r,o){"string"==typeof r&&(r={effect:r});var a,s=r?!0===r||"number"==typeof r?i:r.effect||i:t;"number"==typeof(r=r||{})&&(r={duration:r}),a=!e.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),a&&e.effects&&e.effects.effect[s]?n[t](r):s!==t&&n[s]?n[s](r.duration,r.easing,o):n.queue((function(i){e(this)[t](),o&&o.call(n[0]),i()}))}})),e.widget,function(){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}var n,r,o=Math.max,a=Math.abs,s=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,h=e.fn.position;r=function(){var t=e("<div>").css("position","absolute").appendTo("body").offset({top:1.5,left:1.5}),i=1.5===t.offset().top;return t.remove(),r=function(){return i},i},e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i,r=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=r.children()[0];return e("body").append(r),t=o.offsetWidth,r.css("overflow","scroll"),t===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),r="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:r?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=e.isWindow(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:n||r?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(n){if(!n||!n.of)return h.apply(this,arguments);n=e.extend({},n);var p,f,g,m,v,y,b=e(n.of),w=e.position.getWithinInfo(n.within),_=e.position.getScrollInfo(w),x=(n.collision||"flip").split(" "),$={};return y=function(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}(b),b[0].preventDefault&&(n.at="left top"),f=y.width,g=y.height,m=y.offset,v=e.extend({},m),e.each(["my","at"],(function(){var e,t,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):c.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=c.test(i[1])?i[1]:"center",e=u.exec(i[0]),t=u.exec(i[1]),$[this]=[e?e[0]:0,t?t[0]:0],n[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]})),1===x.length&&(x[1]=x[0]),"right"===n.at[0]?v.left+=f:"center"===n.at[0]&&(v.left+=f/2),"bottom"===n.at[1]?v.top+=g:"center"===n.at[1]&&(v.top+=g/2),p=t($.at,f,g),v.left+=p[0],v.top+=p[1],this.each((function(){var l,c,u=e(this),d=u.outerWidth(),h=u.outerHeight(),y=i(this,"marginLeft"),C=i(this,"marginTop"),k=d+y+i(this,"marginRight")+_.width,S=h+C+i(this,"marginBottom")+_.height,E=e.extend({},v),j=t($.my,u.outerWidth(),u.outerHeight());"right"===n.my[0]?E.left-=d:"center"===n.my[0]&&(E.left-=d/2),"bottom"===n.my[1]?E.top-=h:"center"===n.my[1]&&(E.top-=h/2),E.left+=j[0],E.top+=j[1],r()||(E.left=s(E.left),E.top=s(E.top)),l={marginLeft:y,marginTop:C},e.each(["left","top"],(function(t,i){e.ui.position[x[t]]&&e.ui.position[x[t]][i](E,{targetWidth:f,targetHeight:g,elemWidth:d,elemHeight:h,collisionPosition:l,collisionWidth:k,collisionHeight:S,offset:[p[0]+j[0],p[1]+j[1]],my:n.my,at:n.at,within:w,elem:u})})),n.using&&(c=function(e){var t=m.left-E.left,i=t+f-d,r=m.top-E.top,s=r+g-h,l={target:{element:b,left:m.left,top:m.top,width:f,height:g},element:{element:u,left:E.left,top:E.top,width:d,height:h},horizontal:i<0?"left":t>0?"right":"center",vertical:s<0?"top":r>0?"bottom":"middle"};f<d&&a(t+i)<f&&(l.horizontal="center"),g<h&&a(r+s)<g&&(l.vertical="middle"),o(a(t),a(i))>o(a(r),a(s))?l.important="horizontal":l.important="vertical",n.using.call(this,e,l)}),u.offset(e.extend(E,{using:c}))}))},e.ui.position={fit:{left:function(e,t){var i,n=t.within,r=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,s=e.left-t.collisionPosition.marginLeft,l=r-s,c=s+t.collisionWidth-a-r;t.collisionWidth>a?l>0&&c<=0?(i=e.left+l+t.collisionWidth-a-r,e.left+=l-i):e.left=c>0&&l<=0?r:l>c?r+a-t.collisionWidth:r:l>0?e.left+=l:c>0?e.left-=c:e.left=o(e.left-s,e.left)},top:function(e,t){var i,n=t.within,r=n.isWindow?n.scrollTop:n.offset.top,a=t.within.height,s=e.top-t.collisionPosition.marginTop,l=r-s,c=s+t.collisionHeight-a-r;t.collisionHeight>a?l>0&&c<=0?(i=e.top+l+t.collisionHeight-a-r,e.top+=l-i):e.top=c>0&&l<=0?r:l>c?r+a-t.collisionHeight:r:l>0?e.top+=l:c>0?e.top-=c:e.top=o(e.top-s,e.top)}},flip:{left:function(e,t){var i,n,r=t.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,d=c+t.collisionWidth-s-l,p="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];u<0?((i=e.left+p+h+f+t.collisionWidth-s-o)<0||i<a(u))&&(e.left+=p+h+f):d>0&&((n=e.left-t.collisionPosition.marginLeft+p+h+f-l)>0||a(n)<d)&&(e.left+=p+h+f)},top:function(e,t){var i,n,r=t.within,o=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,d=c+t.collisionHeight-s-l,p="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,h="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];u<0?((n=e.top+p+h+f+t.collisionHeight-s-o)<0||n<a(u))&&(e.top+=p+h+f):d>0&&((i=e.top-t.collisionPosition.marginTop+p+h+f-l)>0||a(i)<d)&&(e.top+=p+h+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}();var c,u,d=(e.ui.position,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}})):function(t,i,n){return!!e.data(t,n[3])}}),e.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",(function(e){e.preventDefault()}))}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),"ui-effects-"),p="ui-effects-style",h="ui-effects-animated",f=e;e.effects={effect:{}},function(e){function t(e,t,i){var n=c[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:n.max<e?n.max:e)}function i(t){var i=s(),n=i._rgba=[];return t=t.toLowerCase(),p(a,(function(e,r){var o,a=r.re.exec(t),s=a&&r.parse(a),c=r.space||"rgba";if(s)return o=i[c](s),i[l[c].cache]=o[l[c].cache],n=i._rgba=o._rgba,!1})),n.length?("0,0,0,0"===n.join()&&e.extend(n,r.transparent),i):r[t]}function n(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}var r,o=/^([\-+])=\s*(\d+\.?\d*)/,a=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],s=e.Color=function(t,i,n,r){return new e.Color.fn.parse(t,i,n,r)},l={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=s.support={},d=e("<p>")[0],p=e.each;d.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=d.style.backgroundColor.indexOf("rgba")>-1,p(l,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),s.fn=e.extend(s.prototype,{parse:function(n,o,a,c){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.eui||n.nodeType)&&(n=e(n).css(o),o=void 0);var u=this,d=e.type(n),h=this._rgba=[];return void 0!==o&&(n=[n,o,a,c],d="array"),"string"===d?this.parse(i(n)||r._default):"array"===d?(p(l.rgba.props,(function(e,i){h[i.idx]=t(n[i.idx],i)})),this):"object"===d?(p(l,n instanceof s?function(e,t){n[t.cache]&&(u[t.cache]=n[t.cache].slice())}:function(i,r){var o=r.cache;p(r.props,(function(e,i){if(!u[o]&&r.to){if("alpha"===e||null==n[e])return;u[o]=r.to(u._rgba)}u[o][i.idx]=t(n[e],i,!0)})),u[o]&&e.inArray(null,u[o].slice(0,3))<0&&(u[o][3]=1,r.from&&(u._rgba=r.from(u[o])))}),this):void 0},is:function(e){var t=s(e),i=!0,n=this;return p(l,(function(e,r){var o,a=t[r.cache];return a&&(o=n[r.cache]||r.to&&r.to(n._rgba)||[],p(r.props,(function(e,t){if(null!=a[t.idx])return i=a[t.idx]===o[t.idx]}))),i})),i},_space:function(){var e=[],t=this;return p(l,(function(i,n){t[n.cache]&&e.push(i)})),e.pop()},transition:function(e,i){var n=s(e),r=n._space(),o=l[r],a=0===this.alpha()?s("transparent"):this,u=a[o.cache]||o.to(a._rgba),d=u.slice();return n=n[o.cache],p(o.props,(function(e,r){var o=r.idx,a=u[o],s=n[o],l=c[r.type]||{};null!==s&&(null===a?d[o]=s:(l.mod&&(s-a>l.mod/2?a+=l.mod:a-s>l.mod/2&&(a-=l.mod)),d[o]=t((s-a)*i+a,r)))})),this[r](d)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=s(t)._rgba;return s(e.map(i,(function(e,t){return(1-n)*r[t]+n*e})))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),s.fn.parse.prototype=s.fn,l.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,r=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(n,r,o),l=Math.min(n,r,o),c=s-l,u=s+l,d=.5*u;return t=l===s?0:n===s?60*(r-o)/c+360:r===s?60*(o-n)/c+120:60*(n-r)/c+240,i=0===c?0:d<=.5?c/u:c/(2-u),[Math.round(t)%360,i,d,null==a?1:a]},l.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],r=e[2],o=e[3],a=r<=.5?r*(1+i):r+i-r*i,s=2*r-a;return[Math.round(255*n(s,a,t+1/3)),Math.round(255*n(s,a,t)),Math.round(255*n(s,a,t-1/3)),o]},p(l,(function(i,n){var r=n.props,a=n.cache,l=n.to,c=n.from;s.fn[i]=function(i){if(l&&!this[a]&&(this[a]=l(this._rgba)),void 0===i)return this[a].slice();var n,o=e.type(i),u="array"===o||"object"===o?i:arguments,d=this[a].slice();return p(r,(function(e,i){var n=u["object"===o?e:i.idx];null==n&&(n=d[i.idx]),d[i.idx]=t(n,i)})),c?((n=s(c(d)))[a]=d,n):s(d)},p(r,(function(t,n){s.fn[t]||(s.fn[t]=function(r){var a,s=e.type(r),l="alpha"===t?this._hsla?"hsla":"rgba":i,c=this[l](),u=c[n.idx];return"undefined"===s?u:("function"===s&&(r=r.call(this,u),s=e.type(r)),null==r&&n.empty?this:("string"===s&&(a=o.exec(r))&&(r=u+parseFloat(a[2])*("+"===a[1]?1:-1)),c[n.idx]=r,this[l](c)))})}))})),s.hook=function(t){var n=t.split(" ");p(n,(function(t,n){e.cssHooks[n]={set:function(t,r){var o,a,l="";if("transparent"!==r&&("string"!==e.type(r)||(o=i(r)))){if(r=s(o||r),!u.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===l||"transparent"===l)&&a&&a.style;)try{l=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(l&&"transparent"!==l?l:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=s(t.elem,n),t.end=s(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},s.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],(function(i,n){t["border"+n+"Color"]=e})),t}},r=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(f),function(){function t(t){var i,n,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)"string"==typeof r[i=r[n]]&&(o[e.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&&(o[i]=r[i]);return o}function i(t,i){var n,o,a={};for(n in i)o=i[n],t[n]!==o&&(r[n]||!e.fx.step[n]&&isNaN(parseFloat(o))||(a[n]=o));return a}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(f.style(e.elem,i,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(r,o,a,s){var l=e.speed(o,a,s);return this.queue((function(){var o,a=e(this),s=a.attr("class")||"",c=l.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:t(this)}})),(o=function(){e.each(n,(function(e,t){r[t]&&a[t+"Class"](r[t])}))})(),c=c.map((function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(a[0])}))}))},e.fn.extend({addClass:function(t){return function(i,n,r,o){return n?e.effects.animateClass.call(this,{add:i},n,r,o):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,n,r,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,r,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,r,o,a){return"boolean"==typeof n||void 0===n?r?e.effects.animateClass.call(this,n?{add:i}:{remove:i},r,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,r,o)}}(e.fn.toggleClass),switchClass:function(t,i,n,r,o){return e.effects.animateClass.call(this,{add:i,remove:t},n,r,o)}})}(),function(){function t(t,i,n,r){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(r=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(r=n,n=i,i={}),e.isFunction(n)&&(r=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=r||i.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"==typeof t&&!t.effect}function n(e,t){var i=t.outerWidth(),n=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?i:parseFloat(r[2]),bottom:"auto"===r[3]?n:parseFloat(r[3]),left:parseFloat(r[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(i){return!!e(i).data(h)||t(i)}}(e.expr.filters.animated)),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data(d+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,r=t.length;n<r;n++)null!==t[n]&&(i=e.data(d+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(n),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"2.3.27",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,r="vertical"!==i?(t||100)/100:1;return{height:e.height()*r,width:e.width()*n,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(p,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(p)||"",e.removeData(p)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,n=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",i)),t.css({position:n,left:r.left,top:r.top}),i},removePlaceholder:function(e){var t=d+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,r){return r=r||{},e.each(i,(function(e,i){var o=t.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])})),r}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(l)&&l.call(a[0]),e.isFunction(t)&&t()}var a=e(this);n.mode=u.shift(),!1===e.uiBackCompat||o?"none"===n.mode?(a[c](),i()):r.call(a[0],n,(function(){a.removeData(h),e.effects.cleanUp(a),"hide"===n.mode&&a.hide(),i()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),i()):r.call(a[0],n,i)}var n=t.apply(this,arguments),r=e.effects.effect[n.effect],o=r.mode,a=n.queue,s=a||"fx",l=n.complete,c=n.mode,u=[],d=function(t){var i=e(this),n=e.effects.mode(i,c)||o;i.data(h,!0),u.push(n),o&&("show"===n||n===o&&"hide"===n)&&i.show(),o&&"none"===n||e.effects.saveStyle(i),e.isFunction(t)&&t()};return e.fx.off||!r?c?this[c](n.duration,l):this.each((function(){l&&l.call(this)})):!1===a?this.each(d).each(i):this.queue(s,d).queue(s,i)},show:function(e){return function(n){if(i(n))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(n){if(i(n))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(n){if(i(n)||"boolean"==typeof n)return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):n(this.css("clip"),this)},transfer:function(t,i){var n=e(this),r=e(t.to),o="fixed"===r.css("position"),a=e("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,c=r.offset(),u={top:c.top-s,left:c.left-l,height:r.innerHeight(),width:r.innerWidth()},d=n.offset(),p=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:d.top-s,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(u,t.duration,t.easing,(function(){p.remove(),e.isFunction(i)&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=n(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,i){t[i]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}}))}(),e.effects,e.effects.define("blind","hide",(function(t,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},r=e(this),o=t.direction||"up",a=r.cssClip(),s={clip:e.extend({},a)},l=e.effects.createPlaceholder(r);s.clip[n[o][0]]=s.clip[n[o][1]],"show"===t.mode&&(r.cssClip(s.clip),l&&l.css(e.effects.clipToBox(s)),s.clip=a),l&&l.animate(e.effects.clipToBox(s),t.duration,t.easing),r.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("bounce",(function(t,i){var n,r,o,a=e(this),s=t.mode,l="hide"===s,c="show"===s,u=t.direction||"up",d=t.distance,p=t.times||5,h=2*p+(c||l?1:0),f=t.duration/h,g=t.easing,m="up"===u||"down"===u?"top":"left",v="up"===u||"left"===u,y=0,b=a.queue().length;for(e.effects.createPlaceholder(a),o=a.css(m),d||(d=a["top"===m?"outerHeight":"outerWidth"]()/3),c&&((r={opacity:1})[m]=o,a.css("opacity",0).css(m,v?2*-d:2*d).animate(r,f,g)),l&&(d/=Math.pow(2,p-1)),(r={})[m]=o;y<p;y++)(n={})[m]=(v?"-=":"+=")+d,a.animate(n,f,g).animate(r,f,g),d=l?2*d:d/2;l&&((n={opacity:0})[m]=(v?"-=":"+=")+d,a.animate(n,f,g)),a.queue(i),e.effects.unshift(a,b,h+1)})),e.effects.define("clip","hide",(function(t,i){var n,r={},o=e(this),a=t.direction||"vertical",s="both"===a,l=s||"horizontal"===a,c=s||"vertical"===a;n=o.cssClip(),r.clip={top:c?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},e.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(r.clip),r.clip=n),o.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("drop","hide",(function(t,i){var n,r=e(this),o="show"===t.mode,a=t.direction||"left",s="up"===a||"down"===a?"top":"left",l="up"===a||"left"===a?"-=":"+=",c="+="===l?"-=":"+=",u={opacity:0};e.effects.createPlaceholder(r),n=t.distance||r["top"===s?"outerHeight":"outerWidth"](!0)/2,u[s]=l+n,o&&(r.css(u),u[s]=c+n,u.opacity=1),r.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("explode","hide",(function(t,i){function n(){v.push(this),v.length===u*d&&(p.css({visibility:"visible"}),e(v).remove(),i())}var r,o,a,s,l,c,u=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=u,p=e(this),h="show"===t.mode,f=p.show().css("visibility","hidden").offset(),g=Math.ceil(p.outerWidth()/d),m=Math.ceil(p.outerHeight()/u),v=[];for(r=0;r<u;r++)for(s=f.top+r*m,c=r-(u-1)/2,o=0;o<d;o++)a=f.left+o*g,l=o-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*g,top:-r*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:a+(h?l*g:0),top:s+(h?c*m:0),opacity:h?0:1}).animate({left:a+(h?0:l*g),top:s+(h?0:c*m),opacity:h?1:0},t.duration||500,t.easing,n)})),e.effects.define("fade","toggle",(function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("fold","hide",(function(t,i){var n=e(this),r=t.mode,o="show"===r,a="hide"===r,s=t.size||15,l=/([0-9]+)%/.exec(s),c=t.horizFirst?["right","bottom"]:["bottom","right"],u=t.duration/2,d=e.effects.createPlaceholder(n),p=n.cssClip(),h={clip:e.extend({},p)},f={clip:e.extend({},p)},g=[p[c[0]],p[c[1]]],m=n.queue().length;l&&(s=parseInt(l[1],10)/100*g[a?0:1]),h.clip[c[0]]=s,f.clip[c[0]]=s,f.clip[c[1]]=0,o&&(n.cssClip(f.clip),d&&d.css(e.effects.clipToBox(f)),f.clip=p),n.queue((function(i){d&&d.animate(e.effects.clipToBox(h),u,t.easing).animate(e.effects.clipToBox(f),u,t.easing),i()})).animate(h,u,t.easing).animate(f,u,t.easing).queue(i),e.effects.unshift(n,m,4)})),e.effects.define("highlight","show",(function(t,i){var n=e(this),r={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(r.opacity=0),e.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("size",(function(t,i){var n,r,o,a=e(this),s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,d="effect"!==u,p=t.scale||"both",h=t.origin||["middle","center"],f=a.css("position"),g=a.position(),m=e.effects.scaledDimensions(a),v=t.from||m,y=t.to||e.effects.scaledDimensions(a,0);e.effects.createPlaceholder(a),"show"===u&&(o=v,v=y,y=o),r={from:{y:v.height/m.height,x:v.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==p&&"both"!==p||(r.from.y!==r.to.y&&(v=e.effects.setTransition(a,l,r.from.y,v),y=e.effects.setTransition(a,l,r.to.y,y)),r.from.x!==r.to.x&&(v=e.effects.setTransition(a,c,r.from.x,v),y=e.effects.setTransition(a,c,r.to.x,y))),"content"!==p&&"both"!==p||r.from.y!==r.to.y&&(v=e.effects.setTransition(a,s,r.from.y,v),y=e.effects.setTransition(a,s,r.to.y,y)),h&&(n=e.effects.getBaseline(h,m),v.top=(m.outerHeight-v.outerHeight)*n.y+g.top,v.left=(m.outerWidth-v.outerWidth)*n.x+g.left,y.top=(m.outerHeight-y.outerHeight)*n.y+g.top,y.left=(m.outerWidth-y.outerWidth)*n.x+g.left),a.css(v),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(s),c=c.concat(["marginLeft","marginRight"]),a.find("*[width]").each((function(){var i=e(this),n=e.effects.scaledDimensions(i),o={height:n.height*r.from.y,width:n.width*r.from.x,outerHeight:n.outerHeight*r.from.y,outerWidth:n.outerWidth*r.from.x},a={height:n.height*r.to.y,width:n.width*r.to.x,outerHeight:n.height*r.to.y,outerWidth:n.width*r.to.x};r.from.y!==r.to.y&&(o=e.effects.setTransition(i,l,r.from.y,o),a=e.effects.setTransition(i,l,r.to.y,a)),r.from.x!==r.to.x&&(o=e.effects.setTransition(i,c,r.from.x,o),a=e.effects.setTransition(i,c,r.to.x,a)),d&&e.effects.saveStyle(i),i.css(o),i.animate(a,t.duration,t.easing,(function(){d&&e.effects.restoreStyle(i)}))}))),a.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=a.offset();0===y.opacity&&a.css("opacity",v.opacity),d||(a.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(a)),i()}})})),e.effects.define("scale",(function(t,i){var n=e(this),r=t.mode,o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==r?0:100),a=e.extend(!0,{from:e.effects.scaledDimensions(n),to:e.effects.scaledDimensions(n,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(a.from.opacity=1,a.to.opacity=0),e.effects.effect.size.call(this,a,i)})),e.effects.define("puff","hide",(function(t,i){var n=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,n,i)})),e.effects.define("pulsate","show",(function(t,i){var n=e(this),r=t.mode,o="show"===r,a=o||"hide"===r,s=2*(t.times||5)+(a?1:0),l=t.duration/s,c=0,u=1,d=n.queue().length;for(!o&&n.is(":visible")||(n.css("opacity",0).show(),c=1);u<s;u++)n.animate({opacity:c},l,t.easing),c=1-c;n.animate({opacity:c},l,t.easing),n.queue(i),e.effects.unshift(n,d,s+1)})),e.effects.define("shake",(function(t,i){var n=1,r=e(this),o=t.direction||"left",a=t.distance||20,s=t.times||3,l=2*s+1,c=Math.round(t.duration/l),u="up"===o||"down"===o?"top":"left",d="up"===o||"left"===o,p={},h={},f={},g=r.queue().length;for(e.effects.createPlaceholder(r),p[u]=(d?"-=":"+=")+a,h[u]=(d?"+=":"-=")+2*a,f[u]=(d?"-=":"+=")+2*a,r.animate(p,c,t.easing);n<s;n++)r.animate(h,c,t.easing).animate(f,c,t.easing);r.animate(h,c,t.easing).animate(p,c/2,t.easing).queue(i),e.effects.unshift(r,g,l+1)})),e.effects.define("slide","show",(function(t,i){var n,r,o=e(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0),p={};e.effects.createPlaceholder(o),n=o.cssClip(),r=o.position()[c],p[c]=(u?-1:1)*d+r,p.clip=o.cssClip(),p.clip[a[l][1]]=p.clip[a[l][0]],"show"===s&&(o.cssClip(p.clip),o.css(c,p[c]),p.clip=n,p[c]=r),o.animate(p,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),!1!==e.uiBackCompat&&e.effects.define("transfer",(function(t,i){e(this).transfer(t,i)})),e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),e.fn.labels=function(){var t,i,n,r,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),(n=this.attr("id"))&&(o=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),i="label[for='"+e.ui.escapeSelector(n)+"']",r=r.add(o.find(i).addBack(i))),this.pushStack(r))},e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!n||"static"!==t.css("position"))&&r.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:e(this[0].ownerDocument||document)},e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}}(),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),function(e){e.fn.emulateTransitionEnd=function(t){var i=!1,n=this;return e(this).one("bsTransitionEnd",(function(){i=!0})),setTimeout((function(){i||e(n).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(f),function(e){function t(t){return this.each((function(){var n=e(this),r=n.data("bs.affix"),o="object"==typeof t&&t;r||n.data("bs.affix",r=new i(this,o)),"string"==typeof t&&r[t]()}))}var i=function(t,n){this.options=e.extend({},i.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="2.3.27",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(e,t,i,n){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return r<i&&"top";if("bottom"==this.affixed)return null!=i?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=e-n)&&"bottom";var s=null==this.affixed,l=s?r:o.top;return null!=i&&r<=i?"top":null!=n&&l+(s?a:t)>=e-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,r=n.top,o=n.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(o=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,t,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-o})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var i=e(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(i,n)}))}))}(f),function(e){var t='[data-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.VERSION="2.3.27",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=e(this),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var a=e(o);t&&t.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var n=e.fn.alert;e.fn.alert=function(t){return this.each((function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)}))},e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=n,this},e(document).on("click.bs.alert.data-api",t,i.prototype.close)}(f),function(e){function t(t){return this.each((function(){var n=e(this),r=n.data("bs.button"),o="object"==typeof t&&t;r||n.data("bs.button",r=new i(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)}))}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="2.3.27",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",o=n.data();t+="Text",null==o.resetText&&n.data("resetText",n[r]()),setTimeout(e.proxy((function(){n[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))}),this),0)},i.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=i,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(i){var n=e(i.target);n.hasClass("btn")||(n=n.closest(".btn")),t.call(n,"toggle"),e(i.target).is('input[type="radio"]')||e(i.target).is('input[type="checkbox"]')||i.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(f),function(e){function t(t){return this.each((function(){var n=e(this),r=n.data("bs.carousel"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t),a="string"==typeof t?t:o.slide;r||n.data("bs.carousel",r=new i(this,o)),"number"==typeof t?r.to(t):a?r[a]():o.interval&&r.pause().cycle()}))}var i=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};i.VERSION="2.3.27",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},i.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},i.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",this.$items.eq(e))},i.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(t,n){var r=this.$element.find(".item.active"),o=n||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",(function(){o.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(p)}),0)})).emulateTransitionEnd(i.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),a&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=i,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var r=function(i){var n,r=e(this),o=e(r.attr("data-target")||(n=r.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=e.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(o,a),s&&o.data("bs.carousel").to(s),i.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var i=e(this);t.call(i,i.data())}))}))}(f),function(e){function t(t){var i,n=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(n)}function i(t){return this.each((function(){var i=e(this),r=i.data("bs.collapse"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||i.data("bs.collapse",r=new n(this,o)),"string"==typeof t&&r[t]()}))}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="2.3.27",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[a](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[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 r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[i](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION):r.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(i,n){var r=e(n);this.addAriaAndCollapsedClass(t(r),r)}),this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(n){var r=e(this);r.attr("data-target")||n.preventDefault();var o=t(r),a=o.data("bs.collapse")?"toggle":r.data();i.call(o,a)}))}(f),function(e){f.fn.comboxPanel={defaults:{width:null,height:100,"max-width":null,"max-height":null}};var t=function(t,i){var n=this;this.options=i,this.$element=e(t),this.$selectButton=e('<button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>'),this.$clearButton=e('<button class="btn-clear hide" type="button"><span class="glyphicon glyphicon-close"></span></button>'),this.$panel=e('<div class="combox-select-content"></div>'),e.isFunction(this.options.htmlElement)?this.$content=this.options.htmlElement(this.options.tplData):this.$content=this.options.htmlElement,this.$element.parent().hasClass("combox-select-container")||this.$element.wrap('<div class="combox-select-container"></div>'),i.width&&this.$panel.css({width:i.width}),i.height&&this.$panel.css({height:i.height}),i["max-width"]&&this.$panel.css({"max-width":i["max-width"]}),i["max-height"]&&this.$panel.css({"max-height":i["max-height"]}),i.cancelable&&(this.$element.after(this.$clearButton),this.$clearButton.on("click",(function(){n.$element.val(""),n.$clearButton.addClass("hide"),e.isFunction(n.options.onClear)&&n.options.onClear()}))),e("body").append(this.$panel),this.$element.after(this.$selectButton),this.$panel.html(this.$content),this.$selectButton.on("click",(function(){n.$panel.toggleClass("active"),n.$panel.hasClass("active")?n.show():n.hide()})),this.$element.on("click",(function(){n.$panel.toggleClass("active"),n.$panel.hasClass("active")?n.show():n.hide()})),this.$element.parent().hover((function(){n.$element.val()&&n.$clearButton.removeClass("hide")}),(function(){n.$clearButton.addClass("hide")}))};t.prototype.backdrop=function(){var t=this;if(e(".global-backdrop").length>0)return f.Logger.log("warn","has exist backdrop, do not repeat to create it."),void(this.$backdrop=e(".global-backdrop"));var i=e('<div class="global-backdrop"></div>');e("body").append(i),this.$backdrop=i,i.on("click",(function(e){t.hide(),e.stopPropagation()}))},t.DEFAULTS=f.fn.comboxPanel.defaults,t.prototype.show=function(t){var i=this.$element.offset(),n=this.$element.outerHeight();this.$panel.css({left:i.left,top:i.top+n}),this.$panel.addClass("active"),this.$backdrop||this.backdrop(),this.options.onShow&&e.isFunction(this.options.onShow)&&this.options.onShow(this)},t.prototype.hide=function(t){this.$panel.removeClass("active"),this.$backdrop.remove(),this.$backdrop=null,this.options.onHide&&e.isFunction(this.options.onHide)&&this.options.onHide(this)},e.fn.comboxPanel=function(i){return this.each((function(){var n=e(this),r=n.data("bs.comboxPanel"),o=e.extend({},t.DEFAULTS,"object"==typeof i&&i);r||n.data("bs.comboxPanel",r=new t(this,o)),"string"==typeof i&&r[i]()}))}}(f),e.ui.confirm=function(t){e.extend(this,t),this._init()},e.extend(e.ui.confirm,{version:"2.3.27"}),e.ui.confirm.defaults={template:'<div class="jconfirm"><div class="jconfirm-bg"></div><div class="jconfirm-scrollpane"><div class="container"><div class="row"><div class="jconfirm-box-container"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="closeIcon">×</div><div class="title-c"><span class="icon-c"></span><span class="title"></span></div><div class="content-pane"><div class="content"></div></div><div class="buttons"></div><div class="eui-clear"></div></div></div></div></div></div></div>',title:"Hello",content:"Are you sure to continue?",contentLoaded:function(){},icon:"",opacity:.2,confirmButton:"Okay",cancelButton:"Close",confirmButtonClass:"btn-default",cancelButtonClass:"btn-default",theme:"white",animation:"zoom",closeAnimation:"scale",animationSpeed:500,animationBounce:1.2,keyboardEnabled:!1,rtl:!1,confirmKeys:[13],cancelKeys:[27],container:"body",confirm:function(){},cancel:function(){},backgroundDismiss:!1,autoClose:!1,closeIcon:null,closeIconClass:!1,watchInterval:100,draggable:!0,dragWindowBorder:!0,dragWindowGap:15,alignMiddle:!0,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-6 col-xs-offset-3",onOpen:function(){},onClose:function(){},onAction:function(){}},e.ui.confirm.prototype={_init:function(){var e=this;this._rand=Math.round(99999*Math.random()),this._buildHTML(),this._bindEvents(),setTimeout((function(){e.open(),e._watchContent()}),0)},_buildHTML:function(){var t=this;this.animation="anim-"+this.animation.toLowerCase(),this.closeAnimation="anim-"+this.closeAnimation.toLowerCase(),this.theme="jconfirm-"+this.theme.toLowerCase(),"anim-none"==this.animation&&(this.animationSpeed=0),this._lastFocused=e("body").find(":focus"),this.$el=e(this.template).appendTo(this.container).addClass(this.theme),this.$el.find(".jconfirm-box-container").addClass(this.columnClass),this.$el.find(".jconfirm-bg").css(this._getCSS(this.animationSpeed,1)),this.$el.find(".jconfirm-bg").css("opacity",this.opacity),this.$b=this.$el.find(".jconfirm-box").css(this._getCSS(this.animationSpeed,this.animationBounce)).addClass(this.animation),this.$body=this.$b,this.rtl&&this.$el.addClass("rtl"),this._contentReady=e.Deferred(),this._modalReady=e.Deferred(),this.$title=this.$el.find(".title"),this.$titleContainer=this.$el.find(".title-c"),this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container"),this.contentDiv=this.$el.find("div.content"),this.$content=this.contentDiv,this.$contentPane=this.$el.find(".content-pane"),this.$icon=this.$el.find(".icon-c"),this.$closeIcon=this.$el.find(".closeIcon"),this.$contentPane.css(this._getCSS(this.animationSpeed,1)),this.setTitle(),this.setIcon(),this._setButtons(),this.initDraggable(),this.closeIconClass&&this.$closeIcon.html('<i class="'+this.closeIconClass+'"></i>'),t._contentHash=this._hash(t.$content.html()),e.when(this._contentReady,this._modalReady).then((function(){t.setContent(),t.setTitle(),t.setIcon()})),this._getContent(),this._imagesLoaded(),this.autoClose&&this._startCountDown()},_unwatchContent:function(){clearInterval(this._timer)},_hash:function(){return btoa(encodeURIComponent(this.$content.html()))},_watchContent:function(){var e=this;this._timer=setInterval((function(){var t=e._hash(e.$content.html());e._contentHash!=t&&(e._contentHash=t,e.setDialogCenter(),e._imagesLoaded())}),this.watchInterval)},_bindEvents:function(){var t=this,i=!1;this.$el.find(".jconfirm-scrollpane").click((function(e){i||(t.backgroundDismiss?(t.cancel(),t.close()):(t.$b.addClass("hilight"),setTimeout((function(){t.$b.removeClass("hilight")}),800))),i=!1})),this.$el.find(".jconfirm-box").click((function(e){i=!0})),this.$confirmButton&&this.$confirmButton.click((function(e){e.preventDefault();var i=t.confirm(t.$b);t._stopCountDown(),t.onAction("confirm"),(void 0===i||i)&&t.close()})),this.$cancelButton&&this.$cancelButton.click((function(e){e.preventDefault();var i=t.cancel(t.$b);t._stopCountDown(),t.onAction("cancel"),(void 0===i||i)&&t.close()})),this.$closeButton&&this.$closeButton.click((function(e){e.preventDefault(),t._stopCountDown(),t.cancel(),t.onAction("close"),t.close()})),this.keyboardEnabled&&setTimeout((function(){e(window).on("keyup."+this._rand,(function(e){t.reactOnKey(e)}))}),500),e(window).on("resize."+this._rand,(function(){t.setDialogCenter(!0)}))},_getCSS:function(e,t){return{"-webkit-transition-duration":e/1e3+"s","transition-duration":e/1e3+"s","-webkit-transition-timing-function":"cubic-bezier(.36,1.1,.2, "+t+")","transition-timing-function":"cubic-bezier(.36,1.1,.2, "+t+")"}},_imagesLoaded:function(){var t=this;e.each(this.$content.find("img:not(.loaded)"),(function(i,n){var r=setInterval((function(){"0px"!==e(n).css("height")&&(e(n).addClass("loaded"),t.setDialogCenter(),clearInterval(r))}),40)}))},_setButtons:function(){this.$btnc=this.$el.find(".buttons"),this.confirmButton&&""!==e.trim(this.confirmButton)&&(this.$confirmButton=e('<button type="button" class="btn">'+this.confirmButton+"</button>").appendTo(this.$btnc).addClass(this.confirmButtonClass)),this.cancelButton&&""!==e.trim(this.cancelButton)&&(this.$cancelButton=e('<button type="button" class="btn">'+this.cancelButton+"</button>").appendTo(this.$btnc).addClass(this.cancelButtonClass)),this.confirmButton||this.cancelButton||this.$btnc.hide(),this.confirmButton||this.cancelButton||null!==this.closeIcon||(this.$closeButton=this.$b.find(".closeIcon").show()),!0===this.closeIcon&&(this.$closeButton=this.$b.find(".closeIcon").show())},setTitle:function(e){this.title=void 0!==e?e:this.title,this.$title.html(this.title||"")},setIcon:function(e){this.title="undefined"!=typeof string?e:this.title,this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':"")},setContent:function(e){this.content=void 0===e?this.content:e,""==this.content?(this.$content.html(this.content),this.$contentPane.hide()):(this.$content.html(this.content),this.$contentPane.show()),this.$content.hasClass("loading")&&(this.$content.removeClass("loading"),this.$btnc.find("button").prop("disabled",!1))},initDraggable:function(){var t=this,i=this.$titleContainer;this.resetDrag(),this.draggable&&(i.on("mousedown",(function(e){i.addClass("jconfirm-hand"),t.mouseX=e.clientX,t.mouseY=e.clientY,t.isDrag=!0})),e(window).on("mousemove."+this._id,(function(e){t.isDrag&&(t.movingX=e.clientX-t.mouseX+t.initialX,t.movingY=e.clientY-t.mouseY+t.initialY,t.setDrag())})),e(window).on("mouseup."+this._id,(function(){i.removeClass("jconfirm-hand"),t.isDrag&&(t.isDrag=!1,t.initialX=t.movingX,t.initialY=t.movingY)})))},resetDrag:function(){this.isDrag=!1,this.initialX=0,this.initialY=0,this.movingX=0,this.movingY=0,this.mouseX=0,this.mouseY=0,this.$jconfirmBoxContainer.css("transform","translate(0px, 0px)")},setDrag:function(){if(this.draggable){this.alignMiddle=!1;var t=this.$b.outerWidth(),i=this.$b.outerHeight(),n=e(window).width(),r=e(window).height(),o=this;if(o.movingX%1==0||o.movingY%1==0){if(o.dragWindowBorder){var a=n/2-t/2,s=r/2-i/2;s-=o.dragWindowGap,(a-=o.dragWindowGap)+o.movingX<0?o.movingX=-a:a-o.movingX<0&&(o.movingX=a),s+o.movingY<0?o.movingY=-s:s-o.movingY<0&&(o.movingY=s)}o.$jconfirmBoxContainer.css("transform","translate("+o.movingX+"px, "+o.movingY+"px)")}}},_getContent:function(t){var i=this;if(t=t||this.content,this._isAjax=!1,this.content)if("string"==typeof this.content)if("url:"===this.content.substr(0,4).toLowerCase()){this._isAjax=!0,this.$content.addClass("loading"),this.$btnc.find("button").prop("disabled",!0);var n=this.content.substring(4,this.content.length);e.get(n).done((function(e){i.content=e,i._contentReady.resolve()})).always((function(e,t,n){"function"==typeof i.contentLoaded&&i.contentLoaded(e,t,n)}))}else this.setContent(this.content),this._contentReady.reject();else if("function"==typeof this.content){this.$content.addClass("loading"),this.$btnc.find("button").attr("disabled","disabled");var r=this.content(this);"object"!=typeof r?console.error("The content function must return eui promise."):"function"!=typeof r.always?console.error("The object returned is not a eui promise."):(this._isAjax=!0,r.always((function(e,t){i._contentReady.resolve()})))}else console.error("Invalid option for property content, passed: "+typeof this.content);else this.content="",this.setContent(this.content),this._contentReady.reject();this.setDialogCenter()},_stopCountDown:function(){clearInterval(this.timerInterval),this.$cd&&this.$cd.remove()},_startCountDown:function(){var t=this.autoClose.split("|");if(/cancel/.test(t[0])&&"alert"===this.type)return!1;if(/confirm|cancel/.test(t[0])){this.$cd=e('<span class="countdown">').appendTo(this["$"+t[0]+"Button"]);var i=this;i.$cd.parent().click();var n=t[1]/1e3;this.timerInterval=setInterval((function(){i.$cd.html(" ("+(n-=1)+")"),0===n&&(i.$cd.html(""),i.$cd.parent().trigger("click"),clearInterval(i.timerInterval))}),1e3)}else console.error("Invalid option "+t[0]+", must be confirm/cancel")},reactOnKey:function(t){var i=e(".jconfirm");if(i.eq(i.length-1)[0]!==this.$el[0])return!1;var n=t.which;return(!this.contentDiv.find(":input").is(":focus")||!/13|32/.test(n))&&(-1!==e.inArray(n,this.cancelKeys)&&(this.$cancelButton?this.$cancelButton.click():this.close()),void(-1!==e.inArray(n,this.confirmKeys)&&this.$confirmButton&&this.$confirmButton.click()))},setDialogCenter:function(){if("none"==this.$contentPane.css("display"))var t=0,i=0;else t=this.$content.outerHeight(),0==(i=this.$contentPane.height())&&(i=t);var n=this.$content.outerWidth();this.$content.css({clip:"rect(0px "+(100+n)+"px "+t+"px -100px)"}),this.$contentPane.css({height:t});var r=e(window).height(),o=this.$b.outerHeight()-i+t,a=(r-o)/2;if(o>r-100){var s={"margin-top":50,"margin-bottom":50};e("body").addClass("jconfirm-noscroll")}else s={"margin-top":a},e("body").removeClass("jconfirm-noscroll");this.$b.css(s)},close:function(){var t=this;if(this.isClosed())return!1;"function"==typeof this.onClose&&this.onClose(),this._unwatchContent(),t._lastFocused.focus(),e(window).unbind("resize."+this._rand),this.keyboardEnabled&&e(window).unbind("keyup."+this._rand),t.$el.find(".jconfirm-bg").removeClass("seen"),e("body").removeClass("jconfirm-noscroll"),this.$b.addClass(this.closeAnimation);var i="anim-none"==this.closeAnimation?0:this.animationSpeed;return setTimeout((function(){t.$el.remove()}),25*i/100),c.record.closed+=1,c.record.currentlyOpen-=1,!0},open:function(){var e=this;if(this.isClosed())return!1;e.$el.find(".jconfirm-bg").addClass("seen"),this.$b.removeClass(this.animation),this.$b.find("input[autofocus]:visible:first").focus(),c.record.opened+=1,c.record.currentlyOpen+=1,"function"==typeof this.onOpen&&this.onOpen();var t="jconfirm-box"+this._rand;return this.$b.attr("aria-labelledby",t).attr("tabindex",-1).focus(),this.$title?this.$title.attr("id",t):this.$content&&this.$content.attr("id",t),setTimeout((function(){e.$b.css({"transition-property":e.$b.css("transition-property")+", margin"}),e._modalReady.resolve()}),this.animationSpeed),!0},isClosed:function(){return""===this.$el.css("display")}},e.fn.confirm=function(t,i){return void 0===t&&(t={}),"string"==typeof t&&(t={content:t,title:!!i&&i}),e(this).each((function(){var i=e(this);i.on("click",(function(n){n.preventDefault();var r=e.extend({},t);i.attr("data-title")&&(r.title=i.attr("data-title")),i.attr("data-content")&&(r.content=i.attr("data-content")),r.$target=i,i.attr("href")&&!t.confirm&&(r.confirm=function(){location.href=i.attr("href")}),e.confirm(r)}))})),e(this)},e.confirm=function(e,t){return void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:!!t&&t}),c(e)},e.alert=function(e,t){return void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:!!t&&t}),e.cancelButton=!1,c(e)},e.dialog=function(e,t){return void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:!!t&&t}),e.cancelButton=!1,e.confirmButton=!1,e.confirmKeys=[13],c(e)},(c=function(t){return void 0===t&&(t={}),t=e.extend({},e.ui.confirm.defaults,t),new e.ui.confirm(t)}).record={opened:0,closed:0,currentlyOpen:0},e.extend(e.ui,{datepicker:{version:"2.3.27"}}),e.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,r,o;r="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(o=this._newInst(e(t),r)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,o):r&&this._inlineDatepicker(t,o)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?i(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);if(i.append=e([]),i.trigger=e([]),!n.hasClass(this.markerClassName)&&(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t),i.settings.defaultDate&&i.settings.autoShowDefaultDate)){var r=this._getDefaultDate(i);r&&this._setDate(i,r,!0)}},_attachments:function(t,i){var n,r,o,a=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=e("<span class='"+this._appendClass+"'>"+a+"</span>"),t[s?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(i,"buttonText"),o=this._get(i,"buttonIcon"),i.trigger=e(this._get(i,"buttonImageOnly")?e("<i></i>").addClass(this._triggerClass).attr({class:o,alt:r,title:r}):e("<button type='button'></button>").addClass(this._triggerClass).html(o?e("<i></i>").attr({class:o,alt:r,title:r}):r)),t[s?"before":"after"](i.trigger),i.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,r,o=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(i=0,n=0,r=0;r<e.length;r++)e[r].length>i&&(i=e[r].length,n=r);return n},o.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,o,a){var s,l,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",p)),r(p.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(t){var i,n=e(t),r=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),u===r&&(u=null))},_enableDatepicker:function(t){var i,n,r=e(t),o=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var i,n,r=e(t),o=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var o,a,s,l,c=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null:(o=i||{},"string"==typeof i&&((o={})[i]=n),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),r(c.settings,o),null!==s&&void 0!==o.dateFormat&&void 0===o.minDate&&(c.settings.minDate=this._formatDate(c,s)),null!==l&&void 0!==o.dateFormat&&void 0===o.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in o&&(o.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,r,o=e.datepicker._getInst(t.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),a=!1;break;case 13:return(r=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",o.dpDiv))[0]&&e.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,r[0]),(i=e.datepicker._get(o,"onSelect"))?(n=e.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,r=e.datepicker._getInst(t.target);if(e.datepicker._get(r,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,o,a,s,l,c;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(o=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(r(i.settings,o),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each((function(){return!(a|="fixed"===e(this).css("position"))})),s={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),s=e.datepicker._checkOffset(i,s,a),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),c=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(t){this.maxRows=4,u=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,r=this._getNumberOfMonths(t),o=r[1],a=t.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&n.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout((function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null}),0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var r=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?r-a:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+s?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+o>c&&c>o?Math.abs(o+s):0),i},_findPos:function(t){for(var i,n=this._getInst(t),r=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[r?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,r,o,a=this._curInst;!a||t&&a!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){e.datepicker._tidyDialog(a)},e.effects&&(e.effects.effect[i]||e.effects[i])?a.dpDiv.hide(i,e.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var r=e(t),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,i+("M"===n?this._get(o,"showCurrentAtPos"):0),n),this._updateDatepicker(o))},_gotoToday:function(t){var i,n=e(t),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var r=e(t),o=this._getInst(r[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(t,i,n,r){var o,a=e(t);e(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=e("a",r).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,r=e(t),o=this._getInst(r[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(n=this._get(o,"onSelect"))?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,r,o=this._get(t,"altField");o&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),r=this.formatDate(i,n,this._getFormatConfig(t)),e(o).val(r))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var r,o,a,s,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,h=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,b=!1,w=function(e){var i=r+1<t.length&&t.charAt(r+1)===e;return i&&r++,i},_=function(e){var t=w(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,r=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),o=i.substring(l).match(r);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},x=function(t,n,r){var o=-1,a=e.map(w(t)?r:n,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(a,(function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return o=t[0],l+=n.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},$=function(){if(i.charAt(l)!==t.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<t.length;r++)if(b)"'"!==t.charAt(r)||w("'")?$():b=!1;else switch(t.charAt(r)){case"d":v=_("d");break;case"D":x("D",d,p);break;case"o":y=_("o");break;case"m":m=_("m");break;case"M":m=x("M",h,f);break;case"y":g=_("y");break;case"@":g=(s=new Date(_("@"))).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":g=(s=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":w("'")?$():b=!0;break;default:$()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),y>-1)for(m=1,v=y;!(v<=(o=this._getDaysInMonth(g,m-1)));)m++,v-=o;if((s=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},d="",p=!1;if(t)for(n=0;n<e.length;n++)if(p)"'"!==e.charAt(n)||l("'")?d+=e.charAt(n):p=!1;else switch(e.charAt(n)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),r,o);break;case"o":d+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),a,s);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":p=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){var t,i="",n=!1,r=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||r("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),o=r,a=this._getFormatConfig(e);try{o=this.parseDate(i,n,a)||r}catch(e){n=t?"":n}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=n?o.getDate():0,e.currentMonth=n?o.getMonth():0,e.currentYear=n?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var r=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,r=n.getFullYear(),o=n.getMonth(),a=n.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(r,o))}l=s.exec(i)}return new Date(r,o,a)}(i):"number"==typeof i?isNaN(i)?n:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(i):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,r=e.selectedMonth,o=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),r===e.selectedMonth&&o===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var t,i,n,r,o,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w,_,x,$,C,k,S,E,j,D,T,I,A,O,N,P,M,F,R,L,q=new Date,H=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth(),q.getDate())),z=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),G=this._get(e,"hideIfNoPrevNext"),U=this._get(e,"navigationAsDateFormat"),W=this._getNumberOfMonths(e),Y=this._get(e,"showCurrentAtPos"),V=this._get(e,"stepMonths"),K=1!==W[0]||1!==W[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),Z=e.drawMonth-Y,ee=e.drawYear;if(Z<0&&(Z+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-W[0]*W[1]+1,Q.getDate())),t=J&&t<J?J:t;this._daylightSavingAdjust(new Date(ee,Z,1))>t;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,i=this._get(e,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z-V,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+i+"</span></a>":G?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+i+"</span></a>",r=this._get(e,"nextText"),r=U?this.formatDate(r,this._daylightSavingAdjust(new Date(ee,Z+V,1)),this._getFormatConfig(e)):r,o=this._canAdjustMonth(e,1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+r+"</span></a>":G?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+r+"</span></a>",a=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:H,a=U?this.formatDate(a,s,this._getFormatConfig(e)):a,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",c=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(z?l:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(z?"":l)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),p=this._get(e,"dayNames"),h=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),m=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),w="",x=0;x<W[0];x++){for($="",this.maxRows=4,C=0;C<W[1];C++){if(k=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay)),S=" ui-corner-all",E="",K){if(E+="<div class='ui-datepicker-group",W[1]>1)switch(C){case 0:E+=" ui-datepicker-group-first",S=" ui-corner-"+(z?"right":"left");break;case W[1]-1:E+=" ui-datepicker-group-last",S=" ui-corner-"+(z?"left":"right");break;default:E+=" ui-datepicker-group-middle",S=""}E+="'>"}for(E+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===x?z?o:n:"")+(/all|right/.test(S)&&0===x?z?n:o:"")+this._generateMonthYearHeader(e,Z,ee,J,Q,x>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",j=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",_=0;_<7;_++)j+="<th scope='col'"+((_+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[D=(_+u)%7]+"'>"+h[D]+"</span></th>";for(E+=j+"</tr></thead><tbody>",T=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,T)),I=(this._getFirstDayOfMonth(ee,Z)-u+7)%7,A=Math.ceil((I+T)/7),O=K&&this.maxRows>A?this.maxRows:A,this.maxRows=O,N=this._daylightSavingAdjust(new Date(ee,Z,1-I)),P=0;P<O;P++){for(E+="<tr>",M=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(N)+"</td>":"",_=0;_<7;_++)F=m?m.apply(e.input?e.input[0]:null,[N]):[!0,""],L=(R=N.getMonth()!==Z)&&!y||!F[0]||J&&N<J||Q&&N>Q,M+="<td class='"+((_+u+6)%7>=5?" ui-datepicker-week-end":"")+(R?" ui-datepicker-other-month":"")+(N.getTime()===k.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===N.getTime()&&b.getTime()===k.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(R&&!v?"":" "+F[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(R&&!v||!F[2]?"":" title='"+F[2].replace(/'/g,"'")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(R&&!v?" ":L?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===H.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+(R?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);E+=M+"</tr>"}++Z>11&&(Z=0,ee++),$+=E+="</tbody></table>"+(K?"</div>"+(W[0]>0&&C===W[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=$}return w+=c,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,i,n,r,o,a,s){var l,c,u,d,p,h,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",w="";if(o||!m)w+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=r&&r.getFullYear()===i,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=r.getMonth())&&(w+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+s[u]+"</option>");w+="</select>"}if(y||(b+=w+(!o&&m&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),p=(new Date).getFullYear(),f=(h=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t})(d[0]),g=Math.max(f,h(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!o&&m&&v?"":" ")+w),b+"</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),r=e.selectedMonth+("M"===i?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(n,r))+("D"===i?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,r,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),r=i&&t<i?i:t;return n&&r>n?n:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var r=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(i,n+(t<0?t:r[0]*r[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var i,n,r=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),a=null,s=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(s+=n)),(!r||t.getTime()>=r.getTime())&&(!o||t.getTime()<=o.getTime())&&(!a||t.getFullYear()>=a)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new t,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.0-rc.2";var g=(e.datepicker,e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);e(document).on("mouseup",(function(){g=!1})),e.widget("ui.mouse",{version:"2.3.27",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!g){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),g=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,g=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={defaults:{},add:function(t,i,n){var r,o=e.ui[t].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(e,t,i,n){var r,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,i)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"2.3.27",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return this._blurActiveElement(t),!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]),n=e(t.target);this._getHandle(t)&&n.closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",t)&&i._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper),r=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,r=this.options,o=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),void((n=(i=e(r.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,r,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),a.grid&&(r=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-a.grid[1]:r+a.grid[1]:r,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var r=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,r))}))},stop:function(t,i,n){var r=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,(function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,r))}))},drag:function(t,i,n){e.each(n.sortables,(function(){var r=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(r=!1),r}))),r?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",t),n.dropped=o.element,e.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(t),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var r=e("body"),o=n.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(t,i,n){var r=n.options;r._cursor&&e("body").css("cursor",r._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var r=e(i.helper),o=n.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(t,i,n){var r=n.options;r._opacity&&e(i.helper).css("opacity",r._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var r=n.options,o=!1,a=n.scrollParentNotHidden[0],s=n.document[0];a!==s&&"HTML"!==a.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+a.offsetHeight-t.pageY<r.scrollSensitivity?a.scrollTop=o=a.scrollTop+r.scrollSpeed:t.pageY-n.overflowOffset.top<r.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+a.offsetWidth-t.pageX<r.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+r.scrollSpeed:t.pageX-n.overflowOffset.left<r.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(t.pageY-e(s).scrollTop()<r.scrollSensitivity?o=e(s).scrollTop(e(s).scrollTop()-r.scrollSpeed):e(window).height()-(t.pageY-e(s).scrollTop())<r.scrollSensitivity&&(o=e(s).scrollTop(e(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(t.pageX-e(s).scrollLeft()<r.scrollSensitivity?o=e(s).scrollLeft(e(s).scrollLeft()-r.scrollSpeed):e(window).width()-(t.pageX-e(s).scrollLeft())<r.scrollSensitivity&&(o=e(s).scrollLeft(e(s).scrollLeft()+r.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var r=n.options;n.snapElements=[],e(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each((function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})}))},drag:function(t,i,n){var r,o,a,s,l,c,u,d,p,h,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,b=y+n.helperProportions.height;for(p=n.snapElements.length-1;p>=0;p--)c=(l=n.snapElements[p].left-n.margins.left)+n.snapElements[p].width,d=(u=n.snapElements[p].top-n.margins.top)+n.snapElements[p].height,v<l-g||m>c+g||b<u-g||y>d+g||!e.contains(n.snapElements[p].item.ownerDocument,n.snapElements[p].item)?(n.snapElements[p].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=!1):("inner"!==f.snapMode&&(r=Math.abs(u-b)<=g,o=Math.abs(d-y)<=g,a=Math.abs(l-v)<=g,s=Math.abs(c-m)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),h=r||o||a||s,"outer"!==f.snapMode&&(r=Math.abs(u-y)<=g,o=Math.abs(d-b)<=g,a=Math.abs(l-m)<=g,s=Math.abs(c-v)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[p].snapping&&(r||o||a||s||h)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=r||o||a||s||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var r,o=n.options,a=e.makeArray(e(o.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));a.length&&(r=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each((function(t){e(this).css("zIndex",r+t)})),this.css("zIndex",r+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var r=e(i.helper),o=n.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(t,i,n){var r=n.options;r._zIndex&&e(i.helper).css("zIndex",r._zIndex)}}),e.ui.draggable,function(e){function t(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&e(i);return n&&n.length?n:t.parent()}function i(i){i&&3===i.which||(e(n).remove(),e(r).each((function(){var n=e(this),r=t(n),o={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(r[0],i.target)||(r.trigger(i=e.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",o))))})))}var n=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};o.VERSION="2.3.27",o.prototype.toggle=function(n){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),a=o.hasClass("open");if(i(),!a){e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",i);var s={relatedTarget:this};if(o.trigger(n=e.Event("show.bs.dropdown",s)),n.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},o.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=e(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var o=t(n),a=o.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&o.find(r).trigger("focus"),n.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each((function(){var i=e(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof t&&n[t].call(i)}))},e.fn.dropdown.Constructor=o,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(f),e.widget("ui.droppable",{version:"2.3.27",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(n)?n:function(e){return e.is(n)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if("accept"===t)this.accept=e.isFunction(i)?i:function(e){return e.is(i)};else if("scope"===t){var n=e.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current,r=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&m(n,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return r=!0,!1})),!r&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(n)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var m=e.ui.intersect=function(){function e(e,t,i){return e>=t&&e<t+i}return function(t,i,n,r){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,a=(t.positionAbs||t.position.absolute).top+t.margins.top,s=o+t.helperProportions.width,l=a+t.helperProportions.height,c=i.offset.left,u=i.offset.top,d=c+i.proportions().width,p=u+i.proportions().height;switch(n){case"fit":return c<=o&&s<=d&&u<=a&&l<=p;case"intersect":return c<o+t.helperProportions.width/2&&s-t.helperProportions.width/2<d&&u<a+t.helperProportions.height/2&&l-t.helperProportions.height/2<p;case"pointer":return e(r.pageY,u,i.proportions().height)&&e(r.pageX,c,i.proportions().width);case"touch":return(a>=u&&a<=p||l>=u&&l<=p||a<u&&l>p)&&(o>=c&&o<=d||s>=c&&s<=d||o<c&&s>d);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,r,o=e.ui.ddmanager.droppables[t.options.scope]||[],a=i?i.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||t&&!o[n].accept.call(o[n].element[0],t.currentItem||t.element))){for(r=0;r<s.length;r++)if(s[r]===o[n].element[0]){o[n].proportions().height=0;continue e}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===a&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(t,i){var n=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&m(t,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}))},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,r,o,a=m(t,this,this.options.tolerance,i),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===r}))).length&&((n=e(o[0]).droppable("instance")).greedyChild="isover"===s)),n&&"isover"===s&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,i),n&&"isout"===s&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable,function(e){function t(t,n){return this.each((function(){var r=e(this),o=r.data("bs.modal"),a=e.extend({},i.DEFAULTS,r.data(),"object"==typeof t&&t);o||r.data("bs.modal",o=new i(this,a)),"string"==typeof t?o[t](n):a.show&&o.show(n)}))}var i=function(t,i){if(this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.$backdropContainer=e(document.body),this.$positionTarget=e(document.body),this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this)),"bottom"==this.options.fadeInDirection&&this.$element.hasClass("fade")&&this.$element.removeClass("fade").addClass("fade-bottom"),this.options.backdropTarget&&(this.$backdropContainer=e(this.options.backdropTarget)),this.options.positionTarget&&(this.$positionTarget=e(this.options.positionTarget)),"relative"===this.options.position){var n=this.$positionTarget.offset();this.options.direction={"margin-top":n.top+this.$positionTarget[0].offsetHeight+4,"margin-left":n.left}}else if(this.options.inModal&&"bottom"===this.options.position){n=this.$positionTarget.offset();var r=parseInt(this.$dialog.css("margin-top").replace("px","")),o=this.$positionTarget[0].offsetHeight-this.$dialog[0].offsetHeight-r;this.options.direction={top:n.top+o,left:n.left},e.extend(!0,this.options.direction,{position:"absolute"})}else this.options.inModal&&"full"===this.options.position&&(n=this.$positionTarget.offset(),r=parseInt(this.$dialog.css("margin-top").replace("px","")),this.options.direction={top:n.top-r,left:n.left},e.extend(!0,this.options.direction,{position:"absolute"}));this.$dialog.css(this.options.direction)};i.VERSION="2.0.3",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0,draggable:!1,inModal:!1,position:"center",direction:{},backdropTarget:null,positionTarget:null,fadeInDirection:"top"},i.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},i.prototype.show=function(t){var n=this,r=e.Event("show.bs.modal",{relatedTarget:t});if(this.options.draggable){var o=this.$element.find(".modal-header");"move"!=o.css("cursor")&&o.css("cursor","move"),this.$dialog.css({margin:0,left:(e(window).width()-this.$dialog.width())/2,top:30}),this.$dialog.draggable({handle:o,containment:"parent"})}this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){n.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),r&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});r?n.$dialog.one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)})))},i.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$backdropContainer),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){n.removeBackdrop(),t&&t()};if(this.options.inModal)return void a();e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=i,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(i){var n=e(this),r=n.attr("href"),o=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=(o.find(".modal-header"),o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},o.data(),n.data()));n.is("a")&&i.preventDefault(),o.one("show.bs.modal",(function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),t.call(o,a,this)}))}(f),function(e){function t(e){var t=this.value.length;if(e="start"==e.toLowerCase()?"Start":"End",document.selection){var i,n,r,o=document.selection.createRange();return(i=o.duplicate()).expand("textedit"),i.setEndPoint("EndToEnd",o),r=(n=i.text.length-o.text.length)+o.text.length,"Start"==e?n:r}return void 0!==this["selection"+e]&&(t=this["selection"+e]),t}e.fn.isIllgalNumber=function(e,t,i){var n=e.substr(e.length-1,1),r=e.substr(0,e.length-1),o=i?t?/^\d{1,3}(,\d{3})*(.\d+)?$/:/^(-)?\d{1,3}(,\d{3})*(.\d+)?$/:t?/^(\d+)?(\.(\d+)?)?$/:/^(-)?(\d+)?(\.(\d+)?)?$/;return 1==e.length&&/[0-9]/.test(n)||e.length>=2&&/[0-9.KkMm]/.test(n)&&o.test(r)};var i={codes:{46:127,188:44,109:45,190:46,191:47,192:96,220:92,222:39,221:93,219:91,173:45,187:61,186:59,189:45,110:46},shifts:{96:"~",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",48:")",45:"_",61:"+",91:"{",93:"}",92:"|",59:":",39:'"',44:"<",46:">",47:"?"}};e.numberOptions={defaults:{thousandsSeparator:",",separator:".",decimals:2,number:!0,positive:!1,onKeyDown:function(){},onKeyUp:function(){},beforeFocus:function(){},beforeBlur:function(){},max:null,min:null}},e.fn.number=function(n){var r=arguments,o=n,a=e.numberOptions.defaults;0==r.length?o=e.extend(!0,{},a):1==r.length?e.isObject(n)?o=e.extend(!0,{},a,o):e.isNumber(n)&&(n=e.extend(!0,{},a,{decimals:o})):2==r.length&&(o=e.extend(!0,{},a,{decimals:r[0],navgative:r[1]}));var s=o.number,l=o.decimals,c=o.separator,u=o.thousandsSeparator,d=o.positive,p=o.onKeyDown,h=o.onKeyUp,f=o.beforeFocus,g=o.beforeBlur,m=o.max,v=o.min,y="\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4),b=new RegExp("[^"+y+"0-9]","g"),w=new RegExp(y,"g");return!0===s?this.is("input:text")?(this.off("keydown.format").off("keyup.format").off("paste.format").off("blur.format"),this.on({"keydown.format":function(n){var r=e(this),a=r.data("numFormat"),s=n.keyCode?n.keyCode:n.which,u="",h=t.apply(this,["start"]),f=t.apply(this,["end"]);if(e.isFunction(p)&&0==p.call(r,r.val(),this.value,[o,s,h,f,n]))return n.preventDefault(),!1;if(d&&(109==s||189==s))return n.preventDefault(),!1;if(i.codes.hasOwnProperty(s)&&(s=i.codes[s]),!n.shiftKey&&s>=65&&s<=90?s+=32:!n.shiftKey&&s>=69&&s<=105?s-=48:n.shiftKey&&i.shifts.hasOwnProperty(s)&&(u=i.shifts[s]),""==u&&(u=String.fromCharCode(s)),8!=s&&45!=s&&127!=s&&u!=c&&!u.match(/[0-9]/)){var g=n.keyCode?n.keyCode:n.which;if(46==g||8==g||127==g||9==g||27==g||13==g||(65==g||82==g||80==g||83==g||70==g||72==g||66==g||74==g||84==g||90==g||61==g||173==g||48==g)&&!0===(n.ctrlKey||n.metaKey)||g>=35&&g<=39||g>=112&&g<=123||75==g||77==g)return;return n.preventDefault(),!1}0==h&&f==this.value.length&&(8==s?(h=f=1,this.value=""):u==c&&(h=f=1,this.value="0"+c)),a.isPartialSelection=h!=f,(l>0&&u==c&&this.value.indexOf(c)>=0||0==l&&u==c||45==s&&(0!=h||0!==n.target.selectionStart&&0==this.value.indexOf("-")))&&n.preventDefault(),r.data("numFormat",a)},"keyup.format":function(t){var i=e(this),n=t.keyCode;e.isFunction(h)&&h.call(i,i.val(),this.value,[o,n,t])},"paste.format":function(t){var i=e(this),n=t.originalEvent,r=null;return window.clipboardData&&window.clipboardData.getData?r=window.clipboardData.getData("Text"):n.clipboardData&&n.clipboardData.getData&&(r=n.clipboardData.getData("text/plain")),i.val(r),t.preventDefault(),!1},"blur.format":function(t){var i=e(this),r=this.value;if((!e.isFunction(g)||!1!==g.call(i,i.val(),this.value,[o,t]))&&i.isIllgalNumber(r,n.positive)){if(r.length>=2){var a=r.substr(r.length-1,1);"k"==a||"K"==a?r=1e3*parseFloat(r):"m"!=a&&"M"!=a||(r=1e6*parseFloat(r))}m&&r>m?r=m:v&&r<v&&(r=v),i.val(r)}},"focus.format":function(t){var i=e(this),r=(t.originalEvent,i.val());if((!e.isFunction(f)||!1!==f.call(i,i.val(),this.value,[o,t]))&&i.isIllgalNumber(this.value,n.positive,!0)&&(this.value=r,this.createTextRange)){var a=this.createTextRange();a.moveStart("character",r.length),a.collapse(!0),a.select()}}}).each((function(){var t=e(this).data("numFormat",{c:-(l+1),decimals:l,thousands_sep:u,dec_point:c,regex_dec_num:b,regex_dec:w,init:!!this.value.indexOf(".")});""!==this.value&&t.val(t.val())}))):this.each((function(){var t=e(this),i=+t.text().replace(b,"").replace(w,".");t.number(isFinite(i)?+i:0,l,c,u)})):this.text(e.number.apply(window,arguments))};var n=null,r=null;e.isPlainObject(e.valHooks.text)?(e.isFunction(e.valHooks.text.get)&&(n=e.valHooks.text.get),e.isFunction(e.valHooks.text.set)&&(r=e.valHooks.text.set)):e.valHooks.text={},e.valHooks.text.get=function(t){var i,r=e(t).data("numFormat");return r?""===t.value?"":(i=+t.value.replace(r.regex_dec_num,"").replace(r.regex_dec,"."),(0===t.value.indexOf("-")?"-":"")+(isFinite(i)?i:0)):e.isFunction(n)?n(t):void 0},e.valHooks.text.set=function(t,i){var n=e(t).data("numFormat");if(n){var o=e.number(i,n.decimals,n.dec_point,n.thousands_sep);return e.isFunction(r)?r(t,o):t.value=o}return e.isFunction(r)?r(t,i):void 0},e.number=function(e,t,i,n){if(e){n=void 0===n?"1000"!==new Number(1e3).toLocaleString()?new Number(1e3).toLocaleString().charAt(1):"":n,i=void 0===i?new Number(.1).toLocaleString().charAt(1):i,t=isFinite(+t)?Math.abs(t):0;var r="\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4),o="\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4);e=(e+"").replace(".",i).replace(new RegExp(o,"g"),"").replace(new RegExp(r,"g"),".").replace(new RegExp("[^0-9+-Ee.]","g"),"");var a=isFinite(+e)?+e:0,s="",l=a.toString().split(".")[1]?a.toString().split(".")[1].length:0;return(s=(t?function(e,t){return""+ +(Math.round((""+e).indexOf("e")>0?e:e+"e+"+t)+"e-"+t)}(a,l):""+Math.round(a)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,n)),(s[1]||"").length<t?(s[1]=s[1]||"",s[1]+=new Array(t-s[1].length+1).join("0")):(s[1]||"").length>t&&(s[1]=s[1].substr(0,t)),s.join(i)}}}(f),e.widget("ui.numberspinner",{version:"2.3.27",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null,decimal:0,value:0,positive:!1},_create:function(){this.options.positive&&(this.options.min&&this.options.min<0||!this.options.min)&&(this.options.min=0),this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return e.each(["min","max","step"],(function(e,n){var r=i.attr(n);null!=r&&r.length&&(t[n]=r)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(e)}),100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}var n;n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton");var e,t={max:this.options.max,min:this.options.min,decimals:this.options.decimal,positive:this.options.positive};this.element.number(t),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height()),null!=(e=null!=this.options.value?this.options.value:this.element.val()?parseFloat(this.element.val()):null)&&null!=this.options.min&&e<this.options.min&&(e=this.options.min),null!=e&&this.element.val(e.toFixed(this.options.decimal))},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,i)}),e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i=this.options;return e=(t=null!==i.min?i.min:0)+(e-t),e=parseFloat(e).toFixed(this.options.decimal),null!==i.max&&e>i.max?i.max:null!==i.min&&e<i.min?i.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,r;return"culture"===e||"numberFormat"===e?(i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i))):("max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down)),void this._super(e,t))},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:o((function(e){var t=this._super(e).options;t.decimal>=0&&(t.decimals=t.decimal),this.element.number(t)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:o((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:o((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:o((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:o((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){return arguments.length?void o(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.numberspinner",e.ui.numberspinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.numberspinner,e.widget("ui.resizable",e.ui.mouse,{version:"2.3.27",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",r=!1;return t[n]>0||(t[n]=1,r=t[n]>0,t[n]=0,r)},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){"handles"===(this._super(e,t),e)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,i,n,r,o,a=this.options,s=this;if(this.handles=a.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)r="ui-resizable-"+(t=e.trim(n[i])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:a.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(o);this._renderAxis=function(t){var i,n,r,o;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].eui||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var i,n,r=!1;for(i in this.handles)((n=e(this.handles[i])[0])===t.target||e.contains(n,t.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(t){var i,n,r,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=e(o.containment).scrollLeft()||0,n+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,n,r=this.originalMousePosition,o=this.axis,a=t.pageX-r.left||0,s=t.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,a,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,n,r,o,a,s,l,c=this.options,u=this;return this._helper&&(r=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,o=n?0:u.sizeDiff.width,a={width:u.helper.width()-o,height:u.helper.height()-r},s=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(e.extend(a,{top:l,left:s})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,r,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,r=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),r&&(e.height=t.maxHeight),o&&c&&(e.left=s-t.minWidth),n&&c&&(e.left=s-t.maxWidth),a&&u&&(e.top=l-t.minHeight),r&&u&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],r=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(r[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,r=i._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),a=o&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,s=o?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-a},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,u=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&e(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n,r,o,a,s,l=e(this).resizable("instance"),c=l.options,u=l.element,d=c.containment,p=d instanceof e?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(l.containerElement=e(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(p),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=l._num(t.css("padding"+n))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},n=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(p,"left")?p.scrollWidth:o,s=l._hasScroll(p)?p.scrollHeight:r,l.parentData={element:p,left:n.left,top:n.top,width:a,height:s}))},resize:function(t){var i,n,r,o,a=e(this).resizable("instance"),s=a.options,l=a.containerOffset,c=a.position,u=a._aspectRatio||t.shiftKey,d={top:0,left:0},p=a.containerElement,h=!0;p[0]!==document&&/static/.test(p.css("position"))&&(d=l),c.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-d.left),u&&(a.size.height=a.size.width/a.aspectRatio,h=!1),a.position.left=s.helper?l.left:0),c.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),u&&(a.size.width=a.size.height*a.aspectRatio,h=!1),a.position.top=a._helper?l.top:0),r=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),r&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-l.left)),n=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,u&&(a.size.height=a.size.width/a.aspectRatio,h=!1)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,u&&(a.size.width=a.size.height*a.aspectRatio,h=!1)),h||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,r=t.containerPosition,o=t.containerElement,a=e(t.helper),s=a.offset(),l=a.outerWidth()-t.sizeDiff.width,c=a.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(o.css("position"))&&e(this).css({left:s.left-r.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(o.css("position"))&&e(this).css({left:s.left-r.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,i){var n=e(this).resizable("instance"),r=n.options,o=n.originalSize,a=n.originalPosition,s={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-a.top||0,left:n.position.left-a.left||0};e(r.alsoResize).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),r={},o=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var i=(n[t]||0)+(s[t]||0);"number"==typeof i&&i>=0&&(r[t]=i||null)})),t.css(r)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t={},i=e(this).resizable("instance"),n=i.options,r=i.size,o=i.originalSize,a=i.originalPosition,s=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,u=l[1]||1,d=Math.round((r.width-o.width)/c)*c,p=Math.round((r.height-o.height)/u)*u,h=o.width+d,f=o.height+p,g=n.maxWidth&&n.maxWidth<h,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>h,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(h+=c),y&&(f+=u),g&&(h-=c),m&&(f-=u),/^(se|s|e)$/.test(s)?(i.size.width=h,i.size.height=f):/^(ne)$/.test(s)?(i.size.width=h,i.size.height=f,i.position.top=a.top-p):/^(sw)$/.test(s)?(i.size.width=h,i.size.height=f,i.position.left=a.left-d):((f-u<=0||h-c<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=a.top-p):(f=u-t.height,i.size.height=f,i.position.top=a.top+o.height-f),h-c>0?(i.size.width=h,i.position.left=a.left-d):(h=c-t.width,i.size.width=h,i.position.left=a.left+o.width-h))}});var v=(e.ui.resizable,{version:"2.3.27",device:function(){try{var e=new MobileDetect(window.navigator.userAgent),t=e.mobile(),i=e.phone();return{mobile:t,tablet:e.tablet(),phone:i,os:e.os(),userAgent:e.userAgent()}}catch(e){return console.log(e+"; Seems like mobile-detect.js is not loaded"),{mobile:void 0,tablet:void 0,phone:void 0,os:void 0,userAgent:void 0}}}(),ID:0,widthForMinimized:36,template:'<div class="jsPanel jsPanel-theme-default jsPanel-state-initialized"><div class="jsPanel-hdr jsPanel-theme-default"><div rel="tooltip" class="jsPanel-logo" type="button" data-placement="top" title=""><span class="glyphicon glyphicon-type"></span></div><h3 class="jsPanel-title"></h3><div class="jsPanel-hdr-r"><button rel="tooltip" data-placement="bottom" data-original-title="{{button.close}}" class="jsPanel-btn-close"><span class="glyphicon glyphicon-close-window"></span></button><button rel="tooltip" data-placement="bottom" data-original-title="{{button.max}}" class="jsPanel-btn-max"><span class="glyphicon glyphicon-maximize"></span></button><button rel="tooltip" data-placement="bottom" data-original-title="{{button.norm}}" class="jsPanel-btn-norm"><span class="glyphicon glyphicon-restore-window"></span></button><button rel="tooltip" data-placement="bottom" data-original-title="{{button.min}}" class="jsPanel-btn-min"><span class="glyphicon glyphicon-min-window"></span></button></div><div class="jsPanel-hdr-toolbar jsPanel-clearfix"></div></div><div class="jsPanel-content jsPanel-theme-default"></div><div class="jsPanel-ftr jsPanel-theme-default jsPanel-clearfix"></div></div>',addToolbar:function(e,t,i){return"header"===t?this.configToolbar(i,e.header.toolbar,e):"footer"===t&&(e.footer.css({display:"block"}),this.configToolbar(i,e.footer,e)),e.header.toolbar.css("font-family",e.header.title.css("font-family")),e},ajax:function(t){var i=t.option.ajax,n=t.content;e.ajax(i).done((function(r,o,a){i.autoload&&i.url&&n.empty().append(r),e.isFunction(i.done)&&i.done.call(n,r,o,a,t)})).fail((function(r,o,a){e.isFunction(i.fail)&&i.fail.call(n,r,o,a,t)})).always((function(r,o,a){n.css("width",(function(){return n.outerWidth()})),e.isFunction(i.always)&&i.always.call(n,r,o,a,t),v.resizeTitle(t),v.updateOptionSize(t,t.option.size)})).then((function(r,o,a){i.then&&e.isArray(i.then)&&(e.isFunction(i.then[0])&&i.then[0].call(n,r,o,a,t),v.resizeTitle(t),v.updateOptionSize(t,t.option.size))}),(function(r,o,a){i.then&&e.isArray(i.then)&&(e.isFunction(i.then[1])&&i.then[1].call(n,r,o,a,t),v.resizeTitle(t))})),t.data("ajaxURL",i.url)},autoclose:function(e){window.setTimeout((function(){e&&e.fadeOut("slow",(function(){e.close()}))}),e.option.autoclose)},calcPanelposition:function(t){var i={};t.option.size.width=e(t).outerWidth(),t.option.size.height=e(t).innerHeight(),t.option.position.bottom&&delete t.option.position.top,t.option.position.right&&delete t.option.position.left,t.option.position.bottom||0===t.option.position.bottom?this.calcPos("bottom",t):(t.option.position.top||0===t.option.position.top)&&("center"===t.option.position.top?t.option.position.top=this.calcPosCenter(t.option).top:i.top=this.calcPos("top",t)),t.option.position.right||0===t.option.position.right?this.calcPos("right",t):(t.option.position.left||0===t.option.position.left)&&("center"===t.option.position.left?t.option.position.left=this.calcPosCenter(t.option).left:i.left=this.calcPos("left",t)),t.option.position.top?i.top=parseInt(t.option.position.top,10)+t.option.offset.top:i.bottom=parseInt(t.option.position.bottom,10)+t.option.offset.top,t.option.position.left?i.left=parseInt(t.option.position.left,10)+t.option.offset.left:i.right=parseInt(t.option.position.right,10)+t.option.offset.left,t.css(i),t.option.position={top:t.css("top"),left:t.css("left")}},calcPos:function(t,i){var n=i.option.position;return"auto"===n[t]?i.option.position[t]=30*i.count:e.isFunction(n[t])?i.option.position[t]=n[t](i):0===n[t]?i.option.position[t]="0":i.option.position[t]=parseInt(n[t],10),"body"===i.option.selector&&("top"===t?i.option.position.top=parseInt(n.top,10)+e(window).scrollTop():"bottom"===t?i.option.position.bottom=parseInt(n.bottom,10)-e(window).scrollTop():"left"===t?i.option.position.left=parseInt(n.left,10)+e(window).scrollLeft():"right"===t&&(i.option.position.right=parseInt(n.right,10)-e(window).scrollLeft())),i.option.position[t]},calcPosCenter:function(t){var i=t.selector,n=t.size,r=e(i).outerWidth()/2-parseInt(n.width,10)/2;return{top:"body"===i?e(window).outerHeight()/2-(parseInt(n.height,10)/2-e(window).scrollTop()):e(i).outerHeight()/2-parseInt(n.height,10)/2,left:r}},calcPosmaxtoScreen:function(t){var i=t.offset();return{top:parseInt(t.css("top"))-(i.top-e(document).scrollTop())+5,left:parseInt(t.css("left"))-(i.left-e(document).scrollLeft())+5}},calcPosTooltipLeft:function(e,t){var i=e.outerWidth(),n=parseInt(e.css("margin-left")),r=t.offset.left||0,o=t.paneltype.position;return"top"===o||"bottom"===o?(i-t.size.width)/2+n+r:"left"===o?-t.size.width+n+r:"right"===o&&i+n+r},calcPosTooltipTop:function(e,t){var i=e.innerHeight(),n=parseInt(e.css("margin-top")),r=t.offset.top||0,o=t.paneltype.position;return"left"===o||"right"===o?-t.size.height/2+i/2+n+r:"top"===o?-(t.size.height+r)+n:"bottom"===o&&i+n+r},calcToooltipPosition:function(e,t){return{top:this.calcPosTooltipTop(e,t),left:this.calcPosTooltipLeft(e,t)}},calcVerticalOffset:function(t){return Math.floor(t.offset().top-e(window).scrollTop())},close:function(t,i){var n=t.parent(),r=t.attr("id");return!i&&(t.trigger("jspanelbeforeclose",r),e.isFunction(t.option.onbeforeclose))&&!1===t.option.onbeforeclose.call(t,t)?t:(this.closeChildpanels(t),n.hasClass("jsPanel-tooltip-wrapper")&&t.unwrap(),t.remove(),e("body").trigger("jspanelclosed",r),"modal"===t.option.paneltype.type&&e(".jsPanel-modal").length<=0&&e(".jsPanel-backdrop").remove(),this.reposMinimized(this.widthForMinimized),"hint"===t.option.paneltype.type&&(t.hasClass("jsPanel-hint-tl")?v.reposHints("jsPanel-hint-tl",t.parentElmtTagname):t.hasClass("jsPanel-hint-tc")?v.reposHints("jsPanel-hint-tc",t.parentElmtTagname):t.hasClass("jsPanel-hint-tr")&&v.reposHints("jsPanel-hint-tr",t.parentElmtTagname)),e.isFunction(t.option.onclosed)&&t.option.onclosed.call(t,t),this.removeContentBackdrop(),n)},closeallTooltips:function(){e(".jsPanel-tt").each((function(){e(this).unwrap().remove(),e("body").trigger("jspanelclosed",e(this).attr("id"))}))},closeChildpanels:function(t){return e(".jsPanel",t).each((function(){t.trigger("jspanelbeforeclose",e(this).attr("id")),e(this).remove(),e("body").trigger("jspanelclosed",e(this).attr("id"))})),t},configControls:function(t){var i=t.option.defaultControls,n=t.option.hiddenControls;"closeonly"===t.option.controls.buttons?(e("button:not('.jsPanel-btn-close')",t.header.controls).remove(),t.header.title.css("width","calc(100% - 30px)")):"none"===t.option.controls.buttons&&(e("*",t.header.controls).remove(),t.header.title.css("width","100%")),i.forEach((function(e){t.option.controls[e]&&t.control("disable",e)})),n.forEach((function(e){t.control("hide",e)}))},configIconfont:function(t){var i=["close","max","norm","min","small","smallrev"],n=["remove","fullscreen","resize-full","minus","chevron-up","chevron-down"],r=["times","arrows-alt","expand","minus","chevron-up","chevron-down"],o=t.option.controls.iconfont,a=t.header.controls;e("*",a).css("background-image","none"),"bootstrap"===o?i.forEach((function(t,i){e(".jsPanel-btn-"+t,a).empty().append('<span class="glyphicon glyphicon-'+n[i]+'"></span>')})):"font-awesome"===o&&i.forEach((function(t,i){e(".jsPanel-btn-"+t,a).empty().append('<span class="fa fa-'+r[i]+'"></span>')}))},configToolbar:function(t,i,n){var r;t.forEach((function(t){"object"==typeof t&&(r=e(t.item),"string"==typeof t.btntext&&r.append(t.btntext),"string"==typeof t.btnclass&&r.addClass(t.btnclass),i.append(r),e.isFunction(t.callback)&&r.on(t.event,n,t.callback))}))},control:function(t,i,n){var r,o=t.header.controls;return 3===arguments.length&&("disable"===arguments[1]?("close"===n?r=e(".jsPanel-btn-close",o):"maximize"===n?r=e(".jsPanel-btn-max",o):"minimize"===n?r=e(".jsPanel-btn-min",o):"normalize"===n?r=e(".jsPanel-btn-norm",o):"smallify"===n&&(r=e(".jsPanel-btn-small",o)),r&&r.length&&r.off().css({opacity:.5,cursor:"default"})):"enable"===arguments[1]&&("close"===n?r=e(".jsPanel-btn-close",o):"maximize"===n?r=e(".jsPanel-btn-max",o):"minimize"===n?r=e(".jsPanel-btn-min",o):"normalize"===n?r=e(".jsPanel-btn-norm",o):"smallify"===n&&(r=e(".jsPanel-btn-small",o)),r&&r.length&&r.on("click",(function(e){e.preventDefault(),t[n]()})).css({opacity:1,cursor:"pointer"})),"hide"===arguments[1]&&("close"===n?r=e(".jsPanel-btn-close",o):"maximize"===n?r=e(".jsPanel-btn-max",o):"minimize"===n?r=e(".jsPanel-btn-min",o):"normalize"===n?r=e(".jsPanel-btn-norm",o):"smallify"===n&&(r=e(".jsPanel-btn-small",o)),r&&r.length&&r.off().css({opacity:0,cursor:"default",display:"none"}))),t},dblclickhelper:function(e,t){"string"==typeof e&&("maximize"===e||"normalize"===e?"normalized"===t.status||"normalized"===t.option.panelstatus?t.maximize():t.normalize():"minimize"!==e&&"smallify"!==e&&"close"!==e||t[e]())},exportPanels:function(){var t,i,n,r,o,a,s,l,c=[];return e(".jsPanel").not(".jsPanel-tt, .jsPanel-hint, .jsPanel-modal").each((function(u,d){switch(l={panelstatus:e(d).data("panelstatus"),id:e(d).prop("id"),title:e(".jsPanel-title",d).html(),custom:e(d).data("custom"),offset:{top:0,left:0},content:e(d).data("content")},"normalized"!==e(d).data("panelstatus")&&e(".jsPanel-btn-norm",d).trigger("click"),s=e(d).data("selector"),t=e(d).offset(),i=e(d).position(),"body"===s.toLowerCase()?(n=Math.floor(t.top-e(window).scrollTop())+"px",r=Math.floor(t.left-e(window).scrollLeft())+"px"):(n=Math.floor(i.top)+"px",r=Math.floor(i.left)+"px"),o=e(d).css("width"),a=e(".jsPanel-content",d).css("height"),l.size={width:o,height:a},l.position={top:n,left:r},e(d).data("loadURL")&&(l.load={},l.load.url=e(d).data("loadURL")),e(d).data("ajaxURL")&&(l.ajax={},l.ajax.url=e(d).data("ajaxURL")),(e(d).data("iframeDOC")||e(d).data("iframeSRC"))&&(l.iframe={},e(d).data("iframeDOC")&&(l.iframe.srcdoc=e(d).data("iframeDOC")),e(d).data("iframeSRC")&&(l.iframe.src=e(d).data("iframeSRC"))),c.push(l),l.panelstatus){case"minimized":e(".jsPanel-btn-min",d).trigger("click");break;case"maximized":e(".jsPanel-btn-max",d).trigger("click");break;case"smallified":case"smallifiedMax":e(".jsPanel-btn-small",d).trigger("click")}})),window.localStorage.setItem("jspanels",JSON.stringify(c)),c},importPanels:function(t){var i,n,r;i=JSON.parse(localStorage.jspanels)||{},r=t.default||{},i.forEach((function(i){n="string"==typeof i.custom.config?e.extend(!0,{},r,t[i.custom.config],i):e.extend(!0,{},r,i),e.jsPanel(n)}))},fixPosition:function(t){var i=t.offset().top-e(window).scrollTop();t.jsPanelfixPos=function(){t.css("top",e(window).scrollTop()+i)},e(window).on("scroll",t.jsPanelfixPos)},getMargins:function(t){var i,n,r,o,a,s,l=t.option.paneltype.shiftwithin,c=e(window).outerWidth(),u=e(window).outerHeight(),d=t.outerWidth(),p=t.outerHeight();return l&&"body"!==l?(n=e(l).offset(),i=t.offset(),r=e(l).outerWidth()-parseInt(t.css("width"))-(i.left-n.left),o=i.left-n.left,a=e(l).outerHeight()-(i.top-n.top)-parseInt(t.css("height")),s=i.top-n.top):(o=c-d-(r=c-(i=t.offset()).left-d+e(window).scrollLeft()),s=u-p-(a=u-i.top-p+e(window).scrollTop())),{marginTop:parseInt(s),marginRight:parseInt(r),marginBottom:parseInt(a),marginLeft:parseInt(o)}},getMaxOfArray:function(e){return Math.max.apply(null,e)},getMaxpanelshift:function(e){var t=e.outerWidth(),i=e.outerHeight();return{maxshiftH:parseInt(t/2)+parseInt(e.parent().outerWidth()/2)-20,maxshiftV:parseInt(i/2)+parseInt(e.parent().outerHeight()/2)-20,maxCornerH:parseInt(t/2)-16,maxCornerV:parseInt(i/2)-16}},hideControls:function(t,i){var n=i.header.controls;e("*",n).css("display","block"),e(t,n).css("display","none")},hintTop:function(t){var i=0;return e("."+t).each((function(){i+=e(this).outerHeight(!0)})),"jsPanel-hint-tr"===t?{top:i,right:0}:"jsPanel-hint-tl"===t?{top:i,left:0}:"jsPanel-hint-tc"===t?{top:i,left:"center"}:{top:0,left:0}},iframe:function(t){var i=e("<iframe></iframe>");t.option.iframe.srcdoc&&(i.prop("srcdoc",t.option.iframe.srcdoc),t.data("iframeDOC",t.option.iframe.srcdoc)),t.option.iframe.src&&(i.prop("src",t.option.iframe.src),t.data("iframeSRC",t.option.iframe.src)),"auto"===t.option.size.width||t.option.iframe.width?"string"==typeof t.option.iframe.width&&"%"===t.option.iframe.width.slice(-1)?i.prop("width",t.option.iframe.width):i.prop("width",parseInt(t.option.iframe.width)+"px"):i.prop("width","100%"),"auto"===t.option.size.height||t.option.iframe.height?"string"==typeof t.option.iframe.height&&"%"===t.option.iframe.height.slice(-1)?i.prop("height",t.option.iframe.height):i.prop("height",parseInt(t.option.iframe.height)+"px"):i.prop("height","100%"),"string"==typeof t.option.iframe.name&&i.prop("name",t.option.iframe.name),"string"==typeof t.option.iframe.id&&i.prop("id",t.option.iframe.id),t.option.iframe.seamless&&i.prop("seamless","seamless"),"string"==typeof t.option.iframe.sandbox&&i.prop("sandox",t.option.iframe.sandbox),e.isPlainObject(t.option.iframe.style)&&i.css(t.option.iframe.style),"string"==typeof t.option.iframe.classname?i.addClass(t.option.iframe.classname):e.isFunction(t.option.iframe.classname)&&i.addClass(t.option.iframe.classname()),t.option.iframe.scroll&&i.css({overflow:"auto","overflow-x":"hidden"}),t.content.empty().append(i)},webview:function(t){var i=e("<webview nodeintegration></webview>");t.option.webview.srcdoc&&(i.prop("srcdoc",t.option.webview.srcdoc),t.data("webviewDOC",t.option.webview.srcdoc)),t.option.webview.src&&(i.prop("src",t.option.webview.src),i.attr("data-src",t.option.webview.src),t.data("webviewSRC",t.option.webview.src)),"auto"===t.option.size.width||t.option.webview.width?"string"==typeof t.option.webview.width&&"%"===t.option.webview.width.slice(-1)?i.css({width:t.option.webview.width}):i.css({width:parseInt(t.option.webview.width)+"px"}):i.css({width:"100%"}),"auto"===t.option.size.height||t.option.iframe.height?"string"==typeof t.option.webview.height&&"%"===t.option.webview.height.slice(-1)?i.css({height:t.option.webview.height}):i.css({height:parseInt(t.option.webview.height)+"px"}):i.css({height:"100%"}),"string"==typeof t.option.webview.id&&i.prop("id",t.option.webview.id),t.option.webview.seamless&&i.prop("seamless","seamless"),e.isPlainObject(t.option.webview.style)&&i.css(t.option.webview.style),"string"==typeof t.option.webview.classname?i.addClass(t.option.webview.classname):e.isFunction(t.option.webview.classname)&&i.addClass(t.option.webview.classname()),t.option.webview.scroll&&i.css({overflow:"auto","overflow-x":"hidden"}),t.content.empty().append(i)},insertModalBackdrop:function(){var t='<div class="jsPanel-backdrop" style="height:'+e(document).outerHeight()+'px;"></div>';e("body").append(t)},isBootstrapTheme:function(t){return e.inArray(t,["default","primary","info","success","warning","danger"])>-1?t:"default"},load:function(t){t.content.load(t.option.load.url,t.option.load.data||void 0,(function(i,n,r){e.isFunction(t.option.load.complete)&&t.option.load.complete.call(t.content,i,n,r,t),v.resizeTitle(t),v.updateOptionSize(t,t.option.size),t.content.css("width",(function(){return t.content.outerWidth()}))})),t.data("loadURL",t.option.load.url)},maxWithinBody:function(t){var i,n,r;"maximized"===t.status&&"maximized"===t.option.panelstatus||"default"===t.option.paneltype.mode||(e(window).off("scroll",t.jsPanelfixPos),"minimized"!==t.status&&"minimized"!==t.option.panelstatus||this.restoreFromMinimized(t),!0===t.option.controls.maxtoScreen?(n=(i=this.calcPosmaxtoScreen(t)).top+parseInt(t.option.maximizedMargin.top),r=i.left+parseInt(t.option.maximizedMargin.left)):(n=e(window).scrollTop()+parseInt(t.option.maximizedMargin.top),r=e(window).scrollLeft()+parseInt(t.option.maximizedMargin.left)),t.css({top:n,left:r,width:e(window).width()-parseInt(t.option.maximizedMargin.left)-parseInt(t.option.maximizedMargin.right),height:e(window).height()-parseInt(t.option.maximizedMargin.top)-parseInt(t.option.maximizedMargin.bottom)}),(!t.option.controls.maxtoScreen||t.option.controls.maxtoScreen&&"body"===t.option.selector)&&this.fixPosition(t))},maxWithinElement:function(e){"maximized"===e.status&&"maximized"===e.option.panelstatus||"default"===e.option.paneltype.mode||("minimized"!==e.status&&"minimized"!==e.option.panelstatus||this.restoreFromMinimized(e),e.css({top:parseInt(e.option.maximizedMargin.top),left:parseInt(e.option.maximizedMargin.left),width:parseInt(e.parent().width(),10)-parseInt(e.option.maximizedMargin.left)-parseInt(e.option.maximizedMargin.right),height:parseInt(e.parent().height(),10)-parseInt(e.option.maximizedMargin.top)-parseInt(e.option.maximizedMargin.bottom)}))},maximize:function(t){var i={width:t.css("width"),height:t.css("height"),top:t.css("top"),left:t.css("left")};t.windowNormStyle=i;var n=t.find(".jsPanel-content").attr("style");t.contentNormStyle=n;var r=t.find(".jsPanel-title").attr("style");return t.titleNormStyle=r,t.trigger("jspanelbeforemaximize",t.attr("id")),e.isFunction(t.option.onbeforemaximize)&&!1===t.option.onbeforemaximize.call(t,t)||("body"===t.parentElmtTagname||!0===t.option.controls.maxtoScreen?this.maxWithinBody(t):this.maxWithinElement(t),t.trigger("jspanelmaximized",t.attr("id")),t.trigger("jspanelstatechange",t.attr("id")),e.isFunction(t.option.onmaximized)&&t.option.onmaximized.call(t,t)),t},max2norm:function(t){t.css(t.windowNormStyle),t.find(".jsPanel-content").attr("style",t.contentNormStyle),t.find(".jsPanel-title").attr("style",t.titleNormStyle),t.trigger("jspanelnormalized",t.attr("id")),t.trigger("jspanelstatechange",t.attr("id")),"body"===t.parentElmtTagname&&this.fixPosition(t),e.isFunction(t.option.onnormalized)&&t.option.onnormalized.call(t,t)},minimize:function(t){return t.trigger("jspanelbeforeminimize",t.attr("id")),e.isFunction(t.option.onbeforeminimize)&&!1===t.option.onbeforeminimize.call(t,t)||(t.data({paneltop:parseInt(t.option.position.top),panelleft:parseInt(t.option.position.left),panelwidth:parseInt(t.option.size.width)}),"normalized"!==t.status&&"normalized"!==t.option.panelstatus||(t.option.size.width=t.outerWidth(),t.option.size.height=t.outerHeight()),t.prevStatus=t.status,t.animate({opacity:0},{duration:400,complete:function(){t.css("visibility","hidden"),"minimized"===t.status&&"minimized"===t.option.panelstatus||(t.trigger("jspanelminimized",t.attr("id")),t.trigger("jspanelstatechange",t.attr("id"))),e.isFunction(t.option.onanimateComplete)&&t.option.onanimateComplete.call(t,t)}}),e.isFunction(t.option.onminimized)&&t.option.onminimized.call(t,t)),t},normalize:function(t){return t.animate({opacity:1},{duration:300,complete:function(){e.isFunction(t.option.onanimateComplete)&&t.option.onanimateComplete.call(t,t)}}),t.css("visibility","visible"),t.trigger("jspanelbeforenormalize",t.attr("id")),e.isFunction(t.option.onbeforenormalize)&&!1===t.option.onbeforenormalize.call(t,t)||(e(window).off("scroll",t.jsPanelfixPos),"maximized"==t.prevStatus?(t.trigger("jspanelmaximized",t.attr("id")),t.trigger("jspanelstatechange",t.attr("id")),e.isFunction(t.option.onmaximized)&&t.option.onmaximized.call(t,t)):(t.trigger("jspanelnormalized",t.attr("id")),t.trigger("jspanelstatechange",t.attr("id")),e.isFunction(t.option.onnormalized)&&t.option.onnormalized.call(t,t))),t},replaceCSSBottomRight:function(e){var t=e.position();e.css("bottom")&&(e.css({top:parseInt(t.top,10),bottom:""}),e.option.position.top=parseInt(t.top,10)),e.css("right")&&(e.css({left:parseInt(t.left,10),right:""}),e.option.position.left=parseInt(t.left,10))},reposHints:function(t,i){var n;n="body"===i?e(window).scrollTop():0,e("."+t).each((function(){e(this).animate({top:n}),n+=e(this).outerHeight(!0)}))},reposHintsScroll:function(t){var i=t.offset().top-e(window).scrollTop();e(window).scroll((function(){t.css("top",e(window).scrollTop()+i)}))},reposition:function(t,i,n){return n&&"string"==typeof n&&(t.option.selector=n,t.appendTo(n),t.parentElmt=e(n).first(),t.parentElmtTagname=t.parentElmt[0].tagName.toLowerCase()),"tooltip"!==t.option.paneltype.type&&"hint"!==t.option.paneltype.type&&(t.option.position=v.rewriteOPosition(i),t.css({top:"",right:"",bottom:"",left:""}),this.calcPanelposition(t),t.verticalOffset=v.calcVerticalOffset(t)||0,this.replaceCSSBottomRight(t),"body"===t.parentElmtTagname?this.fixPosition(t):e(window).off("scroll",t.jsPanelfixPos),this.updateOptionPosition(t)),t},reposMinimized:function(){e(".jsPanel","#jsPanel-min-container").each((function(t,i){e(i).animate({left:t*(v.widthForMinimized+3)+6})}))},resize:function(e,t,i){"minimized"!==e.option.panelstatus&&(t?e.css("width",t):e.css("width",e.content.css("width")),i&&e.css("height",i),this.resizeContent(e),this.resizeTitle(e))},resizeContent:function(e){var t;return t="none"===e.footer.css("display")?e.header.outerHeight():e.header.outerHeight()+e.footer.outerHeight(),e.content.css({height:e.outerHeight()-t,width:e.outerWidth()}),e},resizeTitle:function(t){var i=t.outerWidth()-e(t.header.controls).outerWidth()-16;t.header.title.css("width",i)},restoreFromMinimized:function(t){"minimized"!==t.status&&"minimized"!==t.option.panelstatus||t.appendTo(t.option.selector),["resizable","draggable"].forEach((function(i){"disabled"!==t.option[i]&&(t[i]("enable"),e(".ui-icon-gripsmall-diagonal-se",t).css({"background-image":"none","text-indent":0}),e(".ui-resizable-handle",t).css({cursor:""}))})),this.reposMinimized(v.widthForMinimized)},rewriteOPaneltype:function(e){var t=e;return"modal"===t?{type:"modal",mode:"default"}:"tooltip"===t?{type:"tooltip",position:"top"}:"hint"===t?{type:"hint"}:"modal"===t.type?{type:"modal",mode:t.mode||"default"}:"tooltip"===t.type?{type:"tooltip",mode:t.mode||!1,position:t.position||!1,shiftwithin:t.shiftwithin||"body",solo:t.solo||!1,cornerBG:t.cornerBG||!1,cornerOX:t.cornerOX||!1,cornerOY:t.cornerOY||!1}:{paneltype:!1}},rewriteOPosition:function(e){var t=e;return"center"===t?{top:"center",left:"center"}:"auto"===t?{top:"auto",left:"auto"}:"top left"===t?{top:"0",left:"0"}:"top center"===t?{top:"0",left:"center"}:"top right"===t?{top:"0",right:"0"}:"center right"===t?{top:"center",right:"0"}:"bottom right"===t?{bottom:"0",right:"0"}:"bottom center"===t?{bottom:"0",left:"center"}:"bottom left"===t?{bottom:"0",left:"0"}:"center left"===t?{top:"center",left:"0"}:("center"===t.bottom&&(delete t.bottom,t.top="center"),"center"===t.right&&(delete t.right,t.left="center"),e)},rewriteOSize:function(e){var t=e;return"string"==typeof t&&"auto"===t&&(t={width:"auto",height:"auto"}),t},setHintDefaults:function(e){e.option.resizable=!1,e.option.draggable=!1,e.option.removeHeader=!0,e.option.toolbarFooter=!1,e.option.show="fadeIn",e.addClass("jsPanel-hint"),e.content.addClass("jsPanel-hint-content"),e.option.autoclose?e.option.autoclose<0&&(e.option.autoclose=!1):e.option.autoclose=8e3,e.content.addClass("jsPanel-hint-"+e.option.theme),e.content.append('<div class="jsPanel-hint-close jsglyph jsglyph-remove"></div>')},setModalDefaults:function(t){t.option.show="fadeIn",t.addClass("jsPanel-modal"),"default"===t.option.paneltype.mode&&(t.option.resizable=!1,t.option.draggable=!1,t.option.removeHeader=!1,t.option.offset={top:0,left:0},t.option.controls.buttons="closeonly",e(".jsPanel-btn-min, .jsPanel-btn-norm, .jsPanel-btn-max, .jsPanel-btn-small, .jsPanel-btn-smallrev",t).remove(),e(t.header,t.header.title,t.footer).css("cursor","default"),e(".jsPanel-title",t).css("cursor","inherit"))},setRTL:function(t){[t.header.title,t.content,t.header.toolbar,t.footer].forEach((function(e){e.prop("dir","rtl"),t.option.rtl.lang&&e.prop("lang",t.option.rtl.lang)})),t.header.title.css("text-align","right"),e(".jsPanel-btn-close",t.header.controls).insertAfter(e(".jsPanel-btn-min",t.header.controls)),e(".jsPanel-btn-max",t.header.controls).insertAfter(e(".jsPanel-btn-min",t.header.controls)),e(".jsPanel-btn-small",t.header.controls).insertBefore(e(".jsPanel-btn-min",t.header.controls)),e(".jsPanel-btn-smallrev",t.header.controls).insertBefore(e(".jsPanel-btn-min",t.header.controls)),e(".jsPanel-hdr-r",t).css({left:"0px",right:"",position:"relative",float:"left"}),e(".jsPanel-hint-close",t).css("float","left"),e(".jsPanel-title",t).css("float","right"),e(".jsPanel-ftr",t).append('<div style="clear:both;height:0;"></div>'),e("button",t.footer).css("float","left")},setTooltipDefaults:function(e){e.option.position={},e.option.resizable=!1,e.option.draggable=!1,e.option.show="fadeIn",e.option.controls.buttons="closeonly",e.header.title.css("cursor","inherit"),e.footer.css("cursor","inherit"),e.addClass("jsPanel-tt")},removeContentBackdrop:function(){var t=[],i=e(".jsPanel:not('.jsPanel-modal, .jsPanel-nofront')");i.each((function(i,n){t.push(e(n).css("z-index"))}));var n=this.getMaxOfArray(t);i.each((function(t,i){var r=e(i),o=r.find(".jsPanel-content"),a=o.find(".jsPanel-content-backdrop");r.css("z-index")==n?a.length>0&&o.find(".jsPanel-content-backdrop").remove():0==a.length&&o.prepend('<div class="jsPanel-content-backdrop"></div>')}))},setZi:function(t){var i,n=[];return i="string"==typeof t?e(t):t,e(".jsPanel:not('.jsPanel-modal, .jsPanel-nofront')").each((function(t,r){var o=e(r).find(".jsPanel-content");if(i.attr("id")!==e(r).attr("id"))n.push(e(r).css("z-index")),0==o.find(".jsPanel-content-backdrop").length&&o.prepend('<div class="jsPanel-content-backdrop"></div>');else{var a=o.find(".jsPanel-content-backdrop");a.length>0&&a.remove()}})),this.getMaxOfArray(n)+1},shiftTooltipHorizontal:function(t){var i,n,r,o=this.getMargins(t),a=this.getMaxpanelshift(t),s=a.maxshiftH,l=a.maxCornerH,c=0,u=0;o.marginLeft<0&&o.marginRight>0?(i=Math.abs(o.marginLeft)+5||0,n=Math.min(i,s)||0,r=Math.min(l,n)||0,c=parseInt(t.css("left"))+n+"px",u=parseInt(e(".jsPanel-corner",t).css("left"))-r+"px"):o.marginRight<0&&o.marginLeft>0&&(i=Math.abs(o.marginRight)+5||0,n=Math.min(i,s)||0,r=Math.min(l,n)||0,c=parseInt(t.css("left"))-n+"px",u=parseInt(e(".jsPanel-corner",t).css("left"))+r+"px"),(o.marginLeft<0&&o.marginRight>0||o.marginRight<0&&o.marginLeft>0)&&(t.animate({left:c},{queue:!1}),e(".jsPanel-corner",t).length&&e(".jsPanel-corner",t).animate({left:u},{queue:!1}))},shiftTooltipVertical:function(t){var i,n,r,o=this.getMargins(t),a=this.getMaxpanelshift(t),s=a.maxshiftV,l=a.maxCornerV,c=0,u=0;o.marginTop<0&&o.marginBottom>0?(i=Math.abs(o.marginTop)+5||0,n=Math.min(i,s)||0,r=Math.min(l,n)||0,c=parseInt(t.css("top"))+n+"px",u=parseInt(e(".jsPanel-corner",t).css("top"))-r+"px"):o.marginBottom<0&&o.marginTop>0&&(i=Math.abs(o.marginBottom)+5||0,n=Math.min(i,s)||0,r=Math.min(l,n)||0,c=parseInt(t.css("top"))-n+"px",u=parseInt(e(".jsPanel-corner",t).css("top"))+r+"px"),(o.marginTop<0&&o.marginBottom>0||o.marginBottom<0&&o.marginTop>0)&&(t.animate({top:c},{queue:!1}),e(".jsPanel-corner",t).length&&e(".jsPanel-corner",t).animate({top:u},{queue:!1}))},smallify:function(e){var t;"smallified"===e.status&&"smallified"===e.option.panelstatus||"smallifiedMax"===e.status&&"smallifiedMax"===e.option.panelstatus||(t="maximized"===e.status||"maximized"===e.option.panelstatus?"smallifiedMax":"smallified",e.smallify.height=e.outerHeight(),e.panelheaderheight=e.header.outerHeight()-2,e.panelfooterheight=e.footer.outerHeight(),e.panelcontentheight=e.content.outerHeight(),e.animate({height:e.panelheaderheight},{done:function(){"maximized"===e.status||"maximized"===e.option.panelstatus?v.hideControls(".jsPanel-btn-max, .jsPanel-btn-small",e):v.hideControls(".jsPanel-btn-norm, .jsPanel-btn-small",e),v.updateStateProps(e,t),e.trigger("jspanel"+t,e.attr("id")),e.trigger("jspanelstatechange",e.attr("id"))}}))},unsmallify:function(e){e.animate({height:e.smallify.height},{done:function(){"smallified"===e.status||"smallified"===e.option.panelstatus?(v.hideControls(".jsPanel-btn-norm, .jsPanel-btn-smallrev",e),v.updateStateProps(e,"normalized"),e.trigger("jspanelnormalized",e.attr("id")),e.trigger("jspanelstatechange",e.attr("id"))):(v.hideControls(".jsPanel-btn-max, .jsPanel-btn-smallrev",e),v.updateStateProps(e,"maximized"),e.trigger("jspanelmaximized",e.attr("id")),e.trigger("jspanelstatechange",e.attr("id")))}})},updateOptionPosition:function(e){e.option.position.top=e.css("top"),e.option.position.left=e.css("left")},updateOptionSize:function(t){t.option.size.width=t.css("width"),t.option.size.height=e(".jsPanel-content",t).css("height")},updateCustomData:function(e,t,i){var n=e.data("custom");n[t]=i,e.data("custom",n)},updateStateProps:function(e,t){e.status=t,e.option.panelstatus=t,e.data("panelstatus",t),e.alterClass("jsPanel-state-*","jsPanel-state-"+t)}});e.jsPanel=function(t){var i,n,r,o=t||{},a=o.config||{};if(n=(n=o.template||v.template).replace(/{{button.close}}/g,e.jsPanel.defaults.language.close).replace(/{{button.max}}/g,e.jsPanel.defaults.language.max).replace(/{{button.min}}/g,e.jsPanel.defaults.language.min).replace(/{{button.norm}}/g,e.jsPanel.defaults.language.restore),(i=e(n)).option=e.extend(!0,{},e.jsPanel.defaults,a,o),i.option.shadowClass&&(e(".jsPanel."+i.option.shadowClass).removeClass(i.option.shadowClass),i.addClass(i.option.shadowClass)),"string"==typeof i.option.id?r=i.option.id:e.isFunction(i.option.id)?r=i.option.id():(v.ID+=1,r=v.ID),e("#"+r).length>0)return e.log("warn","jsPanel Error: No jsPanel created - id attribute passed with option.id already exists in document"),!1;i.attr("id",r),e("[rel=tooltip]",i).tooltip(),i.data("custom",i.option.custom),i.verticalOffset=0;try{i.parentElmt=e(i.option.selector).first(),i.parentElmtTagname=i.parentElmt[0].tagName.toLowerCase(),i.count=i.parentElmt.children(".jsPanel").length}catch(t){f.log("warn",t+"\n\nThe element you want to append the jsPanel to does not exist!\n\n The jsPanel will be appended to the body element instead."),i.option.selector="body",i.parentElmt=e("body"),i.parentElmtTagname="body",i.count=i.parentElmt.children(".jsPanel").length}if(i.status="initialized",i.header=e(".jsPanel-hdr",i),i.header.logo=e(".jsPanel-logo",i.header),i.header.title=e(".jsPanel-title",i.header),i.header.controls=e(".jsPanel-hdr-r",i.header),i.header.toolbar=e(".jsPanel-hdr-toolbar",i.header),i.content=e(".jsPanel-content",i),i.footer=e(".jsPanel-ftr",i),i.normalize=function(){return v.normalize(i),i},i.close=function(){v.close(i)},i.forceClose=function(){v.close(i,!0)},i.closeChildpanels=function(){return v.closeChildpanels(i),i},i.minimize=function(){return v.minimize(i),i},i.maximize=function(){return v.maximize(i),i},i.smallify=function(){return"normalized"===i.status||"normalized"===i.option.panelstatus||"maximized"===i.status||"maximized"===i.option.panelstatus?v.smallify(i):"minimized"===i.status&&"minimized"===i.option.panelstatus||v.unsmallify(i),i},i.front=function(){return i.css("z-index",v.setZi(i)),i.option.shadowClass&&(e(".jsPanel."+i.option.shadowClass).removeClass(i.option.shadowClass),i.addClass(i.option.shadowClass)),i},i.title=function(e){return e&&"string"==typeof e?(i.header.title.html(e),i):0===arguments.length?i.header.title.html():void 0},i.addToolbar=function(e,t){return v.addToolbar(i,e,t),i},i.control=function(e,t){return v.control(i,e,t),i},i.resize=function(e,t){return v.resize(i,e,t),i},i.reposition=function(e,t){return v.reposition(i,e,t),i},i.reloadContent=function(){i.option.content?i.content.empty().append(i.option.content):i.option.load?(i.content.empty(),v.load(i)):i.option.ajax?v.ajax(i):i.option.iframe&&v.iframe(i)},i.on("click",(function(t){e(t.target).is("a[href], button, .jsPanel-nofront, .jsPanel-nofront *")||i.hasClass("jsPanel-modal")||(i.css("z-index",v.setZi(i)),i.option.shadowClass&&(e(".jsPanel."+i.option.shadowClass).removeClass(i.option.shadowClass),i.addClass(i.option.shadowClass)))})),e(".jsPanel-btn-close",i).on("click",(function(t){t.preventDefault(),i.option.controls.confirmClose?(i.option.controls.confirmPropertys.confirm=function(){v.close(i)},e.confirm(i.option.controls.confirmPropertys)):v.close(i)})),e(".jsPanel-btn-min",i).on("click",(function(e){e.preventDefault(),v.minimize(i)})),e(".jsPanel-btn-max",i).on("click",(function(e){e.preventDefault(),v.maximize(i)})),e(".jsPanel-btn-norm",i).on("click",(function(e){e.preventDefault(),v.max2norm(i)})),e(".jsPanel-btn-small",i).on("click",(function(e){e.preventDefault(),v.smallify(i)})),e(".jsPanel-btn-smallrev",i).on("click",(function(e){e.preventDefault(),v.unsmallify(i)})),i.option.paneltype=v.rewriteOPaneltype(i.option.paneltype),i.option.position=v.rewriteOPosition(i.option.position),i.option.size=v.rewriteOSize(i.option.size),"modal"===i.option.paneltype.type)v.setModalDefaults(i),e(".jsPanel-backdrop").length<1&&v.insertModalBackdrop();else if("tooltip"===i.option.paneltype.type){if(v.setTooltipDefaults(i),i.option.paneltype.solo&&v.closeallTooltips(),i.option.position=v.calcToooltipPosition(i.parentElmt,i.option),i.css({top:i.option.position.top,left:i.option.position.left}),i.parentElmt.parent().hasClass("jsPanel-tooltip-wrapper")||(i.parentElmt.wrap('<div class="jsPanel-tooltip-wrapper">'),i.parentElmt.parent().append(i),"semisticky"===i.option.paneltype.mode?i.hover((function(){e.noop()}),(function(){v.close(i)})):"sticky"===i.option.paneltype.mode?e.noop():(i.option.controls.buttons="none",i.parentElmt.off("mouseout"),i.parentElmt.mouseout((function(){v.close(i)})))),i.css("overflow","visible"),i.option.paneltype.cornerBG){var s,l=e("<div></div>"),c="jsPanel-corner-"+i.option.paneltype.position,u=parseInt(i.option.paneltype.cornerOX)||0,d=parseInt(i.option.paneltype.cornerOY)||0,p=i.option.paneltype.cornerBG;"bottom"!==i.option.paneltype.position?l.addClass("jsPanel-corner "+c).appendTo(i):l.addClass("jsPanel-corner "+c).prependTo(i),"top"===i.option.paneltype.position?(s=parseInt(i.option.size.width)/2-12+u+"px",l.css({borderTopColor:p,left:s})):"right"===i.option.paneltype.position?(s=parseInt(i.option.size.height)/2-12+d+"px",l.css({borderRightColor:p,left:"-22px",top:s})):"bottom"===i.option.paneltype.position?(s=parseInt(i.option.size.width)/2-12+u+"px",l.css({borderBottomColor:p,left:s,top:"-22px"})):"left"===i.option.paneltype.position&&(s=parseInt(i.option.size.height)/2-12+d+"px",l.css({borderLeftColor:p,left:i.option.size.width,top:s}))}}else"hint"===i.option.paneltype.type&&(v.setHintDefaults(i),e(".jsPanel-hint-close",i).on("click",i,(function(e){e.data.close(i)})),"0"===i.option.position.top&&"center"===i.option.position.left?(i.addClass("jsPanel-hint-tc"),e(".jsPanel-hint-tc").length>0&&(i.option.position=v.hintTop("jsPanel-hint-tc"))):"0"===i.option.position.top&&"0"===i.option.position.left?(i.addClass("jsPanel-hint-tl"),e(".jsPanel-hint-tl").length>0&&(i.option.position=v.hintTop("jsPanel-hint-tl"))):"0"===i.option.position.top&&"0"===i.option.position.right&&(i.addClass("jsPanel-hint-tr"),e(".jsPanel-hint-tr").length>0&&(i.option.position=v.hintTop("jsPanel-hint-tr"))));if(i.data("selector",i.option.selector),"tooltip"!==i.option.paneltype.type&&i.appendTo(i.parentElmt),"modal"===i.option.paneltype.type?(i.css("zIndex",10001),"extended"===i.option.paneltype.mode&&e(".jsPanel-backdrop").css("z-index","9998")):i.hasClass("jsPanel-modal")||i.css("z-index",v.setZi(i)),i.option.bootstrap?(i.option.theme=v.isBootstrapTheme(i.option.bootstrap),i.option.controls.iconfont="bootstrap",i.alterClass("jsPanel-theme-*","panel panel-"+i.option.theme),i.header.alterClass("jsPanel-theme-*","panel-heading"),i.header.title.addClass("panel-title"),i.content.alterClass("jsPanel-theme-*","panel-body"),i.footer.addClass("panel-footer"),i.header.title.css("color",(function(){return i.header.css("color")})),i.content.css("border-top-color",(function(){return i.header.css("border-top-color")}))):[i,i.header,i.content,i.footer].forEach((function(t){e(t).alterClass("jsPanel-theme-*","jsPanel-theme-"+i.option.theme)})),i.option.removeHeader?i.header.remove():v.configControls(i),i.option.controls.iconfont?v.configIconfont(i):e(".jsPanel-btn-close, .jsPanel-btn-max, .jsPanel-btn-norm, .jsPanel-btn-min, .jsPanel-btn-small, .jsPanel-btn-smallrev",i.header.controls).empty(),i.option.toolbarHeader&&!1===i.option.removeHeader?("string"==typeof i.option.toolbarHeader?i.header.toolbar.append(i.option.toolbarHeader):e.isFunction(i.option.toolbarHeader)?i.header.toolbar.append(i.option.toolbarHeader(i.header)):e.isArray(i.option.toolbarHeader)&&(i.option.toolbarHeader.length?v.configToolbar(i.option.toolbarHeader,i.header.toolbar,i):i.header.toolbar.hide()),i.header.toolbar.css("font-family",i.header.title.css("font-family"))):i.header.toolbar.hide(),i.option.toolbarFooter&&(i.footer.css({display:"block"}),"string"==typeof i.option.toolbarFooter?i.footer.append(i.option.toolbarFooter):e.isFunction(i.option.toolbarFooter)?i.footer.append(i.option.toolbarFooter(i.footer)):e.isArray(i.option.toolbarFooter)&&v.configToolbar(i.option.toolbarFooter,i.footer,i),i.footer.css("font-family",i.header.title.css("font-family"))),!0===i.option.rtl.rtl&&v.setRTL(i,i.option.rtl.lang),"string"==typeof i.option.overflow?i.content.css("overflow",i.option.overflow):e.isPlainObject(i.option.overflow)&&i.content.css({"overflow-y":i.option.overflow.vertical,"overflow-x":i.option.overflow.horizontal}),e.isPlainObject(i.option.draggable)?(i.parent().hasClass("jsPanel-content")&&(i.option.draggable.containment="parent"),i.option.customdraggable=e.extend(!0,{},e.jsPanel.defaults.draggable,i.option.draggable),i.draggable(i.option.customdraggable)):"disabled"===i.option.draggable&&(e(".jsPanel-title, .jsPanel-ftr",i).css("cursor","inherit"),i.draggable({disabled:!0})),e.isPlainObject(i.option.resizable)?(i.option.customresizable=e.extend(!0,{},e.jsPanel.defaults.resizable,i.option.resizable),i.resizable(i.option.customresizable)):"disabled"===i.option.resizable&&(i.resizable({disabled:!0}),e(".ui-icon-gripsmall-diagonal-se",i).css({"background-image":"none","text-indent":-9999}),e(".ui-resizable-handle",i).css({cursor:"inherit"})),i.option.content&&(i.content.append(i.option.content),i.data("content",i.option.content)),e.isPlainObject(i.option.load)&&i.option.load.url&&v.load(i),e.isPlainObject(i.option.ajax)&&i.option.ajax.url&&v.ajax(i),i.content.css({width:i.option.size.width||"auto",height:i.option.size.height||"auto"}),i.header.title.css("width",i.content.width()-90),e.isPlainObject(i.option.iframe)&&(i.option.iframe.src||i.option.iframe.srcdoc)&&v.iframe(i),e.isPlainObject(i.option.webview)&&(i.option.webview.src||i.option.webview.srcdoc)&&v.webview(i),"tooltip"!==i.option.paneltype.type&&v.calcPanelposition(i),"string"==typeof i.option.addClass.header&&i.header.addClass(i.option.addClass.header),"string"==typeof i.option.addClass.content&&i.content.addClass(i.option.addClass.content),"string"==typeof i.option.addClass.footer&&i.footer.addClass(i.option.addClass.footer),"default"!==i.option.paneltype.mode&&i.option.dblclicks&&(i.option.dblclicks.title&&i.header.title.on("dblclick",(function(e){e.preventDefault(),v.dblclickhelper(i.option.dblclicks.title,i)})),i.option.dblclicks.content&&i.content.on("dblclick",(function(e){e.preventDefault(),v.dblclickhelper(i.option.dblclicks.content,i)})),i.option.dblclicks.footer&&i.footer.on("dblclick",(function(e){e.preventDefault(),v.dblclickhelper(i.option.dblclicks.footer,i)}))),i.option.show?-1===i.option.show.indexOf(" ")?i[i.option.show]({done:function(){e(i).trigger("jspanelloaded",i.attr("id")),e(i).trigger("jspanelstatechange",i.attr("id")),i.option.size={width:i.outerWidth(),height:i.outerHeight()}}}):(i.css({display:"block",opacity:1}),e(i).addClass(i.option.show),e(i).trigger("jspanelloaded",i.attr("id")),e(i).trigger("jspanelstatechange",i.attr("id")),i.option.size={width:i.outerWidth(),height:i.outerHeight()}):(i.css({display:"block",opacity:1}),e(i).trigger("jspanelloaded",i.attr("id")),e(i).trigger("jspanelstatechange",i.attr("id")),i.option.size={width:i.outerWidth(),height:i.outerHeight()}),i.verticalOffset=v.calcVerticalOffset(i)||0,v.replaceCSSBottomRight(i),i.header.title.empty().prepend(i.option.title),v.resizeTitle(i),i.header.logo.attr("title",i.option.title),"hint"===i.option.paneltype.type&&v.reposHintsScroll(i),"body"!==i.parentElmtTagname||"tooltip"===i.option.paneltype.type&&"hint"===i.option.paneltype.type||v.fixPosition(i),i.option.paneltype&&"default"===i.option.paneltype.mode||(e(i).on("resizestart",(function(){e("iframe",i.content).css("display","none")})),e(i).on("resize",(function(){v.resizeContent(i),v.resizeTitle(i)})),e(i).on("resizestop",(function(){i.option.size={width:i.outerWidth(),height:i.outerHeight()},v.updateStateProps(i,"normalized"),e(i).trigger("jspanelnormalized",i.attr("id")),e(i).trigger("jspanelstatechange",i.attr("id")),v.hideControls(".jsPanel-btn-norm, .jsPanel-btn-smallrev",i),e("iframe",i.content).css("display","block")})),e(i).on("dragstart",(function(){e(window).off("scroll",i.jsPanelfixPos),"extended"===i.option.paneltype.mode&&i.css("z-index","10000")})),e(i).on("dragstop",(function(){i.option.position={top:i.css("top"),left:i.css("left")},i.verticalOffset=v.calcVerticalOffset(i)||0,"body"===i.parentElmtTagname&&v.fixPosition(i)})),e(i).on("jspanelminimized",(function(){v.hideControls(".jsPanel-btn-min, .jsPanel-btn-small, .jsPanel-btn-smallrev, .jsPanel-btn-hide",i),v.updateStateProps(i,"minimized"),e(window).off("scroll",i.jsPanelfixPos)})),e(i).on("jspanelmaximized",(function(){v.resizeContent(i),v.resizeTitle(i),v.hideControls(".jsPanel-btn-max, .jsPanel-btn-smallrev",i),v.updateStateProps(i,"maximized"),i.trigger("resize")})),e(i).on("jspanelnormalized",(function(){v.hideControls(".jsPanel-btn-norm, .jsPanel-btn-smallrev",i),v.resizeTitle(i),v.resizeContent(i),v.updateStateProps(i,"normalized"),i.trigger("resize")}))),"number"==typeof i.option.autoclose&&i.option.autoclose>0&&v.autoclose(i),"tooltip"!==i.option.paneltype.type||"top"!==i.option.paneltype.position&&"bottom"!==i.option.paneltype.position?"left"!==i.option.paneltype.position&&"right"!==i.option.paneltype.position||v.shiftTooltipVertical(i,i.option.paneltype.shiftwithin):v.shiftTooltipHorizontal(i,i.option.paneltype.shiftwithin),i.option.panelstatus)switch(i.option.panelstatus){case"minimized":v.minimize(i);break;case"maximized":v.maximize(i);break;case"smallified":v.smallify(i);break;case"smallifiedMax":v.maximize(i),v.smallify(i)}else v.updateStateProps(i,"normalized");return e.isFunction(i.option.callback)?i.option.callback.call(i,i):e.isArray(i.option.callback)&&i.option.callback.forEach((function(t){e.isFunction(t)&&t.call(i,i)})),i},e.jsPanel.defaults={language:{max:"最大化",min:"最小化",restore:"还原",close:"关闭"},addClass:{header:!1,content:!1,footer:!1},ajax:{autoload:!0},autoclose:!1,bootstrap:!1,callback:void 0,content:!1,controls:{buttons:!0,iconfont:"jsglyph",close:!1,confirmClose:!1,confirmPropertys:{title:"是否关闭窗口?",content:"",confirmButton:"确定",cancelButton:"取消",confirmButtonClass:"btn-info",cancelButtonClass:"btn-danger"},maximize:!1,minimize:!1,normalize:!1,smallify:!1,maxtoScreen:!1},custom:!1,dblclicks:!1,draggable:{handle:"div.jsPanel-hdr, div.jsPanel-ftr",stack:".jsPanel",opacity:.7},id:function(){return v.ID+=1,"jsPanel-"+v.ID},iframe:!1,load:!1,maximizedMargin:{top:5,right:5,bottom:5,left:5},offset:{top:0,left:0},onbeforeclose:!1,onbeforemaximize:!1,onbeforeminimize:!1,onbeforenormalize:!1,onclosed:!1,oncmaximized:!1,onminimized:!1,onnormalized:!1,overflow:"hidden",panelstatus:!1,paneltype:!1,position:"auto",removeHeader:!1,resizable:{handles:"n, e, s, w, ne, se, sw, nw",autoHide:!1,minWidth:150,minHeight:93},rtl:!1,selector:"body",show:"fadeIn",size:{width:"400px",height:"222px"},template:!1,theme:"black",title:"jsPanel",toolbarFooter:!1,toolbarHeader:!1,defaultControls:["close","maximize","minimize","normalize","smallify"],hiddenControls:["smallify"],shadowClass:"jsPanel-shadow"},e.fn.alterClass=function(t,i){var n,r=this;return-1===t.indexOf("*")?(r.removeClass(t),i?r.addClass(i):r):(n=new RegExp("\\s"+t.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g"),r.each((function(t,i){for(var r=" "+i.className+" ";n.test(r);)r=r.replace(n," ");i.className=e.trim(r)})),i?r.addClass(i):r)},e("body").click((function(t){var i;e(t.target).closest(".jsPanel-tt").length<1&&e(".jsPanel-tt").each((function(){i=e(this).attr("id"),e("#"+i).unwrap().remove(),e("body").trigger("jspanelclosed",i)}))})),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&e>-9007199254740992&&e<9007199254740992&&Math.floor(e)===e}),function(e){var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="2.3.27",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,n){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,(function(e,n){i[e]!=n&&(t[e]=n)})),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)):i.show())},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)):i.hide()},t.prototype.show=function(){var i=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var h=s,f=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+p>f.bottom?"top":"top"==s&&u.top-p<f.top?"bottom":"right"==s&&u.right+d>f.width?"left":"left"==s&&u.left-d<f.left?"right":s,o.removeClass(h).addClass(s)}var g=this.getCalculatedOffset(s,u,d,p);this.applyPlacement(g,s);var m=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(t.TRANSITION_DURATION):m()}},t.prototype.applyPlacement=function(t,i){var n=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var l=n[0].offsetWidth,c=n[0].offsetHeight;"top"==i&&c!=o&&(t.top=t.top+o-c);var u=this.getViewportAdjustedDelta(i,t,l,c);u.left?t.left+=u.left:t.top+=u.top;var d=/top|bottom/.test(i),p=d?2*u.left-r+l:2*u.top-o+c,h=d?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(p,n[0][h],d)},t.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(i){function n(){"in"!=r.hoverState&&o.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),i&&i()}var r=this,o=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(t.TRANSITION_DURATION):n(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],n="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=n?{top:0,left:0}:t.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,a,s,o)},t.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,i,n){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,l=t.top+o-a.scroll+n;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var c=t.left-o,u=t.left+o+i;c<a.left?r.left=a.left-c:u>a.right&&(r.left=a.left+a.width-u)}return r},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null}))};var i=e.fn.tooltip;e.fn.tooltip=function(i){return this.each((function(){var n=e(this),r=n.data("bs.tooltip"),o="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.tooltip",r=new t(this,o)),"string"==typeof i&&r[i]())}))},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(f),function(e){var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="2.3.27",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=function(i){return this.each((function(){var n=e(this),r=n.data("bs.popover"),o="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.popover",r=new t(this,o)),"string"==typeof i&&r[i]())}))},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(f),function(e){function t(i,n){this.$body=e(document.body),this.$scrollElement=e(e(i).is(document.body)?window:i),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=e(this),r=n.data("bs.scrollspy"),o="object"==typeof i&&i;r||n.data("bs.scrollspy",r=new t(this,o)),"string"==typeof i&&r[i]()}))}t.VERSION="3.3.5",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),r=t.data("target")||t.attr("href"),o=/^#./.test(r)&&e(r);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,r]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=n)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=o[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",(function(){e('[data-spy="scroll"]').each((function(){var t=e(this);i.call(t,t.data())}))}))}(f),e.widget("ui.sortable",e.ui.mouse,{version:"2.3.27",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,r=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return n=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(n=e(t.target)),!n||this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each((function(){this===t.target&&(r=!0)})),!r)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,i,n){var r,o,a=this.options;if(this.currentContainer=this,this.currentItem.find("webview").length>0&&(this.currentItem.find("webview")[0].detach=!1),this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=e("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,n,r,o,a=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:t.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:t.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(t.pageY-this.document.scrollTop()<a.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<a.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),t.pageX-this.document.scrollLeft()<a.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==s&&e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(r=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||e.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(t)}))}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each((function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))})),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each((function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")})),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=e.left,a=o+e.width,s=e.top,l=s+e.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>s&&n+c<l,p="y"===this.options.axis||t+u>o&&t+u<a,h=d&&p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h:o<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&s<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!r)&&(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function i(){s.push(this)}var n,r,o,a,s=[],l=[],c=this._connectWith();if(c&&t)for(n=c.length-1;n>=0;n--)for(r=(o=e(c[n],this.document[0])).length-1;r>=0;r--)(a=e.data(o[r],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return e(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,r,o,a,s,l,c,u=this.items,d=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(n=(r=e(p[i],this.document[0])).length-1;n>=0;n--)(o=e.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push([e.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(s=d[i][0]).length;n<c;n++)(l=e(s[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var i,n,r,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){var i,n=(t=t||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=t.currentItem[0].nodeName.toLowerCase(),r=e("<"+n+">",t.document[0]);return t._addClass(r,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(r)):"tr"===n?t._createTrPlaceholder(t.currentItem,r):"img"===n&&r.attr("src",t.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(e,r){i&&!n.forcePlaceholderSize||(r.height()||r.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each((function(){e("<td> </td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){var i,n,r,o,a,s,l,c,u,d,p=null,h=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(p&&e.contains(this.containers[i].element[0],p.element[0]))continue;p=this.containers[i],h=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(r=1e4,o=null,a=(u=p.floating||this._isFloating(this.currentItem))?"left":"top",s=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[h].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,t[d]-l>this.items[n][s]/2&&(c=!0),Math.abs(t[d]-l)<r&&(r=Math.abs(t[d]-l),o=this.items[n],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[h])return void(this.currentContainer.containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[h].element,!0),this._trigger("change",t,this._uiHash()),this.containers[h]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[h],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1}},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||e("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(t=e(r.containment)[0],i=e(r.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(t){var i,n,r=this.options,o=t.pageX,a=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!n)}))},_clear:function(e,t){function i(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(r.push((function(e){this._trigger("remove",e,this._uiHash())})),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<r.length;n++)r[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),e.widget("ui.spinner",{version:"2.3.27",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null,decimal:0,value:0},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return e.each(["min","max","step"],(function(e,n){var r=i.attr(n);null!=r&&r.length&&(t[n]=r)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(e)}),100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}var n;n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){var e;this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.element.on("keydown",(function(e){var t=e.keyCode;return 39==t||37==t||t<=57&&t>=48||t<=105&&t>=96||8==t||110==t||190==t||109==t||189==t})),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height()),null!=(e=null!=this.options.value?this.options.value:this.element.val()?parseFloat(this.element.val()):null)&&null!=this.options.min&&e<this.options.min&&(e=this.options.min),null!=e&&this.element.val(e.toFixed(this.options.decimal))},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,i)}),e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i=this.options;return e=(t=null!==i.min?i.min:0)+(e-t),e=parseFloat(e).toFixed(this.options.decimal),null!==i.max&&e>i.max?i.max:null!==i.min&&e<i.min?i.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,r;return"culture"===e||"numberFormat"===e?(i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i))):("max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down)),void this._super(e,t))},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:a((function(e){this._super(e)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:a((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:a((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:a((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:a((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){return arguments.length?void a(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.spinner,function(e){function t(t){return this.each((function(){var n=e(this),r=n.data("bs.tab");r||n.data("bs.tab",r=new i(this)),"string"==typeof t&&r[t]()}))}var i=function(t){this.element=e(t)};i.VERSION="2.3.27",i.TRANSITION_DURATION=150,i.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!(t.parent("li").hasClass("active")&&i.find('[data-toggle="tab"]').length>1)){var r=i.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),t.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=e(n);this.activate(t.closest("li"),i),this.activate(s,s.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},i.prototype.activate=function(t,n,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),!t.hasClass("loaded")&&t.addClass("loaded"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=n.find("> .active"),s=r&&e.support.transition&&(a.length&&a.hasClass("fade")||!!n.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),a.removeClass("in")};var n=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=i,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var r=function(i){i.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(f),function(e){function t(e,t){return"function"==typeof e?e.call(t):e}function i(t,i){this.$element=e(t),this.options=i,this.enabled=!0,this.fixTitle(),i.langid&&this.parseLangid(this),i.ref&&(this.options.title="ref")}i.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r=e.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),o=n[0].offsetWidth,a=n[0].offsetHeight,s=t(this.options.gravity,this.$element[0]),l={};switch(s.charAt(0)){case"n":l={top:r.top+r.height+this.options.offset,left:r.left+r.width/2-o/2};break;case"s":l={top:r.top-a-this.options.offset,left:r.left+r.width/2-o/2};break;case"e":l={top:r.top+r.height/2-a/2,left:r.left-o-this.options.offset};break;case"w":l={top:r.top+r.height/2-a/2,left:r.left+r.width+this.options.offset}}2==s.length&&("w"==s.charAt(1)?l.left=r.left+r.width/2-15:l.left=r.left+r.width/2-o+15),n.css(l).addClass("tipsy-"+s),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+s.charAt(0),this.options.className&&n.addClass(t(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity});var c=this;c.options.closeIcon&&n.find(".tipsy-close").bind("click",(function(){c.hide()}))}},hide:function(){this.options.fade?this.tip().stop().fadeOut((function(){e(this).remove()})):this.tip().remove()},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("original-title"))&&e.attr("original-title",e.attr("title")||"").removeAttr("title")},clearTitle:function(){var e=this.$element;"string"==typeof e.attr("original-title")&&(e.attr("original-title",""),this.options.title="title")},getTitle:function(){var t,i=this.$element,n=this.options;if(this.fixTitle(),(n=this.options).langid,"string"==typeof n.title)switch(n.title){case"title":t=i.attr("original-title");break;case"text":t=i.text();break;case"html":t=i.html();break;case"ref":var r=n.ref;if(r)if(erajs.isInstantiate(r)){var o=erajs.getCmp(r);t=o.options&&o.options.multiple&&o.options.multiple?o.getValues():o.getValue()}else t=e("#"+r).val()||e("#"+r).text();break;default:t=i.attr(n.title)}else"function"==typeof n.title&&(t=n.title.call(i[0]));return(t=(""+t).replace(/(^\s*|\s*$)/,""))||n.fallback},tip:function(){if(!this.$tip){var t='<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>';this.options.closeIcon&&(t+='<a class="tipsy-close">x</a>'),this.$tip=e('<div class="tipsy"></div>').html(t),this.$tip.data("tipsy-pointee",this.$element[0])}return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},parseLangid:function(e){var t=e.$element,i=e.options.langid;i&&t.attr("original-title",erajs.getMessage(i,!1))}},e.fn.tipsy=function(t){function n(n){var r=e.data(n,"tipsy");return r||(r=new i(n,e.fn.tipsy.elementOptions(n,t)),e.data(n,"tipsy",r)),r}if(!0===t)return this.data("tipsy");if("string"==typeof t){var r=this.data("tipsy");return r&&r[t](),this}if((t=e.extend({},e.fn.tipsy.defaults,t)).live||this.each((function(){n(this)})),"manual"!=t.trigger){var o=t.live?"live":"bind",a="hover"==t.trigger?"mouseenter":"focus",s="hover"==t.trigger?"mouseleave":"blur";this[o](a,(function(){var e=n(this);e.hoverState="in",0==t.delayIn?e.show():(e.fixTitle(),setTimeout((function(){"in"==e.hoverState&&e.show()}),t.delayIn))}))[o](s,(function(){var e=n(this);e.hoverState="out",0==t.delayOut?e.hide():setTimeout((function(){"out"==e.hoverState&&e.hide()}),t.delayOut)}))}return this},e.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},e.fn.tipsy.revalidate=function(){e(".tipsy").each((function(){var t=e.data(this,"tipsy-pointee");t&&function(e){for(;e=e.parentNode;)if(e==document)return!0;return!1}(t)||e(this).remove()}))},e.fn.tipsy.elementOptions=function(t,i){return e.metadata?e.extend({},i,e(t).metadata()):i},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(window).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(window).width()/2?"e":"w"},e.fn.tipsy.autoBounds=function(t,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},r=e(document).scrollTop()+t,o=e(document).scrollLeft()+t,a=e(this);return a.offset().top<r&&(n.ns="n"),a.offset().left<o&&(n.ew="w"),e(window).width()+e(document).scrollLeft()-a.offset().left<t&&(n.ew="e"),e(window).height()+e(document).scrollTop()-a.offset().top<t&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(f),function(e){function t(t,i){return t||(t=a()),(l=e("#"+t.containerId)).length||i&&(l=function(t){return(l=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(t.target)),l}(t)),l}function i(t){for(var i=l.children(),r=i.length-1;r>=0;r--)n(e(i[r]),t)}function n(t,i,n){var r=!(!n||!n.force)&&n.force;return!(!t||!r&&0!==e(":focus",t).length||(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){s(t)}}),0))}function r(e){c&&c(e)}function o(i){function n(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function o(t){var i=t&&!1!==c.closeMethod?c.closeMethod:c.hideMethod,n=t&&!1!==c.closeDuration?c.closeDuration:c.hideDuration,o=t&&!1!==c.closeEasing?c.closeEasing:c.hideEasing;if(!e(":focus",f).length||t)return clearTimeout(b.intervalId),f[i]({duration:n,easing:o,complete:function(){s(f),c.onHidden&&"hidden"!==w.state&&c.onHidden(),w.state="hidden",w.endTime=new Date,r(w)}})}var c=a(),p=i.iconClass||c.iconClass;if(void 0!==i.optionsOverride&&(c=e.extend(c,i.optionsOverride),p=i.optionsOverride.iconClass||p),!function(e,t){if(e.preventDuplicates){if(t.message===u)return!0;u=t.message}return!1}(c,i)){d++,l=t(c,!0);var h=null,f=e("<div/>"),g=e("<div/>"),m=e("<div/>"),v=e("<div/>"),y=e(c.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},w={toastId:d,state:"visible",startTime:new Date,options:c,map:i};return i.iconClass&&f.addClass(c.toastClass).addClass(p),i.title&&(g.append(c.escapeHtml?n(i.title):i.title).addClass(c.titleClass),f.append(g)),i.message&&(m.append(c.escapeHtml?n(i.message):i.message).addClass(c.messageClass),f.append(m)),c.closeButton&&(y.addClass("toast-close-button").attr("role","button"),f.prepend(y)),c.progressBar&&(v.addClass("toast-progress"),f.prepend(v)),c.newestOnTop?l.prepend(f):l.append(f),f.hide(),f[c.showMethod]({duration:c.showDuration,easing:c.showEasing,complete:c.onShown}),c.timeOut>0&&(h=setTimeout(o,c.timeOut),b.maxHideTime=parseFloat(c.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,c.progressBar&&(b.intervalId=setInterval((function(){var e=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;v.width(e+"%")}),10))),c.hoverToDismiss&&f.hover((function(){clearTimeout(h),b.hideEta=0,f.stop(!0,!0)[c.showMethod]({duration:c.showDuration,easing:c.showEasing})}),(function(){(c.timeOut>0||c.extendedTimeOut>0)&&(h=setTimeout(o,c.extendedTimeOut),b.maxHideTime=parseFloat(c.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)})),!c.onclick&&c.tapToDismiss&&f.click(o),c.closeButton&&y&&y.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),o(!0)})),c.onclick&&f.click((function(e){c.onclick(e),o()})),r(w),c.debug&&console&&console.log(w),f}}function a(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,hoverToDismiss:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},e.toast.options)}function s(e){l||(l=t()),e.is(":visible")||(e.remove(),e=null,0===l.children().length&&(l.remove(),u=void 0))}e.toast={clear:function(e,r){var o=a();l||t(o),n(e,o,r)||i(o)},remove:function(i){var n=a();return l||t(n),i&&0===e(":focus",i).length?void s(i):void(l.children().length&&l.remove())},error:function(e,t,i){return o({type:p.error,iconClass:a().iconClasses.error,message:e,optionsOverride:i,title:t})},getContainer:t,info:function(e,t,i){return o({type:p.info,iconClass:a().iconClasses.info,message:e,optionsOverride:i,title:t})},options:{},subscribe:function(e){c=e},success:function(e,t,i){return o({type:p.success,iconClass:a().iconClasses.success,message:e,optionsOverride:i,title:t})},VERSION:"2.3.27",warning:function(e,t,i){return o({type:p.warning,iconClass:a().iconClasses.warning,message:e,optionsOverride:i,title:t})}};var l,c,u,d=0,p={error:"error",info:"info",success:"success",warning:"warning"}}(f)})?n.apply(t,r):n)||(e.exports=o)},function(module,exports,__nested_webpack_require_621289__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,a;a=function(Eui){!function($,alias){function _pivotfilter(e,t){var i,n,r,o=[];if(!this||"function"!=typeof e||e instanceof RegExp)throw new TypeError;for(r=this.length,i=0;i<r;i++)if(this.hasOwnProperty(i)&&(n=this[i],e.call(t,n,i,this))){o.push(n);break}return o}$.jgrid=$.jgrid||{},$.jgrid.hasOwnProperty("regional")||($.jgrid.regional=[]),$.jgrid.regional.en={defaults:{recordtext:"View {0} - {1} of {2}",emptyrecords:"No records to view",loadtext:"Loading...",savetext:"Saving...",pgtext:"Page {0} of {1}",pgfirst:"First Page",pglast:"Last Page",pgnext:"Next Page",pgprev:"Previous Page",pgrecs:"Records per Page",showhide:"Toggle Expand Collapse Grid",pagerCaption:"Grid::Page Settings",pageText:"Page:",recordPage:"Records per Page",nomorerecs:"No more records...",scrollPullup:"Pull up to load more...",scrollPulldown:"Pull down to refresh...",scrollRefresh:"Release to refresh..."},search:{caption:"Search...",Find:"Find",Reset:"Reset",odata:[{oper:"eq",text:"equal"},{oper:"ne",text:"not equal"},{oper:"lt",text:"less"},{oper:"le",text:"less or equal"},{oper:"gt",text:"greater"},{oper:"ge",text:"greater or equal"},{oper:"bw",text:"begins with"},{oper:"bn",text:"does not begin with"},{oper:"in",text:"is in"},{oper:"ni",text:"is not in"},{oper:"ew",text:"ends with"},{oper:"en",text:"does not end with"},{oper:"cn",text:"contains"},{oper:"nc",text:"does not contain"},{oper:"nu",text:"is null"},{oper:"nn",text:"is not null"},{oper:"bt",text:"between"}],groupOps:[{op:"AND",text:"all"},{op:"OR",text:"any"}],operandTitle:"Click to select search operation.",resetTitle:"Reset Search Value"},edit:{addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",bClose:"Close",saveData:"Data has been changed! Save changes?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Field is required",number:"Please, enter valid number",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to",email:"is not a valid e-mail",integer:"Please, enter valid integer value",date:"Please, enter valid date value",url:"is not a valid URL. Prefix required ('http://' or 'https://')",nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"View Record",bClose:"Close"},del:{caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel"},nav:{edittext:"",edittitle:"Edit selected row",addtext:"",addtitle:"Add new row",deltext:"",deltitle:"Delete selected row",searchtext:"",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning",alerttext:"Please, select row",viewtext:"",viewtitle:"View selected row",savetext:"",savetitle:"Save row",canceltext:"",canceltitle:"Cancel row editing",selectcaption:"Actions..."},col:{caption:"Select columns",bSubmit:"Ok",bCancel:"Cancel"},errors:{errcap:"Error",nourl:"No url is set",norecords:"No records to process",model:"Length of colNames <> colModel!"},formatter:{integer:{thousandsSeparator:",",defaultValue:"0"},number:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,defaultValue:"0.00"},currency:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0.00"},date:{dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],AmPm:["am","pm","AM","PM"],S:function(e){return e<11||e>13?["st","nd","rd","th"][Math.min((e-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"n/j/Y",parseRe:/[#%\\\/:_;.,\t\s-]/,masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:!1,userLocalTime:!1},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:!0},idName:"id"},colmenu:{sortasc:"Sort Ascending",sortdesc:"Sort Descending",columns:"Columns",filter:"Filter",grouping:"Group By",ungrouping:"Ungroup",searchTitle:"Get items with value that:",freeze:"Freeze",unfreeze:"Unfreeze",reorder:"Move to reorder"}},$.jgrid=$.jgrid||{},$.jgrid.hasOwnProperty("defaults")||($.jgrid.defaults={}),$.extend($.jgrid,{version:"5.1.1",htmlDecode:function(e){return e&&(" "===e||" "===e||1===e.length&&160===e.charCodeAt(0))?"":e?String(e).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/&/g,"&"):e},htmlEncode:function(e){return e?String(e).replace(/&/g,"&").replace(/\"/g,""").replace(/</g,"<").replace(/>/g,">"):e},template:function(e){var t,i=$.makeArray(arguments).slice(1),n=i.length;return null==e&&(e=""),e.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,(function(e,r){if(!isNaN(parseInt(r,10)))return i[parseInt(r,10)];for(t=0;t<n;t++)if($.isArray(i[t]))for(var o=i[t],a=o.length;a--;)if(r===o[a].nm)return o[a].v}))},msie:function(){return $.jgrid.msiever()>0},msiever:function(){var e=0,t=window.navigator.userAgent,i=t.indexOf("MSIE");return i>0?e=parseInt(t.substring(i+5,t.indexOf(".",i))):navigator.userAgent.match(/Trident\/7\./)&&(e=11),e},getCellIndex:function(e){var t=$(e);return t.is("tr")?-1:(t=(t.is("td")||t.is("th")?t:t.closest("td,th"))[0],$.jgrid.msie()?$.inArray(t,t.parentNode.cells):t.cellIndex)},stripHtml:function(e){return(e=String(e))?(e=e.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,""))&&" "!==e&&" "!==e?e.replace(/\"/g,"'"):"":e},stripPref:function(e,t){var i=$.type(e);return"string"!==i&&"number"!==i||(t=""!==(e=String(e))?String(t).replace(String(e),""):t),t},useJSON:!0,parse:function(e){var t=e;return"while(1);"===t.substr(0,9)&&(t=t.substr(9)),"/*"===t.substr(0,2)&&(t=t.substr(2,t.length-4)),t||(t="{}"),!0===$.jgrid.useJSON&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(t):$.decode(t)},parseDate:function(e,t,i,n){var r,o,a,s=new RegExp("^/Date\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\)/$"),l="string"==typeof t?t.match(s):null,c=function(e,t){for(e=String(e),t=parseInt(t,10)||2;e.length<t;)e="0"+e;return e},u={m:1,d:1,y:1970,h:0,i:0,s:0,u:0},d=0,p=function(e,t){return 0===e?12===t&&(t=0):12!==t&&(t+=12),t},h=0;if(void 0===n&&(n=$.jgrid.getRegional(this,"formatter.date")),void 0===n.parseRe&&(n.parseRe=/[#%\\\/:_;.,\t\s-]/),n.masks.hasOwnProperty(e)&&(e=n.masks[e]),t&&null!=t)if(isNaN(t-0)||"u"!==String(e).toLowerCase())if(t.constructor===Date)d=t;else if(null!==l)d=new Date(parseInt(l[1],10)),l[3]&&(h=60*Number(l[5])+Number(l[6]),h*="-"===l[4]?1:-1,h-=d.getTimezoneOffset(),d.setTime(Number(Number(d)+60*h*1e3)));else{for("ISO8601Long"===n.srcformat&&"Z"===t.charAt(t.length-1)&&(h-=(new Date).getTimezoneOffset()),t=String(t).replace(/\T/g,"#").replace(/\t/,"%").split(n.parseRe),o=0,a=(e=e.replace(/\T/g,"#").replace(/\t/,"%").split(n.parseRe)).length;o<a;o++){switch(e[o]){case"M":-1!==(r=$.inArray(t[o],n.monthNames))&&r<12&&(t[o]=r+1,u.m=t[o]);break;case"F":-1!==(r=$.inArray(t[o],n.monthNames,12))&&r>11&&(t[o]=r+1-12,u.m=t[o]);break;case"n":e[o]="m";break;case"j":e[o]="d";break;case"a":-1!==(r=$.inArray(t[o],n.AmPm))&&r<2&&t[o]===n.AmPm[r]&&(t[o]=r,u.h=p(t[o],u.h));break;case"A":-1!==(r=$.inArray(t[o],n.AmPm))&&r>1&&t[o]===n.AmPm[r]&&(t[o]=r-2,u.h=p(t[o],u.h));break;case"g":u.h=parseInt(t[o],10)}void 0!==t[o]&&(u[e[o].toLowerCase()]=parseInt(t[o],10))}if(u.f&&(u.m=u.f),0===u.m&&0===u.y&&0===u.d)return" ";u.m=parseInt(u.m,10)-1;var f=u.y;f>=70&&f<=99?u.y=1900+u.y:f>=0&&f<=69&&(u.y=2e3+u.y),d=new Date(u.y,u.m,u.d,u.h,u.i,u.s,u.u),h>0&&d.setTime(Number(Number(d)+60*h*1e3))}else d=new Date(1e3*parseFloat(t));else d=new Date(u.y,u.m,u.d,u.h,u.i,u.s,u.u);if(n.userLocalTime&&0===h&&(h-=(new Date).getTimezoneOffset())>0&&d.setTime(Number(Number(d)+60*h*1e3)),void 0===i)return d;n.masks.hasOwnProperty(i)?i=n.masks[i]:i||(i="Y-m-d");var g=d.getHours(),m=d.getMinutes(),v=d.getDate(),y=d.getMonth()+1,b=d.getTimezoneOffset(),w=d.getSeconds(),_=d.getMilliseconds(),x=d.getDay(),C=d.getFullYear(),k=(x+6)%7+1,S=(new Date(C,y-1,v)-new Date(C,0,1))/864e5,E={d:c(v),D:n.dayNames[x],j:v,l:n.dayNames[x+7],N:k,S:n.S(v),w:x,z:S,W:k<5?Math.floor((S+k-1)/7)+1:Math.floor((S+k-1)/7)||((new Date(C-1,0,1).getDay()+6)%7<4?53:52),F:n.monthNames[y-1+12],m:c(y),M:n.monthNames[y-1],n:y,t:"?",L:"?",o:"?",Y:C,y:String(C).substring(2),a:g<12?n.AmPm[0]:n.AmPm[1],A:g<12?n.AmPm[2]:n.AmPm[3],B:"?",g:g%12||12,G:g,h:c(g%12||12),H:c(g),i:c(m),s:c(w),u:_,e:"?",I:"?",O:(b>0?"-":"+")+c(100*Math.floor(Math.abs(b)/60)+Math.abs(b)%60,4),P:"?",T:(String(d).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g)||[""]).pop().replace(/[^-+\dA-Z]/g,""),Z:"?",c:"?",r:"?",U:Math.floor(d/1e3)};return i.replace(/\\.|[dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU]/g,(function(e){return E.hasOwnProperty(e)?E[e]:e.substring(1)}))},jqID:function(e){return String(e).replace(/[!"#$%&'()*+,.\/:; <=>?@\[\\\]\^`{|}~]/g,"\\$&")},guid:1,uidPref:"jqg",randId:function(e){return(e||$.jgrid.uidPref)+$.jgrid.guid++},getAccessor:function(e,t){var i,n,r=[];if("function"==typeof t)return t(e);if(void 0===(i=e[t]))try{if("string"==typeof t&&(r=t.split(".")),n=r.length)for(i=e;i&&n--;)i=i[r.shift()]}catch(e){}return i},getXmlData:function(e,t,i){var n,r="string"==typeof t?t.match(/^(.*)\[(\w+)\]$/):null;return"function"==typeof t?t(e):r&&r[2]?r[1]?$(r[1],e).attr(r[2]):$(e).attr(r[2]):(n=$(t,e),i?n:n.length>0?$(n).text():void 0)},cellWidth:function(){var e=$("<div class='ui-jqgrid' style='left:10000px'><table class='ui-jqgrid-btable ui-common-table' style='width:5px;'><tr class='jqgrow'><td style='width:5px;display:block;'></td></tr></table></div>"),t=e.appendTo("body").find("td").width();return e.remove(),Math.abs(t-5)>.1},isLocalStorage:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}},getRegional:function(e,t,i){var n;return void 0!==i?i:(e.p&&e.p.regional&&$.jgrid.regional&&(n=$.jgrid.getAccessor($.jgrid.regional[e.p.regional]||{},t)),void 0===n&&(n=$.jgrid.getAccessor($.jgrid,t)),n)},isMobile:function(){try{return!!/Android|webOS|iPhone|iPad|iPod|pocket|psp|kindle|avantgo|blazer|midori|Tablet|Palm|maemo|plucker|phone|BlackBerry|symbian|IEMobile|mobile|ZuneWP7|Windows Phone|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}},cell_width:!0,ajaxOptions:{},from:function(source){var $t=this,QueryObject=function(d,q){"string"==typeof d&&(d=$.data(d));var self=this,_data=d,_usecase=!0,_trim=!1,_query=q,_stripNum=/[\$,%]/g,_lastCommand=null,_lastField=null,_orDepth=0,_negate=!1,_queuedOperator="",_sorting=[],_useProperties=!0;if("object"!=typeof d||!d.push)throw"data provides is not an array";return d.length>0&&(_useProperties="object"==typeof d[0]),this._hasData=function(){return null!==_data&&0!==_data.length},this._getStr=function(e){var t=[];return _trim&&t.push("Eui.trim("),t.push("String("+e+")"),_trim&&t.push(")"),_usecase||t.push(".toLowerCase()"),t.join("")},this._strComp=function(e){return"string"==typeof e?".toString()":""},this._group=function(e,t){return{field:e.toString(),unique:t,items:[]}},this._toStr=function(e){return _trim&&(e=$.trim(e)),e=e.toString().replace(/\\/g,"\\\\").replace(/\"/g,'\\"'),_usecase?e:e.toLowerCase()},this._funcLoop=function(e){var t=[];return $.each(_data,(function(i,n){t.push(e(n))})),t},this._append=function(e){var t;for(null===_query?_query="":_query+=""===_queuedOperator?" && ":_queuedOperator,t=0;t<_orDepth;t++)_query+="(";_negate&&(_query+="!"),_query+="("+e+")",_negate=!1,_queuedOperator="",_orDepth=0},this._setCommand=function(e,t){_lastCommand=e,_lastField=t},this._resetNegate=function(){_negate=!1},this._repeatCommand=function(e,t){return null===_lastCommand?self:null!==e&&null!==t?_lastCommand(e,t):null===_lastField?_lastCommand(e):_useProperties?_lastCommand(_lastField,e):_lastCommand(e)},this._equals=function(e,t){return 0===self._compare(e,t,1)},this._compare=function(e,t,i){var n=Object.prototype.toString;return void 0===i&&(i=1),void 0===e&&(e=null),void 0===t&&(t=null),null==e?null==t?0:1:null==t?-1:("[object Date]"===n.call(e)&&"[object Date]"===n.call(t)||_usecase||"number"==typeof e||"number"==typeof t||(e=String(e),t=String(t)),e<t?-i:e>t?i:0)},this._performSort=function(){0!==_sorting.length&&(_data=self._doSort(_data,0))},this._doSort=function(e,t){var i=_sorting[t].by,n=_sorting[t].dir,r=_sorting[t].type,o=_sorting[t].datefmt,a=_sorting[t].sfunc;if(t===_sorting.length-1)return self._getOrder(e,i,n,r,o,a);t++;var s,l,c,u=self._getGroup(e,i,n,r,o),d=[];for(s=0;s<u.length;s++)for(c=self._doSort(u[s].items,t),l=0;l<c.length;l++)d.push(c[l]);return d},this._getOrder=function(e,t,i,n,r,o){var a,s,l,c,u=[],d=[],p="a"===i?1:-1;void 0===n&&(n="text"),c="float"===n||"number"===n||"currency"===n||"numeric"===n?function(e){var t=parseFloat(String(e).replace(_stripNum,""));return isNaN(t)?Number.NEGATIVE_INFINITY:t}:"int"===n||"integer"===n?function(e){return e?parseFloat(String(e).replace(_stripNum,"")):Number.NEGATIVE_INFINITY}:"date"===n||"datetime"===n?function(e){return $.jgrid.parseDate.call($t,r,e).getTime()}:$.isFunction(n)?n:function(e){return e=e?$.trim(String(e)):"",_usecase?e:e.toLowerCase()},$.each(e,(function(e,i){void 0===(s=""!==t?$.jgrid.getAccessor(i,t):i)&&(s=""),s=c(s,i),d.push({vSort:s,index:e})})),$.isFunction(o)?d.sort((function(e,t){return o.call(this,e.vSort,t.vSort,p,e,t)})):d.sort((function(e,t){return self._compare(e.vSort,t.vSort,p)})),l=0;for(var h=e.length;l<h;)a=d[l].index,u.push(e[a]),l++;return u},this._getGroup=function(e,t,i,n,r){var o,a=[],s=null,l=null;return $.each(self._getOrder(e,t,i,n,r),(function(e,i){null==(o=$.jgrid.getAccessor(i,t))&&(o=""),self._equals(l,o)||(l=o,null!==s&&a.push(s),s=self._group(t,o)),s.items.push(i)})),null!==s&&a.push(s),a},this.ignoreCase=function(){return _usecase=!1,self},this.useCase=function(){return _usecase=!0,self},this.trim=function(){return _trim=!0,self},this.noTrim=function(){return _trim=!1,self},this.execute=function(){var match=_query,results=[];return null===match||($.each(_data,(function(){eval(match)&&results.push(this)})),_data=results),self},this.data=function(){return _data},this.select=function(e){if(self._performSort(),!self._hasData())return[];if(self.execute(),$.isFunction(e)){var t=[];return $.each(_data,(function(i,n){t.push(e(n))})),t}return _data},this.hasMatch=function(){return!!self._hasData()&&(self.execute(),_data.length>0)},this.andNot=function(e,t,i){return _negate=!_negate,self.and(e,t,i)},this.orNot=function(e,t,i){return _negate=!_negate,self.or(e,t,i)},this.not=function(e,t,i){return self.andNot(e,t,i)},this.and=function(e,t,i){return _queuedOperator=" && ",void 0===e?self:self._repeatCommand(e,t,i)},this.or=function(e,t,i){return _queuedOperator=" || ",void 0===e?self:self._repeatCommand(e,t,i)},this.orBegin=function(){return _orDepth++,self},this.orEnd=function(){return null!==_query&&(_query+=")"),self},this.isNot=function(e){return _negate=!_negate,self.is(e)},this.is=function(e){return self._append("this."+e),self._resetNegate(),self},this._compareValues=function(e,t,i,n,r){var o;o=_useProperties?"Eui.jgrid.getAccessor(this,'"+t+"')":"this",void 0===i&&(i=null);var a=i,s=void 0===r.stype?"text":r.stype;if(null!==i)switch(s){case"int":case"integer":o="parseInt("+o+",10)",a="parseInt("+(a=isNaN(Number(a))||""===a?"0":a)+",10)";break;case"float":case"number":case"numeric":a=String(a).replace(_stripNum,""),o="parseFloat("+o+")",a="parseFloat("+(a=isNaN(Number(a))||""===a?"0":a)+")";break;case"date":case"datetime":a=String($.jgrid.parseDate.call($t,r.srcfmt||"Y-m-d",a).getTime()),o='Eui.jgrid.parseDate.call(Eui("#'+$.jgrid.jqID($t.p.id)+'")[0],"'+r.srcfmt+'",'+o+").getTime()";break;default:o=self._getStr(o),a=self._getStr('"'+self._toStr(a)+'"')}return self._append(o+" "+n+" "+a),self._setCommand(e,t),self._resetNegate(),self},this.equals=function(e,t,i){return self._compareValues(self.equals,e,t,"==",i)},this.notEquals=function(e,t,i){return self._compareValues(self.equals,e,t,"!==",i)},this.isNull=function(e,t,i){return self._compareValues(self.equals,e,null,"===",i)},this.greater=function(e,t,i){return self._compareValues(self.greater,e,t,">",i)},this.less=function(e,t,i){return self._compareValues(self.less,e,t,"<",i)},this.greaterOrEquals=function(e,t,i){return self._compareValues(self.greaterOrEquals,e,t,">=",i)},this.lessOrEquals=function(e,t,i){return self._compareValues(self.lessOrEquals,e,t,"<=",i)},this.startsWith=function(e,t){var i=null==t?e:t,n=_trim?$.trim(i.toString()).length:i.toString().length;return _useProperties?self._append(self._getStr("Eui.jgrid.getAccessor(this,'"+e+"')")+".substr(0,"+n+") == "+self._getStr('"'+self._toStr(t)+'"')):(null!=t&&(n=_trim?$.trim(t.toString()).length:t.toString().length),self._append(self._getStr("this")+".substr(0,"+n+") == "+self._getStr('"'+self._toStr(e)+'"'))),self._setCommand(self.startsWith,e),self._resetNegate(),self},this.endsWith=function(e,t){var i=null==t?e:t,n=_trim?$.trim(i.toString()).length:i.toString().length;return _useProperties?self._append(self._getStr("Eui.jgrid.getAccessor(this,'"+e+"')")+".substr("+self._getStr("Eui.jgrid.getAccessor(this,'"+e+"')")+".length-"+n+","+n+') == "'+self._toStr(t)+'"'):self._append(self._getStr("this")+".substr("+self._getStr("this")+'.length-"'+self._toStr(e)+'".length,"'+self._toStr(e)+'".length) == "'+self._toStr(e)+'"'),self._setCommand(self.endsWith,e),self._resetNegate(),self},this.contains=function(e,t){return _useProperties?self._append(self._getStr("Eui.jgrid.getAccessor(this,'"+e+"')")+'.indexOf("'+self._toStr(t)+'",0) > -1'):self._append(self._getStr("this")+'.indexOf("'+self._toStr(e)+'",0) > -1'),self._setCommand(self.contains,e),self._resetNegate(),self},this.groupBy=function(e,t,i,n){return self._hasData()?self._getGroup(_data,e,t,i,n):null},this.orderBy=function(e,t,i,n,r){return null==i&&(i="text"),null==n&&(n="Y-m-d"),null==r&&(r=!1),"desc"!==(t=null==t?"a":$.trim(t.toString().toLowerCase()))&&"descending"!==t||(t="d"),"asc"!==t&&"ascending"!==t||(t="a"),_sorting.push({by:e,dir:t,type:i,datefmt:n,sfunc:r}),self},self};return new QueryObject(source,null)},getMethod:function(e){return this.getAccessor($.fn.jqGrid,e)},extend:function(e){$.extend($.fn.jqGrid,e),this.no_legacy_api||$.fn.extend(e)},clearBeforeUnload:function(e){var t,i=$("#"+$.jgrid.jqID(e))[0];if(i.grid){t=i.grid,$.isFunction(t.emptyRows)&&t.emptyRows.call(i,!0,!0),$(document).off("mouseup.jqGrid"+i.p.id),$(t.hDiv).off("mousemove"),$(i).off();var n,r=t.headers.length,o=["formatCol","sortData","updatepager","refreshIndex","setHeadCheckBox","constructTr","formatter","addXmlData","addJSONData","grid","p"];for(n=0;n<r;n++)t.headers[n].el=null;for(n in t)t.hasOwnProperty(n)&&(t[n]=null);for(n in i.p)i.p.hasOwnProperty(n)&&(i.p[n]=$.isArray(i.p[n])?[]:null);for(r=o.length,n=0;n<r;n++)i.hasOwnProperty(o[n])&&(i[o[n]]=null,delete i[o[n]])}},gridUnload:function(e){if(e){0===(e=$.trim(e)).indexOf("#")&&(e=e.substring(1));var t=$("#"+$.jgrid.jqID(e))[0];if(t.grid){var i={id:$(t).attr("id"),cl:$(t).attr("class")};t.p.pager&&$(t.p.pager).off().empty().removeClass("ui-state-default ui-jqgrid-pager ui-corner-bottom");var n=document.createElement("table");n.className=i.cl;var r=$.jgrid.jqID(t.id);$(n).removeClass("ui-jqgrid-btable ui-common-table").insertBefore("#gbox_"+r),1===$(t.p.pager).parents("#gbox_"+r).length&&$(t.p.pager).insertBefore("#gbox_"+r),$.jgrid.clearBeforeUnload(e),$("#gbox_"+r).remove(),$(n).attr({id:i.id}),$("#alertmod_"+$.jgrid.jqID(e)).remove()}}},gridDestroy:function(e){if(e){0===(e=$.trim(e)).indexOf("#")&&(e=e.substring(1));var t=$("#"+$.jgrid.jqID(e))[0];if(t.grid){t.p.pager&&$(t.p.pager).remove();try{$.jgrid.clearBeforeUnload(e),$("#gbox_"+$.jgrid.jqID(e)).remove()}catch(e){}}}},styleUI:{EuiUI:{common:{disabled:"ui-state-disabled",highlight:"ui-state-highlight",hover:"ui-state-hover",cornerall:"ui-corner-all",cornertop:"ui-corner-top",cornerbottom:"ui-corner-bottom",hidden:"ui-helper-hidden",icon_base:"ui-icon",overlay:"ui-widget-overlay",active:"ui-state-active",error:"ui-state-error",button:"ui-state-default ui-corner-all",content:"ui-widget-content"},base:{entrieBox:"ui-widget ui-widget-content ui-corner-all",viewBox:"",headerTable:"",headerBox:"ui-state-default",rowTable:"",rowBox:"ui-widget-content",footerTable:"",footerBox:"ui-widget-content",headerDiv:"ui-state-default",gridtitleBox:"ui-widget-header ui-corner-top ui-helper-clearfix",customtoolbarBox:"ui-state-default",loadingBox:"ui-state-default ui-state-active",rownumBox:"ui-state-default",scrollBox:"ui-widget-content",multiBox:"",pagerBox:"ui-state-default ui-corner-bottom",pagerTable:"",toppagerBox:"ui-state-default",pgInput:"ui-corner-all",pgSelectBox:"ui-widget-content ui-corner-all",pgButtonBox:"ui-corner-all",icon_first:"ui-icon-seek-first",icon_prev:"ui-icon-seek-prev",icon_next:"ui-icon-seek-next",icon_end:"ui-icon-seek-end",icon_asc:"ui-icon-triangle-1-n",icon_desc:"ui-icon-triangle-1-s",icon_caption_open:"ui-icon-circle-triangle-n",icon_caption_close:"ui-icon-circle-triangle-s"},modal:{modal:"ui-widget ui-widget-content ui-corner-all ui-dialog",header:"ui-widget-header ui-corner-all ui-helper-clearfix",content:"ui-widget-content",resizable:"ui-resizable-handle ui-resizable-se",icon_close:"ui-icon-closethick",icon_resizable:"ui-icon-gripsmall-diagonal-se"},celledit:{inputClass:"ui-widget-content ui-corner-all"},inlinedit:{inputClass:"ui-widget-content ui-corner-all",icon_edit_nav:"ui-icon-pencil",icon_add_nav:"ui-icon-plus",icon_save_nav:"ui-icon-disk",icon_cancel_nav:"ui-icon-cancel"},formedit:{inputClass:"ui-widget-content ui-corner-all",icon_prev:"ui-icon-triangle-1-w",icon_next:"ui-icon-triangle-1-e",icon_save:"ui-icon-disk",icon_close:"ui-icon-close",icon_del:"ui-icon-scissors",icon_cancel:"ui-icon-cancel"},navigator:{icon_edit_nav:"ui-icon-pencil",icon_add_nav:"ui-icon-plus",icon_del_nav:"ui-icon-trash",icon_search_nav:"ui-icon-search",icon_refresh_nav:"ui-icon-refresh",icon_view_nav:"ui-icon-document",icon_newbutton_nav:"ui-icon-newwin"},grouping:{icon_plus:"ui-icon-circlesmall-plus",icon_minus:"ui-icon-circlesmall-minus"},filter:{table_widget:"ui-widget ui-widget-content",srSelect:"ui-widget-content ui-corner-all",srInput:"ui-widget-content ui-corner-all",menu_widget:"ui-widget ui-widget-content ui-corner-all",icon_search:"ui-icon-search",icon_reset:"ui-icon-arrowreturnthick-1-w",icon_query:"ui-icon-comment"},subgrid:{icon_plus:"ui-icon-plus",icon_minus:"ui-icon-minus",icon_open:"ui-icon-carat-1-sw"},treegrid:{icon_plus:"ui-icon-triangle-1-",icon_minus:"ui-icon-triangle-1-s",icon_leaf:"ui-icon-radio-off"},fmatter:{icon_edit:"ui-icon-pencil",icon_add:"ui-icon-plus",icon_save:"ui-icon-disk",icon_cancel:"ui-icon-cancel",icon_del:"ui-icon-trash"},colmenu:{menu_widget:"ui-widget ui-widget-content ui-corner-all",input_checkbox:"ui-widget ui-widget-content",filter_select:"ui-widget-content ui-corner-all",filter_input:"ui-widget-content ui-corner-all",icon_menu:"ui-icon-comment",icon_sort_asc:"ui-icon-arrow-1-n",icon_sort_desc:"ui-icon-arrow-1-s",icon_columns:"ui-icon-extlink",icon_filter:"ui-icon-calculator",icon_group:"ui-icon-grip-solid-horizontal",icon_freeze:"ui-icon-grip-solid-vertical",icon_move:"ui-icon-arrow-4"}},Bootstrap:{common:{disabled:"ui-disabled",highlight:"success",hover:"active",cornerall:"",cornertop:"",cornerbottom:"",hidden:"",icon_base:"glyphicon",overlay:"ui-overlay",active:"active",error:"bg-danger",button:"btn btn-default",content:""},base:{entrieBox:"",viewBox:"table-responsive",headerTable:"table table-bordered",headerBox:"",rowTable:"table table-bordered",rowBox:"",footerTable:"table table-bordered",footerBox:"",headerDiv:"",gridtitleBox:"",customtoolbarBox:"",loadingBox:"row",rownumBox:"active",scrollBox:"",multiBox:"checkbox",pagerBox:"",pagerTable:"table",toppagerBox:"",pgInput:"form-control",pgSelectBox:"form-control",pgButtonBox:"",icon_first:"glyphicon-step-backward",icon_prev:"glyphicon-backward",icon_next:"glyphicon-forward",icon_end:"glyphicon-step-forward",icon_asc:"glyphicon-triangle-top",icon_desc:"glyphicon-triangle-bottom",icon_caption_open:"glyphicon-circle-arrow-up",icon_caption_close:"glyphicon-circle-arrow-down"},modal:{modal:"modal-content",header:"modal-header",title:"modal-title",content:"modal-body",resizable:"ui-resizable-handle ui-resizable-se",icon_close:"glyphicon-remove-circle",icon_resizable:"glyphicon-import"},celledit:{inputClass:"form-control"},inlinedit:{inputClass:"form-control",icon_edit_nav:"glyphicon-edit",icon_add_nav:"glyphicon-plus",icon_save_nav:"glyphicon-save",icon_cancel_nav:"glyphicon-remove-circle"},formedit:{inputClass:"form-control",icon_prev:"glyphicon-step-backward",icon_next:"glyphicon-step-forward",icon_save:"glyphicon-save",icon_close:"glyphicon-remove-circle",icon_del:"glyphicon-trash",icon_cancel:"glyphicon-remove-circle"},navigator:{icon_edit_nav:"glyphicon-edit",icon_add_nav:"glyphicon-plus",icon_del_nav:"glyphicon-trash",icon_search_nav:"glyphicon-search",icon_refresh_nav:"glyphicon-refresh",icon_view_nav:"glyphicon-info-sign",icon_newbutton_nav:"glyphicon-new-window"},grouping:{icon_plus:"glyphicon-triangle-right",icon_minus:"glyphicon-triangle-bottom"},filter:{table_widget:"table table-condensed",srSelect:"form-control",srInput:"form-control",menu_widget:"",icon_search:"glyphicon-search",icon_reset:"glyphicon-refresh",icon_query:"glyphicon-comment"},subgrid:{icon_plus:"glyphicon-triangle-right",icon_minus:"glyphicon-triangle-bottom",icon_open:"glyphicon-indent-left"},treegrid:{icon_plus:"glyphicon-triangle-right",icon_minus:"glyphicon-triangle-bottom",icon_leaf:"glyphicon-unchecked"},fmatter:{icon_edit:"glyphicon-edit",icon_add:"glyphicon-plus",icon_save:"glyphicon-save",icon_cancel:"glyphicon-remove-circle",icon_del:"glyphicon-trash"},colmenu:{menu_widget:"",input_checkbox:"",filter_select:"form-control",filter_input:"form-control",icon_menu:"glyphicon-menu-hamburger",icon_sort_asc:"glyphicon-sort-by-alphabet",icon_sort_desc:"glyphicon-sort-by-alphabet-alt",icon_columns:"glyphicon-list-alt",icon_filter:"glyphicon-filter",icon_group:"glyphicon-align-left",icon_freeze:"glyphicon-object-align-horizontal",icon_move:"glyphicon-move"}}}}),$.fn.jqGrid=function(e){if("string"==typeof e){var t=$.jgrid.getMethod(e);if(!t)throw"jqGrid - No such method: "+e;var i=$.makeArray(arguments).slice(1);return t.apply(this,i)}return this.each((function(){if(!this.grid){var t;null!=e&&void 0!==e.data&&(t=e.data,e.data=[]);var i=$.extend(!0,{url:"",height:150,page:1,rowNum:20,rowTotal:null,records:0,pager:"",pgbuttons:!0,pginput:!0,colModel:[],rowList:[],colNames:[],sortorder:"asc",sortname:"",datatype:"xml",mtype:"GET",altRows:!1,selarrrow:[],savedRow:[],shrinkToFit:!0,xmlReader:{},jsonReader:{},subGrid:!1,subGridModel:[],reccount:0,lastpage:0,lastsort:0,selrow:null,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null,onPaging:null,onSelectAll:null,onInitGrid:null,loadComplete:null,gridComplete:null,loadError:null,loadBeforeSend:null,afterInsertRow:null,beforeRequest:null,beforeProcessing:null,onHeaderClick:null,viewrecords:!1,loadonce:!1,multiselect:!1,multikey:!1,editurl:null,search:!1,caption:"",hidegrid:!0,hiddengrid:!1,hiddenHeader:!1,postData:{},userData:{},treeGrid:!1,treeGridModel:"nested",treeReader:{},treeANode:-1,ExpandColumn:null,tree_root_level:0,prmNames:{page:"page",rows:"rows",sort:"sidx",order:"sord",search:"_search",nd:"nd",id:"id",oper:"oper",editoper:"edit",addoper:"add",deloper:"del",subgridid:"id",npage:null,totalrows:"totalrows"},forceFit:!1,gridstate:"visible",cellEdit:!1,cellsubmit:"remote",nv:0,loadui:"enable",toolbar:[!1,""],scroll:!1,multiboxonly:!1,deselectAfterSort:!0,scrollrows:!1,autowidth:!1,scrollOffset:6,cellLayout:5,subGridWidth:20,multiselectWidth:30,gridview:!0,rownumWidth:35,rownumbers:!1,pagerpos:"left",recordpos:"right",footerrow:!1,userDataOnFooter:!1,hoverrows:!0,altclass:"ui-priority-secondary",viewsortcols:[!1,"vertical",!0],resizeclass:"",autoencode:!1,remapColumns:[],ajaxExtendOptions:{},direction:"ltr",toppager:!1,headertitles:!1,scrollTimeout:40,data:[],_index:{},grouping:!1,groupingView:{groupField:[],groupOrder:[],groupText:[],groupColumnShow:[],groupSummary:[],showSummaryOnHide:!1,sortitems:[],sortnames:[],summary:[],summaryval:[],plusicon:"",minusicon:"",displayField:[],groupSummaryPos:[],formatDisplayField:[],_locgr:!1},ignoreCase:!0,cmTemplate:{},idPrefix:"",multiSort:!1,minColWidth:33,scrollPopUp:!1,scrollTopOffset:0,scrollLeftOffset:"100%",storeNavOptions:!1,regional:"cn",styleUI:"Bootstrap",responsive:!0,restoreCellonFail:!0,colFilters:{},colMenu:!1},$.jgrid.defaults,e);void 0!==t&&(i.data=t,e.data=t);var n=this,r={headers:[],cols:[],footers:[],dragStart:function(e,t,r){var o=$(this.bDiv).offset().left;this.resizing={idx:e,startX:t.pageX,sOL:t.pageX-o},this.hDiv.style.cursor="col-resize",this.curGbox=$("#rs_m"+$.jgrid.jqID(i.id),"#gbox_"+$.jgrid.jqID(i.id)),this.curGbox.css({display:"block",left:t.pageX-o,top:r[1],height:r[2]}),$(n).triggerHandler("jqGridResizeStart",[t,e]),$.isFunction(i.resizeStart)&&i.resizeStart.call(n,t,e),document.onselectstart=function(){return!1}},dragMove:function(e){if(this.resizing){var t,n,r=e.pageX-this.resizing.startX,o=this.headers[this.resizing.idx],a="ltr"===i.direction?o.width+r:o.width-r;a>33&&(this.curGbox.css({left:this.resizing.sOL+r}),!0===i.forceFit?(t=this.headers[this.resizing.idx+i.nv],(n="ltr"===i.direction?t.width-r:t.width+r)>i.minColWidth&&(o.newWidth=a,t.newWidth=n)):(this.newWidth="ltr"===i.direction?i.tblwidth+r:i.tblwidth-r,o.newWidth=a))}},dragEnd:function(e){if(this.hDiv.style.cursor="default",this.resizing){var t=this.resizing.idx,r=this.headers[t].newWidth||this.headers[t].width;r=parseInt(r,10),this.resizing=!1,$("#rs_m"+$.jgrid.jqID(i.id)).css("display","none"),i.colModel[t].width=r,this.headers[t].width=r,this.headers[t].el.style.width=r+"px",this.cols[t].style.width=r+"px",this.footers.length>0&&(this.footers[t].style.width=r+"px"),!0===i.forceFit?(r=this.headers[t+i.nv].newWidth||this.headers[t+i.nv].width,this.headers[t+i.nv].width=r,this.headers[t+i.nv].el.style.width=r+"px",this.cols[t+i.nv].style.width=r+"px",this.footers.length>0&&(this.footers[t+i.nv].style.width=r+"px"),i.colModel[t+i.nv].width=r):(i.tblwidth=this.newWidth||i.tblwidth,$("table:first",this.bDiv).css("width",i.tblwidth+"px"),$("table:first",this.hDiv).css("width",i.tblwidth+"px"),this.hDiv.scrollLeft=this.bDiv.scrollLeft,i.footerrow&&($("table:first",this.sDiv).css("width",i.tblwidth+"px"),this.sDiv.scrollLeft=this.bDiv.scrollLeft)),e&&($(n).triggerHandler("jqGridResizeStop",[r,t]),$.isFunction(i.resizeStop)&&i.resizeStop.call(n,r,t))}this.curGbox=null,document.onselectstart=function(){return!0}},populateVisible:function(){r.timer&&clearTimeout(r.timer),r.timer=null;var e=$(r.bDiv).height();if(e){var t,o,a=$("table:first",r.bDiv);if(a[0].rows.length)try{o=(t=a[0].rows[1])&&$(t).outerHeight()||r.prevRowHeight}catch(e){o=r.prevRowHeight}if(o){r.prevRowHeight=o;var s,l,c,u=i.rowNum,d=r.scrollTop=r.bDiv.scrollTop,p=Math.round(a.position().top)-d,h=p+a.height(),f=o*u;if(h<e&&p<=0&&(void 0===i.lastpage||(parseInt((h+d+f-1)/f,10)||0)<=i.lastpage)&&(l=parseInt((e-h+f-1)/f,10)||1,h>=0||l<2||!0===i.scroll?(s=(Math.round((h+d)/f)||0)+1,p=-1):p=1),p>0&&(s=(parseInt(d/f,10)||0)+1,l=(parseInt((d+e)/f,10)||0)+2-s,c=!0),l){if(i.lastpage&&(s>i.lastpage||1===i.lastpage||s===i.page&&s===i.lastpage))return;r.hDiv.loading?r.timer=setTimeout(r.populateVisible,i.scrollTimeout):(i.page=s,c&&(r.selectionPreserver(a[0]),r.emptyRows.call(a[0],!1,!1)),r.populate(l)),i.scrollPopUp&&null!=i.lastpage&&($("#scroll_g"+i.id).show().html($.jgrid.template($.jgrid.getRegional(n,"defaults.pgtext",i.pgtext),i.page,i.lastpage)).css({top:i.scrollTopOffset+d*((parseInt(i.height,10)-45)/(parseInt(o,10)*parseInt(i.records,10)))+"px",left:i.scrollLeftOffset}),$(this).mouseout((function(){$("#scroll_g"+i.id).hide()})))}}}},scrollGrid:function(e){if(i.scroll){var t=r.bDiv.scrollTop;void 0===r.scrollTop&&(r.scrollTop=0),t!==r.scrollTop&&(r.scrollTop=t,r.timer&&clearTimeout(r.timer),r.timer=setTimeout(r.populateVisible,i.scrollTimeout))}r.hDiv.scrollLeft=r.bDiv.scrollLeft,i.footerrow&&(r.sDiv.scrollLeft=r.bDiv.scrollLeft),i.frozenColumns&&$(r.fbDiv).scrollTop(r.bDiv.scrollTop),e&&e.stopPropagation()},selectionPreserver:function(e){var t=e.p,i=t.selrow,n=t.selarrrow?$.makeArray(t.selarrrow):null,r=e.grid.bDiv.scrollLeft,o=function(){var a;if(t.selrow=null,t.selarrrow=[],t.multiselect&&n&&n.length>0)for(a=0;a<n.length;a++)n[a]!==i&&$(e).jqGrid("setSelection",n[a],!1,null);i&&$(e).jqGrid("setSelection",i,!1,null),e.grid.bDiv.scrollLeft=r,$(e).off(".selectionPreserver",o)};$(e).on("jqGridGridComplete.selectionPreserver",o)}};if("TABLE"!==this.tagName.toUpperCase()||null==this.id)return void $.log("warn","Element is not a table or has no id!");if(void 0!==document.documentMode&&document.documentMode<=5)return void $.log("warn","Grid can not be used in this ('quirks') mode!");var o,a,s,l=0;for(a in $.jgrid.regional)$.jgrid.regional.hasOwnProperty(a)&&(0===l&&(o=a),l++);if(1===l&&o!==i.regional&&(i.regional=o),$(this).empty().attr("tabindex","0"),this.p=i,this.p.useProp=!!$.fn.prop,0===this.p.colNames.length)for(l=0;l<this.p.colModel.length;l++)this.p.colNames[l]=this.p.colModel[l].label||this.p.colModel[l].name;if(this.p.colNames.length!==this.p.colModel.length)return void $.log("warn",$.jgrid.getRegional(this,"errors.model"));var c,u=$.jgrid.getMethod("getStyleUI"),d=n.p.styleUI+".common",p=u(d,"disabled",!0),h=u(d,"highlight",!0),f=u(d,"hover",!0),g=u(d,"cornerall",!0),m=u(d,"icon_base",!0),v=$.jgrid.styleUI[n.p.styleUI||"EuiUI"].colmenu,y=$.jgrid.msie(),b=[],w=[],_=[];d=n.p.styleUI+".base",c=$("<div "+u(d,"viewBox",!1,"ui-jqgrid-view")+" role='grid'></div>"),n.p.direction=$.trim(n.p.direction.toLowerCase()),n.p._ald=!1,-1===$.inArray(n.p.direction,["ltr","rtl"])&&(n.p.direction="ltr"),s=n.p.direction,$(c).insertBefore(this),$(this).appendTo(c);var x=$("<div "+u(d,"entrieBox",!1,"ui-jqgrid")+"></div>");$(x).attr({id:"gbox_"+this.id,dir:s}).insertBefore(c),$(c).attr("id","gview_"+this.id).appendTo(x),$("<div "+u(n.p.styleUI+".common","overlay",!1,"jqgrid-overlay")+" id='lui_"+this.id+"'></div>").insertBefore(c),$("<div "+u(d,"loadingBox",!1,"loading")+" id='load_"+this.id+"'>"+$.jgrid.getRegional(n,"defaults.loadtext",this.p.loadtext)+"</div>").insertBefore(c),$(this).attr({role:"presentation","aria-multiselectable":!!this.p.multiselect,"aria-labelledby":"gbox_"+this.id});var C,k=function(e,t){return e=parseInt(e,10),isNaN(e)?t||0:e},S=function(e,t,i,o,a,s){var l,c=n.p.colModel[e],u=c.align,d='style="',p=c.classes,h=c.name,f=[];return u&&(d+="text-align:"+u+";"),!0===c.hidden&&(d+="display:none;"),0===t?d+="width: "+r.headers[e].width+"px;":($.isFunction(c.cellattr)||"string"==typeof c.cellattr&&null!=$.jgrid.cellattr&&$.isFunction($.jgrid.cellattr[c.cellattr]))&&(l=($.isFunction(c.cellattr)?c.cellattr:$.jgrid.cellattr[c.cellattr]).call(n,a,i,o,c,s))&&"string"==typeof l&&((l=l.replace(/style/i,"style").replace(/title/i,"title")).indexOf("title")>-1&&(c.title=!1),l.indexOf("class")>-1&&(p=void 0),2===(f=l.replace(/\-style/g,"-sti").split(/style/)).length?(f[1]=$.trim(f[1].replace(/\-sti/g,"-style").replace("=","")),0!==f[1].indexOf("'")&&0!==f[1].indexOf('"')||(f[1]=f[1].substring(1)),d+=f[1].replace(/'/gi,'"')):d+='"'),f.length||(f[0]="",d+='"'),d+=(void 0!==p?' class="'+p+'"':"")+(c.title&&i?' title="'+$.jgrid.stripHtml(i)+'"':""),(d+=' aria-describedby="'+n.p.id+"_"+h+'"')+f[0]},E=function(e){return null==e||""===e?" ":n.p.autoencode?$.jgrid.htmlEncode(e):String(e)},j=function(e,t,i,r,o){var a,s=n.p.colModel[i];if(void 0!==s.formatter){var l={rowId:e=""!==String(n.p.idPrefix)?$.jgrid.stripPref(n.p.idPrefix,e):e,colModel:s,gid:n.p.id,pos:i,styleUI:n.p.styleUI};a=$.isFunction(s.formatter)?s.formatter.call(n,t,l,r,o):$.fmatter?$.fn.fmatter.call(n,s.formatter,t,l,r,o):E(t)}else a=E(t);return a},D=function(e,t,i,n,r,o){var a;return a=j(e,t,i,r,"add"),'<td role="gridcell" '+S(i,n,a,r,e,o)+">"+a+"</td>"},T=function(e,t,i,r,o){var a='<input role="checkbox" type="checkbox" id="jqg_'+n.p.id+"_"+e+'" '+o+' name="jqg_'+n.p.id+"_"+e+'"'+(r?'checked="checked"':"")+"/>";return'<td role="gridcell" '+S(t,i,"",null,e,!0)+">"+a+"</td>"},I=function(e,t,i,n,r){var o=(parseInt(i,10)-1)*parseInt(n,10)+1+t;return'<td role="gridcell" '+r+" "+S(e,t,o,null,t,!0)+">"+o+"</td>"},A=function(e){var t,i,r=[],o=0;for(i=0;i<n.p.colModel.length;i++)"cb"!==(t=n.p.colModel[i]).name&&"subgrid"!==t.name&&"rn"!==t.name&&(r[o]="local"===e?t.name:"xml"===e||"xmlstring"===e?t.xmlmap||t.name:t.jsonmap||t.name,!1!==n.p.keyName&&!0===t.key&&(n.p.keyName=r[o]),o++);return r},O=function(e){var t=n.p.remapColumns;return t&&t.length||(t=$.map(n.p.colModel,(function(e,t){return t}))),e&&(t=$.map(t,(function(t){return t<e?null:t-e}))),t},N=function(e,t){var i;this.p.deepempty?$(this.rows).slice(1).remove():(i=this.rows.length>0?this.rows[0]:null,$(this.firstChild).empty().append(i)),e&&this.p.scroll&&($(this.grid.bDiv.firstChild).css({height:"auto"}),$(this.grid.bDiv.firstChild.firstChild).css({height:"0px",display:"none"}),0!==this.grid.bDiv.scrollTop&&(this.grid.bDiv.scrollTop=0)),!0===t&&this.p.treeGrid&&!this.p.loadonce&&(this.p.data=[],this.p._index={})},P=function(){var e,t,i,r,o,a,s,l,c,u,d,p=n.p,h=p.data,f=h.length,g=p.localReader,m=p.colModel,v=g.cell,y=(!0===p.multiselect?1:0)+(!0===p.subGrid?1:0)+(!0===p.rownumbers?1:0),b=p.scroll?$.jgrid.randId():1;if("local"===p.datatype&&!0===g.repeatitems)for(c=O(y),u=A("local"),r=!1===p.keyIndex?$.isFunction(g.id)?g.id.call(n,h):g.id:p.keyIndex,e=0;e<f;e++){for(i=h[e],void 0===(o=$.jgrid.getAccessor(i,r))&&("number"==typeof r&&null!=m[r+y]&&(o=$.jgrid.getAccessor(i,m[r+y].name)),void 0===o&&(o=b+e,v&&(o=null!=(a=$.jgrid.getAccessor(i,v)||i)&&void 0!==a[r]?a[r]:o,a=null))),(l={})[g.id]=o,v&&(i=$.jgrid.getAccessor(i,v)||i),d=$.isArray(i)?c:u,t=0;t<d.length;t++)s=$.jgrid.getAccessor(i,d[t]),l[m[t+y].name]=s;$.extend(!0,h[e],l)}},M=function(){var e,t,i,r=n.p.data.length;for(e=!1===n.p.keyName||!0===n.p.loadonce?n.p.localReader.id:n.p.keyName,n.p._index=[],t=0;t<r;t++)void 0===(i=$.jgrid.getAccessor(n.p.data[t],e))&&(i=String(t+1)),n.p._index[i]=t},F=function(e,t,i,r,o){var a,s="-1",l="",c=t?"display:none;":"",u=$(n).triggerHandler("jqGridRowAttr",[r,o,e]);if("object"!=typeof u&&(u=$.isFunction(n.p.rowattr)?n.p.rowattr.call(n,r,o,e):"string"==typeof n.p.rowattr&&null!=$.jgrid.rowattr&&$.isFunction($.jgrid.rowattr[n.p.rowattr])?$.jgrid.rowattr[n.p.rowattr].call(n,r,o,e):{}),!$.isEmptyObject(u)){u.hasOwnProperty("id")&&(e=u.id,delete u.id),u.hasOwnProperty("tabindex")&&(s=u.tabindex,delete u.tabindex),u.hasOwnProperty("style")&&(c+=u.style,delete u.style),u.hasOwnProperty("class")&&(i+=" "+u.class,delete u.class);try{delete u.role}catch(e){}for(a in u)u.hasOwnProperty(a)&&(l+=" "+a+"="+u[a])}return'<tr role="row" id="'+e+'" tabindex="'+s+'" class="'+i+'"'+(""===c?"":' style="'+c+'"')+l+">"},R=function(e,t,i,r){var o=new Date,a="local"!==n.p.datatype&&n.p.loadonce||"xmlstring"===n.p.datatype,s="_id_",l=n.p.xmlReader,c="local"===n.p.datatype?"local":"xml";if(a&&(n.p.data=[],n.p._index={},n.p.localReader.id=s),n.p.reccount=0,$.isXMLDoc(e)){-1!==n.p.treeANode||n.p.scroll?t=t>1?t:1:(N.call(n,!1,!0),t=1);var p,h,f,g,m,v,y,b,w,_,x=$(n),C=0,S=!0===n.p.multiselect?1:0,E=0,j=!0===n.p.rownumbers?1:0,P=[],M={},R=[],L=!0===n.p.altRows?n.p.altclass:"",q=u(d,"rowBox",!0,"jqgrow ui-row-"+n.p.direction);!0===n.p.subGrid&&(E=1,g=$.jgrid.getMethod("addSubGridCell")),l.repeatitems||(P=A(c)),m=!1===n.p.keyName?$.isFunction(l.id)?l.id.call(n,e):l.id:n.p.keyName,v=-1===String(m).indexOf("[")?P.length?function(e,t){return $(m,e).text()||t}:function(e,t){return $(l.cell,e).eq(m).text()||t}:function(e,t){return e.getAttribute(m.replace(/[\[\]]/g,""))||t},n.p.userData={},n.p.page=k($.jgrid.getXmlData(e,l.page),n.p.page),n.p.lastpage=k($.jgrid.getXmlData(e,l.total),1),n.p.records=k($.jgrid.getXmlData(e,l.records)),$.isFunction(l.userdata)?n.p.userData=l.userdata.call(n,e)||{}:$.jgrid.getXmlData(e,l.userdata,!0).each((function(){n.p.userData[this.getAttribute("name")]=$(this).text()}));var H=$.jgrid.getXmlData(e,l.root,!0);(H=$.jgrid.getXmlData(H,l.row,!0))||(H=[]);var z=H.length,B=0,G=[],U=parseInt(n.p.rowNum,10),W=n.p.scroll?$.jgrid.randId():1,Y=$("#"+$.jgrid.jqID(n.p.id)+" tbody:first");if(z>0&&n.p.page<=0&&(n.p.page=1),H&&z){r&&(U*=r+1);var V,K=$.isFunction(n.p.afterInsertRow),X=!1,J=j?u(d,"rownumBox",!1,"jqgrid-rownum"):"",Q=S?u(d,"multiBox",!1,"cbox"):"";for(n.p.grouping&&(X=!0===n.p.groupingView.groupCollapse,V=$.jgrid.getMethod("groupingPrepare"));B<z;){b=H[B],w=v(b,W+B),w=n.p.idPrefix+w,_=q+(((0===t?0:t+1)+B)%2==1?" "+L:"");var Z=R.length;if(R.push(""),j&&R.push(I(0,B,n.p.page,n.p.rowNum,J)),S&&R.push(T(w,j,B,!1,Q)),E&&R.push(g.call(x,S+j,B+t)),l.repeatitems){y||(y=O(S+E+j));var ee=$.jgrid.getXmlData(b,l.cell,!0);$.each(y,(function(e){var i=ee[this];return!!i&&(f=i.textContent||i.text,M[n.p.colModel[e+S+E+j].name]=f,void R.push(D(w,f,e+S+E+j,B+t,b,M)))}))}else for(p=0;p<P.length;p++)f=$.jgrid.getXmlData(b,P[p]),M[n.p.colModel[p+S+E+j].name]=f,R.push(D(w,f,p+S+E+j,B+t,b,M));if(R[Z]=F(w,X,_,M,b),R.push("</tr>"),n.p.grouping&&(G.push(R),n.p.groupingView._locgr||V.call(x,M,B),R=[]),(a||!0===n.p.treeGrid&&!n.p._ald)&&(M[s]=$.jgrid.stripPref(n.p.idPrefix,w),n.p.data.push(M),n.p._index[M[s]]=n.p.data.length-1),!1===n.p.gridview&&(Y.append(R.join("")),x.triggerHandler("jqGridAfterInsertRow",[w,M,b]),K&&n.p.afterInsertRow.call(n,w,M,b),R=[]),M={},C++,B++,C===U)break}}if(!0===n.p.gridview&&(h=n.p.treeANode>-1?n.p.treeANode:0,n.p.grouping?a||(x.jqGrid("groupingRender",G,n.p.colModel.length,n.p.page,U),G=null):!0===n.p.treeGrid&&h>0?$(n.rows[h]).after(R.join("")):(Y.append(R.join("")),n.grid.cols=n.rows[0].cells)),n.p.totaltime=new Date-o,R=null,!0===n.p.subGrid)try{x.jqGrid("addSubGrid",S+j)}catch(e){}if(C>0&&0===n.p.records&&(n.p.records=z),!0===n.p.treeGrid)try{x.jqGrid("setTreeNode",h+1,C+h+1)}catch(e){}if(n.p.reccount=C,n.p.treeANode=-1,n.p.userDataOnFooter&&x.jqGrid("footerData","set",n.p.userData,!0),a&&(n.p.records=z,n.p.lastpage=Math.ceil(z/U)),i||n.updatepager(!1,!0),a){for(;C<z;){if(b=H[C],w=v(b,C+W),w=n.p.idPrefix+w,l.repeatitems){y||(y=O(S+E+j));var te=$.jgrid.getXmlData(b,l.cell,!0);$.each(y,(function(e){var t=te[this];return!!t&&(f=t.textContent||t.text,void(M[n.p.colModel[e+S+E+j].name]=f))}))}else for(p=0;p<P.length;p++)f=$.jgrid.getXmlData(b,P[p]),M[n.p.colModel[p+S+E+j].name]=f;M[s]=$.jgrid.stripPref(n.p.idPrefix,w),n.p.grouping&&V.call(x,M,C),n.p.data.push(M),n.p._index[M[s]]=n.p.data.length-1,M={},C++}n.p.grouping&&(n.p.groupingView._locgr=!0,x.jqGrid("groupingRender",G,n.p.colModel.length,n.p.page,U),G=null)}}},L=function(e,t,i,r){var o=new Date;if(e){-1!==n.p.treeANode||n.p.scroll?t=t>1?t:1:(N.call(n,!1,!0),t=1);var a,s,l="_id_",c="local"!==n.p.datatype&&n.p.loadonce||"jsonstring"===n.p.datatype;c&&(n.p.data=[],n.p._index={},n.p.localReader.id=l),n.p.reccount=0,"local"===n.p.datatype?(a=n.p.localReader,s="local"):(a=n.p.jsonReader,s="json");var p,f,g,m,v,y,b,w,_,x,C,S,E=$(n),j=0,P=[],M=n.p.multiselect?1:0,R=!0===n.p.subGrid?1:0,L=!0===n.p.rownumbers?1:0,q=O(M+R+L),H=A(s),z={},B=[],G=!0===n.p.altRows?n.p.altclass:"",U=u(d,"rowBox",!0,"jqgrow ui-row-"+n.p.direction);n.p.page=k($.jgrid.getAccessor(e,a.page),n.p.page),n.p.lastpage=k($.jgrid.getAccessor(e,a.total),1),n.p.records=k($.jgrid.getAccessor(e,a.records)),n.p.userData=$.jgrid.getAccessor(e,a.userdata)||{},R&&(v=$.jgrid.getMethod("addSubGridCell")),_=!1===n.p.keyName?$.isFunction(a.id)?a.id.call(n,e):a.id:n.p.keyName,null==(w=$.jgrid.getAccessor(e,a.root))&&$.isArray(e)&&(w=e),w||(w=[]),f=0,(b=w.length)>0&&n.p.page<=0&&(n.p.page=1);var W,Y=parseInt(n.p.rowNum,10),V=n.p.scroll?$.jgrid.randId():1,K=!1;r&&(Y*=r+1),"local"!==n.p.datatype||n.p.deselectAfterSort||(K=!0);var X,J=$.isFunction(n.p.afterInsertRow),Q=[],Z=!1,ee=$("#"+$.jgrid.jqID(n.p.id)+" tbody:first"),te=L?u(d,"rownumBox",!1,"jqgrid-rownum"):"",ie=M?u(d,"multiBox",!1,"cbox"):"";for(n.p.grouping&&(Z=!0===n.p.groupingView.groupCollapse,X=$.jgrid.getMethod("groupingPrepare"));f<b;){if(m=w[f],void 0===(C=$.jgrid.getAccessor(m,_))&&("number"==typeof _&&null!=n.p.colModel[_+M+R+L]&&(C=$.jgrid.getAccessor(m,n.p.colModel[_+M+R+L].name)),void 0===C&&(C=V+f,0===P.length&&a.cell))){var ne=$.jgrid.getAccessor(m,a.cell)||m;C=null!=ne&&void 0!==ne[_]?ne[_]:C,ne=null}C=n.p.idPrefix+C,S=U+(((1===t?0:t)+f)%2==1?" "+G:""),K&&(W=n.p.multiselect?-1!==$.inArray(C,n.p.selarrrow):C===n.p.selrow);var re=B.length;for(B.push(""),L&&B.push(I(0,f,n.p.page,n.p.rowNum,te)),M&&B.push(T(C,L,f,W,ie)),R&&B.push(v.call(E,M+L,f+t)),y=H,a.repeatitems&&(a.cell&&(m=$.jgrid.getAccessor(m,a.cell)||m),$.isArray(m)&&(y=q)),g=0;g<y.length;g++)p=$.jgrid.getAccessor(m,y[g]),z[n.p.colModel[g+M+R+L].name]=p,B.push(D(C,p,g+M+R+L,f+t,m,z));if(S+=W?" "+h:"",B[re]=F(C,Z,S,z,m),B.push("</tr>"),n.p.grouping&&(Q.push(B),n.p.groupingView._locgr||X.call(E,z,f),B=[]),(c||!0===n.p.treeGrid&&!n.p._ald)&&(z[l]=$.jgrid.stripPref(n.p.idPrefix,C),n.p.data.push(z),n.p._index[z[l]]=n.p.data.length-1),!1===n.p.gridview&&(ee.append(B.join("")),E.triggerHandler("jqGridAfterInsertRow",[C,z,m]),J&&n.p.afterInsertRow.call(n,C,z,m),B=[]),z={},f++,++j===Y)break}if(!0===n.p.gridview&&(x=n.p.treeANode>-1?n.p.treeANode:0,n.p.grouping?c||(E.jqGrid("groupingRender",Q,n.p.colModel.length,n.p.page,Y),Q=null):!0===n.p.treeGrid&&x>0?$(n.rows[x]).after(B.join("")):(ee.append(B.join("")),n.grid.cols=n.rows[0].cells)),n.p.totaltime=new Date-o,B=null,!0===n.p.subGrid)try{E.jqGrid("addSubGrid",M+L)}catch(e){}if(j>0&&0===n.p.records&&(n.p.records=b),!0===n.p.treeGrid)try{E.jqGrid("setTreeNode",x+1,j+x+1)}catch(e){}if(n.p.reccount=j,n.p.treeANode=-1,n.p.userDataOnFooter&&E.jqGrid("footerData","set",n.p.userData,!0),c&&(n.p.records=b,n.p.lastpage=Math.ceil(b/Y)),i||n.updatepager(!1,!0),c){for(;j<b&&w[j];){if(m=w[j],void 0===(C=$.jgrid.getAccessor(m,_))&&("number"==typeof _&&null!=n.p.colModel[_+M+R+L]&&(C=$.jgrid.getAccessor(m,n.p.colModel[_+M+R+L].name)),void 0===C&&(C=V+j,0===P.length&&a.cell))){var oe=$.jgrid.getAccessor(m,a.cell)||m;C=null!=oe&&void 0!==oe[_]?oe[_]:C,oe=null}if(m){for(C=n.p.idPrefix+C,y=H,a.repeatitems&&(a.cell&&(m=$.jgrid.getAccessor(m,a.cell)||m),$.isArray(m)&&(y=q)),g=0;g<y.length;g++)z[n.p.colModel[g+M+R+L].name]=$.jgrid.getAccessor(m,y[g]);z[l]=$.jgrid.stripPref(n.p.idPrefix,C),n.p.grouping&&X.call(E,z,j),n.p.data.push(z),n.p._index[z[l]]=n.p.data.length-1,z={}}j++}n.p.grouping&&(n.p.groupingView._locgr=!0,E.jqGrid("groupingRender",Q,n.p.colModel.length,n.p.page,Y),Q=null)}}},q=function(){n.grid.hDiv.loading=!0,n.p.hiddengrid||$(n).jqGrid("progressBar",{method:"show",loadtype:n.p.loadui,htmlcontent:$.jgrid.getRegional(n,"defaults.loadtext",n.p.loadtext)})},H=function(){n.grid.hDiv.loading=!1,$(n).jqGrid("progressBar",{method:"hide",loadtype:n.p.loadui})},z=function(e){if(!n.grid.hDiv.loading){var t,i,r=n.p.scroll&&!1===e,o={},a=n.p.prmNames;n.p.page<=0&&(n.p.page=Math.min(1,n.p.lastpage)),null!==a.search&&(o[a.search]=n.p.search),null!==a.nd&&(o[a.nd]=(new Date).getTime()),null!==a.rows&&(o[a.rows]=n.p.rowNum),null!==a.page&&(o[a.page]=n.p.page),null!==a.sort&&(o[a.sort]=n.p.sortname),null!==a.order&&(o[a.order]=n.p.sortorder),null!==n.p.rowTotal&&null!==a.totalrows&&(o[a.totalrows]=n.p.rowTotal);var s=$.isFunction(n.p.loadComplete),l=s?n.p.loadComplete:null,c=0;if((e=e||1)>1?null!==a.npage?(o[a.npage]=e,c=e-1,e=1):l=function(t){n.p.page++,n.grid.hDiv.loading=!1,s&&n.p.loadComplete.call(n,t),z(e-1)}:null!==a.npage&&delete n.p.postData[a.npage],n.p.grouping){$(n).jqGrid("groupingSetup");var u,d=n.p.groupingView,p="";for(u=0;u<d.groupField.length;u++){var h=d.groupField[u];$.each(n.p.colModel,(function(e,t){t.name===h&&t.index&&(h=t.index)})),p+=h+" "+d.groupOrder[u]+", "}o[a.sort]=p+o[a.sort]}$.extend(n.p.postData,o);var f=n.p.scroll?n.rows.length-1:1,g=$(n).triggerHandler("jqGridBeforeRequest");if(!1===g||"stop"===g)return;if($.isFunction(n.p.datatype))return void n.p.datatype.call(n,n.p.postData,"load_"+n.p.id,f,e,c);if($.isFunction(n.p.beforeRequest)&&(void 0===(g=n.p.beforeRequest.call(n))&&(g=!0),!1===g))return;switch(t=n.p.datatype.toLowerCase()){case"json":case"jsonp":case"xml":case"script":case"text":$.Comm.postToRemote($.extend({url:n.p.url,type:n.p.mtype,dataType:t,data:$.isFunction(n.p.serializeGridData)?n.p.serializeGridData.call(n,n.p.postData):n.p.postData,success:function(i,o,a){return $.isFunction(n.p.beforeProcessing)&&!1===n.p.beforeProcessing.call(n,i,o,a)?(H(),!1):("xml"===t?R(i,f,e>1,c):(i=n.p.loadFilter(i),L(i,f,e>1,c)),$(n).triggerHandler("jqGridLoadComplete",[i]),l&&l.call(n,i),$(n).triggerHandler("jqGridAfterLoadComplete",[i]),r&&n.grid.populateVisible(),(n.p.loadonce||n.p.treeGrid)&&(n.p.datatype="local"),i=null,void(1===e&&H()))},error:function(t,i,r){$.isFunction(n.p.loadError)&&n.p.loadError.call(n,t,i,r),1===e&&H(),t=null},beforeSend:function(e,t){var i=!0;return $.isFunction(n.p.loadBeforeSend)&&(i=n.p.loadBeforeSend.call(n,e,t)),void 0===i&&(i=!0),!1!==i&&void q()}},$.jgrid.ajaxOptions,n.p.ajaxExtendOptions));break;case"xmlstring":q(),i="string"!=typeof n.p.datastr?n.p.datastr:$.parseXML(n.p.datastr),R(i),$(n).triggerHandler("jqGridLoadComplete",[i]),s&&n.p.loadComplete.call(n,i),$(n).triggerHandler("jqGridAfterLoadComplete",[i]),n.p.datatype="local",n.p.datastr=null,H();break;case"jsonstring":q(),i="string"==typeof n.p.datastr?$.jgrid.parse(n.p.datastr):n.p.datastr,L(i),$(n).triggerHandler("jqGridLoadComplete",[i]),s&&n.p.loadComplete.call(n,i),$(n).triggerHandler("jqGridAfterLoadComplete",[i]),n.p.datatype="local",n.p.datastr=null,H();break;case"local":case"clientsort":case"clientside":q(),n.p.datatype="local",n.p._ald=!0;var m=function(){var e,t,i,r,o=n.p.multiSort?[]:"",a=[],s=!1,l={},c=[],u=[];if($.isArray(n.p.data)){var d,p,h,f=!!n.p.grouping&&n.p.groupingView;if($.each(n.p.colModel,(function(){if(t=this.sorttype||"text",h=this.index||this.name,"date"===t||"datetime"===t?(this.formatter&&"string"==typeof this.formatter&&"date"===this.formatter?(e=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:$.jgrid.getRegional(n,"formatter.date.srcformat"),i=this.formatoptions&&this.formatoptions.newformat?this.formatoptions.newformat:$.jgrid.getRegional(n,"formatter.date.newformat")):e=i=this.datefmt||"Y-m-d",l[h]={stype:t,srcfmt:e,newfmt:i,sfunc:this.sortfunc||null}):l[h]={stype:t,srcfmt:"",newfmt:"",sfunc:this.sortfunc||null},n.p.grouping)for(p=0,d=f.groupField.length;p<d;p++)this.name===f.groupField[p]&&(c[p]=l[h],u[p]=h);n.p.multiSort||s||h!==n.p.sortname||(o=h,s=!0)})),n.p.multiSort&&(o=b,a=w),n.p.treeGrid&&n.p._sort)return void $(n).jqGrid("SortTree",o,n.p.sortorder,l[o].stype||"text",l[o].srcfmt||"");var g={eq:function(e){return e.equals},ne:function(e){return e.notEquals},lt:function(e){return e.less},le:function(e){return e.lessOrEquals},gt:function(e){return e.greater},ge:function(e){return e.greaterOrEquals},cn:function(e){return e.contains},nc:function(e,t){return"OR"===t?e.orNot().contains:e.andNot().contains},bw:function(e){return e.startsWith},bn:function(e,t){return"OR"===t?e.orNot().startsWith:e.andNot().startsWith},en:function(e,t){return"OR"===t?e.orNot().endsWith:e.andNot().endsWith},ew:function(e){return e.endsWith},ni:function(e,t){return"OR"===t?e.orNot().equals:e.andNot().equals},in:function(e){return e.equals},nu:function(e){return e.isNull},nn:function(e,t){return"OR"===t?e.orNot().isNull:e.andNot().isNull}},m=$.jgrid.from.call(n,n.p.data);if(n.p.ignoreCase&&(m=m.ignoreCase()),!0===n.p.search){var v=n.p.postData.filters;if(v)"string"==typeof v&&(v=$.jgrid.parse(v)),function e(t){var i,r,o,a,s,c,u=0;if(null!=t.groups){for((r=t.groups.length&&"OR"===t.groupOp.toString().toUpperCase())&&m.orBegin(),i=0;i<t.groups.length;i++){u>0&&r&&m.or();try{e(t.groups[i])}catch(e){$.log("error",e)}u++}r&&m.orEnd()}if(null!=t.rules)try{for((o=t.rules.length&&"OR"===t.groupOp.toString().toUpperCase())&&m.orBegin(),i=0;i<t.rules.length;i++)s=t.rules[i],a=t.groupOp.toString().toUpperCase(),g[s.op]&&s.field&&(u>0&&a&&"OR"===a&&(m=m.or()),"date"===(c=l[s.field]).stype&&c.srcfmt&&c.newfmt&&c.srcfmt!==c.newfmt&&(s.data=$.jgrid.parseDate.call(n,c.newfmt,s.data,c.srcfmt)),m=g[s.op](m,a)(s.field,s.data,l[s.field])),u++;o&&m.orEnd()}catch(e){$.log("error",e)}}(v);else try{"date"===(r=l[n.p.postData.searchField]).stype&&r.srcfmt&&r.newfmt&&r.srcfmt!==r.newfmt&&(n.p.postData.searchString=$.jgrid.parseDate.call(n,r.newfmt,n.p.postData.searchString,r.srcfmt)),m=g[n.p.postData.searchOper](m)(n.p.postData.searchField,n.p.postData.searchString,l[n.p.postData.searchField])}catch(e){}}else n.p.treeGrid&&"nested"===n.p.treeGridModel&&m.orderBy(n.p.treeReader.left_field,"asc","integer","",null);if(n.p.treeGrid&&"adjacency"===n.p.treeGridModel&&(d=0,o=null),n.p.grouping)for(p=0;p<d;p++)m.orderBy(u[p],f.groupOrder[p],c[p].stype,c[p].srcfmt);n.p.multiSort?$.each(o,(function(e){m.orderBy(this,a[e],l[this].stype,l[this].srcfmt,l[this].sfunc)})):o&&n.p.sortorder&&s&&("DESC"===n.p.sortorder.toUpperCase()?m.orderBy(n.p.sortname,"d",l[o].stype,l[o].srcfmt,l[o].sfunc):m.orderBy(n.p.sortname,"a",l[o].stype,l[o].srcfmt,l[o].sfunc));var y=m.select(),_=parseInt(n.p.rowNum,10),x="local"===n.p.sortType?n.p.records:y.length,C=parseInt(n.p.page,10),k=Math.ceil(x/_),S={};if((n.p.search||n.p.resetsearch)&&n.p.grouping&&n.p.groupingView._locgr){n.p.groupingView.groups=[];var E,j,D,T=$.jgrid.getMethod("groupingPrepare");if(n.p.footerrow&&n.p.userDataOnFooter){for(j in n.p.userData)n.p.userData.hasOwnProperty(j)&&(n.p.userData[j]=0);D=!0}for(E=0;E<x;E++){if(D)for(j in n.p.userData)n.p.userData.hasOwnProperty(j)&&(n.p.userData[j]+=parseFloat(y[E][j]||0));T.call($(n),y[E],E,_)}}return n.p.treeGrid&&n.p.search?y=$(n).jqGrid("searchTree",y):"local"!==n.p.sortType?y=y.slice((C-1)*_,C*_):n.p.data=y,m=null,l=null,S[n.p.localReader.total]=k,S[n.p.localReader.page]=C,S[n.p.localReader.records]=x,S[n.p.localReader.root]=y,S[n.p.localReader.userdata]=n.p.userData,y=null,S}}();L(m,f,e>1,c),$(n).triggerHandler("jqGridLoadComplete",[m]),l&&l.call(n,m),$(n).triggerHandler("jqGridAfterLoadComplete",[m]),r&&n.grid.populateVisible(),H(),n.p._ald=!1}n.p._sort=!1}},B=function(e){$("#cb_"+$.jgrid.jqID(n.p.id),n.grid.hDiv)[n.p.useProp?"prop":"attr"]("checked",e),n.p.frozenColumns&&(n.p.id,1)&&$("#cb_"+$.jgrid.jqID(n.p.id),n.grid.fhDiv)[n.p.useProp?"prop":"attr"]("checked",e)},G=function(e,t){var i,r,o,a,l,c,h,g="<td class='ui-pg-button "+p+"'><span class='ui-separator'></span></td>",v="",y="<table class='ui-pg-table ui-common-table ui-paging-pager'><tbody><tr>",b="",w=function(e,t){var i;return $.isFunction(n.p.onPaging)&&(i=n.p.onPaging.call(n,e,t)),"stop"!==i&&(n.p.selrow=null,n.p.multiselect&&(n.p.selarrrow=[],B(!1)),n.p.savedRow=[],!0)};if(e=e.substr(1),t+="_"+e,i="pg_"+e,r=e+"_left",o=e+"_center",a=e+"_right",$("#"+$.jgrid.jqID(e)).append("<div id='"+i+"' class='ui-pager-control' role='group'><table "+u(d,"pagerTable",!1,"ui-pg-table ui-common-table ui-pager-table")+"><tbody><tr><td id='"+r+"' align='left'></td><td id='"+o+"' align='center' style='white-space:pre;'></td><td id='"+a+"' align='right'></td></tr></tbody></table></div>").attr("dir","ltr"),n.p.rowList.length>0){var _;for(b='<td dir="'+s+'">',b+="<select "+u(d,"pgSelectBox",!1,"ui-pg-selbox")+' role="listbox" title="'+($.jgrid.getRegional(n,"defaults.pgrecs",n.p.pgrecs)||"")+'">',h=0;h<n.p.rowList.length;h++)1===(_=n.p.rowList[h].toString().split(":")).length&&(_[1]=_[0]),b+='<option role="option" value="'+_[0]+'"'+(k(n.p.rowNum,0)===k(_[0],0)?' selected="selected"':"")+">"+_[1]+"</option>";b+="</select></td>"}if("rtl"===s&&(y+=b),!0===n.p.pginput&&(v="<td id='input"+t+"' dir='"+s+"'>"+$.jgrid.template($.jgrid.getRegional(n,"defaults.pgtext",n.p.pgtext)||"","<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1_"+$.jgrid.jqID(e)+"'></span>")+"</td>"),!0===n.p.pgbuttons){var x=["first"+t,"prev"+t,"next"+t,"last"+t],C=u(d,"pgButtonBox",!0,"ui-pg-button"),S=[$.jgrid.getRegional(n,"defaults.pgfirst",n.p.pgfirst)||"",$.jgrid.getRegional(n,"defaults.pgprev",n.p.pgprev)||"",$.jgrid.getRegional(n,"defaults.pgnext",n.p.pgnext)||"",$.jgrid.getRegional(n,"defaults.pglast",n.p.pglast)||""];"rtl"===s&&(x.reverse(),S.reverse()),y+="<td id='"+x[0]+"' class='"+C+"' title='"+S[0]+"'><span "+u(d,"icon_first",!1,m)+"></span></td>",y+="<td id='"+x[1]+"' class='"+C+"' title='"+S[1]+"'><span "+u(d,"icon_prev",!1,m)+"></span></td>",y+=""!==v?g+v+g:"",y+="<td id='"+x[2]+"' class='"+C+"' title='"+S[2]+"'><span "+u(d,"icon_next",!1,m)+"></span></td>",y+="<td id='"+x[3]+"' class='"+C+"' title='"+S[3]+"'><span "+u(d,"icon_end",!1,m)+"></span></td>"}else""!==v&&(y+=v);"ltr"===s&&(y+=b),y+="</tr></tbody></table>",!0===n.p.viewrecords&&$("td#"+e+"_"+n.p.recordpos,"#"+i).append("<div dir='"+s+"' style='text-align:"+n.p.recordpos+"' class='ui-paging-info'></div>"),$("td#"+e+"_"+n.p.pagerpos,"#"+i).append(y),c=$("#gbox_"+$.jgrid.jqID(n.p.id)).css("font-size")||"11px",$("#gbox_"+$.jgrid.jqID(n.p.id)).append("<div id='testpg' "+u(d,"entrieBox",!1,"ui-jqgrid")+" style='font-size:"+c+";visibility:hidden;' ></div>"),l=$(y).clone().appendTo("#testpg").width(),$("#testpg").remove(),l>0&&(""!==v&&(l+=50),$("td#"+e+"_"+n.p.pagerpos,"#"+i).width(l)),n.p._nvtd=[],n.p._nvtd[0]=l?Math.floor((n.p.width-l)/2):Math.floor(n.p.width/3),n.p._nvtd[1]=0,y=null,$(".ui-pg-selbox","#"+i).on("change",(function(){return!!w("records",this)&&(n.p.page=Math.round(n.p.rowNum*(n.p.page-1)/this.value-.5)+1,n.p.rowNum=this.value,n.p.pager&&$(".ui-pg-selbox",n.p.pager).val(this.value),n.p.toppager&&$(".ui-pg-selbox",n.p.toppager).val(this.value),z(),!1)})),!0===n.p.pgbuttons&&($(".ui-pg-button","#"+i).hover((function(){$(this).hasClass(p)?this.style.cursor="default":($(this).addClass(f),this.style.cursor="pointer")}),(function(){$(this).hasClass(p)||($(this).removeClass(f),this.style.cursor="default")})),$("#first"+$.jgrid.jqID(t)+", #prev"+$.jgrid.jqID(t)+", #next"+$.jgrid.jqID(t)+", #last"+$.jgrid.jqID(t)).click((function(){if($(this).hasClass(p))return!1;var e=k(n.p.page,1),i=k(n.p.lastpage,1),r=!1,o=!0,a=!0,s=!0,l=!0;return 0===i||1===i?(o=!1,a=!1,s=!1,l=!1):i>1&&e>=1?1===e?(o=!1,a=!1):e===i&&(s=!1,l=!1):i>1&&0===e&&(s=!1,l=!1,e=i-1),!!w(this.id.split("_")[0],this)&&(this.id==="first"+t&&o&&(n.p.page=1,r=!0),this.id==="prev"+t&&a&&(n.p.page=e-1,r=!0),this.id==="next"+t&&s&&(n.p.page=e+1,r=!0),this.id==="last"+t&&l&&(n.p.page=i,r=!0),r&&z(),!1)}))),!0===n.p.pginput&&$("#"+i).on("keypress","input.ui-pg-input",(function(e){return 13===(e.charCode||e.keyCode||0)?!!w("user",this)&&($(this).val(k($(this).val(),1)),n.p.page=$(this).val()>0?$(this).val():n.p.page,z(),!1):this}))},U=function(e,t,i,r,o){if(n.p.colModel[t].sortable&&!(n.p.savedRow.length>0)){if(i||(n.p.lastsort===t&&""!==n.p.sortname?"asc"===n.p.sortorder?n.p.sortorder="desc":"desc"===n.p.sortorder&&(n.p.sortorder="asc"):n.p.sortorder=n.p.colModel[t].firstsortorder||"asc","local"!==n.p.sortType&&(n.p.page=1)),n.p.multiSort)!function(e,t,i){var r,o=n.p.colModel,a=n.p.frozenColumns?t:n.grid.headers[e].el,s="";$("span.ui-grid-ico-sort",a).addClass(p),$(a).attr("aria-selected","false"),r=o[e].index||o[e].name,void 0===i?o[e].lso?"asc"===o[e].lso?(o[e].lso+="-desc",s="desc"):"desc"===o[e].lso?(o[e].lso+="-asc",s="asc"):"asc-desc"!==o[e].lso&&"desc-asc"!==o[e].lso||(o[e].lso=""):o[e].lso=s=o[e].firstsortorder||"asc":o[e].lso=s=i,s?($("span.s-ico",a).show(),$("span.ui-icon-"+s,a).removeClass(p),$(a).attr("aria-selected","true")):n.p.viewsortcols[0]||$("span.s-ico",a).hide();var l=b.indexOf(r);-1===l?(b.push(r),w.push(s)):s?w[l]=s:(w.splice(l,1),b.splice(l,1)),n.p.sortorder="",n.p.sortname="";for(var c=0,u=b.length;c<u;c++)c>0&&(n.p.sortname+=", "),n.p.sortname+=b[c],c!==u-1&&(n.p.sortname+=" "+w[c]);n.p.sortorder=w[u-1]}(t,o,r);else{if(r){if(n.p.lastsort===t&&n.p.sortorder===r&&!i)return;n.p.sortorder=r}var a,s=n.grid.headers[n.p.lastsort]?n.grid.headers[n.p.lastsort].el:null,l=n.p.frozenColumns?o:n.grid.headers[t].el,c="single"===n.p.viewsortcols[1];(a=$(s).find("span.ui-grid-ico-sort")).addClass(p),c&&$(a).css("display","none"),$(s).attr("aria-selected","false"),n.p.frozenColumns&&((a=n.grid.fhDiv.find("span.ui-grid-ico-sort")).addClass(p),c&&a.css("display","none"),n.grid.fhDiv.find("th").attr("aria-selected","false")),(a=$(l).find("span.ui-icon-"+n.p.sortorder)).removeClass(p),c&&a.css("display",""),$(l).attr("aria-selected","true"),n.p.viewsortcols[0]||(n.p.lastsort!==t?(n.p.frozenColumns&&n.grid.fhDiv.find("span.s-ico").hide(),$("span.s-ico",s).hide(),$("span.s-ico",l).show()):""===n.p.sortname&&$("span.s-ico",l).show()),e=e.substring(5+n.p.id.length+1),n.p.sortname=n.p.colModel[t].index||e}if("stop"===$(n).triggerHandler("jqGridSortCol",[n.p.sortname,t,n.p.sortorder]))return void(n.p.lastsort=t);if($.isFunction(n.p.onSortCol)&&"stop"===n.p.onSortCol.call(n,n.p.sortname,t,n.p.sortorder))return void(n.p.lastsort=t);if("local"===n.p.datatype?n.p.deselectAfterSort&&$(n).jqGrid("resetSelection"):(n.p.selrow=null,n.p.multiselect&&B(!1),n.p.selarrrow=[],n.p.savedRow=[]),n.p.scroll){var u=n.grid.bDiv.scrollLeft;N.call(n,!0,!1),n.grid.hDiv.scrollLeft=u}n.p.subGrid&&"local"===n.p.datatype&&$("td.sgexpanded","#"+$.jgrid.jqID(n.p.id)).each((function(){$(this).trigger("click")})),n.p._datatype=n.p.datatype,"local"===n.p.sortType&&(n.p.datatype="clientsort"),n.p._sort=!0,z(),"local"===n.p.sortType&&(n.p.datatype=n.p._datatype),n.p.lastsort=t,n.p.sortname!==e&&t&&(n.p.lastsort=t)}},W=function(e){var t,i=n.grid.headers,r=$.jgrid.getCellIndex(e);for(t=0;t<i.length;t++)if(e===i[t].el){r=t;break}return r},Y=function(){var e='{"groupOp":"AND","rules":[], "groups" : [',t=0;for(var i in n.p.colFilters)if(n.p.colFilters.hasOwnProperty(i)){var r=n.p.colFilters[i];$.isEmptyObject(r)||(t>0&&(e+=","),e+='{"groupOp": "'+r.rule+'", "rules" : [',e+='{"field":"'+i+'",',e+='"op":"'+r.oper1+'",',r.value1+="",e+='"data":"'+r.value1.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',r.value2&&(e+=',{"field":"'+i+'",',e+='"op":"'+r.oper2+'",',r.value2+="",e+='"data":"'+r.value2.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}'),e+="]}",t++)}return e+"]}"};for(n.p.colMenu&&$("body").on("click",(function(e){$(e.target).closest(".column-menu").length||$("#column_menu").remove()})),this.p.id=this.id,-1===$.inArray(n.p.multikey,["shiftKey","altKey","ctrlKey"])&&(n.p.multikey=!1),n.p.keyName=!1,l=0;l<n.p.colModel.length;l++)C="string"==typeof n.p.colModel[l].template?null!=$.jgrid.cmTemplate&&"object"==typeof $.jgrid.cmTemplate[n.p.colModel[l].template]?$.jgrid.cmTemplate[n.p.colModel[l].template]:{}:n.p.colModel[l].template,n.p.colModel[l]=$.extend(!0,{},n.p.cmTemplate,C||{},n.p.colModel[l]),!1===n.p.keyName&&!0===n.p.colModel[l].key&&(n.p.keyName=n.p.colModel[l].name);if(n.p.sortorder=n.p.sortorder.toLowerCase(),$.jgrid.cell_width=$.jgrid.cellWidth(),!0===n.p.grouping&&(n.p.scroll=!1,n.p.rownumbers=!1,n.p.treeGrid=!1,n.p.gridview=!0),!0===this.p.treeGrid){try{$(this).jqGrid("setTreeGrid")}catch(e){}"local"!==n.p.datatype&&(n.p.localReader={id:"_id_"})}if(this.p.subGrid)try{$(n).jqGrid("setSubGrid")}catch(e){}this.p.multiselect&&(this.p.colNames.unshift("<input role='checkbox' id='cb_"+this.p.id+"' class='cbox' type='checkbox'/>"),this.p.colModel.unshift({name:"cb",width:$.jgrid.cell_width?n.p.multiselectWidth+n.p.cellLayout:n.p.multiselectWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0,frozen:!0})),this.p.rownumbers&&(this.p.colNames.unshift(this.p.rownumbersLabel?this.p.rownumbersLabel:""),this.p.colModel.unshift({name:"rn",width:n.p.rownumWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0,frozen:!0})),n.p.xmlReader=$.extend(!0,{root:"rows",row:"row",page:"rows>page",total:"rows>total",records:"rows>records",repeatitems:!0,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row",repeatitems:!0,cell:"cell"}},n.p.xmlReader),n.p.jsonReader=$.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!0,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},n.p.jsonReader),n.p.localReader=$.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!1,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},n.p.localReader),n.p.scroll&&(n.p.pgbuttons=!1,n.p.pginput=!1,n.p.rowList=[]),n.p.data.length&&(P(),M());var V,K,X,J,Q,Z,ee,te,ie,ne="<thead><tr class='ui-jqgrid-labels' role='row'>",re="",oe="",ae="";if(!0===n.p.shrinkToFit&&!0===n.p.forceFit)for(l=n.p.colModel.length-1;l>=0;l--)if(!n.p.colModel[l].hidden){n.p.colModel[l].resizable=!1;break}if("horizontal"===n.p.viewsortcols[1]?(oe=" ui-i-asc",ae=" ui-i-desc"):"single"===n.p.viewsortcols[1]&&(oe=" ui-single-sort-asc",ae=" ui-single-sort-desc",re=" style='display:none'",n.p.viewsortcols[0]=!1),V=y?"class='ui-th-div-ie'":"",te="<span class='s-ico' style='display:none'>",te+="<span sort='asc' class='ui-grid-ico-sort ui-icon-asc"+oe+" ui-sort-"+s+" "+p+" "+m+" "+u(d,"icon_asc",!0)+"'"+re+"></span>",te+="<span sort='desc' class='ui-grid-ico-sort ui-icon-desc"+ae+" ui-sort-"+s+" "+p+" "+m+" "+u(d,"icon_desc",!0)+"'"+re+"></span></span>",n.p.multiSort&&n.p.sortname)for(b=n.p.sortname.split(","),l=0;l<b.length;l++)_=$.trim(b[l]).split(" "),b[l]=$.trim(_[0]),w[l]=_[1]?$.trim(_[1]):n.p.sortorder||"asc";for(l=0;l<this.p.colNames.length;l++){var se=n.p.headertitles?' title="'+$.jgrid.stripHtml(n.p.colNames[l])+'"':"";(ie=n.p.colModel[l]).hasOwnProperty("colmenu")||(ie.colmenu="rn"!==ie.name&&"cb"!==ie.name&&"subgrid"!==ie.name),ne+="<th id='"+n.p.id+"_"+ie.name+"' role='columnheader' "+u(d,"headerBox",!1,"ui-th-column ui-th-"+s)+" "+se+">",K=ie.index||ie.name,ne+="<div class='ui-th-div' id='jqgh_"+n.p.id+"_"+ie.name+"' "+V+">"+n.p.colNames[l],ie.width?ie.width=parseInt(ie.width,10):ie.width=150,"boolean"!=typeof ie.title&&(ie.title=!0),ie.lso="",K===n.p.sortname&&(n.p.lastsort=l),n.p.multiSort&&-1!==(_=$.inArray(K,b))&&(ie.lso=w[_]),ne+=te,n.p.colMenu&&ie.colmenu&&(ne+="<a class='colmenu' href='#/'><span class='colmenuspan "+m+" "+v.icon_menu+"'></span></a>"),ne+="</div></th>"}if(ne+="</tr></thead>",te=null,ie=null,$(this).append(ne),$("thead tr:first th",this).hover((function(){$(this).addClass(f)}),(function(){$(this).removeClass(f)})),this.p.multiselect){var le,ce=[];$("#cb_"+$.jgrid.jqID(n.p.id),this).on("click",(function(){n.p.selarrrow=[];var e=!0===n.p.frozenColumns?n.p.id+"_frozen":"";this.checked?($(n.rows).each((function(t){t>0&&($(this).hasClass("ui-subgrid")||$(this).hasClass("jqgroup")||$(this).hasClass(p)||$(this).hasClass("jqfoot")||($("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(this.id))[n.p.useProp?"prop":"attr"]("checked",!0),$(this).addClass(h).attr("aria-selected","true"),n.p.selarrrow.push(this.id),n.p.selrow=this.id,e&&($("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(this.id),n.grid.fbDiv)[n.p.useProp?"prop":"attr"]("checked",!0),$("#"+$.jgrid.jqID(this.id),n.grid.fbDiv).addClass(h))))})),le=!0,ce=[]):($(n.rows).each((function(t){t>0&&($(this).hasClass("ui-subgrid")||$(this).hasClass("jqgroup")||$(this).hasClass(p)||$(this).hasClass("jqfoot")||($("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(this.id))[n.p.useProp?"prop":"attr"]("checked",!1),$(this).removeClass(h).attr("aria-selected","false"),ce.push(this.id),e&&($("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(this.id),n.grid.fbDiv)[n.p.useProp?"prop":"attr"]("checked",!1),$("#"+$.jgrid.jqID(this.id),n.grid.fbDiv).removeClass(h))))})),n.p.selrow=null,le=!1),$(n).triggerHandler("jqGridSelectAll",[le?n.p.selarrrow:ce,le]),$.isFunction(n.p.onSelectAll)&&n.p.onSelectAll.call(n,le?n.p.selarrrow:ce,le)}))}if(!0===n.p.autowidth){var ue=$(x).innerWidth();n.p.width=ue>0?ue:"nw"}(function(){var e,t,i,o,a=0,s=$.jgrid.cell_width?0:k(n.p.cellLayout,0),l=0,c=k(n.p.scrollOffset,0),u=!1,d=0;if($.each(n.p.colModel,(function(){if(void 0===this.hidden&&(this.hidden=!1),n.p.grouping&&n.p.autowidth){var e=$.inArray(this.name,n.p.groupingView.groupField);e>=0&&n.p.groupingView.groupColumnShow.length>e&&(this.hidden=!n.p.groupingView.groupColumnShow[e])}this.widthOrg=t=k(this.width,0),!1===this.hidden&&(a+=t+s,this.fixed?d+=t+s:l++)})),n.p.fitSize){var p=document.getElementById("gbox_"+$.jgrid.jqID(n.p.id)).parentNode;n.p.width=parseInt(p.offsetWidth+2,10)}isNaN(n.p.width)&&(n.p.width=a+(!1!==n.p.shrinkToFit||isNaN(n.p.height)?0:c)),r.width=parseInt(n.p.width,10),n.p.tblwidth=a,!1===n.p.shrinkToFit&&!0===n.p.forceFit&&(n.p.forceFit=!1),!0===n.p.shrinkToFit&&l>0&&(i=r.width-s*l-d,isNaN(n.p.height)||(i-=c,u=!0),a=0,$.each(n.p.colModel,(function(r){!1!==this.hidden||this.fixed||(t=Math.round(i*this.width/(n.p.tblwidth-s*l-d)),this.width=t,a+=t,e=r)})),o=0,u?r.width-d-(a+s*l)!==c&&(o=r.width-d-(a+s*l)-c):u||1===Math.abs(r.width-d-(a+s*l))||(o=r.width-d-(a+s*l)),n.p.colModel[e].width+=o,n.p.tblwidth=a+o+s*l+d,n.p.tblwidth>n.p.width&&(n.p.colModel[e].width-=n.p.tblwidth-parseInt(n.p.width,10),n.p.tblwidth=n.p.width))})(),$(x).css("width",r.width+"px").append("<div class='ui-jqgrid-resize-mark' id='rs_m"+n.p.id+"'> </div>"),n.p.scrollPopUp&&$(x).append("<div "+u(d,"scrollBox",!1,"loading ui-scroll-popup")+" id='scroll_g"+n.p.id+"'></div>"),$(c).css("width",r.width+"px"),ne=$("thead:first",n).get(0);var de="";n.p.footerrow&&(de+="<table role='presentation' style='width:"+n.p.tblwidth+"px' "+u(d,"footerTable",!1,"ui-jqgrid-ftable ui-common-table")+"><tbody><tr role='row' "+u(d,"footerBox",!1,"footrow footrow-"+s)+">");var pe=$("tr:first",ne),he="<tr class='jqgfirstrow' role='row'>";if(n.p.disableClick=!1,$("th",pe).each((function(e){ie=n.p.colModel[e],X=ie.width,void 0===ie.resizable&&(ie.resizable=!0),ie.resizable?(J=document.createElement("span"),$(J).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+s).css("cursor","col-resize"),$(this).addClass(n.p.resizeclass)):J="",$(this).css("width",X+"px").prepend(J),J=null;var t="";ie.hidden&&($(this).css("display","none"),t="display:none;"),he+="<td role='gridcell' style='height:0px;width:"+X+"px;"+t+"'></td>",r.headers[e]={width:X,el:this},"boolean"!=typeof(re=ie.sortable)&&(ie.sortable=!1,re=!1);var i=ie.name;"cb"!==i&&"subgrid"!==i&&"rn"!==i&&n.p.viewsortcols[2]&&$(">div",this).addClass("ui-jqgrid-sortable"),re&&(n.p.multiSort?n.p.viewsortcols[0]?($("div span.s-ico",this).show(),n.p.colModel[e].lso&&$("div span.ui-icon-"+ie.lso,this).removeClass(p).css("display","")):n.p.colModel[e].lso&&($("div span.s-ico",this).show(),$("div span.ui-icon-"+ie.lso,this).removeClass(p).css("display","")):n.p.viewsortcols[0]?($("div span.s-ico",this).show(),e===n.p.lastsort&&$("div span.ui-icon-"+n.p.sortorder,this).removeClass(p).css("display","")):e===n.p.lastsort&&""!==n.p.sortname&&($("div span.s-ico",this).show(),$("div span.ui-icon-"+n.p.sortorder,this).removeClass(p).css("display",""))),n.p.footerrow&&(de+="<td role='gridcell' "+S(e,0,"",null,"",!1)+"> </td>")})).mousedown((function(e){if(1===$(e.target).closest("th>span.ui-jqgrid-resize").length){var t=W(this);return!0===n.p.forceFit&&(n.p.nv=function(e){var t,i=e,r=e;for(t=e+1;t<n.p.colModel.length;t++)if(!0!==n.p.colModel[t].hidden){r=t;break}return r-i}(t)),r.dragStart(t,e,function(e){var t=$(n.grid.headers[e].el),i=[t.position().left+t.outerWidth()];return"rtl"===n.p.direction&&(i[0]=n.p.width-i[0]),i[0]-=n.grid.bDiv.scrollLeft,i.push($(n.grid.hDiv).position().top),i.push($(n.grid.bDiv).offset().top-$(n.grid.hDiv).offset().top+$(n.grid.bDiv).height()),i}(t)),!1}})).click((function(e){if(n.p.disableClick)return n.p.disableClick=!1,!1;var t,i,r="th>div.ui-jqgrid-sortable";n.p.viewsortcols[2]||(r="th>div>span>span.ui-grid-ico-sort");var o=$(e.target).closest(r);if(1===o.length){var a;if(n.p.frozenColumns){var s=$(this)[0].id.substring(n.p.id.length+1);$(n.p.colModel).each((function(e){if(this.name===s)return a=e,!1}))}else a=W(this);if($(e.target).hasClass("colmenuspan")){null!=$("#column_menu")[0]&&$("#column_menu").remove();var l=$.jgrid.getCellIndex(e.target);if(-1===l)return;var c=$(this).offset(),u=c.left,d=c.top;return"ltr"===n.p.direction&&(u+=$(this).outerWidth()),function(e,t,i){t=parseInt(t,10),i=parseInt(i,10)+25;var r,o,a='<ul id="column_menu" class="ui-search-menu modal-content column-menu" role="menu" tabindex="0" style="font-size:'+($(".ui-jqgrid-view").css("font-size")||"11px")+";left:"+t+"px;top:"+i+'px;">',s=n.p.colModel[e],l=$.extend({sorting:!0,columns:!0,filtering:!0,seraching:!0,grouping:!0,freeze:!0},s.coloptions),c=$.jgrid.getRegional(n,"colmenu");if(l.sorting&&(a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="sortasc"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_sort_asc+'"></span></td><td class="menu_text">'+c.sortasc+"</td></tr></table></a></li>",a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="sortdesc"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_sort_desc+'"></span></td><td class="menu_text">'+c.sortdesc+"</td></tr></table></a></li>"),l.columns&&(a+='<li class="ui-menu-item divider" role="separator"></li>',a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="columns"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_columns+'"></span></td><td class="menu_text">'+c.columns+"</td></tr></table></a></li>"),l.filtering&&(a+='<li class="ui-menu-item divider" role="separator"></li>',a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="filtering"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_filter+'"></span></td><td class="menu_text">'+c.filter+" "+(s.label||s.name)+"</td></tr></table></a></li>"),l.grouping&&(r=$.inArray(s.name,n.p.groupingView.groupField),a+='<li class="ui-menu-item divider" role="separator"></li>',a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="grouping"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_group+'"></span></td><td class="menu_text">'+(-1!==r?c.ungrouping:c.grouping+" "+(s.label||s.name))+"</td></tr></table></a></li>"),l.freeze&&(o=!s.frozen||!n.p.frozenColumns,a+='<li class="ui-menu-item divider" role="separator"></li>',a+='<li class="ui-menu-item" role="presentation"><a class="g-menu-item" tabindex="0" role="menuitem" value="freeze"><table class="ui-common-table"><tr><td class="menu_icon"><span class="'+m+" "+v.icon_freeze+'"></span></td><td class="menu_text">'+(o?c.freeze+" "+(s.label||s.name):c.unfreeze)+"</td></tr></table></a></li>"),a+="</ul>",$("body").append(a),$("#column_menu").addClass("ui-menu "+v.menu_widget),"ltr"===n.p.direction){var u=$("#column_menu").width()+26;$("#column_menu").css("left",t-u)}$("#column_menu > li > a").hover((function(){var t,i;$("#col_menu").remove(),$("#search_menu").remove(),"columns"===$(this).attr("value")&&(t=$(this).parent().width()+18,function(e,t,i){var r,o=n.p.colModel,a=o.length,s=[],l=$.jgrid.getRegional(n,"colmenu"),c='<ul id="col_menu" class="ui-search-menu ui-col-menu modal-content" role="menu" tabindex="0" style="left:'+t+"px;top:"+e+'px;">';for(r=0;r<a;r++){var u=o[r].hidden?"":"checked",d=o[r].name,p=n.p.colNames[r];c+="<li "+("cb"===d||"subgrid"===d||"rn"===d||o[r].hidedlg?"style='display:none'":"")+' class="ui-menu-item" role="presentation" draggable="true"><a class="g-menu-item" tabindex="0" role="menuitem" ><table class="ui-common-table" ><tr><td class="menu_icon" title="'+l.reorder+'"><span class="'+m+" "+v.icon_move+' notclick"></span></td><td class="menu_icon"><input class="'+v.input_checkbox+'" type="checkbox" name="'+d+'" '+u+'></td><td class="menu_text">'+p+"</td></tr></table></a></li>",s.push(r)}c+="</ul>",$(i).append(c),$("#col_menu").addClass("ui-menu "+v.menu_widget),$.fn.html5sortable()&&$("#col_menu").html5sortable({handle:"span",forcePlaceholderSize:!0}).on("sortupdate",(function(e,t){for(s.splice(t.startindex,1),s.splice(t.endindex,0,t.startindex),$(n).jqGrid("destroyFrozenColumns"),$(n).jqGrid("remapColumns",s,!0),$(n).jqGrid("setFrozenColumns"),r=0;r<a;r++)s[r]=r})),$("#col_menu > li > a").on("click",(function(e){var t;$(e.target).hasClass("notclick")||($(e.target).is(":input")?t=$(e.target).is(":checked"):(t=!$("input",this).is(":checked"),$("input",this).prop("checked",t)),t?($(n).jqGrid("showCol",$("input",this).attr("name")),$(this).parent().attr("draggable","true")):($(n).jqGrid("hideCol",$("input",this).attr("name")),$(this).parent().attr("draggable","false")))})).hover((function(){$(this).addClass(f)}),(function(){$(this).removeClass(f)}))}(i=$(this).parent().position().top-5,t,$(this).parent())),"filtering"===$(this).attr("value")&&(t=$(this).parent().width()+18,i=$(this).parent().position().top-5,function(e,t,i,r){var o,a,s,l,c,u=n.p.colModel[e],d="",p="",h="",g="",m="",y="",b=$.jgrid.getRegional(n,"search"),w=$.jgrid.styleUI[n.p.styleUI||"EuiUI"].common;if(u){(o=!(!n.p.colFilters||!n.p.colFilters[u.name])&&n.p.colFilters[u.name])&&!$.isEmptyObject(o)&&(d=o.oper1,p=o.value1,h=o.rule,g=o.oper2,m=o.value2),u.searchoptions||(u.searchoptions={}),a=u.searchoptions.sopt?u.searchoptions.sopt:"text"===u.sorttype?["eq","ne","bw","bn","ew","en","cn","nc","nu","nn","in","ni"]:["eq","ne","lt","le","gt","ge","nu","nn","in","ni"],s=u.searchoptions.operands?u.searchoptions.operands:b.groupOps,c=$("<form></form>");var _="<div>"+$.jgrid.getRegional(n,"colmenu.searchTitle")+"</div>";_+='<div><select id="oper1" class="'+v.filter_select+'">',$.each(b.odata,(function(e,t){l=t.oper===d?'selected="selected"':"",-1!==$.inArray(t.oper,a)&&(y+='<option value="'+t.oper+'" '+l+">"+t.text+"</option>")})),_+=y,_+="</select></div>",c.append(_);var x="";u.searchoptions.defaultValue&&(x=$.isFunction(u.searchoptions.defaultValue)?u.searchoptions.defaultValue.call(n):u.searchoptions.defaultValue),p&&(x=p);var C=$.extend(u.searchoptions,{name:u.index||u.name,id:"sval1_"+n.p.idPrefix+u.name,oper:"search"}),k=$.jgrid.createEl.call(n,u.stype,C,x,!1,$.extend({},$.jgrid.ajaxOptions,n.p.ajaxSelectOptions||{}));$(k).addClass(v.filter_input),_=$("<div></div>").append(k),c.append(_),_='<div><select id="operand" class="'+v.filter_select+'">',$.each(s,(function(e,t){l=t.op===h?'selected="selected"':"",_+="<option value='"+t.op+"' "+l+">"+t.text+"</option>"})),_+="</select></div>",c.append(_),y="",$.each(b.odata,(function(e,t){l=t.oper===g?'selected="selected"':"",-1!==$.inArray(t.oper,a)&&(y+='<option value="'+t.oper+'" '+l+">"+t.text+"</option>")})),_='<div><select id="oper2" class="'+v.filter_select+'">'+y+"</select></div>",c.append(_),x=m||"",C=$.extend(u.searchoptions,{name:u.index||u.name,id:"sval2_"+n.p.idPrefix+u.name,oper:"search"}),k=$.jgrid.createEl.call(n,u.stype,C,x,!1,$.extend({},$.jgrid.ajaxOptions,n.p.ajaxSelectOptions||{})),$(k).addClass(v.filter_input),_=$("<div></div>").append(k),c.append(_),_="<div>",_+="<div class='search_buttons'><a tabindex='0' id='bs_reset' class='fm-button "+w.button+" ui-reset'>"+b.Reset+"</a></div>",_+="<div class='search_buttons'><a tabindex='0' id='bs_search' class='fm-button "+w.button+" ui-search'>"+b.Find+"</a></div>",_+="</div>",c.append(_),c=$('<li class="ui-menu-item" role="presentation"></li>').append(c),c=$('<ul id="search_menu" class="ui-search-menu modal-content" role="menu" tabindex="0" style="left:'+i+"px;top:"+t+'px;"></ul>').append(c),$(r).append(c),$("#search_menu").addClass("ui-menu "+v.menu_widget),$("#bs_reset, #bs_search","#search_menu").hover((function(){$(this).addClass(f)}),(function(){$(this).removeClass(f)})),$(c).find("#bs_reset").click((function(e){return n.p.colFilters[u.name]={},n.p.postData.filters=Y(),n.p.search=!0,$(n).trigger("reloadGrid"),$("#column_menu").remove(),!1})),$(c).find("#bs_search").click((function(e){return n.p.colFilters[u.name]={oper1:$("#oper1","#search_menu").val(),value1:$("#sval1_"+n.p.idPrefix+u.name,"#search_menu").val(),rule:$("#operand","#search_menu").val(),oper2:$("#oper2","#search_menu").val(),value2:$("#sval2_"+n.p.idPrefix+u.name,"#search_menu").val()},n.p.postData.filters=Y(),n.p.search=!0,$(n).trigger("reloadGrid"),$("#column_menu").remove(),!1}))}}(e,i,t,$(this).parent())),$(this).addClass(f)}),(function(){$(this).removeClass(f)})).click((function(){var t=$(this).attr("value"),i=n.grid.headers[e].el;"sortasc"===t?U("jqgh_"+n.p.id+"_"+s.name,e,!0,"asc",i):"sortdesc"===t?U("jqgh_"+n.p.id+"_"+s.name,e,!0,"desc",i):"grouping"===t?function(e,t){var i=n.p.colModel[e],r=n.p.groupingView;-1!==t?r.groupField.splice(t,1):r.groupField.push(i.name),$(n).jqGrid("groupingGroupBy",r.groupField),n.p.frozenColumns&&($(n).jqGrid("destroyFrozenColumns"),$(n).jqGrid("setFrozenColumns"))}(e,r):"freeze"===t&&function(e,t){var i,r=[],o=n.p.colModel.length,a=-1,s=n.p.colModel;for(i=0;i<o;i++)s[i].frozen&&(a=i),r.push(i);r.splice(e,1),r.splice(a+(t?1:0),0,e),s[e].frozen=t,$(n).jqGrid("destroyFrozenColumns"),$(n).jqGrid("remapColumns",r,!0),$(n).jqGrid("setFrozenColumns")}(e,o),-1===t.indexOf("sort")&&"grouping"!==t&&"freeze"!==t||$(this).remove()}))}(l,u,d),void e.stopPropagation()}return n.p.viewsortcols[2]||(t=!0,i=o.attr("sort")),null!=a&&U($("div",this)[0].id,a,t,i,this),!1}})),ie=null,n.p.sortable&&$.fn.sortable)try{$(n).jqGrid("sortableColumns",pe)}catch(e){}n.p.footerrow&&(de+="</tr></tbody></table>"),he+="</tr>",ee=document.createElement("tbody"),this.appendChild(ee),$(this).addClass(u(d,"rowTable",!0,"ui-jqgrid-btable ui-common-table")).append(he),he=null;var fe,ge,me,ve=$("<table "+u(d,"headerTable",!1,"ui-jqgrid-htable ui-common-table")+" style='width:"+n.p.tblwidth+"px' role='presentation' aria-labelledby='gbox_"+this.id+"'></table>").append(ne),ye=!(!n.p.caption||!0!==n.p.hiddengrid),be=$("<div class='ui-jqgrid-hbox"+("rtl"===s?"-rtl":"")+"'></div>");if(ne=null,r.hDiv=document.createElement("div"),r.hDiv.style.width=r.width-2+"px",r.hDiv.className=u(d,"headerDiv",!0,"ui-jqgrid-hdiv"),n.p.hiddenHeader&&be.hide(),$(r.hDiv).append(be),$(be).append(ve),ve=null,ye&&$(r.hDiv).hide(),n.p.pager&&("string"==typeof n.p.pager?"#"!==n.p.pager.substr(0,1)&&(n.p.pager="#"+n.p.pager):n.p.pager="#"+$(n.p.pager).attr("id"),$(n.p.pager).css({width:r.width+"px"}).addClass(u(d,"pagerBox",!0,"ui-jqgrid-pager")).appendTo(x),ye&&$(n.p.pager).hide(),G(n.p.pager,"")),!1===n.p.cellEdit&&!0===n.p.hoverrows&&$(n).on({mouseover:function(e){Z=$(e.target).closest("tr.jqgrow"),"ui-subgrid"!==$(Z).attr("class")&&$(Z).addClass(f)},mouseout:function(e){Z=$(e.target).closest("tr.jqgrow"),$(Z).removeClass(f)}}),$(n).before(r.hDiv).on({click:function(e){if(Q=e.target,Z=$(Q,n.rows).closest("tr.jqgrow"),0===$(Z).length||Z[0].className.indexOf(p)>-1||($(Q,n).closest("table.ui-jqgrid-btable").attr("id")||"").replace("_frozen","")!==n.id)return this;var t=$(Q).filter(":enabled").hasClass("cbox"),i=$(n).triggerHandler("jqGridBeforeSelectRow",[Z[0].id,e]);if(i=!1!==i&&"stop"!==i,$.isFunction(n.p.beforeSelectRow)){var r=n.p.beforeSelectRow.call(n,Z[0].id,e);!1!==r&&"stop"!==r||(i=!1)}if("A"!==Q.tagName&&("INPUT"!==Q.tagName&&"TEXTAREA"!==Q.tagName&&"OPTION"!==Q.tagName&&"SELECT"!==Q.tagName||t))if(fe=Z[0].id,(Q=$(Q).closest("tr.jqgrow>td")).length>0&&(ge=$.jgrid.getCellIndex(Q),me=$(Q).closest("td,th").html(),$(n).triggerHandler("jqGridCellSelect",[fe,ge,me,e]),$.isFunction(n.p.onCellSelect)&&n.p.onCellSelect.call(n,fe,ge,me,e)),!0!==n.p.cellEdit){if(i)if(n.p.multikey)e[n.p.multikey]?$(n).jqGrid("setSelection",fe,!0,e):n.p.multiselect&&t&&(t=$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+fe).is(":checked"),$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+fe)[n.p.useProp?"prop":"attr"]("checked",!t));else if(n.p.multiselect&&n.p.multiboxonly)if(t)$(n).jqGrid("setSelection",fe,!0,e);else{var o=n.p.frozenColumns?n.p.id+"_frozen":"";$(n.p.selarrrow).each((function(e,t){var i=$(n).jqGrid("getGridRowById",t);i&&$(i).removeClass(h),$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t))[n.p.useProp?"prop":"attr"]("checked",!1),o&&($("#"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(o)).removeClass(h),$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(o))[n.p.useProp?"prop":"attr"]("checked",!1))})),n.p.selarrrow=[],$(n).jqGrid("setSelection",fe,!0,e)}else $(n).jqGrid("setSelection",fe,!0,e)}else if(n.p.multiselect&&t&&i)$(n).jqGrid("setSelection",fe,!0,e);else if(Q.length>0)try{$(n).jqGrid("editCell",Z[0].rowIndex,ge,!0)}catch(e){}},reloadGrid:function(e,t){if(!0===n.p.treeGrid&&(n.p.datatype=n.p.treedatatype),(t=t||{}).current&&n.grid.selectionPreserver(n),"local"===n.p.datatype?($(n).jqGrid("resetSelection"),n.p.data.length&&(P(),M())):n.p.treeGrid||(n.p.selrow=null,n.p.multiselect&&(n.p.selarrrow=[],B(!1)),n.p.savedRow=[]),n.p.scroll&&N.call(n,!0,!1),t.page){var i=t.page;i>n.p.lastpage&&(i=n.p.lastpage),i<1&&(i=1),n.p.page=i,n.grid.prevRowHeight?n.grid.bDiv.scrollTop=(i-1)*n.grid.prevRowHeight*n.p.rowNum:n.grid.bDiv.scrollTop=0}return n.grid.prevRowHeight&&n.p.scroll&&void 0===t.page?(delete n.p.lastpage,n.grid.populateVisible()):n.grid.populate(),!0===n.p.inlineNav&&$(n).jqGrid("showAddEditButtons"),!1},dblclick:function(e){if(Q=e.target,Z=$(Q,n.rows).closest("tr.jqgrow"),0!==$(Z).length){fe=Z[0].rowIndex,ge=$.jgrid.getCellIndex(Q);var t=$(n).triggerHandler("jqGridDblClickRow",[$(Z).attr("id"),fe,ge,e]);return null!=t||$.isFunction(n.p.ondblClickRow)&&null!=(t=n.p.ondblClickRow.call(n,$(Z).attr("id"),fe,ge,e))?t:void 0}},contextmenu:function(e){if(Q=e.target,Z=$(Q,n.rows).closest("tr.jqgrow"),0!==$(Z).length){n.p.multiselect||$(n).jqGrid("setSelection",Z[0].id,!0,e),fe=Z[0].rowIndex,ge=$.jgrid.getCellIndex(Q);var t=$(n).triggerHandler("jqGridRightClickRow",[$(Z).attr("id"),fe,ge,e]);return null!=t||$.isFunction(n.p.onRightClickRow)&&null!=(t=n.p.onRightClickRow.call(n,$(Z).attr("id"),fe,ge,e))?t:void 0}}}),r.bDiv=document.createElement("div"),y&&"auto"===String(n.p.height).toLowerCase()&&(n.p.height="100%"),n.p.fitSize){var we=document.getElementById("gbox_"+$.jgrid.jqID(n.p.id)).parentNode,_e=r.hDiv.offsetHeight,xe=n.p.pager?document.getElementById(n.p.pager.replace("#","")).offsetHeight:0;n.p.height=parseInt(we.offsetHeight-_e-xe-2,10)}$(r.bDiv).append($('<div style="position:relative;"></div>').append("<div></div>").append(this)).addClass("ui-jqgrid-bdiv").css({height:n.p.height+(isNaN(n.p.height)?"":"px"),width:r.width-2+"px"}).scroll(r.scrollGrid),$("table:first",r.bDiv).css({width:n.p.tblwidth+"px"}),$.support.tbody||2===$("tbody",this).length&&$("tbody:gt(0)",this).remove(),n.p.multikey&&($.jgrid.msie()?$(r.bDiv).on("selectstart",(function(){return!1})):$(r.bDiv).on("mousedown",(function(){return!1}))),ye&&$(r.bDiv).hide();var $e=m+" "+u(d,"icon_caption_open",!0),Ce=m+" "+u(d,"icon_caption_close",!0);r.cDiv=document.createElement("div");var ke=!0===n.p.hidegrid?$("<a role='link' class='ui-jqgrid-titlebar-close HeaderButton "+g+"' title='"+($.jgrid.getRegional(n,"defaults.showhide",n.p.showhide)||"")+"' />").hover((function(){ke.addClass(f)}),(function(){ke.removeClass(f)})).append("<span class='ui-jqgrid-headlink "+$e+"'></span>").css("rtl"===s?"left":"right","0px"):"";if($(r.cDiv).append(ke).append("<span class='ui-jqgrid-title'>"+n.p.caption+"</span>").addClass("ui-jqgrid-titlebar ui-jqgrid-caption"+("rtl"===s?"-rtl":"")+" "+u(d,"gridtitleBox",!0)),$(r.cDiv).insertBefore(r.hDiv),n.p.toolbar[0]){var Se=u(d,"customtoolbarBox",!0,"ui-userdata");r.uDiv=document.createElement("div"),"top"===n.p.toolbar[1]?$(r.uDiv).insertBefore(r.hDiv):"bottom"===n.p.toolbar[1]&&$(r.uDiv).insertAfter(r.hDiv),"both"===n.p.toolbar[1]?(r.ubDiv=document.createElement("div"),$(r.uDiv).addClass(Se+" ui-userdata-top").attr("id","t_"+this.id).insertBefore(r.hDiv).width(r.width-2),$(r.ubDiv).addClass(Se+" ui-userdata-bottom").attr("id","tb_"+this.id).insertAfter(r.hDiv).width(r.width-2),ye&&$(r.ubDiv).hide()):$(r.uDiv).width(r.width-2).addClass(Se+" ui-userdata-top").attr("id","t_"+this.id),ye&&$(r.uDiv).hide()}if(n.p.toppager&&(n.p.toppager=$.jgrid.jqID(n.p.id)+"_toppager",r.topDiv=$("<div id='"+n.p.toppager+"'></div>")[0],n.p.toppager="#"+n.p.toppager,$(r.topDiv).addClass(u(d,"toppagerBox",!0,"ui-jqgrid-toppager")).width(r.width-2).insertBefore(r.hDiv),G(n.p.toppager,"_t")),n.p.footerrow&&(r.sDiv=$("<div class='ui-jqgrid-sdiv'></div>")[0],be=$("<div class='ui-jqgrid-hbox"+("rtl"===s?"-rtl":"")+"'></div>"),$(r.sDiv).append(be).width(r.width-2).insertAfter(r.hDiv),$(be).append(de),r.footers=$(".ui-jqgrid-ftable",r.sDiv)[0].rows[0].cells,n.p.rownumbers&&(r.footers[0].className=u(d,"rownumBox",!0,"jqgrid-rownum")),ye&&$(r.sDiv).hide()),be=null,n.p.caption){var Ee=n.p.datatype;!0===n.p.hidegrid&&($(".ui-jqgrid-titlebar-close",r.cDiv).click((function(e){var t,i=$.isFunction(n.p.onHeaderClick),o=".ui-jqgrid-bdiv, .ui-jqgrid-hdiv, .ui-jqgrid-toppager, .ui-jqgrid-pager, .ui-jqgrid-sdiv",a=this;return!0===n.p.toolbar[0]&&("both"===n.p.toolbar[1]&&(o+=", #"+$(r.ubDiv).attr("id")),o+=", #"+$(r.uDiv).attr("id")),t=$(o,"#gview_"+$.jgrid.jqID(n.p.id)).length,"visible"===n.p.gridstate?$(o,"#gbox_"+$.jgrid.jqID(n.p.id)).slideUp("fast",(function(){0==--t&&($("span",a).removeClass($e).addClass(Ce),n.p.gridstate="hidden",$("#gbox_"+$.jgrid.jqID(n.p.id)).hasClass("ui-resizable")&&$(".ui-resizable-handle","#gbox_"+$.jgrid.jqID(n.p.id)).hide(),$(n).triggerHandler("jqGridHeaderClick",[n.p.gridstate,e]),i&&(ye||n.p.onHeaderClick.call(n,n.p.gridstate,e)))})):"hidden"===n.p.gridstate&&$(o,"#gbox_"+$.jgrid.jqID(n.p.id)).slideDown("fast",(function(){0==--t&&($("span",a).removeClass(Ce).addClass($e),ye&&(n.p.datatype=Ee,z(),ye=!1),n.p.gridstate="visible",$("#gbox_"+$.jgrid.jqID(n.p.id)).hasClass("ui-resizable")&&$(".ui-resizable-handle","#gbox_"+$.jgrid.jqID(n.p.id)).show(),$(n).triggerHandler("jqGridHeaderClick",[n.p.gridstate,e]),i&&(ye||n.p.onHeaderClick.call(n,n.p.gridstate,e)))})),!1})),ye&&(n.p.datatype="local",$(".ui-jqgrid-titlebar-close",r.cDiv).trigger("click")))}else $(r.cDiv).hide(),n.p.toppager||$(r.hDiv).addClass(u(n.p.styleUI+".common","cornertop",!0));if($(r.hDiv).after(r.bDiv).mousemove((function(e){if(r.resizing)return r.dragMove(e),!1})),$(".ui-jqgrid-labels",r.hDiv).on("selectstart",(function(){return!1})),$(document).on("mouseup.jqGrid"+n.p.id,(function(){return!r.resizing||(r.dragEnd(!0),!1)})),"rtl"===n.p.direction&&$(n).on("jqGridAfterGridComplete.setRTLPadding",(function(){var e=r.bDiv.offsetWidth-r.bDiv.clientWidth;n.p.scrollOffset=e,$("div:first",r.hDiv).css({paddingLeft:e+"px"}),r.hDiv.scrollLeft=r.bDiv.scrollLeft})),n.formatCol=S,n.sortData=U,n.updatepager=function(e,t){var i,r,o,a,s,l,c,h,g="",m=n.p.pager?$.jgrid.jqID(n.p.pager.substr(1)):"",v=m?"_"+m:"",y=n.p.toppager?"_"+n.p.toppager.substr(1):"";if((o=parseInt(n.p.page,10)-1)<0&&(o=0),s=(o*=parseInt(n.p.rowNum,10))+n.p.reccount,n.p.scroll){var b=$("tbody:first > tr:gt(0)",n.grid.bDiv);s>n.p.records&&(s=n.p.records),o=s-b.length,n.p.reccount=b.length;var w=b.outerHeight()||n.grid.prevRowHeight;if(w){var _=o*w,x=parseInt(n.p.records,10)*w;$(">div:first",n.grid.bDiv).css({height:x}).children("div:first").css({height:_,display:_?"":"none"}),0===n.grid.bDiv.scrollTop&&n.p.page>1&&(n.grid.bDiv.scrollTop=n.p.rowNum*(n.p.page-1)*w)}n.grid.bDiv.scrollLeft=n.grid.hDiv.scrollLeft}if(g=n.p.pager||"",g+=n.p.toppager?g?","+n.p.toppager:n.p.toppager:""){if(c=$.jgrid.getRegional(n,"formatter.integer"),i=k(n.p.page),r=k(n.p.lastpage),$(".selbox",g)[this.p.useProp?"prop":"attr"]("disabled",!1),!0===n.p.pginput&&($("#input"+v).html($.jgrid.template($.jgrid.getRegional(n,"defaults.pgtext",n.p.pgtext)||"","<input "+u(d,"pgInput",!1,"ui-pg-input")+" type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1_"+$.jgrid.jqID(m)+"'></span>")),n.p.toppager&&$("#input_t"+y).html($.jgrid.template($.jgrid.getRegional(n,"defaults.pgtext",n.p.pgtext)||"","<input "+u(d,"pgInput",!1,"ui-pg-input")+" type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1_"+$.jgrid.jqID(m)+"_toppager'></span>")),$(".ui-pg-input",g).val(n.p.page),h=n.p.toppager?"#sp_1"+v+",#sp_1"+v+"_toppager":"#sp_1"+v,$(h).html($.fmatter?$.fmatter.util.NumberFormat(n.p.lastpage,c):n.p.lastpage)),n.p.viewrecords)if(0===n.p.reccount)$(".ui-paging-info",g).html($.jgrid.getRegional(n,"defaults.emptyrecords",n.p.emptyrecords));else{a=o+1,l=n.p.records,$.fmatter&&(a=$.fmatter.util.NumberFormat(a,c),s=$.fmatter.util.NumberFormat(s,c),l=$.fmatter.util.NumberFormat(l,c));var C=$.jgrid.getRegional(n,"defaults.recordtext",n.p.recordtext);$(".ui-paging-info",g).html($.jgrid.template(C,a,s,l))}!0===n.p.pgbuttons&&(i<=0&&(i=r=0),1===i||0===i?($("#first"+v+", #prev"+v).addClass(p).removeClass(f),n.p.toppager&&$("#first_t"+y+", #prev_t"+y).addClass(p).removeClass(f)):($("#first"+v+", #prev"+v).removeClass(p),n.p.toppager&&$("#first_t"+y+", #prev_t"+y).removeClass(p)),i===r||0===i?($("#next"+v+", #last"+v).addClass(p).removeClass(f),n.p.toppager&&$("#next_t"+y+", #last_t"+y).addClass(p).removeClass(f)):($("#next"+v+", #last"+v).removeClass(p),n.p.toppager&&$("#next_t"+y+", #last_t"+y).removeClass(p)))}!0===e&&!0===n.p.rownumbers&&$(">td.jqgrid-rownum",n.rows).each((function(e){$(this).html(o+1+e)})),t&&n.p.jqgdnd&&$(n).jqGrid("gridDnD","updateDnD"),$(n).triggerHandler("jqGridGridComplete"),$.isFunction(n.p.gridComplete)&&n.p.gridComplete.call(n),$(n).triggerHandler("jqGridAfterGridComplete")},n.refreshIndex=M,n.setHeadCheckBox=B,n.constructTr=F,n.formatter=function(e,t,i,n,r){return j(e,t,i,n,r)},$.extend(r,{populate:z,emptyRows:N,beginReq:q,endReq:H}),this.grid=r,n.addXmlData=function(e){R(e)},n.addJSONData=function(e){L(e)},this.grid.cols=this.rows[0].cells,$(n).triggerHandler("jqGridInitGrid"),$.isFunction(n.p.onInitGrid)&&n.p.onInitGrid.call(n),setTimeout(z,0),n.p.hiddengrid=!1,n.p.responsive)if(Eui.iframe)if(n.p.fitSize)(De=$(n)).closest("body").on("resize",(function(){De.is(":visible")&&De.jqGrid("resizeGrid")}));else{var je="onorientationchange"in window?"orientationchange":"resize";$(window).on(je,(function(){$(n).jqGrid("resizeGrid")}))}else{var De;(De=$(n)).closest("[pagecontent]").on("resize",(function(){De.is(":visible")&&De.jqGrid("resizeGrid")}))}}}))},$.jgrid.extend({getGridParam:function(e,t){var i,n=this[0];if(n&&n.grid){if(void 0===t&&"string"!=typeof t&&(t="jqGrid"),i=n.p,"jqGrid"!==t)try{i=$(n).data(t)}catch(e){i=n.p}return e?void 0!==i[e]?i[e]:null:i}},setGridParam:function(e,t){return this.each((function(){if(null==t&&(t=!1),this.grid&&"object"==typeof e)if(!0===t){var i=$.extend({},this.p,e);this.p=i}else $.extend(!0,this.p,e)}))},getGridRowById:function(e){var t;return this.each((function(){try{for(var i=this.rows.length;i--;)if(e.toString()===this.rows[i].id){t=this.rows[i];break}}catch(i){t=$(this.grid.bDiv).find("#"+$.jgrid.jqID(e))}})),t},getDataIDs:function(){var e,t=[],i=0,n=0;return this.each((function(){if((e=this.rows.length)&&e>0)for(;i<e;)$(this.rows[i]).hasClass("jqgrow")&&(t[n]=this.rows[i].id,n++),i++})),t},setSelection:function(e,t,i){return this.each((function(){var n,r,o,a,s,l,c,u=this,d=$.jgrid.getMethod("getStyleUI"),p=d(u.p.styleUI+".common","highlight",!0),h=d(u.p.styleUI+".common","disabled",!0);void 0!==e&&(t=!1!==t,!(r=$(u).jqGrid("getGridRowById",e))||!r.className||r.className.indexOf(h)>-1||(!0===u.p.scrollrows&&(o=$(u).jqGrid("getGridRowById",e).rowIndex)>=0&&function(e){var t=$(u.grid.bDiv)[0].clientHeight,i=$(u.grid.bDiv)[0].scrollTop,n=$(u.rows[e]).position().top,r=u.rows[e].clientHeight;n+r>=t+i?$(u.grid.bDiv)[0].scrollTop=n-(t+i)+r+i:n<t+i&&n<i&&($(u.grid.bDiv)[0].scrollTop=n)}(o),!0===u.p.frozenColumns&&(l=u.p.id+"_frozen"),u.p.multiselect?(u.setHeadCheckBox(!1),u.p.selrow=r.id,-1===(a=$.inArray(u.p.selrow,u.p.selarrrow))?("ui-subgrid"!==r.className&&$(r).addClass(p).attr("aria-selected","true"),n=!0,u.p.selarrrow.push(u.p.selrow)):("ui-subgrid"!==r.className&&$(r).removeClass(p).attr("aria-selected","false"),n=!1,u.p.selarrrow.splice(a,1),s=u.p.selarrrow[0],u.p.selrow=void 0===s?null:s),$("#jqg_"+$.jgrid.jqID(u.p.id)+"_"+$.jgrid.jqID(r.id))[u.p.useProp?"prop":"attr"]("checked",n),l&&(-1===a?$("#"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(l)).addClass(p):$("#"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(l)).removeClass(p),$("#jqg_"+$.jgrid.jqID(u.p.id)+"_"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(l))[u.p.useProp?"prop":"attr"]("checked",n)),t&&($(u).triggerHandler("jqGridSelectRow",[r.id,n,i]),u.p.onSelectRow&&u.p.onSelectRow.call(u,r.id,n,i))):"ui-subgrid"!==r.className&&(u.p.selrow!==r.id?((c=$(u).jqGrid("getGridRowById",u.p.selrow))&&$(c).removeClass(p).attr({"aria-selected":"false",tabindex:"-1"}),$(r).addClass(p).attr({"aria-selected":"true",tabindex:"0"}),l&&($("#"+$.jgrid.jqID(u.p.selrow),"#"+$.jgrid.jqID(l)).removeClass(p),$("#"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(l)).addClass(p)),n=!0):n=!1,u.p.selrow=r.id,t&&($(u).triggerHandler("jqGridSelectRow",[r.id,n,i]),u.p.onSelectRow&&u.p.onSelectRow.call(u,r.id,n,i)))))}))},resetSelection:function(e){return this.each((function(){var t,i,n=this,r=$.jgrid.getMethod("getStyleUI"),o=r(n.p.styleUI+".common","highlight",!0),a=r(n.p.styleUI+".common","hover",!0);if(!0===n.p.frozenColumns&&(i=n.p.id+"_frozen"),void 0!==e){if(t=e===n.p.selrow?n.p.selrow:e,$("#"+$.jgrid.jqID(n.p.id)+" tbody:first tr#"+$.jgrid.jqID(t)).removeClass(o).attr("aria-selected","false"),i&&$("#"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(i)).removeClass(o),n.p.multiselect){$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(n.p.id))[n.p.useProp?"prop":"attr"]("checked",!1),i&&$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(i))[n.p.useProp?"prop":"attr"]("checked",!1),n.setHeadCheckBox(!1);var s=$.inArray($.jgrid.jqID(t),n.p.selarrrow);-1!==s&&n.p.selarrrow.splice(s,1)}n.p.onUnSelectRow&&n.p.onUnSelectRow.call(n,t),t=null}else n.p.multiselect?($(n.p.selarrrow).each((function(e,t){$($(n).jqGrid("getGridRowById",t)).removeClass(o).attr("aria-selected","false"),$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t))[n.p.useProp?"prop":"attr"]("checked",!1),i&&($("#"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(i)).removeClass(o),$("#jqg_"+$.jgrid.jqID(n.p.id)+"_"+$.jgrid.jqID(t),"#"+$.jgrid.jqID(i))[n.p.useProp?"prop":"attr"]("checked",!1)),n.p.onUnSelectRow&&n.p.onUnSelectRow.call(n,t)})),n.setHeadCheckBox(!1),n.p.selarrrow=[],n.p.selrow=null):n.p.selrow&&($("#"+$.jgrid.jqID(n.p.id)+" tbody:first tr#"+$.jgrid.jqID(n.p.selrow)).removeClass(o).attr("aria-selected","false"),i&&$("#"+$.jgrid.jqID(n.p.selrow),"#"+$.jgrid.jqID(i)).removeClass(o),n.p.onUnSelectRow&&n.p.onUnSelectRow.call(n,n.p.selrow),n.p.selrow=null);!0===n.p.cellEdit&&parseInt(n.p.iCol,10)>=0&&parseInt(n.p.iRow,10)>=0&&($("td:eq("+n.p.iCol+")",n.rows[n.p.iRow]).removeClass("edit-cell "+o),$(n.rows[n.p.iRow]).removeClass("selected-row "+a)),n.p.savedRow=[]}))},getRowData:function(e,t){var i,n,r={},o=!1,a=0;return this.each((function(){var s,l,c=this;if(null==e)o=!0,i=[],n=c.rows.length-1;else{if(!(l=$(c).jqGrid("getGridRowById",e)))return r;n=1}for(t&&!0===t&&c.p.data.length>0||(t=!1);a<n;)o&&(l=c.rows[a]),$(l).hasClass("jqgrow")&&(t?r=c.p.data[c.p._index[l.id]]:$('td[role="gridcell"]',l).each((function(e){if("cb"!==(s=c.p.colModel[e].name)&&"subgrid"!==s&&"rn"!==s)if(!0===c.p.treeGrid&&s===c.p.ExpandColumn)r[s]=$.jgrid.htmlDecode($("span:first",this).html());else try{r[s]=$.unformat.call(c,this,{rowId:l.id,colModel:c.p.colModel[e]},e)}catch(e){r[s]=$.jgrid.htmlDecode($(this).html())}})),o&&(i.push(r),r={})),a++})),i||r},delRowData:function(e){var t,i,n,r=!1;return this.each((function(){var o=this;if(!(t=$(o).jqGrid("getGridRowById",e)))return!1;if(o.p.subGrid&&(n=$(t).next()).hasClass("ui-subgrid")&&n.remove(),$(t).remove(),o.p.records--,o.p.reccount--,o.updatepager(!0,!1),r=!0,o.p.multiselect&&-1!==(i=$.inArray(e,o.p.selarrrow))&&o.p.selarrrow.splice(i,1),o.p.multiselect&&o.p.selarrrow.length>0?o.p.selrow=o.p.selarrrow[o.p.selarrrow.length-1]:o.p.selrow===e&&(o.p.selrow=null),"local"===o.p.datatype){var a=$.jgrid.stripPref(o.p.idPrefix,e),s=o.p._index[a];void 0!==s&&(o.p.data.splice(s,1),o.refreshIndex())}if(!0===o.p.altRows&&r){var l=o.p.altclass;$(o.rows).each((function(e){e%2==1?$(this).addClass(l):$(this).removeClass(l)}))}})),r},setRowData:function(e,t,i){var n,r,o=!0;return this.each((function(){if(!this.grid)return!1;var a,s,l=this,c=typeof i,u={};if(!(s=$(this).jqGrid("getGridRowById",e)))return!1;if(t)try{if($(this.p.colModel).each((function(i){n=this.name;var o=$.jgrid.getAccessor(t,n);void 0!==o&&(u[n]=this.formatter&&"string"==typeof this.formatter&&"date"===this.formatter?$.unformat.date.call(l,o,this):o,a=l.formatter(e,u[n],i,t,"edit"),r=this.title?{title:$.jgrid.stripHtml(a)}:{},!0===l.p.treeGrid&&n===l.p.ExpandColumn?$("td[role='gridcell']:eq("+i+") > span:first",s).html(a).attr(r):$("td[role='gridcell']:eq("+i+")",s).html(a).attr(r))})),"local"===l.p.datatype){var d,p=$.jgrid.stripPref(l.p.idPrefix,e),h=l.p._index[p];if(l.p.treeGrid)for(d in l.p.treeReader)l.p.treeReader.hasOwnProperty(d)&&delete u[l.p.treeReader[d]];void 0!==h&&(l.p.data[h]=$.extend(!0,l.p.data[h],u)),u=null}}catch(e){o=!1}o&&("string"===c?$(s).addClass(i):null!==i&&"object"===c&&$(s).css(i),$(l).triggerHandler("jqGridAfterGridComplete"))})),o},addRowData:function(e,t,i,n){-1===$.inArray(i,["first","last","before","after"])&&(i="last");var r,o,a,s,l,c,u,d,p,h,f,g,m,v,y=!1,b="",w="",_="";return t&&($.isArray(t)?(p=!0,h=e):(t=[t],p=!1),this.each((function(){var x=this,C=t.length;l=!0===x.p.rownumbers?1:0,a=!0===x.p.multiselect?1:0,s=!0===x.p.subGrid?1:0,p||(void 0!==e?e=String(e):(e=$.jgrid.randId(),!1!==x.p.keyName&&(h=x.p.keyName,void 0!==t[0][h]&&(e=t[0][h])))),f=x.p.altclass;var k,S=0,E=$(x).jqGrid("getStyleUI",x.p.styleUI+".base","rowBox",!0,"jqgrow ui-row-"+x.p.direction),j={},D=!!$.isFunction(x.p.afterInsertRow);for(l&&(b=$(x).jqGrid("getStyleUI",x.p.styleUI+".base","rownumBox",!1,"jqgrid-rownum")),a&&(w=$(x).jqGrid("getStyleUI",x.p.styleUI+".base","multiBox",!1,"cbox"));S<C;){if(g=t[S],o=[],k=E,p){try{void 0===(e=g[h])&&(e=$.jgrid.randId())}catch(t){e=$.jgrid.randId()}k+=!0===x.p.altRows&&(x.rows.length-1)%2==0?" "+f:""}for(v=e,e=x.p.idPrefix+e,l&&(_=x.formatCol(0,1,"",null,e,!0),o[o.length]='<td role="gridcell" '+b+" "+_+">0</td>"),a&&(d='<input role="checkbox" type="checkbox" id="jqg_'+x.p.id+"_"+e+'" '+w+"/>",_=x.formatCol(l,1,"",null,e,!0),o[o.length]='<td role="gridcell" '+_+">"+d+"</td>"),s&&(o[o.length]=$(x).jqGrid("addSubGridCell",a+l,1)),u=a+s+l;u<x.p.colModel.length;u++)m=x.p.colModel[u],j[r=m.name]=g[r],d=x.formatter(e,$.jgrid.getAccessor(g,r),u,g),_=x.formatCol(u,1,d,g,e,j),o[o.length]='<td role="gridcell" '+_+">"+d+"</td>";if(o.unshift(x.constructTr(e,!1,k,j,g)),o[o.length]="</tr>",0===x.rows.length)$("table:first",x.grid.bDiv).append(o.join(""));else switch(i){case"last":$(x.rows[x.rows.length-1]).after(o.join("")),c=x.rows.length-1;break;case"first":$(x.rows[0]).after(o.join("")),c=1;break;case"after":(c=$(x).jqGrid("getGridRowById",n))&&($(x.rows[c.rowIndex+1]).hasClass("ui-subgrid")?$(x.rows[c.rowIndex+1]).after(o):$(c).after(o.join("")),c=c.rowIndex+1);break;case"before":(c=$(x).jqGrid("getGridRowById",n))&&($(c).before(o.join("")),c=c.rowIndex-1)}!0===x.p.subGrid&&$(x).jqGrid("addSubGrid",a+l,c),x.p.records++,x.p.reccount++,$(x).triggerHandler("jqGridAfterInsertRow",[e,g,g]),D&&x.p.afterInsertRow.call(x,e,g,g),S++,"local"===x.p.datatype&&(j[x.p.localReader.id]=v,x.p._index[v]=x.p.data.length,x.p.data.push(j),j={})}!0!==x.p.altRows||p||("last"===i?(x.rows.length-1)%2==0&&$(x.rows[x.rows.length-1]).addClass(f):$(x.rows).each((function(e){e%2==0?$(this).addClass(f):$(this).removeClass(f)}))),x.updatepager(!0,!0),y=!0}))),y},footerData:function(e,t,i){var n,r,o=!1,a={};return void 0===e&&(e="get"),"boolean"!=typeof i&&(i=!0),e=e.toLowerCase(),this.each((function(){var s,l=this;return!(!l.grid||!l.p.footerrow)&&("set"!==e||!function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(t))&&(o=!0,void $(this.p.colModel).each((function(c){n=this.name,"set"===e?void 0!==t[n]&&(s=i?l.formatter("",t[n],c,t,"edit"):t[n],r=this.title?{title:$.jgrid.stripHtml(s)}:{},$("tr.footrow td:eq("+c+")",l.grid.sDiv).html(s).attr(r),o=!0):"get"===e&&(a[n]=$("tr.footrow td:eq("+c+")",l.grid.sDiv).html())})))})),"get"===e?a:o},showHideCol:function(e,t){return this.each((function(){var i,n=this,r=!1,o=$.jgrid.cell_width?0:n.p.cellLayout;if(n.grid){"string"==typeof e&&(e=[e]);var a=""==(t="none"!==t?"":"none"),s=n.p.groupHeader&&($.isArray(n.p.groupHeader)||$.isFunction(n.p.groupHeader));if(s&&$(n).jqGrid("destroyGroupHeader",!1),$(this.p.colModel).each((function(s){if(-1!==$.inArray(this.name,e)&&this.hidden===a){if(!0===n.p.frozenColumns&&!0===this.frozen)return!0;$("tr[role=row]",n.grid.hDiv).each((function(){$(this.cells[s]).css("display",t)})),$(n.rows).each((function(){$(this).hasClass("jqgroup")||$(this.cells[s]).css("display",t)})),n.p.footerrow&&$("tr.footrow td:eq("+s+")",n.grid.sDiv).css("display",t),i=parseInt(this.width,10),"none"===t?n.p.tblwidth-=i+o:n.p.tblwidth+=i+o,this.hidden=!a,r=!0,$(n).triggerHandler("jqGridShowHideCol",[a,this.name,s])}})),!0===r&&(!0!==n.p.shrinkToFit||isNaN(n.p.height)||(n.p.tblwidth+=parseInt(n.p.scrollOffset,10)),$(n).jqGrid("setGridWidth",!0===n.p.shrinkToFit?n.p.tblwidth:n.p.width)),s){var l=$.extend([],n.p.groupHeader);n.p.groupHeader=null;for(var c=0;c<l.length;c++)$(n).jqGrid("setGroupHeaders",l[c])}}}))},hideCol:function(e){return this.each((function(){$(this).jqGrid("showHideCol",e,"none")}))},showCol:function(e){return this.each((function(){$(this).jqGrid("showHideCol",e,"")}))},remapColumns:function(e,t,i){function n(t){var i;i=t.length?$.makeArray(t):$.extend({},t),$.each(e,(function(e){t[e]=i[this]}))}function r(t,i){$(">tr"+(i||""),t).each((function(){var t=this,i=$.makeArray(t.cells);$.each(e,(function(){var e=i[this];e&&t.appendChild(e)}))}))}var o=this.get(0);n(o.p.colModel),n(o.p.colNames),n(o.grid.headers),r($("thead:first",o.grid.hDiv),i&&":not(.ui-jqgrid-labels)"),t&&r($("#"+$.jgrid.jqID(o.p.id)+" tbody:first"),".jqgfirstrow, tr.jqgrow, tr.jqfoot"),o.p.footerrow&&r($("tbody:first",o.grid.sDiv)),o.p.remapColumns&&(o.p.remapColumns.length?n(o.p.remapColumns):o.p.remapColumns=$.makeArray(e)),o.p.lastsort=$.inArray(o.p.lastsort,e),o.p.treeGrid&&(o.p.expColInd=$.inArray(o.p.expColInd,e)),$(o).triggerHandler("jqGridRemapColumns",[e,t,i])},setGridWidth:function(e,t){return this.each((function(){if(this.grid){var i,n,r,o,a=this,s=0,l=$.jgrid.cell_width?0:a.p.cellLayout,c=0,u=!1,d=a.p.scrollOffset,p=0;if("boolean"!=typeof t&&(t=a.p.shrinkToFit),!isNaN(e)){if(e=parseInt(e,10),a.grid.width=a.p.width=e,$("#gbox_"+$.jgrid.jqID(a.p.id)).css("width",e+"px"),$("#gview_"+$.jgrid.jqID(a.p.id)).css("width",e+"px"),$(a.grid.bDiv).css("width",e-2+"px"),$(a.grid.hDiv).css("width",e-2+"px"),a.p.pager&&$(a.p.pager).css("width",e+"px"),a.p.toppager&&$(a.p.toppager).css("width",e-2+"px"),!0===a.p.toolbar[0]&&($(a.grid.uDiv).css("width",e-2+"px"),"both"===a.p.toolbar[1]&&$(a.grid.ubDiv).css("width",e-2+"px")),a.p.footerrow&&$(a.grid.sDiv).css("width",e-2+"px"),!1===t&&!0===a.p.forceFit&&(a.p.forceFit=!1),!0===t){if($.each(a.p.colModel,(function(){!1===this.hidden&&(i=this.widthOrg,s+=i+l,this.fixed?p+=i+l:c++)})),0===c)return;a.p.tblwidth=s,r=e-l*c-p,isNaN(a.p.height)||($(a.grid.bDiv)[0].clientHeight<=$(a.grid.bDiv)[0].scrollHeight||1===a.rows.length)&&(u=!0,r-=d),s=0;var h=a.grid.cols.length>0;if($.each(a.p.colModel,(function(e){if(!1===this.hidden&&!this.fixed){if(i=this.widthOrg,(i=Math.round(r*i/(a.p.tblwidth-l*c-p)))<0)return;this.width=i,s+=i,a.grid.headers[e].width=i,a.grid.headers[e].el.style.width=i+"px",a.p.footerrow&&(a.grid.footers[e].style.width=i+"px"),h&&(a.grid.cols[e].style.width=i+"px"),n=e}})),!n)return;if(o=0,u?e-p-(s+l*c)!==d&&(o=e-p-(s+l*c)-d):1!==Math.abs(e-p-(s+l*c))&&(o=e-p-(s+l*c)),a.p.colModel[n].width+=o,a.p.tblwidth=s+o+l*c+p,a.p.tblwidth>e){var f=a.p.tblwidth-parseInt(e,10);a.p.tblwidth=e,i=a.p.colModel[n].width=a.p.colModel[n].width-f}else i=a.p.colModel[n].width;a.grid.headers[n].width=i,a.grid.headers[n].el.style.width=i+"px",h&&(a.grid.cols[n].style.width=i+"px"),a.p.footerrow&&(a.grid.footers[n].style.width=i+"px")}a.p.tblwidth&&($("table:first",a.grid.bDiv).css("width",a.p.tblwidth+"px"),$("table:first",a.grid.hDiv).css("width",a.p.tblwidth+"px"),a.grid.hDiv.scrollLeft=a.grid.bDiv.scrollLeft,a.p.footerrow&&$("table:first",a.grid.sDiv).css("width",a.p.tblwidth+"px"))}}}))},setGridHeight:function(e){return this.each((function(){var t=this;if(t.grid){var i=$(t.grid.bDiv);i.css({height:e+(isNaN(e)?"":"px")}),!0===t.p.frozenColumns&&$("#"+$.jgrid.jqID(t.p.id)+"_frozen").parent().height(i.height()-16),t.p.height=e,t.p.scroll&&t.grid.populateVisible()}}))},setCaption:function(e){return this.each((function(){var t=$(this).jqGrid("getStyleUI",this.p.styleUI+".common","cornertop",!0);this.p.caption=e,$(".ui-jqgrid-title, .ui-jqgrid-title-rtl",this.grid.cDiv).html(e),$(this.grid.cDiv).show(),$(this.grid.hDiv).removeClass(t)}))},setLabel:function(e,t,i,n){return this.each((function(){var r=this,o=-1;if(r.grid&&null!=e&&(isNaN(e)?$(r.p.colModel).each((function(t){if(this.name===e)return o=t,!1})):o=parseInt(e,10),o>=0)){var a=$("tr.ui-jqgrid-labels th:eq("+o+")",r.grid.hDiv);if(t){var s=$(".s-ico",a);$("[id^=jqgh_]",a).empty().html(t).append(s),r.p.colNames[o]=t}i&&("string"==typeof i?$(a).addClass(i):$(a).css(i)),"object"==typeof n&&$(a).attr(n)}}))},setCell:function(e,t,i,n,r,o){return this.each((function(){var a,s,l=this,c=-1;if(l.grid&&(isNaN(t)?$(l.p.colModel).each((function(e){if(this.name===t)return c=e,!1})):c=parseInt(t,10),c>=0)){var u=$(l).jqGrid("getGridRowById",e);if(u){var d=$("td:eq("+c+")",u),p=0,h=[];if(""!==i||!0===o){if(void 0!==u.cells)for(;p<u.cells.length;)h.push(u.cells[p].innerHTML),p++;if(a=l.formatter(e,i,c,h,"edit"),s=l.p.colModel[c].title?{title:$.jgrid.stripHtml(a)}:{},l.p.treeGrid&&$(".tree-wrap",$(d)).length>0?$("span",$(d)).html(a).attr(s):$(d).html(a).attr(s),"local"===l.p.datatype){var f,g=l.p.colModel[c];i=g.formatter&&"string"==typeof g.formatter&&"date"===g.formatter?$.unformat.date.call(l,i,g):i,void 0!==(f=l.p._index[$.jgrid.stripPref(l.p.idPrefix,e)])&&(l.p.data[f][g.name]=i)}}"string"==typeof n?$(d).addClass(n):n&&$(d).css(n),"object"==typeof r&&$(d).attr(r)}}}))},getCell:function(e,t){var i=!1;return this.each((function(){var n=this,r=-1;if(n.grid&&(isNaN(t)?$(n.p.colModel).each((function(e){if(this.name===t)return r=e,!1})):r=parseInt(t,10),r>=0)){var o=$(n).jqGrid("getGridRowById",e);if(o)try{i=$.unformat.call(n,$("td:eq("+r+")",o),{rowId:o.id,colModel:n.p.colModel[r]},r)}catch(e){i=$.jgrid.htmlDecode($("td:eq("+r+")",o).html())}}})),i},getCol:function(e,t,i){var n,r,o,a,s=[],l=0;return t="boolean"==typeof t&&t,void 0===i&&(i=!1),this.each((function(){var c=this,u=-1;if(c.grid&&(isNaN(e)?$(c.p.colModel).each((function(t){if(this.name===e)return u=t,!1})):u=parseInt(e,10),u>=0)){var d=c.rows.length,p=0,h=0;if(d&&d>0){for(;p<d;){if($(c.rows[p]).hasClass("jqgrow")){try{n=$.unformat.call(c,$(c.rows[p].cells[u]),{rowId:c.rows[p].id,colModel:c.p.colModel[u]},u)}catch(e){n=$.jgrid.htmlDecode(c.rows[p].cells[u].innerHTML)}i?(a=parseFloat(n),isNaN(a)||(l+=a,void 0===o&&(o=r=a),r=Math.min(r,a),o=Math.max(o,a),h++)):t?s.push({id:c.rows[p].id,value:n}):s.push(n)}p++}if(i)switch(i.toLowerCase()){case"sum":s=l;break;case"avg":s=l/h;break;case"count":s=d-1;break;case"min":s=r;break;case"max":s=o}}}})),s},clearGridData:function(e){return this.each((function(){var t=this;if(t.grid){if("boolean"!=typeof e&&(e=!1),t.p.deepempty)$("#"+$.jgrid.jqID(t.p.id)+" tbody:first tr:gt(0)").remove();else{var i=$("#"+$.jgrid.jqID(t.p.id)+" tbody:first tr:first")[0];$("#"+$.jgrid.jqID(t.p.id)+" tbody:first").empty().append(i)}t.p.footerrow&&e&&$(".ui-jqgrid-ftable td",t.grid.sDiv).html(" "),t.p.selrow=null,t.p.selarrrow=[],t.p.savedRow=[],t.p.records=0,t.p.page=1,t.p.lastpage=0,t.p.reccount=0,t.p.data=[],t.p._index={},t.updatepager(!0,!1)}}))},getInd:function(e,t){var i,n=!1;return this.each((function(){(i=$(this).jqGrid("getGridRowById",e))&&(n=!0===t?i:i.rowIndex)})),n},bindKeys:function(e){var t=$.extend({onEnter:null,onSpace:null,onLeftKey:null,onRightKey:null,scrollingRows:!0},e||{});return this.each((function(){var e=this;$("body").is("[role]")||$("body").attr("role","application"),e.p.scrollrows=t.scrollingRows,$(e).keydown((function(i){var n,r,o,a=$(e).find("tr[tabindex=0]")[0],s=e.p.treeReader.expanded_field;if(a)if(o=e.p._index[$.jgrid.stripPref(e.p.idPrefix,a.id)],37===i.keyCode||38===i.keyCode||39===i.keyCode||40===i.keyCode){if(38===i.keyCode){if(n="",r=a.previousSibling)if($(r).is(":hidden")){for(;r;)if(r=r.previousSibling,!$(r).is(":hidden")&&$(r).hasClass("jqgrow")){n=r.id;break}}else n=r.id;$(e).jqGrid("setSelection",n,!0,i),i.preventDefault()}if(40===i.keyCode){if(n="",r=a.nextSibling)if($(r).is(":hidden")){for(;r;)if(r=r.nextSibling,!$(r).is(":hidden")&&$(r).hasClass("jqgrow")){n=r.id;break}}else n=r.id;$(e).jqGrid("setSelection",n,!0,i),i.preventDefault()}37===i.keyCode&&(e.p.treeGrid&&e.p.data[o][s]&&$(a).find("div.treeclick").trigger("click"),$(e).triggerHandler("jqGridKeyLeft",[e.p.selrow]),$.isFunction(t.onLeftKey)&&t.onLeftKey.call(e,e.p.selrow)),39===i.keyCode&&(e.p.treeGrid&&!e.p.data[o][s]&&$(a).find("div.treeclick").trigger("click"),$(e).triggerHandler("jqGridKeyRight",[e.p.selrow]),$.isFunction(t.onRightKey)&&t.onRightKey.call(e,e.p.selrow))}else 13===i.keyCode?($(e).triggerHandler("jqGridKeyEnter",[e.p.selrow]),$.isFunction(t.onEnter)&&t.onEnter.call(e,e.p.selrow)):32===i.keyCode&&($(e).triggerHandler("jqGridKeySpace",[e.p.selrow]),$.isFunction(t.onSpace)&&t.onSpace.call(e,e.p.selrow))}))}))},unbindKeys:function(){return this.each((function(){$(this).off("keydown")}))},getLocalRow:function(e){var t,i=!1;return this.each((function(){void 0!==e&&(t=this.p._index[$.jgrid.stripPref(this.p.idPrefix,e)])>=0&&(i=this.p.data[t])})),i},progressBar:function(e){return e=$.extend({htmlcontent:"",method:"hide",loadtype:"disable"},e||{}),this.each((function(){var t,i,n="show"===e.method,r=$("#load_"+$.jgrid.jqID(this.p.id)),o=$(window).scrollTop();switch(""!==e.htmlcontent&&r.html(e.htmlcontent),e.loadtype){case"disable":break;case"enable":r.toggle(n);break;case"block":$("#lui_"+$.jgrid.jqID(this.p.id)).toggle(n),r.toggle(n)}r.is(":visible")&&(t=r.offsetParent(),r.css("top",""),r.offset().top<o&&(i=Math.min(10+o-t.offset().top,t.height()-r.height()),r.css("top",i+"px")))}))},getColProp:function(e){var t={},i=this[0];if(!i.grid)return!1;var n,r=i.p.colModel;for(n=0;n<r.length;n++)if(r[n].name===e){t=r[n];break}return t},setColProp:function(e,t){return this.each((function(){if(this.grid&&t){var i,n=this.p.colModel;for(i=0;i<n.length;i++)if(n[i].name===e){$.extend(!0,this.p.colModel[i],t);break}}}))},sortGrid:function(e,t,i){return this.each((function(){var n,r=this,o=-1,a=!1;if(r.grid){for(e||(e=r.p.sortname),n=0;n<r.p.colModel.length;n++)if(r.p.colModel[n].index===e||r.p.colModel[n].name===e){o=n,!0===r.p.frozenColumns&&!0===r.p.colModel[n].frozen&&(a=r.grid.fhDiv.find("#"+r.p.id+"_"+e));break}if(-1!==o){var s=r.p.colModel[o].sortable;a||(a=r.grid.headers[o].el),"boolean"!=typeof s&&(s=!0),"boolean"!=typeof t&&(t=!1),s&&r.sortData("jqgh_"+r.p.id+"_"+e,o,t,i,a)}}}))},setGridState:function(e){return this.each((function(){if(this.grid){var t=this,i=$(this).jqGrid("getStyleUI",this.p.styleUI+".base","icon_caption_open",!0),n=$(this).jqGrid("getStyleUI",this.p.styleUI+".base","icon_caption_close",!0);"hidden"===e?($(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+$.jgrid.jqID(t.p.id)).slideUp("fast"),t.p.pager&&$(t.p.pager).slideUp("fast"),t.p.toppager&&$(t.p.toppager).slideUp("fast"),!0===t.p.toolbar[0]&&("both"===t.p.toolbar[1]&&$(t.grid.ubDiv).slideUp("fast"),$(t.grid.uDiv).slideUp("fast")),t.p.footerrow&&$(".ui-jqgrid-sdiv","#gbox_"+$.jgrid.jqID(t.p.id)).slideUp("fast"),$(".ui-jqgrid-headlink",t.grid.cDiv).removeClass(i).addClass(n),t.p.gridstate="hidden"):"visible"===e&&($(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+$.jgrid.jqID(t.p.id)).slideDown("fast"),t.p.pager&&$(t.p.pager).slideDown("fast"),t.p.toppager&&$(t.p.toppager).slideDown("fast"),!0===t.p.toolbar[0]&&("both"===t.p.toolbar[1]&&$(t.grid.ubDiv).slideDown("fast"),$(t.grid.uDiv).slideDown("fast")),t.p.footerrow&&$(".ui-jqgrid-sdiv","#gbox_"+$.jgrid.jqID(t.p.id)).slideDown("fast"),$(".ui-jqgrid-headlink",t.grid.cDiv).removeClass(n).addClass(i),t.p.gridstate="visible")}}))},setFrozenColumns:function(){return this.each((function(){if(this.grid){var e=this,t=e.p.colModel,i=0,n=t.length,r=-1,o=!1,a=$(e).jqGrid("getStyleUI",e.p.styleUI+".base","headerDiv",!0,"ui-jqgrid-hdiv"),s=$(e).jqGrid("getStyleUI",e.p.styleUI+".common","hover",!0);if(!0!==e.p.subGrid&&!0!==e.p.treeGrid&&!0!==e.p.cellEdit&&!e.p.sortable&&!e.p.scroll){for(e.p.rownumbers&&i++,e.p.multiselect&&i++;i<n&&!0===t[i].frozen;)o=!0,r=i,i++;if(r>=0&&o){var l=e.p.caption?$(e.grid.cDiv).outerHeight():0,c=$(".ui-jqgrid-htable","#gview_"+$.jgrid.jqID(e.p.id)).height();e.p.toppager&&(l+=$(e.grid.topDiv).outerHeight()),!0===e.p.toolbar[0]&&"bottom"!==e.p.toolbar[1]&&(l+=$(e.grid.uDiv).outerHeight()),e.grid.fhDiv=$('<div style="position:absolute;'+("rtl"===e.p.direction?"right:0;":"left:0;")+"top:"+l+"px;height:"+c+'px;" class="frozen-div '+a+'"></div>'),e.grid.fbDiv=$('<div style="position:absolute;'+("rtl"===e.p.direction?"right:0;":"left:0;")+"top:"+(parseInt(l,10)+parseInt(c,10)+1)+'px;overflow-y:hidden" class="frozen-bdiv ui-jqgrid-bdiv"></div>'),$("#gview_"+$.jgrid.jqID(e.p.id)).append(e.grid.fhDiv);var u=$(".ui-jqgrid-htable","#gview_"+$.jgrid.jqID(e.p.id)).clone(!0);if(e.p.groupHeader){$("tr.jqg-first-row-header, tr.jqg-third-row-header",u).each((function(){$("th:gt("+r+")",this).remove()}));var d,p=-1,h=-1;$("tr.jqg-second-row-header th",u).each((function(){if(d=parseInt($(this).attr("colspan"),10),parseInt($(this).attr("rowspan"),10)&&(p++,h++),d&&(p+=d,h++),p===r)return h=r,!1})),p!==r&&(h=r),$("tr.jqg-second-row-header",u).each((function(){$("th:gt("+h+")",this).remove()}))}else $("tr",u).each((function(){$("th:gt("+r+")",this).remove()}));if($(u).width(1),$.jgrid.msie()||$(u).css("height","100%"),$(e.grid.fhDiv).append(u).mousemove((function(t){if(e.grid.resizing)return e.grid.dragMove(t),!1})),e.p.footerrow){var f=$(".ui-jqgrid-bdiv","#gview_"+$.jgrid.jqID(e.p.id)).height();e.grid.fsDiv=$('<div style="position:absolute;left:0px;top:'+(parseInt(l,10)+parseInt(c,10)+parseInt(f,10)+1)+'px;" class="frozen-sdiv ui-jqgrid-sdiv"></div>'),$("#gview_"+$.jgrid.jqID(e.p.id)).append(e.grid.fsDiv);var g=$(".ui-jqgrid-ftable","#gview_"+$.jgrid.jqID(e.p.id)).clone(!0);$("tr",g).each((function(){$("td:gt("+r+")",this).remove()})),$(g).width(1),$(e.grid.fsDiv).append(g)}$(e).on("jqGridResizeStop.setFrozenColumns",(function(t,i,n){var r=$(".ui-jqgrid-htable",e.grid.fhDiv);$("th:eq("+n+")",r).width(i);var o=$(".ui-jqgrid-btable",e.grid.fbDiv);if($("tr:first td:eq("+n+")",o).width(i),e.p.footerrow){var a=$(".ui-jqgrid-ftable",e.grid.fsDiv);$("tr:first td:eq("+n+")",a).width(i)}})),$("#gview_"+$.jgrid.jqID(e.p.id)).append(e.grid.fbDiv),$(e.grid.fbDiv).on("mousewheel DOMMouseScroll",(function(t){var i=$(e.grid.bDiv).scrollTop();t.originalEvent.wheelDelta>0||t.originalEvent.detail<0?$(e.grid.bDiv).scrollTop(i-25):$(e.grid.bDiv).scrollTop(i+25),t.preventDefault()})),!0===e.p.hoverrows&&$("#"+$.jgrid.jqID(e.p.id)).off("mouseover mouseout"),$(e).on("jqGridAfterGridComplete.setFrozenColumns",(function(){$("#"+$.jgrid.jqID(e.p.id)+"_frozen").remove(),$(e.grid.fbDiv).height($(e.grid.bDiv).height()-(e.p.scrollOffset-2));var t=[];$("#"+$.jgrid.jqID(e.p.id)+" tr[role=row].jqgrow").each((function(){t.push($("td:visible:first",this).height())}));var i=$("#"+$.jgrid.jqID(e.p.id)).clone(!0);$("tr[role=row]",i).each((function(){$("td[role=gridcell]:gt("+r+")",this).remove()})),$(i).width(1).attr("id",e.p.id+"_frozen"),$(e.grid.fbDiv).append(i),$("tr[role=row].jqgrow",i).each((function(e,i){$("td:not(.jqgrid-rownum):visible:first",this).height(t[e])})),!0===e.p.hoverrows&&($("tr.jqgrow",i).hover((function(){$(this).addClass(s),$("#"+$.jgrid.jqID(this.id),"#"+$.jgrid.jqID(e.p.id)).addClass(s)}),(function(){$(this).removeClass(s),$("#"+$.jgrid.jqID(this.id),"#"+$.jgrid.jqID(e.p.id)).removeClass(s)})),$("tr.jqgrow","#"+$.jgrid.jqID(e.p.id)).hover((function(){$(this).addClass(s),$("#"+$.jgrid.jqID(this.id),"#"+$.jgrid.jqID(e.p.id)+"_frozen").addClass(s)}),(function(){$(this).removeClass(s),$("#"+$.jgrid.jqID(this.id),"#"+$.jgrid.jqID(e.p.id)+"_frozen").removeClass(s)}))),i=null})),e.grid.hDiv.loading||$(e).triggerHandler("jqGridAfterGridComplete"),e.p.frozenColumns=!0}}}}))},destroyFrozenColumns:function(){return this.each((function(){if(this.grid&&!0===this.p.frozenColumns){var e,t=this,i=$(t).jqGrid("getStyleUI",t.p.styleUI+".common","hover",!0);$(t.grid.fhDiv).remove(),$(t.grid.fbDiv).remove(),t.grid.fhDiv=null,t.grid.fbDiv=null,t.p.footerrow&&($(t.grid.fsDiv).remove(),t.grid.fsDiv=null),$(this).off(".setFrozenColumns"),!0===t.p.hoverrows&&$("#"+$.jgrid.jqID(t.p.id)).on({mouseover:function(t){e=$(t.target).closest("tr.jqgrow"),"ui-subgrid"!==$(e).attr("class")&&$(e).addClass(i)},mouseout:function(t){e=$(t.target).closest("tr.jqgrow"),$(e).removeClass(i)}}),this.p.frozenColumns=!1}}))},resizeColumn:function(e,t){return this.each((function(){var i,n,r=this.grid,o=this.p,a=o.colModel,s=a.length;if("string"==typeof e){for(i=0;i<s;i++)if(a[i].name===e){e=i;break}}else e=parseInt(e,10);if(t=parseInt(t,10),!("number"!=typeof e||e<0||e>a.length-1||"number"!=typeof t||t<o.minColWidth)){if(o.forceFit)for(o.nv=0,i=e+1;i<s;i++)if(!0!==a[i].hidden){o.nv=i-e;break}if(r.resizing={idx:e},n=t-r.headers[e].width,o.forceFit){if(r.headers[e+o.nv].width-n<o.minColWidth)return;r.headers[e+o.nv].newWidth=r.headers[e+o.nv].width-n}r.newWidth=o.tblwidth+n,r.headers[e].newWidth=t,r.dragEnd(!1)}}))},getStyleUI:function(e,t,i,n){var r="",o="";try{var a=e.split(".");switch(i||(r="class=",o='"'),null==n&&(n=""),a.length){case 1:r+=o+$.trim(n+" "+$.jgrid.styleUI[a[0]][t]+o);break;case 2:r+=o+$.trim(n+" "+$.jgrid.styleUI[a[0]][a[1]][t]+o)}}catch(e){r=""}return r},resizeGrid:function(e){return this.each((function(){var t=this;void 0===e&&(e=200),setTimeout((function(){try{var e=$(window).width(),i=$("#gbox_"+$.jgrid.jqID(t.p.id)).parent().width(),n=t.p.width;if(n=e-i>3?i:e,t.p.fitSize&&(n=i,n+=2),$("#"+$.jgrid.jqID(t.p.id)).jqGrid("setGridWidth",n),t.p.fitSize){var r=document.getElementById("gbox_"+$.jgrid.jqID(t.p.id)).parentNode,o=t.grid.hDiv.offsetHeight,a=t.p.pager?document.getElementById(t.p.pager.replace("#","")).offsetHeight:0;t.p.height=parseInt(r.offsetHeight-o-a-2,10),t.grid.bDiv.style.height=t.p.height+"px"}}catch(e){}}),e)}))}}),$.jgrid.extend({editCell:function(e,t,i){return this.each((function(){var n,r,o,a,s=this,l=$(this).jqGrid("getStyleUI",s.p.styleUI+".common","highlight",!0),c=$(this).jqGrid("getStyleUI",s.p.styleUI+".common","hover",!0),u=$(this).jqGrid("getStyleUI",s.p.styleUI+".celledit","inputClass",!0);if(s.grid&&!0===s.p.cellEdit){if(t=parseInt(t,10),s.p.selrow=s.rows[e].id,s.p.knv||$(s).jqGrid("GridNav"),s.p.savedRow.length>0){if(!0===i&&e==s.p.iRow&&t==s.p.iCol)return;$(s).jqGrid("saveCell",s.p.savedRow[0].id,s.p.savedRow[0].ic)}else window.setTimeout((function(){$("#"+$.jgrid.jqID(s.p.knv)).attr("tabindex","-1").focus()}),1);if("subgrid"!==(n=(a=s.p.colModel[t]).name)&&"cb"!==n&&"rn"!==n){if(o=$("td:eq("+t+")",s.rows[e]),!0!==a.editable||!0!==i||o.hasClass("not-editable-cell")||$.isFunction(s.p.isCellEditable)&&!s.p.isCellEditable.call(s,n,e,t))parseInt(s.p.iCol,10)>=0&&parseInt(s.p.iRow,10)>=0&&$(s.rows[s.p.iRow]).removeClass("selected-row "+c).find("td:eq("+s.p.iCol+")").removeClass("edit-cell "+l),o.addClass("edit-cell "+l),$(s.rows[e]).addClass("selected-row "+c),r=o.html().replace(/\ \;/gi,""),$(s).triggerHandler("jqGridSelectCell",[s.rows[e].id,n,r,e,t]),$.isFunction(s.p.onSelectCell)&&s.p.onSelectCell.call(s,s.rows[e].id,n,r,e,t);else{parseInt(s.p.iCol,10)>=0&&parseInt(s.p.iRow,10)>=0&&$(s.rows[s.p.iRow]).removeClass("selected-row "+c).find("td:eq("+s.p.iCol+")").removeClass("edit-cell "+l),$(o).addClass("edit-cell "+l),$(s.rows[e]).addClass("selected-row "+c);try{r=$.unformat.call(s,o,{rowId:s.rows[e].id,colModel:a},t)}catch(e){r=a.edittype&&"textarea"===a.edittype?$(o).text():$(o).html()}if(s.p.autoencode&&(r=$.jgrid.htmlDecode(r)),a.edittype||(a.edittype="text"),s.p.savedRow.push({id:e,ic:t,name:n,v:r}),(" "===r||" "===r||1===r.length&&160===r.charCodeAt(0))&&(r=""),$.isFunction(s.p.formatCell)){var d=s.p.formatCell.call(s,s.rows[e].id,n,r,e,t);void 0!==d&&(r=d)}$(s).triggerHandler("jqGridBeforeEditCell",[s.rows[e].id,n,r,e,t]),$.isFunction(s.p.beforeEditCell)&&s.p.beforeEditCell.call(s,s.rows[e].id,n,r,e,t);var p=$.extend({},a.editoptions||{},{id:e+"_"+n,name:n,rowId:s.rows[e].id,oper:"edit"}),h=$.jgrid.createEl.call(s,a.edittype,p,r,!0,$.extend({},$.jgrid.ajaxOptions,s.p.ajaxSelectOptions||{}));$.inArray(a.edittype,["text","textarea","password","select"])>-1&&$(h).addClass(u),$(o).html("").append(h).attr("tabindex","0"),$.jgrid.bindEv.call(s,h,p),window.setTimeout((function(){$(h).focus()}),1),$("input, select, textarea",o).on("keydown",(function(i){if(27===i.keyCode&&($("input.hasDatepicker",o).length>0?$(".ui-datepicker").is(":hidden")?$(s).jqGrid("restoreCell",e,t):$("input.hasDatepicker",o).datepicker("hide"):$(s).jqGrid("restoreCell",e,t)),13===i.keyCode&&!i.shiftKey)return $(s).jqGrid("saveCell",e,t),!1;if(9===i.keyCode){if(s.grid.hDiv.loading)return!1;i.shiftKey?$(s).jqGrid("prevCell",e,t):$(s).jqGrid("nextCell",e,t)}i.stopPropagation()})),$(s).triggerHandler("jqGridAfterEditCell",[s.rows[e].id,n,r,e,t]),$.isFunction(s.p.afterEditCell)&&s.p.afterEditCell.call(s,s.rows[e].id,n,r,e,t)}s.p.iCol=t,s.p.iRow=e}}}))},saveCell:function(e,t){return this.each((function(){var i,n=this,r=$.jgrid.getRegional(this,"errors"),o=$.jgrid.getRegional(this,"edit");if(n.grid&&!0===n.p.cellEdit){if(null!==(i=n.p.savedRow.length>=1?0:null)){var a,s,l=$("td:eq("+t+")",n.rows[e]),c=n.p.colModel[t],u=c.name,d=$.jgrid.jqID(u),p=$(l).offset();switch(c.edittype){case"select":if(c.editoptions.multiple){var h=$("#"+e+"_"+d,n.rows[e]),f=[];(a=$(h).val())?a.join(","):a="",$("option:selected",h).each((function(e,t){f[e]=$(t).text()})),s=f.join(",")}else a=$("#"+e+"_"+d+" option:selected",n.rows[e]).val(),s=$("#"+e+"_"+d+" option:selected",n.rows[e]).text();c.formatter&&(s=a);break;case"checkbox":var g=["Yes","No"];c.editoptions&&(g=c.editoptions.value.split(":")),a=$("#"+e+"_"+d,n.rows[e]).is(":checked")?g[0]:g[1],s=a;break;case"password":case"text":case"textarea":case"button":a=$("#"+e+"_"+d,n.rows[e]).val(),s=a;break;case"custom":try{if(!c.editoptions||!$.isFunction(c.editoptions.custom_value))throw"e1";if(void 0===(a=c.editoptions.custom_value.call(n,$(".customelement",l),"get")))throw"e2";s=a}catch(e){"e1"===e?$.jgrid.info_dialog(r.errcap,"function 'custom_value' "+o.msg.nodefined,o.bClose,{styleUI:n.p.styleUI}):"e2"===e?$.jgrid.info_dialog(r.errcap,"function 'custom_value' "+o.msg.novalue,o.bClose,{styleUI:n.p.styleUI}):$.jgrid.info_dialog(r.errcap,e.message,o.bClose,{styleUI:n.p.styleUI})}}if(s!==n.p.savedRow[i].v){var m=$(n).triggerHandler("jqGridBeforeSaveCell",[n.rows[e].id,u,a,e,t]);if(m&&(a=m,s=m),$.isFunction(n.p.beforeSaveCell)){var v=n.p.beforeSaveCell.call(n,n.rows[e].id,u,a,e,t);v&&(a=v,s=v)}var y=$.jgrid.checkValues.call(n,a,t),b=!1;if(!0===y[0]){var w=$(n).triggerHandler("jqGridBeforeSubmitCell",[n.rows[e].id,u,a,e,t])||{};if($.isFunction(n.p.beforeSubmitCell)&&((w=n.p.beforeSubmitCell.call(n,n.rows[e].id,u,a,e,t))||(w={})),$("input.hasDatepicker",l).length>0&&$("input.hasDatepicker",l).datepicker("hide"),"remote"===n.p.cellsubmit)if(n.p.cellurl){var _,x,C,k={};n.p.autoencode&&(a=$.jgrid.htmlEncode(a)),c.editoptions&&c.editoptions.NullIfEmpty&&""===a&&(a="null",b=!0),k[u]=a,_=(C=n.p.prmNames).id,x=C.oper,k[_]=$.jgrid.stripPref(n.p.idPrefix,n.rows[e].id),k[x]=C.editoper,k=$.extend(w,k),$(n).jqGrid("progressBar",{method:"show",loadtype:n.p.loadui,htmlcontent:$.jgrid.getRegional(n,"defaults.savetext")}),n.grid.hDiv.loading=!0,$.postToRemote($.extend({url:n.p.cellurl,data:$.isFunction(n.p.serializeCellData)?n.p.serializeCellData.call(n,k,u):k,type:"POST",complete:function(i,c){if($(n).jqGrid("progressBar",{method:"hide",loadtype:n.p.loadui}),n.grid.hDiv.loading=!1,"success"===c){var d=$(n).triggerHandler("jqGridAfterSubmitCell",[n,i,k.id,u,a,e,t])||[!0,""];!0===d[0]&&$.isFunction(n.p.afterSubmitCell)&&(d=n.p.afterSubmitCell.call(n,i,k.id,u,a,e,t)),!0===d[0]?(b&&(a=""),$(l).empty(),$(n).jqGrid("setCell",n.rows[e].id,t,s,!1,!1,!0),$(l).addClass("dirty-cell"),$(n.rows[e]).addClass("edited"),$(n).triggerHandler("jqGridAfterSaveCell",[n.rows[e].id,u,a,e,t]),$.isFunction(n.p.afterSaveCell)&&n.p.afterSaveCell.call(n,n.rows[e].id,u,a,e,t),n.p.savedRow.splice(0,1)):($.jgrid.info_dialog(r.errcap,d[1],o.bClose,{styleUI:n.p.styleUI}),n.p.restoreCellonFail&&$(n).jqGrid("restoreCell",e,t))}},error:function(i,a,s){$("#lui_"+$.jgrid.jqID(n.p.id)).hide(),n.grid.hDiv.loading=!1,$(n).triggerHandler("jqGridErrorCell",[i,a,s]),$.isFunction(n.p.errorCell)?n.p.errorCell.call(n,i,a,s):$.jgrid.info_dialog(r.errcap,i.status+" : "+i.statusText+"<br/>"+a,o.bClose,{styleUI:n.p.styleUI}),n.p.restoreCellonFail&&$(n).jqGrid("restoreCell",e,t)}},$.jgrid.ajaxOptions,n.p.ajaxCellOptions||{}))}else try{$.jgrid.info_dialog(r.errcap,r.nourl,o.bClose,{styleUI:n.p.styleUI}),n.p.restoreCellonFail&&$(n).jqGrid("restoreCell",e,t)}catch(e){}"clientArray"===n.p.cellsubmit&&($(l).empty(),$(n).jqGrid("setCell",n.rows[e].id,t,s,!1,!1,!0),$(l).addClass("dirty-cell"),$(n.rows[e]).addClass("edited"),$(n).triggerHandler("jqGridAfterSaveCell",[n.rows[e].id,u,a,e,t]),$.isFunction(n.p.afterSaveCell)&&n.p.afterSaveCell.call(n,n.rows[e].id,u,a,e,t),n.p.savedRow.splice(0,1))}else try{window.setTimeout((function(){$.jgrid.info_dialog(r.errcap,a+" "+y[1],o.bClose,{styleUI:n.p.styleUI,top:p.top+40,left:p.left})}),100),$(n).jqGrid("restoreCell",e,t)}catch(e){}}else $(n).jqGrid("restoreCell",e,t)}window.setTimeout((function(){$("#"+$.jgrid.jqID(n.p.knv)).attr("tabindex","-1").focus()}),0)}}))},restoreCell:function(e,t){return this.each((function(){var i,n=this;if(n.grid&&!0===n.p.cellEdit){if(null!==(i=n.p.savedRow.length>=1?0:null)){var r=$("td:eq("+t+")",n.rows[e]);if($.isFunction($.fn.datepicker))try{$("input.hasDatepicker",r).datepicker("hide")}catch(e){}$(r).empty().attr("tabindex","-1"),$(n).jqGrid("setCell",n.rows[e].id,t,n.p.savedRow[i].v,!1,!1,!0),$(n).triggerHandler("jqGridAfterRestoreCell",[n.rows[e].id,n.p.savedRow[i].v,e,t]),$.isFunction(n.p.afterRestoreCell)&&n.p.afterRestoreCell.call(n,n.rows[e].id,n.p.savedRow[i].v,e,t),n.p.savedRow.splice(0,1)}window.setTimeout((function(){$("#"+n.p.knv).attr("tabindex","-1").focus()}),0)}}))},nextCell:function(e,t){return this.each((function(){var i,n=this,r=!1;if(n.grid&&!0===n.p.cellEdit){for(i=t+1;i<n.p.colModel.length;i++)if(!0===n.p.colModel[i].editable&&(!$.isFunction(n.p.isCellEditable)||n.p.isCellEditable.call(n,n.p.colModel[i].name,e,i))){r=i;break}!1!==r?$(n).jqGrid("editCell",e,r,!0):n.p.savedRow.length>0&&$(n).jqGrid("saveCell",e,t)}}))},prevCell:function(e,t){return this.each((function(){var i,n=this,r=!1;if(n.grid&&!0===n.p.cellEdit){for(i=t-1;i>=0;i--)if(!0===n.p.colModel[i].editable&&(!$.isFunction(n.p.isCellEditable)||n.p.isCellEditable.call(n,n.p.colModel[i].name,e,i))){r=i;break}!1!==r?$(n).jqGrid("editCell",e,r,!0):n.p.savedRow.length>0&&$(n).jqGrid("saveCell",e,t)}}))},GridNav:function(){return this.each((function(){function e(e,t,n){if("v"===n.substr(0,1)){var r=$(i.grid.bDiv)[0].clientHeight,o=$(i.grid.bDiv)[0].scrollTop,a=i.rows[e].offsetTop+i.rows[e].clientHeight,s=i.rows[e].offsetTop;"vd"===n&&a>=r&&($(i.grid.bDiv)[0].scrollTop=$(i.grid.bDiv)[0].scrollTop+i.rows[e].clientHeight),"vu"===n&&s<o&&($(i.grid.bDiv)[0].scrollTop=$(i.grid.bDiv)[0].scrollTop-i.rows[e].clientHeight)}if("h"===n){var l=$(i.grid.bDiv)[0].clientWidth,c=$(i.grid.bDiv)[0].scrollLeft,u=i.rows[e].cells[t].offsetLeft+i.rows[e].cells[t].clientWidth,d=i.rows[e].cells[t].offsetLeft;u>=l+parseInt(c,10)?$(i.grid.bDiv)[0].scrollLeft=$(i.grid.bDiv)[0].scrollLeft+i.rows[e].cells[t].clientWidth:d<c&&($(i.grid.bDiv)[0].scrollLeft=$(i.grid.bDiv)[0].scrollLeft-i.rows[e].cells[t].clientWidth)}}function t(e,t){var n,r;if("lft"===t)for(n=e+1,r=e;r>=0;r--)if(!0!==i.p.colModel[r].hidden){n=r;break}if("rgt"===t)for(n=e-1,r=e;r<i.p.colModel.length;r++)if(!0!==i.p.colModel[r].hidden){n=r;break}return n}var i=this;if(i.grid&&!0===i.p.cellEdit){i.p.knv=i.p.id+"_kn";var n,r,o=$("<div style='position:fixed;top:0px;width:1px;height:1px;' tabindex='0'><div tabindex='-1' style='width:1px;height:1px;' id='"+i.p.knv+"'></div></div>");$(o).insertBefore(i.grid.cDiv),$("#"+i.p.knv).focus().keydown((function(o){switch(r=o.keyCode,"rtl"===i.p.direction&&(37===r?r=39:39===r&&(r=37)),r){case 38:i.p.iRow-1>0&&(e(i.p.iRow-1,i.p.iCol,"vu"),$(i).jqGrid("editCell",i.p.iRow-1,i.p.iCol,!1));break;case 40:i.p.iRow+1<=i.rows.length-1&&(e(i.p.iRow+1,i.p.iCol,"vd"),$(i).jqGrid("editCell",i.p.iRow+1,i.p.iCol,!1));break;case 37:i.p.iCol-1>=0&&(n=t(i.p.iCol-1,"lft"),e(i.p.iRow,n,"h"),$(i).jqGrid("editCell",i.p.iRow,n,!1));break;case 39:i.p.iCol+1<=i.p.colModel.length-1&&(n=t(i.p.iCol+1,"rgt"),e(i.p.iRow,n,"h"),$(i).jqGrid("editCell",i.p.iRow,n,!1));break;case 13:parseInt(i.p.iCol,10)>=0&&parseInt(i.p.iRow,10)>=0&&$(i).jqGrid("editCell",i.p.iRow,i.p.iCol,!0);break;default:return!0}return!1}))}}))},getChangedCells:function(e){var t=[];return e||(e="all"),this.each((function(){var i,n=this;n.grid&&!0===n.p.cellEdit&&$(n.rows).each((function(r){var o={};$(this).hasClass("edited")&&($("td",this).each((function(t){if("cb"!==(i=n.p.colModel[t].name)&&"subgrid"!==i)if("dirty"===e){if($(this).hasClass("dirty-cell"))try{o[i]=$.unformat.call(n,this,{rowId:n.rows[r].id,colModel:n.p.colModel[t]},t)}catch(e){o[i]=$.jgrid.htmlDecode($(this).html())}}else try{o[i]=$.unformat.call(n,this,{rowId:n.rows[r].id,colModel:n.p.colModel[t]},t)}catch(e){o[i]=$.jgrid.htmlDecode($(this).html())}})),o.id=this.id,t.push(o))}))})),t}}),$.extend($.jgrid,{showModal:function(e){e.w.show()},closeModal:function(e){e.w.hide().attr("aria-hidden","true"),e.o&&e.o.remove()},hideModal:function(e,t){var i=!(!(t=$.extend({jqm:!0,gb:"",removemodal:!1,formprop:!1,form:""},t||{})).gb||"string"!=typeof t.gb||"#gbox_"!==t.gb.substr(0,6))&&$("#"+t.gb.substr(6))[0];if(t.onClose){var n=i?t.onClose.call(i,e):t.onClose(e);if("boolean"==typeof n&&!n)return}if(t.formprop&&i&&t.form){var r,o,a=$(e)[0].style.height,s=$(e)[0].style.width;a.indexOf("px")>-1&&(a=parseFloat(a)),s.indexOf("px")>-1&&(s=parseFloat(s)),"edit"===t.form?(r="#"+$.jgrid.jqID("FrmGrid_"+t.gb.substr(6)),o="formProp"):"view"===t.form&&(r="#"+$.jgrid.jqID("ViewGrid_"+t.gb.substr(6)),o="viewProp"),$(i).data(o,{top:parseFloat($(e).css("top")),left:parseFloat($(e).css("left")),width:s,height:a,dataheight:$(r).height(),datawidth:$(r).width()})}if($.fn.jqm&&!0===t.jqm)$(e).attr("aria-hidden","true").jqmHide();else{if(""!==t.gb)try{$(".jqgrid-overlay:first",t.gb).hide()}catch(e){}$(e).hide().attr("aria-hidden","true")}t.removemodal&&$(e).remove()},findPos:function(e){var t=0,i=0;if(e.offsetParent)do{t+=e.offsetLeft,i+=e.offsetTop}while(e=e.offsetParent);return[t,i]},createModal:function(e,t,i,n,r,o,a){i=$.extend(!0,{},$.jgrid.jqModal||{},i);var s=this,l="rtl"===$(i.gbox).attr("dir"),c=$.jgrid.styleUI[i.styleUI||"EuiUI"].modal,u=$.jgrid.styleUI[i.styleUI||"EuiUI"].common,d=document.createElement("div");a=$.extend({},a||{}),d.className="ui-jqdialog "+c.modal,d.id=e.themodal;var p=document.createElement("div");p.className="ui-jqdialog-titlebar "+c.header,p.id=e.modalhead,$(p).append("<span class='ui-jqdialog-title'>"+i.caption+"</span>");var h=$("<a class='ui-jqdialog-titlebar-close "+u.cornerall+"'></a>").hover((function(){h.addClass(u.hover)}),(function(){h.removeClass(u.hover)})).append("<span class='"+u.icon_base+" "+c.icon_close+"'></span>");$(p).append(h),l?(d.dir="rtl",$(".ui-jqdialog-title",p).css("float","right"),$(".ui-jqdialog-titlebar-close",p).css("left","0.3em")):(d.dir="ltr",$(".ui-jqdialog-title",p).css("float","left"),$(".ui-jqdialog-titlebar-close",p).css("right","0.3em"));var f=document.createElement("div");$(f).addClass("ui-jqdialog-content "+c.content).attr("id",e.modalcontent),$(f).append(t),d.appendChild(f),$(d).prepend(p),!0===o?$("body").append(d):"string"==typeof o?$(o).append(d):$(d).insertBefore(n),$(d).css(a),void 0===i.jqModal&&(i.jqModal=!0);var g,m={};if($.fn.jqm&&!0===i.jqModal?(0===i.left&&0===i.top&&i.overlay&&(g=$.jgrid.findPos(r),i.left=g[0]+4,i.top=g[1]+4),m.top=i.top+"px",m.left=i.left):0===i.left&&0===i.top||(m.left=i.left,m.top=i.top+"px"),$("a.ui-jqdialog-titlebar-close",p).click((function(){var t=$("#"+$.jgrid.jqID(e.themodal)).data("onClose")||i.onClose,n=$("#"+$.jgrid.jqID(e.themodal)).data("gbox")||i.gbox;return s.hideModal("#"+$.jgrid.jqID(e.themodal),{gb:n,jqm:i.jqModal,onClose:t,removemodal:i.removemodal||!1,formprop:!i.recreateForm||!1,form:i.form||""}),!1})),0!==i.width&&i.width||(i.width=300),0!==i.height&&i.height||(i.height=200),!i.zIndex){var v=$(n).parents("*[role=dialog]").filter(":first").css("z-index");i.zIndex=v?parseInt(v,10)+2:950}var y=0;if(l&&m.left&&!o&&(y=$(i.gbox).width()-(isNaN(i.width)?0:parseInt(i.width,10))-8,m.left=parseInt(m.left,10)+parseInt(y,10)),m.left&&(m.left+="px"),$(d).css($.extend({width:isNaN(i.width)?"auto":i.width+"px",height:isNaN(i.height)?"auto":i.height+"px",zIndex:i.zIndex,overflow:"hidden"},m)).attr({tabIndex:"-1",role:"dialog","aria-labelledby":e.modalhead,"aria-hidden":"true"}),void 0===i.drag&&(i.drag=!0),void 0===i.resize&&(i.resize=!0),i.drag)if($(p).css("cursor","move"),$.fn.tinyDraggable)$(d).tinyDraggable({handle:"#"+$.jgrid.jqID(p.id)});else try{$(d).draggable({handle:$("#"+$.jgrid.jqID(p.id))})}catch(e){}if(i.resize)if($.fn.jqResize)$(d).append("<div class='jqResize "+c.resizable+" "+u.icon_base+" "+c.icon_resizable+"'></div>"),$("#"+$.jgrid.jqID(e.themodal)).jqResize(".jqResize",!!e.scrollelm&&"#"+$.jgrid.jqID(e.scrollelm));else try{$(d).resizable({handles:"se, sw",alsoResize:!!e.scrollelm&&"#"+$.jgrid.jqID(e.scrollelm)})}catch(e){}!0===i.closeOnEscape&&$(d).keydown((function(t){if(27===t.which){var n=$("#"+$.jgrid.jqID(e.themodal)).data("onClose")||i.onClose;s.hideModal("#"+$.jgrid.jqID(e.themodal),{gb:i.gbox,jqm:i.jqModal,onClose:n,removemodal:i.removemodal||!1,formprop:!i.recreateForm||!1,form:i.form||""})}}))},viewModal:function(e,t){if(void 0===(t=$.extend({toTop:!0,overlay:10,modal:!1,overlayClass:"ui-widget-overlay",onShow:$.jgrid.showModal,onHide:$.jgrid.closeModal,gbox:"",jqm:!0,jqM:!0},t||{})).focusField&&(t.focusField=0),"number"==typeof t.focusField&&t.focusField>=0?t.focusField=parseInt(t.focusField,10):"boolean"!=typeof t.focusField||t.focusField?t.focusField=0:t.focusField=!1,$.fn.jqm&&!0===t.jqm)t.jqM?$(e).attr("aria-hidden","false").jqm(t).jqmShow():$(e).attr("aria-hidden","false").jqmShow();else if(""!==t.gbox&&($(".jqgrid-overlay:first",t.gbox).show(),$(e).data("gbox",t.gbox)),$(e).show().attr("aria-hidden","false"),t.focusField>=0)try{$(":input:visible",e)[parseInt(t.focusField,10)].focus()}catch(e){}},info_dialog:function(e,t,i,n){var r={width:290,height:"auto",dataheight:"auto",drag:!0,resize:!1,left:250,top:170,zIndex:1e3,jqModal:!0,modal:!1,closeOnEscape:!0,align:"center",buttonalign:"center",buttons:[]};$.extend(!0,r,$.jgrid.jqModal||{},{caption:"<b>"+e+"</b>"},n||{});var o=r.jqModal,a=this,s=$.jgrid.styleUI[r.styleUI||"EuiUI"].modal,l=$.jgrid.styleUI[r.styleUI||"EuiUI"].common;$.fn.jqm&&!o&&(o=!1);var c,u="";if(r.buttons.length>0)for(c=0;c<r.buttons.length;c++)void 0===r.buttons[c].id&&(r.buttons[c].id="info_button_"+c),u+="<a id='"+r.buttons[c].id+"' class='fm-button "+l.button+"'>"+r.buttons[c].text+"</a>";var d="<div id='info_id'>";d+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+(isNaN(r.dataheight)?r.dataheight:r.dataheight+"px")+";text-align:"+r.align+";'>"+t+"</div>",d+=i?"<div class='"+s.content+"' style='text-align:"+r.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'><a id='closedialog' class='fm-button "+l.button+"'>"+i+"</a>"+u+"</div>":""!==u?"<div class='"+s.content+"' style='text-align:"+r.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'>"+u+"</div>":"",d+="</div>";try{"false"===$("#info_dialog").attr("aria-hidden")&&$.jgrid.hideModal("#info_dialog",{jqm:o}),$("#info_dialog").remove()}catch(e){}$.jgrid.createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",scrollelm:"infocnt"},d,r,"","",!0),u&&$.each(r.buttons,(function(e){$("#"+$.jgrid.jqID(this.id),"#info_id").on("click",(function(){return r.buttons[e].onClick.call($("#info_dialog")),!1}))})),$("#closedialog","#info_id").on("click",(function(){return a.hideModal("#info_dialog",{jqm:o,onClose:$("#info_dialog").data("onClose")||r.onClose,gb:$("#info_dialog").data("gbox")||r.gbox}),!1})),$(".fm-button","#info_dialog").hover((function(){$(this).addClass(l.hover)}),(function(){$(this).removeClass(l.hover)})),$.isFunction(r.beforeOpen)&&r.beforeOpen(),$.jgrid.viewModal("#info_dialog",{onHide:function(e){e.w.hide().remove(),e.o&&e.o.remove()},modal:r.modal,jqm:o}),$.isFunction(r.afterOpen)&&r.afterOpen();try{$("#info_dialog").focus()}catch(e){}},bindEv:function(e,t){$.isFunction(t.dataInit)&&t.dataInit.call(this,e,t),t.dataEvents&&$.each(t.dataEvents,(function(){void 0!==this.data?$(e).on(this.type,this.data,this.fn):$(e).on(this.type,this.fn)}))},createEl:function(e,t,i,n,r){function o(e,t,i){var n=["dataInit","dataEvents","dataUrl","buildSelect","sopt","searchhidden","defaultValue","attr","custom_element","custom_value","oper"];void 0!==i&&$.isArray(i)&&$.merge(n,i),$.each(t,(function(t,i){-1===$.inArray(t,n)&&$(e).attr(t,i)})),t.hasOwnProperty("id")||$(e).attr("id",$.jgrid.randId())}var a="",s=this;switch(e){case"textarea":a=document.createElement("textarea"),n?t.cols||$(a).css({width:"98%"}):t.cols||(t.cols=20),t.rows||(t.rows=2),(" "===i||" "===i||1===i.length&&160===i.charCodeAt(0))&&(i=""),a.value=i,o(a,t),$(a).attr({role:"textbox",multiline:"true"});break;case"checkbox":if((a=document.createElement("input")).type="checkbox",t.value){var l=t.value.split(":");i===l[0]&&(a.checked=!0,a.defaultChecked=!0),a.value=l[0],$(a).attr("offval",l[1])}else{var c=(i+"").toLowerCase();c.search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==c?(a.checked=!0,a.defaultChecked=!0,a.value=i):a.value="on",$(a).attr("offval","off")}o(a,t,["value"]),$(a).attr("role","checkbox");break;case"select":(a=document.createElement("select")).setAttribute("role","select");var u,d=[];if(!0===t.multiple?(u=!0,a.multiple="multiple",$(a).attr("aria-multiselectable","true")):u=!1,null!=t.dataUrl){var p=null,h=t.postData||r.postData;try{p=t.rowId}catch(e){}s.p&&s.p.idPrefix&&(p=$.jgrid.stripPref(s.p.idPrefix,p)),$.postToRemote($.extend({url:$.isFunction(t.dataUrl)?t.dataUrl.call(s,p,i,String(t.name)):t.dataUrl,type:"GET",dataType:"html",data:$.isFunction(h)?h.call(s,p,i,String(t.name)):h,context:{elem:a,options:t,vl:i},success:function(e){var t,i=[],n=this.elem,r=this.vl,a=$.extend({},this.options),l=!0===a.multiple,c=!0===a.cacheUrlData,u="",d=$.isFunction(a.buildSelect)?a.buildSelect.call(s,e):e;if("string"==typeof d&&(d=$($.trim(d)).html()),d){if($(n).append(d),o(n,a,h?["postData"]:void 0),void 0===a.size&&(a.size=l?3:1),l?(i=r.split(","),i=$.map(i,(function(e){return $.trim(e)}))):i[0]=$.trim(r),$("option",n).each((function(e){t=$(this).text(),r=$(this).val()||t,c&&(u+=(0!==e?";":"")+r+":"+t),0===e&&n.multiple&&(this.selected=!1),$(this).attr("role","option"),($.inArray($.trim(t),i)>-1||$.inArray($.trim(r),i)>-1)&&(this.selected="selected")})),c)if("edit"===a.oper)$(s).jqGrid("setColProp",a.name,{editoptions:{buildSelect:null,dataUrl:null,value:u}});else if("search"===a.oper)$(s).jqGrid("setColProp",a.name,{searchoptions:{dataUrl:null,value:u}});else if("filter"===a.oper&&$("#fbox_"+s.p.id)[0].p){var p,f=$("#fbox_"+s.p.id)[0].p.columns;$.each(f,(function(e){if(p=this.index||this.name,a.name===p)return this.searchoptions.dataUrl=null,this.searchoptions.value=u,!1}))}$(s).triggerHandler("jqGridAddEditAfterSelectUrlComplete",[n])}}},r||{}))}else if(t.value){var f;void 0===t.size&&(t.size=u?3:1),u&&(d=i.split(","),d=$.map(d,(function(e){return $.trim(e)}))),"function"==typeof t.value&&(t.value=t.value());var g,m,v,y,b,w,_=void 0===t.separator?":":t.separator,x=void 0===t.delimiter?";":t.delimiter;if("string"==typeof t.value)for(g=t.value.split(x),f=0;f<g.length;f++)(m=g[f].split(_)).length>2&&(m[1]=$.map(m,(function(e,t){if(t>0)return e})).join(_)),(v=document.createElement("option")).setAttribute("role","option"),v.value=m[0],v.innerHTML=m[1],a.appendChild(v),u||$.trim(m[0])!==$.trim(i)&&$.trim(m[1])!==$.trim(i)||(v.selected="selected"),u&&($.inArray($.trim(m[1]),d)>-1||$.inArray($.trim(m[0]),d)>-1)&&(v.selected="selected");else if("[object Array]"===Object.prototype.toString.call(t.value))for(y=t.value,f=0;f<y.length;f++)2===y[f].length&&(b=y[f][0],w=y[f][1],(v=document.createElement("option")).setAttribute("role","option"),v.value=b,v.innerHTML=w,a.appendChild(v),u||$.trim(b)!==$.trim(i)&&$.trim(w)!==$.trim(i)||(v.selected="selected"),u&&($.inArray($.trim(w),d)>-1||$.inArray($.trim(b),d)>-1)&&(v.selected="selected"));else if("object"==typeof t.value)for(b in y=t.value)y.hasOwnProperty(b)&&((v=document.createElement("option")).setAttribute("role","option"),v.value=b,v.innerHTML=y[b],a.appendChild(v),u||$.trim(b)!==$.trim(i)&&$.trim(y[b])!==$.trim(i)||(v.selected="selected"),u&&($.inArray($.trim(y[b]),d)>-1||$.inArray($.trim(b),d)>-1)&&(v.selected="selected"));o(a,t,["value"])}break;case"image":case"file":(a=document.createElement("input")).type=e,o(a,t);break;case"custom":a=document.createElement("span");try{if(!$.isFunction(t.custom_element))throw"e1";var C=t.custom_element.call(s,i,t);if(!C)throw"e2";C=$(C).addClass("customelement").attr({id:t.id,name:t.name}),$(a).empty().append(C)}catch(e){var k=$.jgrid.getRegional(s,"errors"),S=$.jgrid.getRegional(s,"edit");"e1"===e?$.jgrid.info_dialog(k.errcap,"function 'custom_element' "+S.msg.nodefined,S.bClose,{styleUI:s.p.styleUI}):"e2"===e?$.jgrid.info_dialog(k.errcap,"function 'custom_element' "+S.msg.novalue,S.bClose,{styleUI:s.p.styleUI}):$.jgrid.info_dialog(k.errcap,"string"==typeof e?e:e.message,S.bClose,{styleUI:s.p.styleUI})}break;default:var E;E="button"===e?"button":"textbox",(a=document.createElement("input")).type=e,a.value=i,o(a,t),"button"!==e&&(n?t.size||$(a).css({width:"96%"}):t.size||(t.size=20)),$(a).attr("role",E)}return a},checkDate:function(e,t){var i,n={};if(i=-1!==(e=e.toLowerCase()).indexOf("/")?"/":-1!==e.indexOf("-")?"-":-1!==e.indexOf(".")?".":"/",e=e.split(i),3!==(t=t.split(i)).length)return!1;var r,o,a,s=-1,l=-1,c=-1;for(o=0;o<e.length;o++){var u=isNaN(t[o])?0:parseInt(t[o],10);n[e[o]]=u,-1!==(r=e[o]).indexOf("y")&&(s=o),-1!==r.indexOf("m")&&(c=o),-1!==r.indexOf("d")&&(l=o)}return r="y"===e[s]||"yyyy"===e[s]?4:"yy"===e[s]?2:-1,-1!==s&&(a=n[e[s]].toString(),2===r&&1===a.length&&(r=1),!(a.length!==r||0===n[e[s]]&&"00"!==t[s]||-1===c||(a=n[e[c]].toString(),a.length<1||n[e[c]]<1||n[e[c]]>12||-1===l||(a=n[e[l]].toString(),a.length<1||n[e[l]]<1||n[e[l]]>31||2===n[e[c]]&&n[e[l]]>function(e){return e%4!=0||e%100==0&&e%400!=0?28:29}(n[e[s]])||n[e[l]]>[0,31,29,31,30,31,30,31,31,30,31,30,31][n[e[c]]]))))},isEmpty:function(e){return!(!e.match(/^\s+$/)&&""!==e)},checkTime:function(e){var t;if(!$.jgrid.isEmpty(e)){if(!(t=e.match(/^(\d{1,2}):(\d{2})([apAP][Mm])?$/)))return!1;if(t[3]){if(t[1]<1||t[1]>12)return!1}else if(t[1]>23)return!1;if(t[2]>59)return!1}return!0},checkValues:function(e,t,i,n){var r,o,a,s,l,c,u=this,d=u.p.colModel,p=$.jgrid.getRegional(this,"edit.msg");if(void 0===i)if("string"==typeof t){for(o=0,l=d.length;o<l;o++)if(d[o].name===t){r=d[o].editrules,t=o,null!=d[o].formoptions&&(a=d[o].formoptions.label);break}}else t>=0&&(r=d[t].editrules);else r=i,a=void 0===n?"_":n;if(r){if(a||(a=null!=u.p.colNames?u.p.colNames[t]:d[t].label),!0===r.required&&$.jgrid.isEmpty(e))return[!1,a+": "+p.required,""];var h,f=!1!==r.required;if(!0===r.number&&(!1!==f||!$.jgrid.isEmpty(e))&&isNaN(e))return[!1,a+": "+p.number,""];if(void 0!==r.minValue&&!isNaN(r.minValue)&&parseFloat(e)<parseFloat(r.minValue))return[!1,a+": "+p.minValue+" "+r.minValue,""];if(void 0!==r.maxValue&&!isNaN(r.maxValue)&&parseFloat(e)>parseFloat(r.maxValue))return[!1,a+": "+p.maxValue+" "+r.maxValue,""];if(!0===r.email&&!(!1===f&&$.jgrid.isEmpty(e)||(h=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,h.test(e))))return[!1,a+": "+p.email,""];if(!0===r.integer&&(!1!==f||!$.jgrid.isEmpty(e))){if(isNaN(e))return[!1,a+": "+p.integer,""];if(e%1!=0||-1!==e.indexOf("."))return[!1,a+": "+p.integer,""]}if(!0===r.date&&!(!1===f&&$.jgrid.isEmpty(e)||(d[t].formatoptions&&d[t].formatoptions.newformat?(s=d[t].formatoptions.newformat,c=$.jgrid.getRegional(u,"formatter.date.masks"),c&&c.hasOwnProperty(s)&&(s=c[s])):s=d[t].datefmt||"Y-m-d",$.jgrid.checkDate(s,e))))return[!1,a+": "+p.date+" - "+s,""];if(!0===r.time&&!(!1===f&&$.jgrid.isEmpty(e)||$.jgrid.checkTime(e)))return[!1,a+": "+p.date+" - hh:mm (am/pm)",""];if(!0===r.url&&!(!1===f&&$.jgrid.isEmpty(e)||(h=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i,h.test(e))))return[!1,a+": "+p.url,""];if(!0===r.custom&&(!1!==f||!$.jgrid.isEmpty(e))){if($.isFunction(r.custom_func)){var g=r.custom_func.call(u,e,a,t);return $.isArray(g)?g:[!1,p.customarray,""]}return[!1,p.customfcheck,""]}}return[!0,"",""]}}),$.fn.jqFilter=function(e){if("string"==typeof e){var t=$.fn.jqFilter[e];if(!t)throw"jqFilter - No such method: "+e;var i=$.makeArray(arguments).slice(1);return t.apply(this,i)}var n=$.extend(!0,{filter:null,columns:[],sortStrategy:null,onChange:null,afterRedraw:null,checkValues:null,error:!1,errmsg:"",errorcheck:!0,showQuery:!0,sopt:null,ops:[],operands:null,numopts:["eq","ne","lt","le","gt","ge","nu","nn","in","ni"],stropts:["eq","ne","bw","bn","ew","en","cn","nc","nu","nn","in","ni"],strarr:["text","string","blob"],groupOps:[{op:"AND",text:"AND"},{op:"OR",text:"OR"}],groupButton:!0,ruleButtons:!0,uniqueSearchFields:!1,direction:"ltr"},$.jgrid.filter,e||{});return this.each((function(){if(!this.filter){this.p=n,null!==this.p.filter&&void 0!==this.p.filter||(this.p.filter={groupOp:this.p.groupOps[0].op,rules:[],groups:[]}),null!=this.p.sortStrategy&&$.isFunction(this.p.sortStrategy)&&this.p.columns.sort(this.p.sortStrategy);var e,t,i=this.p.columns.length,r=/msie/i.test(navigator.userAgent)&&!window.opera;if(this.p.initFilter=$.extend(!0,{},this.p.filter),i){for(e=0;e<i;e++)(t=this.p.columns[e]).stype?t.inputtype=t.stype:t.inputtype||(t.inputtype="text"),t.sorttype?t.searchtype=t.sorttype:t.searchtype||(t.searchtype="string"),void 0===t.hidden&&(t.hidden=!1),t.label||(t.label=t.name),t.index&&(t.name=t.index),t.hasOwnProperty("searchoptions")||(t.searchoptions={}),t.hasOwnProperty("searchrules")||(t.searchrules={}),void 0===t.search?t.inlist=!0:t.inlist=t.search;var o=function(){return $("#"+$.jgrid.jqID(n.id))[0]||null},a=o(),s=$.jgrid.styleUI[a.p.styleUI||"EuiUI"].filter,l=$.jgrid.styleUI[a.p.styleUI||"EuiUI"].common;this.p.showQuery&&$(this).append("<table class='queryresult "+s.table_widget+"' style='display:block;max-width:440px;border:0px none;' dir='"+this.p.direction+"'><tbody><tr><td class='query'></td></tr></tbody></table>");var c=function(e,t){var i=[!0,""],r=o();if($.isFunction(t.searchrules))i=t.searchrules.call(r,e,t);else if($.jgrid&&$.jgrid.checkValues)try{i=$.jgrid.checkValues.call(r,e,-1,t.searchrules,t.label)}catch(e){}i&&i.length&&!1===i[0]&&(n.error=!i[0],n.errmsg=i[1])};this.onchange=function(){return this.p.error=!1,this.p.errmsg="",!!$.isFunction(this.p.onChange)&&this.p.onChange.call(this,this.p)},this.reDraw=function(){$("table.group:first",this).remove();var e=this.createTableForGroup(n.filter,null);$(this).append(e),$.isFunction(this.p.afterRedraw)&&this.p.afterRedraw.call(this,this.p)},this.createTableForGroup=function(e,t){var i,r=this,o=$("<table class='group "+s.table_widget+" ui-search-table' style='border:0px none;'><tbody></tbody></table>"),a="left";"rtl"===this.p.direction&&(a="right",o.attr("dir","rtl")),null===t&&o.append("<tr class='error' style='display:none;'><th colspan='5' class='"+l.error+"' align='"+a+"'></th></tr>");var c=$("<tr></tr>");o.append(c);var u=$("<th colspan='5' align='"+a+"'></th>");if(c.append(u),!0===this.p.ruleButtons){var d=$("<select class='opsel "+s.srSelect+"'></select>");u.append(d);var p,h="";for(i=0;i<n.groupOps.length;i++)p=e.groupOp===r.p.groupOps[i].op?" selected='selected'":"",h+="<option value='"+r.p.groupOps[i].op+"'"+p+">"+r.p.groupOps[i].text+"</option>";d.append(h).on("change",(function(){e.groupOp=$(d).val(),r.onchange()}))}var f="<span></span>";if(this.p.groupButton&&(f=$("<input type='button' value='+ {}' title='Add subgroup' class='add-group "+l.button+"'/>")).on("click",(function(){return void 0===e.groups&&(e.groups=[]),e.groups.push({groupOp:n.groupOps[0].op,rules:[],groups:[]}),r.reDraw(),r.onchange(),!1})),u.append(f),!0===this.p.ruleButtons){var g,m=$("<input type='button' value='+' title='Add rule' class='add-rule ui-add "+l.button+"'/>");m.on("click",(function(){for(void 0===e.rules&&(e.rules=[]),i=0;i<r.p.columns.length;i++){var t=void 0===r.p.columns[i].search||r.p.columns[i].search,n=!0===r.p.columns[i].hidden;if(!0===r.p.columns[i].searchoptions.searchhidden&&t||t&&!n){g=r.p.columns[i];break}}return!!g&&(o=g.searchoptions.sopt?g.searchoptions.sopt:r.p.sopt?r.p.sopt:-1!==$.inArray(g.searchtype,r.p.strarr)?r.p.stropts:r.p.numopts,e.rules.push({field:g.name,op:o[0],data:""}),r.reDraw(),!1);var o})),u.append(m)}if(null!==t){var v=$("<input type='button' value='-' title='Delete group' class='delete-group "+l.button+"'/>");u.append(v),v.on("click",(function(){for(i=0;i<t.groups.length;i++)if(t.groups[i]===e){t.groups.splice(i,1);break}return r.reDraw(),r.onchange(),!1}))}if(void 0!==e.groups)for(i=0;i<e.groups.length;i++){var y=$("<tr></tr>");o.append(y);var b=$("<td class='first'></td>");y.append(b);var w=$("<td colspan='4'></td>");w.append(this.createTableForGroup(e.groups[i],e)),y.append(w)}void 0===e.groupOp&&(e.groupOp=r.p.groupOps[0].op);var _=r.p.ruleButtons&&r.p.uniqueSearchFields;if(_)for(var x=0;x<r.p.columns.length;x++)r.p.columns[x].inlist&&(r.p.columns[x].search=!0);if(void 0!==e.rules)for(i=0;i<e.rules.length;i++)if(o.append(this.createTableRowForRule(e.rules[i],e)),_){var C=e.rules[i].field;for(x=0;x<r.p.columns.length;x++)if(C===r.p.columns[x].name){r.p.columns[x].search=!1;break}}return o},this.createTableRowForRule=function(e,t){var i,a,c,u,d,p=this,h=o(),f=$("<tr></tr>"),g="";f.append("<td class='first'></td>");var m=$("<td class='columns'></td>");f.append(m);var v,y=$("<select class='"+s.srSelect+"'></select>"),b=[];m.append(y),y.on("change",(function(){if(p.p.ruleButtons&&p.p.uniqueSearchFields){var t=parseInt($(this).data("curr"),10),n=this.selectedIndex;t>=0&&(p.p.columns[t].search=!0,$(this).data("curr",n),p.p.columns[n].search=!1)}for(e.field=$(y).val(),c=$(this).parents("tr:first"),$(".data",c).empty(),i=0;i<p.p.columns.length;i++)if(p.p.columns[i].name===e.field){u=p.p.columns[i];break}if(u){u.searchoptions.id=$.jgrid.randId(),u.searchoptions.name=e.field,u.searchoptions.oper="filter",r&&"text"===u.inputtype&&(u.searchoptions.size||(u.searchoptions.size=10));var o=$.jgrid.createEl.call(h,u.inputtype,u.searchoptions,"",!0,p.p.ajaxSelectOptions||{},!0);$(o).addClass("input-elm "+s.srInput),a=u.searchoptions.sopt?u.searchoptions.sopt:p.p.sopt?p.p.sopt:-1!==$.inArray(u.searchtype,p.p.strarr)?p.p.stropts:p.p.numopts;var l="",d=0;for(b=[],$.each(p.p.ops,(function(){b.push(this.oper)})),i=0;i<a.length;i++)-1!==(v=$.inArray(a[i],b))&&(0===d&&(e.op=p.p.ops[v].oper),l+="<option value='"+p.p.ops[v].oper+"'>"+p.p.ops[v].text+"</option>",d++);if($(".selectopts",c).empty().append(l),$(".selectopts",c)[0].selectedIndex=0,$.jgrid.msie()&&$.jgrid.msiever()<9){var f=parseInt($("select.selectopts",c)[0].offsetWidth,10)+1;$(".selectopts",c).width(f),$(".selectopts",c).css("width","auto")}$(".data",c).append(o),$.jgrid.bindEv.call(h,o,u.searchoptions),$(".input-elm",c).on("change",(function(t){var i=t.target;e.data="SPAN"===i.nodeName.toUpperCase()&&u.searchoptions&&$.isFunction(u.searchoptions.custom_value)?u.searchoptions.custom_value.call(h,$(i).children(".customelement:first"),"get"):i.value,p.onchange()})),setTimeout((function(){e.data=$(o).val(),p.onchange()}),0)}}));var w=0;for(i=0;i<p.p.columns.length;i++){var _=void 0===p.p.columns[i].search||p.p.columns[i].search,x=!0===p.p.columns[i].hidden;(!0===p.p.columns[i].searchoptions.searchhidden&&_||_&&!x)&&(d="",e.field===p.p.columns[i].name&&(d=" selected='selected'",w=i),g+="<option value='"+p.p.columns[i].name+"'"+d+">"+p.p.columns[i].label+"</option>")}y.append(g),y.data("curr",w);var C=$("<td class='operators'></td>");f.append(C),(u=n.columns[w]).searchoptions.id=$.jgrid.randId(),r&&"text"===u.inputtype&&(u.searchoptions.size||(u.searchoptions.size=10)),u.searchoptions.name=e.field,u.searchoptions.oper="filter";var k=$.jgrid.createEl.call(h,u.inputtype,u.searchoptions,e.data,!0,p.p.ajaxSelectOptions||{},!0);"nu"!==e.op&&"nn"!==e.op||($(k).attr("readonly","true"),$(k).attr("disabled","true"));var S=$("<select class='selectopts "+s.srSelect+"'></select>");for(C.append(S),S.on("change",(function(){e.op=$(S).val(),c=$(this).parents("tr:first");var t=$(".input-elm",c)[0];"nu"===e.op||"nn"===e.op?(e.data="","SELECT"!==t.tagName.toUpperCase()&&(t.value=""),t.setAttribute("readonly","true"),t.setAttribute("disabled","true")):("SELECT"===t.tagName.toUpperCase()&&(e.data=t.value),t.removeAttribute("readonly"),t.removeAttribute("disabled")),p.onchange()})),a=u.searchoptions.sopt?u.searchoptions.sopt:p.p.sopt?p.p.sopt:-1!==$.inArray(u.searchtype,p.p.strarr)?p.p.stropts:p.p.numopts,g="",$.each(p.p.ops,(function(){b.push(this.oper)})),i=0;i<a.length;i++)-1!==(v=$.inArray(a[i],b))&&(d=e.op===p.p.ops[v].oper?" selected='selected'":"",g+="<option value='"+p.p.ops[v].oper+"'"+d+">"+p.p.ops[v].text+"</option>");S.append(g);var E=$("<td class='data'></td>");f.append(E),E.append(k),$.jgrid.bindEv.call(h,k,u.searchoptions),$(k).addClass("input-elm "+s.srInput).on("change",(function(){e.data="custom"===u.inputtype?u.searchoptions.custom_value.call(h,$(this).children(".customelement:first"),"get"):$(this).val(),p.onchange()}));var j=$("<td></td>");if(f.append(j),!0===this.p.ruleButtons){var D=$("<input type='button' value='-' title='Delete rule' class='delete-rule ui-del "+l.button+"'/>");j.append(D),D.on("click",(function(){for(i=0;i<t.rules.length;i++)if(t.rules[i]===e){t.rules.splice(i,1);break}return p.reDraw(),p.onchange(),!1}))}return f},this.getStringForGroup=function(e){var t,i="(";if(void 0!==e.groups)for(t=0;t<e.groups.length;t++){i.length>1&&(i+=" "+e.groupOp+" ");try{i+=this.getStringForGroup(e.groups[t])}catch(e){$.log("errof",e)}}if(void 0!==e.rules)try{for(t=0;t<e.rules.length;t++)i.length>1&&(i+=" "+e.groupOp+" "),i+=this.getStringForRule(e.rules[t])}catch(e){$.log("error",e)}return"()"==(i+=")")?"":i},this.getStringForRule=function(e){var t,i,r,o="",a="";for(t=0;t<this.p.ops.length;t++)if(this.p.ops[t].oper===e.op){o=this.p.operands.hasOwnProperty(e.op)?this.p.operands[e.op]:"",a=this.p.ops[t].oper;break}for(t=0;t<this.p.columns.length;t++)if(this.p.columns[t].name===e.field){i=this.p.columns[t];break}return void 0===i?"":(r=e.data,"bw"!==a&&"bn"!==a||(r+="%"),"ew"!==a&&"en"!==a||(r="%"+r),"cn"!==a&&"nc"!==a||(r="%"+r+"%"),"in"!==a&&"ni"!==a||(r=" ("+r+")"),n.errorcheck&&c(e.data,i),-1!==$.inArray(i.searchtype,["int","integer","float","number","currency"])||"nn"===a||"nu"===a?e.field+" "+o+" "+r:e.field+" "+o+' "'+r+'"')},this.resetFilter=function(){this.p.filter=$.extend(!0,{},this.p.initFilter),this.reDraw(),this.onchange()},this.hideError=function(){$("th."+l.error,this).html(""),$("tr.error",this).hide()},this.showError=function(){$("th."+l.error,this).html(this.p.errmsg),$("tr.error",this).show()},this.toUserFriendlyString=function(){return this.getStringForGroup(n.filter)},this.toString=function(){function e(e){if(t.p.errorcheck){var i,n;for(i=0;i<t.p.columns.length;i++)if(t.p.columns[i].name===e.field){n=t.p.columns[i];break}n&&c(e.data,n)}return e.op+"(item."+e.field+",'"+e.data+"')"}var t=this;return function t(i){var n,r="(";if(void 0!==i.groups)for(n=0;n<i.groups.length;n++)r.length>1&&(r+="OR"===i.groupOp?" || ":" && "),r+=t(i.groups[n]);if(void 0!==i.rules)for(n=0;n<i.rules.length;n++)r.length>1&&(r+="OR"===i.groupOp?" || ":" && "),r+=e(i.rules[n]);return"()"==(r+=")")?"":r}(this.p.filter)},this.reDraw(),this.p.showQuery&&this.onchange(),this.filter=!0}}}))},$.extend($.fn.jqFilter,{toSQLString:function(){var e="";return this.each((function(){e=this.toUserFriendlyString()})),e},filterData:function(){var e;return this.each((function(){e=this.p.filter})),e},getParameter:function(e){return void 0!==e&&this.p.hasOwnProperty(e)?this.p[e]:this.p},resetFilter:function(){return this.each((function(){this.resetFilter()}))},addFilter:function(e){"string"==typeof e&&(e=$.jgrid.parse(e)),this.each((function(){this.p.filter=e,this.reDraw(),this.onchange()}))}}),$.jgrid.extend({filterToolbar:function(e){var t=$.jgrid.getRegional(this[0],"search");return e=$.extend({autosearch:!0,autosearchDelay:500,searchOnEnter:!0,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,onClearSearchValue:null,searchurl:"",stringResult:!1,groupOp:"AND",defaultSearch:"bw",searchOperators:!1,resetIcon:"x",splitSelect:",",groupOpSelect:"OR",operands:{eq:"==",ne:"!",lt:"<",le:"<=",gt:">",ge:">=",bw:"^",bn:"!^",in:"=",ni:"!=",ew:"|",en:"!@",cn:"~",nc:"!~",nu:"#",nn:"!#",bt:"..."}},t,e||{}),this.each((function(){var i=this;if(!i.p.filterToolbar){$(i).data("filterToolbar")||$(i).data("filterToolbar",e),i.p.force_regional&&(e=$.extend(e,t));var n,r,o,a=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].filter,s=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].common,l=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].base,c=function(){var t,n,r,o,a={},s=0,l={},c=!1,u=[],d=!1;$.each(i.p.colModel,(function(){var p=$("#gs_"+i.p.idPrefix+$.jgrid.jqID(this.name),!0===this.frozen&&!0===i.p.frozenColumns?i.grid.fhDiv:i.grid.hDiv);if(n=this.index||this.name,o=this.searchoptions||{},r=e.searchOperators&&o.searchOperMenu?p.parent().prev().children("a").attr("soper")||e.defaultSearch:o.sopt?o.sopt[0]:"select"===this.stype?"eq":e.defaultSearch,(t="custom"===this.stype&&$.isFunction(o.custom_value)&&p.length>0&&"SPAN"===p[0].nodeName.toUpperCase()?o.custom_value.call(i,p.children(".customelement:first"),"get"):p.val())&&(t=t.trim()),"select"===this.stype&&o.multiple&&$.isArray(t)&&t.length&&(c=!0,u.push(n),t=1===t.length?t[0]:t),"bt"===r&&(d=!0),t||"nu"===r||"nn"===r)a[n]=t,l[n]=r,s++;else try{delete i.p.postData[n]}catch(e){}}));var p,h=s>0;if(!0===e.stringResult||"local"===i.p.datatype||!0===e.searchOperators){var f,g,m,v,y,b,w='{"groupOp":"'+e.groupOp+'","rules":[',_=0;if($.each(a,(function(e,t){_>0&&(w+=","),w+='{"field":"'+e+'",',w+='"op":"'+l[e]+'",',w+='"data":"'+(t+="").replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',_++})),w+="]}",c&&(f=$.jgrid.parse(w)).rules&&f.rules.length)for(g=f.rules,m=0;m<g.length;m++)v=g[m],$.inArray(v.filed,u)&&(y=v.data.split(e.splitSelect)).length>1&&(void 0===f.groups&&(f.groups=[]),b={groupOp:e.groupOpSelect,groups:[],rules:[]},f.groups.push(b),$.each(y,(function(e){y[e]&&b.rules.push({data:y[e],op:v.op,field:v.field})})),g.splice(m,1),m--);if(d&&($.isPlainObject(f)||(f=$.jgrid.parse(w)),f.rules&&f.rules.length))for(g=f.rules,m=0;m<g.length;m++)"bt"===(v=g[m]).op&&(y=v.data.split("...")).length>1&&(void 0===f.groups&&(f.groups=[]),b={groupOp:"AND",groups:[],rules:[]},f.groups.push(b),$.each(y,(function(e){var t=0===e?"ge":"le";y[e]&&b.rules.push({data:y[e],op:t,field:v.field})})),g.splice(m,1),m--);(d||c)&&(w=JSON.stringify(f)),$.extend(i.p.postData,{filters:w}),$.each(["searchField","searchString","searchOper"],(function(e,t){i.p.postData.hasOwnProperty(t)&&delete i.p.postData[t]}))}else $.extend(i.p.postData,a);i.p.searchurl&&(p=i.p.url,$(i).jqGrid("setGridParam",{url:i.p.searchurl}));var x="stop"===$(i).triggerHandler("jqGridToolbarBeforeSearch");!x&&$.isFunction(e.beforeSearch)&&(x=e.beforeSearch.call(i)),x||$(i).jqGrid("setGridParam",{search:h}).trigger("reloadGrid",[{page:1}]),p&&$(i).jqGrid("setGridParam",{url:p}),$(i).triggerHandler("jqGridToolbarAfterSearch"),$.isFunction(e.afterSearch)&&e.afterSearch.call(i)},u=function(t,n,r){$("#sopt_menu").remove(),n=parseInt(n,10),r=parseInt(r,10)+18;for(var o,l='<ul id="sopt_menu" class="ui-search-menu modal-content" role="menu" tabindex="0" style="font-size:'+($(".ui-jqgrid-view").css("font-size")||"11px")+";left:"+n+"px;top:"+r+'px;">',u=$(t).attr("soper"),d=[],p=0,h=$(t).attr("colname"),f=i.p.colModel.length;p<f&&i.p.colModel[p].name!==h;)p++;var g=i.p.colModel[p],m=$.extend({},g.searchoptions);for(m.sopt||(m.sopt=[],m.sopt[0]="select"===g.stype?"eq":e.defaultSearch),$.each(e.odata,(function(){d.push(this.oper)})),p=0;p<m.sopt.length;p++)-1!==(o=$.inArray(m.sopt[p],d))&&(l+='<li class="ui-menu-item '+(u===e.odata[o].oper?s.highlight:"")+'" role="presentation"><a class="'+s.cornerall+' g-menu-item" tabindex="0" role="menuitem" value="'+e.odata[o].oper+'" oper="'+e.operands[e.odata[o].oper]+'"><table class="ui-common-table"><tr><td width="25px">'+e.operands[e.odata[o].oper]+"</td><td>"+e.odata[o].text+"</td></tr></table></a></li>");l+="</ul>",$("body").append(l),$("#sopt_menu").addClass("ui-menu "+a.menu_widget),$("#sopt_menu > li > a").hover((function(){$(this).addClass(s.hover)}),(function(){$(this).removeClass(s.hover)})).click((function(){var n=$(this).attr("value"),r=$(this).attr("oper");if($(i).triggerHandler("jqGridToolbarSelectOper",[n,r,t]),$("#sopt_menu").hide(),$(t).text(r).attr("soper",n),!0===e.autosearch){var o=$(t).parent().next().children()[0];($(o).val()||"nu"===n||"nn"===n)&&c()}}))},d=$("<tr class='ui-search-toolbar' role='row'></tr>");e.restoreFromFilters&&(o=i.p.postData.filters)&&("string"==typeof o&&(o=$.jgrid.parse(o)),r=!!o.rules.length&&o.rules),$.each(i.p.colModel,(function(t){var o,s,u,p,h,f,g,m,v=this,y="",b="=",w=$("<th role='columnheader' class='"+l.headerBox+" ui-th-"+i.p.direction+"' id='gsh_"+i.p.id+"_"+v.name+"' ></th>"),_=$("<div></div>"),x=$("<table class='ui-search-table' cellspacing='0'><tr><td class='ui-search-oper' headers=''></td><td class='ui-search-input' headers=''></td><td class='ui-search-clear' headers=''></td></tr></table>");if(!0===this.hidden&&$(w).css("display","none"),this.search=!1!==this.search,void 0===this.stype&&(this.stype="text"),this.searchoptions=this.searchoptions||{},void 0===this.searchoptions.searchOperMenu&&(this.searchoptions.searchOperMenu=!0),o=$.extend({},this.searchoptions,{name:v.index||v.name,id:"gs_"+i.p.idPrefix+v.name,oper:"search"}),this.search){if(e.restoreFromFilters&&r){m=!1;for(var C=0;C<r.length;C++)if(r[C].field&&(v.index||v.name)===r[C].field){m=r[C];break}}if(e.searchOperators){for(s=o.sopt?o.sopt[0]:"select"===v.stype?"eq":e.defaultSearch,e.restoreFromFilters&&m&&(s=m.op),u=0;u<e.odata.length;u++)if(e.odata[u].oper===s){b=e.operands[s]||"";break}p=null!=o.searchtitle?o.searchtitle:e.operandTitle,y=this.searchoptions.searchOperMenu?"<a title='"+p+"' style='padding-right: 0.5em;' soper='"+s+"' class='soptclass' colname='"+this.name+"'>"+b+"</a>":""}switch($("td:eq(0)",x).attr("colindex",t).append(y),void 0===o.clearSearch&&(o.clearSearch=!0),o.clearSearch?(h=e.resetTitle||"Clear Search Value",$("td:eq(2)",x).append("<a title='"+h+"' style='padding-right: 0.3em;padding-left: 0.3em;' class='clearsearchclass'>"+e.resetIcon+"</a>")):$("td:eq(2)",x).hide(),this.surl&&(o.dataUrl=this.surl),f="",o.defaultValue&&(f=$.isFunction(o.defaultValue)?o.defaultValue.call(i):o.defaultValue),e.restoreFromFilters&&m&&(f=m.data),g=$.jgrid.createEl.call(i,this.stype,o,f,!1,$.extend({},$.jgrid.ajaxOptions,i.p.ajaxSelectOptions||{})),$(g).addClass(a.srInput),$("td:eq(1)",x).append(g),$(_).append(x),null==o.dataEvents&&(o.dataEvents=[]),this.stype){case"select":!0===e.autosearch&&o.dataEvents.push({type:"change",fn:function(){return c(),!1}});break;case"text":!0===e.autosearch&&(e.searchOnEnter?o.dataEvents.push({type:"keypress",fn:function(e){return 13===(e.charCode||e.keyCode||0)?(c(),!1):this}}):o.dataEvents.push({type:"keydown",fn:function(t){switch(t.which){case 13:return!1;case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:n&&clearTimeout(n),n=setTimeout((function(){c()}),e.autosearchDelay)}}}))}$.jgrid.bindEv.call(i,g,o)}$(w).append(_),$(d).append(w),e.searchOperators&&""!==y||$("td:eq(0)",x).hide()})),$("table thead",i.grid.hDiv).append(d),e.searchOperators&&($(".soptclass",d).click((function(e){var t=$(this).offset(),i=t.left,n=t.top;u(this,i,n),e.stopPropagation()})),$("body").on("click",(function(e){"soptclass"!==e.target.className&&$("#sopt_menu").remove()}))),$(".clearsearchclass",d).click((function(){var t,n=$(this).parents("tr:first"),r=parseInt($("td.ui-search-oper",n).attr("colindex"),10),o=$.extend({},i.p.colModel[r].searchoptions||{}),a=o.defaultValue?o.defaultValue:"";"select"===i.p.colModel[r].stype?(t=$("td.ui-search-input select",n),a?t.val(a):t[0].selectedIndex=0):(t=$("td.ui-search-input input",n)).val(a),$(i).triggerHandler("jqGridToolbarClearVal",[t[0],r,o,a]),$.isFunction(e.onClearSearchValue)&&e.onClearSearchValue.call(i,t[0],r,o,a),!0===e.autosearch&&c()})),this.p.filterToolbar=!0,this.triggerToolbar=c,this.clearToolbar=function(t){var n,r={},o=0;t="boolean"!=typeof t||t,$.each(i.p.colModel,(function(){var e,t=$("#gs_"+i.p.idPrefix+$.jgrid.jqID(this.name),!0===this.frozen&&!0===i.p.frozenColumns?i.grid.fhDiv:i.grid.hDiv);switch(this.searchoptions&&void 0!==this.searchoptions.defaultValue&&(e=this.searchoptions.defaultValue),n=this.index||this.name,this.stype){case"select":if(t.find("option").each((function(t){if(0===t&&(this.selected=!0),$(this).val()===e)return this.selected=!0,!1})),void 0!==e)r[n]=e,o++;else try{delete i.p.postData[n]}catch(e){}break;case"text":if(t.val(e||""),void 0!==e)r[n]=e,o++;else try{delete i.p.postData[n]}catch(e){}break;case"custom":$.isFunction(this.searchoptions.custom_value)&&t.length>0&&"SPAN"===t[0].nodeName.toUpperCase()&&this.searchoptions.custom_value.call(i,t.children(".customelement:first"),"set",e||"")}}));var a,s=o>0;if(i.p.resetsearch=!0,!0===e.stringResult||"local"===i.p.datatype){var l='{"groupOp":"'+e.groupOp+'","rules":[',c=0;$.each(r,(function(e,t){c>0&&(l+=","),l+='{"field":"'+e+'",',l+='"op":"eq",',l+='"data":"'+(t+="").replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',c++})),l+="]}",$.extend(i.p.postData,{filters:l}),$.each(["searchField","searchString","searchOper"],(function(e,t){i.p.postData.hasOwnProperty(t)&&delete i.p.postData[t]}))}else $.extend(i.p.postData,r);i.p.searchurl&&(a=i.p.url,$(i).jqGrid("setGridParam",{url:i.p.searchurl}));var u="stop"===$(i).triggerHandler("jqGridToolbarBeforeClear");!u&&$.isFunction(e.beforeClear)&&(u=e.beforeClear.call(i)),u||t&&$(i).jqGrid("setGridParam",{search:s}).trigger("reloadGrid",[{page:1}]),a&&$(i).jqGrid("setGridParam",{url:a}),$(i).triggerHandler("jqGridToolbarAfterClear"),$.isFunction(e.afterClear)&&e.afterClear()},this.toggleToolbar=function(){var e=$("tr.ui-search-toolbar",i.grid.hDiv),t=!0===i.p.frozenColumns&&$("tr.ui-search-toolbar",i.grid.fhDiv);"none"===e.css("display")?(e.show(),t&&t.show()):(e.hide(),t&&t.hide())}}}))},destroyFilterToolbar:function(){return this.each((function(){this.p.filterToolbar&&(this.triggerToolbar=null,this.clearToolbar=null,this.toggleToolbar=null,this.p.filterToolbar=!1,$(this.grid.hDiv).find("table thead tr.ui-search-toolbar").remove())}))},refreshFilterToolbar:function(e){return e=$.extend(!0,{filters:"",onClearVal:null,onSetVal:null},e||{}),this.each((function(){var t,i,n,r,o,a,s=this,l=s.p.colModel,c=s.p.colModel.length,u=[];if(s.p.filterToolbar){for(t=0;t<c;t++){switch(u.push(l[t].name),i=$("#gs_"+s.p.idPrefix+$.jgrid.jqID(l[t].name)),l[t].stype){case"select":case"text":i.val("")}$.isFunction(e.onClearVal)&&e.onClearVal.call(s,i,l[t].name)}"string"==typeof e.filters&&e.filters.length&&(n=$.jgrid.parse(e.filters)),$.isPlainObject(n)&&function n(d){if(d&&d.rules){for(r=d.rules,c=r.length,t=0;t<c;t++)o=r[t],-1!==(a=$.inArray(o.field,u))&&(i=$("#gs_"+s.p.idPrefix+$.jgrid.jqID(l[a].name))).length>0&&("select"===l[a].stype?i.find("option[value='"+$.jgrid.jqID(o.data)+"']").prop("selected",!0):"text"===l[a].stype&&i.val(o.data),$.isFunction(e.onSetVal)&&e.onSetVal.call(s,i,l[a].name));if(d.groups)for(var p=0;p<d.groups.length;p++)n(d.groups[p])}}(n)}}))},searchGrid:function(e){var t=$.jgrid.getRegional(this[0],"search");return e=$.extend(!0,{recreateFilter:!1,drag:!0,sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:"filters",loadDefaults:!0,beforeShowSearch:null,afterShowSearch:null,onInitializeSearch:null,afterRedraw:null,afterChange:null,sortStrategy:null,closeAfterSearch:!1,closeAfterReset:!1,closeOnEscape:!1,searchOnEnter:!1,multipleSearch:!1,multipleGroup:!1,top:0,left:0,jqModal:!0,modal:!1,resize:!0,width:450,height:"auto",dataheight:"auto",showQuery:!1,errorcheck:!0,sopt:null,stringResult:void 0,onClose:null,onSearch:null,onReset:null,toTop:!0,overlay:30,columns:[],tmplNames:null,tmplFilters:null,tmplLabel:" Template: ",showOnLoad:!1,layer:null,operands:{eq:"=",ne:"<>",lt:"<",le:"<=",gt:">",ge:">=",bw:"LIKE",bn:"NOT LIKE",in:"IN",ni:"NOT IN",ew:"LIKE",en:"NOT LIKE",cn:"LIKE",nc:"NOT LIKE",nu:"IS NULL",nn:"ISNOT NULL"}},t,e||{}),this.each((function(){function t(t){void 0===(o=$(i).triggerHandler("jqGridFilterBeforeShow",[t]))&&(o=!0),o&&$.isFunction(e.beforeShowSearch)&&(o=e.beforeShowSearch.call(i,t)),o&&($.jgrid.viewModal("#"+$.jgrid.jqID(s.themodal),{gbox:"#gbox_"+$.jgrid.jqID(r),jqm:e.jqModal,modal:e.modal,overlay:e.overlay,toTop:e.toTop}),$(i).triggerHandler("jqGridFilterAfterShow",[t]),$.isFunction(e.afterShowSearch)&&e.afterShowSearch.call(i,t))}var i=this;if(i.grid){var n,r="fbox_"+i.p.id,o=!0,a=!0,s={themodal:"searchmod"+r,modalhead:"searchhd"+r,modalcontent:"searchcnt"+r,scrollelm:r},l=i.p.postData[e.sFilter],c=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].filter,u=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].common;if(e.styleUI=i.p.styleUI,"string"==typeof l&&(l=$.jgrid.parse(l)),!0===e.recreateFilter&&$("#"+$.jgrid.jqID(s.themodal)).remove(),void 0!==$("#"+$.jgrid.jqID(s.themodal))[0])t($("#fbox_"+$.jgrid.jqID(i.p.id)));else{var d=$("<div><div id='"+r+"' class='searchFilter' style='overflow:auto'></div></div>").insertBefore("#gview_"+$.jgrid.jqID(i.p.id)),p="left",h="";"rtl"===i.p.direction&&(p="right",h=" style='text-align:left'",d.attr("dir","rtl"));var f,g,m=$.extend([],i.p.colModel),v="<a id='"+r+"_search' class='fm-button "+u.button+" fm-button-icon-right ui-search'><span class='"+u.icon_base+" "+c.icon_search+"'></span>"+e.Find+"</a>",y="<a id='"+r+"_reset' class='fm-button "+u.button+" fm-button-icon-left ui-reset'><span class='"+u.icon_base+" "+c.icon_reset+"'></span>"+e.Reset+"</a>",b="",w="",_=!1,x=-1;if(e.showQuery&&(b="<a id='"+r+"_query' class='fm-button "+u.button+" fm-button-icon-left'><span class='"+u.icon_base+" "+c.icon_query+"'></span>Query</a>"),e.columns.length?(m=e.columns,x=0,f=m[0].index||m[0].name):$.each(m,(function(e,t){if(t.label||(t.label=i.p.colNames[e]),!_){var n=void 0===t.search||t.search,r=!0===t.hidden;(t.searchoptions&&!0===t.searchoptions.searchhidden&&n||n&&!r)&&(_=!0,f=t.index||t.name,x=e)}})),!l&&f||!1===e.multipleSearch){var C="eq";x>=0&&m[x].searchoptions&&m[x].searchoptions.sopt?C=m[x].searchoptions.sopt[0]:e.sopt&&e.sopt.length&&(C=e.sopt[0]),l={groupOp:"AND",rules:[{field:f,op:C,data:""}]}}_=!1,e.tmplNames&&e.tmplNames.length&&(_=!0,w="<tr><td class='ui-search-label'>"+e.tmplLabel+"</td>",w+="<td><select class='ui-template "+c.srSelect+"'>",w+="<option value='default'>Default</option>",$.each(e.tmplNames,(function(e,t){w+="<option value='"+e+"'>"+t+"</option>"})),w+="</select></td></tr>"),g="<table class='EditTable' style='border:0px none;margin-top:5px' id='"+r+"_2'><tbody><tr><td colspan='2'><hr class='"+u.content+"' style='margin:1px'/></td></tr>"+w+"<tr><td class='EditButton' style='text-align:"+p+"'>"+y+"</td><td class='EditButton' "+h+">"+b+v+"</td></tr></tbody></table>",r=$.jgrid.jqID(r),$("#"+r).jqFilter({columns:m,sortStrategy:e.sortStrategy,filter:e.loadDefaults?l:null,showQuery:e.showQuery,errorcheck:e.errorcheck,sopt:e.sopt,groupButton:e.multipleGroup,ruleButtons:e.multipleSearch,uniqueSearchFields:e.uniqueSearchFields,afterRedraw:e.afterRedraw,ops:e.odata,operands:e.operands,ajaxSelectOptions:i.p.ajaxSelectOptions,groupOps:e.groupOps,onChange:function(){this.p.showQuery&&$(".query",this).html(this.toUserFriendlyString()),$.isFunction(e.afterChange)&&e.afterChange.call(i,$("#"+r),e)},direction:i.p.direction,id:i.p.id}),d.append(g),_&&e.tmplFilters&&e.tmplFilters.length&&$(".ui-template",d).on("change",(function(){var t=$(this).val();return"default"===t?$("#"+r).jqFilter("addFilter",l):$("#"+r).jqFilter("addFilter",e.tmplFilters[parseInt(t,10)]),!1})),!0===e.multipleGroup&&(e.multipleSearch=!0),$(i).triggerHandler("jqGridFilterInitialize",[$("#"+r)]),$.isFunction(e.onInitializeSearch)&&e.onInitializeSearch.call(i,$("#"+r)),e.gbox="#gbox_"+r,e.layer?$.jgrid.createModal(s,d,e,"#gview_"+$.jgrid.jqID(i.p.id),$("#gbox_"+$.jgrid.jqID(i.p.id))[0],"#"+$.jgrid.jqID(e.layer),{position:"relative"}):$.jgrid.createModal(s,d,e,"#gview_"+$.jgrid.jqID(i.p.id),$("#gbox_"+$.jgrid.jqID(i.p.id))[0]),(e.searchOnEnter||e.closeOnEscape)&&$("#"+$.jgrid.jqID(s.themodal)).keydown((function(t){var i=$(t.target);return!e.searchOnEnter||13!==t.which||i.hasClass("add-group")||i.hasClass("add-rule")||i.hasClass("delete-group")||i.hasClass("delete-rule")||i.hasClass("fm-button")&&i.is("[id$=_query]")?e.closeOnEscape&&27===t.which?($("#"+$.jgrid.jqID(s.modalhead)).find(".ui-jqdialog-titlebar-close").click(),!1):void 0:($("#"+r+"_search").click(),!1)})),b&&$("#"+r+"_query").on("click",(function(){return $(".queryresult",d).toggle(),!1})),void 0===e.stringResult&&(e.stringResult=e.multipleSearch),$("#"+r+"_search").on("click",(function(){var t,o,l={};if((n=$("#"+r)).find(".input-elm:focus").change(),o=n.jqFilter("filterData"),e.errorcheck&&(n[0].hideError(),e.showQuery||n.jqFilter("toSQLString"),n[0].p.error))return n[0].showError(),!1;if(e.stringResult){try{t=JSON.stringify(o)}catch(e){}"string"==typeof t&&(l[e.sFilter]=t,$.each([e.sField,e.sValue,e.sOper],(function(){l[this]=""})))}else e.multipleSearch?(l[e.sFilter]=o,$.each([e.sField,e.sValue,e.sOper],(function(){l[this]=""}))):(l[e.sField]=o.rules[0].field,l[e.sValue]=o.rules[0].data,l[e.sOper]=o.rules[0].op,l[e.sFilter]="");return i.p.search=!0,$.extend(i.p.postData,l),void 0===(a=$(i).triggerHandler("jqGridFilterSearch"))&&(a=!0),a&&$.isFunction(e.onSearch)&&(a=e.onSearch.call(i,i.p.filters)),!1!==a&&$(i).trigger("reloadGrid",[{page:1}]),e.closeAfterSearch&&$.jgrid.hideModal("#"+$.jgrid.jqID(s.themodal),{gb:"#gbox_"+$.jgrid.jqID(i.p.id),jqm:e.jqModal,onClose:e.onClose}),!1})),$("#"+r+"_reset").on("click",(function(){var t={},n=$("#"+r);return i.p.search=!1,i.p.resetsearch=!0,!1===e.multipleSearch?t[e.sField]=t[e.sValue]=t[e.sOper]="":t[e.sFilter]="",n[0].resetFilter(),_&&$(".ui-template",d).val("default"),$.extend(i.p.postData,t),void 0===(a=$(i).triggerHandler("jqGridFilterReset"))&&(a=!0),a&&$.isFunction(e.onReset)&&(a=e.onReset.call(i)),!1!==a&&$(i).trigger("reloadGrid",[{page:1}]),e.closeAfterReset&&$.jgrid.hideModal("#"+$.jgrid.jqID(s.themodal),{gb:"#gbox_"+$.jgrid.jqID(i.p.id),jqm:e.jqModal,onClose:e.onClose}),!1})),t($("#"+r)),$(".fm-button:not(."+u.disabled+")",d).hover((function(){$(this).addClass(u.hover)}),(function(){$(this).removeClass(u.hover)}))}}}))},filterInput:function(e,t){return t=$.extend(!0,{defaultSearch:"cn",groupOp:"OR",searchAll:!1,beforeSearch:null,afterSearch:null},t||{}),this.each((function(){var i=this;if(i.grid){var n,r,o,a='{"groupOp":"'+t.groupOp+'","rules":[',s=0;if(e+="","local"===i.p.datatype){$.each(i.p.colModel,(function(){n=this.index||this.name,r=this.searchoptions||{},o=t.defaultSearch?t.defaultSearch:r.sopt?r.sopt[0]:t.defaultSearch,this.search=!1!==this.search,(this.search||t.searchAll)&&(s>0&&(a+=","),a+='{"field":"'+n+'",',a+='"op":"'+o+'",',a+='"data":"'+e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',s++)})),a+="]}",$.extend(i.p.postData,{filters:a}),$.each(["searchField","searchString","searchOper"],(function(e,t){i.p.postData.hasOwnProperty(t)&&delete i.p.postData[t]}));var l="stop"===$(i).triggerHandler("jqGridFilterInputBeforeSearch");!l&&$.isFunction(t.beforeSearch)&&(l=t.beforeSearch.call(i)),l||$(i).jqGrid("setGridParam",{search:!0}).trigger("reloadGrid",[{page:1}]),$(i).triggerHandler("jqGridFilterInputAfterSearch"),$.isFunction(t.afterSearch)&&t.afterSearch.call(i)}}}))}});var rp_ge={};if($.jgrid.extend({editGridRow:function(e,t){var i=$.jgrid.getRegional(this[0],"edit"),n=this[0].p.styleUI,r=$.jgrid.styleUI[n].formedit,o=$.jgrid.styleUI[n].common;return t=$.extend(!0,{top:0,left:0,width:"500",datawidth:"auto",height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,url:null,mtype:"POST",clearAfterAdd:!0,closeAfterEdit:!1,reloadAfterSubmit:!0,onInitializeForm:null,beforeInitData:null,beforeShowForm:null,afterShowForm:null,beforeSubmit:null,afterSubmit:null,onclickSubmit:null,afterComplete:null,onclickPgButtons:null,afterclickPgButtons:null,editData:{},recreateForm:!1,jqModal:!0,closeOnEscape:!1,addedrow:"first",topinfo:"",bottominfo:"",saveicon:[],closeicon:[],savekey:[!1,13],navkeys:[!1,38,40],checkOnSubmit:!1,checkOnUpdate:!1,processing:!1,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:!0,overlayClass:o.overlay,removemodal:!0,form:"edit",template:null,focusField:!0,editselected:!1},i,t||{}),rp_ge[$(this)[0].p.id]=t,this.each((function(){function i(){var e,t={};for(e in $(b).find(".FormElement").each((function(){var e=$(".customelement",this);if(e.length){var i=e[0],n=$(i).attr("name");$.each(p.p.colModel,(function(){if(this.name===n&&this.editoptions&&$.isFunction(this.editoptions.custom_value)){try{if(f[n]=this.editoptions.custom_value.call(p,$("#"+$.jgrid.jqID(n),b),"get"),void 0===f[n])throw"e1"}catch(e){"e1"===e?$.jgrid.info_dialog(S.errcap,"function 'custom_value' "+rp_ge[$(this)[0]].p.msg.novalue,rp_ge[$(this)[0]].p.bClose,{styleUI:rp_ge[$(this)[0]].p.styleUI}):$.jgrid.info_dialog(S.errcap,e.message,rp_ge[$(this)[0]].p.bClose,{styleUI:rp_ge[$(this)[0]].p.styleUI})}return!0}}))}else{switch($(this).get(0).type){case"checkbox":if($(this).is(":checked"))f[this.name]=$(this).val();else{var r=$(this).attr("offval");f[this.name]=r}break;case"select-one":case"password":case"text":case"textarea":case"button":f[this.name]=$(this).val();break;case"select-multiple":f[this.name]=$(this).val(),f[this.name]=f[this.name]?f[this.name].join(","):"";break;case"radio":if(t.hasOwnProperty(this.name))return!0;t[this.name]=void 0===$(this).attr("offval")?"off":$(this).attr("offval")}p.p.autoencode&&(f[this.name]=$.jgrid.htmlEncode(f[this.name]))}})),t)if(t.hasOwnProperty(e)){var i=$('input[name="'+e+'"]:checked',b).val();f[e]=void 0!==i?i:t[e],p.p.autoencode&&(f[e]=$.jgrid.htmlEncode(f[e]))}return!0}function n(e,t,i){var n,r,o,a,s,l,c=0;(rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(p.p.savedData={},p.p.savedData[t.p.id+"_id"]=e);var u=t.p.colModel;if("_empty"===e)return $(u).each((function(){n=this.name,a=$.extend({},this.editoptions||{}),(o=$("#"+$.jgrid.jqID(n),i))&&o.length&&null!==o[0]&&(s="","custom"===this.edittype&&$.isFunction(a.custom_value)?a.custom_value.call(p,$("#"+n,i),"set",s):a.defaultValue?(s=$.isFunction(a.defaultValue)?a.defaultValue.call(p):a.defaultValue,"checkbox"===o[0].type?(l=s.toLowerCase()).search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==l?(o[0].checked=!0,o[0].defaultChecked=!0,o[0].value=s):(o[0].checked=!1,o[0].defaultChecked=!1):o.val(s)):"checkbox"===o[0].type?(o[0].checked=!1,o[0].defaultChecked=!1,s=$(o).attr("offval")):o[0].type&&"select"===o[0].type.substr(0,6)?o[0].selectedIndex=0:o.val(s),(!0===rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(p.p.savedData[n]=s))})),void $("#id_g",i).val(e);var d=$(t).jqGrid("getInd",e,!0);d&&($('td[role="gridcell"]',d).each((function(o){if("cb"!==(n=u[o].name)&&"subgrid"!==n&&"rn"!==n&&!0===u[o].editable){if(n===t.p.ExpandColumn&&!0===t.p.treeGrid)r=$(this).text();else try{r=$.unformat.call(t,$(this),{rowId:e,colModel:u[o]},o)}catch(e){r="textarea"===u[o].edittype?$(this).text():$(this).html()}switch(p.p.autoencode&&(r=$.jgrid.htmlDecode(r)),(!0===rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(p.p.savedData[n]=r),n=$.jgrid.jqID(n),u[o].edittype){case"password":case"text":case"button":case"image":case"textarea":(" "===r||" "===r||1===r.length&&160===r.charCodeAt(0))&&(r=""),$("#"+n,i).val(r);break;case"select":var a=r.split(",");a=$.map(a,(function(e){return $.trim(e)})),$("#"+n+" option",i).each((function(){u[o].editoptions.multiple||$.trim(r)!==$.trim($(this).text())&&a[0]!==$.trim($(this).text())&&a[0]!==$.trim($(this).val())?u[o].editoptions.multiple&&($.inArray($.trim($(this).text()),a)>-1||$.inArray($.trim($(this).val()),a)>-1)?this.selected=!0:this.selected=!1:this.selected=!0})),(!0===rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(r=$("#"+n,i).val(),u[o].editoptions.multiple&&(r=r.join(",")),p.p.savedData[n]=r);break;case"checkbox":r=String(r),u[o].editoptions&&u[o].editoptions.value?u[o].editoptions.value.split(":")[0]===r?$("#"+n,i)[p.p.useProp?"prop":"attr"]({checked:!0,defaultChecked:!0}):$("#"+n,i)[p.p.useProp?"prop":"attr"]({checked:!1,defaultChecked:!1}):(r=r.toLowerCase()).search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==r?($("#"+n,i)[p.p.useProp?"prop":"attr"]("checked",!0),$("#"+n,i)[p.p.useProp?"prop":"attr"]("defaultChecked",!0)):($("#"+n,i)[p.p.useProp?"prop":"attr"]("checked",!1),$("#"+n,i)[p.p.useProp?"prop":"attr"]("defaultChecked",!1)),(!0===rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(r=$("#"+n,i).is(":checked")?$("#"+n,i).val():$("#"+n,i).attr("offval"),p.p.savedData[n]=r);break;case"custom":try{if(!u[o].editoptions||!$.isFunction(u[o].editoptions.custom_value))throw"e1";u[o].editoptions.custom_value.call(p,$("#"+n,i),"set",r)}catch(e){"e1"===e?$.jgrid.info_dialog(S.errcap,"function 'custom_value' "+rp_ge[$(this)[0]].p.msg.nodefined,$.rp_ge[$(this)[0]].p.bClose,{styleUI:rp_ge[$(this)[0]].p.styleUI}):$.jgrid.info_dialog(S.errcap,e.message,$.rp_ge[$(this)[0]].p.bClose,{styleUI:rp_ge[$(this)[0]].p.styleUI})}}c++}})),c>0&&($("#id_g",b).val(e),(!0===rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(p.p.savedData[t.p.id+"_id"]=e)))}function a(){var e,i,r,a,s,l,c,u=[!0,"",""],d={},h=p.p.prmNames,y=$(p).triggerHandler("jqGridAddEditBeforeCheckValues",[$(v),g]);for(a in y&&"object"==typeof y&&(f=y),$.isFunction(rp_ge[p.p.id].beforeCheckValues)&&(y=rp_ge[p.p.id].beforeCheckValues.call(p,f,$(v),g))&&"object"==typeof y&&(f=y),f)if(f.hasOwnProperty(a)&&!1===(u=$.jgrid.checkValues.call(p,f[a],a))[0])break;if($.each(p.p.colModel,(function(e,t){t.editoptions&&!0===t.editoptions.NullIfEmpty&&f.hasOwnProperty(t.name)&&""===f[t.name]&&(f[t.name]="null")})),u[0]&&(void 0===(d=$(p).triggerHandler("jqGridAddEditClickSubmit",[rp_ge[p.p.id],f,g]))&&$.isFunction(rp_ge[p.p.id].onclickSubmit)&&(d=rp_ge[p.p.id].onclickSubmit.call(p,rp_ge[p.p.id],f,g)||{}),void 0===(u=$(p).triggerHandler("jqGridAddEditBeforeSubmit",[f,$(v),g]))&&(u=[!0,"",""]),u[0]&&$.isFunction(rp_ge[p.p.id].beforeSubmit)&&(u=rp_ge[p.p.id].beforeSubmit.call(p,f,$(v),g))),u[0]&&!rp_ge[p.p.id].processing){if(rp_ge[p.p.id].processing=!0,$("#sData",b+"_2").addClass(o.active),c=rp_ge[p.p.id].url||$(p).jqGrid("getGridParam","editurl"),r=h.oper,i="clientArray"===c?p.p.keyName:h.id,f[r]="_empty"===$.trim(f[p.p.id+"_id"])?h.addoper:h.editoper,(f[r]!==h.addoper||void 0===f[i])&&(f[i]=f[p.p.id+"_id"]),delete f[p.p.id+"_id"],f=$.extend(f,rp_ge[p.p.id].editData,d),!0===p.p.treeGrid){if(f[r]===h.addoper){s=$(p).jqGrid("getGridParam","selrow");var _="adjacency"===p.p.treeGridModel?p.p.treeReader.parent_id_field:"parent_id";f[_]=s}for(l in p.p.treeReader)if(p.p.treeReader.hasOwnProperty(l)){var x=p.p.treeReader[l];if(f.hasOwnProperty(x)){if(f[r]===h.addoper&&"parent_id_field"===l)continue;delete f[x]}}}f[i]=$.jgrid.stripPref(p.p.idPrefix,f[i]);var C=$.extend({url:c,type:rp_ge[p.p.id].mtype,data:$.isFunction(rp_ge[p.p.id].serializeEditData)?rp_ge[p.p.id].serializeEditData.call(p,f):f,complete:function(a,l){var c;if($("#sData",b+"_2").removeClass(o.active),f[i]=p.p.idPrefix+f[i],a.status>=300&&304!==a.status?(u[0]=!1,u[1]=$(p).triggerHandler("jqGridAddEditErrorTextFormat",[a,g]),$.isFunction(rp_ge[p.p.id].errorTextFormat)?u[1]=rp_ge[p.p.id].errorTextFormat.call(p,a,g):u[1]=l+" Status: '"+a.statusText+"'. Error code: "+a.status):(void 0===(u=$(p).triggerHandler("jqGridAddEditAfterSubmit",[a,f,g]))&&(u=[!0,"",""]),u[0]&&$.isFunction(rp_ge[p.p.id].afterSubmit)&&(u=rp_ge[p.p.id].afterSubmit.call(p,a,f,g))),!1===u[0])$(".FormError",v).html(u[1]),$(".FormError",v).show();else if(p.p.autoencode&&$.each(f,(function(e,t){f[e]=$.jgrid.htmlDecode(t)})),f[r]===h.addoper?(u[2]||(u[2]=$.jgrid.randId()),null==f[i]||"_empty"===f[i]||""==f[i]?f[i]=u[2]:u[2]=f[i],rp_ge[p.p.id].reloadAfterSubmit?$(p).trigger("reloadGrid"):!0===p.p.treeGrid?$(p).jqGrid("addChildNode",u[2],s,f):$(p).jqGrid("addRowData",u[2],f,t.addedrow),rp_ge[p.p.id].closeAfterAdd?(!0!==p.p.treeGrid&&$(p).jqGrid("setSelection",u[2]),$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form})):rp_ge[p.p.id].clearAfterAdd&&n("_empty",p,v)):(rp_ge[p.p.id].reloadAfterSubmit?($(p).trigger("reloadGrid"),rp_ge[p.p.id].closeAfterEdit||setTimeout((function(){$(p).jqGrid("setSelection",f[i])}),1e3)):!0===p.p.treeGrid?$(p).jqGrid("setTreeRow",f[i],f):$(p).jqGrid("setRowData",f[i],f),rp_ge[p.p.id].closeAfterEdit&&$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form})),$.isFunction(rp_ge[p.p.id].afterComplete)&&(e=a,setTimeout((function(){$(p).triggerHandler("jqGridAddEditAfterComplete",[e,f,$(v),g]),rp_ge[p.p.id].afterComplete.call(p,e,f,$(v),g),e=null}),500)),(rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&($(v).data("disabled",!1),"_empty"!==p.p.savedData[p.p.id+"_id"]))for(c in p.p.savedData)p.p.savedData.hasOwnProperty(c)&&f[c]&&(p.p.savedData[c]=f[c]);rp_ge[p.p.id].processing=!1;try{$(":input:visible",v)[0].focus()}catch(e){}}},$.jgrid.ajaxOptions,rp_ge[p.p.id].ajaxEditOptions);if(C.url||rp_ge[p.p.id].useDataProxy||($.isFunction(p.p.dataProxy)?rp_ge[p.p.id].useDataProxy=!0:(u[0]=!1,u[1]+=" "+S.nourl)),u[0])if(rp_ge[p.p.id].useDataProxy){var k=p.p.dataProxy.call(p,C,"set_"+p.p.id);void 0===k&&(k=[!0,""]),!1===k[0]?(u[0]=!1,u[1]=k[1]||"Error deleting the selected row!"):(C.data.oper===h.addoper&&rp_ge[p.p.id].closeAfterAdd&&$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),C.data.oper===h.editoper&&rp_ge[p.p.id].closeAfterEdit&&$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}))}else"clientArray"===C.url?(rp_ge[p.p.id].reloadAfterSubmit=!1,f=C.data,C.complete({status:200,statusText:""},"")):$.postToRemote(C)}!1===u[0]&&($(".FormError",v).html(u[1]),$(".FormError",v).show())}function s(e,t){var i,n=!1;if(!(n=!($.isPlainObject(e)&&$.isPlainObject(t)&&Object.getOwnPropertyNames(e).length===Object.getOwnPropertyNames(t).length)))for(i in t)if(t.hasOwnProperty(i)){if(!e.hasOwnProperty(i)){n=!0;break}if(e[i]!==t[i]){n=!0;break}}return n}function l(){var e=!0;return $(".FormError",v).hide(),rp_ge[p.p.id].checkOnUpdate&&(f={},i(),s(f,p.p.savedData)&&($(v).data("disabled",!0),$(".confirm","#"+w.themodal).show(),e=!1)),e}function c(e,t){var i=t[1].length-1;0===e||void 0!==t[1][e-1]&&$("#"+$.jgrid.jqID(t[1][e-1])).hasClass(o.disabled)?$("#pData",h).addClass(o.disabled):$("#pData",h).removeClass(o.disabled),e===i||void 0!==t[1][e+1]&&$("#"+$.jgrid.jqID(t[1][e+1])).hasClass(o.disabled)?$("#nData",h).addClass(o.disabled):$("#nData",h).removeClass(o.disabled)}function u(){var e=$(p).jqGrid("getDataIDs"),t=$("#id_g",b).val();if(p.p.multiselect&&rp_ge[p.p.id].editselected){for(var i=[],n=0,r=e.length;n<r;n++)-1!==$.inArray(e[n],p.p.selarrrow)&&i.push(e[n]);return[$.inArray(t,i),i]}return[$.inArray(t,e),e]}function d(){if(rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate){var e=[],t={};for(var i in e=$.map(p.p.savedData,(function(e,t){return t})),$(".FormElement",I).each((function(){if(-1===e.indexOf(this.name)){var i=$(this).val(),n=$(this).get(0).type;if("checkbox"===n)$(this).is(":checked")||(i=$(this).attr("offval"));else if("select-multiple"===n)i=i.join(",");else if("radio"===n){if(t.hasOwnProperty(this.name))return!0;t[this.name]=void 0===$(this).attr("offval")?"off":$(this).attr("offval")}p.p.savedData[this.name]=i}})),t)if(t.hasOwnProperty(i)){var n=$('input[name="'+i+'"]:checked',I).val();p.p.savedData[i]=void 0!==n?n:t[i]}}}var p=this;if(p.grid&&e){p.p.savedData={};var h,f,g,m=p.p.id,v="FrmGrid_"+m,y="TblGrid_"+m,b="#"+$.jgrid.jqID(y),w={themodal:"editmod"+m,modalhead:"edithd"+m,modalcontent:"editcnt"+m,scrollelm:v},_=!0,x=1,C=0,k="string"==typeof rp_ge[p.p.id].template&&rp_ge[p.p.id].template.length>0,S=$.jgrid.getRegional(this,"errors");rp_ge[p.p.id].styleUI=p.p.styleUI||"EuiUI",$.jgrid.isMobile()&&(rp_ge[p.p.id].resize=!1),"new"===e?(e="_empty",g="add",t.caption=rp_ge[p.p.id].addCaption):(t.caption=rp_ge[p.p.id].editCaption,g="edit"),t.recreateForm||$(p).data("formProp")&&$.extend(rp_ge[$(this)[0].p.id],$(p).data("formProp"));var E=!0;t.checkOnUpdate&&t.jqModal&&!t.modal&&(E=!1);var j,D=isNaN(rp_ge[$(this)[0].p.id].dataheight)?rp_ge[$(this)[0].p.id].dataheight:rp_ge[$(this)[0].p.id].dataheight+"px",T=isNaN(rp_ge[$(this)[0].p.id].datawidth)?rp_ge[$(this)[0].p.id].datawidth:rp_ge[$(this)[0].p.id].datawidth+"px",I=$("<form name='FormPost' id='"+v+"' class='FormGrid' onSubmit='return false;' style='width:"+T+";height:"+D+";'></form>").data("disabled",!1);if(k?(j=function(e){var t="";return"string"==typeof e&&(t=e.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,(function(e,t){return'<span id="'+t+'" ></span>'}))),t}(rp_ge[$(this)[0].p.id].template),h=b):(j=$("<table id='"+y+"' class='EditTable ui-common-table'><tbody></tbody></table>"),h=b+"_2"),v="#"+$.jgrid.jqID(v),$(I).append("<div class='FormError "+o.error+"' style='display:none;'></div>"),$(I).append("<div class='tinfo topinfo'>"+rp_ge[p.p.id].topinfo+"</div>"),$(p.p.colModel).each((function(){var e=this.formoptions;x=Math.max(x,e&&e.colpos||0),C=Math.max(C,e&&e.rowpos||0)})),$(I).append(j),void 0===(_=$(p).triggerHandler("jqGridAddEditBeforeInitData",[I,g]))&&(_=!0),_&&$.isFunction(rp_ge[p.p.id].beforeInitData)&&(_=rp_ge[p.p.id].beforeInitData.call(p,I,g)),!1!==_){(function(){var t;if("_empty"!==e&&void 0!==p.p.savedRow&&p.p.savedRow.length>0&&$.isFunction($.fn.jqGrid.restoreRow))for(t=0;t<p.p.savedRow.length;t++)if(p.p.savedRow[t].id===e){$(p).jqGrid("restoreRow",e);break}})(),function(e,t,i,n){var o,a,s,l,c,u,d,h,f,g=0,m=[],y=!1,b="";for(d=1;d<=n;d++)b+="<td class='CaptionTD'> </td><td class='DataTD'> </td>";"_empty"!==e&&(y=$(t).jqGrid("getInd",e)),$(t.p.colModel).each((function(d){if(o=this.name,a=(!this.editrules||!0!==this.editrules.edithidden)&&!0===this.hidden,c=a?"style='display:none'":"","cb"!==o&&"subgrid"!==o&&!0===this.editable&&"rn"!==o){if(!1===y)l="";else if(o===t.p.ExpandColumn&&!0===t.p.treeGrid)l=$("td[role='gridcell']:eq("+d+")",t.rows[y]).text();else{try{l=$.unformat.call(t,$("td[role='gridcell']:eq("+d+")",t.rows[y]),{rowId:e,colModel:this},d)}catch(e){l=this.edittype&&"textarea"===this.edittype?$("td[role='gridcell']:eq("+d+")",t.rows[y]).text():$("td[role='gridcell']:eq("+d+")",t.rows[y]).html()}(!l||" "===l||" "===l||1===l.length&&160===l.charCodeAt(0))&&(l="")}var f=$.extend({},this.editoptions||{},{id:o,name:o,rowId:e,oper:"edit"}),w=$.extend({},{elmprefix:"",elmsuffix:"",rowabove:!1,rowcontent:""},this.formoptions||{}),_=parseInt(w.rowpos,10)||g+1,x=parseInt(2*(parseInt(w.colpos,10)||1),10);if("_empty"===e&&f.defaultValue&&(l=$.isFunction(f.defaultValue)?f.defaultValue.call(p):f.defaultValue),this.edittype||(this.edittype="text"),p.p.autoencode&&(l=$.jgrid.htmlDecode(l)),u=$.jgrid.createEl.call(p,this.edittype,f,l,!1,$.extend({},$.jgrid.ajaxOptions,t.p.ajaxSelectOptions||{})),"select"===this.edittype&&(l=$(u).val(),"select-multiple"===$(u).get(0).type&&l&&(l=l.join(","))),"checkbox"===this.edittype&&(l=$(u).is(":checked")?$(u).val():$(u).attr("offval")),$(u).addClass("FormElement"),$.inArray(this.edittype,["text","textarea","password","select"])>-1&&$(u).addClass(r.inputClass),h=!0,k){var C=$(I).find("#"+o);C.length?C.replaceWith(u):h=!1}else{if(s=$(i).find("tr[rowpos="+_+"]"),w.rowabove){var S=$("<tr><td class='contentinfo' colspan='"+2*n+"'>"+w.rowcontent+"</td></tr>");$(i).append(S),S[0].rp=_}0===s.length&&(s=$("<tr "+c+" rowpos='"+_+"'></tr>").addClass("FormData").attr("id","tr_"+o),$(s).append(b),$(i).append(s),s[0].rp=_),$("td:eq("+(x-2)+")",s[0]).html("<label for='"+o+"'>"+(void 0===w.label?t.p.colNames[d]:w.label)+"</label>"),$("td:eq("+(x-1)+")",s[0]).append(w.elmprefix).append(u).append(w.elmsuffix)}(rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&h&&(p.p.savedData[o]=l),"custom"===this.edittype&&$.isFunction(f.custom_value)&&f.custom_value.call(p,$("#"+o,v),"set",l),$.jgrid.bindEv.call(p,u,f),m[g]=d,g++}})),g>0&&(k?(f="<div class='FormData' style='display:none'><input class='FormElement' id='id_g' type='text' name='"+t.p.id+"_id' value='"+e+"'/>",$(I).append(f)):((f=$("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+(2*n-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+t.p.id+"_id' value='"+e+"'/></td></tr>"))[0].rp=g+999,$(i).append(f)),(rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate)&&(p.p.savedData[t.p.id+"_id"]=e))}(e,p,j,x);var A="rtl"===p.p.direction,O=A?"pData":"nData",N="<a id='"+(A?"nData":"pData")+"' class='fm-button "+o.button+"'><span class='"+o.icon_base+" "+r.icon_prev+"'></span></a>",P="<a id='"+O+"' class='fm-button "+o.button+"'><span class='"+o.icon_base+" "+r.icon_next+"'></span></a>",M="<a id='sData' class='fm-button "+o.button+"'>"+t.bSubmit+"</a>",F="<a id='cData' class='fm-button "+o.button+"'>"+t.bCancel+"</a>",R="<table style='height:auto' class='EditTable ui-common-table' id='"+y+"_2'><tbody><tr><td colspan='2'><hr class='"+o.content+"' style='margin:1px'/></td></tr><tr id='Act_Buttons'><td class='navButton'>"+(A?P+N:N+P)+"</td><td class='EditButton'>"+M+F+"</td></tr>";if(R+="</tbody></table>",C>0){var L=[];$.each($(j)[0].rows,(function(e,t){L[e]=t})),L.sort((function(e,t){return e.rp>t.rp?1:e.rp<t.rp?-1:0})),$.each(L,(function(e,t){$("tbody",j).append(t)}))}t.gbox="#gbox_"+$.jgrid.jqID(m);var q,H=!1;if(!0===t.closeOnEscape&&(t.closeOnEscape=!1,H=!0),k?($(I).find("#pData").replaceWith(N),$(I).find("#nData").replaceWith(P),$(I).find("#sData").replaceWith(M),$(I).find("#cData").replaceWith(F),q=$("<div id="+y+"></div>").append(I)):q=$("<div></div>").append(I).append(R),$(I).append("<div class='binfo topinfo bottominfo'>"+rp_ge[p.p.id].bottominfo+"</div>"),$.jgrid.createModal(w,q,rp_ge[$(this)[0].p.id],"#gview_"+$.jgrid.jqID(p.p.id),$("#gbox_"+$.jgrid.jqID(p.p.id))[0]),A&&($("#pData, #nData",b+"_2").css("float","right"),$(".EditButton",b+"_2").css("text-align","left")),rp_ge[p.p.id].topinfo&&$(".tinfo",v).show(),rp_ge[p.p.id].bottominfo&&$(".binfo",v).show(),q=null,R=null,$("#"+$.jgrid.jqID(w.themodal)).keydown((function(e){var i=e.target;if(!0===$(v).data("disabled"))return!1;if(!0===rp_ge[p.p.id].savekey[0]&&e.which===rp_ge[p.p.id].savekey[1]&&"TEXTAREA"!==i.tagName)return $("#sData",b+"_2").trigger("click"),!1;if(27===e.which)return!!l()&&(H&&$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:t.gbox,jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),!1);if(!0===rp_ge[p.p.id].navkeys[0]){if("_empty"===$("#id_g",b).val())return!0;if(e.which===rp_ge[p.p.id].navkeys[1])return $("#pData",h).trigger("click"),!1;if(e.which===rp_ge[p.p.id].navkeys[2])return $("#nData",h).trigger("click"),!1}})),t.checkOnUpdate&&($("a.ui-jqdialog-titlebar-close span","#"+$.jgrid.jqID(w.themodal)).removeClass("jqmClose"),$("a.ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(w.themodal)).off("click").click((function(){return!!l()&&($.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),!1)}))),t.saveicon=$.extend([!0,"left",r.icon_save],t.saveicon),t.closeicon=$.extend([!0,"left",r.icon_close],t.closeicon),!0===t.saveicon[0]&&$("#sData",h).addClass("right"===t.saveicon[1]?"fm-button-icon-right":"fm-button-icon-left").append("<span class='"+o.icon_base+" "+t.saveicon[2]+"'></span>"),!0===t.closeicon[0]&&$("#cData",h).addClass("right"===t.closeicon[1]?"fm-button-icon-right":"fm-button-icon-left").append("<span class='"+o.icon_base+" "+t.closeicon[2]+"'></span>"),rp_ge[p.p.id].checkOnSubmit||rp_ge[p.p.id].checkOnUpdate){M="<a id='sNew' class='fm-button "+o.button+"' style='z-index:1002'>"+t.bYes+"</a>",P="<a id='nNew' class='fm-button "+o.button+"' style='z-index:1002;margin-left:5px'>"+t.bNo+"</a>",F="<a id='cNew' class='fm-button "+o.button+"' style='z-index:1002;margin-left:5px;'>"+t.bExit+"</a>";var z=t.zIndex||999;z++,$("<div class='"+t.overlayClass+" jqgrid-overlay confirm' style='z-index:"+z+";display:none;'> </div><div class='confirm ui-jqconfirm "+o.content+"' style='z-index:"+(z+1)+"'>"+t.saveData+"<br/><br/>"+M+P+F+"</div>").insertAfter(v),$("#sNew","#"+$.jgrid.jqID(w.themodal)).click((function(){return a(),$(v).data("disabled",!1),$(".confirm","#"+$.jgrid.jqID(w.themodal)).hide(),!1})),$("#nNew","#"+$.jgrid.jqID(w.themodal)).click((function(){return $(".confirm","#"+$.jgrid.jqID(w.themodal)).hide(),$(v).data("disabled",!1),setTimeout((function(){$(":input:visible",v)[0].focus()}),0),!1})),$("#cNew","#"+$.jgrid.jqID(w.themodal)).click((function(){return $(".confirm","#"+$.jgrid.jqID(w.themodal)).hide(),$(v).data("disabled",!1),$.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),!1}))}$(p).triggerHandler("jqGridAddEditInitializeForm",[$(v),g]),$.isFunction(rp_ge[p.p.id].onInitializeForm)&&rp_ge[p.p.id].onInitializeForm.call(p,$(v),g),"_empty"!==e&&rp_ge[p.p.id].viewPagerButtons?$("#pData,#nData",h).show():$("#pData,#nData",h).hide(),$(p).triggerHandler("jqGridAddEditBeforeShowForm",[$(v),g]),$.isFunction(rp_ge[p.p.id].beforeShowForm)&&rp_ge[p.p.id].beforeShowForm.call(p,$(v),g),d(),$("#"+$.jgrid.jqID(w.themodal)).data("onClose",rp_ge[p.p.id].onClose),$.jgrid.viewModal("#"+$.jgrid.jqID(w.themodal),{gbox:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,overlay:t.overlay,modal:t.modal,overlayClass:t.overlayClass,focusField:t.focusField,onHide:function(e){var t=$("#editmod"+m)[0].style.height,i=$("#editmod"+m)[0].style.width;t.indexOf("px")>-1&&(t=parseFloat(t)),i.indexOf("px")>-1&&(i=parseFloat(i)),$(p).data("formProp",{top:parseFloat($(e.w).css("top")),left:parseFloat($(e.w).css("left")),width:i,height:t,dataheight:$(v).height(),datawidth:$(v).width()}),e.w.remove(),e.o&&e.o.remove()}}),E||$("."+$.jgrid.jqID(t.overlayClass)).click((function(){return!!l()&&($.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),!1)})),$(".fm-button","#"+$.jgrid.jqID(w.themodal)).hover((function(){$(this).addClass(o.hover)}),(function(){$(this).removeClass(o.hover)})),$("#sData",h).click((function(){return f={},$(".FormError",v).hide(),i(),"_empty"===f[p.p.id+"_id"]?a():!0===t.checkOnSubmit&&s(f,p.p.savedData)?($(v).data("disabled",!0),$(".confirm","#"+$.jgrid.jqID(w.themodal)).show()):a(),!1})),$("#cData",h).click((function(){return!!l()&&($.jgrid.hideModal("#"+$.jgrid.jqID(w.themodal),{gb:"#gbox_"+$.jgrid.jqID(m),jqm:t.jqModal,onClose:rp_ge[p.p.id].onClose,removemodal:rp_ge[p.p.id].removemodal,formprop:!rp_ge[p.p.id].recreateForm,form:rp_ge[p.p.id].form}),!1)})),$("#nData",h).click((function(){if(!l())return!1;$(".FormError",v).hide();var e=u();if(e[0]=parseInt(e[0],10),-1!==e[0]&&e[1][e[0]+1]){var i;if($(p).triggerHandler("jqGridAddEditClickPgButtons",["next",$(v),e[1][e[0]]]),$.isFunction(t.onclickPgButtons)&&void 0!==(i=t.onclickPgButtons.call(p,"next",$(v),e[1][e[0]]))&&!1===i)return!1;if($("#"+$.jgrid.jqID(e[1][e[0]+1])).hasClass(o.disabled))return!1;n(e[1][e[0]+1],p,v),p.p.multiselect&&rp_ge[p.p.id].editselected||$(p).jqGrid("setSelection",e[1][e[0]+1]),$(p).triggerHandler("jqGridAddEditAfterClickPgButtons",["next",$(v),e[1][e[0]]]),$.isFunction(t.afterclickPgButtons)&&t.afterclickPgButtons.call(p,"next",$(v),e[1][e[0]+1]),d(),c(e[0]+1,e)}return!1})),$("#pData",h).click((function(){if(!l())return!1;$(".FormError",v).hide();var e=u();if(-1!==e[0]&&e[1][e[0]-1]){var i;if($(p).triggerHandler("jqGridAddEditClickPgButtons",["prev",$(v),e[1][e[0]]]),$.isFunction(t.onclickPgButtons)&&void 0!==(i=t.onclickPgButtons.call(p,"prev",$(v),e[1][e[0]]))&&!1===i)return!1;if($("#"+$.jgrid.jqID(e[1][e[0]-1])).hasClass(o.disabled))return!1;n(e[1][e[0]-1],p,v),p.p.multiselect&&rp_ge[p.p.id].editselected||$(p).jqGrid("setSelection",e[1][e[0]-1]),$(p).triggerHandler("jqGridAddEditAfterClickPgButtons",["prev",$(v),e[1][e[0]]]),$.isFunction(t.afterclickPgButtons)&&t.afterclickPgButtons.call(p,"prev",$(v),e[1][e[0]-1]),d(),c(e[0]-1,e)}return!1})),$(p).triggerHandler("jqGridAddEditAfterShowForm",[$(v),g]),$.isFunction(rp_ge[p.p.id].afterShowForm)&&rp_ge[p.p.id].afterShowForm.call(p,$(v),g);var B=u();c(B[0],B)}}}))},viewGridRow:function(e,t){var i=$.jgrid.getRegional(this[0],"view"),n=this[0].p.styleUI,r=$.jgrid.styleUI[n].formedit,o=$.jgrid.styleUI[n].common;return t=$.extend(!0,{top:0,left:0,width:500,datawidth:"auto",height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,jqModal:!0,closeOnEscape:!1,labelswidth:"30%",closeicon:[],navkeys:[!1,38,40],onClose:null,beforeShowForm:null,beforeInitData:null,viewPagerButtons:!0,recreateForm:!1,removemodal:!0,form:"view"},i,t||{}),rp_ge[$(this)[0].p.id]=t,this.each((function(){function i(){!0!==rp_ge[l.p.id].closeOnEscape&&!0!==rp_ge[l.p.id].navkeys[0]||setTimeout((function(){$(".ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(f.modalhead)).attr("tabindex","-1").focus()}),0)}function n(e,t){var i,n,r,o,a=0;(o=$(t).jqGrid("getInd",e,!0))&&($("td",o).each((function(e){i=t.p.colModel[e].name,n=(!t.p.colModel[e].editrules||!0!==t.p.colModel[e].editrules.edithidden)&&!0===t.p.colModel[e].hidden,"cb"!==i&&"subgrid"!==i&&"rn"!==i&&(r=i===t.p.ExpandColumn&&!0===t.p.treeGrid?$(this).text():$(this).html(),i=$.jgrid.jqID("v_"+i),$("#"+i+" span","#"+d).html(r),n&&$("#"+i,"#"+d).parents("tr:first").hide(),a++)})),a>0&&$("#id_g","#"+d).val(e))}function a(e,t){var i=t[1].length-1;0===e?$("#pData","#"+d+"_2").addClass(o.disabled):void 0!==t[1][e-1]&&$("#"+$.jgrid.jqID(t[1][e-1])).hasClass(o.disabled)?$("#pData",d+"_2").addClass(o.disabled):$("#pData","#"+d+"_2").removeClass(o.disabled),e===i?$("#nData","#"+d+"_2").addClass(o.disabled):void 0!==t[1][e+1]&&$("#"+$.jgrid.jqID(t[1][e+1])).hasClass(o.disabled)?$("#nData",d+"_2").addClass(o.disabled):$("#nData","#"+d+"_2").removeClass(o.disabled)}function s(){var e=$(l).jqGrid("getDataIDs"),t=$("#id_g","#"+d).val();return[$.inArray(t,e),e]}var l=this;if(l.grid&&e){var c=l.p.id,u="ViewGrid_"+$.jgrid.jqID(c),d="ViewTbl_"+$.jgrid.jqID(c),p="ViewGrid_"+c,h="ViewTbl_"+c,f={themodal:"viewmod"+c,modalhead:"viewhd"+c,modalcontent:"viewcnt"+c,scrollelm:u},g=!!$.isFunction(rp_ge[l.p.id].beforeInitData)&&rp_ge[l.p.id].beforeInitData,m=!0,v=1,y=0;rp_ge[l.p.id].styleUI=l.p.styleUI||"EuiUI",t.recreateForm||$(l).data("viewProp")&&$.extend(rp_ge[$(this)[0].p.id],$(l).data("viewProp"));var b=isNaN(rp_ge[$(this)[0].p.id].dataheight)?rp_ge[$(this)[0].p.id].dataheight:rp_ge[$(this)[0].p.id].dataheight+"px",w=isNaN(rp_ge[$(this)[0].p.id].datawidth)?rp_ge[$(this)[0].p.id].datawidth:rp_ge[$(this)[0].p.id].datawidth+"px",_=$("<form name='FormPost' id='"+p+"' class='FormGrid' style='width:"+w+";height:"+b+";'></form>"),x=$("<table id='"+h+"' class='EditTable ViewTable'><tbody></tbody></table>");if($(l.p.colModel).each((function(){var e=this.formoptions;v=Math.max(v,e&&e.colpos||0),y=Math.max(y,e&&e.rowpos||0)})),$(_).append(x),g&&void 0===(m=g.call(l,_))&&(m=!0),!1!==m){!function(e,i,n,r){var a,s,l,c,u,d,p,h,f,g,m=0,v=[],y="<td class='CaptionTD form-view-label "+o.content+"' width='"+t.labelswidth+"'> </td><td class='DataTD form-view-data ui-helper-reset "+o.content+"'> </td>",b="",w="<td class='CaptionTD form-view-label "+o.content+"'> </td><td class='DataTD form-view-data "+o.content+"'> </td>",_=["integer","number","currency"],x=0,C=0;for(d=1;d<=r;d++)b+=1===d?y:w;if($(i.p.colModel).each((function(){(s=(!this.editrules||!0!==this.editrules.edithidden)&&!0===this.hidden)||"right"!==this.align||(this.formatter&&-1!==$.inArray(this.formatter,_)?x=Math.max(x,parseInt(this.width,10)):C=Math.max(C,parseInt(this.width,10)))})),p=0!==x?x:0!==C?C:0,g=$(i).jqGrid("getInd",e),$(i.p.colModel).each((function(e){if(a=this.name,h=!1,s=(!this.editrules||!0!==this.editrules.edithidden)&&!0===this.hidden,u=s?"style='display:none'":"",f="boolean"!=typeof this.viewable||this.viewable,"cb"!==a&&"subgrid"!==a&&"rn"!==a&&f){c=!1===g?"":a===i.p.ExpandColumn&&!0===i.p.treeGrid?$("td:eq("+e+")",i.rows[g]).text():$("td:eq("+e+")",i.rows[g]).html(),h="right"===this.align&&0!==p;var t=$.extend({},{rowabove:!1,rowcontent:""},this.formoptions||{}),o=parseInt(t.rowpos,10)||m+1,d=parseInt(2*(parseInt(t.colpos,10)||1),10);if(t.rowabove){var y=$("<tr><td class='contentinfo' colspan='"+2*r+"'>"+t.rowcontent+"</td></tr>");$(n).append(y),y[0].rp=o}0===(l=$(n).find("tr[rowpos="+o+"]")).length&&(l=$("<tr "+u+" rowpos='"+o+"'></tr>").addClass("FormData").attr("id","trv_"+a),$(l).append(b),$(n).append(l),l[0].rp=o),$("td:eq("+(d-2)+")",l[0]).html("<b>"+(void 0===t.label?i.p.colNames[e]:t.label)+"</b>"),$("td:eq("+(d-1)+")",l[0]).append("<span>"+c+"</span>").attr("id","v_"+a),h&&$("td:eq("+(d-1)+") span",l[0]).css({"text-align":"right",width:p+"px"}),v[m]=e,m++}})),m>0){var k=$("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+(2*r-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+e+"'/></td></tr>");k[0].rp=m+99,$(n).append(k)}}(e,l,x,v);var C="rtl"===l.p.direction,k=C?"pData":"nData",S="<a id='"+(C?"nData":"pData")+"' class='fm-button "+o.button+"'><span class='"+o.icon_base+" "+r.icon_prev+"'></span></a>",E="<a id='"+k+"' class='fm-button "+o.button+"'><span class='"+o.icon_base+" "+r.icon_next+"'></span></a>",j="<a id='cData' class='fm-button "+o.button+"'>"+t.bClose+"</a>";if(y>0){var D=[];$.each($(x)[0].rows,(function(e,t){D[e]=t})),D.sort((function(e,t){return e.rp>t.rp?1:e.rp<t.rp?-1:0})),$.each(D,(function(e,t){$("tbody",x).append(t)}))}t.gbox="#gbox_"+$.jgrid.jqID(c);var T=$("<div></div>").append(_).append("<table border='0' class='EditTable' id='"+d+"_2'><tbody><tr id='Act_Buttons'><td class='navButton' width='"+t.labelswidth+"'>"+(C?E+S:S+E)+"</td><td class='EditButton'>"+j+"</td></tr></tbody></table>");$.jgrid.createModal(f,T,rp_ge[$(this)[0].p.id],"#gview_"+$.jgrid.jqID(l.p.id),$("#gview_"+$.jgrid.jqID(l.p.id))[0]),C&&($("#pData, #nData","#"+d+"_2").css("float","right"),$(".EditButton","#"+d+"_2").css("text-align","left")),t.viewPagerButtons||$("#pData, #nData","#"+d+"_2").hide(),T=null,$("#"+f.themodal).keydown((function(e){if(27===e.which)return rp_ge[l.p.id].closeOnEscape&&$.jgrid.hideModal("#"+$.jgrid.jqID(f.themodal),{gb:t.gbox,jqm:t.jqModal,onClose:t.onClose,removemodal:rp_ge[l.p.id].removemodal,formprop:!rp_ge[l.p.id].recreateForm,form:rp_ge[l.p.id].form}),!1;if(!0===t.navkeys[0]){if(e.which===t.navkeys[1])return $("#pData","#"+d+"_2").trigger("click"),!1;if(e.which===t.navkeys[2])return $("#nData","#"+d+"_2").trigger("click"),!1}})),t.closeicon=$.extend([!0,"left",r.icon_close],t.closeicon),!0===t.closeicon[0]&&$("#cData","#"+d+"_2").addClass("right"===t.closeicon[1]?"fm-button-icon-right":"fm-button-icon-left").append("<span class='"+o.icon_base+" "+t.closeicon[2]+"'></span>"),$.isFunction(t.beforeShowForm)&&t.beforeShowForm.call(l,$("#"+u)),$.jgrid.viewModal("#"+$.jgrid.jqID(f.themodal),{gbox:"#gbox_"+$.jgrid.jqID(c),jqm:t.jqModal,overlay:t.overlay,modal:t.modal,onHide:function(e){$(l).data("viewProp",{top:parseFloat($(e.w).css("top")),left:parseFloat($(e.w).css("left")),width:$(e.w).width(),height:$(e.w).height(),dataheight:$("#"+u).height(),datawidth:$("#"+u).width()}),e.w.remove(),e.o&&e.o.remove()}}),$(".fm-button:not(."+o.disabled+")","#"+d+"_2").hover((function(){$(this).addClass(o.hover)}),(function(){$(this).removeClass(o.hover)})),i(),$("#cData","#"+d+"_2").click((function(){return $.jgrid.hideModal("#"+$.jgrid.jqID(f.themodal),{gb:"#gbox_"+$.jgrid.jqID(c),jqm:t.jqModal,onClose:t.onClose,removemodal:rp_ge[l.p.id].removemodal,formprop:!rp_ge[l.p.id].recreateForm,form:rp_ge[l.p.id].form}),!1})),$("#nData","#"+d+"_2").click((function(){$("#FormError","#"+d).hide();var e=s();return e[0]=parseInt(e[0],10),-1!==e[0]&&e[1][e[0]+1]&&($.isFunction(t.onclickPgButtons)&&t.onclickPgButtons.call(l,"next",$("#"+u),e[1][e[0]]),n(e[1][e[0]+1],l),$(l).jqGrid("setSelection",e[1][e[0]+1]),$.isFunction(t.afterclickPgButtons)&&t.afterclickPgButtons.call(l,"next",$("#"+u),e[1][e[0]+1]),a(e[0]+1,e)),i(),!1})),$("#pData","#"+d+"_2").click((function(){$("#FormError","#"+d).hide();var e=s();return-1!==e[0]&&e[1][e[0]-1]&&($.isFunction(t.onclickPgButtons)&&t.onclickPgButtons.call(l,"prev",$("#"+u),e[1][e[0]]),n(e[1][e[0]-1],l),$(l).jqGrid("setSelection",e[1][e[0]-1]),$.isFunction(t.afterclickPgButtons)&&t.afterclickPgButtons.call(l,"prev",$("#"+u),e[1][e[0]-1]),a(e[0]-1,e)),i(),!1}));var I=s();a(I[0],I)}}}))},delGridRow:function(e,t){var i=$.jgrid.getRegional(this[0],"del"),n=this[0].p.styleUI,r=$.jgrid.styleUI[n].formedit,o=$.jgrid.styleUI[n].common;return t=$.extend(!0,{top:0,left:0,width:240,height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,url:"",mtype:"POST",reloadAfterSubmit:!0,beforeShowForm:null,beforeInitData:null,afterShowForm:null,beforeSubmit:null,onclickSubmit:null,afterSubmit:null,jqModal:!0,closeOnEscape:!1,delData:{},delicon:[],cancelicon:[],onClose:null,ajaxDelOptions:{},processing:!1,serializeDelData:null,useDataProxy:!1},i,t||{}),rp_ge[$(this)[0].p.id]=t,this.each((function(){var i=this;if(i.grid&&e){var n,a,s,l,c=$.isFunction(rp_ge[i.p.id].beforeShowForm),u=$.isFunction(rp_ge[i.p.id].afterShowForm),d=!!$.isFunction(rp_ge[i.p.id].beforeInitData)&&rp_ge[i.p.id].beforeInitData,p=i.p.id,h={},f=!0,g="DelTbl_"+$.jgrid.jqID(p),m="DelTbl_"+p,v={themodal:"delmod"+p,modalhead:"delhd"+p,modalcontent:"delcnt"+p,scrollelm:g};if(rp_ge[i.p.id].styleUI=i.p.styleUI||"EuiUI",$.isArray(e)&&(e=e.join()),void 0!==$("#"+$.jgrid.jqID(v.themodal))[0]){if(d&&void 0===(f=d.call(i,$("#"+g)))&&(f=!0),!1===f)return;$("#DelData>td","#"+g).text(e),$("#DelError","#"+g).hide(),!0===rp_ge[i.p.id].processing&&(rp_ge[i.p.id].processing=!1,$("#dData","#"+g).removeClass(o.active)),c&&rp_ge[i.p.id].beforeShowForm.call(i,$("#"+g)),$.jgrid.viewModal("#"+$.jgrid.jqID(v.themodal),{gbox:"#gbox_"+$.jgrid.jqID(p),jqm:rp_ge[i.p.id].jqModal,jqM:!1,overlay:rp_ge[i.p.id].overlay,modal:rp_ge[i.p.id].modal}),u&&rp_ge[i.p.id].afterShowForm.call(i,$("#"+g))}else{var y=isNaN(rp_ge[i.p.id].dataheight)?rp_ge[i.p.id].dataheight:rp_ge[i.p.id].dataheight+"px",b="<div id='"+m+"' class='formdata' style='width:"+(isNaN(t.datawidth)?t.datawidth:t.datawidth+"px")+";overflow:auto;position:relative;height:"+y+";'>";b+="<table class='DelTable'><tbody>",b+="<tr id='DelError' style='display:none'><td class='"+o.error+"'></td></tr>",b+="<tr id='DelData' style='display:none'><td >"+e+"</td></tr>",b+='<tr><td class="delmsg" style="white-space:pre;">'+rp_ge[i.p.id].msg+"</td></tr><tr><td > </td></tr>",b+="</tbody></table></div>";var w="<a id='dData' class='fm-button "+o.button+"'>"+t.bSubmit+"</a>",_="<a id='eData' class='fm-button "+o.button+"'>"+t.bCancel+"</a>";if(b+="<table class='EditTable ui-common-table' id='"+g+"_2'><tbody><tr><td><hr class='"+o.content+"' style='margin:1px'/></td></tr><tr><td class='DelButton EditButton'>"+w+" "+_+"</td></tr></tbody></table>",t.gbox="#gbox_"+$.jgrid.jqID(p),$.jgrid.createModal(v,b,rp_ge[i.p.id],"#gview_"+$.jgrid.jqID(i.p.id),$("#gview_"+$.jgrid.jqID(i.p.id))[0]),d&&void 0===(f=d.call(i,$(b)))&&(f=!0),!1===f)return;$(".fm-button","#"+g+"_2").hover((function(){$(this).addClass(o.hover)}),(function(){$(this).removeClass(o.hover)})),t.delicon=$.extend([!0,"left",r.icon_del],rp_ge[i.p.id].delicon),t.cancelicon=$.extend([!0,"left",r.icon_cancel],rp_ge[i.p.id].cancelicon),!0===t.delicon[0]&&$("#dData","#"+g+"_2").addClass("right"===t.delicon[1]?"fm-button-icon-right":"fm-button-icon-left").append("<span class='"+o.icon_base+" "+t.delicon[2]+"'></span>"),!0===t.cancelicon[0]&&$("#eData","#"+g+"_2").addClass("right"===t.cancelicon[1]?"fm-button-icon-right":"fm-button-icon-left").append("<span class='"+o.icon_base+" "+t.cancelicon[2]+"'></span>"),$("#dData","#"+g+"_2").click((function(){var e,r=[!0,""],c=$("#DelData>td","#"+g).text();if(h={},$.isFunction(rp_ge[i.p.id].onclickSubmit)&&(h=rp_ge[i.p.id].onclickSubmit.call(i,rp_ge[i.p.id],c)||{}),$.isFunction(rp_ge[i.p.id].beforeSubmit)&&(r=rp_ge[i.p.id].beforeSubmit.call(i,c)),r[0]&&!rp_ge[i.p.id].processing){if(rp_ge[i.p.id].processing=!0,s=i.p.prmNames,n=$.extend({},rp_ge[i.p.id].delData,h),l=s.oper,n[l]=s.deloper,a=s.id,!(c=String(c).split(",")).length)return!1;for(e in c)c.hasOwnProperty(e)&&(c[e]=$.jgrid.stripPref(i.p.idPrefix,c[e]));n[a]=c.join(),$(this).addClass(o.active);var u=$.extend({url:rp_ge[i.p.id].url||$(i).jqGrid("getGridParam","editurl"),type:rp_ge[i.p.id].mtype,data:$.isFunction(rp_ge[i.p.id].serializeDelData)?rp_ge[i.p.id].serializeDelData.call(i,n):n,complete:function(e,a){var s;if($("#dData","#"+g+"_2").removeClass(o.active),e.status>=300&&304!==e.status?(r[0]=!1,$.isFunction(rp_ge[i.p.id].errorTextFormat)?r[1]=rp_ge[i.p.id].errorTextFormat.call(i,e):r[1]=a+" Status: '"+e.statusText+"'. Error code: "+e.status):$.isFunction(rp_ge[i.p.id].afterSubmit)&&(r=rp_ge[i.p.id].afterSubmit.call(i,e,n)),!1===r[0])$("#DelError>td","#"+g).html(r[1]),$("#DelError","#"+g).show();else{if(rp_ge[i.p.id].reloadAfterSubmit&&"local"!==i.p.datatype)$(i).trigger("reloadGrid");else{if(!0===i.p.treeGrid)try{$(i).jqGrid("delTreeNode",i.p.idPrefix+c[0])}catch(e){}else for(s=0;s<c.length;s++)$(i).jqGrid("delRowData",i.p.idPrefix+c[s]);i.p.selrow=null,i.p.selarrrow=[]}$.isFunction(rp_ge[i.p.id].afterComplete)&&setTimeout((function(){rp_ge[i.p.id].afterComplete.call(i,e,c)}),500)}rp_ge[i.p.id].processing=!1,r[0]&&$.jgrid.hideModal("#"+$.jgrid.jqID(v.themodal),{gb:"#gbox_"+$.jgrid.jqID(p),jqm:t.jqModal,onClose:rp_ge[i.p.id].onClose})}},$.jgrid.ajaxOptions,rp_ge[i.p.id].ajaxDelOptions);if(u.url||rp_ge[i.p.id].useDataProxy||($.isFunction(i.p.dataProxy)?rp_ge[i.p.id].useDataProxy=!0:(r[0]=!1,r[1]+=" "+$.jgrid.getRegional(i,"errors.nourl"))),r[0])if(rp_ge[i.p.id].useDataProxy){var d=i.p.dataProxy.call(i,u,"del_"+i.p.id);void 0===d&&(d=[!0,""]),!1===d[0]?(r[0]=!1,r[1]=d[1]||"Error deleting the selected row!"):$.jgrid.hideModal("#"+$.jgrid.jqID(v.themodal),{gb:"#gbox_"+$.jgrid.jqID(p),jqm:t.jqModal,onClose:rp_ge[i.p.id].onClose})}else"clientArray"===u.url?(n=u.data,u.complete({status:200,statusText:""},"")):$.postToRemote(u)}return!1===r[0]&&($("#DelError>td","#"+g).html(r[1]),$("#DelError","#"+g).show()),!1})),$("#eData","#"+g+"_2").click((function(){return $.jgrid.hideModal("#"+$.jgrid.jqID(v.themodal),{gb:"#gbox_"+$.jgrid.jqID(p),jqm:rp_ge[i.p.id].jqModal,onClose:rp_ge[i.p.id].onClose}),!1})),c&&rp_ge[i.p.id].beforeShowForm.call(i,$("#"+g)),$.jgrid.viewModal("#"+$.jgrid.jqID(v.themodal),{gbox:"#gbox_"+$.jgrid.jqID(p),jqm:rp_ge[i.p.id].jqModal,overlay:rp_ge[i.p.id].overlay,modal:rp_ge[i.p.id].modal}),u&&rp_ge[i.p.id].afterShowForm.call(i,$("#"+g))}!0===rp_ge[i.p.id].closeOnEscape&&setTimeout((function(){$(".ui-jqdialog-titlebar-close","#"+$.jgrid.jqID(v.modalhead)).attr("tabindex","-1").focus()}),0)}}))},navGrid:function(e,t,i,n,r,o,a){var s=$.jgrid.getRegional(this[0],"nav"),l=this[0].p.styleUI,c=$.jgrid.styleUI[l].navigator,u=$.jgrid.styleUI[l].common;return t=$.extend({edit:!0,editicon:c.icon_edit_nav,add:!0,addicon:c.icon_add_nav,del:!0,delicon:c.icon_del_nav,search:!0,searchicon:c.icon_search_nav,refresh:!0,refreshicon:c.icon_refresh_nav,refreshstate:"firstpage",view:!1,viewicon:c.icon_view_nav,position:"left",closeOnEscape:!0,beforeRefresh:null,afterRefresh:null,cloneToTop:!1,alertwidth:200,alertheight:"auto",alerttop:null,alertleft:null,alertzIndex:null,dropmenu:!1,navButtonText:""},s,t||{}),this.each((function(){if(!this.p.navGrid){var c,d,p,h={themodal:"alertmod_"+this.p.id,modalhead:"alerthd_"+this.p.id,modalcontent:"alertcnt_"+this.p.id},f=this;if(f.grid&&"string"==typeof e){$(f).data("navGrid")||$(f).data("navGrid",t),p=$(f).data("navGrid"),f.p.force_regional&&(p=$.extend(p,s)),void 0===$("#"+h.themodal)[0]&&(p.alerttop||p.alertleft||(void 0!==window.innerWidth?(p.alertleft=window.innerWidth,p.alerttop=window.innerHeight):void 0!==document.documentElement&&void 0!==document.documentElement.clientWidth&&0!==document.documentElement.clientWidth?(p.alertleft=document.documentElement.clientWidth,p.alerttop=document.documentElement.clientHeight):(p.alertleft=1024,p.alerttop=768),p.alertleft=p.alertleft/2-parseInt(p.alertwidth,10)/2,p.alerttop=p.alerttop/2-25),$.jgrid.createModal(h,"<div>"+p.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",{gbox:"#gbox_"+$.jgrid.jqID(f.p.id),jqModal:!0,drag:!0,resize:!0,caption:p.alertcap,top:p.alerttop,left:p.alertleft,width:p.alertwidth,height:p.alertheight,closeOnEscape:p.closeOnEscape,zIndex:p.alertzIndex,styleUI:f.p.styleUI},"#gview_"+$.jgrid.jqID(f.p.id),$("#gbox_"+$.jgrid.jqID(f.p.id))[0],!0));var g,m=1,v=function(){$(this).hasClass(u.disabled)||$(this).addClass(u.hover)},y=function(){$(this).removeClass(u.hover)};for(p.cloneToTop&&f.p.toppager&&(m=2),g=0;g<m;g++){var b,w,_,x=$("<table class='ui-pg-table navtable ui-common-table'><tbody><tr></tr></tbody></table>"),C="<td class='ui-pg-button "+u.disabled+"' style='width:4px;'><span class='ui-separator'></span></td>";0===g?(w=e,_=f.p.id,w===f.p.toppager&&(_+="_top",m=1)):(w=f.p.toppager,_=f.p.id+"_top"),"rtl"===f.p.direction&&$(x).attr("dir","rtl").css("float","right"),n=n||{},p.add&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.addicon+"'></span>"+p.addtext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.addtitle||"",id:n.id||"add_"+_}).click((function(){return $(this).hasClass(u.disabled)||($.isFunction(p.addfunc)?p.addfunc.call(f):$(f).jqGrid("editGridRow","new",n)),!1})).hover(v,y),b=null),i=i||{},p.edit&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.editicon+"'></span>"+p.edittext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.edittitle||"",id:i.id||"edit_"+_}).click((function(){if(!$(this).hasClass(u.disabled)){var e=f.p.selrow;e?$.isFunction(p.editfunc)?p.editfunc.call(f,e):$(f).jqGrid("editGridRow",e,i):($.jgrid.viewModal("#"+h.themodal,{gbox:"#gbox_"+$.jgrid.jqID(f.p.id),jqm:!0}),$("#jqg_alrt").focus())}return!1})).hover(v,y),b=null),a=a||{},p.view&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.viewicon+"'></span>"+p.viewtext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.viewtitle||"",id:a.id||"view_"+_}).click((function(){if(!$(this).hasClass(u.disabled)){var e=f.p.selrow;e?$.isFunction(p.viewfunc)?p.viewfunc.call(f,e):$(f).jqGrid("viewGridRow",e,a):($.jgrid.viewModal("#"+h.themodal,{gbox:"#gbox_"+$.jgrid.jqID(f.p.id),jqm:!0}),$("#jqg_alrt").focus())}return!1})).hover(v,y),b=null),r=r||{},p.del&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.delicon+"'></span>"+p.deltext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.deltitle||"",id:r.id||"del_"+_}).click((function(){var e;return $(this).hasClass(u.disabled)||(f.p.multiselect?0===(e=f.p.selarrrow).length&&(e=null):e=f.p.selrow,e?$.isFunction(p.delfunc)?p.delfunc.call(f,e):$(f).jqGrid("delGridRow",e,r):($.jgrid.viewModal("#"+h.themodal,{gbox:"#gbox_"+$.jgrid.jqID(f.p.id),jqm:!0}),$("#jqg_alrt").focus())),!1})).hover(v,y),b=null),(p.add||p.edit||p.del||p.view)&&$("tr",x).append(C),o=o||{},p.search&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.searchicon+"'></span>"+p.searchtext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.searchtitle||"",id:o.id||"search_"+_}).click((function(){return $(this).hasClass(u.disabled)||($.isFunction(p.searchfunc)?p.searchfunc.call(f,o):$(f).jqGrid("searchGrid",o)),!1})).hover(v,y),o.showOnLoad&&!0===o.showOnLoad&&$(b,x).click(),b=null),p.refresh&&(b=$("<td class='ui-pg-button "+u.cornerall+"'></td>"),$(b).append("<div class='ui-pg-div'><span class='"+u.icon_base+" "+p.refreshicon+"'></span>"+p.refreshtext+"</div>"),$("tr",x).append(b),$(b,x).attr({title:p.refreshtitle||"",id:"refresh_"+_}).click((function(){if(!$(this).hasClass(u.disabled)){$.isFunction(p.beforeRefresh)&&p.beforeRefresh.call(f),f.p.search=!1,f.p.resetsearch=!0;try{if("currentfilter"!==p.refreshstate){var e=f.p.id;f.p.postData.filters="";try{$("#fbox_"+$.jgrid.jqID(e)).jqFilter("resetFilter")}catch(e){}$.isFunction(f.clearToolbar)&&f.clearToolbar.call(f,!1)}}catch(e){}switch(p.refreshstate){case"firstpage":$(f).trigger("reloadGrid",[{page:1}]);break;case"current":case"currentfilter":$(f).trigger("reloadGrid",[{current:!0}])}$.isFunction(p.afterRefresh)&&p.afterRefresh.call(f)}return!1})).hover(v,y),b=null),d=$(".ui-jqgrid").css("font-size")||"11px",$("body").append("<div id='testpg2' class='ui-jqgrid "+$.jgrid.styleUI[l].base.entrieBox+"' style='font-size:"+d+";visibility:hidden;' ></div>"),c=$(x).clone().appendTo("#testpg2").width(),$("#testpg2").remove(),f.p._nvtd&&(p.dropmenu?(x=null,$(f).jqGrid("_buildNavMenu",w,_,t,i,n,r,o,a)):c>f.p._nvtd[0]?(f.p.responsive&&f.p.dropmenu?(x=null,$(f).jqGrid("_buildNavMenu",w,_,t,i,n,r,o,a)):$(w+"_"+p.position,w).append(x),f.p._nvtd[0]=c):$(w+"_"+p.position,w).append(x),f.p._nvtd[1]=c),f.p.navGrid=!0}f.p.storeNavOptions&&(f.p.navOptions=p,f.p.editOptions=i,f.p.addOptions=n,f.p.delOptions=r,f.p.searchOptions=o,f.p.viewOptions=a,f.p.navButtons=[])}}}))},navButtonAdd:function(e,t){var i=this[0].p.styleUI,n=$.jgrid.styleUI[i].navigator;return t=$.extend({caption:"newButton",title:"",buttonicon:n.icon_newbutton_nav,onClickButton:null,position:"last",cursor:"pointer",internal:!1},t||{}),this.each((function(){if(this.grid){"string"==typeof e&&0!==e.indexOf("#")&&(e="#"+$.jgrid.jqID(e));var n=$(".navtable",e)[0],r=this,o=$.jgrid.styleUI[i].common.disabled,a=$.jgrid.styleUI[i].common.hover,s=$.jgrid.styleUI[i].common.cornerall,l=$.jgrid.styleUI[i].common.icon_base;if(r.p.storeNavOptions&&!t.internal&&r.p.navButtons.push([e,t]),n){if(t.id&&void 0!==$("#"+$.jgrid.jqID(t.id),n)[0])return;var c=$("<td></td>");"NONE"===t.buttonicon.toString().toUpperCase()?$(c).addClass("ui-pg-button "+s).append("<div class='ui-pg-div'>"+t.caption+"</div>"):$(c).addClass("ui-pg-button "+s).append("<div class='ui-pg-div'><span class='"+l+" "+t.buttonicon+"'></span>"+t.caption+"</div>"),t.id&&$(c).attr("id",t.id),"first"===t.position?0===n.rows[0].cells.length?$("tr",n).append(c):$("tr td:eq(0)",n).before(c):$("tr",n).append(c),$(c,n).attr("title",t.title||"").click((function(e){return $(this).hasClass(o)||$.isFunction(t.onClickButton)&&t.onClickButton.call(r,e),!1})).hover((function(){$(this).hasClass(o)||$(this).addClass(a)}),(function(){$(this).removeClass(a)}))}else if(n=$(".dropdownmenu",e)[0]){var u=$(n).val(),d=t.id||$.jgrid.randId(),p=$('<li class="ui-menu-item" role="presentation"><a class="'+s+' g-menu-item" tabindex="0" role="menuitem" id="'+d+'">'+(t.caption||t.title)+"</a></li>");u&&("first"===t.position?$("#"+u).prepend(p):$("#"+u).append(p),$(p).on("click",(function(e){return $(this).hasClass(o)||($("#"+u).hide(),$.isFunction(t.onClickButton)&&t.onClickButton.call(r,e)),!1})).find("a").hover((function(){$(this).hasClass(o)||$(this).addClass(a)}),(function(){$(this).removeClass(a)})))}}}))},navSeparatorAdd:function(e,t){var i=this[0].p.styleUI,n=$.jgrid.styleUI[i].common;return t=$.extend({sepclass:"ui-separator",sepcontent:"",position:"last"},t||{}),this.each((function(){if(this.grid){"string"==typeof e&&0!==e.indexOf("#")&&(e="#"+$.jgrid.jqID(e));var i,r,o=$(".navtable",e)[0];this.p.storeNavOptions&&this.p.navButtons.push([e,t]),o?(i="<td class='ui-pg-button "+n.disabled+"' style='width:4px;'><span class='"+t.sepclass+"'></span>"+t.sepcontent+"</td>","first"===t.position?0===o.rows[0].cells.length?$("tr",o).append(i):$("tr td:eq(0)",o).before(i):$("tr",o).append(i)):(o=$(".dropdownmenu",e)[0],i="<li class='ui-menu-item "+n.disabled+"' style='width:100%' role='presentation'><hr class='ui-separator-li'></li>",o&&(r=$(o).val())&&("first"===t.position?$("#"+r).prepend(i):$("#"+r).append(i)))}}))},_buildNavMenu:function(e,t,i,n,r,o,a,s){return this.each((function(){var l=this,c=$.jgrid.getRegional(l,"nav"),u=l.p.styleUI,d=($.jgrid.styleUI[u].navigator,$.jgrid.styleUI[u].filter),p=$.jgrid.styleUI[u].common,h="form_menu_"+$.jgrid.randId(),f=i.navButtonText?i.navButtonText:c.selectcaption||"Actions",g="<button class='dropdownmenu "+p.button+"' value='"+h+"'>"+f+"</button>";$(e+"_"+i.position,e).append(g);var m="alertmod_"+this.p.id;this.p.id,this.p.id,function(){var e,c,u=$(".ui-jqgrid-view").css("font-size")||"11px",f=$('<ul id="'+h+'" class="ui-nav-menu modal-content" role="menu" tabindex="0" style="display:none;font-size:'+u+'"></ul>');i.add&&(e=(r=r||{}).id||"add_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.addtext||i.addtitle)+"</a></li>").click((function(){return $(this).hasClass(p.disabled)||($.isFunction(i.addfunc)?i.addfunc.call(l):$(l).jqGrid("editGridRow","new",r),$(f).hide()),!1})),$(f).append(c)),i.edit&&(e=(n=n||{}).id||"edit_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.edittext||i.edittitle)+"</a></li>").click((function(){if(!$(this).hasClass(p.disabled)){var e=l.p.selrow;e?$.isFunction(i.editfunc)?i.editfunc.call(l,e):$(l).jqGrid("editGridRow",e,n):($.jgrid.viewModal("#"+m,{gbox:"#gbox_"+$.jgrid.jqID(l.p.id),jqm:!0}),$("#jqg_alrt").focus()),$(f).hide()}return!1})),$(f).append(c)),i.view&&(e=(s=s||{}).id||"view_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.viewtext||i.viewtitle)+"</a></li>").click((function(){if(!$(this).hasClass(p.disabled)){var e=l.p.selrow;e?$.isFunction(i.editfunc)?i.viewfunc.call(l,e):$(l).jqGrid("viewGridRow",e,s):($.jgrid.viewModal("#"+m,{gbox:"#gbox_"+$.jgrid.jqID(l.p.id),jqm:!0}),$("#jqg_alrt").focus()),$(f).hide()}return!1})),$(f).append(c)),i.del&&(e=(o=o||{}).id||"del_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.deltext||i.deltitle)+"</a></li>").click((function(){var e;return $(this).hasClass(p.disabled)||(l.p.multiselect?0===(e=l.p.selarrrow).length&&(e=null):e=l.p.selrow,e?$.isFunction(i.delfunc)?i.delfunc.call(l,e):$(l).jqGrid("delGridRow",e,o):($.jgrid.viewModal("#"+m,{gbox:"#gbox_"+$.jgrid.jqID(l.p.id),jqm:!0}),$("#jqg_alrt").focus()),$(f).hide()),!1})),$(f).append(c)),(i.add||i.edit||i.del||i.view)&&$(f).append("<li class='ui-menu-item "+p.disabled+"' style='width:100%' role='presentation'><hr class='ui-separator-li'></li>"),i.search&&(e=(a=a||{}).id||"search_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.searchtext||i.searchtitle)+"</a></li>").click((function(){return $(this).hasClass(p.disabled)||($.isFunction(i.searchfunc)?i.searchfunc.call(l,a):$(l).jqGrid("searchGrid",a),$(f).hide()),!1})),$(f).append(c),a.showOnLoad&&!0===a.showOnLoad&&$(c).click()),i.refresh&&(e=a.id||"search_"+t,c=$('<li class="ui-menu-item" role="presentation"><a class="'+p.cornerall+' g-menu-item" tabindex="0" role="menuitem" id="'+e+'">'+(i.refreshtext||i.refreshtitle)+"</a></li>").click((function(){if(!$(this).hasClass(p.disabled)){$.isFunction(i.beforeRefresh)&&i.beforeRefresh.call(l),l.p.search=!1,l.p.resetsearch=!0;try{if("currentfilter"!==i.refreshstate){var e=l.p.id;l.p.postData.filters="";try{$("#fbox_"+$.jgrid.jqID(e)).jqFilter("resetFilter")}catch(e){}$.isFunction(l.clearToolbar)&&l.clearToolbar.call(l,!1)}}catch(e){}switch(i.refreshstate){case"firstpage":$(l).trigger("reloadGrid",[{page:1}]);break;case"current":case"currentfilter":$(l).trigger("reloadGrid",[{current:!0}])}$.isFunction(i.afterRefresh)&&i.afterRefresh.call(l),$(f).hide()}return!1})),$(f).append(c)),$(f).hide(),$("body").append(f),$("#"+h).addClass("ui-menu "+d.menu_widget),$("#"+h+" > li > a").hover((function(){$(this).addClass(p.hover)}),(function(){$(this).removeClass(p.hover)}))}(),$(".dropdownmenu",e+"_"+i.position).on("click",(function(e){var t=$(this).offset(),i=t.left,n=parseInt(t.top),r=$(this).val();$("#"+r).show().css({top:n-($("#"+r).height()+10)+"px",left:i+"px"}),e.stopPropagation()})),$("body").on("click",(function(e){$(e.target).hasClass("dropdownmenu")||$("#"+h).hide()}))}))},GridToForm:function(e,t){return this.each((function(){var i,n=this;if(n.grid){var r=$(n).jqGrid("getRowData",e);if(r)for(i in r)r.hasOwnProperty(i)&&($("[name="+$.jgrid.jqID(i)+"]",t).is("input:radio")||$("[name="+$.jgrid.jqID(i)+"]",t).is("input:checkbox")?$("[name="+$.jgrid.jqID(i)+"]",t).each((function(){$(this).val()==r[i]?$(this)[n.p.useProp?"prop":"attr"]("checked",!0):$(this)[n.p.useProp?"prop":"attr"]("checked",!1)})):$("[name="+$.jgrid.jqID(i)+"]",t).val(r[i]))}}))},FormToGrid:function(e,t,i,n){return this.each((function(){var r=this;if(r.grid){i||(i="set"),n||(n="first");var o=$(t).serializeArray(),a={};$.each(o,(function(e,t){a[t.name]=t.value})),"add"===i?$(r).jqGrid("addRowData",e,a,n):"set"===i&&$(r).jqGrid("setRowData",e,a)}}))}}),$.jgrid.extend({groupingSetup:function(){return this.each((function(){var e,t,i,n=this,r=n.p.colModel,o=n.p.groupingView,a=$.jgrid.styleUI[n.p.styleUI||"EuiUI"].grouping;if(null===o||"object"!=typeof o&&!$.isFunction(o))n.p.grouping=!1;else if(o.plusicon||(o.plusicon=a.icon_plus),o.minusicon||(o.minusicon=a.icon_minus),o.groupField.length){for(void 0===o.visibiltyOnNextGrouping&&(o.visibiltyOnNextGrouping=[]),o.lastvalues=[],o._locgr||(o.groups=[]),o.counters=[],e=0;e<o.groupField.length;e++)o.groupOrder[e]||(o.groupOrder[e]="asc"),o.groupText[e]||(o.groupText[e]="{0}"),"boolean"!=typeof o.groupColumnShow[e]&&(o.groupColumnShow[e]=!0),"boolean"!=typeof o.groupSummary[e]&&(o.groupSummary[e]=!1),o.groupSummaryPos[e]||(o.groupSummaryPos[e]="footer"),!0===o.groupColumnShow[e]?(o.visibiltyOnNextGrouping[e]=!0,$(n).jqGrid("showCol",o.groupField[e])):(o.visibiltyOnNextGrouping[e]=$("#"+$.jgrid.jqID(n.p.id+"_"+o.groupField[e])).is(":visible"),$(n).jqGrid("hideCol",o.groupField[e]));for(o.summary=[],o.hideFirstGroupCol&&$.isArray(o.formatDisplayField)&&!$.isFunction(o.formatDisplayField[0])&&(o.formatDisplayField[0]=function(e){return e}),t=0,i=r.length;t<i;t++)o.hideFirstGroupCol&&(r[t].hidden||o.groupField[0]!==r[t].name||(r[t].formatter=function(){return""})),r[t].summaryType&&(r[t].summaryDivider?o.summary.push({nm:r[t].name,st:r[t].summaryType,v:"",sd:r[t].summaryDivider,vd:"",sr:r[t].summaryRound,srt:r[t].summaryRoundType||"round"}):o.summary.push({nm:r[t].name,st:r[t].summaryType,v:"",sr:r[t].summaryRound,srt:r[t].summaryRoundType||"round"}))}else n.p.grouping=!1}))},groupingPrepare:function(e,t){return this.each((function(){var i,n,r,o,a,s=this.p.groupingView,l=this,c=function(){$.isFunction(this.st)?this.v=this.st.call(l,this.v,this.nm,e):(this.v=$(l).jqGrid("groupingCalculations.handler",this.st,this.v,this.nm,this.sr,this.srt,e),"avg"===this.st.toLowerCase()&&this.sd&&(this.vd=$(l).jqGrid("groupingCalculations.handler",this.st,this.vd,this.sd,this.sr,this.srt,e)))},u=s.groupField.length,d=0;for(i=0;i<u;i++)n=s.groupField[i],o=s.displayField[i],r=e[n],null==(a=null==o?null:e[o])&&(a=r),void 0!==r&&(0===t?(s.groups.push({idx:i,dataIndex:n,value:r,displayValue:a,startRow:t,cnt:1,summary:[]}),s.lastvalues[i]=r,s.counters[i]={cnt:1,pos:s.groups.length-1,summary:$.extend(!0,[],s.summary)},$.each(s.counters[i].summary,c),s.groups[s.counters[i].pos].summary=s.counters[i].summary):"object"==typeof r||($.isArray(s.isInTheSameGroup)&&$.isFunction(s.isInTheSameGroup[i])?s.isInTheSameGroup[i].call(l,s.lastvalues[i],r,i,s):s.lastvalues[i]===r)?1===d?(s.groups.push({idx:i,dataIndex:n,value:r,displayValue:a,startRow:t,cnt:1,summary:[]}),s.lastvalues[i]=r,s.counters[i]={cnt:1,pos:s.groups.length-1,summary:$.extend(!0,[],s.summary)},$.each(s.counters[i].summary,c),s.groups[s.counters[i].pos].summary=s.counters[i].summary):(s.counters[i].cnt+=1,s.groups[s.counters[i].pos].cnt=s.counters[i].cnt,$.each(s.counters[i].summary,c),s.groups[s.counters[i].pos].summary=s.counters[i].summary):(s.groups.push({idx:i,dataIndex:n,value:r,displayValue:a,startRow:t,cnt:1,summary:[]}),s.lastvalues[i]=r,d=1,s.counters[i]={cnt:1,pos:s.groups.length-1,summary:$.extend(!0,[],s.summary)},$.each(s.counters[i].summary,c),s.groups[s.counters[i].pos].summary=s.counters[i].summary))})),this},groupingToggle:function(e){return this.each((function(){var t=this,i=t.p.groupingView,n=e.split("_"),r=parseInt(n[n.length-2],10);n.splice(n.length-2,2);var o,a,s=n.join("_"),l=i.minusicon,c=i.plusicon,u=$("#"+$.jgrid.jqID(e)),d=u.length?u[0].nextSibling:null,p=$("#"+$.jgrid.jqID(e)+" span.tree-wrap-"+t.p.direction),h=function(e){var t=$.map(e.split(" "),(function(e){if(e.substring(0,s.length+1)===s+"_")return parseInt(e.substring(s.length+1),10)}));return t.length>0?t[0]:void 0},f=!1,g=!1,m=!!t.p.frozenColumns&&t.p.id+"_frozen",v=!!m&&$("#"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(m)),y=v&&v.length?v[0].nextSibling:null;if(p.hasClass(l)){if(d)for(;d&&!(void 0!==(o=h(d.className))&&o<=r);)$(d).hide(),d&&(d=d.nextSibling),m&&($(y).hide(),y&&(y=y.nextSibling));p.removeClass(l).addClass(c),f=!0}else{if(d)for(a=void 0;d;){if(o=h(d.className),void 0===a&&(a=void 0===o),g=$(d).hasClass("ui-subgrid")&&$(d).hasClass("ui-sg-collapsed"),void 0!==o){if(o<=r)break;o===r+1&&(g||($(d).show().find(">td>span.tree-wrap-"+t.p.direction).removeClass(l).addClass(c),m&&$(y).show().find(">td>span.tree-wrap-"+t.p.direction).removeClass(l).addClass(c)))}else a&&(g||($(d).show(),m&&$(y).show()));d=d.nextSibling,m&&y&&(y=y.nextSibling)}p.removeClass(c).addClass(l)}$(t).triggerHandler("jqGridGroupingClickGroup",[e,f]),$.isFunction(t.p.onClickGroup)&&t.p.onClickGroup.call(t,e,f)})),!1},groupingRender:function(e,t,i,n){return this.each((function(){function r(e,i,n,r){var o,a,s=function(e,t,i){var n,r=!1;if(0===t)r=i[e];else{var o=i[e].idx;if(0===o)r=i[e];else for(n=e;n>=0;n--)if(i[n].idx===o-t){r=i[n];break}}return r}(e,i,n),c=l.p.colModel,u=s.cnt,d="";for(a=r;a<t;a++){var p="<td "+l.formatCol(a,1,"")+"> </td>",h="{0}";$.each(s.summary,(function(){if(this.nm===c[a].name){c[a].summaryTpl&&(h=c[a].summaryTpl),"string"==typeof this.st&&"avg"===this.st.toLowerCase()&&(this.sd&&this.vd?this.v=this.v/this.vd:this.v&&u>0&&(this.v=this.v/u));try{this.groupCount=s.cnt,this.groupIndex=s.dataIndex,this.groupValue=s.value,o=l.formatter("",this.v,a,this)}catch(e){o=this.v}return p="<td "+l.formatCol(a,1,"")+">"+$.jgrid.template(h,o)+"</td>",!1}})),d+=p}return d}var o,a,s,l=this,c=l.p.groupingView,u="",d="",p=c.groupCollapse?c.plusicon:c.minusicon,h=[],f=c.groupField.length,g=$.jgrid.styleUI[l.p.styleUI||"EuiUI"].common;p=p+" tree-wrap-"+l.p.direction,$.each(l.p.colModel,(function(e,t){var i;for(i=0;i<f;i++)if(c.groupField[i]===t.name){h[i]=e;break}}));var m,v=0,y=$.makeArray(c.groupSummary);y.reverse(),m=l.p.multiselect?' colspan="2"':"",$.each(c.groups,(function(b,w){if(c._locgr&&!(w.startRow+w.cnt>(i-1)*n&&w.startRow<i*n))return!0;v++,a=l.p.id+"ghead_"+w.idx,o=a+"_"+b,d="<span style='cursor:pointer;margin-right:8px;margin-left:5px;' class='"+g.icon_base+" "+p+"' onclick=\"Eui('#"+$.jgrid.jqID(l.p.id)+"').jqGrid('groupingToggle','"+o+"');return false;\"></span>";try{$.isArray(c.formatDisplayField)&&$.isFunction(c.formatDisplayField[w.idx])?(w.displayValue=c.formatDisplayField[w.idx].call(l,w.displayValue,w.value,l.p.colModel[h[w.idx]],w.idx,c),s=w.displayValue):s=l.formatter(o,w.displayValue,h[w.idx],w.value)}catch(e){s=w.displayValue}var _="";if("string"!=typeof(_=$.isFunction(c.groupText[w.idx])?c.groupText[w.idx].call(l,s,w.cnt,w.summary):$.jgrid.template(c.groupText[w.idx],s,w.cnt,w.summary))&&"number"!=typeof _&&(_=s),"header"===c.groupSummaryPos[w.idx]?(u+='<tr id="'+o+'"'+(c.groupCollapse&&w.idx>0?' style="display:none;" ':" ")+'role="row" class= "'+g.content+" jqgroup ui-row-"+l.p.direction+" "+a+'"><td style="padding-left:'+12*w.idx+'px;"'+m+">"+d+_+"</td>",u+=r(b,0,c.groups,!1===c.groupColumnShow[w.idx]?""===m?2:3:""===m?1:2),u+="</tr>"):u+='<tr id="'+o+'"'+(c.groupCollapse&&w.idx>0?' style="display:none;" ':" ")+'role="row" class= "'+g.content+" jqgroup ui-row-"+l.p.direction+" "+a+'"><td style="padding-left:'+12*w.idx+'px;" colspan="'+(!1===c.groupColumnShow[w.idx]?t-1:t)+'">'+d+_+"</td></tr>",f-1===w.idx){var x,C,k=c.groups[b+1],S=0,E=w.startRow,j=void 0!==k?k.startRow:c.groups[b].startRow+c.groups[b].cnt;for(c._locgr&&(S=(i-1)*n)>w.startRow&&(E=S),x=E;x<j&&e[x-S];x++)u+=e[x-S].join("");if("header"!==c.groupSummaryPos[w.idx]){var D;if(void 0!==k){for(D=0;D<c.groupField.length&&k.dataIndex!==c.groupField[D];D++);v=c.groupField.length-D}for(C=0;C<v;C++)if(y[C]){var T="";c.groupCollapse&&!c.showSummaryOnHide&&(T=' style="display:none;"'),u+="<tr"+T+' jqfootlevel="'+(w.idx-C)+'" role="row" class="'+g.content+" jqfoot ui-row-"+l.p.direction+'">',u+=r(b,C,c.groups,0),u+="</tr>"}v=D}}})),$("#"+$.jgrid.jqID(l.p.id)+" tbody:first").append(u),u=null}))},groupingGroupBy:function(e,t){return this.each((function(){var i=this;"string"==typeof e&&(e=[e]);var n,r=i.p.groupingView;for(i.p.grouping=!0,r._locgr=!1,void 0===r.visibiltyOnNextGrouping&&(r.visibiltyOnNextGrouping=[]),n=0;n<r.groupField.length;n++)!r.groupColumnShow[n]&&r.visibiltyOnNextGrouping[n]&&$(i).jqGrid("showCol",r.groupField[n]);for(n=0;n<e.length;n++)r.visibiltyOnNextGrouping[n]=$("#"+$.jgrid.jqID(i.p.id)+"_"+$.jgrid.jqID(e[n])).is(":visible");i.p.groupingView=$.extend(i.p.groupingView,t||{}),r.groupField=e,$(i).trigger("reloadGrid")}))},groupingRemove:function(e){return this.each((function(){var t=this;if(void 0===e&&(e=!0),t.p.grouping=!1,!0===e){var i,n=t.p.groupingView;for(i=0;i<n.groupField.length;i++)!n.groupColumnShow[i]&&n.visibiltyOnNextGrouping[i]&&$(t).jqGrid("showCol",n.groupField);$("tr.jqgroup, tr.jqfoot","#"+$.jgrid.jqID(t.p.id)+" tbody:first").remove(),$("tr.jqgrow:hidden","#"+$.jgrid.jqID(t.p.id)+" tbody:first").show()}else $(t).trigger("reloadGrid")}))},groupingCalculations:{handler:function(e,t,i,n,r,o){var a={sum:function(){return parseFloat(t||0)+parseFloat(o[i]||0)},min:function(){return""===t?parseFloat(o[i]||0):Math.min(parseFloat(t),parseFloat(o[i]||0))},max:function(){return""===t?parseFloat(o[i]||0):Math.max(parseFloat(t),parseFloat(o[i]||0))},count:function(){return""===t&&(t=0),o.hasOwnProperty(i)?t+1:0},avg:function(){return a.sum()}};if(!a[e])throw"jqGrid Grouping No such method: "+e;var s=a[e]();if(null!=n)if("fixed"===r)s=s.toFixed(n);else{var l=Math.pow(10,n);s=Math.round(s*l)/l}return s}},setGroupHeaders:function(e){return e=$.extend({useColSpanStyle:!1,groupHeaders:[]},e||{}),this.each((function(){var t,i,n,r,o,a,s,l,c,u,d,p,h,f,g=this,m=0,v=g.p.colModel,y=v.length,b=g.grid.headers,w=$("table.ui-jqgrid-htable",g.grid.hDiv),_=w.children("thead").children("tr.ui-jqgrid-labels:last").addClass("jqg-second-row-header"),x=w.children("thead"),C=w.find(".jqg-first-row-header"),k=$.jgrid.styleUI[g.p.styleUI||"EuiUI"].base;g.p.groupHeader||(g.p.groupHeader=[]),g.p.groupHeader.push(e),void 0===C[0]?C=$("<tr>",{role:"row","aria-hidden":"true"}).addClass("jqg-first-row-header").css("height","auto"):C.empty();var S,E=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i].startColumnName===e)return i;return-1};for($(g).prepend(x),n=$("<tr>",{role:"row"}).addClass("ui-jqgrid-labels jqg-third-row-header"),t=0;t<y;t++)if(o=b[t].el,a=$(o),i=v[t],s={height:"0px",width:b[t].width+"px",display:i.hidden?"none":""},$("<th>",{role:"gridcell"}).css(s).addClass("ui-first-th-"+g.p.direction).appendTo(C),o.style.width="",(l=E(i.name,e.groupHeaders))>=0){for(u=(c=e.groupHeaders[l]).numberOfColumns,d=c.titleText,h=c.className||"",p=0,l=0;l<u&&t+l<y;l++)v[t+l].hidden||p++;r=$("<th>").attr({role:"columnheader"}).addClass(k.headerBox+" ui-th-column-header ui-th-"+g.p.direction+" "+h).html(d),p>0&&r.attr("colspan",String(p)),g.p.headertitles&&r.attr("title",r.text()),0===p&&r.hide(),a.before(r),n.append(o),m=u-1}else 0===m?e.useColSpanStyle?a.attr("rowspan","2"):($("<th>",{role:"columnheader"}).addClass(k.headerBox+" ui-th-column-header ui-th-"+g.p.direction).css({display:i.hidden?"none":""}).insertBefore(a),n.append(o)):(n.append(o),m--);(f=$(g).children("thead")).prepend(C),n.insertAfter(_),w.append(f),e.useColSpanStyle&&(w.find("span.ui-jqgrid-resize").each((function(){var e=$(this).parent();e.is(":visible")&&(this.style.cssText="height: "+e.height()+"px !important; cursor: col-resize;")})),w.find("div.ui-jqgrid-sortable").each((function(){var e=$(this),t=e.parent();t.is(":visible")&&t.is(":has(span.ui-jqgrid-resize)")&&e.css("top",(t.height()-e.outerHeight())/2-4+"px")}))),S=f.find("tr.jqg-first-row-header"),$(g).on("jqGridResizeStop.setGroupHeaders",(function(e,t,i){S.find("th").eq(i)[0].style.width=t+"px"}))}))},destroyGroupHeader:function(e){return void 0===e&&(e=!0),this.each((function(){var t,i,n,r,o,a,s,l=this,c=l.grid,u=$("table.ui-jqgrid-htable thead",c.hDiv),d=l.p.colModel;if(c){for($(this).off(".setGroupHeaders"),t=$("<tr>",{role:"row"}).addClass("ui-jqgrid-labels"),i=0,n=(r=c.headers).length;i<n;i++){s=d[i].hidden?"none":"",o=$(r[i].el).width(r[i].width).css("display",s);try{o.removeAttr("rowSpan")}catch(e){o.attr("rowSpan",1)}t.append(o),(a=o.children("span.ui-jqgrid-resize")).length>0&&(a[0].style.height=""),o.children("div")[0].style.top=""}$(u).children("tr.ui-jqgrid-labels").remove(),$(u).prepend(t),!0===e&&$(l).jqGrid("setGridParam",{groupHeader:null})}}))}}),$.jgrid=$.jgrid||{},$.extend($.jgrid,{saveState:function(e,t){if(t=$.extend({useStorage:!0,storageType:"localStorage",beforeSetItem:null,compression:!1,compressionModule:"LZString",compressionMethod:"compressToUTF16",debug:!1},t||{}),e){var i,n,r="",o="",a=$("#"+e)[0];if(a.grid){(n=$(a).data("inlineNav"))&&a.p.inlineNav&&$(a).jqGrid("setGridParam",{_iN:n}),(n=$(a).data("filterToolbar"))&&a.p.filterToolbar&&$(a).jqGrid("setGridParam",{_fT:n}),r=$(a).jqGrid("jqGridExport",{exptype:"jsonstring",ident:"",root:""});var s=(o=$(a.grid.bDiv).find(".ui-jqgrid-btable tbody:first").html()).indexOf("</tr>");if(o=o.slice(s+5),$.isFunction(t.beforeSetItem)&&null!=(i=t.beforeSetItem.call(a,r))&&(r=i),t.debug){$("#gbox_tree").prepend('<a id="link_save" target="_blank" download="jqGrid_dump.txt">Click to save Dump Data</a>');var l,c,u=[],d={};u.push("Grid Options\n"),u.push(r),u.push("\n"),u.push("GridData\n"),u.push(o),d.type="plain/text;charset=utf-8";try{l=new File(u,"jqGrid_dump.txt",d)}catch(e){l=new Blob(u,d)}c=URL.createObjectURL(l),$("#link_save").attr("href",c).on("click",(function(){$(this).remove()}))}if(t.compression&&t.compressionModule)try{null!=(i=window[t.compressionModule][t.compressionMethod](r))&&(r=i,o=window[t.compressionModule][t.compressionMethod](o))}catch(e){}if(t.useStorage&&$.jgrid.isLocalStorage())try{window[t.storageType].setItem("jqGrid"+a.p.id,r),window[t.storageType].setItem("jqGrid"+a.p.id+"_data",o)}catch(e){22===e.code&&$.log("info","Local storage limit is over!")}return r}}},loadState:function(e,t,i){if(i=$.extend({useStorage:!0,storageType:"localStorage",clearAfterLoad:!1,beforeSetGrid:null,afterSetGrid:null,decompression:!1,decompressionModule:"LZString",decompressionMethod:"decompressFromUTF16"},i||{}),e){var n,r,o,a,s,l=$("#"+e)[0];if(i.useStorage)try{t=window[i.storageType].getItem("jqGrid"+l.id),o=window[i.storageType].getItem("jqGrid"+l.id+"_data")}catch(e){}if(t){if(i.decompression&&i.decompressionModule)try{null!=(n=window[i.decompressionModule][i.decompressionMethod](t))&&(t=n,o=window[i.decompressionModule][i.decompressionMethod](o))}catch(e){}if((n=jqGridUtils.parse(t))&&"object"===$.type(n)){l.grid&&$.jgrid.gridUnload(e),$.isFunction(i.beforeSetGrid)&&(r=i.beforeSetGrid(n))&&"object"===$.type(r)&&(n=r);var c={reccount:n.reccount,records:n.records,lastpage:n.lastpage,shrinkToFit:n.shrinkToFit,data:n.data,datatype:n.datatype,grouping:n.grouping};n.shrinkToFit=!1,n.data=[],n.datatype="local",n.grouping=!1,n.inlineNav&&(a=n._iN,n._iN=null,delete n._iN),n.filterToolbar&&(s=n._fT,n._fT=null,delete n._fT);var u=$("#"+e).jqGrid(n);if(u.append(o),u.jqGrid("setGridParam",c),n.storeNavOptions&&n.navGrid&&(u[0].p.navGrid=!1,u.jqGrid("navGrid",n.pager,n.navOptions,n.editOptions,n.addOptions,n.delOptions,n.searchOptions,n.viewOptions),n.navButtons&&n.navButtons.length))for(var d=0;d<n.navButtons.length;d++)"sepclass"in n.navButtons[d][1]?u.jqGrid("navSeparatorAdd",n.navButtons[d][0],n.navButtons[d][1]):u.jqGrid("navButtonAdd",n.navButtons[d][0],n.navButtons[d][1]);if(u[0].refreshIndex(),n.subGrid){var p=1===n.multiselect?1:0,h=!0===n.rownumbers?1:0;u.jqGrid("addSubGrid",p+h)}if(n.treeGrid)for(var f=1,g=u[0].rows.length,m=n.expColInd,v=n.treeReader.leaf_field,y=n.treeReader.expanded_field;f<g;)$(u[0].rows[f].cells[m]).find("div.treeclick").on("click",(function(e){var t=e.target||e.srcElement,i=$.jgrid.stripPref(n.idPrefix,$(t,u[0].rows).closest("tr.jqgrow")[0].id),r=u[0].p._index[i];return u[0].p.data[r][v]||(u[0].p.data[r][y]?(u.jqGrid("collapseRow",u[0].p.data[r]),u.jqGrid("collapseNode",u[0].p.data[r])):(u.jqGrid("expandRow",u[0].p.data[r]),u.jqGrid("expandNode",u[0].p.data[r]))),!1})),!0===n.ExpandColClick&&$(u[0].rows[f].cells[m]).find("span.cell-wrapper").css("cursor","pointer").on("click",(function(e){var t=e.target||e.srcElement,i=$.jgrid.stripPref(n.idPrefix,$(t,u[0].rows).closest("tr.jqgrow")[0].id),r=u[0].p._index[i];return u[0].p.data[r][v]||(u[0].p.data[r][y]?(u.jqGrid("collapseRow",u[0].p.data[r]),u.jqGrid("collapseNode",u[0].p.data[r])):(u.jqGrid("expandRow",u[0].p.data[r]),u.jqGrid("expandNode",u[0].p.data[r]))),u.jqGrid("setSelection",i),!1})),f++;n.multiselect&&$.each(n.selarrrow,(function(){$("#jqg_"+e+"_"+this)[n.useProp?"prop":"attr"]("checked","checked")})),n.inlineNav&&a&&(u.jqGrid("setGridParam",{inlineNav:!1}),u.jqGrid("inlineNav",n.pager,a)),n.filterToolbar&&s&&(u.jqGrid("setGridParam",{filterToolbar:!1}),s.restoreFromFilters=!0,u.jqGrid("filterToolbar",s)),n.frozenColumns&&u.jqGrid("setFrozenColumns"),u[0].updatepager(!0,!0),$.isFunction(i.afterSetGrid)&&i.afterSetGrid(u),i.clearAfterLoad&&(window[i.storageType].removeItem("jqGrid"+l.id),window[i.storageType].removeItem("jqGrid"+l.id+"_data"))}else $.log("warn","can not convert to object")}}},isGridInStorage:function(e,t){var i,n,r,o={storageType:"localStorage"};o=$.extend(o,t||{});try{n=window[o.storageType].getItem("jqGrid"+e),r=window[o.storageType].getItem("jqGrid"+e+"_data"),i=null!=n&&null!=r&&"string"==typeof n&&"string"==typeof r}catch(e){i=!1}return i},setRegional:function(e,t){var i={storageType:"sessionStorage"};if((i=$.extend(i,t||{})).regional){$.jgrid.saveState(e,i),i.beforeSetGrid=function(e){return e.regional=i.regional,e.force_regional=!0,e},$.jgrid.loadState(e,null,i);var n=$("#"+e)[0],r=$(n).jqGrid("getGridParam","colModel"),o=-1,a=$.jgrid.getRegional(n,"nav");$.each(r,(function(e){if(this.formatter&&"actions"===this.formatter)return o=e,!1})),-1!==o&&a&&$("#"+e+" tbody tr").each((function(){var e=this.cells[o];$(e).find(".ui-inline-edit").attr("title",a.edittitle),$(e).find(".ui-inline-del").attr("title",a.deltitle),$(e).find(".ui-inline-save").attr("title",a.savetitle),$(e).find(".ui-inline-cancel").attr("title",a.canceltitle)}));try{window[i.storageType].removeItem("jqGrid"+n.id),window[i.storageType].removeItem("jqGrid"+n.id+"_data")}catch(e){}}},jqGridImport:function(e,t){t=$.extend({imptype:"xml",impstring:"",impurl:"",mtype:"GET",impData:{},xmlGrid:{config:"root>grid",data:"root>rows"},jsonGrid:{config:"grid",data:"data"},ajaxOptions:{}},t||{});var i=(0===e.indexOf("#")?"":"#")+$.jgrid.jqID(e),n=function(e,t){var n,r,o,a=$(t.xmlGrid.config,e)[0],s=$(t.xmlGrid.data,e)[0];if(jqGridUtils.xmlToJSON){for(o in n=jqGridUtils.xmlToJSON(a))n.hasOwnProperty(o)&&(r=n[o]);if(s){var l=n.grid.datatype;n.grid.datatype="xmlstring",n.grid.datastr=e,$(i).jqGrid(r).jqGrid("setGridParam",{datatype:l})}else setTimeout((function(){$(i).jqGrid(r)}),0)}else $.log("info","xml2json or parse are not present")},r=function(e,t){if(e&&"string"==typeof e){var n=jqGridUtils.parse(e),r=n[t.jsonGrid.config],o=n[t.jsonGrid.data];if(o){var a=r.datatype;r.datatype="jsonstring",r.datastr=o,$(i).jqGrid(r).jqGrid("setGridParam",{datatype:a})}else $(i).jqGrid(r)}};switch(t.imptype){case"xml":$.postToRemote($.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"xml",complete:function(e,r){"success"===r&&(n(e.responseXML,t),$(i).triggerHandler("jqGridImportComplete",[e,t]),$.isFunction(t.importComplete)&&t.importComplete(e)),e=null}},t.ajaxOptions));break;case"xmlstring":if(t.impstring&&"string"==typeof t.impstring){var o=$.parseXML(t.impstring);o&&(n(o,t),$(i).triggerHandler("jqGridImportComplete",[o,t]),$.isFunction(t.importComplete)&&t.importComplete(o))}break;case"json":$.postToRemote($.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"json",complete:function(e){try{r(e.responseText,t),$(i).triggerHandler("jqGridImportComplete",[e,t]),$.isFunction(t.importComplete)&&t.importComplete(e)}catch(e){}e=null}},t.ajaxOptions));break;case"jsonstring":t.impstring&&"string"==typeof t.impstring&&(r(t.impstring,t),$(i).triggerHandler("jqGridImportComplete",[t.impstring,t]),$.isFunction(t.importComplete)&&t.importComplete(t.impstring))}}}),$.jgrid.extend({jqGridExport:function(e){e=$.extend({exptype:"xmlstring",root:"grid",ident:"\t",addOptions:{}},e||{});var t=null;return this.each((function(){if(this.grid){var i=$.extend(!0,{},$(this).jqGrid("getGridParam"),e.addOptions);switch(i.rownumbers&&(i.colNames.splice(0,1),i.colModel.splice(0,1)),i.multiselect&&(i.colNames.splice(0,1),i.colModel.splice(0,1)),i.subGrid&&(i.colNames.splice(0,1),i.colModel.splice(0,1)),i.knv=null,e.exptype){case"xmlstring":t="<"+e.root+">"+jqGridUtils.jsonToXML(i,{xmlDecl:""})+"</"+e.root+">";break;case"jsonstring":t=jqGridUtils.stringify(i),e.root&&(t="{"+e.root+":"+t+"}")}}})),t},excelExport:function(e){return e=$.extend({exptype:"remote",url:null,oper:"oper",tag:"excel",beforeExport:null,exporthidden:!1,exportgrouping:!1,exportOptions:{}},e||{}),this.each((function(){var t;if(this.grid&&"remote"===e.exptype){var i,n=$.extend({},this.p.postData);if(n[e.oper]=e.tag,$.isFunction(e.beforeExport)){var r=e.beforeExport.call(this,n);$.isPlainObject(r)&&(n=r)}if(e.exporthidden){var o,a=this.p.colModel,s=a.length,l=[];for(o=0;o<s;o++)void 0===a[o].hidden&&(a[o].hidden=!1),l.push({name:a[o].name,hidden:a[o].hidden});var c=JSON.stringify(l);"string"==typeof c&&(n.colModel=c)}e.exportgrouping&&"string"==typeof(i=JSON.stringify(this.p.groupingView))&&(n.groupingView=i);var u=Eui.param(n);t=-1!==e.url.indexOf("?")?e.url+"&"+u:e.url+"?"+u,window.location=t}}))}}),$.jgrid.inlineEdit=$.jgrid.inlineEdit||{},$.jgrid.extend({editRow:function(e,t,i,n,r,o,a,s,l){var c={},u=$.makeArray(arguments).slice(1);return"object"===$.type(u[0])?c=u[0]:(void 0!==t&&(c.keys=t),$.isFunction(i)&&(c.oneditfunc=i),$.isFunction(n)&&(c.successfunc=n),void 0!==r&&(c.url=r),void 0!==o&&(c.extraparam=o),$.isFunction(a)&&(c.aftersavefunc=a),$.isFunction(s)&&(c.errorfunc=s),$.isFunction(l)&&(c.afterrestorefunc=l)),c=$.extend(!0,{keys:!1,keyevent:"keydown",oneditfunc:null,successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,mtype:"POST",focusField:!0},$.jgrid.inlineEdit,c),this.each((function(){var t,i,n,r,o,a=this,s=0,l=null,u={},d=$(this).jqGrid("getStyleUI",a.p.styleUI+".inlinedit","inputClass",!0);if(a.grid&&!1!==(n=$(a).jqGrid("getInd",e,!0))){if(a.p.beforeAction=!0,void 0===(o=$.isFunction(c.beforeEditRow)?c.beforeEditRow.call(a,c,e):void 0)&&(o=!0),!o)return void(a.p.beforeAction=!1);"0"!==($(n).attr("editable")||"0")||$(n).hasClass("not-editable-row")||(r=a.p.colModel,$('td[role="gridcell"]',n).each((function(n){t=r[n].name;var o=!0===a.p.treeGrid&&t===a.p.ExpandColumn;if(o)i=$("span:first",this).html();else try{i=$.unformat.call(a,this,{rowId:e,colModel:r[n]},n)}catch(e){i=r[n].edittype&&"textarea"===r[n].edittype?$(this).text():$(this).html()}if("cb"!==t&&"subgrid"!==t&&"rn"!==t&&(a.p.autoencode&&(i=$.jgrid.htmlDecode(i)),u[t]=i,!0===r[n].editable)){null===l&&(l=n),o?$("span:first",this).html(""):$(this).html("");var c=$.extend({},r[n].editoptions||{},{id:e+"_"+t,name:t,rowId:e,oper:"edit"});r[n].edittype||(r[n].edittype="text"),(" "===i||" "===i||1===i.length&&160===i.charCodeAt(0))&&(i="");var p=$.jgrid.createEl.call(a,r[n].edittype,c,i,!0,$.extend({},$.jgrid.ajaxOptions,a.p.ajaxSelectOptions||{}));$(p).addClass("editable inline-edit-cell"),$.inArray(r[n].edittype,["text","textarea","password","select"])>-1&&$(p).addClass(d),o?$("span:first",this).append(p):$(this).append(p),$.jgrid.bindEv.call(a,p,c),"select"===r[n].edittype&&void 0!==r[n].editoptions&&!0===r[n].editoptions.multiple&&void 0===r[n].editoptions.dataUrl&&$.jgrid.msie()&&$(p).width($(p).width()),s++}})),s>0&&(u.id=e,a.p.savedRow.push(u),$(n).attr("editable","1"),c.focusField&&("number"==typeof c.focusField&&parseInt(c.focusField,10)<=r.length&&(l=c.focusField),setTimeout((function(){var e=$("td:eq("+l+") :input:visible",n).not(":disabled");e.length>0&&e.focus()}),0)),!0===c.keys&&$(n).on(c.keyevent,(function(t){if(27===t.keyCode){if($(a).jqGrid("restoreRow",e,c.afterrestorefunc),a.p.inlineNav)try{$(a).jqGrid("showAddEditButtons")}catch(e){}return!1}if(13===t.keyCode){if("TEXTAREA"===t.target.tagName)return!0;if($(a).jqGrid("saveRow",e,c)&&a.p.inlineNav)try{$(a).jqGrid("showAddEditButtons")}catch(e){}return!1}})),$(a).triggerHandler("jqGridInlineEditRow",[e,c]),$.isFunction(c.oneditfunc)&&c.oneditfunc.call(a,e)))}}))},saveRow:function(e,t,i,n,r,o,a){var s=$.makeArray(arguments).slice(1),l={},c=this[0];"object"===$.type(s[0])?l=s[0]:($.isFunction(t)&&(l.successfunc=t),void 0!==i&&(l.url=i),void 0!==n&&(l.extraparam=n),$.isFunction(r)&&(l.aftersavefunc=r),$.isFunction(o)&&(l.errorfunc=o),$.isFunction(a)&&(l.afterrestorefunc=a)),l=$.extend(!0,{successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,mtype:"POST",saveui:"enable",savetext:$.jgrid.getRegional(c,"defaults.savetext")},$.jgrid.inlineEdit,l);var u,d,p,h,f,g=!1,m={},v={},y={},b=!1,w=$.trim($(c).jqGrid("getStyleUI",c.p.styleUI+".common","error",!0));if(!c.grid)return g;if(!1===(f=$(c).jqGrid("getInd",e,!0)))return g;var _=$.jgrid.getRegional(c,"errors"),x=$.jgrid.getRegional(c,"edit"),C=$.isFunction(l.beforeSaveRow)?l.beforeSaveRow.call(c,l,e):void 0;if(void 0===C&&(C=!0),C){if(d=$(f).attr("editable"),l.url=l.url||c.p.editurl,"1"===d){var k;if($('td[role="gridcell"]',f).each((function(e){if(k=c.p.colModel[e],"cb"!==(u=k.name)&&"subgrid"!==u&&!0===k.editable&&"rn"!==u&&!$(this).hasClass("not-editable-cell")){switch(k.edittype){case"checkbox":var t=["Yes","No"];k.editoptions&&(t=k.editoptions.value.split(":")),m[u]=$("input",this).is(":checked")?t[0]:t[1];break;case"text":case"password":case"textarea":case"button":m[u]=$("input, textarea",this).val();break;case"select":if(k.editoptions.multiple){var i=$("select",this),n=[];m[u]=$(i).val(),m[u]?m[u]=m[u].join(","):m[u]="",$("select option:selected",this).each((function(e,t){n[e]=$(t).text()})),v[u]=n.join(",")}else m[u]=$("select option:selected",this).val(),v[u]=$("select option:selected",this).text();k.formatter&&"select"===k.formatter&&(v={});break;case"custom":try{if(!k.editoptions||!$.isFunction(k.editoptions.custom_value))throw"e1";if(m[u]=k.editoptions.custom_value.call(c,$(".customelement",this),"get"),void 0===m[u])throw"e2"}catch(e){"e1"===e?$.jgrid.info_dialog(_.errcap,"function 'custom_value' "+x.msg.nodefined,x.bClose,{styleUI:c.p.styleUI}):$.jgrid.info_dialog(_.errcap,e.message,x.bClose,{styleUI:c.p.styleUI})}}if(!1===(h=$.jgrid.checkValues.call(c,m[u],e))[0])return!1;c.p.autoencode&&(m[u]=$.jgrid.htmlEncode(m[u])),"clientArray"!==l.url&&k.editoptions&&!0===k.editoptions.NullIfEmpty&&""===m[u]&&(y[u]="null",b=!0)}})),!1===h[0]){try{var S=$(c).jqGrid("getGridRowById",e),E=$.jgrid.findPos(S);$.jgrid.info_dialog(_.errcap,h[1],x.bClose,{left:E[0],top:E[1]+$(S).outerHeight(),styleUI:c.p.styleUI})}catch(e){$.log("error",h[1])}return g}var j,D=c.p.prmNames,T=e;if(j=!1===c.p.keyName?D.id:c.p.keyName,m){if(m[D.oper]=D.editoper,void 0===m[j]||""===m[j])m[j]=e;else if(f.id!==c.p.idPrefix+m[j]){var I=$.jgrid.stripPref(c.p.idPrefix,e);if(void 0!==c.p._index[I]&&(c.p._index[m[j]]=c.p._index[I],delete c.p._index[I]),e=c.p.idPrefix+m[j],$(f).attr("id",e),c.p.selrow===T&&(c.p.selrow=e),$.isArray(c.p.selarrrow)){var A=$.inArray(T,c.p.selarrrow);A>=0&&(c.p.selarrrow[A]=e)}if(c.p.multiselect){var O="jqg_"+c.p.id+"_"+e;$("input.cbox",f).attr("id",O).attr("name",O)}}void 0===c.p.inlineData&&(c.p.inlineData={}),m=$.extend({},m,c.p.inlineData,l.extraparam)}if("clientArray"===l.url){m=$.extend({},m,v),c.p.autoencode&&$.each(m,(function(e,t){m[e]=$.jgrid.htmlDecode(t)}));var N,P=$(c).jqGrid("setRowData",e,m);for($(f).attr("editable","0"),N=0;N<c.p.savedRow.length;N++)if(String(c.p.savedRow[N].id)===String(T)){p=N;break}p>=0&&c.p.savedRow.splice(p,1),$(c).triggerHandler("jqGridInlineAfterSaveRow",[e,P,m,l]),$.isFunction(l.aftersavefunc)&&l.aftersavefunc.call(c,e,P,m,l),g=!0,$(f).removeClass("jqgrid-new-row").off("keydown")}else $(c).jqGrid("progressBar",{method:"show",loadtype:l.saveui,htmlcontent:l.savetext}),(y=$.extend({},m,y))[j]=$.jgrid.stripPref(c.p.idPrefix,y[j]),$.postToRemote($.extend({url:l.url,data:$.isFunction(c.p.serializeRowData)?c.p.serializeRowData.call(c,y):y,type:l.mtype,async:!1,complete:function(t,i){if($(c).jqGrid("progressBar",{method:"hide",loadtype:l.saveui,htmlcontent:l.savetext}),"success"===i){var n,r,o=!0;if(n=$(c).triggerHandler("jqGridInlineSuccessSaveRow",[t,e,l]),$.isArray(n)||(n=[!0,y]),n[0]&&$.isFunction(l.successfunc)&&(n=l.successfunc.call(c,t)),$.isArray(n)?(o=n[0],m=n[1]||m):o=n,!0===o){for(c.p.autoencode&&$.each(m,(function(e,t){m[e]=$.jgrid.htmlDecode(t)})),b&&$.each(m,(function(e){"null"===m[e]&&(m[e]="")})),m=$.extend({},m,v),$(c).jqGrid("setRowData",e,m),$(f).attr("editable","0"),r=0;r<c.p.savedRow.length;r++)if(String(c.p.savedRow[r].id)===String(e)){p=r;break}p>=0&&c.p.savedRow.splice(p,1),$(c).triggerHandler("jqGridInlineAfterSaveRow",[e,t,m,l]),$.isFunction(l.aftersavefunc)&&l.aftersavefunc.call(c,e,t,m,l),g=!0,$(f).removeClass("jqgrid-new-row").off("keydown")}else $(c).triggerHandler("jqGridInlineErrorSaveRow",[e,t,i,null,l]),$.isFunction(l.errorfunc)&&l.errorfunc.call(c,e,t,i,null),!0===l.restoreAfterError&&$(c).jqGrid("restoreRow",e,l.afterrestorefunc)}},error:function(t,i,n){if($("#lui_"+$.jgrid.jqID(c.p.id)).hide(),$(c).triggerHandler("jqGridInlineErrorSaveRow",[e,t,i,n,l]),$.isFunction(l.errorfunc))l.errorfunc.call(c,e,t,i,n);else{var r=t.responseText||t.statusText;try{$.jgrid.info_dialog(_.errcap,'<div class="'+w+'">'+r+"</div>",x.bClose,{buttonalign:"right",styleUI:c.p.styleUI})}catch(e){$.log("error",r)}}!0===l.restoreAfterError&&$(c).jqGrid("restoreRow",e,l.afterrestorefunc)}},$.jgrid.ajaxOptions,c.p.ajaxRowOptions||{}))}return g}},restoreRow:function(e,t){var i=$.makeArray(arguments).slice(1),n={};return"object"===$.type(i[0])?n=i[0]:$.isFunction(t)&&(n.afterrestorefunc=t),n=$.extend(!0,{},$.jgrid.inlineEdit,n),this.each((function(){var t,i,r=this,o=-1,a={};if(r.grid&&!1!==(t=$(r).jqGrid("getInd",e,!0))){var s=$.isFunction(n.beforeCancelRow)?n.beforeCancelRow.call(r,n,e):void 0;if(void 0===s&&(s=!0),s){for(i=0;i<r.p.savedRow.length;i++)if(String(r.p.savedRow[i].id)===String(e)){o=i;break}if(o>=0){if($.isFunction($.fn.datepicker))try{$("input.hasDatepicker","#"+$.jgrid.jqID(t.id)).datepicker("hide")}catch(e){}$.each(r.p.colModel,(function(){!0===this.editable&&r.p.savedRow[o].hasOwnProperty(this.name)&&(a[this.name]=r.p.savedRow[o][this.name])})),$(r).jqGrid("setRowData",e,a),$(t).attr("editable","0").off("keydown"),r.p.savedRow.splice(o,1),$("#"+$.jgrid.jqID(e),"#"+$.jgrid.jqID(r.p.id)).hasClass("jqgrid-new-row")&&setTimeout((function(){$(r).jqGrid("delRowData",e),$(r).jqGrid("showAddEditButtons")}),0)}$(r).triggerHandler("jqGridInlineAfterRestoreRow",[e]),$.isFunction(n.afterrestorefunc)&&n.afterrestorefunc.call(r,e)}}}))},addRow:function(e){return e=$.extend(!0,{rowID:null,initdata:{},position:"first",useDefValues:!0,useFormatter:!1,addRowParams:{extraparam:{}}},e||{}),this.each((function(){if(this.grid){var t=this;t.p.beforeAction=!0;var i=$.isFunction(e.beforeAddRow)?e.beforeAddRow.call(t,e.addRowParams):void 0;if(void 0===i&&(i=!0),!i)return void(t.p.beforeAction=!1);if(e.rowID=$.isFunction(e.rowID)?e.rowID.call(t,e):null!=e.rowID?e.rowID:$.jgrid.randId(),!0===e.useDefValues&&$(t.p.colModel).each((function(){if(this.editoptions&&this.editoptions.defaultValue){var i=this.editoptions.defaultValue,n=$.isFunction(i)?i.call(t):i;e.initdata[this.name]=n}})),$(t).jqGrid("addRowData",e.rowID,e.initdata,e.position),e.rowID=t.p.idPrefix+e.rowID,$("#"+$.jgrid.jqID(e.rowID),"#"+$.jgrid.jqID(t.p.id)).addClass("jqgrid-new-row"),e.useFormatter)$("#"+$.jgrid.jqID(e.rowID)+" .ui-inline-edit","#"+$.jgrid.jqID(t.p.id)).click();else{var n=t.p.prmNames,r=n.oper;e.addRowParams.extraparam[r]=n.addoper,$(t).jqGrid("editRow",e.rowID,e.addRowParams),$(t).jqGrid("setSelection",e.rowID)}}}))},inlineNav:function(e,t){var i=this[0],n=$.jgrid.getRegional(i,"nav"),r=$.jgrid.styleUI[i.p.styleUI].inlinedit;return t=$.extend(!0,{edit:!0,editicon:r.icon_edit_nav,add:!0,addicon:r.icon_add_nav,save:!0,saveicon:r.icon_save_nav,cancel:!0,cancelicon:r.icon_cancel_nav,addParams:{addRowParams:{extraparam:{}}},editParams:{},restoreAfterSelect:!0,saveAfterSelect:!1},n,t||{}),this.each((function(){if(this.grid&&!this.p.inlineNav){var r=$.jgrid.jqID(i.p.id),o=$.trim($(i).jqGrid("getStyleUI",i.p.styleUI+".common","disabled",!0));if(i.p.navGrid||$(i).jqGrid("navGrid",e,{refresh:!1,edit:!1,add:!1,del:!1,search:!1,view:!1}),$(i).data("inlineNav")||$(i).data("inlineNav",t),i.p.force_regional&&(t=$.extend(t,n)),i.p.inlineNav=!0,!0===t.addParams.useFormatter){var a,s=i.p.colModel;for(a=0;a<s.length;a++)if(s[a].formatter&&"actions"===s[a].formatter){if(s[a].formatoptions){var l=$.extend({keys:!1,onEdit:null,onSuccess:null,afterSave:null,onError:null,afterRestore:null,extraparam:{},url:null},s[a].formatoptions);t.addParams.addRowParams={keys:l.keys,oneditfunc:l.onEdit,successfunc:l.onSuccess,url:l.url,extraparam:l.extraparam,aftersavefunc:l.afterSave,errorfunc:l.onError,afterrestorefunc:l.afterRestore}}break}}t.add&&$(i).jqGrid("navButtonAdd",e,{caption:t.addtext,title:t.addtitle,buttonicon:t.addicon,id:i.p.id+"_iladd",internal:!0,onClickButton:function(){void 0===i.p.beforeAction&&(i.p.beforeAction=!0),$(i).jqGrid("addRow",t.addParams),!t.addParams.useFormatter&&i.p.beforeAction&&($("#"+r+"_ilsave").removeClass(o),$("#"+r+"_ilcancel").removeClass(o),$("#"+r+"_iladd").addClass(o),$("#"+r+"_iledit").addClass(o))}}),t.edit&&$(i).jqGrid("navButtonAdd",e,{caption:t.edittext,title:t.edittitle,buttonicon:t.editicon,id:i.p.id+"_iledit",internal:!0,onClickButton:function(){var e=$(i).jqGrid("getGridParam","selrow");e?(void 0===i.p.beforeAction&&(i.p.beforeAction=!0),$(i).jqGrid("editRow",e,t.editParams),i.p.beforeAction&&($("#"+r+"_ilsave").removeClass(o),$("#"+r+"_ilcancel").removeClass(o),$("#"+r+"_iladd").addClass(o),$("#"+r+"_iledit").addClass(o))):($.jgrid.viewModal("#alertmod_"+r,{gbox:"#gbox_"+r,jqm:!0}),$("#jqg_alrt").focus())}}),t.save&&($(i).jqGrid("navButtonAdd",e,{caption:t.savetext||"",title:t.savetitle||"Save row",buttonicon:t.saveicon,id:i.p.id+"_ilsave",internal:!0,onClickButton:function(){var e=i.p.savedRow[0].id;if(e){var n=i.p.prmNames,o=n.oper,a=t.editParams;$("#"+$.jgrid.jqID(e),"#"+r).hasClass("jqgrid-new-row")?(t.addParams.addRowParams.extraparam[o]=n.addoper,a=t.addParams.addRowParams):(t.editParams.extraparam||(t.editParams.extraparam={}),t.editParams.extraparam[o]=n.editoper),$(i).jqGrid("saveRow",e,a)&&$(i).jqGrid("showAddEditButtons")}else $.jgrid.viewModal("#alertmod_"+r,{gbox:"#gbox_"+r,jqm:!0}),$("#jqg_alrt").focus()}}),$("#"+r+"_ilsave").addClass(o)),t.cancel&&($(i).jqGrid("navButtonAdd",e,{caption:t.canceltext||"",title:t.canceltitle||"Cancel row editing",buttonicon:t.cancelicon,id:i.p.id+"_ilcancel",internal:!0,onClickButton:function(){var e=i.p.savedRow[0].id,n=t.editParams;e?($("#"+$.jgrid.jqID(e),"#"+r).hasClass("jqgrid-new-row")&&(n=t.addParams.addRowParams),$(i).jqGrid("restoreRow",e,n),$(i).jqGrid("showAddEditButtons")):($.jgrid.viewModal("#alertmod",{gbox:"#gbox_"+r,jqm:!0}),$("#jqg_alrt").focus())}}),$("#"+r+"_ilcancel").addClass(o)),!0!==t.restoreAfterSelect&&!0!==t.saveAfterSelect||$(i).on("jqGridBeforeSelectRow.inlineNav",(function(e,n){i.p.savedRow.length>0&&!0===i.p.inlineNav&&n!==i.p.selrow&&null!==i.p.selrow&&(i.p.selrow===t.addParams.rowID?$(i).jqGrid("delRowData",i.p.selrow):!0===t.restoreAfterSelect?$(i).jqGrid("restoreRow",i.p.selrow,t.editParams):$(i).jqGrid("saveRow",i.p.selrow,t.editParams),$(i).jqGrid("showAddEditButtons"))}))}}))},showAddEditButtons:function(){return this.each((function(){if(this.grid){var e=$.jgrid.jqID(this.p.id),t=$.trim($(this).jqGrid("getStyleUI",this.p.styleUI+".common","disabled",!0));$("#"+e+"_ilsave").addClass(t),$("#"+e+"_ilcancel").addClass(t),$("#"+e+"_iladd").removeClass(t),$("#"+e+"_iledit").removeClass(t)}}))}}),$.jgrid.msie()&&8===$.jgrid.msiever()&&($.expr[":"].hidden=function(e){return 0===e.offsetWidth||0===e.offsetHeight||"none"===e.style.display}),$.jgrid._multiselect=!1,$.ui&&$.ui.multiselect){if($.ui.multiselect.prototype._setSelected){var setSelected=$.ui.multiselect.prototype._setSelected;$.ui.multiselect.prototype._setSelected=function(e,t){var i=setSelected.call(this,e,t);if(t&&this.selectedList){var n=this.element;this.selectedList.find("li").each((function(){$(this).data("optionLink")&&$(this).data("optionLink").remove().appendTo(n)}))}return i}}$.ui.multiselect.prototype.destroy&&($.ui.multiselect.prototype.destroy=function(){this.element.show(),this.container.remove(),void 0===$.Widget?$.widget.prototype.destroy.apply(this,arguments):$.Widget.prototype.destroy.apply(this,arguments)}),$.jgrid._multiselect=!0}$.jgrid.extend({sortableColumns:function(e){return this.each((function(){function t(){i.p.disableClick=!0}var i=this,n=$.jgrid.jqID(i.p.id),r={tolerance:"pointer",axis:"x",scrollSensitivity:"1",items:">th:not(:has(#jqgh_"+n+"_cb,#jqgh_"+n+"_rn,#jqgh_"+n+"_subgrid),:hidden)",placeholder:{element:function(e){return $(document.createElement(e[0].nodeName)).addClass(e[0].className+" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(e,t){t.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),t.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}},update:function(e,t){var n=$(t.item).parent(),r=$(">th",n),o=i.p.colModel,a={},s=i.p.id+"_";$.each(o,(function(e){a[this.name]=e}));var l=[];r.each((function(){var e=$(">div",this).get(0).id.replace(/^jqgh_/,"").replace(s,"");a.hasOwnProperty(e)&&l.push(a[e])})),$(i).jqGrid("remapColumns",l,!0,!0),$.isFunction(i.p.sortable.update)&&i.p.sortable.update(l,i),setTimeout((function(){i.p.disableClick=!1}),50)}};if(i.p.sortable.options?$.extend(r,i.p.sortable.options):$.isFunction(i.p.sortable)&&(i.p.sortable={update:i.p.sortable}),r.start){var o=r.start;r.start=function(e,i){t(),o.call(this,e,i)}}else r.start=t;i.p.sortable.exclude&&(r.items+=":not("+i.p.sortable.exclude+")");var a=e.sortable(r),s=a.data("sortable")||a.data("uiSortable");null!=s&&(s.data("sortable").floating=!0)}))},columnChooser:function(e){function t(e,t){e&&("string"==typeof e?$.fn[e]&&$.fn[e].apply(t,$.makeArray(arguments).slice(2)):$.isFunction(e)&&e.apply(t,$.makeArray(arguments).slice(2)))}var i,n,r,o,a,s,l,c=this,u={},d=[],p=c.jqGrid("getGridParam","colModel"),h=c.jqGrid("getGridParam","colNames"),f=function(e){return $.ui.multiselect.prototype&&e.data($.ui.multiselect.prototype.widgetFullName||$.ui.multiselect.prototype.widgetName)||e.data("ui-multiselect")||e.data("multiselect")},g=$.jgrid.getRegional(this[0],"col");if(!$("#colchooser_"+$.jgrid.jqID(c[0].p.id)).length){if(i=$('<div id="colchooser_'+c[0].p.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"></select></div></div>'),n=$("select",i),e=$.extend({width:400,height:240,classname:null,done:function(e){e&&c.jqGrid("remapColumns",e,!0)},msel:"multiselect",dlog:"dialog",dialog_opts:{minWidth:470,dialogClass:"ui-jqdialog"},dlog_opts:function(e){var t={};return t[e.bSubmit]=function(){e.apply_perm(),e.cleanup(!1)},t[e.bCancel]=function(){e.cleanup(!0)},$.extend(!0,{buttons:t,close:function(){e.cleanup(!0)},modal:e.modal||!1,resizable:e.resizable||!0,width:e.width+70,resize:function(){var e=f(n),t=e.container.closest(".ui-dialog-content");t.length>0&&"object"==typeof t[0].style?t[0].style.width="":t.css("width",""),e.selectedList.height(Math.max(e.selectedContainer.height()-e.selectedActions.outerHeight()-1,1)),e.availableList.height(Math.max(e.availableContainer.height()-e.availableActions.outerHeight()-1,1))}},e.dialog_opts||{})},apply_perm:function(){var t=[];$("option",n).each((function(){$(this).is(":selected")?c.jqGrid("showCol",p[this.value].name):c.jqGrid("hideCol",p[this.value].name)})),$("option[selected]",n).each((function(){t.push(parseInt(this.value,10))})),$.each(t,(function(){delete u[p[parseInt(this,10)].name]})),$.each(u,(function(){var e=parseInt(this,10);t=function(e,t,i){var n,r;return t>=0?(r=(n=e.slice()).splice(t,Math.max(e.length-t,t)),t>e.length&&(t=e.length),n[t]=i,n.concat(r)):e}(t,e,e)})),e.done&&e.done.call(c,t),c.jqGrid("setGridWidth",c[0].p.width,c[0].p.shrinkToFit)},cleanup:function(r){t(e.dlog,i,"destroy"),t(e.msel,n,"destroy"),i.remove(),r&&e.done&&e.done.call(c)},msel_opts:{}},g,e||{}),$.ui&&$.ui.multiselect&&$.ui.multiselect.defaults){if(!$.jgrid._multiselect)return void $.log("warn","Multiselect plugin loaded after jqGrid. Please load the plugin before the jqGrid!");e.msel_opts=$.extend($.ui.multiselect.defaults,e.msel_opts)}e.caption&&i.attr("title",e.caption),e.classname&&(i.addClass(e.classname),n.addClass(e.classname)),e.width&&($(">div",i).css({width:e.width,margin:"0 auto"}),n.css("width",e.width)),e.height&&($(">div",i).css("height",e.height),n.css("height",e.height-10)),n.empty(),$.each(p,(function(e){return u[this.name]=e,this.hidedlg?void(this.hidden||d.push(e)):void n.append("<option value='"+e+"' "+(this.hidden?"":"selected='selected'")+">"+$.jgrid.stripHtml(h[e])+"</option>")})),r=$.isFunction(e.dlog_opts)?e.dlog_opts.call(c,e):e.dlog_opts,t(e.dlog,i,r),o=$.isFunction(e.msel_opts)?e.msel_opts.call(c,e):e.msel_opts,t(e.msel,n,o),(a=$("#colchooser_"+$.jgrid.jqID(c[0].p.id))).css({margin:"auto"}),a.find(">div").css({width:"100%",height:"100%",margin:"auto"}),(s=f(n)).container.css({width:"100%",height:"100%",margin:"auto"}),s.selectedContainer.css({width:100*s.options.dividerLocation+"%",height:"100%",margin:"auto",boxSizing:"border-box"}),s.availableContainer.css({width:100-100*s.options.dividerLocation+"%",height:"100%",margin:"auto",boxSizing:"border-box"}),s.selectedList.css("height","auto"),s.availableList.css("height","auto"),l=Math.max(s.selectedList.height(),s.availableList.height()),l=Math.min(l,$(window).height()),s.selectedList.css("height",l),s.availableList.css("height",l)}},sortableRows:function(e){return this.each((function(){var t=this;t.grid&&(t.p.treeGrid||$.fn.sortable&&((e=$.extend({cursor:"move",axis:"y",items:" > .jqgrow"},e||{})).start&&$.isFunction(e.start)?(e._start_=e.start,delete e.start):e._start_=!1,e.update&&$.isFunction(e.update)?(e._update_=e.update,delete e.update):e._update_=!1,e.start=function(i,n){if($(n.item).css("border-width","0"),$("td",n.item).each((function(e){this.style.width=t.grid.cols[e].style.width})),t.p.subGrid){var r=$(n.item).attr("id");try{$(t).jqGrid("collapseSubGridRow",r)}catch(e){}}e._start_&&e._start_.apply(this,[i,n])},e.update=function(i,n){$(n.item).css("border-width",""),!0===t.p.rownumbers&&$("td.jqgrid-rownum",t.rows).each((function(e){$(this).html(e+1+(parseInt(t.p.page,10)-1)*parseInt(t.p.rowNum,10))})),e._update_&&e._update_.apply(this,[i,n])},$("tbody:first",t).sortable(e),$("tbody:first > .jqgrow",t).disableSelection()))}))},gridDnD:function(e){return this.each((function(){function t(){var e=$.data(r,"dnd");$("tr.jqgrow:not(.ui-draggable)",r).draggable($.isFunction(e.drag)?e.drag.call($(r),e):e.drag)}var i,n,r=this;if(r.grid&&!r.p.treeGrid&&$.fn.draggable&&$.fn.droppable){if(void 0===$("#jqgrid_dnd")[0]&&$("body").append("<table id='jqgrid_dnd' class='ui-jqgrid-dnd'></table>"),"string"==typeof e&&"updateDnD"===e&&!0===r.p.jqgdnd)return void t();if((e=$.extend({drag:function(e){return $.extend({start:function(t,i){var n,o;if(r.p.subGrid){o=$(i.helper).attr("id");try{$(r).jqGrid("collapseSubGridRow",o)}catch(e){}}for(n=0;n<$.data(r,"dnd").connectWith.length;n++)0===$($.data(r,"dnd").connectWith[n]).jqGrid("getGridParam","reccount")&&$($.data(r,"dnd").connectWith[n]).jqGrid("addRowData","jqg_empty_row",{});i.helper.addClass("ui-state-highlight"),$("td",i.helper).each((function(e){this.style.width=r.grid.headers[e].width+"px"})),e.onstart&&$.isFunction(e.onstart)&&e.onstart.call($(r),t,i)},stop:function(t,i){var n,o;for(i.helper.dropped&&!e.dragcopy&&(void 0===(o=$(i.helper).attr("id"))&&(o=$(this).attr("id")),$(r).jqGrid("delRowData",o)),n=0;n<$.data(r,"dnd").connectWith.length;n++)$($.data(r,"dnd").connectWith[n]).jqGrid("delRowData","jqg_empty_row");e.onstop&&$.isFunction(e.onstop)&&e.onstop.call($(r),t,i)}},e.drag_opts||{})},drop:function(e){return $.extend({accept:function(e){if(!$(e).hasClass("jqgrow"))return e;var t=$(e).closest("table.ui-jqgrid-btable");if(t.length>0&&void 0!==$.data(t[0],"dnd")){var i=$.data(t[0],"dnd").connectWith;return-1!==$.inArray("#"+$.jgrid.jqID(this.id),i)}return!1},drop:function(t,i){if($(i.draggable).hasClass("jqgrow")){var n,o=$(i.draggable).attr("id"),a=i.draggable.parent().parent().jqGrid("getRowData",o);if(!e.dropbyname){var s,l,c=0,u={},d=$("#"+$.jgrid.jqID(this.id)).jqGrid("getGridParam","colModel");try{for(l in a)a.hasOwnProperty(l)&&("cb"!==(s=d[c].name)&&"rn"!==s&&"subgrid"!==s&&a.hasOwnProperty(l)&&d[c]&&(u[s]=a[l]),c++);a=u}catch(e){}}if(i.helper.dropped=!0,e.beforedrop&&$.isFunction(e.beforedrop)){var p=e.beforedrop.call(this,t,i,a,$("#"+$.jgrid.jqID(r.p.id)),$(this));null!=p&&"object"==typeof p&&(a=p)}i.helper.dropped&&(e.autoid&&($.isFunction(e.autoid)?n=e.autoid.call(this,a):(n=Math.ceil(1e3*Math.random()),n=e.autoidprefix+n)),$("#"+$.jgrid.jqID(this.id)).jqGrid("addRowData",n,a,e.droppos)),e.ondrop&&$.isFunction(e.ondrop)&&e.ondrop.call(this,t,i,a)}}},e.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hover"},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jqgrid_dnd",zIndex:5e3},dragcopy:!1,dropbyname:!1,droppos:"first",autoid:!0,autoidprefix:"dnd_"},e||{})).connectWith)for(e.connectWith=e.connectWith.split(","),e.connectWith=$.map(e.connectWith,(function(e){return $.trim(e)})),$.data(r,"dnd",e),0===r.p.reccount||r.p.jqgdnd||t(),r.p.jqgdnd=!0,i=0;i<e.connectWith.length;i++)n=e.connectWith[i],$(n).droppable($.isFunction(e.drop)?e.drop.call($(r),e):e.drop)}}))},gridResize:function(e){return this.each((function(){var t,i=this,n=$.jgrid.jqID(i.p.id);if(i.grid&&$.fn.resizable){if((e=$.extend({},e||{})).alsoResize?(e._alsoResize_=e.alsoResize,delete e.alsoResize):e._alsoResize_=!1,e.stop&&$.isFunction(e.stop)?(e._stop_=e.stop,delete e.stop):e._stop_=!1,e.stop=function(r,o){$(i).jqGrid("setGridParam",{height:$("#gview_"+n+" .ui-jqgrid-bdiv").height()}),$(i).jqGrid("setGridWidth",o.size.width,e.shrinkToFit),e._stop_&&e._stop_.call(i,r,o),i.p.caption&&$("#gbox_"+n).css({height:"auto"}),i.p.frozenColumns&&(t&&clearTimeout(t),t=setTimeout((function(){t&&clearTimeout(t),$("#"+n).jqGrid("destroyFrozenColumns"),$("#"+n).jqGrid("setFrozenColumns")})))},e._alsoResize_){var r="{'#gview_"+n+" .ui-jqgrid-bdiv':true,'"+e._alsoResize_+"':true}";e.alsoResize=$.decode(r)}else e.alsoResize=$(".ui-jqgrid-bdiv","#gview_"+n);delete e._alsoResize_,$("#gbox_"+n).resizable(e)}}))}}),$.assocArraySize=function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&i++;return i},$.jgrid.extend({pivotSetup:function(e,t){var i=[],n=[],r=[],o=[],a=[],s={grouping:!0,groupingView:{groupField:[],groupSummary:[],groupSummaryPos:[]}},l=[],c=$.extend({rowTotals:!1,rowTotalsText:"Total",colTotals:!1,groupSummary:!0,groupSummaryPos:"header",frozenStaticCols:!1},t||{});return this.each((function(){function t(e,t,i){var n;return(n=_pivotfilter.call(e,t,i)).length>0?n[0]:null}function u(e,t){var i,n=0,r=!0;for(i in e)if(e.hasOwnProperty(i)){if(e[i]!=this[n]){r=!1;break}if(++n>=this.length)break}return r&&(f=t),r}function d(e,t,i,n,r){var o;switch(e){case"sum":o=parseFloat(t||0)+parseFloat(n[i]||0);break;case"count":""!==t&&null!=t||(t=0),o=n.hasOwnProperty(i)?t+1:0;break;case"min":o=""===t||null==t?parseFloat(n[i]||0):Math.min(parseFloat(t),parseFloat(n[i]||0));break;case"max":o=""===t||null==t?parseFloat(n[i]||0):Math.max(parseFloat(t),parseFloat(n[i]||0));break;case"avg":o=(parseFloat(t||0)*(r-1)+parseFloat(n[i]||0))/r}return o}function p(e,t,i,n){var r,s,l,c,u=t.length,p="",h=[];for($.isArray(i)?(c=i.length,h=i):(c=1,h[0]=i),a=[],(o=[]).root=0,n._count?n._count++:n._count=1,l=0;l<c;l++){var f,g=[];for(r=0;r<u;r++){if(null==i)f=s=$.trim(t[r].member)+"_"+t[r].aggregator,h[0]=t[r].label||t[r].aggregator+" "+$.trim(t[r].member);else{f=i[l].replace(/\s+/g,"");try{s=1===u?p+f:p+f+"_"+t[r].aggregator+"_"+String(r)}catch(e){}h[l]=i[l]}n[s=isNaN(parseInt(s,10))?s:s+" "]=g[s]=d(t[r].aggregator,n[s],t[r].member,e,n._count)}p+=i[l].replace(/\s+/g,""),o[s]=g,a[s]=h[l]}return n}var h,f,g,m,v,y,b,w,_,x=e.length,C=0;if(c.rowTotals&&c.yDimension.length>0){var k=c.yDimension[0].dataName;c.yDimension.splice(0,0,{dataName:k}),c.yDimension[0].converter=function(){return"_r_Totals"}}if(m=$.isArray(c.xDimension)?c.xDimension.length:0,v=c.yDimension.length,y=$.isArray(c.aggregates)?c.aggregates.length:0,0===m||0===y)throw"xDimension or aggregates optiona are not set!";for(g=0;g<m;g++)_={name:c.xDimension[g].dataName,frozen:c.frozenStaticCols},null==c.xDimension[g].isGroupField&&(c.xDimension[g].isGroupField=!0),_=$.extend(!0,_,c.xDimension[g]),i.push(_);for(var S=m-1,E={};C<x;){h=e[C];var j=[],D=[];b={},g=0;do{j[g]=$.trim(h[c.xDimension[g].dataName]),b[c.xDimension[g].dataName]=j[g],g++}while(g<m);var T=0;if(f=-1,w=t(n,u,j)){if(f>=0){if(T=0,v>=1){for(T=0;T<v;T++)D[T]=$.trim(h[c.yDimension[T].dataName]),c.yDimension[T].converter&&$.isFunction(c.yDimension[T].converter)&&(D[T]=c.yDimension[T].converter.call(this,D[T],j,D));w=p(h,c.aggregates,D,w)}else 0===v&&(w=p(h,c.aggregates,null,w));n[f]=w}}else{if(T=0,v>=1){for(T=0;T<v;T++)D[T]=$.trim(h[c.yDimension[T].dataName]),c.yDimension[T].converter&&$.isFunction(c.yDimension[T].converter)&&(D[T]=c.yDimension[T].converter.call(this,D[T],j,D));b=p(h,c.aggregates,D,b)}else 0===v&&(b=p(h,c.aggregates,null,b));n.push(b)}var I,A=0,O=null,N=null;for(I in o)if(o.hasOwnProperty(I)){if(0===A)E.children&&void 0!==E.children||(E={text:I,level:0,children:[],label:I}),O=E.children;else{for(N=null,g=0;g<O.length;g++)if(O[g].text===I){N=O[g];break}N?O=N.children:(O.push({children:[],text:I,level:A,fields:o[I],label:a[I]}),O=O[O.length-1].children)}A++}C++}var P,M=[],F=i.length,R=F;if(v>0&&(l[v-1]={useColSpanStyle:!1,groupHeaders:[]}),function e(t){var n,r,o,a,s;for(o in t)if(t.hasOwnProperty(o)){if("object"!=typeof t[o]){if("level"===o){if(void 0===M[t.level]&&(M[t.level]="",t.level>0&&-1===t.text.indexOf("_r_Totals")&&(l[t.level-1]={useColSpanStyle:!1,groupHeaders:[]})),M[t.level]!==t.text&&t.children.length&&-1===t.text.indexOf("_r_Totals")&&t.level>0){l[t.level-1].groupHeaders.push({titleText:t.label,numberOfColumns:0});var u=l[t.level-1].groupHeaders.length-1,d=0===u?R:F;if(t.level-1==(c.rowTotals?1:0)&&u>0){for(var p=0,h=0;h<u;h++)p+=l[t.level-1].groupHeaders[h].numberOfColumns;p&&(d=p+m)}i[d]&&(l[t.level-1].groupHeaders[u].startColumnName=i[d].name,l[t.level-1].groupHeaders[u].numberOfColumns=i.length-d),F=i.length}M[t.level]=t.text}if(t.level===v&&"level"===o&&v>0)if(y>1){var f=1;for(n in t.fields)t.fields.hasOwnProperty(n)&&(1===f&&l[v-1].groupHeaders.push({startColumnName:n,numberOfColumns:1,titleText:t.label||t.text}),f++);l[v-1].groupHeaders[l[v-1].groupHeaders.length-1].numberOfColumns=f-1}else l.splice(v-1,1)}if(null!=t[o]&&"object"==typeof t[o]&&e(t[o]),"level"===o&&t.level>0&&(t.level===(0===v?t.level:v)||-1!==M[t.level].indexOf("_r_Totals")))for(n in r=0,t.fields)if(t.fields.hasOwnProperty(n)){for(a in s={},c.aggregates[r])if(c.aggregates[r].hasOwnProperty(a))switch(a){case"member":case"label":case"aggregator":break;default:s[a]=c.aggregates[r][a]}y>1?(s.name=n,s.label=c.aggregates[r].label||t.label):(s.name=t.text,s.label="_r_Totals"===t.text?c.rowTotalsText:t.label),i.push(s),r++}}}(E),c.colTotals)for(var L=n.length;L--;)for(g=m;g<i.length;g++)P=i[g].name,r[P]?r[P]+=parseFloat(n[L][P]||0):r[P]=parseFloat(n[L][P]||0);if(S>0)for(g=0;g<S;g++)i[g].isGroupField&&(s.groupingView.groupField.push(i[g].name),s.groupingView.groupSummary.push(c.groupSummary),s.groupingView.groupSummaryPos.push(c.groupSummaryPos));else s.grouping=!1;s.sortname=i[S].name,s.groupingView.hideFirstGroupCol=!0})),{colModel:i,rows:n,groupOptions:s,groupHeaders:l,summary:r}},jqPivot:function(e,t,i,n){return this.each((function(){function r(e){var n,r,a,s,l=Eui(o).jqGrid("pivotSetup",e,t),c=$.assocArraySize(l.summary)>0,u=$.jgrid.from.call(o,l.rows);for(t.ignoreCase&&(u=u.ignoreCase()),n=0;n<l.groupOptions.groupingView.groupField.length;n++)r=t.xDimension[n].sortorder?t.xDimension[n].sortorder:"asc",a=t.xDimension[n].sorttype?t.xDimension[n].sorttype:"text",u.orderBy(l.groupOptions.groupingView.groupField[n],r,a,"",a);if(s=t.xDimension.length,i.sortname){for(r=i.sortorder?i.sortorder:"asc",a="text",n=0;n<s;n++)if(t.xDimension[n].dataName===i.sortname){a=t.xDimension[n].sorttype?t.xDimension[n].sorttype:"text";break}u.orderBy(i.sortname,r,a,"",a)}else l.groupOptions.sortname&&s&&(r=t.xDimension[s-1].sortorder?t.xDimension[s-1].sortorder:"asc",a=t.xDimension[s-1].sorttype?t.xDimension[s-1].sorttype:"text",u.orderBy(l.groupOptions.sortname,r,a,"",a));Eui(o).jqGrid($.extend(!0,{datastr:$.extend(u.select(),c?{userdata:l.summary}:{}),datatype:"jsonstring",footerrow:c,userDataOnFooter:c,colModel:l.colModel,viewrecords:!0,sortname:t.xDimension[0].dataName},l.groupOptions,i||{}));var d=l.groupHeaders;if(d.length)for(n=0;n<d.length;n++)d[n]&&d[n].groupHeaders.length&&Eui(o).jqGrid("setGroupHeaders",d[n]);t.frozenStaticCols&&Eui(o).jqGrid("setFrozenColumns")}var o=this;"string"==typeof e?$.postToRemote($.extend({url:e,dataType:"json",success:function(e){r($.jgrid.getAccessor(e,n&&n.reader?n.reader:"rows"))}},n||{})):r(e)}))}}),$.jgrid.extend({setSubGrid:function(){return this.each((function(){var e,t,i=this,n=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].subgrid,r={plusicon:n.icon_plus,minusicon:n.icon_minus,openicon:n.icon_open,expandOnLoad:!1,delayOnLoad:50,selectOnExpand:!1,selectOnCollapse:!1,reloadOnExpand:!0};if(i.p.subGridOptions=$.extend(r,i.p.subGridOptions||{}),i.p.colNames.unshift(""),i.p.colModel.unshift({name:"subgrid",width:$.jgrid.cell_width?i.p.subGridWidth+i.p.cellLayout:i.p.subGridWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,fixed:!0}),(e=i.p.subGridModel)[0])for(e[0].align=$.extend([],e[0].align||[]),t=0;t<e[0].name.length;t++)e[0].align[t]=e[0].align[t]||"left"}))},addSubGridCell:function(e,t){var i,n,r,o="";return this.each((function(){o=this.formatCol(e,t),n=this.p.id,i=this.p.subGridOptions.plusicon,r=$.jgrid.styleUI[this.p.styleUI||"EuiUI"].common})),'<td role="gridcell" aria-describedby="'+n+'_subgrid" class="ui-sgcollapsed sgcollapsed" '+o+"><a style='cursor:pointer;' class='ui-sghref'><span class='"+r.icon_base+" "+i+"'></span></a></td>"},addSubGrid:function(e,t){return this.each((function(){var i=this;if(i.grid){var n,r,o,a,s,l=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].base,c=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].common,u=function(e,t,n){var r=$("<td align='"+i.p.subGridModel[0].align[n]+"'></td>").html(t);$(e).append(r)},d=function(e,t){var n,r,o,a=$("<table class='"+l.rowTable+" ui-common-table'><tbody></tbody></table>"),s=$("<tr></tr>");for(r=0;r<i.p.subGridModel[0].name.length;r++)n=$("<th class='"+l.headerBox+" ui-th-subgrid ui-th-column ui-th-"+i.p.direction+"'></th>"),$(n).html(i.p.subGridModel[0].name[r]),$(n).width(i.p.subGridModel[0].width[r]),$(s).append(n);$(a).append(s),e&&(o=i.p.xmlReader.subgrid,$(o.root+" "+o.row,e).each((function(){if(s=$("<tr class='"+c.content+" ui-subtblcell'></tr>"),!0===o.repeatitems)$(o.cell,this).each((function(e){u(s,$(this).text()||" ",e)}));else{var e=i.p.subGridModel[0].mapping||i.p.subGridModel[0].name;if(e)for(r=0;r<e.length;r++)u(s,$(e[r],this).text()||" ",r)}$(a).append(s)})));var d=$("table:first",i.grid.bDiv).attr("id")+"_";return $("#"+$.jgrid.jqID(d+t)).append(a),i.grid.hDiv.loading=!1,$("#load_"+$.jgrid.jqID(i.p.id)).hide(),!1},p=function(e,t){var n,r,o,a,s,d,p=$("<table class='"+l.rowTable+" ui-common-table'><tbody></tbody></table>"),h=$("<tr></tr>");for(o=0;o<i.p.subGridModel[0].name.length;o++)n=$("<th class='"+l.headerBox+" ui-th-subgrid ui-th-column ui-th-"+i.p.direction+"'></th>"),$(n).html(i.p.subGridModel[0].name[o]),$(n).width(i.p.subGridModel[0].width[o]),$(h).append(n);if($(p).append(h),e&&(s=i.p.jsonReader.subgrid,void 0!==(r=$.jgrid.getAccessor(e,s.root))))for(o=0;o<r.length;o++){if(a=r[o],h=$("<tr class='"+c.content+" ui-subtblcell'></tr>"),!0===s.repeatitems)for(s.cell&&(a=a[s.cell]),d=0;d<a.length;d++)u(h,a[d]||" ",d);else{var f=i.p.subGridModel[0].mapping||i.p.subGridModel[0].name;if(f.length)for(d=0;d<f.length;d++)u(h,a[f[d]]||" ",d)}$(p).append(h)}var g=$("table:first",i.grid.bDiv).attr("id")+"_";return $("#"+$.jgrid.jqID(g+t)).append(p),i.grid.hDiv.loading=!1,$("#load_"+$.jgrid.jqID(i.p.id)).hide(),!1},h=function(e){var t,n,r,o;if(t=$(e).attr("id"),(n={nd_:(new Date).getTime()})[i.p.prmNames.subgridid]=t,!i.p.subGridModel[0])return!1;if(i.p.subGridModel[0].params)for(o=0;o<i.p.subGridModel[0].params.length;o++)for(r=0;r<i.p.colModel.length;r++)i.p.colModel[r].name===i.p.subGridModel[0].params[o]&&(n[i.p.colModel[r].name]=$("td:eq("+r+")",e).text().replace(/\ \;/gi,""));if(!i.grid.hDiv.loading)switch(i.grid.hDiv.loading=!0,$("#load_"+$.jgrid.jqID(i.p.id)).show(),i.p.subgridtype||(i.p.subgridtype=i.p.datatype),$.isFunction(i.p.subgridtype)?i.p.subgridtype.call(i,n):i.p.subgridtype=i.p.subgridtype.toLowerCase(),i.p.subgridtype){case"xml":case"json":$.postToRemote($.extend({type:i.p.mtype,url:$.isFunction(i.p.subGridUrl)?i.p.subGridUrl.call(i,n):i.p.subGridUrl,dataType:i.p.subgridtype,data:$.isFunction(i.p.serializeSubGridData)?i.p.serializeSubGridData.call(i,n):n,complete:function(e){"xml"===i.p.subgridtype?d(e.responseXML,t):p($.jgrid.parse(e.responseText),t),e=null}},$.jgrid.ajaxOptions,i.p.ajaxSubgridOptions||{}))}return!1},f=0;$.each(i.p.colModel,(function(){!0!==this.hidden&&"rn"!==this.name&&"cb"!==this.name||f++}));var g=i.rows.length,m=1,v=$.isFunction(i.p.isHasSubGrid);for(void 0!==t&&t>0&&(m=t,g=t+1);m<g;){if($(i.rows[m]).hasClass("jqgrow")){if(i.p.scroll&&$(i.rows[m].cells[e]).off("click"),y=null,v)var y=i.p.isHasSubGrid.call(i,i.rows[m].id);!1===y?i.rows[m].cells[e].innerHTML="":$(i.rows[m].cells[e]).on("click",(function(){var t=$(this).parent("tr")[0];if(r=i.p.id,n=t.id,s=$("#"+r+"_"+n+"_expandedContent"),$(this).hasClass("sgcollapsed")){if((a=!1!==(a=$(i).triggerHandler("jqGridSubGridBeforeExpand",[r+"_"+n,n]))&&"stop"!==a)&&$.isFunction(i.p.subGridBeforeExpand)&&(a=i.p.subGridBeforeExpand.call(i,r+"_"+n,n)),!1===a)return!1;!0===i.p.subGridOptions.reloadOnExpand||!1===i.p.subGridOptions.reloadOnExpand&&!s.hasClass("ui-subgrid")?(o=e>=1?"<td colspan='"+e+"'> </td>":"",$(t).after("<tr role='row' id='"+r+"_"+n+"_expandedContent' class='ui-subgrid ui-sg-expanded'>"+o+"<td class='"+c.content+" subgrid-cell'><span class='"+c.icon_base+" "+i.p.subGridOptions.openicon+"'></span></td><td colspan='"+parseInt(i.p.colNames.length-1-f,10)+"' class='"+c.content+" subgrid-data'><div id="+r+"_"+n+" class='tablediv'></div></td></tr>"),$(i).triggerHandler("jqGridSubGridRowExpanded",[r+"_"+n,n]),$.isFunction(i.p.subGridRowExpanded)?i.p.subGridRowExpanded.call(i,r+"_"+n,n):h(t)):s.show().removeClass("ui-sg-collapsed").addClass("ui-sg-expanded"),$(this).html("<a style='cursor:pointer;' class='ui-sghref'><span class='"+c.icon_base+" "+i.p.subGridOptions.minusicon+"'></span></a>").removeClass("sgcollapsed").addClass("sgexpanded"),i.p.subGridOptions.selectOnExpand&&$(i).jqGrid("setSelection",n)}else if($(this).hasClass("sgexpanded")){if((a=!1!==(a=$(i).triggerHandler("jqGridSubGridRowColapsed",[r+"_"+n,n]))&&"stop"!==a)&&$.isFunction(i.p.subGridRowColapsed)&&(a=i.p.subGridRowColapsed.call(i,r+"_"+n,n)),!1===a)return!1;!0===i.p.subGridOptions.reloadOnExpand?s.remove(".ui-subgrid"):s.hasClass("ui-subgrid")&&s.hide().addClass("ui-sg-collapsed").removeClass("ui-sg-expanded"),$(this).html("<a style='cursor:pointer;' class='ui-sghref'><span class='"+c.icon_base+" "+i.p.subGridOptions.plusicon+"'></span></a>").removeClass("sgexpanded").addClass("sgcollapsed"),i.p.subGridOptions.selectOnCollapse&&$(i).jqGrid("setSelection",n)}return!1}))}m++}!0===i.p.subGridOptions.expandOnLoad&&$(i.rows).filter(".jqgrow").each((function(e,t){$(t.cells[0]).click()})),i.subGridXml=function(e,t){d(e,t)},i.subGridJson=function(e,t){p(e,t)}}}))},expandSubGridRow:function(e){return this.each((function(){if((this.grid||e)&&!0===this.p.subGrid){var t=$(this).jqGrid("getInd",e,!0);if(t){var i=$("td.sgcollapsed",t)[0];i&&$(i).trigger("click")}}}))},collapseSubGridRow:function(e){return this.each((function(){if((this.grid||e)&&!0===this.p.subGrid){var t=$(this).jqGrid("getInd",e,!0);if(t){var i=$("td.sgexpanded",t)[0];i&&$(i).trigger("click")}}}))},toggleSubGridRow:function(e){return this.each((function(){if((this.grid||e)&&!0===this.p.subGrid){var t=$(this).jqGrid("getInd",e,!0);if(t){var i=$("td.sgcollapsed",t)[0];(i||(i=$("td.sgexpanded",t)[0]))&&$(i).trigger("click")}}}))}}),$.jgrid.extend({setTreeNode:function(e,t){return this.each((function(){var i=this;if(i.grid&&i.p.treeGrid){var n,r,o,a,s,l,c,u,d=i.p.expColInd,p=i.p.treeReader.expanded_field,h=i.p.treeReader.leaf_field,f=i.p.treeReader.level_field,g=i.p.treeReader.icon_field,m=i.p.treeReader.loaded,v=$.jgrid.styleUI[i.p.styleUI||"EuiUI"].common,y=e;for($(i).triggerHandler("jqGridBeforeSetTreeNode",[y,t]),$.isFunction(i.p.beforeSetTreeNode)&&i.p.beforeSetTreeNode.call(i,y,t);e<t;){var b=$.jgrid.stripPref(i.p.idPrefix,i.rows[e].id),w=i.p._index[b];c=i.p.data[w],"nested"===i.p.treeGridModel&&(c[h]||(n=parseInt(c[i.p.treeReader.left_field],10),r=parseInt(c[i.p.treeReader.right_field],10),c[h]=r===n+1?"true":"false",i.rows[e].cells[i.p._treeleafpos].innerHTML=c[h])),o=parseInt(c[f],10),0===i.p.tree_root_level?(a=o+1,s=o):(a=o,s=o-1),l="<div class='tree-wrap tree-wrap-"+i.p.direction+"' style='width:"+18*a+"px;'>",l+="<div style='"+("rtl"===i.p.direction?"right:":"left:")+18*s+"px;' class='"+v.icon_base+" ",void 0!==c[m]&&("true"===c[m]||!0===c[m]?c[m]=!0:c[m]=!1),"true"===c[h]||!0===c[h]?(l+=(void 0!==c[g]&&""!==c[g]?c[g]:i.p.treeIcons.leaf)+" tree-leaf treeclick",c[h]=!0,u="leaf"):(c[h]=!1,u=""),c[p]=("true"===c[p]||!0===c[p])&&(c[m]||void 0===c[m]),l+=!1===c[p]?!0===c[h]?"'":i.p.treeIcons.plus+" tree-plus treeclick'":!0===c[h]?"'":i.p.treeIcons.minus+" tree-minus treeclick'",l+="></div></div>",$(i.rows[e].cells[d]).wrapInner("<span class='cell-wrapper"+u+"'></span>").prepend(l),o!==parseInt(i.p.tree_root_level,10)&&($(i).jqGrid("isVisibleNode",c)||$(i.rows[e]).css("display","none")),$(i.rows[e].cells[d]).find("div.treeclick").on("click",(function(e){var t=e.target||e.srcElement,n=$.jgrid.stripPref(i.p.idPrefix,$(t,i.rows).closest("tr.jqgrow")[0].id),r=i.p._index[n];return i.p.data[r][h]||(i.p.data[r][p]?($(i).jqGrid("collapseRow",i.p.data[r]),$(i).jqGrid("collapseNode",i.p.data[r])):($(i).jqGrid("expandRow",i.p.data[r]),$(i).jqGrid("expandNode",i.p.data[r]))),!1})),!0===i.p.ExpandColClick&&$(i.rows[e].cells[d]).find("span.cell-wrapper").css("cursor","pointer").on("click",(function(e){var t=e.target||e.srcElement,n=$.jgrid.stripPref(i.p.idPrefix,$(t,i.rows).closest("tr.jqgrow")[0].id),r=i.p._index[n];return i.p.data[r][h]||(i.p.data[r][p]?($(i).jqGrid("collapseRow",i.p.data[r]),$(i).jqGrid("collapseNode",i.p.data[r])):($(i).jqGrid("expandRow",i.p.data[r]),$(i).jqGrid("expandNode",i.p.data[r]))),$(i).jqGrid("setSelection",n),!1})),e++}$(i).triggerHandler("jqGridAfterSetTreeNode",[y,t]),$.isFunction(i.p.afterSetTreeNode)&&i.p.afterSetTreeNode.call(i,y,t)}}))},setTreeGrid:function(){return this.each((function(){var e,t,i,n,r=this,o=0,a=!1,s=[],l=$.jgrid.styleUI[r.p.styleUI||"EuiUI"].treegrid;if(r.p.treeGrid){for(i in r.p.treedatatype||$.extend(r.p,{treedatatype:r.p.datatype}),r.p.loadonce&&(r.p.treedatatype="local"),r.p.subGrid=!1,r.p.altRows=!1,r.p.pgbuttons=!1,r.p.pginput=!1,r.p.gridview=!0,null===r.p.rowTotal&&(r.p.rowNum=1e4),r.p.multiselect=!1,r.p.rowList=[],r.p.expColInd=0,e=l.icon_plus,"EuiUI"===r.p.styleUI&&(e+="rtl"===r.p.direction?"w":"e"),r.p.treeIcons=$.extend({plus:e,minus:l.icon_minus,leaf:l.icon_leaf},r.p.treeIcons||{}),"nested"===r.p.treeGridModel?r.p.treeReader=$.extend({level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},r.p.treeReader):"adjacency"===r.p.treeGridModel&&(r.p.treeReader=$.extend({level_field:"level",parent_id_field:"parent",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},r.p.treeReader)),r.p.colModel)if(r.p.colModel.hasOwnProperty(i))for(n in(t=r.p.colModel[i].name)!==r.p.ExpandColumn||a||(a=!0,r.p.expColInd=o),o++,r.p.treeReader)r.p.treeReader.hasOwnProperty(n)&&r.p.treeReader[n]===t&&s.push(t);$.each(r.p.treeReader,(function(e,t){t&&-1===$.inArray(t,s)&&("leaf_field"===e&&(r.p._treeleafpos=o),o++,r.p.colNames.push(t),r.p.colModel.push({name:t,width:1,hidden:!0,sortable:!1,resizable:!1,hidedlg:!0,editable:!0,search:!1}))}))}}))},expandRow:function(e){this.each((function(){var t=this;if(t.grid&&t.p.treeGrid){var i=$(t).jqGrid("getNodeChildren",e),n=t.p.treeReader.expanded_field,r=e[t.p.localReader.id];!1!==(!$.isFunction(t.p.beforeExpandTreeGridRow)||t.p.beforeExpandTreeGridRow.call(t,r,e,i))&&($(i).each((function(){var e=t.p.idPrefix+$.jgrid.getAccessor(this,t.p.localReader.id);$($(t).jqGrid("getGridRowById",e)).css("display",""),this[n]&&$(t).jqGrid("expandRow",this)})),$.isFunction(t.p.afterExpandTreeGridRow)&&t.p.afterExpandTreeGridRow.call(t,r,e,i))}}))},collapseRow:function(e){this.each((function(){var t=this;if(t.grid&&t.p.treeGrid){var i=$(t).jqGrid("getNodeChildren",e),n=t.p.treeReader.expanded_field,r=e[t.p.localReader.id];!1!==(!$.isFunction(t.p.beforeCollapseTreeGridRow)||t.p.beforeCollapseTreeGridRow.call(t,r,e,i))&&($(i).each((function(){var e=t.p.idPrefix+$.jgrid.getAccessor(this,t.p.localReader.id);$($(t).jqGrid("getGridRowById",e)).css("display","none"),this[n]&&$(t).jqGrid("collapseRow",this)})),$.isFunction(t.p.afterCollapseTreeGridRow)&&t.p.afterCollapseTreeGridRow.call(t,r,e,i))}}))},getRootNodes:function(e){var t=[];return this.each((function(){var i,n,r,o=this;if(o.grid&&o.p.treeGrid)switch("boolean"!=typeof e&&(e=!1),r=e?$(o).jqGrid("getRowData",null,!0):o.p.data,o.p.treeGridModel){case"nested":i=o.p.treeReader.level_field,$(r).each((function(){parseInt(this[i],10)===parseInt(o.p.tree_root_level,10)&&(e?t.push(o.p.data[o.p._index[this[o.p.keyName]]]):t.push(this))}));break;case"adjacency":n=o.p.treeReader.parent_id_field,$(r).each((function(){null!==this[n]&&"null"!==String(this[n]).toLowerCase()||(e?t.push(o.p.data[o.p._index[this[o.p.keyName]]]):t.push(this))}))}})),t},getNodeDepth:function(e){var t=null;return this.each((function(){if(this.grid&&this.p.treeGrid){var i=this;switch(i.p.treeGridModel){case"nested":var n=i.p.treeReader.level_field;t=parseInt(e[n],10)-parseInt(i.p.tree_root_level,10);break;case"adjacency":t=$(i).jqGrid("getNodeAncestors",e).length}}})),t},getNodeParent:function(e){var t=null;return this.each((function(){var i=this;if(i.grid&&i.p.treeGrid)switch(i.p.treeGridModel){case"nested":var n=i.p.treeReader.left_field,r=i.p.treeReader.right_field,o=i.p.treeReader.level_field,a=parseInt(e[n],10),s=parseInt(e[r],10),l=parseInt(e[o],10);$(this.p.data).each((function(){if(parseInt(this[o],10)===l-1&&parseInt(this[n],10)<a&&parseInt(this[r],10)>s)return t=this,!1}));break;case"adjacency":for(var c=i.p.treeReader.parent_id_field,u=i.p.localReader.id,d=e[u],p=i.p._index[d];p--;)if(i.p.data[p][u]===$.jgrid.stripPref(i.p.idPrefix,e[c])){t=i.p.data[p];break}}})),t},getNodeChildren:function(e,t){var i=[];return this.each((function(){var n=this;if(n.grid&&n.p.treeGrid){var r,o,a=t?this.rows.length:this.p.data.length;switch(n.p.treeGridModel){case"nested":var s=n.p.treeReader.left_field,l=n.p.treeReader.right_field,c=n.p.treeReader.level_field,u=parseInt(e[s],10),d=parseInt(e[l],10),p=parseInt(e[c],10);for(r=0;r<a;r++)(o=t?n.p.data[n.p._index[this.rows[r].id]]:n.p.data[r])&&parseInt(o[c],10)===p+1&&parseInt(o[s],10)>u&&parseInt(o[l],10)<d&&i.push(o);break;case"adjacency":var h=n.p.treeReader.parent_id_field,f=n.p.localReader.id;for(r=0;r<a;r++)(o=t?n.p.data[n.p._index[this.rows[r].id]]:n.p.data[r])&&String(o[h])===$.jgrid.stripPref(n.p.idPrefix,e[f])&&i.push(o)}}})),i},getFullTreeNode:function(e,t){var i=[];return this.each((function(){var n,r=this,o=r.p.treeReader.expanded_field;if(r.grid&&r.p.treeGrid)switch(null!=t&&"boolean"==typeof t||(t=!1),r.p.treeGridModel){case"nested":var a=r.p.treeReader.left_field,s=r.p.treeReader.right_field,l=r.p.treeReader.level_field,c=parseInt(e[a],10),u=parseInt(e[s],10),d=parseInt(e[l],10);$(this.p.data).each((function(){parseInt(this[l],10)>=d&&parseInt(this[a],10)>=c&&parseInt(this[a],10)<=u&&(t&&(this[o]=!0),i.push(this))}));break;case"adjacency":if(e){i.push(e);var p=r.p.treeReader.parent_id_field,h=r.p.localReader.id;$(this.p.data).each((function(e){for(n=i.length,e=0;e<n;e++)if($.jgrid.stripPref(r.p.idPrefix,i[e][h])===this[p]){t&&(this[o]=!0),i.push(this);break}}))}}})),i},getNodeAncestors:function(e,t,i){var n=[];return void 0===t&&(t=!1),this.each((function(){if(this.grid&&this.p.treeGrid){i=void 0!==i&&this.p.treeReader.expanded_field;for(var r=$(this).jqGrid("getNodeParent",e);r;){if(i)try{r[i]=!0}catch(e){}t?n.unshift(r):n.push(r),r=$(this).jqGrid("getNodeParent",r)}}})),n},isVisibleNode:function(e){var t=!0;return this.each((function(){var i=this;if(i.grid&&i.p.treeGrid){var n=$(i).jqGrid("getNodeAncestors",e),r=i.p.treeReader.expanded_field;$(n).each((function(){if(!(t=t&&this[r]))return!1}))}})),t},isNodeLoaded:function(e){var t;return this.each((function(){var i=this;if(i.grid&&i.p.treeGrid){var n=i.p.treeReader.leaf_field,r=i.p.treeReader.loaded;t=void 0!==e&&(void 0!==e[r]?e[r]:!!(e[n]||$(i).jqGrid("getNodeChildren",e).length>0))}})),t},setLeaf:function(e,t,i){return this.each((function(){var n=$.jgrid.getAccessor(e,this.p.localReader.id),r=$("#"+n,this.grid.bDiv)[0],o=this.p.treeReader.leaf_field;try{var a=this.p._index[n];null!=a&&(this.p.data[a][o]=t)}catch(e){}if(!0===t)$("div.treeclick",r).removeClass(this.p.treeIcons.minus+" tree-minus "+this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.leaf+" tree-leaf");else if(!1===t){var s=this.p.treeIcons.minus+" tree-minus";i&&(s=this.p.treeIcons.plus+" tree-plus"),$("div.treeclick",r).removeClass(this.p.treeIcons.leaf+" tree-leaf").addClass(s)}}))},reloadNode:function(e,t){return this.each((function(){if(this.grid&&this.p.treeGrid){var i=this.p.localReader.id,n=this.p.selrow;$(this).jqGrid("delChildren",e[i]),void 0===t&&(t=!1),t||Eui._data(this,"events").jqGridAfterSetTreeNode||$(this).on("jqGridAfterSetTreeNode.reloadNode",(function(){var e=this.p.treeReader.leaf_field;if(this.p.reloadnode){var t=this.p.reloadnode,i=$(this).jqGrid("getNodeChildren",t);t[e]&&i.length?$(this).jqGrid("setLeaf",t,!1):t[e]||0!==i.length||$(this).jqGrid("setLeaf",t,!0)}this.p.reloadnode=!1}));var r=this.p.treeReader.expanded_field,o=this.p.treeReader.parent_id_field,a=this.p.treeReader.loaded,s=this.p.treeReader.level_field,l=this.p.treeReader.leaf_field,c=this.p.treeReader.left_field,u=this.p.treeReader.right_field,d=$.jgrid.getAccessor(e,this.p.localReader.id),p=$("#"+d,this.grid.bDiv)[0];e[r]=!0,e[l]||$("div.treeclick",p).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus"),this.p.treeANode=p.rowIndex,this.p.datatype=this.p.treedatatype,this.p.reloadnode=e,t&&(this.p.treeANode=p.rowIndex>0?p.rowIndex-1:1,$(this).jqGrid("delRowData",d)),"nested"===this.p.treeGridModel?$(this).jqGrid("setGridParam",{postData:{nodeid:d,n_left:e[c],n_right:e[u],n_level:e[s]}}):$(this).jqGrid("setGridParam",{postData:{nodeid:d,parentid:e[o],n_level:e[s]}}),$(this).trigger("reloadGrid"),e[a]=!0,"nested"===this.p.treeGridModel?$(this).jqGrid("setGridParam",{selrow:n,postData:{nodeid:"",n_left:"",n_right:"",n_level:""}}):$(this).jqGrid("setGridParam",{selrow:n,postData:{nodeid:"",parentid:"",n_level:""}})}}))},expandNode:function(e){return this.each((function(){if(this.grid&&this.p.treeGrid){var t=this.p.treeReader.expanded_field,i=this.p.treeReader.parent_id_field,n=this.p.treeReader.loaded,r=this.p.treeReader.level_field,o=this.p.treeReader.left_field,a=this.p.treeReader.right_field;if(!e[t]){var s=$.jgrid.getAccessor(e,this.p.localReader.id),l=$("#"+this.p.idPrefix+$.jgrid.jqID(s),this.grid.bDiv)[0],c=this.p._index[s];if(!1===(!$.isFunction(this.p.beforeExpandTreeGridNode)||this.p.beforeExpandTreeGridNode.call(this,s,e)))return;$(this).jqGrid("isNodeLoaded",this.p.data[c])?(e[t]=!0,$("div.treeclick",l).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus")):this.grid.hDiv.loading||(e[t]=!0,$("div.treeclick",l).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus"),this.p.treeANode=l.rowIndex,this.p.datatype=this.p.treedatatype,"nested"===this.p.treeGridModel?$(this).jqGrid("setGridParam",{postData:{nodeid:s,n_left:e[o],n_right:e[a],n_level:e[r]}}):$(this).jqGrid("setGridParam",{postData:{nodeid:s,parentid:e[i],n_level:e[r]}}),$(this).trigger("reloadGrid"),e[n]=!0,"nested"===this.p.treeGridModel?$(this).jqGrid("setGridParam",{postData:{nodeid:"",n_left:"",n_right:"",n_level:""}}):$(this).jqGrid("setGridParam",{postData:{nodeid:"",parentid:"",n_level:""}})),$.isFunction(this.p.afterExpandTreeGridNode)&&this.p.afterExpandTreeGridNode.call(this,s,e)}}}))},collapseNode:function(e){return this.each((function(){if(this.grid&&this.p.treeGrid){var t=this.p.treeReader.expanded_field;if(e[t]){var i=$.jgrid.getAccessor(e,this.p.localReader.id),n=!$.isFunction(this.p.beforeCollapseTreeGridNode)||this.p.beforeCollapseTreeGridNode.call(this,i,e),r=$("#"+this.p.idPrefix+$.jgrid.jqID(i),this.grid.bDiv)[0];if(e[t]=!1,!1===n)return;$("div.treeclick",r).removeClass(this.p.treeIcons.minus+" tree-minus").addClass(this.p.treeIcons.plus+" tree-plus"),$.isFunction(this.p.afterCollapseTreeGridNode)&&this.p.afterCollapseTreeGridNode.call(this,i,e)}}}))},SortTree:function(e,t,i,n){return this.each((function(){if(this.grid&&this.p.treeGrid){var r,o,a,s,l,c=[],u=this,d=$(this).jqGrid("getRootNodes",u.p.search);for((s=$.jgrid.from.call(this,d)).orderBy(e,t,i,n),r=0,o=(l=s.select()).length;r<o;r++)a=l[r],c.push(a),$(this).jqGrid("collectChildrenSortTree",c,a,e,t,i,n);$.each(c,(function(e){var t=$.jgrid.getAccessor(this,u.p.localReader.id);$("#"+$.jgrid.jqID(u.p.id)+" tbody tr:eq("+e+")").after($("tr#"+$.jgrid.jqID(t),u.grid.bDiv))})),s=null,l=null,c=null}}))},searchTree:function(e){var t,i,n,r,o,a,s=e.length||0,l=[],c=[],u=[];return this.each((function(){if(this.grid&&this.p.treeGrid&&s)for(t=this.p.localReader.id;s--;)if((l=$(this).jqGrid("getNodeAncestors",e[s],!0,!0)).push(e[s]),i=l[0][t],-1===$.inArray(i,c))c.push(i),u=u.concat(l);else for(o=0,n=l.length;o<n;o++){var d=!1;for(a=0,r=u.length;a<r;a++)if(l[o][t]===u[a][t]){d=!0;break}d||u.push(l[o])}})),u},collectChildrenSortTree:function(e,t,i,n,r,o){return this.each((function(){var a,s,l,c,u,d;if(this.grid&&this.p.treeGrid)for(c=$(this).jqGrid("getNodeChildren",t,this.p.search),(u=$.jgrid.from.call(this,c)).orderBy(i,n,r,o),a=0,s=(d=u.select()).length;a<s;a++)l=d[a],e.push(l),$(this).jqGrid("collectChildrenSortTree",e,l,i,n,r,o)}))},setTreeRow:function(e,t){var i=!1;return this.each((function(){var n=this;n.grid&&n.p.treeGrid&&(i=$(n).jqGrid("setRowData",e,t))})),i},delTreeNode:function(e){return this.each((function(){var t,i,n,r,o,a=this,s=a.p.localReader.id,l=a.p.treeReader.left_field,c=a.p.treeReader.right_field;if(a.grid&&a.p.treeGrid){var u=a.p._index[e];if(void 0!==u){n=(i=parseInt(a.p.data[u][c],10))-parseInt(a.p.data[u][l],10)+1;var d=$(a).jqGrid("getFullTreeNode",a.p.data[u]);if(d.length>0)for(t=0;t<d.length;t++)$(a).jqGrid("delRowData",d[t][s]);if("nested"===a.p.treeGridModel){if((r=$.jgrid.from.call(a,a.p.data).greater(l,i,{stype:"integer"}).select()).length)for(o in r)r.hasOwnProperty(o)&&(r[o][l]=parseInt(r[o][l],10)-n);if((r=$.jgrid.from.call(a,a.p.data).greater(c,i,{stype:"integer"}).select()).length)for(o in r)r.hasOwnProperty(o)&&(r[o][c]=parseInt(r[o][c],10)-n)}}}}))},delChildren:function(e){return this.each((function(){var t,i,n,r,o=this,a=o.p.localReader.id,s=o.p.treeReader.left_field,l=o.p.treeReader.right_field;if(o.grid&&o.p.treeGrid){var c=o.p._index[e];if(void 0!==c){i=(t=parseInt(o.p.data[c][l],10))-parseInt(o.p.data[c][s],10)+1;var u=$(o).jqGrid("getFullTreeNode",o.p.data[c]);if(u.length>0)for(var d=0;d<u.length;d++)u[d][a]!==e&&$(o).jqGrid("delRowData",u[d][a]);if("nested"===o.p.treeGridModel){if((n=$.jgrid.from(o.p.data).greater(s,t,{stype:"integer"}).select()).length)for(r in n)n.hasOwnProperty(r)&&(n[r][s]=parseInt(n[r][s],10)-i);if((n=$.jgrid.from(o.p.data).greater(l,t,{stype:"integer"}).select()).length)for(r in n)n.hasOwnProperty(r)&&(n[r][l]=parseInt(n[r][l],10)-i)}}}}))},addChildNode:function(e,t,i,n){var r=this[0];if(i){var o,a,s,l,c,u,d,p,h=r.p.treeReader.expanded_field,f=r.p.treeReader.leaf_field,g=r.p.treeReader.level_field,m=r.p.treeReader.parent_id_field,v=r.p.treeReader.left_field,y=r.p.treeReader.right_field,b=r.p.treeReader.loaded,w=0,_=t;if(void 0===n&&(n=!1),null==e){if((c=r.p.data.length-1)>=0)for(;c>=0;)w=Math.max(w,parseInt(r.p.data[c][r.p.localReader.id],10)),c--;e=w+1}var x,C,k=$(r).jqGrid("getInd",t);if(d=!1,null==t||""===t)t=null,_=null,o="last",l=r.p.tree_root_level,c=r.p.data.length+1;else{o="after",a=r.p._index[t],t=(s=r.p.data[a])[r.p.localReader.id],l=parseInt(s[g],10)+1;var S=$(r).jqGrid("getFullTreeNode",s);S.length?(_=c=S[S.length-1][r.p.localReader.id],c=$(r).jqGrid("getInd",_)+1):c=$(r).jqGrid("getInd",t)+1,s[f]&&(d=!0,s[h]=!0,$(r.rows[k]).find("span.cell-wrapperleaf").removeClass("cell-wrapperleaf").addClass("cell-wrapper").end().find("div.tree-leaf").removeClass(r.p.treeIcons.leaf+" tree-leaf").addClass(r.p.treeIcons.minus+" tree-minus"),r.p.data[a][f]=!1,s[b]=!0)}if(u=c+1,void 0===i[h]&&(i[h]=!1),void 0===i[b]&&(i[b]=!1),i[g]=l,void 0===i[f]&&(i[f]=!0),"adjacency"===r.p.treeGridModel&&(i[m]=t),"nested"===r.p.treeGridModel)if(null!==t){if(p=parseInt(s[y],10),(x=$.jgrid.from.call(r,r.p.data).greaterOrEquals(y,p,{stype:"integer"}).select()).length)for(C in x)x.hasOwnProperty(C)&&(x[C][v]=x[C][v]>p?parseInt(x[C][v],10)+2:x[C][v],x[C][y]=x[C][y]>=p?parseInt(x[C][y],10)+2:x[C][y]);i[v]=p,i[y]=p+1}else{if(p=parseInt($(r).jqGrid("getCol",y,!1,"max"),10),(x=$.jgrid.from.call(r,r.p.data).greater(v,p,{stype:"integer"}).select()).length)for(C in x)x.hasOwnProperty(C)&&(x[C][v]=parseInt(x[C][v],10)+2);if((x=$.jgrid.from.call(r,r.p.data).greater(y,p,{stype:"integer"}).select()).length)for(C in x)x.hasOwnProperty(C)&&(x[C][y]=parseInt(x[C][y],10)+2);i[v]=p+1,i[y]=p+2}(null===t||$(r).jqGrid("isNodeLoaded",s)||d)&&($(r).jqGrid("addRowData",e,i,o,_),$(r).jqGrid("setTreeNode",c,u)),s&&!s[h]&&n&&$(r.rows[k]).find("div.treeclick").click()}}}),$.fn.jqDrag=function(e){return i(this,e,"d")},$.fn.jqResize=function(e,t){return i(this,e,"r",t)},$.jqDnR={dnr:{},e:0,drag:function(e){return"d"==M.k?E.css({left:M.X+e.pageX-M.pX,top:M.Y+e.pageY-M.pY}):(E.css({width:Math.max(e.pageX-M.pX+M.W,0),height:Math.max(e.pageY-M.pY+M.H,0)}),M1&&E1.css({width:Math.max(e.pageX-M1.pX+M1.W,0),height:Math.max(e.pageY-M1.pY+M1.H,0)})),!1},stop:function(){$(document).off("mousemove",J.drag).off("mouseup",J.stop)}};var J=$.jqDnR,M=J.dnr,E=J.e,E1,M1,i=function(e,t,i,n){return e.each((function(){(t=t?$(t,e):e).on("mousedown",{e,k:i},(function(e){var t=e.data,i={};if(E=t.e,E1=!!n&&$(n),"relative"!=E.css("position"))try{E.position(i)}catch(e){}if(M={X:i.left||f("left")||0,Y:i.top||f("top")||0,W:f("width")||E[0].scrollWidth||0,H:f("height")||E[0].scrollHeight||0,pX:e.pageX,pY:e.pageY,k:t.k},M1=!(!E1||"d"==t.k)&&{X:i.left||f1("left")||0,Y:i.top||f1("top")||0,W:E1[0].offsetWidth||f1("width")||0,H:E1[0].offsetHeight||f1("height")||0,pX:e.pageX,pY:e.pageY,k:t.k},$("input.hasDatepicker",E[0])[0])try{$("input.hasDatepicker",E[0]).datepicker("hide")}catch(e){}return $(document).mousemove($.jqDnR.drag).mouseup($.jqDnR.stop),!1}))}))},f=function(e){return parseInt(E.css(e),10)||!1},f1=function(e){return parseInt(E1.css(e),10)||!1};$.fn.tinyDraggable=function(e){var t=$.extend({handle:0,exclude:0},e);return this.each((function(){var e,i,n=$(this);(t.handle?$(t.handle,n):n).on({mousedown:function(r){if(!t.exclude||!~$.inArray(r.target,$(t.exclude,n))){r.preventDefault();var o=n.offset();e=r.pageX-o.left,i=r.pageY-o.top,$(document).on("mousemove.drag",(function(t){n.offset({top:t.pageY-i,left:t.pageX-e})}))}},mouseup:function(e){$(document).off("mousemove.drag")}})}))},$.fn.jqm=function(e){var t={overlay:50,closeoverlay:!0,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:F,ajaxText:"",target:F,modal:F,toTop:F,onShow:F,onHide:F,onLoad:F};return this.each((function(){return this._jqm?H[this._jqm].c=$.extend({},H[this._jqm].c,e):(s++,this._jqm=s,H[s]={c:$.extend(t,$.jqm.params,e),a:F,w:$(this).addClass("jqmID"+s),s},void(t.trigger&&$(this).jqmAddTrigger(t.trigger)))}))},$.fn.jqmAddClose=function(e){return hs(this,e,"jqmHide")},$.fn.jqmAddTrigger=function(e){return hs(this,e,"jqmShow")},$.fn.jqmShow=function(e){return this.each((function(){$.jqm.open(this._jqm,e)}))},$.fn.jqmHide=function(e){return this.each((function(){$.jqm.close(this._jqm,e)}))},$.jqm={hash:{},open:function(t,i){var n=H[t],r=n.c,o="."+r.closeClass,a=parseInt(n.w.css("z-index"));a=a>0?a:3e3;var s=$("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":a-1,opacity:r.overlay/100});if(n.a)return F;if(n.t=i,n.a=!0,n.w.css("z-index",a),r.modal?(A[0]||setTimeout((function(){new L("bind")}),1),A.push(t)):r.overlay>0?r.closeoverlay&&n.w.jqmAddClose(s):s=F,n.o=s?s.addClass(r.overlayClass).prependTo("body"):F,r.ajax){var l=r.target||n.w,c=r.ajax;l="string"==typeof l?$(l,n.w):$(l),c="@"===c.substr(0,1)?$(i).attr(c.substring(1)):c,l.html(r.ajaxText).load(c,(function(){r.onLoad&&r.onLoad.call(this,n),o&&n.w.jqmAddClose($(o,n.w)),e(n)}))}else o&&n.w.jqmAddClose($(o,n.w));return r.toTop&&n.o&&n.w.before('<span id="jqmP'+n.w[0]._jqm+'"></span>').insertAfter(n.o),r.onShow?r.onShow(n):n.w.show(),e(n),F},close:function(e){var t=H[e];return t.a?(t.a=F,A[0]&&(A.pop(),A[0]||new L("unbind")),t.c.toTop&&t.o&&$("#jqmP"+t.w[0]._jqm).after(t.w).remove(),t.c.onHide?t.c.onHide(t):(t.w.hide(),t.o&&t.o.remove()),F):F},params:{}};var s=0,H=$.jqm.hash,A=[],F=!1,e=function(e){void 0===e.c.focusField&&(e.c.focusField=0),e.c.focusField>=0&&f(e)},f=function(e){try{$(":input:visible",e.w)[parseInt(e.c.focusField,10)].focus()}catch(e){}},L=function(e){$(document)[e]("keypress",m)[e]("keydown",m)[e]("mousedown",m)},m=function(e){var t=H[A[A.length-1]],i=!$(e.target).parents(".jqmID"+t.s)[0];return i&&($(".jqmID"+t.s).each((function(){var t=$(this),n=t.offset();if(n.top<=e.pageY&&e.pageY<=n.top+t.height()&&n.left<=e.pageX&&e.pageX<=n.left+t.width())return i=!1,!1})),f(t)),!i},hs=function(e,t,i){return e.each((function(){var e=this._jqm;$(t).each((function(){this[i]||(this[i]=[],$(this).click((function(){for(var e in{jqmShow:1,jqmHide:1})for(var t in this[e])H[this[e][t]]&&H[this[e][t]].w[e](this);return F}))),this[i].push(e)}))}))};$.fmatter={},$.extend($.fmatter,{isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e&&("object"==typeof e||$.isFunction(e))||!1},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e&&isFinite(e)},isValue:function(e){return this.isObject(e)||this.isString(e)||this.isNumber(e)||this.isBoolean(e)},isEmpty:function(e){return!(!this.isString(e)&&this.isValue(e)||this.isValue(e)&&(e=$.trim(e).replace(/\ \;/gi,"").replace(/\ \;/gi,""),""!==e))}}),$.fn.fmatter=function(e,t,i,n,r){var o=t;i=$.extend({},$.jgrid.getRegional(this,"formatter"),i);try{o=$.fn.fmatter[e].call(this,t,i,n,r)}catch(e){}return o},$.fmatter.util={NumberFormat:function(e,t){if($.fmatter.isNumber(e)||(e*=1),$.fmatter.isNumber(e)){var i,n=e<0,r=String(e),o=t.decimalSeparator||".";if($.fmatter.isNumber(t.decimalPlaces)){var a=t.decimalPlaces,s=Math.pow(10,a);if(i=(r=String(Math.round(e*s)/s)).lastIndexOf("."),a>0)for(i<0?i=(r+=o).length-1:"."!==o&&(r=r.replace(".",o));r.length-1-i<a;)r+="0"}if(t.thousandsSeparator){var l=t.thousandsSeparator;i=(i=r.lastIndexOf(o))>-1?i:r.length;var c,u=r.substring(i),d=-1;for(c=i;c>0;c--)++d%3==0&&c!==i&&(!n||c>1)&&(u=l+u),u=r.charAt(c-1)+u;r=u}return r=t.prefix?t.prefix+r:r,t.suffix?r+t.suffix:r}return e}},$.fn.fmatter.defaultFormat=function(e,t){return $.fmatter.isValue(e)&&""!==e?e:t.defaultValue||" "},$.fn.fmatter.email=function(e,t){return $.fmatter.isEmpty(e)?$.fn.fmatter.defaultFormat(e,t):'<a href="mailto:'+e+'">'+e+"</a>"},$.fn.fmatter.checkbox=function(e,t){var i,n=$.extend({},t.checkbox);return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(n=$.extend({},n,t.colModel.formatoptions)),i=!0===n.disabled?'disabled="disabled"':"",($.fmatter.isEmpty(e)||void 0===e)&&(e=$.fn.fmatter.defaultFormat(e,n)),'<input type="checkbox" '+((e=((e=String(e))+"").toLowerCase()).search(/(false|f|0|no|n|off|undefined)/i)<0?" checked='checked' ":"")+' value="'+e+'" offval="no" '+i+"/>"},$.fn.fmatter.link=function(e,t){var i={target:t.target},n="";return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(i=$.extend({},i,t.colModel.formatoptions)),i.target&&(n="target="+i.target),$.fmatter.isEmpty(e)?$.fn.fmatter.defaultFormat(e,t):"<a "+n+' href="'+e+'">'+e+"</a>"},$.fn.fmatter.showlink=function(e,t){var i,n={baseLinkUrl:t.baseLinkUrl,showAction:t.showAction,addParam:t.addParam||"",target:t.target,idName:t.idName},r="";return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(n=$.extend({},n,t.colModel.formatoptions)),n.target&&(r="target="+n.target),i=n.baseLinkUrl+n.showAction+"?"+n.idName+"="+t.rowId+n.addParam,$.fmatter.isString(e)||$.fmatter.isNumber(e)?"<a "+r+' href="'+i+'">'+e+"</a>":$.fn.fmatter.defaultFormat(e,t)},$.fn.fmatter.integer=function(e,t){var i=$.extend({},t.integer);return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(i=$.extend({},i,t.colModel.formatoptions)),$.fmatter.isEmpty(e)?i.defaultValue:$.fmatter.util.NumberFormat(e,i)},$.fn.fmatter.number=function(e,t){var i=$.extend({},t.number);return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(i=$.extend({},i,t.colModel.formatoptions)),$.fmatter.isEmpty(e)?i.defaultValue:$.fmatter.util.NumberFormat(e,i)},$.fn.fmatter.currency=function(e,t){var i=$.extend({},t.currency);return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(i=$.extend({},i,t.colModel.formatoptions)),$.fmatter.isEmpty(e)?i.defaultValue:$.fmatter.util.NumberFormat(e,i)},$.fn.fmatter.date=function(e,t,i,n){var r=$.extend({},t.date);return void 0!==t.colModel&&void 0!==t.colModel.formatoptions&&(r=$.extend({},r,t.colModel.formatoptions)),r.reformatAfterEdit||"edit"!==n?$.fmatter.isEmpty(e)?$.fn.fmatter.defaultFormat(e,t):$.jgrid.parseDate.call(this,r.srcformat,e,r.newformat,r):$.fn.fmatter.defaultFormat(e,t)},$.fn.fmatter.select=function(e,t){e=String(e);var i,n,r=!1,o=[];if(void 0!==t.colModel.formatoptions?(r=t.colModel.formatoptions.value,i=void 0===t.colModel.formatoptions.separator?":":t.colModel.formatoptions.separator,n=void 0===t.colModel.formatoptions.delimiter?";":t.colModel.formatoptions.delimiter):void 0!==t.colModel.editoptions&&(r=t.colModel.editoptions.value,i=void 0===t.colModel.editoptions.separator?":":t.colModel.editoptions.separator,n=void 0===t.colModel.editoptions.delimiter?";":t.colModel.editoptions.delimiter),r){var a,s=1==(null!=t.colModel.editoptions&&!0===t.colModel.editoptions.multiple),l=[];if(s&&(l=e.split(","),l=$.map(l,(function(e){return $.trim(e)}))),$.fmatter.isString(r)){var c,u=r.split(n),d=0;for(c=0;c<u.length;c++)if((a=u[c].split(i)).length>2&&(a[1]=$.map(a,(function(e,t){if(t>0)return e})).join(i)),s)$.inArray(a[0],l)>-1&&(o[d]=a[1],d++);else if($.trim(a[0])===$.trim(e)){o[0]=a[1];break}}else $.fmatter.isObject(r)&&(s?o=$.map(l,(function(e){return r[e]})):o[0]=r[e]||"")}return""===(e=o.join(", "))?$.fn.fmatter.defaultFormat(e,t):e},$.fn.fmatter.rowactions=function(e){var t=$(this).closest("tr.jqgrow"),i=t.attr("id"),n=$(this).closest("table.ui-jqgrid-btable").attr("id").replace(/_frozen([^_]*)$/,"$1"),r=$("#"+n),o=r[0],a=o.p,s=a.colModel[$.jgrid.getCellIndex(this)],l=s.frozen?$("tr#"+i+" td:eq("+$.jgrid.getCellIndex(this)+") > div",r):$(this).parent(),c={extraparam:{}},u=function(e){$.isFunction(c.afterRestore)&&c.afterRestore.call(o,e),l.find("div.ui-inline-edit,div.ui-inline-del").show(),l.find("div.ui-inline-save,div.ui-inline-cancel").hide()};void 0!==s.formatoptions&&(c=$.extend(c,s.formatoptions)),void 0!==a.editOptions&&(c.editOptions=a.editOptions),void 0!==a.delOptions&&(c.delOptions=a.delOptions),t.hasClass("jqgrid-new-row")&&(c.extraparam[a.prmNames.oper]=a.prmNames.addoper);var d={keys:c.keys,oneditfunc:c.onEdit,successfunc:c.onSuccess,url:c.url,extraparam:c.extraparam,aftersavefunc:function(e,t){$.isFunction(c.afterSave)&&c.afterSave.call(o,e,t),l.find("div.ui-inline-edit,div.ui-inline-del").show(),l.find("div.ui-inline-save,div.ui-inline-cancel").hide()},errorfunc:c.onError,afterrestorefunc:u,restoreAfterError:c.restoreAfterError,mtype:c.mtype};switch(e){case"edit":r.jqGrid("editRow",i,d),l.find("div.ui-inline-edit,div.ui-inline-del").hide(),l.find("div.ui-inline-save,div.ui-inline-cancel").show(),r.triggerHandler("jqGridAfterGridComplete");break;case"save":r.jqGrid("saveRow",i,d)&&(l.find("div.ui-inline-edit,div.ui-inline-del").show(),l.find("div.ui-inline-save,div.ui-inline-cancel").hide(),r.triggerHandler("jqGridAfterGridComplete"));break;case"cancel":r.jqGrid("restoreRow",i,u),l.find("div.ui-inline-edit,div.ui-inline-del").show(),l.find("div.ui-inline-save,div.ui-inline-cancel").hide(),r.triggerHandler("jqGridAfterGridComplete");break;case"del":r.jqGrid("delGridRow",i,c.delOptions);break;case"formedit":r.jqGrid("setSelection",i),r.jqGrid("editGridRow",i,c.editOptions)}},$.fn.fmatter.actions=function(e,t){var i,n={keys:!1,editbutton:!0,delbutton:!0,editformbutton:!1},r=t.rowId,o="",a=$.jgrid.getRegional(this,"nav"),s=$.jgrid.styleUI[t.styleUI||"EuiUI"].fmatter,l=$.jgrid.styleUI[t.styleUI||"EuiUI"].common;if(void 0!==t.colModel.formatoptions&&(n=$.extend(n,t.colModel.formatoptions)),void 0===r||$.fmatter.isEmpty(r))return"";var c="onmouseover=Eui(this).addClass('"+l.hover+"'); onmouseout=Eui(this).removeClass('"+l.hover+"'); ";return n.editformbutton?(i="id='jEditButton_"+r+"' onclick=Eui.fn.fmatter.rowactions.call(this,'formedit'); "+c,o+="<div title='"+a.edittitle+"' style='float:left;cursor:pointer;' class='ui-pg-div ui-inline-edit' "+i+"><span class='"+l.icon_base+" "+s.icon_edit+"'></span></div>"):n.editbutton&&(i="id='jEditButton_"+r+"' onclick=Eui.fn.fmatter.rowactions.call(this,'edit'); "+c,o+="<div title='"+a.edittitle+"' style='float:left;cursor:pointer;' class='ui-pg-div ui-inline-edit' "+i+"><span class='"+l.icon_base+" "+s.icon_edit+"'></span></div>"),n.delbutton&&(i="id='jDeleteButton_"+r+"' onclick=Eui.fn.fmatter.rowactions.call(this,'del'); "+c,o+="<div title='"+a.deltitle+"' style='float:left;' class='ui-pg-div ui-inline-del' "+i+"><span class='"+l.icon_base+" "+s.icon_del+"'></span></div>"),i="id='jSaveButton_"+r+"' onclick=Eui.fn.fmatter.rowactions.call(this,'save'); "+c,o+="<div title='"+a.savetitle+"' style='float:left;display:none' class='ui-pg-div ui-inline-save' "+i+"><span class='"+l.icon_base+" "+s.icon_save+"'></span></div>",i="id='jCancelButton_"+r+"' onclick=Eui.fn.fmatter.rowactions.call(this,'cancel'); "+c,"<div style='margin-left:8px;'>"+(o+="<div title='"+a.canceltitle+"' style='float:left;display:none;' class='ui-pg-div ui-inline-cancel' "+i+"><span class='"+l.icon_base+" "+s.icon_cancel+"'></span></div>")+"</div>"},$.unformat=function(e,t,i,n){var r,o,a=t.colModel.formatter,s=t.colModel.formatoptions||{},l=/([\.\*\_\'\(\)\{\}\+\?\\])/g,c=t.colModel.unformat||$.fn.fmatter[a]&&$.fn.fmatter[a].unformat;if(void 0!==c&&$.isFunction(c))r=c.call(this,$(e).text(),t,e);else if(void 0!==a&&$.fmatter.isString(a)){var u,d=$.jgrid.getRegional(this,"formatter")||{};switch(a){case"integer":o=(s=$.extend({},d.integer,s)).thousandsSeparator.replace(l,"\\$1"),u=new RegExp(o,"g"),r=$(e).text().replace(u,"");break;case"number":o=(s=$.extend({},d.number,s)).thousandsSeparator.replace(l,"\\$1"),u=new RegExp(o,"g"),r=$(e).text().replace(u,"").replace(s.decimalSeparator,".");break;case"currency":o=(s=$.extend({},d.currency,s)).thousandsSeparator.replace(l,"\\$1"),u=new RegExp(o,"g"),r=$(e).text(),s.prefix&&s.prefix.length&&(r=r.substr(s.prefix.length)),s.suffix&&s.suffix.length&&(r=r.substr(0,r.length-s.suffix.length)),r=r.replace(u,"").replace(s.decimalSeparator,".");break;case"checkbox":var p=t.colModel.editoptions?t.colModel.editoptions.value.split(":"):["Yes","No"];r=$("input",e).is(":checked")?p[0]:p[1];break;case"select":r=$.unformat.select(e,t,i,n);break;case"actions":return"";default:r=$(e).text()}}return void 0!==r?r:!0===n?$(e).text():$.jgrid.htmlDecode($(e).html())},$.unformat.select=function(e,t,i,n){var r=[],o=$(e).text();if(!0===n)return o;var a=$.extend({},void 0!==t.colModel.formatoptions?t.colModel.formatoptions:t.colModel.editoptions),s=void 0===a.separator?":":a.separator,l=void 0===a.delimiter?";":a.delimiter;if(a.value){var c,u=a.value,d=!0===a.multiple,p=[];if(d&&(p=o.split(","),p=$.map(p,(function(e){return $.trim(e)}))),$.fmatter.isString(u)){var h,f=u.split(l),g=0;for(h=0;h<f.length;h++)if((c=f[h].split(s)).length>2&&(c[1]=$.map(c,(function(e,t){if(t>0)return e})).join(s)),d)$.inArray($.trim(c[1]),p)>-1&&(r[g]=c[0],g++);else if($.trim(c[1])===$.trim(o)){r[0]=c[0];break}}else($.fmatter.isObject(u)||$.isArray(u))&&(d||(p[0]=o),r=$.map(p,(function(e){var t;if($.each(u,(function(i,n){if(n===e)return t=i,!1})),void 0!==t)return t})));return r.join(", ")}return o||""},$.unformat.date=function(e,t){var i=$.jgrid.getRegional(this,"formatter.date")||{};return void 0!==t.formatoptions&&(i=$.extend({},i,t.formatoptions)),$.fmatter.isEmpty(e)?$.fn.fmatter.defaultFormat(e,t):$.jgrid.parseDate.call(this,i.newformat,e,i.srcformat,i)};var dragging,placeholders=$();$.fn.html5sortable=function(e){var t=String(e);return e=$.extend({connectWith:!1},e),this.each((function(){if(/^enable|disable|destroy$/.test(t)){var i=$(this).children($(this).data("items")).attr("draggable","enable"===t);"destroy"===t&&i.add(this).removeData("connectWith items").off("dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s")}else{i=$(this).children(e.items);var n,r,o=$("<"+(/^ul|ol$/i.test(this.tagName)?"li":/^tbody$/i.test(this.tagName)?"tr":"div")+' class="sortable-placeholder '+e.placeholderClass+'">').html(" ");i.find(e.handle).mousedown((function(){n=!0})).mouseup((function(){n=!1})),$(this).data("items",e.items),placeholders=placeholders.add(o),e.connectWith&&$(e.connectWith).add(this).data("connectWith",e.connectWith),i.attr("draggable","true").on("dragstart.h5s",(function(t){if(e.handle&&!n)return!1;n=!1;var i=t.originalEvent.dataTransfer;i.effectAllowed="move",i.setData("Text","dummy"),r=(dragging=$(this)).addClass("sortable-dragging").index()})).on("dragend.h5s",(function(){dragging&&(dragging.removeClass("sortable-dragging").show(),placeholders.detach(),r!==dragging.index()&&dragging.parent().trigger("sortupdate",{item:dragging,startindex:r,endindex:dragging.index()}),dragging=null)})).not("a[href], img").on("selectstart.h5s",(function(){return this.dragDrop&&this.dragDrop(),!1})).end().add([this,o]).on("dragover.h5s dragenter.h5s drop.h5s",(function(t){return!i.is(dragging)&&e.connectWith!==$(dragging).parent().data("connectWith")||("drop"===t.type?(t.stopPropagation(),placeholders.filter(":visible").after(dragging),dragging.trigger("dragend.h5s"),!1):(t.preventDefault(),t.originalEvent.dataTransfer.dropEffect="move",i.is(this)?(e.forcePlaceholderSize&&o.height(dragging.outerHeight()),dragging.hide(),$(this)[o.index()<$(this).index()?"after":"before"](o),placeholders.not(o).detach()):placeholders.is(this)||$(this).children(e.items).length||(placeholders.detach(),$(this).append(o)),!1))}))}}))},window.jqGridUtils={stringify:function(e){return JSON.stringify(e,(function(e,t){return"function"==typeof t?t.toString():t}))},parse:function(e){return JSON.parse(e,(function(e,t){return"string"==typeof t&&-1!==t.indexOf("function")&&"function"===t.split(" ")[0].trim()&&"}"===t.trim().slice(-1)?$.decode(t):t}))},encode:function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},jsonToXML:function(e,t){var i=$.extend({xmlDecl:'<?xml version="1.0" encoding="UTF-8" ?>\n',attr_prefix:"-",encode:!0},t||{}),n=this,r=function(e,t){return"#text"===e?i.encode?n.encode(t):t:"function"==typeof t?"<"+e+"><![CDATA["+t+"]]></"+e+">\n":""===t?"<"+e+">__EMPTY_STRING_</"+e+">\n":"<"+e+">"+(i.encode?n.encode(t):t)+"</"+e+">\n"},o=function(e,t){for(var i=[],n=0;n<t.length;n++){var s=t[n];void 0===s||null==s?i[i.length]="<"+e+" />":"object"==typeof s&&s.constructor==Array?i[i.length]=o(e,s):i[i.length]="object"==typeof s?a(e,s):r(e,s)}return i.length||(i[0]="<"+e+">__EMPTY_ARRAY_</"+e+">\n"),i.join("")},a=function(e,t){var s=[],l=[];for(var c in t)if(t.hasOwnProperty(c)){var u=t[c];c.charAt(0)!==i.attr_prefix?null==u?s[s.length]="<"+c+" />":"object"==typeof u&&u.constructor===Array?s[s.length]=o(c,u):s[s.length]="object"==typeof u?a(c,u):r(c,u):l[l.length]=" "+c.substring(1)+'="'+(i.encode?n.encode(u):u)+'"'}var d=l.join(""),p=s.join("");return null==e||(p=s.length>0?p.match(/\n/)?"<"+e+d+">\n"+p+"</"+e+">\n":"<"+e+d+">"+p+"</"+e+">\n":"<"+e+d+" />\n"),p},s=a(null,e);return i.xmlDecl+s},xmlToJSON:function(e,t){var i=$.extend({force_array:[],attr_prefix:"-"},t||{});if(e){var n={};if(i.force_array)for(var r=0;r<i.force_array.length;r++)n[i.force_array[r]]=1;"string"==typeof e&&(e=$.parseXML(e)),e.documentElement&&(e=e.documentElement);var o=function(e,t,i,r){if("string"==typeof r)if(-1!==r.indexOf("function"))r=$.decode(r);else switch(r){case"__EMPTY_ARRAY_":r=[];break;case"__EMPTY_STRING_":r="";break;case"false":r=!1;break;case"true":r=!0}n[t]?(1===i&&(e[t]=[]),e[t][e[t].length]=r):1===i?e[t]=r:2===i?e[t]=[e[t],r]:e[t][e[t].length]=r},a=function(e){if(7!==e.nodeType){if(3===e.nodeType||4===e.nodeType){if(null==e.nodeValue.match(/[^\x00-\x20]/))return;return e.nodeValue}var t,n,r,s,l={};if(e.attributes&&e.attributes.length)for(t={},n=0;n<e.attributes.length;n++)"string"==typeof(r=e.attributes[n].nodeName)&&(s=e.attributes[n].nodeValue)&&(void 0===l[r=i.attr_prefix+r]&&(l[r]=0),l[r]++,o(t,r,l[r],s));if(e.childNodes&&e.childNodes.length){var c=!0;for(t&&(c=!1),n=0;n<e.childNodes.length&&c;n++){var u=e.childNodes[n].nodeType;3!==u&&4!==u&&(c=!1)}if(c)for(t||(t=""),n=0;n<e.childNodes.length;n++)t+=e.childNodes[n].nodeValue;else for(t||(t={}),n=0;n<e.childNodes.length;n++)"string"==typeof(r=e.childNodes[n].nodeName)&&(s=a(e.childNodes[n]))&&(void 0===l[r]&&(l[r]=0),l[r]++,o(t,r,l[r],s))}return t}},s=a(e);if(n[e.nodeName]&&(s=[s]),11!==e.nodeType){var l={};l[e.nodeName]=s,s=l}return s}}}}(Eui,Eui.Function.alias)},__WEBPACK_AMD_DEFINE_ARRAY__=[__nested_webpack_require_621289__(0),__nested_webpack_require_621289__(1)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=a)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(t,i,n){var r,o,a;o=[n(0)],void 0===(a="function"==typeof(r=function(t){!function(t,i,n){"use strict";var r=function(e,i){this.widget="",this.$element=t(e),t.extend(this,i),this.handleDocumentClick=function(e){var t=e.data.scope;t.$element.parent().find(e.target).length||t.$widget.is(e.target)||t.$widget.find(e.target).length||t.hideWidget()},this._init()};r.prototype={constructor:r,_init:function(){var e=this;this.showWidgetOnAddonClick&&this.$element.parent().hasClass("input-group")&&this.$element.parent().hasClass("bootstrap-timepicker")?(this.$element.parent(".input-group.bootstrap-timepicker").find(".input-group-addon").on({"click.timepicker":t.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)})):this.template?this.$element.on({"focus.timepicker":t.proxy(this.showWidget,this),"click.timepicker":t.proxy(this.showWidget,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}):this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}),!1!==this.template?this.$widget=t(this.getTemplate()).on("click",t.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&!1!==this.$widget&&this.$widget.find("input").each((function(){t(this).on({"click.timepicker":function(){t(this).select()},"keydown.timepicker":t.proxy(e.widgetKeydown,e),"keyup.timepicker":t.proxy(e.widgetKeyup,e)})})),this.$widget.on("blur","input.bootstrap-timepicker-hour",(function(){var e=t(this),i=t(this).data("curvalue");i&&e.val(i)})),this.$widget.on("blur","input.bootstrap-timepicker-minute",(function(){var e=t(this),i=t(this).data("curvalue");i&&(i=1===i.toString().length?"0"+i:i,e.val(i))})),this.$widget.on("blur","input.bootstrap-timepicker-second",(function(){var e=t(this),i=t(this).data("curvalue");i&&(i=1===i.toString().length?"0"+i:i,e.val(i))})),this.setDefaultTime(this.defaultTime)},blurElement:function(){this.highlightedUnit=null,this.updateFromElementVal()},clear:function(){this.hour="",this.minute="",this.second="",this.meridian="",this.$element.val("")},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else this.hour<=0?this.hour=this.maxHours-1:this.hour--},decrementMinute:function(e){var t;0>(t=e?this.minute-e:this.minute-this.minuteStep)?(this.decrementHour(),this.minute=t+60):this.minute=t},decrementSecond:function(){var e=this.second-this.secondStep;0>e?(this.decrementMinute(!0),this.second=e+60):this.second=e},elementKeydown:function(e){switch(e.which){case 9:if(e.shiftKey){if("hour"===this.highlightedUnit){this.hideWidget();break}this.highlightPrevUnit()}else{if(this.showMeridian&&"meridian"===this.highlightedUnit||this.showSeconds&&"second"===this.highlightedUnit||!this.showMeridian&&!this.showSeconds&&"minute"===this.highlightedUnit){this.hideWidget();break}this.highlightNextUnit()}e.preventDefault(),this.updateFromElementVal();break;case 27:this.updateFromElementVal();break;case 37:e.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:switch(e.preventDefault(),this.highlightedUnit){case"hour":this.incrementHour(),this.highlightHour();break;case"minute":this.incrementMinute(),this.highlightMinute();break;case"second":this.incrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update();break;case 39:e.preventDefault(),this.highlightNextUnit(),this.updateFromElementVal();break;case 40:switch(e.preventDefault(),this.highlightedUnit){case"hour":this.decrementHour(),this.highlightHour();break;case"minute":this.decrementMinute(),this.highlightMinute();break;case"second":this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update()}},getCursorPosition:function(){var e=this.$element.get(0);if("selectionStart"in e)return e.selectionStart;if(n.selection){e.focus();var t=n.selection.createRange(),i=n.selection.createRange().text.length;return t.moveStart("character",-e.value.length),t.text.length-i}},getTemplate:function(){var e,t,i,n,r,o;switch(this.showInputs?(t='<input type="text" class="bootstrap-timepicker-hour" maxlength="2"/>',i='<input type="text" class="bootstrap-timepicker-minute" maxlength="2"/>',n='<input type="text" class="bootstrap-timepicker-second" maxlength="2"/>',r='<input type="text" class="bootstrap-timepicker-meridian" maxlength="2"/>'):(t='<span class="bootstrap-timepicker-hour"></span>',i='<span class="bootstrap-timepicker-minute"></span>',n='<span class="bootstrap-timepicker-second"></span>',r='<span class="bootstrap-timepicker-meridian"></span>'),o='<table><tr><td><a href="#" data-action="incrementHour"><span class="'+this.icons.up+'"></span></a></td><td class="separator"> </td><td><a href="#" data-action="incrementMinute"><span class="'+this.icons.up+'"></span></a></td>'+(this.showSeconds?'<td class="separator"> </td><td><a href="#" data-action="incrementSecond"><span class="'+this.icons.up+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator"> </td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><span class="'+this.icons.up+'"></span></a></td>':"")+"</tr><tr><td>"+t+'</td> <td class="separator">:</td><td>'+i+"</td> "+(this.showSeconds?'<td class="separator">:</td><td>'+n+"</td>":"")+(this.showMeridian?'<td class="separator"> </td><td>'+r+"</td>":"")+'</tr><tr><td><a href="#" data-action="decrementHour"><span class="'+this.icons.down+'"></span></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><span class="'+this.icons.down+'"></span></a></td>'+(this.showSeconds?'<td class="separator"> </td><td><a href="#" data-action="decrementSecond"><span class="'+this.icons.down+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator"> </td><td><a href="#" data-action="toggleMeridian"><span class="'+this.icons.down+'"></span></a></td>':"")+"</tr></table>",this.template){case"modal":e='<div class="bootstrap-timepicker-widget modal hide fade in" data-backdrop="'+(this.modalBackdrop?"true":"false")+'"><div class="modal-header"><a href="#" class="close" data-dismiss="modal">×</a><h3>Pick a Time</h3></div><div class="modal-content">'+o+'</div><div class="modal-footer"><a href="#" class="btn btn-primary" data-dismiss="modal">OK</a></div></div>';break;case"dropdown":e='<div class="bootstrap-timepicker-widget dropdown-menu">'+o+"</div>"}return e},getTime:function(){return""===this.hour?"":this.hour+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")},hideWidget:function(){!1!==this.isOpen&&(this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),t(n).off("mousedown.timepicker, touchend.timepicker",this.handleDocumentClick),this.isOpen=!1,this.$widget.detach())},highlightUnit:function(){this.position=this.getCursorPosition(),this.position>=0&&this.position<=2?this.highlightHour():this.position>=3&&this.position<=5?this.highlightMinute():this.position>=6&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():this.position>=9&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.showMeridian?this.highlightMeridian():this.showSeconds?this.highlightSecond():this.highlightMinute();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},highlightHour:function(){var e=this.$element.get(0),t=this;this.highlightedUnit="hour",e.setSelectionRange&&setTimeout((function(){t.hour<10?e.setSelectionRange(0,1):e.setSelectionRange(0,2)}),0)},highlightMinute:function(){var e=this.$element.get(0),t=this;this.highlightedUnit="minute",e.setSelectionRange&&setTimeout((function(){t.hour<10?e.setSelectionRange(2,4):e.setSelectionRange(3,5)}),0)},highlightSecond:function(){var e=this.$element.get(0),t=this;this.highlightedUnit="second",e.setSelectionRange&&setTimeout((function(){t.hour<10?e.setSelectionRange(5,7):e.setSelectionRange(6,8)}),0)},highlightMeridian:function(){var e=this.$element.get(0),t=this;this.highlightedUnit="meridian",e.setSelectionRange&&(this.showSeconds?setTimeout((function(){t.hour<10?e.setSelectionRange(8,10):e.setSelectionRange(9,11)}),0):setTimeout((function(){t.hour<10?e.setSelectionRange(5,7):e.setSelectionRange(6,8)}),0))},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}return this.hour===this.maxHours-1?void(this.hour=0):void this.hour++},incrementMinute:function(e){var t;(t=e?this.minute+e:this.minute+this.minuteStep-this.minute%this.minuteStep)>59?(this.incrementHour(),this.minute=t-60):this.minute=t},incrementSecond:function(){var e=this.second+this.secondStep-this.second%this.secondStep;e>59?(this.incrementMinute(!0),this.second=e-60):this.second=e},mousewheel:function(e){if(!this.disableMousewheel){e.preventDefault(),e.stopPropagation();var i=e.originalEvent.wheelDelta||-e.originalEvent.detail,n=null;switch("mousewheel"===e.type?n=-1*e.originalEvent.wheelDelta:"DOMMouseScroll"===e.type&&(n=40*e.originalEvent.detail),n&&(e.preventDefault(),t(this).scrollTop(n+t(this).scrollTop())),this.highlightedUnit){case"minute":i>0?this.incrementMinute():this.decrementMinute(),this.highlightMinute();break;case"second":i>0?this.incrementSecond():this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian();break;default:i>0?this.incrementHour():this.decrementHour(),this.highlightHour()}return!1}},changeToNearestStep:function(e,t){return e%t==0?e:Math.round(e%t/t)?(e+(t-e%t))%60:e-e%t},place:function(){if(!this.isInline){var e=this.$widget.outerWidth(),n=this.$widget.outerHeight(),r=t(i).width(),o=t(i).height(),a=t(i).scrollTop(),s=parseInt(this.$element.parents().filter((function(){return"auto"!==t(this).css("z-index")})).first().css("z-index"),10)+10,l=this.component?this.component.parent().offset():this.$element.offset(),c=this.component?this.component.outerHeight(!0):this.$element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.$element.outerWidth(!1),d=l.left,p=l.top;this.$widget.removeClass("timepicker-orient-top timepicker-orient-bottom timepicker-orient-right timepicker-orient-left"),"auto"!==this.orientation.x?(this.$widget.addClass("timepicker-orient-"+this.orientation.x),"right"===this.orientation.x&&(d-=e-u)):(this.$widget.addClass("timepicker-orient-left"),l.left<0?d-=l.left-10:l.left+e>r&&(d=r-e-10));var h,f,g=this.orientation.y;"auto"===g&&(h=-a+l.top-n,f=a+o-(l.top+c+n),g=Math.max(h,f)===f?"top":"bottom"),this.$widget.addClass("timepicker-orient-"+g),"top"===g?p+=c:p-=n+parseInt(this.$widget.css("padding-top"),10),this.$widget.css({top:p,left:d,zIndex:s})}},remove:function(){t("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(e){if(this.$element.val())this.updateFromElementVal();else if("current"===e){var t=new Date,i=t.getHours(),n=t.getMinutes(),r=t.getSeconds(),o="AM";0!==r&&60==(r=Math.ceil(t.getSeconds()/this.secondStep)*this.secondStep)&&(n+=1,r=0),0!==n&&60==(n=Math.ceil(t.getMinutes()/this.minuteStep)*this.minuteStep)&&(i+=1,n=0),this.showMeridian&&(0===i?i=12:i>=12?(i>12&&(i-=12),o="PM"):o="AM"),this.hour=i,this.minute=n,this.second=r,this.meridian=o,this.update()}else!1===e?(this.hour=0,this.minute=0,this.second=0,this.meridian="AM"):"function"==typeof e?this.setTime(e.call(this)):this.setTime(e)},setTime:function(e,t){if(e){var i,n,r,o,a,s;if("object"==typeof e&&e.getMonth)r=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),this.showMeridian&&(s="AM",r>12&&(s="PM",r%=12),12===r&&(s="PM"));else{if((i=(/a/i.test(e)?1:0)+(/p/i.test(e)?2:0))>2)return void this.clear();if(r=(n=e.replace(/[^0-9\:]/g,"").split(":"))[0]?n[0].toString():n.toString(),this.explicitMode&&r.length>2&&r.length%2!=0)return void this.clear();o=n[1]?n[1].toString():"",a=n[2]?n[2].toString():"",r.length>4&&(a=r.slice(-2),r=r.slice(0,-2)),r.length>2&&(o=r.slice(-2),r=r.slice(0,-2)),o.length>2&&(a=o.slice(-2),o=o.slice(0,-2)),r=parseInt(r,10),o=parseInt(o,10),a=parseInt(a,10),isNaN(r)&&(r=0),isNaN(o)&&(o=0),isNaN(a)&&(a=0),a>59&&(a=59),o>59&&(o=59),r>=this.maxHours&&(r=this.maxHours-1),this.showMeridian?(r>12&&(i=2,r-=12),i||(i=1),0===r&&(r=12),s=1===i?"AM":"PM"):12>r&&2===i?r+=12:r>=this.maxHours?r=this.maxHours-1:(0>r||12===r&&1===i)&&(r=0)}this.hour=r,this.snapToStep?(this.minute=this.changeToNearestStep(o,this.minuteStep),this.second=this.changeToNearestStep(a,this.secondStep)):(this.minute=o,this.second=a),this.meridian=s,this.$widget.find("input.bootstrap-timepicker-hour").data("curvalue",r),this.$widget.find("input.bootstrap-timepicker-minute").data("curvalue",o),this.$widget.find("input.bootstrap-timepicker-second").data("curvalue",a),this.update(t)}else this.clear()},showWidget:function(){this.isOpen||this.$element.is(":disabled")||(this.$widget.appendTo(this.appendWidgetTo),t(n).on("mousedown.timepicker, touchend.timepicker",{scope:this},this.handleDocumentClick),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.place(),this.disableFocus&&this.$element.blur(),""===this.hour&&(this.defaultTime?this.setDefaultTime(this.defaultTime):this.setTime("0:0:0")),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",t.proxy(this.hideWidget,this)):!1===this.isOpen&&this.$widget.addClass("open"),this.isOpen=!0)},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM"},update:function(e){this.updateElement(),e||this.updateWidget(),this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}})},updateElement:function(){this.$element.val(this.getTime()).change()},updateFromElementVal:function(){this.setTime(this.$element.val())},updateWidget:function(){if(!1!==this.$widget){var e=this.hour,t=1===this.minute.toString().length?"0"+this.minute:this.minute,i=1===this.second.toString().length?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.bootstrap-timepicker-hour").val(e),this.$widget.find("input.bootstrap-timepicker-minute").val(t),this.showSeconds&&this.$widget.find("input.bootstrap-timepicker-second").val(i),this.showMeridian&&this.$widget.find("input.bootstrap-timepicker-meridian").val(this.meridian)):(this.$widget.find("span.bootstrap-timepicker-hour").text(e),this.$widget.find("span.bootstrap-timepicker-minute").text(t),this.showSeconds&&this.$widget.find("span.bootstrap-timepicker-second").text(i),this.showMeridian&&this.$widget.find("span.bootstrap-timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(!1!==this.$widget){var e=(this.$widget.find("input.bootstrap-timepicker-hour").val()||0)+":"+this.$widget.find("input.bootstrap-timepicker-minute").val()+(this.showSeconds?":"+this.$widget.find("input.bootstrap-timepicker-second").val():"")+(this.showMeridian?this.$widget.find("input.bootstrap-timepicker-meridian").val():"");this.setTime(e,!0)}},widgetClick:function(e){e.stopPropagation(),e.preventDefault();var i=t(e.target),n=i.closest("a").data("action");n&&this[n](),this.update(),i.is("input")&&i.get(0).setSelectionRange(0,2)},widgetKeydown:function(e){var i=t(e.target),n=i.attr("class").replace("bootstrap-timepicker-","");switch(e.which){case 9:if(e.shiftKey){if("hour"===n)return this.hideWidget()}else if(this.showMeridian&&"meridian"===n||this.showSeconds&&"second"===n||!this.showMeridian&&!this.showSeconds&&"minute"===n)return this.hideWidget();break;case 27:this.hideWidget();break;case 38:switch(e.preventDefault(),n){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),i.get(0).setSelectionRange(0,2);break;case 40:switch(e.preventDefault(),n){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),i.get(0).setSelectionRange(0,2)}},widgetKeyup:function(t){(229===e.which||65===t.which||77===t.which||80===t.which||46===t.which||8===t.which||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105)&&this.updateFromWidgetInputs()}},t.fn.timepicker=function(e){var i=Array.apply(null,arguments);return i.shift(),this.each((function(){var n=t(this),o=n.data("timepicker"),a="object"==typeof e&&e;o||n.data("timepicker",o=new r(this,t.extend({},t.fn.timepicker.defaults,a,t(this).data()))),"string"==typeof e&&o[e].apply(o,i)}))},t.fn.timepicker.defaults={defaultTime:"current",disableFocus:!1,disableMousewheel:!1,isOpen:!1,minuteStep:15,modalBackdrop:!1,orientation:{x:"auto",y:"auto"},secondStep:15,snapToStep:!1,showSeconds:!1,showInputs:!0,showMeridian:!0,template:"dropdown",appendWidgetTo:"body",showWidgetOnAddonClick:!0,icons:{up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},maxHours:24,explicitMode:!1,format:"G:i:s",submitFormat:"His"},t.fn.timepicker.Constructor=r,t(n).on("focus.timepicker.data-api click.timepicker.data-api",'[data-provide="timepicker"]',(function(e){var i=t(this);i.data("timepicker")||(e.preventDefault(),i.timepicker())}))}(t,window,document)})?r.apply(i,o):r)||(t.exports=a)},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){function t(){var e=new Date,i=this;i.reDate=function(){return new t},i.GetValue=function(){return e},i.GetFullYear=function(){return e.getFullYear()},i.GetMonth=function(){return e.getMonth()+1},i.GetHours=function(){return e.getHours()},i.GetDate=function(){return e.getDate()},i.GetMinutes=function(){return e.getMinutes()},i.GetSeconds=function(){return e.getSeconds()}}function i(e,t){this.opts=t,this.valCell=e,this.format=this.opts.format,this.initdates(),e.data("jedate",t)}var n={},r="YYYY|MM|DD|hh|mm|ss|zz",o=/\-/g,a=function(e){return window.parseInt(e,10)},s={skinCell:"jedatedefault",range:!1,trigger:"click",format:"YYYY-MM-DD hh:mm:ss",minDate:"1900-01-01 00:00:00",maxDate:"2099-12-31 23:59:59"};e.fn.jeDate=function(t){return new i(e(this),t||{})},e.fn.jedate={defaults:{language:{name:"cn",month:["01","02","03","04","05","06","07","08","09","10","11","12"],weeks:["日","一","二","三","四","五","六"],times:["小时","分钟","秒数"],titText:"请选择日期时间",clear:"清空",today:"现在",yes:"确定",close:"关闭",yearText:"年",monthText:"月"}}},e.extend({jeDate:function(t,n){return new i(e(t),n||{})}}),n.reMatch=function(e){return e.match(/\w+|d+/g)},n.docScroll=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},n.docArea=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},n.isLeap=function(e){return e%100!=0&&e%4==0||e%400==0},n.digit=function(e){return e<10?"0"+(0|e):e},n.isNum=function(e){return!!/^[+-]?\d*\.?\d*$/.test(e)},n.getDaysNum=function(e,t){var i=31;switch(a(t)){case 2:i=n.isLeap(e)?29:28;break;case 4:case 6:case 9:case 11:i=30}return i},n.getYM=function(e,t,i){var n=new Date(e,t-1);return n.setMonth(t-1+i),{y:n.getFullYear(),m:n.getMonth()+1}},n.prevMonth=function(e,t,i){return n.getYM(e,t,0-(i||1))},n.nextMonth=function(e,t,i){return n.getYM(e,t,i||1)},n.parse=function(e,t){return t.replace(new RegExp(r,"g"),(function(t){return"zz"==t?"00":n.digit(e[t])}))},n.isparmat=function(t){var i=n.reMatch(t),o=r.split("|"),a=[];return e.each(o,(function(t,n){e.each(i,(function(e,t){n==t&&a.push(t)}))})),a.join("-")},n.parseOld=function(t,i,o){t=t.concat(i);var s={},l=n.reMatch(o);return e.each(t,(function(e,t){s[l[e]]=a(t)})),o.replace(new RegExp(r,"g"),(function(e){return"zz"==e?"00":n.digit(s[e])}))},n.checkFormat=function(e){var t=[];return e.replace(new RegExp(r,"g"),(function(e){t.push(e)})),t.join("-")},n.splMatch=function(e){var t=e.split(" ");return n.reMatch(t[0])},n.mlen=function(e){var t=e.match(/\w+|d+/g).length;return"hh"==e.substring(0,2)&&t<=3?7:t},n.checkDate=function(e){var t=n.reMatch(e);if(isNaN(t[0])||isNaN(t[1])||isNaN(t[2]))return!1;if(t[1]>12||t[1]<1)return!1;if(t[2]<1||t[2]>31)return!1;if((4==t[1]||6==t[1]||9==t[1]||11==t[1])&&t[2]>30)return!1;if(2==t[1]){if(t[2]>29)return!1;if((t[0]%100==0&&t[0]%400!=0||t[0]%4!=0)&&t[2]>28)return!1}return!0},n.GetDateTime=function(i,r){r=r||"YYYY-MM-DD hh:mm:ss";var o=e.extend({YYYY:null,MM:null,DD:null,hh:0,mm:0,ss:0},i),s={YYYY:"FullYear",MM:"Month",DD:"Date",hh:"Hours",mm:"Minutes",ss:"Seconds"},l=(new t).reDate();return e.each(["ss","mm","hh","DD","MM","YYYY"],(function(e,t){if(!n.isNum(a(o[t])))return null;var i=l.GetValue();(a(o[t])||0==a(o[t]))&&i["set"+s[t]](l["Get"+s[t]]()+("MM"==t?-1:0)+a(o[t]))})),n.parse({YYYY:l.GetFullYear(),MM:l.GetMonth(),DD:l.GetDate(),hh:l.GetHours(),mm:l.GetMinutes(),ss:l.GetSeconds()},r)},n.isValHtml=function(e){return/textarea|input/.test(e[0].tagName.toLocaleLowerCase())},n.isBool=function(e){return null==e||1==e};var l=i.prototype,c="jefixed",u=n.reMatch(r);return l.initdates=function(){var t=this,i=t.opts,r=null!=i.trigger?i.trigger:s.trigger,o=null==i.zIndex?1e4:i.zIndex,l=null!=i.isinitVal&&0!=i.isinitVal,c="#jedatebox"+function(){for(var e="",t=[1,2,3,4,5,6,7,8,9,0],i=0;i<8;i++)e+=t[Math.round(Math.random()*(t.length-1))];return e}(),u=n.isBool(i.isShow);t.areaVal=[],i.range=i.range||s.range,t.fixed=n.isBool(i.fixed);var d=function(e,i){var n=t.getValue({})[0],r=e.split("-"),o=i.split("-"),s={YYYY:a(r[0]),MM:a(r[1]),DD:a(r[2])},l={YYYY:a(o[0]),MM:a(o[1]),DD:a(o[2])};return s.YYYY>n.YYYY||s.YYYY===n.YYYY&&s.MM>n.MM?[s]:l.YYYY<n.YYYY||l.YYYY===n.YYYY&&l.MM<n.MM?[l]:[n]},p=function(r,a){var l=e("<div/>",{id:a.replace(/\#/g,""),class:"jedatebox "+(i.skinCell||s.skinCell)}),p=u?1==t.fixed?"absolute":"fixed":"relative";l.attr("author","chen guojun").css({"z-index":"#jedatebox"!=a?"":o,position:p}),"#jedatebox"!=a&&l.attr({jeformat:i.format||s.format,jefixed:c});var h=s.minDate.split(" "),f=s.maxDate.split(" ");n.minDate=(/\-/g.test(i.minDate)||null==i.minDate?i.minDate:h[0]+" "+i.minDate)||s.minDate,n.maxDate=(/\-/g.test(i.maxDate)||null==i.maxDate?i.maxDate:f[0]+" "+i.maxDate)||s.maxDate,n.boxelem=u?"#jedatebox":a,t.format=u?i.format||s.format:l.attr("jeformat");var g=d(n.minDate,n.maxDate);e(r).append(l),t.renderHtml(g[0].YYYY,g[0].MM,g[0].DD,i,n.boxelem)};if(l&&r){var h,f=i.initAddVal||[];if(f[1]){var g=n.reMatch(n.GetDateTime(f[0]));h=[{YYYY:g[0],MM:n.digit(g[1]),DD:n.digit(g[2]),hh:n.digit(g[3]),mm:n.digit(g[4]),ss:n.digit(g[5])}]}else h=t.getValue(e.isObject(f[0])?f[0]:{});t.setValue(h[0],i.format||s.format)}if(u){var m=["body","#jedatebox"];r?t.valCell.on(r,(function(t){t.stopPropagation(),e(m[1]).length>0||p(m[0],m[1])})):p(m[0],m[1])}else p(t.valCell,c)},l.parseFormat=function(e,t){return n.parse(e,t)},l.parseValue=function(t,i){var r=this,o=[],a=r.opts,s="",l=e(n.boxelem),d=null==i?e(l.attr(c)).length>0?l.attr("jeformat"):r.format:i,p=e.isFunction(t)?t():t;if(""!=p||p.length>0){var h=0!=a.range,f=new Array(h?2:1);e.each(f,(function(t){var i=2==f.length,s={},l=n.reMatch(d),c=i?p.split(a.range):p;i&&e.each(n.reMatch(c[t]),(function(e,t){s[7==n.mlen(r.format)?l[e]:u[e]]=t})),o.push(r.parseFormat(i?s:c,d)),s={}})),s=o.join(h?a.range:"")}return s},l.setValue=function(t,i,r){var o,s=this,l=s.valCell;if("string"==typeof t&&""!=t&&0==s.opts.range){var c=n.reMatch(t),u={};e.each(n.reMatch(s.format),(function(e,t){u[t]=a(c[e])})),o=u}else o=t;var d=n.isValHtml(l)?"val":"text",p=s.parseValue(o,i);return 0!=r&&l[d](p),p},l.getValue=function(i){var r,o=this,s=o.valCell,l=o.opts,c=(new t).reDate(),d=c.GetFullYear(),p=c.GetMonth(),h=c.GetDate(),f=c.GetHours(),g=c.GetMinutes(),m=c.GetSeconds();if(null==i&&n.isBool(l.isShow))r=s[n.isValHtml(s)?"val":"text"]();else{var v=n.isBool(l.isShow)?""==o.getValue():!n.isBool(l.isShow),y=e.extend({YYYY:null,MM:null,DD:null},i||{}),b=[],w=new Array(2),_=function(e){return[null==y[e]||null==y[e],y[e]]},x=[{YYYY:d,MM:p,DD:h,hh:f,mm:g,ss:m,zz:0},{YYYY:d,MM:p,DD:h,hh:f,mm:g,ss:m,zz:0}];if(v)e.each(w,(function(t){var i={};e.each(u,(function(e,n){i[n]=a(_(n)[0]?x[t][n]:_(n)[1])})),b.push(e.extend(x[t],i))}));else{var $=0!=l.range,C=o.getValue(),k=C.split(l.range),S=n.reMatch(o.format);e.each(w,(function(t){var r={},o=$?n.reMatch(k[t]):n.reMatch(C);e.each(S,(function(e,t){r[t]=a(o[e])}));var s=e.extend(r,i||{});b.push(e.extend(x[t],s))}))}r=b}return r},l.renderHtml=function(t,i,r,o,a){var s=this,l=e(a),c=o.language||e.fn.jedate.defaults.language,u=0!=o.range,d=n.isBool(o.isShow),p=n.minDate.replace(/\s+/g," ").split(" "),h=s.getValue({YYYY:t,MM:i,DD:r}),f=h[0],g=h[1];s.format=d?s.format:l.attr("jeformat");var m=n.mlen(s.format),v=/\hh/.test(s.format),y="cn"==c.name?d?c.clear:"重置":d?c.clear:"Reset",b="<div class='arthead'></div><div class='artcont'></div>",w=e("<div/>",{class:"maincont"}),_=e("<div/>",{class:"mainfoot"}),x=e("<div/>",{class:"daybox"}).append(b),$=e("<div/>",{class:"ymsbox"}).append(b),C=e("<div/>",{class:"timebox"}).append(b);if(w.append($).append(x).append(1==m||2==m?"":C),l.empty().append(w.children().hide()).append(_),o.isClear?btnStr='<span class="clear">'+y+'</span><span class="today">'+c.today+'</span><span class="setok">'+c.yes+"</span>":btnStr='<span class="today">'+c.today+'</span><span class="setok">'+c.yes+"</span>",timeDiv=e("<div/>",{class:"timecon"}).append(function(){var e=(/\hh/.test(s.format)?"<em></em>":"")+(/\mm/.test(s.format)?"<i>:</i><em></em>":"")+(/ss/.test(s.format)?"<i>:</i><em></em>":"");return u?e+"<span> ~ </span>"+e:e}()),btnsDiv=e("<div/>",{class:"btnscon"}).append(btnStr),_.append(timeDiv).append(btnsDiv),l.append(e("<div/>",{class:"jedate-tips"}).hide()),s.maincon=function(e,t){return l.find(e+" > "+(0==t?".arthead":".artcont"))},v){var k,S=/\s/.test(n.minDate)?p[1]:p[0],E=n.reMatch(S),j=[f.hh,f.mm,f.ss];k=u?""==s.getValue()?7==m?E.concat(E):E.concat([0,0,0]):j.concat([g.hh,g.mm,g.ss]):j,e.each(_.find(".timecon em"),(function(t){e(this).text(n.digit(k[t]))}))}else _.find(".timecon").hide();7==m?(s.maincon(".timebox",0).html(c.titText),l.find(".timebox").show(),s.eachHms(o,l)):m>=3&&m<=6&&(s.maincon(".daybox",0).append('<em class="yearprev yprev"></em><em class="monthprev mprev"></em><em class="monthnext mnext"></em><em class="yearnext ynext"></em>'),l.find(".daybox").show(),s.eachDays(f.YYYY,f.MM,f.DD,o,l),v&&(s.maincon(".timebox",1).attr("cont","no"),s.maincon(".timebox",0).html(c.titText+'<em class="close"></em>'),l.find(".timecon").on("click",(function(){"no"==s.maincon(".timebox",1).attr("cont")&&(s.maincon(".timebox",1).attr("cont","yes"),l.find(".ymsbox,.daybox").hide(),l.find(".timebox").show(),s.eachHms(o,l),s.dateOrien(l,s.valCell))})),s.maincon(".timebox",0).on("click",".close",(function(){s.maincon(".timebox",1).html("").attr("cont","no"),l.find(".ymsbox,.timebox").hide(),l.find(".daybox").show(),s.dateOrien(l,s.valCell)})),timeDiv.css({cursor:"pointer"})),s.maincon(".ymsbox",0).append('<em class="yearprev yprev"></em><em class="yearnext ynext"></em><em class="close"></em>').addClass("ymfix"),s.eachYM(f.YYYY,f.MM,o,l,".fixcon")),1!=m&&2!=m||(s.maincon(".ymsbox",0).append('<em class="yearprev yprev"></em><em class="yearnext ynext"></em>'),l.find(".ymsbox").show(),s.eachYM(f.YYYY,f.MM,o,l,".jedate-cont")),n.isBool(o.isTime)&&d||_.find(".timecon").hide(),d||_.find(".today").hide(),s.eventsDate(o,l),setTimeout((function(){o.success&&"function"==typeof o.success&&o.success(l)}),50)},l.createYMHtml=function(t,i,r){var o=a(t),s=a(i),l=this.maincon(".daybox",0),c=e("<p/>").css({width:n.isBool(r.multiPane)?"":"50%"}),u="<span class='ymbtn'>"+s+e.fn.jedate.defaults.language.monthText+o+e.fn.jedate.defaults.language.yearText+"</span>";return l.append(c.html(u)),o+"-"+s},l.eachYM=function(t,i,r){var s=this,l=new Array(15),c=new Date,u=r.language||e.fn.jedate.defaults.language,d=s.maincon(".ymsbox",1),p=n.isBool(r.multiPane),h=n.mlen(s.format),f=s.getValue({}),g=/\hh/.test(s.format),m=1==h;d.find(".ymcon").length>0&&d.find(".ymcon").remove(),e.each(new Array(p?1:2),(function(i){var p=function(e,t,r){var l=e.replace(o,""),c=t.replace(o,""),u=r.replace(o,"");return/YYYY-MM-DD/g.test(n.isparmat(s.format))?a(l)==a(c)&&0==i?"actdate":"":a(l)==a(c)||a(l)==a(u)?(g||(s.areaVal.push(e),s.areaStart=!0),"actdate"):a(l)>a(c)&&a(l)<a(u)?"contain":""},h=e("<div/>",{class:"ymcon"}).addClass(1==i?"spaer":""),v=[];e.each(m?l:u.month,(function(e,o){var u,d=1==i?t+(m?l.length:1):t;if(e=1==i?m?15+e:12+e:e,m){var h=n.splMatch(n.minDate),g=n.splMatch(n.maxDate),y=h[0],b=g[0],w=d-7+e,_=""==s.getValue()&&n.isBool(r.isShow)?c.getFullYear():s.getValue();w<y||w>b?v.push({style:"disabled",ym:w,idx:e}):(u=p(w.toString(),_.toString(),f[1].YYYY.toString()),v.push({style:u,ym:w,idx:e}))}else{var x=n.splMatch(n.minDate),$=n.splMatch(n.maxDate),C=a(d+""+n.digit(o)+"01"),k=a(x[0]+""+n.digit(x[1])+n.digit(x[2])),S=a($[0]+""+n.digit($[1])+n.digit($[2]));if(C<k||C>S)v.push({style:"disabled",ym:d+"-"+n.digit(o),idx:e});else{var E=d+"-"+n.digit(o),j=f[0].YYYY+"-"+n.digit(f[0].MM);u=p(E,j,f[1].YYYY+"-"+n.digit(f[1].MM)),v.push({style:u,ym:d+"-"+n.digit(o),idx:e})}}}));var y=e("<table/>",{class:m?"yul":"ymul"});e.each(new Array(m?5:4),(function(){var t=e("<tr/>");e.each(new Array(3),(function(){var i=e("<td/>");y.append(t.append(i))}))})),e.each(v,(function(e,t){y.find("td").eq(e).addClass(t.style).attr({idx:t.idx,"je-val":t.ym}).html(t.ym)})),d.append(h.append(y))}));var v=d.find("td"),y=s.maincon(".ymsbox",0),b=m?p?14:29:p?11:23,w=v.eq(0).text(),_=v.eq(b).text(),x=[m?w:w.substring(0,4),m?_:_.substring(0,4)];y.find("p").remove(),y.append("<p>"+w+" ~ "+_+"</p>").attr({min:x[0],max:x[1]})},l.dateRegExp=function(t){var i=t.split(",")||[],n="",r=function(e){var t,i,n=/#?\{(.*?)\}/;for(e+="";null!=(t=n.exec(e));)t.lastIndex=t.index+t[1].length+t[0].length-t[1].length-1,(i=a(t[1]))<0&&(i="9700"+-i),e=e.substring(0,t.index)+i+e.substring(t.lastIndex+1);return e};if("array"===e.type(i)&&i.length>0){for(var o=0;o<i.length;o++)n+=r(i[o]),o!=i.length-1&&(n+="|");n=n?new RegExp("(?:"+n+")"):null}else n=null;return n},l.eachDays=function(t,i,r,o){var s=this,l=n.isBool(o.isShow),c=a(t),u=a(i),d=s.valCell,p=o.language||e.fn.jedate.defaults.language,h=o.valiDate||[],f=n.reMatch(n.minDate),g=a(f[0]+""+n.digit(f[1])+n.digit(f[2])),m=n.reMatch(n.maxDate),v=a(m[0]+""+n.digit(m[1])+n.digit(m[2])),y=n.isBool(o.multiPane),b=s.getValue(l?{}:{YYYY:t,MM:i,DD:r});b[0].YYYY===t&&b[0].MM===i||(b=s.getValue({YYYY:t,MM:i,DD:r}));var w=""!=(d.val()||d.text())&&0!=o.range,_=a(b[0].YYYY+""+n.digit(b[0].MM)+n.digit(b[0].DD)),x=function(t,i,r){var a=o.marks;return e.isArray(a)&&a.length>0&&function(e,t){for(var i=e.length;i--;)if(e[i]===t)return!0;return!1}(a,t+"-"+n.digit(i)+"-"+n.digit(r))?'<i class="marks"></i>':""},$=function(e,t,i){var n;if(1==o.festival&&"cn"==p.name){var r=s.jeLunar(e,t-1,i),a=r.solarFestival||r.lunarFestival;n='<p><span class="solar">'+i+'</span><span class="lunar">'+(""!=(a&&r.jieqi)?a:r.jieqi||r.showInLunar)+"</span></p>"}else n='<p class="nolunar">'+i+"</p>";return n},C=function(e,t,i,r){var o=a(e+""+n.digit(t)+n.digit(i));if(r){if(o>=g&&o<=v)return!0}else if(g>o||v<o)return!0},k=new Array(y?1:2),S=u+1>12,E=[];e.each(k,(function(t){var i=e("<table/>",{class:"daysul"}),r=e("<thead/>"),l=e("<tbody/>"),d=1==t?42:0;i.append(r).append(l),e.each(new Array(7),(function(t){var i=e("<tr/>");e.each(new Array(7),(function(){var n=e("<th/>"),o=e("<td/>");i.append(0==t?n:o.attr("idx",d++)),0==t?r.append(i):l.append(i)}))}));var f=S&&1==t?c+1:c,g=S&&1==t?1:1==t?u+1:u,m=function(e,t){for(var i=0,r=[],o=new Date(e,t-1,1).getDay()||7,l=n.getDaysNum(e,t),c=0,u=n.prevMonth(e,t),d=n.getDaysNum(e,u.m),p=n.nextMonth(e,t),h=d-o+1;h<=d;h++,i++){var f=x(u.y,u.m,h),g=C(u.y,u.m,h,!1)?"disabled":"other";r.push({style:g,ymd:u.y+"-"+u.m+"-"+h,day:h,d:$(u.y,u.m,h)+f,idx:c++})}for(var m=1;m<=l;m++,i++){var v=x(e,t,m),y="",k=a(e+""+n.digit(t)+n.digit(m)),S=a(b[1].YYYY+""+n.digit(b[1].MM)+n.digit(b[1].DD)),E=k>_,j=k<S;C(e,t,m,!0)?k==_?(y="actdate",s.areaVal.push(e+"-"+n.digit(t)+"-"+n.digit(m)),s.areaStart=!0):E&&j&&w?y="contain":k==S&&w?(y="actdate",s.areaVal.push(e+"-"+n.digit(t)+"-"+n.digit(m)),s.areaEnd=!0):y="":y="disabled",r.push({style:y,ymd:e+"-"+t+"-"+m,day:m,d:$(e,t,m)+v,idx:c++})}for(var D=1,T=42-i;D<=T;D++){var I=x(p.y,p.m,D),A=C(p.y,p.m,D,!1)?"disabled":"other";r.push({style:A,ymd:p.y+"-"+p.m+"-"+D,day:D,d:$(p.y,p.m,D)+I,idx:c++})}return r}(f,g),v=e("<div/>",{class:"contlist"});e.each(p.weeks,(function(e,t){i.find("th").eq(e).text(t)})),E.push(s.createYMHtml(f,g,o)),e.each(m,(function(t,r){var o=r.style;if(h.length>0&&""!=h[0])if(/\%/g.test(h[0])){var l=h[0].replace(/\%/g,"").split(","),c=[];e.each(l,(function(e,t){c.push(n.digit(a(t)))}));var u=-1==e.inArray(n.digit(r.day),c);o=n.isBool(h[1])?u?"disabled":o:u?o:"disabled"}else{var d=s.dateRegExp(h[0]).test(n.digit(r.day));o=n.isBool(h[1])?d?"disabled":r.style:d?r.style:"disabled"}i.find("td").eq(t).addClass(o).attr("je-val",function(t){var i=n.reMatch(t),r=[];return e.each(i,(function(e,t){r.push(n.digit(t))})),r.join("-")}(r.ymd)).html(r.d)})),s.maincon(".daybox",1).append(v.append(i)).addClass(1==t?"spaer":"")})),s.maincon(".daybox",0).attr("je-ym",E.join(","))},l.eachHms=function(t,i){var r=this,o=t.language||e.fn.jedate.defaults.language,s=n.isBool(t.multiPane),l=r.getValue({}),c=""==r.getValue(),u=0==t.range,d=n.minDate.replace(/\s+/g," ").split(" "),p=n.maxDate.replace(/\s+/g," ").split(" "),h=/\hh/.test(r.format),f=/\mm/.test(r.format),g=/ss/.test(r.format),m=/YYYY-MM-DD/g.test(n.isparmat(r.format))&&/\hh/.test(r.format),v=n.reMatch(d[1]),y=n.reMatch(p[1]),b=r.selectDay||r.areaVal[0];b&&(v&&b>d[0]&&"00:00:00"!=d[1]&&(v=["00","00","00"]),y&&b<p[0]&&"23:59:59"!=p[1]&&(y=["23","59","59"]));var w=r.maincon(".timebox",1),_=["action","disabled cla"],x=i.find(".mainfoot .timecon em"),$=new Date,C=$.getHours(),k=$.getMinutes(),S=$.getSeconds(),E=[l[0].hh||C,l[0].mm||k,l[0].ss||S],j=[l[1].hh||C,l[1].mm||k,l[1].ss||S];if(!(0==t.range&&i.find(".timelist").length>0)){var D=[];h&&D.push(24),f&&D.push(60),g&&D.push(60),e.each(new Array(u?1:2),(function(i){var r=e("<div/>",{class:"timelist"}).css({width:u?"100%":"50%",float:u?"":"left"}),a=e("<div/>",{class:"contime"}),l=e("<div/>",{class:"textbox"}).append((h?"<p>"+o.times[0]+"</p>":"")+(f?"<p>"+o.times[1]+"</p>":"")+(g?"<p>"+o.times[2]+"</p>":""));r.append(l),w.addClass(1==i?"spaer":""),e.each(D,(function(o,s){for(var l="",u=e("<ul/>").attr("idx",1==i?3+o:o),d=x.eq(o).text(),p=0;p<s;p++){var h=e("<li/>");l=0!=t.range?m?0==i?p>=v[o]?p==(c?v[o]:E[o])?_[0]:"":_[1]:p>y[o]?_[1]:p==(c?0:j[o])?_[0]:"":p>=v[o]?p==(c?v[o]:0==i?E[o]:j[o])?_[0]:"":_[1]:p>=v[o]&&p<=y[o]?d<v[o]?p==v[o]?_[0]:"":d>y[o]?p==y[o]?_[0]:"":p==d?_[0]:"":0!==o&&E[0]<=y[0]?"max":_[1],h.text(n.digit(p)).addClass(l),w.append(r.append(a.append(u.append(h))))}})),0==s&&u&&r.css({"padding-left":r.outerWidth()/2+12,"padding-right":r.outerWidth()/2+12})})),r.locateScroll(w.find("ul")),r.clickTime(t,i);var T=[];e.each(v,(function(e,t){a(t)>a(y[e])&&T.push("不能大于最大"+o.times[e])})),T.length>0&&r.tips(T.join("<br/>"),4.5)}},l.eventsDate=function(t,i){var r=this;if(r.clickYM(t,i),r.clickDays(t,i),r.clickBtn(t,i),n.isBool(t.isShow)){var o=t.position||[];o.length>0?i.css({top:o[0],left:o[1]}):(r.dateOrien(i,r.valCell),e(window).on("resize",(function(){r.dateOrien(i,r.valCell)})))}e(document).on("mouseup",(function(t){if(t.stopPropagation(),"#jedatebox"==n.boxelem){var i=e(n.boxelem);i&&"none"!==i.css("display")&&r.dateClose(),e("#jedatetipscon").length>0&&e("#jedatetipscon").remove(),delete r.areaStart,delete r.areaEnd,r.areaVal=[]}})),e(n.boxelem).on("mouseup",(function(e){e.stopPropagation()}))},l.clickYM=function(t,i){var r=this,s=r.maincon(".ymsbox",0),l=r.valCell,c=s.find(".yprev"),u=s.find(".ynext"),d=r.maincon(".daybox",0),p=n.isBool(t.isShow),h=d.find(".yprev"),f=d.find(".ynext"),g=d.find(".mprev"),m=d.find(".mnext"),v=n.mlen(r.format),y=2==v,b=1==v,w=["actdate","contain"],_=new Date;if(y||b?(function(){var i=r.maincon(".ymsbox",1).find(".ymcon").find("td");i.on("click",(function(){var n=e(this),s=n.attr("je-val");n.hasClass("disabled")||(0==t.range?(i.removeClass(w[0]),n.addClass(w[0]),r.maincon(".ymsbox",0).attr("data-val",n.text())):r.areaStart&&null==r.areaEnd?(n.addClass(w[0]),r.areaEnd=!0,r.areaVal.push(s),i.each((function(){var t=e(this),i=t.attr("je-val").replace(o,""),n=[r.areaVal[0].replace(o,""),r.areaVal[1].replace(o,"")],s=Math.min.apply(null,n),l=Math.max.apply(null,n);t.hasClass("other")||a(i)>a(s)&&a(i)<a(l)&&t.addClass(w[1])}))):r.areaStart&&r.areaEnd&&(r.delAreaAttr(),i.removeClass(w[0]).removeClass(w[1]),n.addClass(w[0]),r.areaVal.push(s),r.areaStart=!0))}))}(),e.each([c,u],(function(n,o){o.on("click",(function(){var o=e(this),s=_.getMonth()+1,c=a(o.parent().attr("min")),u=a(o.parent().attr("max")),d=b?0==n?c:u:0==n?--c:++u;if(r.renderHtml(d,s,null,t,i),0==t.range){var p=b?{YYYY:d}:{YYYY:d,MM:s},h=r.parseValue(p),f={YYYY:d,MM:s,DD:_.getDate(),hh:_.getHours(),mm:_.getMinutes(),ss:_.getSeconds()};e.isFunction(t.toggle)&&t.toggle(l,h,f)}}))}))):(e.each([h,f],(function(o,s){s.on("click",(function(s){s.stopPropagation();var c=n.reMatch(e(this).parent().attr("je-ym")),u=a(c[0]),d=a(c[1]),p=0==o?--u:++u,h=r.getValue({})[0],f=p===h.YYYY&&d===h.MM?h.DD:1;if(r.renderHtml(p,d,f,t,i),0==t.range){var g=r.parseValue({YYYY:p,MM:d,DD:h.DD}),m={YYYY:p,MM:d,DD:_.getDate(),hh:_.getHours(),mm:_.getMinutes(),ss:_.getSeconds()};e.isFunction(t.toggle)&&t.toggle({elem:l,val:g,date:m})}}))})),e.each([g,m],(function(o,s){s.on("click",(function(s){s.stopPropagation();var c=n.reMatch(e(this).parent().attr("je-ym")),u=a(c[0]),d=a(c[1]),p=n.prevMonth(u,d),h=n.nextMonth(u,d),f=r.getValue({})[0],g=f.DD,m=0==o?p.y:h.y,v=0==o?p.m:h.m;if(0==o?(g=p.m===f.MM&&p.y===f.YYYY?f.DD:1,r.renderHtml(p.y,p.m,g,t,i)):(g=h.m===f.MM&&h.y===f.YYYY?f.DD:1,r.renderHtml(h.y,h.m,g,t,i)),0==t.range){var y=r.parseValue({YYYY:m,MM:v,DD:g}),b={YYYY:m,MM:v,DD:g,hh:_.getHours(),mm:_.getMinutes(),ss:_.getSeconds()};e.isFunction(t.toggle)&&t.toggle({elem:l,val:y,date:b})}}))}))),v>=3&&v<=6){r.maincon(".daybox",0).on("click",".ymbtn",(function(){i.children(".ymsbox").show(),i.children(".daybox,.mainfoot").hide(),p&&r.dateOrien(i,r.valCell)}));var x=function(){var o=i.find(".ymcon").find("td");o.on("click",(function(){var a=e(this),s=n.reMatch(a.attr("je-val")),l=r.selectDay?n.reMatch(r.selectDay):null,c=l?{YYYY:l[0],MM:l[1],DD:l[2]}:r.getValue({})[0],u=s[0]===c.YYYY.toString()&&s[1]===c.MM.toString()?c.DD:1;o.removeClass(w[0]),a.addClass(w[0]),i.children(".jedate-contfix").show(),i.children(".jedate-jedatewrap").hide(),r.renderHtml(s[0],s[1],u,t,i)}))};e.each([c,u],(function(n,o){o.on("click",(function(){var o=_.getMonth()+1,s=a(e(this).parent().attr("min")),l=a(e(this).parent().attr("max")),c=b?0==n?s:l:0==n?--s:++l;r.eachYM(c,o,t,i,".jedate-contfix"),x(),p&&r.dateOrien(i,r.valCell),e.isFunction(t.toggle)&&t.toggle()}))})),s.on("click",".close",(function(){i.children(".daybox,.mainfoot").show(),i.children(".ymsbox").hide(),p&&r.dateOrien(i,r.valCell)})),x()}},l.gethmsVal=function(t){var i={};return t.find(".timecon em").each((function(t){null==e(this).attr("disabled")&&(i[u[3+t]]=e(this).text())})),i},l.clickDays=function(t,i){var r=this,s=r.valCell,d="je-val",p=i.find(".daysul").find("td"),h=t.language||e.fn.jedate.defaults.language,f=["actdate","contain"];p.on("click",(function(l){var h=e(this),g=h.attr(d),m=n.reMatch(g),v=[];h.hasClass("disabled")||(l.stopPropagation(),r.selectDay=g,0==t.range?function(){if(e.each(m,(function(e,t){v.push(a(t))})),e(i.attr(c)).length>0)r.renderHtml(v[0],v[1],v[2],t,i);else if(n.isBool(t.onClose))p.removeClass(f[0]),h.addClass(f[0]);else{var o={},l=n.reMatch(h.attr(d));e.each(l,(function(e,t){o[u[e]]=t}));var g=/\hh/.test(r.format)?e.extend(o,r.gethmsVal(i)):o,y=r.setValue(g);r.dateClose(),(e.isFunction(t.choosefun)||null!=t.choosefun)&&t.choosefun&&t.choosefun(s,y,g)}}():r.areaStart&&null==r.areaEnd?(h.addClass(f[0]),r.areaEnd=!0,r.areaVal.push(g),p.each((function(){var t=e(this),i=t.attr("je-val").replace(o,""),n=[r.areaVal[0].replace(o,""),r.areaVal[1].replace(o,"")],s=Math.min.apply(null,n),l=Math.max.apply(null,n);t.hasClass("other")||t.hasClass("disabled")||a(i)>a(s)&&a(i)<a(l)&&t.addClass(f[1])}))):r.areaStart&&r.areaEnd&&(r.delAreaAttr(),p.removeClass(f[0]).removeClass(f[1]),h.addClass(f[0]),r.areaVal.push(g),r.areaStart=!0))})),t.festival&&"cn"==h.name&&(i.addClass("grid"),p.on("mouseover",(function(){e("#jedatetipscon").length>0&&e("#jedatetipscon").remove();var i=e(this),o=n.reMatch(i.attr(d)),s=e("<div/>",{id:"jedatetipscon",class:"jedatetipscon"}),c=r.jeLunar(a(o[0]),a(o[1])-1,a(o[2])),u="<p>"+c.solarYear+"年"+c.solarMonth+"月"+c.solarDate+"日 "+c.inWeekDays+'</p><p class="red">农历:'+c.shengxiao+"年 "+c.lnongMonth+"月"+c.lnongDate+"</p><p>"+c.ganzhiYear+"年 "+c.ganzhiMonth+"月 "+c.ganzhiDate+"日</p>",p=""!=(c.solarFestival||c.lunarFestival)?'<p class="red">节日:'+c.solarFestival+c.lunarFestival+"</p>":"",h=""!=c.jieqi?'<p class="red">'+(""!=c.jieqi?"节气:"+c.jieqi:"")+"</p>":"",f=""!=(c.solarFestival||c.lunarFestival||c.jieqi)?p+h:"";e("body").append(s),s.html(u+f);var g=l.lunarOrien(s,i);s.css({"z-index":null==t.zIndex?10005:t.zIndex+5,top:g.top,left:g.left,position:"absolute",display:"block"})})).on("mouseout",(function(){e("#jedatetipscon").remove()})))},l.clickBtn=function(t,i){var r=this,o=r.valCell,a=n.isBool(t.isShow),s=7==n.mlen(r.format),l=2==n.mlen(r.format),c=1==n.mlen(r.format);i.on("click",".clear",(function(s){if(s.stopPropagation(),a){var l=n.isValHtml(r.valCell)?"val":"text",c=r.valCell[l]();r.setValue(""),r.dateClose(),""!=c&&(n.isBool(t.clearRestore)&&(n.minDate=t.startMin||n.minDate,n.maxDate=t.startMax||n.maxDate),(e.isFunction(t.clearfun)||null!=t.clearfun)&&t.clearfun(o,c))}else{var u=r.getValue({});r.renderHtml(u[0].YYYY,u[0].MM,u[0].DD,t,i)}0!=t.range&&r.delAreaAttr()})),0!=t.range&&i.find(".today").hide(),i.on("click",".today",(function(){var i=new Date,a={YYYY:i.getFullYear(),MM:n.digit(i.getMonth()+1),DD:n.digit(i.getDate()),hh:n.digit(i.getHours()),mm:n.digit(i.getMinutes()),ss:n.digit(i.getSeconds())},s=r.setValue(a);r.dateClose(),(e.isFunction(t.choosefun)||null!=t.choosefun)&&t.choosefun(o,s,a)})),i.on("click",".setok",(function(d){d.stopPropagation();var p,h,f,g=new Date;if(0==t.range){var m=r.gethmsVal(i);p=s?m:function(){var t={},o=l||c?".ymcon":".daysul",a=i.find(o).find("td.actdate").attr("je-val");if(a){var s=n.reMatch(a);return e.each(s,(function(e,i){t[u[e]]=i})),/\hh/.test(r.format)?e.extend(t,m):t}return!1}()}else{var v={},y=[],b=[[],[]];i.find(".timecon em").each((function(t){null==e(this).attr("disabled")&&b[t>2?1:0].push(e(this).text())})),7==n.mlen(r.format)?0!=t.range&&e.each(b,(function(e,t){var i=t.join("");v[i]=t.join(":"),y.push(i)})):e.each(r.areaVal,(function(e,t){var i=t+(/\hh/.test(r.format)?" "+b[e].join(":"):""),n=i.replace(/\s|-|:/g,"");v[n]=i,y.push(n)}));var w=Math.min.apply(null,y),_=Math.max.apply(null,y);p=v[w]+t.range+v[_]}if(a?(p&&(h=r.setValue(p)),r.dateClose()):p&&(h=r.setValue(p,r.format,!1)),p){if(0==t.range)f={YYYY:p.YYYY||g.getFullYear(),MM:n.digit(p.MM||g.getMonth()+1),DD:n.digit(p.DD||g.getDate()),hh:n.digit(p.hh||g.getHours()),mm:n.digit(p.mm||g.getMinutes()),ss:n.digit(p.ss||g.getSeconds())};else{var x=r.setValue(p,r.format,!1);f=[],e.each(new Array(2),(function(i){var o={},a=n.reMatch(x.split(t.range)[i]);e.each(n.reMatch(r.format),(function(e,t){o[t]=a[e]})),f.push(o)}))}(e.isFunction(t.choosefun)||null!=t.choosefun)&&t.choosefun(o,h,f),(e.isFunction(t.okfun)||null!=t.okfun)&&t.okfun(o,h,f)}}))},l.clickTime=function(t,i){var n=this,r=n.opts.maxDate?n.opts.maxDate.replace(/\s+/g," ").split(" ")[1].substring(0,2):0,o=n.opts.minDate?n.opts.minDate.replace(/\s+/g," ").split(" ")[1].substring(0,2):0;if(/\hh/.test(n.format)){var s=n.maincon(".timebox",1).find("ul");s.on("click","li",(function(){var t=e(this),l=t.parent().attr("idx"),c=t.text(),u=t.parent().siblings()[0],d=t.parent().siblings()[1];t.hasClass("disabled")||(0!==r&&"0"===l?(a(c)===a(r)&&(e(u).find("li.max").addClass("disabled"),e(d).find("li.max").addClass("disabled")),a(c)<a(r)?(e(u).find("li.disabled").addClass("dis"),e(d).find("li.disabled").addClass("dis"),e(u).find("li.disabled").removeClass("disabled"),e(d).find("li.disabled").removeClass("disabled")):(e(u).find("li.dis").addClass("disabled"),e(d).find("li.dis").addClass("disabled"),e(u).find("li.dis").removeClass("dis"),e(d).find("li.dis").removeClass("dis"))):"0"===l&&(a(c)===a(o)&&(e(u).find("li.max").addClass("disabled"),e(d).find("li.max").addClass("disabled")),a(c)>a(o)?(e(u).find("li.disabled").addClass("dis"),e(d).find("li.disabled").addClass("dis"),e(u).find("li.disabled").removeClass("disabled"),e(d).find("li.disabled").removeClass("disabled")):(e(u).find("li.dis").addClass("disabled"),e(d).find("li.dis").addClass("disabled"),e(u).find("li.dis").removeClass("dis"),e(d).find("li.dis").removeClass("dis"))),t.addClass("action").siblings().removeClass("action"),i.find(".timecon em").eq(l).text(c),n.locateScroll(s))}))}},l.locateScroll=function(t){e.each(t,(function(){var t=e(this),i=t.find(".action"),n=i.length>0?i[0].offsetTop-114:0;t[0].scrollTop=n}))},l.lunarOrien=function(e,t,i){var r,o,a=t[0].getBoundingClientRect();return o=a.right+e[0].offsetWidth/1.5>=n.docArea(1)?a.right-e[0].offsetWidth:a.left+(i?0:n.docScroll(1)),r=a.bottom+e[0].offsetHeight/1<=n.docArea()?a.bottom-1:a.top>e[0].offsetHeight/1.5?a.top-e[0].offsetHeight-1:n.docArea()-e[0].offsetHeight,{top:Math.max(r+(i?0:n.docScroll())+1,1)+"px",left:o+"px"}},l.dateOrien=function(e,t,i){var r,o,a,s,l=this.fixed?t[0].getBoundingClientRect():e[0].getBoundingClientRect();if(o=l.left,r=l.bottom,this.fixed){var c=e.outerWidth(),u=e.outerHeight();o+c>n.docArea(!0)&&(o=n.docArea(!0)-c),r+u>n.docArea()&&(r=l.top>u?l.top-u-2:n.docArea()-u-1),a=Math.max(r+(i?0:n.docScroll())+1,1)+"px",s=o+"px"}else a="50%",s="50%",e.css({"margin-top":-l.height/2,"margin-left":-l.width/2});e.css({top:a,left:s})},l.tips=function(t,i){var r=e(n.boxelem).find(".jedate-tips");r.html("").html(t||"").show(),clearTimeout(this.tipTime),this.tipTime=setTimeout((function(){r.html("").hide()}),1e3*(i||2.5))},l.dateClose=function(){0==e(e(n.boxelem).attr(c)).length&&e(n.boxelem).remove()},l.dateContrast=function(e,t){var i=e.split("-"),r=t.split("-");return!(a(i[0]+""+n.digit(a(i[1])-1)+n.digit(i[2]||"01"))>=a(r[0]+""+n.digit(a(r[1])-1)+n.digit(i[2]||"01")))},l.delAreaAttr=function(){delete this.areaStart,delete this.areaEnd,this.areaVal=[]},l.jeLunar=function(e,t,i){var n=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448],r=[0,21208,43467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758],o=["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],s="日一二三四五六七八九十",l=["正","二","三","四","五","六","七","八","九","十","十一","腊"],c={"0101":"*1元旦节","0202":"湿地日","0214":"情人节","0308":"妇女节","0312":"植树节","0315":"消费者权益日","0401":"愚人节","0422":"地球日","0501":"*1劳动节","0504":"青年节","0512":"护士节","0518":"博物馆日","0520":"母亲节","0601":"儿童节","0623":"奥林匹克日","0630":"父亲节","0701":"建党节","0801":"建军节","0903":"抗战胜利日","0910":"教师节",1001:"*3国庆节",1201:"艾滋病日",1224:"平安夜",1225:"圣诞节"},u={"0100":"除夕","0101":"*2春节","0115":"元宵节","0505":"*1端午节","0707":"七夕节","0715":"中元节","0815":"*1中秋节","0909":"*1重阳节",1015:"下元节",1208:"腊八节",1223:"小年"};return new function(e){var t=function(e,t){return new Date(31556925974.7*(e-1900)+6e4*r[t]+Date.UTC(1900,0,6,2,5)).getUTCDate()},i=function(e){var t,i=348;for(t=32768;t>8;t>>=1)i+=n[e-1900]&t?1:0;return i+p(e)},d=function(e){return"甲乙丙丁戊己庚辛壬癸".charAt(e%10)+"子丑寅卯辰巳午未申酉戌亥".charAt(e%12)},p=function(e){return h(e)?65536&n[e-1900]?30:29:0},h=function(e){return 15&n[e-1900]},f=function(e,t){return n[e-1900]&65536>>t?30:29},g=function(e){return e<10?"0"+(0|e):e},m=function(e,t){var i=e;return t.replace(/dd?d?d?|MM?M?M?|yy?y?y?/g,(function(e){switch(e){case"yyyy":var t="000"+i.getFullYear();return t.substring(t.length-4);case"dd":return g(i.getDate());case"d":return i.getDate().toString();case"MM":return g(i.getMonth()+1);case"M":return i.getMonth()+1}}))};this.isToday=!1,this.isRestDay=!1,this.solarYear=m(e,"yyyy"),this.solarMonth=m(e,"M"),this.solarDate=m(e,"d"),this.solarWeekDay=e.getDay(),this.inWeekDays="星期"+s.charAt(this.solarWeekDay);var v=new function(e){var t,n,r=0,o=(e-new Date(1900,0,31))/864e5;for(this.dayCyl=o+40,this.monCyl=14,t=1900;t<2050&&o>0;t++)o-=r=i(t),this.monCyl+=12;for(o<0&&(o+=r,t--,this.monCyl-=12),this.year=t,this.yearCyl=t-1864,n=h(t),this.isLeap=!1,t=1;t<13&&o>0;t++)n>0&&t==n+1&&0==this.isLeap?(--t,this.isLeap=!0,r=p(this.year)):r=f(this.year,t),1==this.isLeap&&t==n+1&&(this.isLeap=!1),o-=r,0==this.isLeap&&this.monCyl++;0==o&&n>0&&t==n+1&&(this.isLeap?this.isLeap=!1:(this.isLeap=!0,--t,--this.monCyl)),o<0&&(o+=r,--t,--this.monCyl),this.month=t,this.day=o+1}(e);this.lunarYear=v.year,this.shengxiao="鼠牛虎兔龙蛇马羊猴鸡狗猪".charAt((this.lunarYear-4)%12),this.lunarMonth=v.month,this.lunarIsLeapMonth=v.isLeap,this.lnongMonth=this.lunarIsLeapMonth?"闰"+l[v.month-1]:l[v.month-1],this.lunarDate=v.day,this.showInLunar=this.lnongDate=function(e,t){var i;switch(e){case 10:i="初十";break;case 20:i="二十";break;case 30:i="三十";break;default:i="初十廿卅".charAt(Math.floor(t/10)),i+=s.charAt(t%10)}return i}(this.lunarMonth,this.lunarDate),1==this.lunarDate&&(this.showInLunar=this.lnongMonth+"月"),this.ganzhiYear=d(v.yearCyl),this.ganzhiMonth=d(v.monCyl),this.ganzhiDate=d(v.dayCyl++),this.jieqi="",this.restDays=0,t(this.solarYear,2*(this.solarMonth-1))==m(e,"d")&&(this.showInLunar=this.jieqi=o[2*(this.solarMonth-1)]),t(this.solarYear,2*(this.solarMonth-1)+1)==m(e,"d")&&(this.showInLunar=this.jieqi=o[2*(this.solarMonth-1)+1]),"清明"==this.showInLunar&&(this.showInLunar="清明节",this.restDays=1),this.solarFestival=c[m(e,"MM")+m(e,"dd")],void 0===this.solarFestival?this.solarFestival="":/\*(\d)/.test(this.solarFestival)&&(this.restDays=a(RegExp.$1),this.solarFestival=this.solarFestival.replace(/\*\d/,"")),this.showInLunar=""==this.solarFestival?this.showInLunar:this.solarFestival,this.lunarFestival=u[this.lunarIsLeapMonth?"00":g(this.lunarMonth)+g(this.lunarDate)],void 0===this.lunarFestival?this.lunarFestival="":/\*(\d)/.test(this.lunarFestival)&&(this.restDays=this.restDays>a(RegExp.$1)?this.restDays:a(RegExp.$1),this.lunarFestival=this.lunarFestival.replace(/\*\d/,"")),12==this.lunarMonth&&this.lunarDate==f(this.lunarYear,12)&&(this.lunarFestival=u["0100"],this.restDays=1),this.showInLunar=""==this.lunarFestival?this.showInLunar:this.lunarFestival}(new Date(e,t,i))},e.dateVer="6.0.2",e.nowDate=function(e,t){return t=t||"YYYY-MM-DD hh:mm:ss","number"==typeof e&&(e={DD:e}),n.GetDateTime(e,t)},e.timeStampDate=function(t,i){i=i||"YYYY-MM-DD hh:mm:ss";var r=/^(-)?\d{1,10}$/.test(t)||/^(-)?\d{1,13}$/.test(t);if(/^[1-9]*[1-9][0-9]*$/.test(t)&&r){var o=a(t);if(/^(-)?\d{1,10}$/.test(o))o*=1e3;else if(/^(-)?\d{1,13}$/.test(o))o*=1e3;else{if(!/^(-)?\d{1,14}$/.test(o))return void e.log("error","时间戳格式不正确");o*=100}var s=new Date(o);return n.parse({YYYY:s.getFullYear(),MM:n.digit(s.getMonth()+1),DD:n.digit(s.getDate()),hh:n.digit(s.getHours()),mm:n.digit(s.getMinutes()),ss:n.digit(s.getSeconds())},i)}var l=n.reMatch(t),c=new Date(l[0],a(l[1])-1,l[2],l[3]||0,l[4]||0,l[5]||0);return Math.round(c.getTime()/1e3)},e.splitDate=function(e){var t=e.match(/\w+|d+/g);return{YYYY:a(t[0]),MM:a(t[1])||0,DD:a(t[2])||0,hh:a(t[3])||0,mm:a(t[4])||0,ss:a(t[5])||0}},e.getLunar=function(e,t){if(t=t||"YYYY-MM-DD hh:mm:ss",/YYYY-MM-DD/g.test(n.isparmat(t))){var i=e.substr(0,4).replace(/^(\d{4})/g,"$1,")+e.substr(4).replace(/(.{2})/g,"$1,"),r=n.isNum(e)?n.reMatch(i):n.reMatch(e),o=this.jeLunar(r[0],r[1]-1,r[2]);return{nMonth:o.lnongMonth,nDays:o.lnongDate,yYear:a(o.solarYear),yMonth:a(o.solarMonth),yDays:a(o.solarDate),cWeek:o.inWeekDays,nWeek:o.solarWeekDay}}},i})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){e.exports=i},function(e,t,i){(function(n){var r,o,a;o=[i(0),i(2),i(3),i(4),i(1),i(5),i(6),i(7),i(8),i(9)],void 0===(a="function"==typeof(r=function(e,t){!function(t,i){e.apply(e.util,{mapByKey:function(e,i,n){var r={};return t.map(e,(function(e,o){!0===n?-1==t.inArray(o,i)&&(r[o]=e):t.inArray(o,i)>-1&&(r[o]=e)})),r},defaultValue:function(e,t){return void 0!==e?e:void 0!==t?t:""},formatDate:function(e,i,n){return e?(t.isDate(e)||(e=t.Date.parse(e,i)),t.Date.format(e,n||t.Date.defaultFormat)):""},formatMilliDate:function(e,i){return e?(t.isDate(e)||(e=new Date(e)),t.Date.dateFormat(e,i||t.Date.patterns.ISO8601Long)):""},dateRenderer:function(e,i,n){return this.formatDate(e,i||"Ymd",n||t.Date.patterns.ISO8601Short)},timeRenderer:function(e,t,i){return this.formatDate(e,t||"His",i||"H:i:s")},dateTimeRenderer:function(e,i,n){return this.formatDate(e,i||"YmdHis",n||t.Date.patterns.ISO8601Long)},domUniqueId:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e}});var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Math.uuid=function(e,t){var i,r,o=n,a=[];if(t=t||o.length,e)for(i=0;e>i;i++)a[i]=o[0|Math.random()*t];else for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",i=0;36>i;i++)a[i]||(r=0|16*Math.random(),a[i]=o[19==i?3&r|8:r]);return a.join("")},Math.uuidFast=function(){for(var e,t=n,i=new Array(36),r=0,o=0;36>o;o++)8==o||13==o||18==o||23==o?i[o]="-":14==o?i[o]="4":(2>=r&&(r=33554432+16777216*Math.random()|0),e=15&r,r>>=4,i[o]=t[19==o?3&e|8:e]);return i.join("")},Math.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}}(e,e.Function.alias),function(t){function i(i,n,r){var o=t.Array.toArray(arguments),a=e.Extra.strToObject(n.getAttribute("custom-options"));if(a.hasOwnProperty("formatter")){var s=a.formatter;if(s){var l=t.Array.clone(o);if(t.Object.getSize(a)>1&&(delete a.formatter,l.push(a)),t.isString(s))return l=t.Array.insert(l,0,[s]),t.Function.pass(e.Formatter.executeFormatter,l)();if("function"==typeof s)return t.Function.pass(s,l)()}}return i}t.fn._outerWidth=function(e){return null==e?this[0]==window?this.width()||document.body.clientWidth:this.outerWidth()||0:this.each((function(){t(this).width(e)}))},t.fn._outerHeight=function(e){return null==e?this[0]==window?this.height()||document.body.clientHeight:this.outerHeight()||0:this.each((function(){t(this).height(e)}))},t.fn._propAttr=t.fn.prop||t.fn.attr,t.spanValOpts={autoTipsy:!1,htmlEncode:!1},t.fn.setSpanTagValue=function(n){var r=arguments,o=e.Array.toArray(r).slice(1),a="object"===t.type(n),s=a?n:{};return 0 in arguments?this.each((function(r){var l=this.innerHTML,c=t(this),u=!1,d=t.util.clone(t.spanValOpts);if(a){var p=c.attr("initname");n=s.hasOwnProperty(p)?s[p]:""}d.htmlEncode&&(n=t.String.htmlEncode(n));var h=[n,this,l].concat(o),f=e.pass(i,h)();c.empty().append(f);var g=c.attr("tip-options");null!=g&&(d=t.extend({},d,e.Extra.strToObject(g))).always&&(e.Extra.showTipsy(c,t.extend({fallback:f},d)),u=!0),!u&&d.autoTipsy&&c.map((function(){if(this.offsetWidth<this.scrollWidth){var i=t.extend({fallback:f},d);e.Extra.showTipsy(c,i)}else e.Extra.hideTipsy(c)}))})):0 in this?this[0].innerHTML:null},e.checkboxValSplitMark=";",t.fn.setValues=function(i){var n=this,r=arguments,o=r.length,a=i||{},s=!0;if(t.isObject(a)){if(2==o&&(s=r[1]),!s||!t.Object.isEmpty(a)){function l(e){return!s||a.hasOwnProperty(e)}function c(e){return a.hasOwnProperty(e)?a[e]:""}e.isFormSetValue=!0,n.find("input[name][type]:not(:file,:radio,:checkbox,[uihidden]),textarea[name],select[name]").each((function(){var e=this.name;e&&l(e)&&t(this).val(c(e))})),n.find(":radio[name], :checkbox[name]").each((function(){var i=this.name;if(i&&l(i)){var n=t(this),r=c(i),o=n.val();n._propAttr("checked",!1);var a=t.type(r),s=!1;switch(a){case"number":o==String(r)&&(s=!0);break;case"array":-1!==t.inArray(o,r)&&(s=!0);break;case"string":(o===r||-1!==t.inArray(o,r.split(e.checkboxValSplitMark)))&&(s=!0);break;default:e.Logger.log("info","Framework not support the valueType of '%s' when execute setValues function, which name of '%s'.",a,i)}s&&n._propAttr("checked",!0)}})),function(){var e=JSON.stringify(a);n.find("span[initname]").each((function(){var i=t(this),n=i.attr("initname");n&&l(n)&&i.setSpanTagValue(c(n),e)}))}(),n.find("[xtype]").each((function(){var i=t(this),n=this.name,r=i.attr("xtype");if(n&&l(n)){var o=c(n);e.Extra.executeSetValFn(r,i,o)}})),e.isFormSetValue=!1}}else e.Logger.log("warn","The param must be a JavaScript Object type!")},t.fn.alterClass=function(e,i){var n,r=this;return-1===e.indexOf("*")?(r.removeClass(e),i?r.addClass(i):r):(n=new RegExp("\\s"+e.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g"),r.each((function(e,i){for(var r=" "+i.className+" ";n.test(r);)r=r.replace(n," ");i.className=t.trim(r)})),i?r.addClass(i):r)}}(e),function(t,i){var n=e.Messager={message:{},format:function(e,t){var i=t;return e.replace(/\{(\d+)\}/g,(function(e,t){return i[t]}))},parseResultMsg:function(e){if(!e)return"";var i=e.split("|@|"),n=e,r=!1;return i.length>1&&(r=!0,n=i[0]),e=this.getMsg(n),r&&e!==n&&(e=this.format(e,t.Array.slice(i,1))),e},getMsg:function(t,i){return e.Extra.getObjectDeepKey(this.message,t,i)},showAlertInfo:function(e,i,n){var r=arguments.length;1==r?t.alert(e):2==r?t.alert(e,i):3==r&&t.alert({title:i,content:e,icon:n})},showWarnInfo:function(t){var i=e.getMsg("ALERT_TITLE_WARNING");this.showAlertInfo(t,i,"glyphicon glyphicon-warning-sign")},showInfo:function(t){var i=e.getMsg("ALERT_TITLE_SHOW");this.showAlertInfo(t,i,"glyphicon glyphicon-info-sign")},showErrorInfo:function(t){var i=e.getMsg("ALERT_TITLE_ERROR");this.showAlertInfo(t,i,"glyphicon glyphicon-remove-sign")},confirm:function(i,n,r,o){var a=arguments.length,s={title:!1};if(1===a){var l=i.content;t.extend(s,{content:e.getMsg(l||"CONFIRM_INFO")},i)}else t.extend(s,{content:e.getMsg(i),confirm:n}),3===a?t.isString(r)?t.extend(s,{title:e.getMsg(r)}):t.isFunction(r)?t.extend(s,{cancel:r}):t.isObject(r)&&t.extend(s,r):4===a&&t.extend(s,{title:e.getMsg(r),cancel:o});t.confirm(s)},defaultToastOptions:{timeOut:3e3,closeButton:!0,positionClass:"toast-bottom-right"},showToast:function(i,n){var r=arguments,o=r.length,a="info",s="",l="",c=this.defaultToastOptions;1===o?s=e.getMsg(i):(a=i,s=e.getMsg(n),o>=3&&(l=r[2],4===o&&(c=t.isObject(r[3])?t.extend({},c,r[3]):t.extend({},c,{positionClass:r[3]})))),t.toast[a](s,l,c)}};e.apply(e,{getMsg:i(n,"getMsg"),parseResultMsg:i(n,"parseResultMsg")}),e.apply(e.Extra,{showToast:i(n,"showToast"),showAlertInfo:i(n,"showAlertInfo"),showWarnInfo:i(n,"showWarnInfo"),showInfo:i(n,"showInfo"),showErrorInfo:i(n,"showErrorInfo"),confirm:i(n,"confirm")})}(e,e.Function.alias),function(t,i){var n=e.Storage={storageStrategy:"L",_getStorageObj:function(e){var t;switch(e=e||this.storageStrategy,(!window.localStorage||!window.sessionStorage)&&window.console,e){case"L":t=localStorage;break;case"S":t=sessionStorage}return t},getLength:function(e){return this._getStorageObj(e).length},getItem:function(t,i,n){var r=this._getStorageObj(n).getItem(t);return i?e.decode(r):r},setItem:function(t,i,n){"object"==typeof i&&(i=e.encode(i)),this._getStorageObj(n).setItem(t,i)},removeItem:function(e,t){this._getStorageObj(t).removeItem(e)},clear:function(e){this._getStorageObj(e).clear()},key:function(e,t){return this._getStorageObj(t).key(e)},initObjToStorage:function(e,i){var n=this;i=i||n.storageStrategy,t.isObject(e)&&t.Object.each(e,(function(e,t){n.setItem(e,t,i)}))},batchStore:function(){var i=this,n=t.Array.toArray(arguments),r=n.length,o=i.storageStrategy;if("object"!==t.type(n[0])){var a=n[r-1],s=e.LocalStore.defaultDataNode,l=t.emptyFn;r>1&&t.isArray(a)&&(s=a[0],2===a.length&&(o=a[1]),n=n.slice(0,-1)),t.Array.each(n,(function(e){return t.isFunction(e)?(l=e,t.Array.remove(n,e),!1):void 0})),t.Function.pass(e.postToRemote,n)((function(t){if(e.isSuccess(t)){var i=e.Extra.getField(t,s);i?(c(i),l(i,o)):e.Logger.log("warn",'have no data by node path ("{0}")',s,!0)}}))}else c(n[0]);function c(e){t.Object.each(e,(function(e,t){i.setItem(e,t,o)}))}}};e.apply(e,{initStorage:i(n,"initStorage")})}(e,e.Function.alias),function(t,i){e.apply(e.Extra,{getField:function(e,t){if(!e||!t)return e;for(var i=(t=t.replace(/\[/g,".").replace(/\]/g,"")).split("."),n=0;n<i.length;n++){var r=i[n];if(void 0===e[r])return;e=e[r]}return e},showMask:function(i,n){var r=e.getMsg(n||"IN_PROCESSING"),o=t(i||"body");if(!o.children("div.eui-mask").length){var a=t('<div class="eui-mask" style="display:block"></div>').appendTo(o),s=t('<div class="eui-mask-msg" style="display:block;left:50%"></div>').html(r).appendTo(o);a.css({zIndex:e.zIndex++}),s._outerHeight(40),s.css({marginLeft:-s.outerWidth()/2,lineHeight:s.height()+"px",zIndex:e.zIndex++})}},hideMask:function(e){var i=e||t("body");e&&t.isString(e)&&(i=t(e)),i.eui&&(i.find("div.eui-mask-msg").remove(),i.find("div.eui-mask").remove())},createBackdrop:function(i){if(t(".global-backdrop").length>0)e.Logger.log("warn","has exist backdrop, do not repeat to create it.");else{var n=t('<div class="global-backdrop"></div>');t("body").append(n),n.on("click",(function(e){i&&0==i.call(this,n)||(n.remove(),e.stopPropagation())}))}},getUrlVars:function(){var e=window.location.href,i=e.slice(e.indexOf("?")+1);return t.Object.fromQueryString(i,!0)},findObjectBy:function(e,i,n){if(t.isEmpty(i))return{};var r={};return t.isObject(e)&&t.Object.each(e,(function(o,a){t.Array.contains(i,o)&&(r[o]=a,n&&delete e[o])})),r},addPrefixForParam:function(e,i,n){var r=null!=n&&n;if(!t.isEmpty(i))if(t.isArray(e)){var o=e;(e={})[i]=o}else t.Object.each(e,(function(t,n){(-1===t.indexOf(".")||r)&&(e[i+"."+t]=n,delete e[t])}));return e},strToObject:function(e){return t.isEmpty(e)?{}:t.decode("{"+e+"}")},defaultTipsyCfg:{opacity:.95,html:!0,gravity:t.fn.tipsy.autoNS},showTipsy:function(e,i){var n=this.defaultTipsyCfg,r=i||{};r=t.extend({},n,r),t(e).tipsy(r)},hideTipsy:function(e,i){i=null!=i&&i;var n=t(e).tipsy(!0);n&&(i?(n.hide(),n.disable()):n.clearTitle())},getDomOptions:function(i,n){var r,o=arguments.length,a=i.eui?i:t(i);if(2==o&&n)r="object"==t.type(n)?n:e.Extra.strToObject(n);else{var s=t.trim(a.attr("custom-options"));s&&(r=e.Extra.strToObject(s))}return r},executeAgencyEvent:function(e){var i=arguments;if(e&&t.isFunction(e)){var n=t.Array.slice(i,1);return t.Function.pass(e,n)()}return!0},executeParser:function(i,n,r){var o=t.Array.toArray(arguments),a=o.length;if(2>a)e.Logger.log("error","The 'executeParser' function need less than 2 params(queues and name)!");else{var s=i[n];if(s){var l={},c=o[a-1],u=!1;t.isObject(c)&&!c.eui&&(l=c,u=!0);var d=t.Array.slice(o,2);if(t.isObject(s)){s.options&&(l=t.extend(!0,{},s.options,l));var p=d.length;d=t.Array.replace(d,u?p-1:p,u?1:0,[l]);var h=s.handler;if(h&&t.isFunction(h)){var f=t.Function.pass(h,d,s)(),g=d[d.length-1];if(t.isObject(g)&&!g.eui&&g.afterRender){var m=g.afterRender;e.pass(m,f,g)()}var v=s.afterReady;return v&&e.pass(v,d,s)(),f}e.Logger.log("error","The parser must have handler property and then typeof is function.")}else if(t.isFunction(s))return t.Function.pass(s,d)()}else e.log("error",'The parser of "{0}" unrealized, the error from "executeParser" function!',n,!0)}},ignoreWarpKeys:["queryId"],prepareObjectParams:function(i,n){var r,o=n||{},a=o.ignoreWarpKeys&&o.ignoreWarpKeys.length?t.Array.merge(o.ignoreWarpKeys,this.ignoreWarpKeys):this.ignoreWarpKeys;r=e.Extra.filterDataByKey(i,a,!1);var s=o.paramPrefix;if(s){var l={},c=o.ignorePrefixKeys;c&&c.length&&(l=e.Extra.filterDataByKey(i,c,!1)),e.Extra.addPrefixForParam(i,s,o.includePrefix),t.extend(i,l)}var u=o.extraParams;return u&&"object"===t.type(u)&&t.extend(!0,i,u),e.shouldWarpParams(o.warp)&&!o.multipart&&(i=e.Extra.warpReqParams(i,!0)),t.extend(i,r),i},parseExtraParams:function(i,n){var r=t.type(i),o=n||{};if("object"===r)return e.Extra.prepareObjectParams(i,o);if("array"===r){var a=o.paramPrefix;i=a?e.Extra.addPrefixForParam(i,a):t.Array.toKeyMap(i);var s=o.extraParams;s&&t.extend(!0,i,s),t.Object.getKeyValue(o,"warp",e.Extra.warp)&&(i=e.Extra.warpReqParams(i,!0))}return i},getObjectDeepKey:function(i,n,r){var o,a=i||this.message,s=e.util.defaultValue(r,!0),l=n;return n?t.isObject(a)?((o=a[l])||(o=e.Extra.getField(a,l)),!0===s?o||l:o):(e.log("warn","The first param must be a javascript Object,please rectify it!"),""):""},objKeyValueOfFirst:function(t,i){var n={};return t&&i&&e.Object.each(t,(function(t,r){n[t]=e.Object.getKeyValue(i,t,r)})),n},someTypeInArr:function(e,i){return!!t.isArray(e)&&t.Array.some(e,(function(e,t,n){return i(e,t,n)}))}}),e.apply(e,{zIndex:9e3,uiExtensions:{},globalValidated:!0,idSelector:function(e){return"#"+e},idOrNameSelector:function(e){return"#"+e+",[name='"+e+"']"},getAppAlias:function(t){const i=e.getEnv("appAlias")||{};return i&&i.hasOwnProperty(t)?i[t]:t},getWsIndex:function(t,i){const n=e.getEnv("wsIndexes")||{};return n&&n.hasOwnProperty(t)?n[t]:i||0},shouldValidate:function(t){return this.globalValidated&&e.util.defaultValue(t,this.globalValidated)},shouldWarpParams:function(t){var i=e.Extra.warp;return i&&e.util.defaultValue(t,i)},getJqDom:function(e){return e.eui?e:t(e)},domData:function(t,i,n){var r=arguments.length,o=this.getJqDom(t);return 2>r?void e.log("The params no less than 2."):2===r?o.data(i):void(3===r&&o.data(i,n))},registerParseQueue:function(t,i,n){if(void 0===t)e.Logger.log("error","The Queue Map Object is not exist, Please define it first!");else{var r={};r[i]=n,e.apply(t,r)}}}),e.apply(e.Array,{toKeyMap:function(e){for(var t={},i=e.length;i--;){var n=e[i];for(k in n)t.hasOwnProperty(k)?t[k].push(n[k]):t[k]=[n[k]]}return t},getKeysValue:function(e,i,n){var r=t.isArray(i)?i:[i],o=t.type(e),a={};if(n=n||[],"object"===o){for(var s in e)r.indexOf(s)>-1&&(a[s]=e[s]);return a}if("array"===o)for(var l=e.length;l--;)a=this.getKeysValue(e[l],i,n),n.push(a);return n}})}(e,e.Function.alias),function(t,i){var n=e.Formatter={formatters:{currency:{options:{sign:t.util.Format.currencySign,decimals:t.util.Format.currencyPrecision,end:t.util.Format.currencyAtEnd},handler:function(e,i,n,r){var o=arguments,a=o[o.length-1];return t.util.Format.currency(e,a.sign,a.decimals,a.end)}},datetime:{options:{fromFormat:"Ymd",toFormat:t.Date.patterns.ISO8601Short},handler:function(t,i,n,r){var o=arguments,a=o[o.length-1];return e.util.formatDate(t,a.fromFormat,a.toFormat)}},htmlEncode:{options:{tpl:""},handler:function(t,i,n,r){var o=arguments,a=o[o.length-1].tpl;return a&&(t=e.String.format(a,t)),e.String.htmlEncode(t)}}},registerFormatter:function(e,t){var i=this.formatters;return i[e]=t,i},executeFormatter:function(i){var r=t.Array.toArray(arguments),o=n.formatters,a=t.Array.insert(r,0,[o]),s=e.Extra.executeParser;return t.Function.pass(s,a)()}};e.apply(e.Extra,{registerFormatter:i(n,"registerFormatter")})}(e,e.Function.alias),e.Defaults={_afterGetLocalStoreData:{},_afterSubmitFormTodos:{}},function(t,i){e.Download={exportExcel:function(i){var n=t.extend(!0,{},i||{});return n.url&&n.refFormName?void e.Form.submitForm(t.extend(!0,{},n,{mask:!1,onBeforePrepareParams:function(i){var n=t.util.clone(i);return e.Download.exportFile(t.extend(!0,{},n,{params:e.Extra.prepareObjectParams(n.params,n)||{}},n.ajax)),!1}})):(e.Logger.log("warn","please define url and refFormName property!"),!1)},getXhrFilename:function(t){var i="";try{i=e.Object.fromQueryString(t.getResponseHeader("content-disposition").split(";")[1]).filename.replace(/"/g,"")}catch(e){}return i},exportFile:function(i,r){var o=this,a=arguments.length,s={type:"get"};1===a?"string"==typeof i?s.url=i:t.extend(s,i):2===a&&e.extend(s,{url:i,params:r});var l="",c=s.url,u=s.callback;s.params&&(l="object"==typeof s.params?t.param(s.params):s.params);var d="get"===s.type.toLocaleLowerCase();d&&(c=e.String.urlAppend(c,l)),c=o.getExportUrl(c,s.hostKey||e.Comm.defaultHostKey);var p=new XMLHttpRequest;p.open(s.type,c,!0),s.progress&&p.addEventListener("progress",(function(e){if(e.lengthComputable){var t=e.loaded/e.total;try{s.progress.call(e,t,(100*t).toFixed(2)+"%")}catch(e){}}}),!1),p.responseType=o.isWebEnv()?"blob":"arraybuffer",p.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),p.onreadystatechange=function(){if(4===p.readyState&&200===p.status){var t=p.getResponseHeader("content-type"),i=!t||-1===t.indexOf("application/json");if(i){var r=o.getXhrFilename(p)||(s.filename&&"function"==typeof s.filename?s.filename(s.fileType):s.filename),a=o.isWebEnv()?p.response:new n(p.response,"binary");o.showSaveDialog(r,a),u&&u.call(null,i,r)}else{var l;u&&(l=u.call(null,i,p.response)),!1!==l&&e.Extra.showToast("warning","error.export.doc")}}},d?p.send():p.send(l)},isWebEnv:function(){return!0},getExportUrl:function(e,t){return"/"+t+"/"+e},showSaveDialog:function(e,t){if(void 0!==window.chrome){var i=document.createElement("a");i.href=window.URL.createObjectURL(t),i.download=e,i.click()}else if(void 0!==window.navigator.msSaveBlob){var n=new Blob([t],{type:"application/force-download"});window.navigator.msSaveBlob(n,e)}else{var r=new File([t],e,{type:"application/force-download"});window.open(URL.createObjectURL(r))}}},e.apply(e,{exportExcel:i(e.Download,"exportExcel")})}(e,e.Function.alias),function(t,i){var n=e.util.UiValues={uiGetSetMap:new e.util.HashMap,defaults:{set:function(t,i){e.getJqDom(t).val(i)}},registerUiGetSetFn:function(t,i){var n=this.uiGetSetMap;if(n.containsKey(t)){var r=n.get(t);e.Object.merge(r,i),e.Logger.log("debug","You have registered get, set function of component({0}), will cover the default!",t,!0)}else n.add(t,i);return n},getUiFn:function(e,t){var i=this.uiGetSetMap;if(i.containsKey(e)){var n=i.get(e);if(n&&n[t])return n[t]}return!1},hasRealizeGetFn:function(e){var t=this.uiGetSetMap,i=!1;return t.each((function(t,n){return t===e&&n.get?(i=!0,!1):void 0})),i},executeSetValFn:function(){var i=t.Array.toArray(arguments),n=i[0],r=this.getUiFn(n,"set");!1===r&&(r=this.defaults.set);var o=t.Array.slice(i,1);e.pass(r,o)()},executeGetValFn:function(){var i=t.Array.toArray(arguments),n=i[0],r=this.getUiFn(n,"get"),o=t.Array.slice(i,1);return e.pass(r,o)()}};e.apply(e.Extra,{registerUiGetSetFn:i(n,"registerUiGetSetFn"),executeSetValFn:i(n,"executeSetValFn"),executeGetValFn:i(n,"executeGetValFn")})}(e,e.Function.alias),e.apply(e.Comm,{recvErrorDispatch:function(t){e.Logger.log("debug",t);var i=t.status;"404"==i&&e.Extra.showToast("error",e.formatStr(e.getMsg("UNFIND_REQUEST_URL"),i))}}),e.apply(e,{ignoreFilterDisabled:!0,isSuccess:function(e){return!e.hasOwnProperty("success")||e.success},includeSerializeForm:function(t){return this.ignoreFilterDisabled||!e(t).is(":disabled")},hasPermission:function(e){return!0}}),e.fn.extend({serializeArray:function(){var t=e.regExps.rsubmittable,i=e.regExps.rsubmitterTypes,n=e.regExps.rCRLF,r=e.regExps.rcheckableType,o=[],a=[],s=this.map((function(){var t=e.prop(this,"elements");return t?e.makeArray(t):this})).filter((function(){var e=this.type,n=this.name,s=n&&$.includeSerializeForm(this)&&t.test(this.nodeName)&&!i.test(e);if(s){var l=this.checked;l&&a.push(n),(s=l||!r.test(e))||!0===$.Array.each(o,(function(e,t){return e.name!==n&&void 0}))&&o.push({name:this.name,value:""})}return s})).map((function(t,i){var r=e(this),o=r.attr("xtype"),a=o&&e.util.UiValues.hasRealizeGetFn(o)?e.Extra.executeGetValFn(o,r):r.val();return null==a?null:e.isArray(a)?e.map(a,(function(e){return{name:i.name,value:e.replace(n,"\r\n")}})):{name:i.name,value:a.replace(n,"\r\n")}}));if(a.length){var l=$.Array.clone(o);$.each(l,(function(e,t){var i=t.name;a.some((function(e,t,n){return e===i}))&&$.Array.remove(o,t)}))}return s.get().concat(o)}}),function(t,i){var n=e.Form={formDataIdentify:"originalData",formKeywords:["dataUrl"],isBindOriginalData:!0,ajaxSettingKeys:["url","multipart"],setBindDatas:function(i,n,r,o){var a=this,s=a.getFormBy(i),l=t.util.clone(n),c=t.util.Format.defaultValue(r,!1);if(s.length){if(c){var u=a.getBindDatas(s);u&&(l=t.extend({},u,n))}o&&o.length&&t.map(l,(function(e,i){t.inArray(i,o)>-1&&delete l[i]})),s.data(a.formDataIdentify,l)}else e.Logger.log("error","No match form [{0}] is founded, please check whether the eui expression is correct!",i,!0)},getBindDatas:function(t){var i=this.getFormBy(t);return i.length?i.data(this.formDataIdentify):(e.Logger.log("error","No match form [{0}] is founded, please check whether the eui expression is correct!",t,!0),null)},getFormBy:function(i,n){var r,o=arguments.length,a=i||"form";return t.isString(a)&&"form"!==a&&!/^#|\./.test(a)&&(a="form[name='"+a+"']"),1>=o?r=t(a):2==o&&(r=t(a,n)),r&&!r.length&&e.Logger.log("error","Have no find target form,please check jQuery selector expression ({0})!",i,!0),r},getPageForm:function(e){return t(e||"body").find("form[id],form[name]")},clearForm:function(t,i,n,r){n=e.util.defaultValue(n,!0),r=e.util.defaultValue(r,!0);var o=this.getFormBy(t);o.length?o.clearForm(i,n,r):e.Logger.log("error","Have no find target form,please check jQuery selector expression!",t)},resetForm:function(t){var i=this.getFormBy(t);i.length?i.resetForm():e.Logger.log("error","Have no find target form,please check jQuery selector expression!",t)},enableForm:function(e,i){var n=this.getFormBy(e).formFields(!1);t.isEmpty(n)||this.enableFields(n,i)},readonlyForm:function(e,i){var n=this.getFormBy(e).formFields(!0);t.isEmpty(n)||this.readonlyFields(n,i)},enableFields:function(i,n){var r=[];if(void 0===n&&(n=!0),t.isString(i))r=i.split(",");else{if(!t.isArray(i))return void e.Logger.log("warn","Currently does not support {0} type param,please check it.",typeof i,!0);r=i}t.Array.forEach(r,(function(e,i){t("#"+e+",[name='"+e+"']").enable(n)}))},readonlyFields:function(i,n){var r=[];if(void 0===n&&(n=!0),t.isString(i))r=i.split(",");else{if(!t.isArray(i))return void e.Logger.log("warn","Currently does not support {0} type param,please check it.",typeof i,!0);r=i}t.Array.forEach(r,(function(e,i){t("#"+e+",[name="+e+"]").readonly(n)}))},loadForm:function(i,n){var r=this,o=n||{},a=o.params||{},s=o.data||"",l=o.dataPrefix,c=t.Object.getKeyValue(o,"showMask",!0),u=o.events||{},d=r.getFormBy(i);if(d.length){var p=u.onBeforeLoad||t.emptyFn,h=u.onLoadSuccess||t.emptyFn,f=u.onLoadError||t.emptyFn,g=u.onLoadFailure||t.emptyFn,m=u.onBeforeTransformData||t.emptyFn,v=u.onAfterLoad||t.emptyFn;if(!1!==p.call(r,a,s)){if(c){var y=t.Object.getKeyValue(o,"maskMsg","IN_INIT_DATA");e.Extra.showMask(d,y)}var b=t.Object.getKeyValue(o,"dataNode"),w=t.Object.getKeyValue(o,"isMerged",!1),_=t.Object.getKeyValue(o,"convertData",!0),x=t.Object.getKeyValue(o,"isBindOriginalData",r.isBindOriginalData),$=o.filterFields;if("string"==typeof s){var C=e.Extra.parseExtraParams(a,o),k={url:s,data:C};o.ajax&&t.extend(!0,k,o.ajax),e.Comm.postToRemote(k,(function(i){if(c&&e.Extra.hideMask(d),t.isObject(i)){if(e.isSuccess(i)){s={};var n={};if(b?s=e.Extra.getField(i,b):i.hasOwnProperty("data")&&(s=i.data),s){n=t.util.clone(s);var o=m.call(r,s);o&&(s=o),_&&(s=e.Form.transformDataObjects(s,!0))}else s={};return x&&r.setBindDatas(d,s,w,$),!1===h.call(r,s,n)||(l&&(s=e.Extra.addPrefixForObject(s,l)),d.setValues(s),v&&v(s,n)),!1}return!1!==g.call(r,i)&&void 0}e.Logger.log("warn",e.getMsg("RESULT_IS_NOT_OBJECT"))}),(function(){c&&e.Extra.hideMask(d),e.pass(f,arguments)()}))}else t.isFunction(s)&&(s=s(a)),b&&(s=e.Extra.getField(s,b)),x&&r.setBindDatas(d,s,w,$),l&&(s=e.Extra.addPrefixForObject(s,l)),d.setValues(s),c&&e.Extra.hideMask(d),v&&v(s)}}},transformDataObjects:function(t,i,n){var r,o=e.Form.transformDataObjects,a={};if(e.isArray(t))a[n]=t;else if(e.isObject(t))for(r in t)t.hasOwnProperty(r)&&(i?e.Object.merge(a,o(t[r],!0,(n?n+".":"")+r)):a[n]=t[r]);else a[n]=t;return a},getFormSerializeValues:function(i,n,r){var o=this,a=o.getFormBy(i),s=r&&t.isArray(r)?t.Array.union(o.formKeywords,r):o.formKeywords;if(!a.eui||0!==a.length){var l=t.Object.fromQueryString(e.Extra.trimSerialize(a.serialize())),c=o.getBindDatas(a);return c&&(l=t.Object.merge(c,l)),e.Extra.filterDataByKey(l,s,!1),n&&e.Extra.addPrefixForParam(l,n),l}},getFormParamsByName:function(t){var i=t.eui?t:this.getFormBy(t);return e.Form.getFormSerializeValues(i)},getBtnUnderForm:function(i){var n=t(i).closest("form");return n.length||e.Logger.log("error","The button is'not belongs to the form."),n},isForm:function(e){var i=t(e);return i.length&&"form"==i[0].nodeName.toLowerCase()},defaultOptions:{refFormName:"",mask:!0,maskEl:"",maskMsg:"",async:!0,ignorePrefixKeys:[],paramPrefix:"",transformToStrKeys:[],splitStrMark:";",onBeforePrepareParams:function(i){var n=i.transformToStrKeys;if(n.length){var r=i.splitStrMark;e.each(n,(function(e,n){if(i.params.hasOwnProperty(n)){var o=i.params[n];"array"==t.type(o)&&(i.params[n]=o.join(r))}}))}}},submitForm:function(i,n){var r,o=this,a=arguments,s=a.length,l={};if(1===s){var c=(l=a[0]).refFormName;if(!c)return void e.Logger.log("warn","please special refFormName value.");r=o.getFormBy(c)}else 2===s&&(r=o.getBtnUnderForm(i),l=n);if(l=t.extend({},o.defaultOptions,l),o.isForm(r)){var u=l.mask,d=l.maskEl||r,p=l.maskMsg;if(u&&e.Extra.showMask(d,p),!1!==e.Extra.executeAgencyEvent(l.beforeValidate,r))if(!e.shouldValidate(l.validate)||e.validateForm(r)){var h=l.url||r.attr("action"),f=l.callback,g=l.beforeExecute;l.url=h;var m=!0;if(l.multipart)m=e.Extra.executeAgencyEvent(g,r,l);else{var v=e.Form.getFormSerializeValues(r),y=l.params=t.util.clone(v);m=e.Extra.executeAgencyEvent(g,y,r,l)}var b=l.async;if(!1===m&&b)return void x();if(!1===m&&e.isBoolean(b)&&!b){var w=l.confireMsg||"CONFIRM_INFO",_=l.confireTitle||"ALERT_TITLE_SHOW";e.Extra.confirm(e.getMsg(w),(function(e){e&&$()}),e.getMsg(_))}else $()}else x();else x()}else e.Logger.log("error","it is not a form target,please check 'refFormName' special the form.");function x(){u&&e.Extra.hideMask(d)}function $(){var i=e.util.mapByKey(l,o.ajaxSettingKeys),n=t.extend(i,{hostKey:l.hostKey}),a=function(e,t,i){return x(),C(e)},s=function(){x()};if(l.multipart)t.extend(!0,n,l.ajax,{dataType:"json",type:"post",data:{"Is-Multipart-Submit":!0},success:a,error:s}),r.ajaxSubmit(n);else{if(l.onBeforePrepareParams&&!1===e.Extra.executeAgencyEvent(l.onBeforePrepareParams,l))return void x();var c=e.Extra.prepareObjectParams(l.params,l)||{};t.extend(!0,n,{data:c},l.ajax),e.Comm.postToRemote(n,a,s)}}function C(i,n,o){return!1!==e.Extra.executeAgencyEvent(f,i)&&(e.isSuccess(i)&&t.Object.each(e.Defaults._afterSubmitFormTodos,(function(t,i,n){e.Extra.executeParser(n,t,r,l)})),!0)}}};e.apply(e,{isFormSetValue:!1,loadForm:i(n,"loadForm"),getPageForm:i(n,"getPageForm"),getFormSerializeValues:i(n,"getFormSerializeValues")})}(e,e.Function.alias),function(t,i){var n=e.Locale={localize:!0,locales:{},getLocaleValue:function(e){return"object"===t.type(e)&&(e=this.getLocaleKey(e)),e?this.getLocale(e,!1):""},getI18nValues:function(e,i){var n=this,r=arguments.length,o={};return 0===r?{i18n:n.locales}:(1===r?o=n.locales:i.split(",").forEach((function(e,t){o[e]=n.getLocaleValue(e)})),t.extend(!0,{i18n:o},e))},getLocaleKey:function(e){var i="";return e.nodeName?i=e.getAttribute("langid")||e.getAttribute("name")||e.id:t.isSimpleObject(e)&&e.hasOwnProperty("langid")&&(i=e.langid),i},replaceProValueToLocale:function(i,n){var r=e.util.defaultValue(n,"title");if(i&&i.hasOwnProperty(r)){var o=this.getLocaleValue(i);t.isEmpty(o)||(i[r]=o)}},getLocale:function(t,i){return e.Extra.getObjectDeepKey(this.locales,t,i)},isLocale:function(){return this.localize},formatDictI18n:function(t,i,n){var r=e.LocalStore.getValue(t),o=n||{};if(r&&r.length){var a=o.textField||"label",s=o.valueField||"value";e.Array.each(r,(function(e,t){return e[s]==i?(i=e[a],!1):void 0}))}return i}};e.apply(e,{getLocale:i(n,"getLocale"),isLocale:i(n,"isLocale")})}(e,e.Function.alias),function(e){e.extend({xml2json:function(t,i){if(!t)return{};var n=function(e){return String(e||"").replace(/-/g,"_")},r=function(t){return e.isArray(t)||(t=[t]),t.length=t.length,t};if("string"==typeof t&&(t=e.text2xml(t)),t.nodeType){if(3==t.nodeType||4==t.nodeType)return t.nodeValue;var o=9==t.nodeType?t.documentElement:t,a=function t(o,a){if(!o)return null;var s="",l=null,c=null;o.nodeType,n(o.localName||o.nodeName),o.text||o.nodeValue,o.childNodes&&o.childNodes.length>0&&e.each(o.childNodes,(function(e,i){var o=i.nodeType,a=n(i.localName||i.nodeName),c=i.text||i.nodeValue||"";if(8!=o)if(3!=o&&4!=o&&a)(l=l||{})[a]?(l[a].length||(l[a]=r(l[a])),l[a]=r(l[a]),l[a][l[a].length]=t(i,!0),l[a].length=l[a].length):l[a]=t(i);else{if(c.match(/^\s+$/))return;s+=c.replace(/^\s+/,"").replace(/\s+$/,"")}})),o.attributes&&o.attributes.length>0&&(c={},l=l||{},e.each(o.attributes,(function(e,t){var i=n(t.name),o=t.value;c[i]=o,l[i]?(l[cnn]=r(l[cnn]),l[i][l[i].length]=o,l[i].length=l[i].length):l[i]=o}))),l&&(l=e.extend(""!=s?new String(s):{},l||{}),(s=l.text?[l.text||""].concat([s]):s)&&(l.text=s),s="");var u=l||s;return i&&(s&&(u={}),(s=u.text||s||"")&&(u.text=s),a||(u=r(u))),u}(o,!0);return t=null,o=null,a}},text2xml:function(t){return e.parseXML(t)}})}(e),function(t,i){var n=e.Validator={validationPath:"./static/validation/validation.xml",cacheValidateFile:!0,showAllInvalidTip:!1,validateDefaultTipCfg:{},formValidationCfgs:[],formValidationOptions:new e.util.HashMap,ruleTypeList:{required:"boolean",email:"boolean",url:"boolean",date:"boolean",dateISO:"boolean",number:"boolean",digits:"boolean",creditcard:"boolean",idcard:"boolean",cellphone:"boolean",fax:"boolean",telephone:"boolean",zipcode:"boolean",time:"boolean",time12h:"boolean",maxlength:"number",minlength:"number",max:"number",min:"number",rangelength:"array",range:"array",byterangelength:"array"},loadValidationXml:function(i){var n=this,r=n.cacheValidateFile;i=i||n.validationPath,t.ajax({url:i,dataType:"xml",type:"GET",async:!1,cache:r,timeout:2e3,error:function(n){e.Extra.showErrorInfo(t.String.format(e.getMsg("ERROR_LOAD_XML"),i))},success:function(i){var r=t.xml2json(i).validation;if(r){var o=t.isArray(r)?r:new Array(r);n.formValidationCfgs=e.Array.union(this.formValidationCfgs,o)}}})},cacheValidationRules:function(i){"array"===t.type(i)?this.formValidationCfgs=e.Array.union(this.formValidationCfgs,i):e.Logger.log("warn","The parameter type is wrong when execute 'cacheValidationRules' function.")},registerTypeRules:function(e,i){var n=this;n.typeRules||(n.typeRules={}),n.typeRulesIgnoreForms||(n.typeRulesIgnoreForms={}),t.isArray(e)?t.each(e,(function(e,t){n.typeRules[t.typeName]=t.rules})):t.isObject(e)&&(n.typeRules[e.typeName]=e.rules),i&&t.extend(!0,n.typeRulesIgnoreForms,i)},_getFormAllElement:function(e){var i={};return e.find("[name]").each((function(){var e=t(this),n=e.attr("name"),r=e.attr("xtype"),o=e.attr("type");i[n]=r||o})),i},_isIgnoresControls:function(i,n,r){var o=!1;return t.each(i,(function(i,a){if(t.isString(a)&&a==n)return o=!0,!1;if(t.isObject(a))for(var s in a){var l=a[s];if(s==n&&e.Array.contains(l,r)){o=!0;break}}})),o},_getFormTypeRules:function(i,n){var r=this,o=r.typeRulesIgnoreForms[n],a={},s={};for(var l in i){var c=i[l];if(!o||!r._isIgnoresControls(o,c,l)){var u=r.typeRules[c];if(u){var d=t.util.clone(u);if(d.messages)for(var p in d.messages)d.messages[p]=e.getMsg(d.messages[p]);a[l]=d.rules,s[l]=d.messages}}}return{rule:a,message:s}},prepareValidateRules:function(i){var n=this,r="";function o(e,i){var r=n.getFormValidateRules(e);if(n.typeRules){var o=n._getFormTypeRules(n._getFormAllElement(i),e);t.extend(!0,r.rules,o.rule),t.extend(!0,r.messages,o.message)}i.validate(r)}t.isEmpty(i)?e.Logger.log("warn","You have not pass any param(formName or form jQuery Object)."):t.isString(i)?(r=i,i=t("form[name='"+i+"']"),o(r,i)):i.eui&&t.each(i,(function(e,i){var n=t(i);o(r=n.attr("name")||n.attr("id"),n)}))},removeFieldRules:function(i,n){if(t.isEmpty(i))e.Logger.log("warn","You have no pass fieldId param.");else{var r=this.getInvalidTargetDom(i);if(r){r.removeClass(t.validator.defaults.errorClass).rules("remove",n),e.Extra.hideTipsy(r);var o=r.closest("form");o.length&&o.valid()}}},removeFieldsRules:function(e){var i=this,n=e;t.isEmpty(e)||(t.isString(e)&&(n=e.split(",")),t.isArray(n)&&t.Array.each(n,(function(e,t){i.removeFieldRules(e)})))},addFieldRules:function(i,n,r){if(t.isEmpty(i)||t.isEmpty(n)||!t.isObject(n))e.Logger.log("warn","please check arguments are right!");else{var o=this.getInvalidTargetDom(i);o&&(r&&o.rules("remove"),o.rules("add",n))}},addFieldsRules:function(i){if(!t.isEmpty(i)&&t.isArray(i)){var n=this;t.Array.each(i,(function(e,t){var i=e.fieldId,r=e.rules,o=e.remove;n.addFieldRules(i,r,o)}))}else e.Logger.log("warn","The fieldsRules param must be a array type!")},getFormValidateRules:function(i){if(t.isEmpty(i))return e.Logger.log("warn","form'name is not allow null!"),null;var n=this,r=null,o=n.formValidationOptions.get(i);if(t.isEmpty(o)||(r=o),!r){var a=n.getSpecialFormCfg(i);a&&(r=n.transformValidation(a))&&n.formValidationOptions.add(i,r)}return r},validExtCommandMap:{default:function(e){return e.valid()},tab:function(e){var i,n=!0,r=t("[data-toggle='tab']",e).filter((function(r){var o=t(this),a=o.parent(".active");return a.length&&(i=o,n=e.valid()),0==a.length}));return n&&r.length&&r.each((function(){return t(this).tab("show"),n=e.valid()})),n&&i.tab("show"),n}},validateForm:function(i){var n="default",r=null;if(t.isString(i)?r=t("form[name='"+i+"']"):i.eui&&(r=i),r){var o=r.attr("aria-validate");o&&(n=o)}var a=this.validExtCommandMap;return e.Extra.executeParser(a,n,r)},getInvalidTargetDom:function(i){var n;if("string"===t.type(i)){var r=e.idOrNameSelector(i);n=e.getJqDom(r)}else e.Logger.log("warn","Please pass 'selector' param, it not allow {0} type!",t.type(i),!0);return n},getSpecialFormCfg:function(e){var i=this.formValidationCfgs;return t.Array.findBy(i,(function(t){return t.name==e||void 0}))},transformValidation:function(i){var n=this,r={},o={},a=i.item;function s(i){var r={},o={},a=[];return i instanceof Array?a=i:a.push(i),t.Array.each(a,(function(i){var a=i.name,s=i.value,l=i.code&&e.getMsg(i.code,!1)?e.getMsg(i.code,!1):i.message||"",c=n.ruleTypeList[a];s=c?n.transformValue2(s,c):s,r[a]=s,t.isEmpty(l)||(o[a]=l)})),{rule:r,message:o}}return t.Array.each(a,(function(e){var t=e.name,i=s(e.rule);r[t]=i.rule,o[t]=i.message})),t.Object.isEmpty(r)?null:{rules:r,messages:o}},transformValue2:function(e,t){switch(t){case"boolean":e=Boolean(e);break;case"number":e=Number(e);break;case"array":e=e.split(",")}return e}};e.apply(e,{loadValidationXml:i(n,"loadValidationXml"),prepareValidateRules:i(n,"prepareValidateRules"),validateForm:i(n,"validateForm")}),e.apply(e.Extra,{addFieldRules:i(n,"addFieldRules"),addFieldsRules:i(n,"addFieldsRules"),removeFieldRules:i(n,"removeFieldRules"),removeFieldsRules:i(n,"removeFieldsRules")}),t.validator.setDefaults({errorClass:"note note-error",onkeyup:!1,errorPlacement:function(t,i){var r=t.text();if(r){var o=i.tipsy(!0);o?(o.enable(),r!=o.getTitle()&&i.attr("title",r)):(i.attr("title",r),e.Extra.showTipsy(i,n.validateDefaultTipCfg)),n.showAllInvalidTip&&(o?o.show():i.tipsy("show"))}},success:function(t,i){e.Extra.hideTipsy(i)},invalidHandler:function(e,t){return t.focusInvalid(),!1},eleTypeValues:function(i,n){var r=i.attr("role-name");r&&(i=t("[name='"+r+"']",n));var o=i.attr("xtype");return o&&e.util.UiValues.hasRealizeGetFn(o)?e.Extra.executeGetValFn(o,i):i.val()}}),t.extend(t.fn,{getAriaTargetEle:function(e){var i=this[0];if(!this.isXtype()&&this.is(":visible"))return this;if(!e){var n=i.form?i.form:t(i).closest("form")[0];e=t.data(n,"validator")}var r=t(e.currentForm).find("[role-name='"+e.escapeCssMeta(i.name)+"']");return r.length?r:this}})}(e,e.Function.alias),function(i,n){var r=e.Template={parseTpl:function(n,r,o,a,s){if(n){var l=r,c=i.emptyFn,u=e.util.defaultValue(a,!0),d=e.util.defaultValue(s,"body"),p=arguments.length;2===p?"function"==typeof r?c=r:l=r:p>2&&(c=o),new RegExp(/\.tpl$/).test(n)?e.Comm.postToRemote({url:n,type:"GET",dataType:"text"},(function(e){h(e)})):h(n)}else e.Logger.log("error","The template path isn't allow null!");function h(n){if(n){var r=t.compile(n)(l);r&&(u&&i(d).append(r),c&&c(r))}else e.Logger.log("warn","The template is empty,please check is path error!")}},compileTpl:function(e,n){var r="",o=n||{};return i.isEmpty(e)||(r=t.compile(e)(o)),r}};e.apply(e,{parseTpl:n(r,"parseTpl")})}(e,e.Function.alias),function(t,i){var n=e.LocalStore={defaultStoreKey:"dictionaries",defaultDataNode:"data",dictionaries:{},isExitKey:function(e){return this.hasOwnProperty(e)},setValue:function(e,i){var n=this,r=i||n.defaultStoreKey;n.isExitKey(r)||(n[r]={}),t.Object.merge(n[r],e)},getValue:function(t,i){var n=this,r=i||n.defaultStoreKey;if(n.isExitKey(r)){var o=n[r];return e.Extra.getField(o,t)}e.Logger.log("error","Have no store identify key of '{0}'.",r,!0)},batchStore:function(){var i=this,n=t.Array.toArray(arguments),r=n.length,o=i.defaultDataNode,a=i.defaultStoreKey,s=n[r-1],l=t.emptyFn;r>1&&t.isArray(s)&&(o=s[0],2===s.length&&(a=s[1]),n=n.slice(0,-1)),t.Array.each(n,(function(e){return t.isFunction(e)?(l=e,t.Array.remove(n,e),!1):void 0})),t.Function.pass(e.postToRemote,n)((function(t){if(e.isSuccess(t)){var n=e.Extra.getField(t,o);n?(i.setValue(n,a),l(n,a)):e.Logger.log("warn",'have no data by node path ("{0}")',o,!0)}}))},batchStores:function(e){t.isEmpty(e)||t.Array.each(e,(function(e,i,n){return t.isArray(e)?void t.Function.pass(n.batchStore,e)():(t.Function.pass(n.batchStore,n)(),!1)}))}};e.apply(e,{batchStore:i(n,"batchStore")})}(e,e.Function.alias),e.apply(e.Messager.message,{"error.export.doc":"occur an exception when export file!","error.user.noRight":"You have no functional operation permissions!",ALERT_TITLE_WARNING:"Warning",ALERT_TITLE_SHOW:"Prompt",ALERT_TITLE_ERROR:"Error",IN_PROCESSING:"In processing, please wait ...",IN_INIT_DATA:"In init data,please wait ...",RESULT_IS_NOT_OBJECT:"Result is not javascript Object type,please check it!",CONFIRM_INFO:"Are you sure to do this?",EXECUTE_SUCCESS:"Execute Success!",EXECUTE_FAILRE:"Execute Failre!",RESULT_QUERY_SUCCESS:"Query successful, total returns {0} records!",RESULT_QUERY_FAILRE:"Query fails!",UNFIND_REQUEST_URL:"I'm sorry,the network connection lost,please contact the administrator,The error code is [{0}]!",ERROR_LOAD_XML:"Error loading XML file! Please check the address is wrong[{0}].",BUTTON_TRIGGER_WARN_MSG:"You operate too frequently, please try again later!",UNSELECT_LESS_ONE_ROW:"Please select at least one record!",ONLY_SELECT_ONE_ROW:"Only can select one row!",UNFIND_DATA_FIELD:'Do\'t found the field "{0}" in record object,please check or set up correctly custom-options identifyField value!'}),e.apply(e.Locale.locales,{DEFAULT_SELECT_TEXT:"ALL",toolTips:{GRID2EXCEL:"Export the current page",EXPORTALL2EXCEL:"Export all",CONFIG_COLUMNS:"Custom grid columns"},comboxGrid:{searchBtn:"Search",searchPlace:"Please entry the search content"}}),function(t,i){e.apply(e.uiExtensions,{extKey:"xtype",isExtUi:function(t){return!!e.getJqDom(t).attr(this.extKey)},defaultDatePickerOpts:{dateFormat:"yy-mm-dd",showOn:"both",buttonImageOnly:!0,buttonIcon:"glyphicon glyphicon-calendar",prevText:'<i class="glyphicon glyphicon-menu-left"></i>',nextText:'<i class="glyphicon glyphicon-menu-right"></i>',autoShowDefaultDate:!0},uiQueueMap:{datepicker:{priority:2,options:{lessToPicker:"",greaterToPicker:""},handler:function(i,n){var r=t(i),o=n||{};(o=t.extend({},e.uiExtensions.defaultDatePickerOpts,o)).buttonIcon&&!r.parent().hasClass("input-icon-right")&&r.wrap('<div class="input-icon-right"></div>');var a=r.datepicker(o),s=o.dateFormat||a.datepicker("option","dateFormat"),l=o.lessToPicker||o.greaterToPicker;l&&(r=t(l)).length&&a.on("change",(function(){var e=o.lessToPicker?"minDate":"maxDate";r.datepicker("option",e,function(e){var i;try{i=t.datepicker.parseDate(s,e.value)}catch(e){i=null}return i}(this))}))}},switch:{priority:2,options:{onText:"ON",offText:"OFF"},handler:function(e,i){var n=t(e),r=i||{},o=r.onText,a=r.offText;n.parent("label").hasClass("toggle")||n.wrap('<label class="toggle"></label>').after('<i data-swchon-text="'+o+' " data-swchoff-text="'+a+'"></i>')}}},parseExtUi:function(i,n){var r=this.uiQueueMap,o=i.eui?i:t(i),a=e.Extra.getDomOptions(o,n)||{},s=o.attr(this.extKey);e.Extra.executeParser(r,s,o,a)},registerUiExtType:function(e,t){var i=this.uiQueueMap;return i[e]=t,i}}),e.apply(e.Extra,{registerUiExtType:i(e.uiExtensions,"registerUiExtType")})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.Button={extBtnOptions:{btnType:"modal",langid:"",localize:!0,iconCls:"",text:"",powerBit:"",controlTrigger:!0,intervalValue:1,intervalUnit:t.Date.SECOND,showTriggerWarnMsg:!1,triggerWarnMsg:"BUTTON_TRIGGER_WARN_MSG",formatter:'<span class="glyphicon {0}"></span>{1}',animationDelay:1200,animation:!1,animationCls:"glyphicon-refresh-animate",preventDefaultEvent:!0},controlBtnTrigger:function(i){var n=!1;if(i.controlTrigger){var r=i.lastTriggerTime,o=i.lastTriggerTime=new Date;if(r){var a=t.Date.add(r,i.intervalUnit,i.intervalValue);if((n=t.Date.between(o,r,a))&&i.showTriggerWarnMsg){var s=i.triggerWarnMsg;e.Extra.showWarnInfo(t.String.format(e.getMsg(s)))}}}return n},isAuthorized:function(e){return!0},btnTypeMap:{submit:{options:{openMode:"modal",autoClose:!0,refDgId:"",multipart:!1},handler:function(t,i){e.Form.submitForm(t,i)}},modal:{options:{refDgId:"",singleSelect:!0,extraParams:{},identifyField:"",dataMode:"local",beforeRender:t.emptyFn},handler:function(t,i){if(t.blur(),!1!==n.validateBeforeHandler(i)){var r=i.beforeRender;!1!==e.Extra.executeAgencyEvent(r,i,t)&&e.Extra.openModalWin(t,i)}}},action:{options:{mask:!0,maskEl:"",maskMsg:"IN_PROCESSING",singleSelect:!0,extraParams:{},paramPrefix:"",identifyField:"id",refDgId:"",url:"",beforeExecute:t.emptyFn,callback:t.emptyFn,autoRefresh:!1},handler:function(t,i){var r=n.validateBeforeHandler(i);!1!==r?(r=i.params,!1!==e.Extra.executeAgencyEvent(i.beforeExecute,r,i)&&n.executeAction(i)):e.Logger.log("warn","to select one record least!")}},native:{options:{handler:t.emptyFn},handler:function(e,t){var i=t||{};i.handler&&i.handler.call(e)}},query:{options:{refDgId:"",validate:!1},handler:function(t,i){var n=i||{};return n.refDgId?void e.Extra.crudSearch(n):void e.Logger.log("warn","'{0}' button don't set 'refDgId' attribute value, please!","Query",!0)}},export:{options:{mask:!1,fileType:"xls",filename:function(t){return t=t||"xls",e.Date.format(new Date,"YmdHis")+"."+t}},handler:function(i,n){var r=n||{},o=t(i);return r.url?void e.Form.submitForm(o,t.extend(!0,{},r,{onBeforePrepareParams:function(i){var n=t.util.clone(i);return e.Download.exportFile(t.extend(!0,{},n,{params:e.Extra.prepareObjectParams(n.params,n)||{}},n.ajax)),!1}})):(e.Logger.log("warn",'please define url property when analysis btnType of "export"!'),!1)}}},executeAction:function(i){var n=this,r=i||{},o=r.confireMsg||"CONFIRM_INFO",a=r.confireTitle||"ALERT_TITLE_SHOW";function s(){r.mask&&e.Extra.hideMask()}e.Extra.confirm(e.getMsg(o),(function(){r.mask&&e.Extra.showMask(r.maskEl,r.maskMsg);var i=r.params||{},o=e.Extra.parseExtraParams(i,r),a={url:r.url,data:o};r.ajax&&t.extend(!0,a,r.ajax),e.Comm.postToRemote(a,(function(t){s();var i=r.callback;!1!==e.Extra.executeAgencyEvent(i,t,r)&&n.defaultActionCallback(r,t)}),(function(){s()}))}),e.getMsg(a))},defaultActionCallback:function(i,n){var r=i||{},o=r.autoRefresh,a=r.refDgId;o&&a&&e.isSuccess(n)&&t(e.idSelector(a)).trigger("reloadGrid")},validateBeforeHandler:function(i){var n=i||{},r=n.refDgId,o=n.extraParams||{};if(r){var a=e.Extra[n.singleSelect?"getSelectRow":"getSelectRows"](r);if(t.isEmpty(a))return e.Extra.showWarnInfo(e.getMsg("UNSELECT_LESS_ONE_ROW")),!1;var s=n.identifyField;t.isEmpty(s)||(o=e.Array.getKeysValue(a,s)),n.dataMode&&"local"===n.dataMode&&(n.data=e.util.clone(a))}n.params=o},getLangId:function(e,t){return e.attr("langid")||t.langid||""},formatButton:function(e,i){var n=i||{},r=n.iconCls,o=n.text;if(o||r){var a=t(e),s=n.formatter,l=t.String.format(s,r,o);o&&r?a.html(l):r?a.prepend(l):o&&a.append(o)}},parseButton:function(i,n){var r=this,o=i.eui?i:t(i),a=e.Extra.getDomOptions(o,n),s=t.extend({},r.extBtnOptions,a),l=s.powerBit;if(l&&!e.hasPermission(l,s.applCode))return e.Logger.log("debug",'您当前没有按钮"{0}"操作权限.',s.text?t.trim(s.text):o.text(),!0),void o.remove();r.formatButton(i,s);var c=r.btnTypeMap;o.data("options",a).on("click",(function(){if(!r.controlBtnTrigger(s))return s.animation&&s.iconCls&&(s.$icon.addClass(s.animationCls),"number"==t.type(s.animationDelay)&&setTimeout((function(){s.$icon.removeClass(s.animationCls)}),s.animationDelay)),s.$btnTarget=o,e.Extra.executeParser(c,s.btnType,o,s),!s.preventDefaultEvent&&void 0}))},registerBtnType:function(e,t){this.btnTypeMap[e]=t}};e.apply(e.Extra,{parseButton:i(n,"parseButton"),executeAction:i(n,"executeAction"),registerBtnType:i(n,"registerBtnType"),stopBtnIconAnimation:function(e){var t=e||{};t.animation&&t.iconCls&&"custom"==t.animationDelay&&t.$icon.removeClass(t.animationCls)}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.comboxGrid={extDefaultGridOptions:{width:450,height:450,grid:{rownumbers:!1,fitSize:!1,pager:!1,rowNum:-1,multiselect:!1},iconCls:"glyphicon-th"},loadData:function(){},parseExtUiComboxGrid:function(i,n){var r=i.attr("id"),o=r?r+"ComboxGrid":n.gridId||e.util.domUniqueId("cg-"),a=t.extend(!0,{},this.extDefaultGridOptions,n),s=t.extend(!0,{},e.uiExtensions.uiQueueMap.datagrid.options,{width:a.width-2,height:a.height-76},a.grid),l=t('<div class="combox-grid"><div class="comboxGrid-search"><input placeholder="'+e.getLocale("comboxGrid.searchPlace")+'" class="comboxGrid-search-input form-control" ><button type="button" class="btn btn-primary comboxGrid-search-btn">'+e.getLocale("comboxGrid.searchBtn")+'</button></div><table id="'+o+'"></table></div>');i.data("comboxGrid.options",a),i.addClass("comboxGrid-input"),l.on("click",".comboxGrid-search-btn",(function(){var e=l.find(".comboxGrid-search-input").val(),i={};i[n.q||n.textField]=e,t("#"+o).jqGrid("setGridParam",{datatype:"json",postData:i}).trigger("reloadGrid")})),s.loadComplete=function(e){var t=e.datals;i.data("cg-cacheData",t)},e.uiExtensions.Grid.parseGrid(l.find("table"),s),l.on("click","#"+o+" tbody tr",(function(e){var n=t("#"+o),r=t(this).attr("id"),l=n.jqGrid("getRowData",r);s.multiselect||(i.data("cg-val",l[a.valueField]),i.val(l[a.textField]))})),i.comboxPanel({width:a.width,height:a.height,size:{width:a.width,height:a.height},"max-height":a["max-height"],"max-width":a["max-width"],htmlElement:l,onHide:function(){a.onHide&&t.isFunction(a.onHide)&&a.onHide(i,a)},onClear:function(){a.onClear&&t.isFunction(a.onClear)&&a.onClear(i,a)},onShow:function(){a.onShow&&t.isFunction(a.onShow)&&a.onShow(i,a);var e=t("#"+o),n=i.data("cg-val");e.find("tbody tr.active").removeClass("active"),t.isArray(n)?t.each(n,(function(t,i){e.find("tbody tr[id="+i+"]").addClass("active")})):e.find("tbody tr[id="+n+"]").addClass("active"),e.jqGrid("resizeGrid")}})}};e.registerParseQueue(e.uiExtensions.uiQueueMap,"comboxGrid",{priority:2,options:{valueField:"id",textField:"name"},handler:function(e,t){n.parseExtUiComboxGrid(e,t)}}),e.Extra.registerUiGetSetFn("comboxGrid",{get:function(e){return e.getComboxGridVal()},set:function(e,t){e.setComboxGridVal(t)}}),t.fn.setComboxGridVal=function(i){if(void 0!==i){var n=t(this),r=e.domData(n,"comboxGrid.options"),o=n.data("cg-cacheData");if(t.isString(i))t.each(o,(function(e,t){t[r.valueField]==i&&(n.data("cg-val",i),n.val(t[r.textField]))}));else{var a=[];t.each(i,(function(e,i){t.each(o,(function(e,t){t[r.valueField]==i&&a.push(t[r.textField])}))})),n.data("cg-val",i),n.val(a.join(";"))}}},t.fn.getComboxGridVal=function(e){return t(this).data("cg-val")}}(e,e.Function.alias),function(t,i){e.Extra.registerUiExtType("jedate",{priority:2,options:{format:"YYYY-MM-DD",transformFormat:!0,fromFormat:"Y-m-d",toFormat:"Ymd",showIcon:!0,onClose:!0,iconCls:"glyphicon-calendar",isClear:!1,disabled:!1,readOnly:!0,lessToPicker:"",greaterToPicker:""},handler:function(i,n){var r=t(i),o=t.extend({},n||{});if(o.showIcon&&!r.parent().hasClass("input-icon-right")&&r.wrap('<div class="input-icon-right"></div>').after('<i class="glyphicon '+o.iconCls+'"></i>'),o.readOnly?r.prop("readonly",!0):r.prop("readonly",!1),o.disabled?r.prop("disabled",!0):r.prop("disabled",!1),o.lessToPicker||o.greaterToPicker){var a=!!o.lessToPicker,s=t(o.lessToPicker||o.greaterToPicker),l=a?"minDate":"maxDate",c=o.choosefun||t.emptyFn,u=o.clearfun;t.extend(o,{choosefun:function(t,i){c&&c.apply(this,arguments);var n=s.data("jedate");if(n){n[l]=i,e.Logger.log("debug","set jedate(%s) ref picker %s value %s.",o.lessToPicker||o.greaterToPicker,l,i);var r=s.val();if(r){var u=e.Date.parse(r,n.fromFormat).getTime()>e.Date.parse(i,o.fromFormat).getTime();a&&!u?(s.val(i),t.data("jedate").maxDate=i):!a&&u&&(s.val(i),t.data("jedate").minDate=i)}}},clearfun:function(){if(u)u.apply(this,arguments);else{var e=s.data("jedate");e&&(a?e.minDate="1900-01-01 00:00:00":e.maxDate="2099-12-31 23:59:59")}}})}r.jeDate(o)}}),e.Extra.registerUiGetSetFn("jedate",{get:function(e){var i=e.val();if(i){var n=e.data("jedate");if(n&&n.transformFormat){var r=n.fromFormat,o=n.toFormat;if(r!==o){var a=t.Date.parse(i,r);a&&(i=t.Date.format(a,o))}}}return i},set:function(e,i){var n=e.data("jedate");if(n&&n.transformFormat){var r=n.fromFormat,o=n.toFormat;if(r!==o){var a=t.Date.parse(i,o);a&&(i=t.Date.format(a,r))}}e.val(i)}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.Grid={extGridOptions:{localize:!0,langNode:"",rownumWidth:35,queryFormName:"",queryParamPrefix:"queryParam",ignoreWarpKeys:[],ignorePrefixKeys:[],showMsg:!1,altRows:!0,altclass:"even-line",grid2excel:!1,exportAll2excel:!1,exportUrl:"",showRefreshBtn:!1,onBeforeRenderView:null,onAfterRenderView:null,grid2excelOptions:{caption:"",title:"toolTips.GRID2EXCEL",buttonicon:"glyphicon-nv-export"},configColumns:!1,exportAll2excelOptions:{caption:"",title:"toolTips.EXPORTALL2EXCEL",buttonicon:"glyphicon-nv-export-all"},configColumnsOptions:{caption:"",title:"toolTips.CONFIG_COLUMNS",buttonicon:"glyphicon-setting"},beforeExecuteExportExcel:t.emptyFn,jsonReader:{root:"datals",page:"page",total:"totalPage",records:"total"},dataNode:"data.result",transformReaderKey:function(e){var i=this,n=i.jsonReader;if(i.pager){var r=n.page,o=n.total,a=e.total,s=e.start,l=parseInt(this.rowNum);e[o]=Math.ceil(a/l),e[r]=Math.ceil(s/l)}if(i.data=e[n.root],i.sortname&&"local"===i.sortType){var c=t.jgrid.from.call(i,i.data);c.orderBy(i.sortname,i.sortorder,"text",""),i.data=c.select(),e[n.root]=i.data}return e}},defaultPageOptions:{rowNum:10,rowList:[10,20,30]},pageStart:"pageStart",pageSize:"pageLimit",serializeGridData:function(i,n,r){var o=(n=n||{}).queryParamPrefix,a=n.queryFormName,s=t.util.clone(r);if(n.pager&&this.customPageParam(n,s),!n.loaded&&a){var l=e.Form.getFormParamsByName(a);n.onFirstSerializeGridData&&n.onFirstSerializeGridData.call(n,l),t(i).jqGrid("setGridParam",{postData:l}),t.extend(s,l),n.loaded=!0}return o&&(n.paramPrefix=o),e.Extra.prepareObjectParams(s,n)},crudSearch:function(i,n,r){var o=arguments,a=o.length,s=n||{},l=i,c={};t.isObject(i)&&(l=(c=i).refDgId);var u=t(e.idSelector(l));if(u.length){var d=u[0].p.queryFormName;if(d){var p=e.Form.getFormBy(d);if(p.length&&e.shouldValidate(c.validate)&&!e.validateForm(p))return;var h=e.Form.getFormParamsByName(p);s=t.extend(!0,{},h,s)}if(!1===e.Extra.executeAgencyEvent(c.beforeExecute,s))return void e.Logger.log("debug","The beforeExecute event return false, will stop to continue!");var f=a>1&&t.isNumber(o[a-1])?o[a-1]:1;u.jqGrid("setGridParam",{datatype:"json",postData:s,page:f}).trigger("reloadGrid")}else e.Logger.log("warn","not find the grid,please check the id '{0}' is correct?",l,!0)},customPageParam:function(i,n){e.Extra.replaceKeys(n,{page:t.Object.getKeyValue(i,"pageStart",this.pageStart),rows:t.Object.getKeyValue(i,"pageSize",this.pageSize)})},loadDefaultBeforeSend:function(e,t,i){},beforeProcessing:function(t,i,n,r){if(e.Logger.log("debug","The response data is:",t),!e.isSuccess(t)){var o=t.message||"RESULT_QUERY_FAILRE";t.message=o}},getSelectRow:function(i){var n;if(i){var r=t(e.idSelector(i));if(r.length){var o=r.jqGrid("getSelections",!0);o.length&&(n=o[0])}else e.Logger.log("error","Not find the ui grid, id value is {0}, please correct it!",i,!0)}return n},getSelectRows:function(i){if(i){var n=t(e.idSelector(i));if(n.length)return n.jqGrid("getSelections",!1);e.Logger.log("error","Not find the ui grid, id value is {0}, please correct it!",i,!0)}return[]},localizeGrid:function(i){var n=i||{},r=n.colModel,o=n.caption,a=n.langNode;if(o&&(n.caption=e.getLocale(o)),a){var s=e.getLocale(a,!1);s&&t.isObject(s)?r&&t.isArray(r)&&t.Array.each(r,(function(e,t){var i=e.langid||e.name;s.hasOwnProperty(i)&&(e.label=s[i])})):e.Logger.log("warn","You have not define grid label language identify, please define it in lang-*.js file!")}},exportGrid2excel:function(t,i,n){var r=i||{},o=r.exportUrl;if(o){var a=t.jqGrid("getGridParam","postData"),s=e.util.clone(a);n&&this.customPageParam(r,s),s.pageCtrl=n,e.Extra.replaceKeys(r,{queryParamPrefix:"paramPrefix"}),r.beforeExecuteExportExcel&&r.beforeExecuteExportExcel.call(t,s,r),r.params=e.Extra.prepareObjectParams(s,r),r.url=o,e.Logger.log("debug","send request to export excel, url => %s, params => %o.",o,r.params),e.Download.exportFile(r)}else e.Logger.log("error","Grid undefined extended attribute 'exportUrl'!")},openConfigColumnWin:e.emptyFn,parseGrid:function(i,n){var r=this,o=t(i),a=n||{},s=a.pager,l=r.extGridOptions;if(s&&(l=t.extend(!0,l,r.defaultPageOptions)),a=t.extend(!0,{},l,a),e.isLocale(a)&&r.localizeGrid(a),s){var c=t.isBoolean(s)?Math.uuid(6):s.replace(/^#|\./,"");o.after("<div id='"+c+"'></div>"),a.pager="#"+c}if("local"==a.datatype&&(a.loaded=!0),a.hostKey&&t.extend(!0,a,{ajaxExtendOptions:{hostKey:a.hostKey}}),!a.hasOwnProperty("hostKey")&&a.ajaxExtendOptions&&a.ajaxExtendOptions.hasOwnProperty("hostKey")&&(a.hostKey=a.ajaxExtendOptions.hostKey),a.hasOwnProperty("onBeforeRenderView")&&"function"==typeof a.onBeforeRenderView&&a.onBeforeRenderView.call(o,a),o.jqGrid(a),a.hasOwnProperty("onAfterRenderView")&&"function"==typeof a.onAfterRenderView&&a.onAfterRenderView.call(o,a),s){if(a.showRefreshBtn&&o.jqGrid("navGrid",a.pager,{search:!1,add:!1,edit:!1,del:!1,refresh:!0,position:"center",refreshstate:"currentfilter"}),a.grid2excel||a.exportAll2excel){var u=e.util.mapByKey(a,["exportUrl","hostKey","beforeExecuteExportExcel","queryParamPrefix","ignoreWarpKeys","ignorePrefixKeys","pageStart","pageSize","warp"]);if(a.grid2excel){var d=t.extend(!0,a.grid2excelOptions,{onClickButton:function(){r.exportGrid2excel(o,u,!0)}});d.title=e.Locale.getLocale(d.title),o.jqGrid("navButtonAdd",a.pager,d)}if(a.exportAll2excel){var p=t.extend(!0,a.exportAll2excelOptions,{onClickButton:function(){r.exportGrid2excel(o,u,!1)}});p.title=e.Locale.getLocale(p.title),o.jqGrid("navButtonAdd",a.pager,p)}}if(a.configColumns){var h=t.extend(!0,a.configColumnsOptions,{onClickButton:function(){r.openConfigColumnWin(o)}});h.title=e.Locale.getLocale(h.title),o.jqGrid("navButtonAdd",a.pager,h)}}}};e.apply(e.Extra,{parseGrid:i(n,"parseGrid"),serializeGridData:i(n,"serializeGridData"),getSelectRow:i(n,"getSelectRow"),getSelectRows:i(n,"getSelectRows"),crudSearch:i(n,"crudSearch")}),e.registerParseQueue(e.uiExtensions.uiQueueMap,"datagrid",{priority:5,options:{datatype:"json",loadonce:!1,viewrecords:!0,rownumbers:!0,fitSize:!0,pager:!0,loadBeforeSend:function(t,i){return e.uiExtensions.Grid.loadDefaultBeforeSend(this,t,i)},beforeProcessing:function(t,i,n){return e.uiExtensions.Grid.beforeProcessing(t,i,n,this)},loadFilter:function(t){var i=this,n={},r=i.dataNode,o=e.Extra.getField(t,r);if(o?n=i.transformReaderKey(o):e.Logger.log("debug","Have no find the key'value, please check dataNode('{0}') is correct",r,!0),i.showMsg){var a=0;if(i.pager){var s=i.jsonReader.records;n&&n.hasOwnProperty(s)&&(a=n[s])}else a=n[i.jsonReader.root].length;e.Extra.showToast("success",e.formatStr(e.getMsg("RESULT_QUERY_SUCCESS"),'<span style="color:red;">'+a+"</span>"))}return n},serializeGridData:function(t){var i=this.p;return e.Extra.serializeGridData(this,i,t)}},handler:function(t,i){e.Extra.parseGrid(t,i)}}),e.apply(e.Defaults._afterSubmitFormTodos,{refreshGrid:function(i,n){var r=n.refDgId;r&&t(e.idSelector(r)).trigger("reloadGrid")}})}(e,e.Function.alias),$.jgrid.extend({getSelections:function(e){var t=this,i=[],n=t[0].p,r=n.keyName,o=!!e,a=t.getGridParam(n.multiselect?"selarrrow":"selrow"),s=n.data;if(a&&!n.multiselect&&(a=[a]),a&&a.length){var l=[],c=$.Array.clone(a);o&&(l=$.Array.splice(c,0,c.length-1)),s&&s.length?$(c).each((function(e,t){$(s).each((function(e,n){var o=!1;return!1===r?o=e+1==t:n[r]==t&&(o=!0),o?(i.push(n),!1):void 0}))})):$(c).each((function(e,n){var r=t.getRowData(n);i.push(r)})),$(l).each((function(e,i){t.setSelection(i,!0)}))}return i}}),function(t){e.Layout={resize:function(e,i){t.each(e,(function(){var e,i=t(this).children(),n=0;e=i.filter((function(e,i,r){var o=!1;if("true"==t(i).attr("fit")){o=!0;var a=window.getComputedStyle(i),s=parseInt(a.marginTop.split("px")[0]),l=parseInt(a.marginBottom.split("px")[0]);n+=s+l}else n+=t(i)._outerHeight();return o})),t(e[0]).css({height:"calc(100% - "+n+"px)"})}))}},window.onresize=function(){e.Layout.resize(t('div[xtype="layout"]:visible'))},e.Extra.registerUiExtType("layout",{priority:1,options:{},handler:function(t,i){e.Layout.resize(t,i)}})}(e),function(t,i){var n=e.uiExtensions.Modal={defaultModalTpl:'<div class="modal fade" id="{{id}}" role="dialog" aria-labelledby="modalLayout" style="display: block;"><div class="modal-dialog" {{#if width}}style="width:{{width}};"{{/if}}><div class="modal-content"><div class="modal-header">{{#if closed}}<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>{{/if}}<h4 class="modal-title">{{title}}</h4></div><div class="modal-body" {{#if height}}style="height:{{height}};"{{/if}}>{{{content}}}</div></div></div></div>',defaultModalOptions:{langid:"",closed:!0,content:"",href:"",tplData:null,i18nKeys:"",validate:!0,cache:!0,modalEvents:{},autoLoad:!1,closeAction:"destroy"},formOptions:{params:{},extraParams:{},paramPrefix:"",ignoreWarpKeys:[],ignorePrefixKeys:[],warp:void 0,ajax:{},events:{},data:"",dataNode:"",dataPrefix:"",maskMsg:"",showMask:!0,filterFields:[]},defaultModalEvents:{"show.bs.modal":function(i,r){var o=i.data("renderd"),a=r.validate;!0!==o&&e.parseQueues(i);var s=e.Form.getPageForm(i);a&&s.length&&e.Logic.autoPrepareFormValidateRules(s);var l=r.callback;if((!l||!1!==l(i,r))&&s.length&&r.autoLoad){var c=t.Object.getKeys(n.formOptions),u=e.util.mapByKey(r,c),d=r.data;t.isFunction(d)&&(d=d(s,r.params)),d&&t.isObject(d)&&(u.data=e.util.clone(d)),e.Form.loadForm(s,u)}},"shown.bs.modal":function(e,t){},"hide.bs.modal":function(t,i){var n=arguments,r=(i||{}).beforeHide;r&&e.pass(r,n)()},"hidden.bs.modal":function(e,t){var i=(t||{}).closeAction;i&&"destroy"===i&&e.remove()}},modalKeys:["id","title","closed","content","langid","width","height","modalTarget"],openModalWin:function(i,n){var r,o,a=this,s=arguments.length,l={};1==s?t.isObject(i)?l=i:(r=t(i),l=e.Extra.getDomOptions(r)):2==s&&(r=t(i),l=n);var c=t.extend({},a.defaultModalOptions,a.formOptions,l);e.isLocale()&&e.Locale.replaceProValueToLocale(c),o=((r=r||(l.el?t(l.el):""))?r.data("target"):"")||c.target||Math.uuid(),t.extend(!0,c,{id:o.replace("#","")});var u=t("#"+c.id);if(u.length&&c.cache)return u.data("renderd",!0),void u.modal("show");var d=c.href;if(c.content=c.content||(u.length?u.data("content"):""))h(c);else if(d){var p="html";new RegExp(/\.html$/).test(d)?p="html":new RegExp(/\.tpl/).test(d)&&(p="tpl"),e.Comm.postToRemote({url:d,type:"GET",dataType:"html"},(function(t){if("html"==p)c.content=t;else if("tpl"==p){var i=c.i18nKeys,n=[c.tplData||{}];i&&n.push(i);var r=e.Locale.getI18nValues.apply(e.Locale,n);c.content=e.Template.compileTpl(t,r)}h(c)}))}else e.Logger.log("warn","You must define 'href' or 'content' property.");function h(i){var n=t("#"+i.id),r=i.cache;if(n.length)r||n.find(".modal-body").html(i.content),n.modal("show");else{var o=e.util.mapByKey(i,a.modalKeys),s=t.Object.getKeyValue(i,"tplPath",a.defaultModalTpl),l=i.modalTarget||"body";e.parseTpl(s,o,(function(e){n=t("#"+i.id),r&&n.data("content",o.content),f(n,i),n.modal(i)}),!0,l)}}function f(i,n){var r=a.defaultModalEvents,o=n.modalEvents;t.Object.each(r,(function(r,a){i.on(r,(function(r){var s=r.type,l=o[s]||t.emptyFn,c=t.Array.toArray(arguments);e.Array.insert(c,0,[i,n]);var u=e.Function.createSequence(a,l);e.pass(u,c)()}))}))}}};e.apply(e.Extra,{openModalWin:i(n,"openModalWin")}),e.apply(e.Defaults._afterSubmitFormTodos,{closeModal:function(e,t){var i=t.openMode;t.autoClose&&i&&"modal"===i&&e.closest("div[role='dialog']").modal("hide")}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.MultipleSelect={extMultiSelectOptions:{dataMode:"ls",lsStorePrefix:!1,textField:"label",valueField:"value",placeholder:"Select a state",filter:!0,width:"100%",excludeDisableOnFilter:!1},idAndStoreNodeMap:new e.util.HashMap,getStoreNodeRefId:function(e){return this.idAndStoreNodeMap.get(e)},setStoreNodeRefId:function(i,n){var r=this.idAndStoreNodeMap;if(r.containsKey(i)){var o=r.get(i);o=e.Array.push(t.isArray(o)?o:[o],n),r.replace(i,o)}else r.add(i,n)},_getStoreData:function(t,i,n){var r;switch(i){case"local":this.setStoreNodeRefId(t,n),r=e.LocalStore.getValue(t);break;case"ls":r=e.Storage.getItem(t,!0);break;default:e.Logger.log("warn","MultipleSelect component unrealized dataMode of '{0}', you current'storeNode is '{1}'.",i,t,!0)}return r},parseExtUiMultiSelect:function(i,n){var r=this;return e.getJqDom(i).each((function(i,o){var a=t(o),s=e.domData(a,"multiselect.options")||t.extend(!0,{},r.extMultiSelectOptions);t.extend(!0,s,n);var l=o.id||o.name,c=s.storeNode,u=s.dataMode;if(e.domData(a,"multiselect.options",s),c){"ls"===u&&s.lsStorePrefix&&(c=s.lsStorePrefix+":"+c);var d=r._getStoreData(c,u,l);d&&(s.data=d)}e.Logger.log("debug","begin to init multipleSelect component: key => {0};storeNode => {1};dataMode => {2},for more information to see below output.",l,c,u,!0),e.Logger.log("debug","The detail info:",s),a.multipleSelect(s)}))}};e.Extra.registerUiExtType("multipleselect",{priority:4,options:{dataNode:"",storeNode:"",loadFilter:function(i){var n=this.options,r=i;if(t.isObject(r)){var o=n.dataNode;if(o){var a=e.Extra.getField(i,o);t.isArray(a)&&(r=a)}else e.Logger.log("warn",'The response is object type,please check has defined dataNode property or special dataMode property to "{1}" .',"dataNode","remote",!0)}return t.isArray(r)||e.Logger.log("error","The 'LoadFilter' function must return a result of array,whether have defined 'dataNode' property?"),r},transport:function(t,i,n){e.Comm.postToRemote(t,(function(e){i(e)}),n)}},handler:function(e,t){return n.parseExtUiMultiSelect(e,t)},afterReady:function(e){}}),e.Extra.registerUiGetSetFn("multipleselect",{set:function(e,i){var n=[],r=t.type(i);"array"===r?n=i:"string"===r&&i.length&&(n=i.split(",")),t(e).multipleSelect("setSelects",n)},get:function(e){var i=t(e).multipleSelect("getSelects");return i.length?i:""}}),e.registerParseQueue(e.Defaults._afterGetLocalStoreData,"toLoadMultipleSelectData",(function(i,r){var o=t.Object.getKeys(i);t.Array.each(o,(function(r,o){var a=n.getStoreNodeRefId(r);if(a){var s=t.Object.getKeyValue(i,r),l="string"==t.type(a)?[a]:a;t.each(l,(function(i,n){t(e.idOrNameSelector(n)).multipleSelect("loadData",e.Array.clone(s))}))}}))}))}(e,e.Function.alias),function(t,i){e.registerParseQueue(e.uiExtensions.uiQueueMap,"numberbox",{priority:2,options:{number:!0,decimals:2,separator:".",thousandsSeparator:",",events:{}},handler:function(i,n){var r=e.getJqDom(i),o=e.domData(r,"numberbox.options")||n||{};r.number(o),o.change&&t.extend(!0,o.events,{change:function(t,i){e.pass(o.change,[r.val(),r])()}}),o.events&&t.each(o.events,(function(t,i){r.on(t,(function(){e.pass(i,arguments)()}))}))}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.NumberSpinner={extSpinnerOptions:{numberFormat:"n"},parseExtUiNumberSpinner:function(i,n){var r=e.getJqDom(i),o=e.domData(r,"numberspinner.options")||t.extend(!0,{},this.extSpinnerOptions);return t.extend(!0,o,n),r.each((function(i,n){var r=t(n);e.domData(r,"numberspinner.options",o),"left"==o.buttonDirection?r.addClass("spinner-left"):"both"==o.buttonDirection&&r.addClass("spinner-both"),r.numberspinner(o)}))}};e.registerParseQueue(e.uiExtensions.uiQueueMap,"numberspinner",{priority:2,options:{min:null,max:null,step:1,buttonDirection:"right"},handler:function(e,t){n.parseExtUiNumberSpinner(e,t)}}),e.apply(e.Extra,{parseExtUiNumberSpinner:i(n,"parseExtUiNumberSpinner")})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.Select2={extSelect2Options:{dataMode:"ls",textField:"label",valueField:"value",allowSearch:!1,allowClear:!1,theme:"classic",placeholder:"Select a state",defaultOption:!1,defaultText:"DEFAULT_SELECT_TEXT",defaultValue:"",lsStorePrefix:!1,data:[]},idAndStoreNodeMap:new e.util.HashMap,getStoreNodeRefId:function(e){return this.idAndStoreNodeMap.get(e)},setStoreNodeRefId:function(i,n){var r=this.idAndStoreNodeMap;if(r.containsKey(i)){var o=r.get(i);o=e.Array.push(t.isArray(o)?o:[o],n),r.replace(i,o)}else r.add(i,n)},_getStoreData:function(t,i,n){var r;switch(i){case"local":this.setStoreNodeRefId(t,n),r=e.LocalStore.getValue(t);break;case"ls":r=e.Storage.getItem(t,!0);break;default:e.Logger.log("warn","Select2 component unrealized dataMode of '{0}', you current'storeNode is '{1}'.",i,t,!0)}return r},_loadFilter:function(i,n){var r=this,o=e.util.clone(i);t.isArray(o)||(e.Logger.log("warn","The original data is:",i),e.Logger.log("error","The 'LoadFilter' function must return a result of array,whether have defined 'dataNode' property?"));var a=t.map(o,(function(e){e.text=e.text||e[n.textField];var t=e.id||e[n.valueField];null!=t&&(e.id=t);var i=e.children;return i&&i.length&&(e.children=r._loadFilter(e.children,n)),e}));return n.defaultOption&&(n.hasInsertDefault?a.splice(0,0,n.defaultRow):r._appendDefaultOption(a,n)),a},_appendDefaultOption:function(t,i){var n=i.defaultText;if(e.Locale.isLocale(i)){var r=e.Locale.getLocaleValue(i.defaultText);r&&(n=r)}i.hasInsertDefault=!0;var o={id:i.defaultValue,text:n};i.defaultRow=o,t.splice(0,0,o)},_processResults:function(i,n,r){var o=r.options.options;e.isString(i)&&(i=e.decode(i));var a=i;return e.Logger.log("debug","The request url: {0}",o.ajax.url,!0),e.Logger.log("debug","The result is:",i),!t.isArray(i)&&o.dataNode&&(a=e.isSuccess(i)?e.Extra.getField(i,o.dataNode):[]),t.isArray(a)||e.Logger.log("error","The select2 data result'type is not array, please review configuration or miss dataNode!"),{results:a}},_parseRefSmExt:function(e,t,i){var n=e.refParam||e.valueField,r=e.refUrl||t.url;t.empty();var o={};o[n]=i,this.parseExtUiSelect2(t,{ajax:{url:r,data:o}}),t.trigger("change")},loadDataById:function(i,n){var r=t.isString(i)?[i]:i;t.each(r,(function(i,r){var o=e.idSelector(r);t(o).select2("loadData",n)}))},parseExtUiSelect2:function(i,r){var o=this;return e.getJqDom(i).each((function(i,a){var s=t(a),l=e.domData(s,"select2.options")||t.extend(!0,{},o.extSelect2Options);t.extend(!0,l,r);var c=a.id||a.name,u=l.storeNode,d=l.dataMode,p=l.refSmId;if(u){"ls"===d&&l.lsStorePrefix&&(u=l.lsStorePrefix+":"+u);var h=o._getStoreData(u,d,c);h&&(l.data=h)}var f=l.url||(l.ajax&&l.ajax.url?l.ajax.url:"");f&&t.extend(!0,l,{ajax:{url:f,processResults:function(e,t){return n._processResults(e,t,this)},transport:function(t,i,n){e.Comm.postToRemote(t,(function(e){i(e)}),n)}}}),l.allowSearch||t.extend(l,{minimumResultsForSearch:1/0}),e.domData(s,"select2.options",l),p&&s.on("change",(function(){var i=t(e.idSelector(p));if(i.length){var n=s.val()||s.data("originalVal");o._parseRefSmExt(l,i,n)}})),e.Logger.log("debug","begin to init select2 component: key => {0};storeNode => {1};dataMode => {2},for more information to see below output.",c,u,d,!0),e.Logger.log("debug","The detail info:",l),s.select2(l)}))}};e.Extra.registerUiExtType("select2",{priority:4,options:{refSmId:"",refUrl:"",refParam:"",dataNode:"",storeNode:"",loadFilter:function(e){return n._loadFilter(e,this.options.options)}},handler:function(e,t){return n.parseExtUiSelect2(e,t)},afterReady:function(i,n){var r=(e.domData(i,"select2.options")||n).events;r&&t.each(r,(function(t,n){i.on(t,(function(){e.pass(n,arguments)()}))}))}}),e.apply(e.Extra,{parseExtUiSelect2:i(n,"parseExtUiSelect2")}),e.registerParseQueue(e.Defaults._afterGetLocalStoreData,"toLoadSelect2Data",(function(i,r){var o=t.Object.getKeys(i);t.Array.each(o,(function(r,o){var a=n.getStoreNodeRefId(r);if(a){var s="string"==t.type(a)?[a]:a,l=t.Object.getKeyValue(i,r);t.each(s,(function(i,n){t(e.idOrNameSelector(n)).select2("loadData",e.Array.clone(l))}))}}))})),e.Extra.registerUiGetSetFn("select2",{set:function(e,i){t(e).val(i).data("originalVal",i).trigger("change")},get:function(e){return t(e).val()||""}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.Spinner={extSpinnerOptions:{numberFormat:"n"},parseExtUiSpinner:function(i,n){var r=e.getJqDom(i),o=e.domData(r,"spinner.options")||t.extend(!0,{},this.extSpinnerOptions);return t.extend(!0,o,n),r.each((function(i,n){var r=t(n);e.domData(r,"spinner.options",o),"left"==o.buttonDirection?r.addClass("spinner-left"):"both"==o.buttonDirection&&r.addClass("spinner-both"),r.spinner(o)}))}};e.registerParseQueue(e.uiExtensions.uiQueueMap,"spinner",{priority:2,options:{min:null,max:null,step:1,buttonDirection:"right"},handler:function(e,t){n.parseExtUiSpinner(e,t)}}),e.apply(e.Extra,{parseExtUiSpinner:i(n,"parseExtUiSpinner")})}(e,e.Function.alias),function(t,i){var n=e.Spliter={disX:0,disY:0,HandleBar:null,direction:"",minWidth:450,minHeight:100,renderingSpliter:function(e){!function e(i){var n=i.find("> .widget");n.length>1?t.each(n,(function(i,r){var o=t(r),a="";i!=n.length-1&&(o.hasClass("col")?a='<div class="layout-spliter layout-spliter-col"></div>':o.hasClass("row")&&(a='<div class="layout-spliter layout-spliter-row"></div>'),o.after(t(a))),o.find("> .widget").length>1&&e(o)})):1==n.length&&n.find("> .widget").length>1&&e(n)}(t(e))},bindDragEvent:function(){var e=this,i=!1,n=t('<div class="drag-backdrop" style="position: fixed;top: 0;bottom: 0;width: 100%;z-index: 100;"></div>');t(document).on("mousedown",".layout-spliter",(function(r){var o=t(this);e.disX=r.clientX,e.disY=r.clientY,e.handleBar=o,e.prevWidth=o.prev()[0].clientWidth,e.nextWidth=o.next()[0].clientWidth,e.prevHeight=o.prev()[0].clientHeight,e.nextHeight=o.next()[0].clientHeight,o.hasClass("layout-spliter-col")?e.direction="horizontal":o.hasClass("layout-spliter-row")&&(e.direction="vertical"),i=!0,t("body").append(n)})),t(document).on("mouseup",(function(t){e.disX=0,e.disY=0,e.prevWidth=0,e.nextWidth=0,e.handleBar=null,e.direction="",i=!1,n.remove()})),t(document).on("mousemove",(function(t){if(i&&e.disX&&e.disY&&e.handleBar&&"horizontal"==e.direction){var n,r,o=(d=e.handleBar).prev(),a=d.next(),s=o.parent()[0].clientWidth,l=o.data("treeNode"),c=a.data("treeNode"),u=t.clientX-e.disX;if(e.disX=t.clientX,e.disY=t.clientY,n=e.prevWidth+=u,r=e.nextWidth-=u,n<e.minWidth||r<e.minWidth)return;f="width:"+(n/s*100).toFixed(4)+"%",g="width:"+(r/s*100).toFixed(4)+"%",o.attr("style",f),a.attr("style",g),l&&c&&(l.style=f,c.style=g)}if(i&&e.disX&&e.disY&&e.handleBar&&"vertical"==e.direction){o=(d=e.handleBar).prev(),a=d.next();var d,p,h,f,g,m=o.parent()[0].clientHeight;if(l=o.data("treeNode"),c=a.data("treeNode"),u=t.clientY-e.disY,e.disX=t.clientX,e.disY=t.clientY,p=e.prevHeight+=u,h=e.nextHeight-=u,p<e.minHeight||h<e.minHeight)return;f="height:"+(p/m*100).toFixed(4)+"%",g="height:"+(h/m*100).toFixed(4)+"%",o.attr("style",f),a.attr("style",g),l&&c&&(l.style=f,c.style=g)}}))}};e.registerParseQueue(e.uiExtensions.uiQueueMap,"spliter",{priority:1,options:{},handler:function(e,t){n.renderingSpliter(e)}})}(e,e.Function.alias),function(t,i){var n=e.uiExtensions.Timepicker={defaultOptions:{format:"G:i:s",valLen:6,submitFormat:"His",minuteStep:5,showSeconds:!0,showMeridian:!1}};e.Extra.registerUiExtType("timepicker",{priority:2,options:{iconCls:"glyphicon-time"},handler:function(e,i){var r=t(e),o=i||{},a=n.defaultOptions;(o=t.extend({},a,o)).iconCls&&t('<span class="input-group-addon"><i class="glyphicon '+o.iconCls+'"></i></span>').insertAfter(r),r.timepicker(o)}}),e.Extra.registerUiGetSetFn("timepicker",{set:function(e,i){var n=e.data("timepicker");if("number"==t.type(i)&&(i=String(i)),i&&n){var r=n.format,o=n.submitFormat;if(r!==o){n.valLen&&(i=t.String.leftPad(i,n.valLen,"0"));var a=t.Date.parse(i,o);a&&(i=t.Date.format(a,r))}}e.timepicker("setTime",i)},get:function(e){var i=e.val();if(i){var n=e.data("timepicker");if(n){var r=n.format,o=n.submitFormat;if(r!==o){var a=t.Date.parse(i,r);a&&(i=t.Date.format(a,o))}}}return i}})}(e,e.Function.alias),function(t,i){var n=e.Logic={autoRender:!0,defaultReadyMap:{validate:{options:{validate:!0,autoLoadXml:!1,xmlPath:"",targetForm:"",validation:[]},handler:function(i){var n=i||{},r=n.validate,o=n.autoLoadXml,a=n.validation,s=n.xmlPath;if(e.globalValidated){if(o?e.Validator.loadValidationXml(s):a&&a.length&&e.Validator.cacheValidationRules(a),!r)return;var l=n.targetForm;if(t.isEmpty(l)){var c=e.getPageForm();c.eui&&c.length&&e.Validator.prepareValidateRules(c)}else t.isString(l)?e.Validator.prepareValidateRules(l):t.isArray(l)?t.Array.each(l,(function(t){e.Validator.prepareValidateRules(t)})):e.Logger.log("error",'"TargetForm" param must be a string of form\'name or multiple form names.')}}},localStore:{options:{localStores:[],target:"body",autoRender:!0},handler:function(i){var n=i||{},r=n.localStores,o=n.autoRender;function a(i){var n;if(o&&!0!==e.Extra.someTypeInArr(i,(function(e){return t.isFunction(e)}))){n=function(t,i){var n=e.Defaults._afterGetLocalStoreData;e.Logic.parseQueues(n,t,i)};var r=i.length,a=i[r-1],s=t.isArray(a)?-1:r>1?r-1:1;i=t.Array.insert(i,s,[n])}t.Function.pass(e.batchStore,i)()}n.target,t.isEmpty(r)||t.Array.each(r,(function(e,i,n){return t.isArray(e)?void a(e):(a(n),!1)}))}}},toRenderMap:{buttonQueue:function(i){t("button:not([xtype])[custom-options]",i).each((function(){e.Extra.parseButton(this)}))},uiQueue:function(i){var n=e.Logic._queuePriority.uiPriority,r=t("[xtype]",i);e.Array.sort(r,(function(e,t){var i=e.getAttribute("xtype"),r=t.getAttribute("xtype");return n[i]-n[r]})).each((function(){e.uiExtensions.parseExtUi(this)}))},tipsyQueue:function(i){t("[tipsy]",i).each((function(){var i=t(this),n=e.Extra.strToObject(i.attr("tipsy"));e.Extra.showTipsy(i,n)}))}},onReady:function(i,n){var r=this,o=e.util.defaultValue(n,{});t(document).ready((function(){i&&0==i(o)||r.executeDefaultOnReady(o)}))},executeDefaultOnReady:function(e){var t=this.defaultReadyMap;this.parseQueues(t,e)},autoPrepareFormValidateRules:function(i){var n=t(i),r=e.Form.isForm(n)?n:e.getPageForm(i);r.length&&e.Validator.prepareValidateRules(r)},parseQueues:function(i){var n,r=t.Array.toArray(arguments),o=r.length,a=[],s=0,l=o,c=this.toRenderMap;o>0&&(t.isSimpleObject(r[0])&&(c=r[0],s=1),"function"==typeof r[l]&&(n=r[l],l=-1),o>s&&(a=r.slice(s,l)));var u=t.Array.clone(a);t.Object.each(c,(function(i,n,r){var o=t.Array.insert([r,i],2,u);t.pass(e.Extra.executeParser,o)()})),n&&n(u)},_queuePriority:{},sortQueueByPriority:function(i,n){var r=this._queuePriority;if("object"==t.type(i)){var o={};e.Object.each(i,(function(e,i){i&&"object"==t.type(i)&&i.hasOwnProperty("priority")&&(o[e]=i.priority)})),r[n]=o}else e.Logger.log("warn","only support object type and have priority property!")}};e.apply(e,{onReady:i(n,"onReady"),parseQueues:i(n,"parseQueues")}),t((function(){e.Logic.sortQueueByPriority(e.uiExtensions.uiQueueMap,"uiPriority"),e.Logic.autoRender&&e.parseQueues()}))}(e,e.Function.alias)})?r.apply(t,o):r)||(e.exports=a)}).call(this,i(12).Buffer)},function(e,t,i){"use strict";(function(e){var n=i(14),r=i(15),o=i(16);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,i)}function c(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t),e}(e,t,i,n):"string"==typeof t?function(e,t,i){if("string"==typeof i&&""!==i||(i="utf8"),!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(t,i),r=(e=s(e,n)).write(t,i);return r!==n&&(e=e.slice(0,r)),e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|h(t.length);return 0===(e=s(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function p(e,t){var i=t.length<0?0:0|h(t.length);e=s(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return H(e).length;default:if(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,i);case"utf8":case"utf-8":return S(this,t,i);case"ascii":return E(this,t,i);case"latin1":case"binary":return j(this,t,i);case"base64":return k(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function v(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,i,n,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):y(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,i,n,r){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,i/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=i;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(i+l>s&&(i=s-l),o=i;o>=0;o--){for(var d=!0,p=0;p<l;p++)if(c(e,o+p)!==c(t,p)){d=!1;break}if(d)return o}return-1}function b(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[i+a]=s}return a}function w(e,t,i,n){return z(q(t,e.length-i),e,i,n)}function _(e,t,i,n){return z(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function x(e,t,i,n){return _(e,t,i,n)}function $(e,t,i,n){return z(H(t),e,i,n)}function C(e,t,i,n){return z(function(e,t){for(var i,n,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(i=e.charCodeAt(a))>>8,r=i%256,o.push(r),o.push(n);return o}(t,e.length-i),e,i,n)}function k(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function S(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var o,a,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=i)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return i}(n)}function E(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function j(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function D(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=t;o<i;++o)r+=L(e[o]);return r}function T(e,t,i){for(var n=e.slice(t,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function I(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,i,n,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function O(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-i,2);r<o;++r)e[i+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function N(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-i,4);r<o;++r)e[i+r]=t>>>8*(n?r:3-r)&255}function P(e,t,i,n,r,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function M(e,t,i,n,o){return o||P(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function F(e,t,i,n,o){return o||P(e,0,i,8),r.write(e,t,i,n,52,8),i+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return c(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,n){return u(t),t<=0?s(e,t):void 0!==i?"string"==typeof n?s(e,t).fill(i,n):s(e,t).fill(i):s(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,r=0,o=Math.min(i,n);r<o;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var a=e[i];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,n,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,r),u=e.slice(t,i),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return v(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return v(this,e,t,i,!1)},l.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,i);case"utf8":case"utf-8":return w(this,e,t,i);case"ascii":return _(this,e,t,i);case"latin1":case"binary":return x(this,e,t,i);case"base64":return $(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;i=new l(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=this[e],r=1,o=0;++o<t&&(r*=256);)n+=this[e+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||I(e,t,this.length);for(var n=t,r=1,o=this[e+--n];n>0&&(r*=256);)o+=this[e+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,n){e=+e,t|=0,i|=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[t]=255&e;++o<i&&(r*=256);)this[t+o]=e/r&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,n){e=+e,t|=0,i|=0,n||A(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},l.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);A(this,e,t,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return M(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return M(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return F(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return F(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var r,o=n-i;if(this===e&&i<t&&t<n)for(r=o-1;r>=0;--r)e[r+t]=this[r+i];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},l.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=l.isBuffer(e)?e:q(new l(e,n).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var i;t=t||1/0;for(var n=e.length,r=null,o=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function H(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}}).call(this,i(13))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";t.byteLength=function(e){var t=l(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){var t,i,n=l(e),a=n[0],s=n[1],c=new o(function(e,t,i){return 3*(t+i)/4-i}(0,a,s)),u=0,d=s>0?a-4:a;for(i=0;i<d;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,o=[],a=0,s=i-r;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));return 1===r?(t=e[i-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function c(e,t,i){for(var r,o,a=[],s=t;s<i;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=r)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=i?r-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,i,n,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[i+h]=255&s,h+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[i+h]=255&a,h+=f,a/=256,c-=8);e[i+h-f]|=128*g}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){!function(e){"use strict";var t=0,i=function(){var t=navigator.userAgent,i=/msie\s\d+/i;return t.search(i)>0&&i.exec(t).toString().split(" ")[1]<9&&(e("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,i=[].slice;if("function"!=typeof t)throw new TypeError;var n=i.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var a=new o,s=t.apply(a,n.concat(i.call(arguments)));return Object(s)===s?s:a}return t.apply(e,n.concat(i.call(arguments)))};return r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var i;if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return-1;var o=+t||0;if(Math.abs(o)===1/0&&(o=0),o>=r)return-1;for(i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;){if(i in n&&n[i]===e)return i;i++}return-1});var n=function(t,i,n){this.VERSION="2.1.4",this.input=t,this.plugin_count=n,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,this.$cache={win:e(window),body:e(document.body),input:e(t),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var r,o,a,s=this.$cache.input,l=s.prop("value");for(a in r={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},(o={type:s.data("type"),min:s.data("min"),max:s.data("max"),from:s.data("from"),to:s.data("to"),step:s.data("step"),min_interval:s.data("minInterval"),max_interval:s.data("maxInterval"),drag_interval:s.data("dragInterval"),values:s.data("values"),from_fixed:s.data("fromFixed"),from_min:s.data("fromMin"),from_max:s.data("fromMax"),from_shadow:s.data("fromShadow"),to_fixed:s.data("toFixed"),to_min:s.data("toMin"),to_max:s.data("toMax"),to_shadow:s.data("toShadow"),prettify_enabled:s.data("prettifyEnabled"),prettify_separator:s.data("prettifySeparator"),force_edges:s.data("forceEdges"),keyboard:s.data("keyboard"),keyboard_step:s.data("keyboardStep"),grid:s.data("grid"),grid_margin:s.data("gridMargin"),grid_num:s.data("gridNum"),grid_snap:s.data("gridSnap"),hide_min_max:s.data("hideMinMax"),hide_from_to:s.data("hideFromTo"),prefix:s.data("prefix"),postfix:s.data("postfix"),max_postfix:s.data("maxPostfix"),decorate_both:s.data("decorateBoth"),values_separator:s.data("valuesSeparator"),input_values_separator:s.data("inputValuesSeparator"),disable:s.data("disable")}).values=o.values&&o.values.split(","),o)o.hasOwnProperty(a)&&(o[a]||0===o[a]||delete o[a]);l&&((l=l.split(o.input_values_separator||i.input_values_separator||";"))[0]&&l[0]==+l[0]&&(l[0]=+l[0]),l[1]&&l[1]==+l[1]&&(l[1]=+l[1]),i&&i.values&&i.values.length?(r.from=l[0]&&i.values.indexOf(l[0]),r.to=l[1]&&i.values.indexOf(l[1])):(r.from=l[0]&&+l[0],r.to=l[1]&&+l[1])),e.extend(r,i),e.extend(r,o),this.options=r,this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};n.prototype={init:function(e){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),e?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var e='<span class="irs js-irs-'+this.plugin_count+'"></span>';this.$cache.input.before(e),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var e=this.options.min,t=this.options.max,i=this.options.from,n=this.options.to;i>e&&n===t?this.$cache.s_from.addClass("type_last"):n<t&&this.$cache.s_to.addClass("type_last")},changeLevel:function(e){switch(e){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),i&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),i&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(e){if(this.dragging){var t=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;this.coords.x_pointer=t-this.coords.x_gap,this.calc()}},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,i&&e("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(e.contains(this.$cache.cont[0],t.target)||this.dragging)&&(this.is_finish=!0,this.callOnFinish()),this.dragging=!1)},pointerDown:function(t,n){n.preventDefault();var r=n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX;2!==n.button&&("both"===t&&this.setTempMinInterval(),t||(t=this.target),this.current_plugin=this.plugin_count,this.target=t,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=r-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),i&&e("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(e,t){t.preventDefault();var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;2!==t.button&&(this.current_plugin=this.plugin_count,this.target=e,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(e,t){if(!(this.current_plugin!==this.plugin_count||t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)){switch(t.which){case 83:case 65:case 40:case 37:t.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:t.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(e){var t=this.coords.p_pointer;e?t+=this.options.keyboard_step:t-=this.options.keyboard_step,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*t),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var e=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=e},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(e){if(this.options&&(this.calc_count++,(10===this.calc_count||e)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var t=this.getHandleX();switch("click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,t=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(t)),this.target){case"base":var i=(this.options.max-this.options.min)/100,n=(this.result.from-this.options.min)/i,r=(this.result.to-this.options.min)/i;this.coords.p_single_real=this.toFixed(n),this.coords.p_from_real=this.toFixed(n),this.coords.p_to_real=this.toFixed(r),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(t),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(t),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(t),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;t=this.toFixed(t+.1*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(t)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(t)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var o=this.convertToRealPercent(t),a=this.result.from_percent,s=this.result.to_percent-a,l=s/2,c=o-l,u=o+l;c<0&&(u=(c=0)+s),u>100&&(c=(u=100)-s),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(u),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(e){return e/(100-this.coords.p_handle)*100},convertToFakePercent:function(e){return e/100*(100-this.coords.p_handle)},getHandleX:function(){var e=100-this.coords.p_handle,t=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return t<0?t=0:t>e&&(t=e),t},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(e){return"single"===this.options.type?"single":e>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to)),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger("change"),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var e,t,i,n=this.options.values.length,r=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)n?(e=this.decorate(r[this.result.from]),this.$cache.single.html(e)):(e=this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(e)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{n?(this.options.decorate_both?(e=this.decorate(r[this.result.from]),e+=this.options.values_separator,e+=this.decorate(r[this.result.to])):e=this.decorate(r[this.result.from]+this.options.values_separator+r[this.result.to]),t=this.decorate(r[this.result.from]),i=this.decorate(r[this.result.to]),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(i)):(this.options.decorate_both?(e=this.decorate(this._prettify(this.result.from),this.result.from),e+=this.options.values_separator,e+=this.decorate(this._prettify(this.result.to),this.result.to)):e=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),t=this.decorate(this._prettify(this.result.from),this.result.from),i=this.decorate(this._prettify(this.result.to),this.result.to),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(i)),this.calcLabels();var o=Math.min(this.labels.p_single_left,this.labels.p_from_left),a=this.labels.p_single_left+this.labels.p_single_fake,s=this.labels.p_to_left+this.labels.p_to_fake,l=Math.max(a,s);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",l=s):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",l=Math.max(a,s))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),o<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",l>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var e,t,i,n,r=this.options,o=this.$cache,a="number"==typeof r.from_min&&!isNaN(r.from_min),s="number"==typeof r.from_max&&!isNaN(r.from_max),l="number"==typeof r.to_min&&!isNaN(r.to_min),c="number"==typeof r.to_max&&!isNaN(r.to_max);"single"===r.type?r.from_shadow&&(a||s)?(e=this.convertToPercent(a?r.from_min:r.min),t=this.convertToPercent(s?r.from_max:r.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),t=this.toFixed(t-this.coords.p_handle/100*t),e+=this.coords.p_handle/2,o.shad_single[0].style.display="block",o.shad_single[0].style.left=e+"%",o.shad_single[0].style.width=t+"%"):o.shad_single[0].style.display="none":(r.from_shadow&&(a||s)?(e=this.convertToPercent(a?r.from_min:r.min),t=this.convertToPercent(s?r.from_max:r.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),t=this.toFixed(t-this.coords.p_handle/100*t),e+=this.coords.p_handle/2,o.shad_from[0].style.display="block",o.shad_from[0].style.left=e+"%",o.shad_from[0].style.width=t+"%"):o.shad_from[0].style.display="none",r.to_shadow&&(l||c)?(i=this.convertToPercent(l?r.to_min:r.min),n=this.convertToPercent(c?r.to_max:r.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,o.shad_to[0].style.display="block",o.shad_to[0].style.left=i+"%",o.shad_to[0].style.width=n+"%"):o.shad_to[0].style.display="none")},callOnStart:function(){this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(e,t){var i,n=this.options.max-this.options.min,r=n/100;return n?(i=(t?e:e-this.options.min)/r,this.toFixed(i)):(this.no_diapason=!0,0)},convertToValue:function(e){var t,i,n=this.options.min,r=this.options.max,o=n.toString().split(".")[1],a=r.toString().split(".")[1],s=0,l=0;if(0===e)return this.options.min;if(100===e)return this.options.max;o&&(s=t=o.length),a&&(s=i=a.length),t&&i&&(s=t>=i?t:i),n<0&&(n=+(n+(l=Math.abs(n))).toFixed(s),r=+(r+l).toFixed(s));var c,u=(r-n)/100*e+n,d=this.options.step.toString().split(".")[1];return d?u=+u.toFixed(d.length):(u/=this.options.step,u=+(u*=this.options.step).toFixed(0)),l&&(u-=l),(c=d?+u.toFixed(d.length):this.toFixed(u))<this.options.min?c=this.options.min:c>this.options.max&&(c=this.options.max),c},calcWithStep:function(e){var t=Math.round(e/this.coords.p_step)*this.coords.p_step;return t>100&&(t=100),100===e&&(t=100),this.toFixed(t)},checkMinInterval:function(e,t,i){var n,r,o=this.options;return o.min_interval?(n=this.convertToValue(e),r=this.convertToValue(t),"from"===i?r-n<o.min_interval&&(n=r-o.min_interval):n-r<o.min_interval&&(n=r+o.min_interval),this.convertToPercent(n)):e},checkMaxInterval:function(e,t,i){var n,r,o=this.options;return o.max_interval?(n=this.convertToValue(e),r=this.convertToValue(t),"from"===i?r-n>o.max_interval&&(n=r-o.max_interval):n-r>o.max_interval&&(n=r+o.max_interval),this.convertToPercent(n)):e},checkDiapason:function(e,t,i){var n=this.convertToValue(e),r=this.options;return"number"!=typeof t&&(t=r.min),"number"!=typeof i&&(i=r.max),n<t&&(n=t),n>i&&(n=i),this.convertToPercent(n)},toFixed:function(e){return+(e=e.toFixed(9))},_prettify:function(e){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(e):this.prettify(e):e},prettify:function(e){return e.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(e,t){return this.options.force_edges?(e<0?e=0:e>100-t&&(e=100-t),this.toFixed(e)):this.toFixed(e)},validate:function(){var e,t,i=this.options,n=this.result,r=i.values,o=r.length;if("string"==typeof i.min&&(i.min=+i.min),"string"==typeof i.max&&(i.max=+i.max),"string"==typeof i.from&&(i.from=+i.from),"string"==typeof i.to&&(i.to=+i.to),"string"==typeof i.step&&(i.step=+i.step),"string"==typeof i.from_min&&(i.from_min=+i.from_min),"string"==typeof i.from_max&&(i.from_max=+i.from_max),"string"==typeof i.to_min&&(i.to_min=+i.to_min),"string"==typeof i.to_max&&(i.to_max=+i.to_max),"string"==typeof i.keyboard_step&&(i.keyboard_step=+i.keyboard_step),"string"==typeof i.grid_num&&(i.grid_num=+i.grid_num),i.max<i.min&&(i.max=i.min),o)for(i.p_values=[],i.min=0,i.max=o-1,i.step=1,i.grid_num=i.max,i.grid_snap=!0,t=0;t<o;t++)e=+r[t],isNaN(e)?e=r[t]:(r[t]=e,e=this._prettify(e)),i.p_values.push(e);("number"!=typeof i.from||isNaN(i.from))&&(i.from=i.min),("number"!=typeof i.to||isNaN(i.from))&&(i.to=i.max),"single"===i.type?(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max)):((i.from<i.min||i.from>i.max)&&(i.from=i.min),(i.to>i.max||i.to<i.min)&&(i.to=i.max),i.from>i.to&&(i.from=i.to)),("number"!=typeof i.step||isNaN(i.step)||!i.step||i.step<0)&&(i.step=1),("number"!=typeof i.keyboard_step||isNaN(i.keyboard_step)||!i.keyboard_step||i.keyboard_step<0)&&(i.keyboard_step=5),"number"==typeof i.from_min&&i.from<i.from_min&&(i.from=i.from_min),"number"==typeof i.from_max&&i.from>i.from_max&&(i.from=i.from_max),"number"==typeof i.to_min&&i.to<i.to_min&&(i.to=i.to_min),"number"==typeof i.to_max&&i.from>i.to_max&&(i.to=i.to_max),n&&(n.min!==i.min&&(n.min=i.min),n.max!==i.max&&(n.max=i.max),(n.from<n.min||n.from>n.max)&&(n.from=i.from),(n.to<n.min||n.to>n.max)&&(n.to=i.to)),("number"!=typeof i.min_interval||isNaN(i.min_interval)||!i.min_interval||i.min_interval<0)&&(i.min_interval=0),("number"!=typeof i.max_interval||isNaN(i.max_interval)||!i.max_interval||i.max_interval<0)&&(i.max_interval=0),i.min_interval&&i.min_interval>i.max-i.min&&(i.min_interval=i.max-i.min),i.max_interval&&i.max_interval>i.max-i.min&&(i.max_interval=i.max-i.min)},decorate:function(e,t){var i="",n=this.options;return n.prefix&&(i+=n.prefix),i+=e,n.max_postfix&&(n.values.length&&e===n.p_values[n.max]||t===n.max)&&(i+=n.max_postfix,n.postfix&&(i+=" ")),n.postfix&&(i+=n.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var e,t,i,n,r,o=this.options,a=o.max-o.min,s=o.grid_num,l=0,c=0,u=4,d="";for(this.calcGridMargin(),o.grid_snap?(s=a/o.step,l=this.toFixed(o.step/(a/100))):l=this.toFixed(100/s),s>4&&(u=3),s>7&&(u=2),s>14&&(u=1),s>28&&(u=0),e=0;e<s+1;e++){for(i=u,(c=this.toFixed(l*e))>100&&(c=100,(i-=2)<0&&(i=0)),this.coords.big[e]=c,n=(c-l*(e-1))/(i+1),t=1;t<=i&&0!==c;t++)d+='<span class="irs-grid-pol small" style="left: '+this.toFixed(c-n*t)+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',r=this.convertToValue(c),d+='<span class="irs-grid-text js-grid-text-'+e+'" style="left: '+c+'%">'+(r=o.values.length?o.p_values[r]:this._prettify(r))+"</span>"}this.coords.big_num=Math.ceil(s+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var e,t,i=this.coords.big_num;for(t=0;t<i;t++)e=this.$cache.grid.find(".js-grid-text-"+t),this.$cache.grid_labels.push(e);this.calcGridLabels()},calcGridLabels:function(){var e,t=[],i=[],n=this.coords.big_num;for(e=0;e<n;e++)this.coords.big_w[e]=this.$cache.grid_labels[e].outerWidth(!1),this.coords.big_p[e]=this.toFixed(this.coords.big_w[e]/this.coords.w_rs*100),this.coords.big_x[e]=this.toFixed(this.coords.big_p[e]/2),t[e]=this.toFixed(this.coords.big[e]-this.coords.big_x[e]),i[e]=this.toFixed(t[e]+this.coords.big_p[e]);for(this.options.force_edges&&(t[0]<-this.coords.grid_gap&&(t[0]=-this.coords.grid_gap,i[0]=this.toFixed(t[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),i[n-1]>100+this.coords.grid_gap&&(i[n-1]=100+this.coords.grid_gap,t[n-1]=this.toFixed(i[n-1]-this.coords.big_p[n-1]),this.coords.big_x[n-1]=this.toFixed(this.coords.big_p[n-1]-this.coords.grid_gap))),this.calcGridCollision(2,t,i),this.calcGridCollision(4,t,i),e=0;e<n;e++)this.$cache.grid_labels[e][0].style.marginLeft=-this.coords.big_x[e]+"%"},calcGridCollision:function(e,t,i){var n,r,o,a=this.coords.big_num;for(n=0;n<a&&!((r=n+e/2)>=a);n+=e)o=this.$cache.grid_labels[r][0],i[n]<=t[r]?o.style.visibility="visible":o.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=e.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),e.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},e.fn.ionRangeSlider=function(i){return this.each((function(){e.data(this,"ionRangeSlider")||e.data(this,"ionRangeSlider",new n(this,i,t++))}))},function(){for(var e=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[t[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[i]+"CancelAnimationFrame"]||window[t[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,i){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),o=window.setTimeout((function(){t(n+r)}),r);return e=n+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}()}(e)})?n.apply(t,r):n)||(e.exports=o)},function(e,t,i){var n,r,o;r=[i(0)],void 0===(o="function"==typeof(n=function(e){!function(e){var t={},i={},n={},r={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url",icon:"icon"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},o={bind:[function(e){var t=e.treeObj,i=h.event;t.bind(i.NODECREATED,(function(t,i,n){c.apply(e.callback.onNodeCreated,[t,i,n])})),t.bind(i.CLICK,(function(t,i,n,r,o){c.apply(e.callback.onClick,[i,n,r,o])})),t.bind(i.EXPAND,(function(t,i,n){c.apply(e.callback.onExpand,[t,i,n])})),t.bind(i.COLLAPSE,(function(t,i,n){c.apply(e.callback.onCollapse,[t,i,n])})),t.bind(i.ASYNC_SUCCESS,(function(t,i,n,r){c.apply(e.callback.onAsyncSuccess,[t,i,n,r])})),t.bind(i.ASYNC_ERROR,(function(t,i,n,r,o,a){c.apply(e.callback.onAsyncError,[t,i,n,r,o,a])})),t.bind(i.REMOVE,(function(t,i,n){c.apply(e.callback.onRemove,[t,i,n])})),t.bind(i.SELECTED,(function(t,i,n){c.apply(e.callback.onSelected,[i,n])})),t.bind(i.UNSELECTED,(function(t,i,n){c.apply(e.callback.onUnSelected,[i,n])}))}],unbind:[function(e){var t=e.treeObj,i=h.event;t.unbind(i.NODECREATED).unbind(i.CLICK).unbind(i.EXPAND).unbind(i.COLLAPSE).unbind(i.ASYNC_SUCCESS).unbind(i.ASYNC_ERROR).unbind(i.REMOVE).unbind(i.SELECTED).unbind(i.UNSELECTED)}],caches:[function(e){var t=a.getCache(e);t||(t={},a.setCache(e,t)),t.nodes=[],t.doms=[]}],nodes:[function(e,t,i,n,r,o,s){if(i){var l=a.getRoot(e),u=e.data.key.children;i.level=t,i.tId=e.treeId+"_"+ ++l.zId,i.parentTId=n?n.tId:null,i.open="string"==typeof i.open?c.eqs(i.open,"true"):!!i.open,i[u]&&i[u].length>0?(i.isParent=!0,i.zAsync=!0):(i.isParent="string"==typeof i.isParent?c.eqs(i.isParent,"true"):!!i.isParent,i.open=!(!i.isParent||e.async.enable)&&i.open,i.zAsync=!i.isParent),i.isFirstNode=r,i.isLastNode=o,i.getParentNode=function(){return a.getNodeCache(e,i.parentTId)},i.getPreNode=function(){return a.getPreNode(e,i)},i.getNextNode=function(){return a.getNextNode(e,i)},i.getIndex=function(){return a.getNodeIndex(e,i)},i.getPath=function(){return a.getNodePath(e,i)},i.isAjaxing=!1,a.fixPIdKeyValue(e,i)}}],proxys:[function(e){var t=e.target,i=a.getSetting(e.data.treeId),n="",r=null,o="",s="",u=null,d=null,p=null;if(c.eqs(e.type,"mousedown")?s="mousedown":c.eqs(e.type,"mouseup")?s="mouseup":c.eqs(e.type,"contextmenu")?s="contextmenu":c.eqs(e.type,"click")?c.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+h.id.SWITCH)?(n=c.getNodeMainDom(t).id,o="switchNode"):(p=c.getMDom(i,t,[{tagName:"a",attrName:"treeNode"+h.id.A}]))&&(n=c.getNodeMainDom(p).id,o="clickNode"):c.eqs(e.type,"dblclick")&&(s="dblclick",(p=c.getMDom(i,t,[{tagName:"a",attrName:"treeNode"+h.id.A}]))&&(n=c.getNodeMainDom(p).id,o="switchNode")),s.length>0&&0==n.length&&(p=c.getMDom(i,t,[{tagName:"a",attrName:"treeNode"+h.id.A}]))&&(n=c.getNodeMainDom(p).id),n.length>0)switch(r=a.getNodeCache(i,n),o){case"switchNode":r.isParent&&(c.eqs(e.type,"click")||c.eqs(e.type,"dblclick")&&c.apply(i.view.dblClickExpand,[i.treeId,r],i.view.dblClickExpand))?u=l.onSwitchNode:o="";break;case"clickNode":u=l.onClickNode}switch(s){case"mousedown":d=l.onZTreeMousedown;break;case"mouseup":d=l.onZTreeMouseup;break;case"dblclick":d=l.onZTreeDblclick;break;case"contextmenu":d=l.onZTreeContextmenu}return{stop:!1,node:r,nodeEventType:o,nodeEventCallback:u,treeEventType:s,treeEventCallback:d}}],roots:[function(e){var t=a.getRoot(e);t||(t={},a.setRoot(e,t)),t[e.data.key.children]=[],t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()}],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},a={addNodeCache:function(e,t){a.getCache(e).nodes[a.getNodeCacheId(t.tId)]=t},getNodeCacheId:function(e){return e.substring(e.lastIndexOf("_")+1)},addAfterA:function(e){o.afterA.push(e)},addBeforeA:function(e){o.beforeA.push(e)},addInnerAfterA:function(e){o.innerAfterA.push(e)},addInnerBeforeA:function(e){o.innerBeforeA.push(e)},addInitBind:function(e){o.bind.push(e)},addInitUnBind:function(e){o.unbind.push(e)},addInitCache:function(e){o.caches.push(e)},addInitNode:function(e){o.nodes.push(e)},addInitProxy:function(e,t){t?o.proxys.splice(0,0,e):o.proxys.push(e)},addInitRoot:function(e){o.roots.push(e)},addNodesData:function(e,t,i,n){var r,o=e.data.key.children;t[o]?i>=t[o].length&&(i=-1):(t[o]=[],i=-1),t[o].length>0&&0===i?(t[o][0].isFirstNode=!1,u.setNodeLineIcos(e,t[o][0])):t[o].length>0&&0>i&&(t[o][t[o].length-1].isLastNode=!1,u.setNodeLineIcos(e,t[o][t[o].length-1])),t.isParent=!0,0>i?t[o]=t[o].concat(n):(r=[i,0].concat(n),t[o].splice.apply(t[o],r))},addSelectedNode:function(e,t){var i=a.getRoot(e);a.isSelectedNode(e,t)||i.curSelectedList.push(t)},addCreatedNode:function(e,t){(e.callback.onNodeCreated||e.view.addDiyDom)&&a.getRoot(e).createdNodes.push(t)},addZTreeTools:function(e){o.zTreeTools.push(e)},exSetting:function(t){e.extend(!0,r,t)},fixPIdKeyValue:function(e,t){e.data.simpleData.enable&&(t[e.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[e.data.simpleData.idKey]:e.data.simpleData.rootPId)},getAfterA:function(e,t,i){for(var n=0,r=o.afterA.length;r>n;n++)o.afterA[n].apply(this,arguments)},getBeforeA:function(e,t,i){for(var n=0,r=o.beforeA.length;r>n;n++)o.beforeA[n].apply(this,arguments)},getInnerAfterA:function(e,t,i){for(var n=0,r=o.innerAfterA.length;r>n;n++)o.innerAfterA[n].apply(this,arguments)},getInnerBeforeA:function(e,t,i){for(var n=0,r=o.innerBeforeA.length;r>n;n++)o.innerBeforeA[n].apply(this,arguments)},getCache:function(e){return n[e.treeId]},getNodeIndex:function(e,t){if(!t)return null;for(var i=e.data.key.children,n=t.parentTId?t.getParentNode():a.getRoot(e),r=0,o=n[i].length-1;o>=r;r++)if(n[i][r]===t)return r;return-1},getNextNode:function(e,t){if(!t)return null;for(var i=e.data.key.children,n=t.parentTId?t.getParentNode():a.getRoot(e),r=0,o=n[i].length-1;o>=r;r++)if(n[i][r]===t)return r==o?null:n[i][r+1];return null},getNodeByParam:function(e,t,i,n){if(!t||!i)return null;for(var r=e.data.key.children,o=0,s=t.length;s>o;o++){if(t[o][i]==n)return t[o];var l=a.getNodeByParam(e,t[o][r],i,n);if(l)return l}return null},getNodeCache:function(e,t){return t&&n[e.treeId].nodes[a.getNodeCacheId(t)]||null},getNodeName:function(e,t){return""+t[e.data.key.name]},getNodePath:function(e,t){return t?((i=t.parentTId?t.getParentNode().getPath():[])&&i.push(t),i):null;var i},getNodeTitle:function(e,t){return""+t[""===e.data.key.title?e.data.key.name:e.data.key.title]},getNodes:function(e){return a.getRoot(e)[e.data.key.children]},getNodesByParam:function(e,t,i,n){if(!t||!i)return[];for(var r=e.data.key.children,o=[],s=0,l=t.length;l>s;s++)t[s][i]==n&&o.push(t[s]),o=o.concat(a.getNodesByParam(e,t[s][r],i,n));return o},getNodesByParamFuzzy:function(e,t,i,n){if(!t||!i)return[];var r=e.data.key.children,o=[];n=n.toLowerCase();for(var s=0,l=t.length;l>s;s++)"string"==typeof t[s][i]&&t[s][i].toLowerCase().indexOf(n)>-1&&o.push(t[s]),o=o.concat(a.getNodesByParamFuzzy(e,t[s][r],i,n));return o},getNodesByFilter:function(e,t,i,n,r){if(!t)return n?null:[];for(var o=e.data.key.children,s=n?null:[],l=0,u=t.length;u>l;l++){if(c.apply(i,[t[l],r],!1)){if(n)return t[l];s.push(t[l])}var d=a.getNodesByFilter(e,t[l][o],i,n,r);if(n&&d)return d;s=n?d:s.concat(d)}return s},getPreNode:function(e,t){if(!t)return null;for(var i=e.data.key.children,n=t.parentTId?t.getParentNode():a.getRoot(e),r=0,o=n[i].length;o>r;r++)if(n[i][r]===t)return 0==r?null:n[i][r-1];return null},getRoot:function(e){return e?i[e.treeId]:null},getRoots:function(){return i},getSetting:function(e){return t[e]},getSettings:function(){return t},getZTreeTools:function(e){var t=this.getRoot(this.getSetting(e));return t?t.treeTools:null},initCache:function(e){for(var t=0,i=o.caches.length;i>t;t++)o.caches[t].apply(this,arguments)},initNode:function(e,t,i,n,r,a){for(var s=0,l=o.nodes.length;l>s;s++)o.nodes[s].apply(this,arguments)},initRoot:function(e){for(var t=0,i=o.roots.length;i>t;t++)o.roots[t].apply(this,arguments)},isSelectedNode:function(e,t){for(var i=a.getRoot(e),n=0,r=i.curSelectedList.length;r>n;n++)if(t===i.curSelectedList[n])return!0;return!1},removeNodeCache:function(e,t){var i=e.data.key.children;if(t[i])for(var n=0,r=t[i].length;r>n;n++)a.removeNodeCache(e,t[i][n]);a.getCache(e).nodes[a.getNodeCacheId(t.tId)]=null},removeSelectedNode:function(e,t){for(var i=a.getRoot(e),n=0,r=i.curSelectedList.length;r>n;n++)t!==i.curSelectedList[n]&&a.getNodeCache(e,i.curSelectedList[n].tId)||(i.curSelectedList.splice(n,1),e.treeObj.trigger(h.event.UNSELECTED,[e.treeId,t]),n--,r--)},setCache:function(e,t){n[e.treeId]=t},setRoot:function(e,t){i[e.treeId]=t},setZTreeTools:function(e,t){for(var i=0,n=o.zTreeTools.length;n>i;i++)o.zTreeTools[i].apply(this,arguments)},transformToArrayFormat:function(e,t){if(!t)return[];var i=e.data.key.children,n=[];if(c.isArray(t))for(var r=0,o=t.length;o>r;r++)n.push(t[r]),t[r][i]&&(n=n.concat(a.transformToArrayFormat(e,t[r][i])));else n.push(t),t[i]&&(n=n.concat(a.transformToArrayFormat(e,t[i])));return n},transformTozTreeFormat:function(e,t){var i,n,r=e.data.simpleData.idKey,o=e.data.simpleData.pIdKey,a=e.data.key.children;if(!r||""==r||!t)return[];if(c.isArray(t)){var s=[],l={};for(i=0,n=t.length;n>i;i++)l[t[i][r]]=t[i];for(i=0,n=t.length;n>i;i++)l[t[i][o]]&&t[i][r]!=t[i][o]?(l[t[i][o]][a]||(l[t[i][o]][a]=[]),l[t[i][o]][a].push(t[i])):s.push(t[i]);return s}return[t]}},s={bindEvent:function(e){for(var t=0,i=o.bind.length;i>t;t++)o.bind[t].apply(this,arguments)},unbindEvent:function(e){for(var t=0,i=o.unbind.length;i>t;t++)o.unbind[t].apply(this,arguments)},bindTree:function(e){var t={treeId:e.treeId},i=e.treeObj;e.view.txtSelectedEnable||i.bind("selectstart",l.onSelectStart).css({"-moz-user-select":"-moz-none"}),i.bind("click",t,s.proxy),i.bind("dblclick",t,s.proxy),i.bind("mouseover",t,s.proxy),i.bind("mouseout",t,s.proxy),i.bind("mousedown",t,s.proxy),i.bind("mouseup",t,s.proxy),i.bind("contextmenu",t,s.proxy)},unbindTree:function(e){e.treeObj.unbind("selectstart",l.onSelectStart).unbind("click",s.proxy).unbind("dblclick",s.proxy).unbind("mouseover",s.proxy).unbind("mouseout",s.proxy).unbind("mousedown",s.proxy).unbind("mouseup",s.proxy).unbind("contextmenu",s.proxy)},doProxy:function(e){for(var t=[],i=0,n=o.proxys.length;n>i;i++){var r=o.proxys[i].apply(this,arguments);if(t.push(r),r.stop)break}return t},proxy:function(e){var t=a.getSetting(e.data.treeId);if(!c.uCanDo(t,e))return!0;for(var i=s.doProxy(e),n=!0,r=0,o=i.length;o>r;r++){var l=i[r];l.nodeEventCallback&&(n=l.nodeEventCallback.apply(l,[e,l.node])&&n),l.treeEventCallback&&(n=l.treeEventCallback.apply(l,[e,l.node])&&n)}return n}},l={onSwitchNode:function(e,t){var i=a.getSetting(e.data.treeId);if(t.open){if(0==c.apply(i.callback.beforeCollapse,[i.treeId,t],!0))return!0;a.getRoot(i).expandTriggerFlag=!0,u.switchNode(i,t)}else{if(0==c.apply(i.callback.beforeExpand,[i.treeId,t],!0))return!0;a.getRoot(i).expandTriggerFlag=!0,u.switchNode(i,t)}return!0},onClickNode:function(e,t){var i=a.getSetting(e.data.treeId),n=i.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&a.isSelectedNode(i,t)?0:i.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&i.view.selectedMulti?2:1;return 0==c.apply(i.callback.beforeClick,[i.treeId,t,n],!0)||(0===n?u.cancelPreSelectedNode(i,t):u.selectNode(i,t,2===n),i.treeObj.trigger(h.event.CLICK,[e,i.treeId,t,n])),!0},onZTreeMousedown:function(e,t){var i=a.getSetting(e.data.treeId);return c.apply(i.callback.beforeMouseDown,[i.treeId,t],!0)&&c.apply(i.callback.onMouseDown,[e,i.treeId,t]),!0},onZTreeMouseup:function(e,t){var i=a.getSetting(e.data.treeId);return c.apply(i.callback.beforeMouseUp,[i.treeId,t],!0)&&c.apply(i.callback.onMouseUp,[e,i.treeId,t]),!0},onZTreeDblclick:function(e,t){var i=a.getSetting(e.data.treeId);return c.apply(i.callback.beforeDblClick,[i.treeId,t],!0)&&c.apply(i.callback.onDblClick,[e,i.treeId,t]),!0},onZTreeContextmenu:function(e,t){var i=a.getSetting(e.data.treeId);return c.apply(i.callback.beforeRightClick,[i.treeId,t],!0)&&c.apply(i.callback.onRightClick,[e,i.treeId,t]),"function"!=typeof i.callback.onRightClick},onSelectStart:function(e){var t=e.originalEvent.srcElement.nodeName.toLowerCase();return"input"===t||"textarea"===t}},c={apply:function(e,t,i){return"function"==typeof e?e.apply(d,t||[]):i},canAsync:function(e,t){var i=e.data.key.children;return e.async.enable&&t&&t.isParent&&!(t.zAsync||t[i]&&t[i].length>0)},clone:function(e){if(null===e)return null;var t=c.isArray(e)?[]:{};for(var i in e)t[i]=e[i]instanceof Date?new Date(e[i].getTime()):"object"==typeof e[i]?c.clone(e[i]):e[i];return t},eqs:function(e,t){return e.toLowerCase()===t.toLowerCase()},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},$:function(t,i,n){return i&&"string"!=typeof i&&(n=i,i=""),"string"==typeof t?e(t,n?n.treeObj.get(0).ownerDocument:null):e("#"+t.tId+i,n?n.treeObj:null)},getMDom:function(e,t,i){if(!t)return null;for(;t&&t.id!==e.treeId;){for(var n=0,r=i.length;t.tagName&&r>n;n++)if(c.eqs(t.tagName,i[n].tagName)&&null!==t.getAttribute(i[n].attrName))return t;t=t.parentNode}return null},getNodeMainDom:function(t){return e(t).parent("li").get(0)||e(t).parentsUntil("li").parent().get(0)},isChildOrSelf:function(t,i){return e(t).closest("#"+i).length>0},uCanDo:function(e,t){return!0}},u={addNodes:function(e,t,i,n,r){if(!e.data.keep.leaf||!t||t.isParent)if(c.isArray(n)||(n=[n]),e.data.simpleData.enable&&(n=a.transformTozTreeFormat(e,n)),t){var o=p(t,h.id.SWITCH,e),s=p(t,h.id.ICON,e),l=p(t,h.id.UL,e);t.open||(u.replaceSwitchClass(t,o,h.folder.CLOSE),u.replaceIcoClass(t,s,h.folder.CLOSE),t.open=!1,l.css({display:"none"})),a.addNodesData(e,t,i,n),u.createNodes(e,t.level+1,n,t,i),r||u.expandCollapseParentNode(e,t,!0)}else a.addNodesData(e,a.getRoot(e),i,n),u.createNodes(e,0,n,null,i)},appendNodes:function(e,t,i,n,r,o,s){if(!i)return[];var l,c,d=[],p=e.data.key.children,h=(n||a.getRoot(e))[p];(!h||r>=h.length)&&(r=-1);for(var f=0,g=i.length;g>f;f++){var m=i[f];o&&(l=(0===r||h.length==i.length)&&0==f,c=0>r&&f==i.length-1,a.initNode(e,t,m,n,l,c,s),a.addNodeCache(e,m));var v=[];m[p]&&m[p].length>0&&(v=u.appendNodes(e,t+1,m[p],m,-1,o,s&&m.open)),s&&(u.makeDOMNodeMainBefore(d,e,m),u.makeDOMNodeLine(d,e,m),a.getBeforeA(e,m,d),u.makeDOMNodeNameBefore(d,e,m),a.getInnerBeforeA(e,m,d),u.makeDOMNodeIcon(d,e,m),a.getInnerAfterA(e,m,d),u.makeDOMNodeNameAfter(d,e,m),a.getAfterA(e,m,d),m.isParent&&m.open&&u.makeUlHtml(e,m,d,v.join("")),u.makeDOMNodeMainAfter(d,e,m),a.addCreatedNode(e,m))}return d},appendParentULDom:function(e,t){var i=[],n=p(t,e);!n.get(0)&&t.parentTId&&(u.appendParentULDom(e,t.getParentNode()),n=p(t,e));var r=p(t,h.id.UL,e);r.get(0)&&r.remove();var o=e.data.key.children,a=u.appendNodes(e,t.level+1,t[o],t,-1,!1,!0);u.makeUlHtml(e,t,i,a.join("")),n.append(i.join(""))},asyncNode:function(t,i,n,r){var o,s;if(i&&!i.isParent)return c.apply(r),!1;if(i&&i.isAjaxing)return!1;if(0==c.apply(t.callback.beforeAsync,[t.treeId,i],!0))return c.apply(r),!1;i&&(i.isAjaxing=!0,p(i,h.id.ICON,t).attr({style:"",class:h.className.BUTTON+" "+h.className.ICO_LOADING}));var l={};for(o=0,s=t.async.autoParam.length;i&&s>o;o++){var d=t.async.autoParam[o].split("="),f=d;d.length>1&&(f=d[1],d=d[0]),l[f]=i[d]}if(c.isArray(t.async.otherParam))for(o=0,s=t.async.otherParam.length;s>o;o+=2)l[t.async.otherParam[o]]=t.async.otherParam[o+1];else for(var g in t.async.otherParam)l[g]=t.async.otherParam[g];var m=a.getRoot(t)._ver;return e.Comm.postToRemote({contentType:t.async.contentType,cache:!1,type:t.async.type,url:c.apply(t.async.url,[t.treeId,i],t.async.url),data:l,dataType:t.async.dataType,success:function(o){if(m==a.getRoot(t)._ver){var s=[];try{s=o&&0!=o.length?"string"==typeof o?e.decode(o):o:[]}catch(e){s=o}i&&(i.isAjaxing=null,i.zAsync=!0),u.setNodeLineIcos(t,i),s&&""!==s?(s=c.apply(t.async.dataFilter,[t.treeId,i,s],s),u.addNodes(t,i,-1,s?c.clone(s):[],!!n)):u.addNodes(t,i,-1,[],!!n),t.treeObj.trigger(h.event.ASYNC_SUCCESS,[t.treeId,i,o]),c.apply(r)}},error:function(e,n,r){m==a.getRoot(t)._ver&&(i&&(i.isAjaxing=null),u.setNodeLineIcos(t,i),t.treeObj.trigger(h.event.ASYNC_ERROR,[t.treeId,i,e,n,r]))}}),!0},cancelPreSelectedNode:function(e,t,i){var n,r,o=a.getRoot(e).curSelectedList;for(n=o.length-1;n>=0;n--)if(t===(r=o[n])||!t&&(!i||i!==r)){if(p(r,h.id.A,e).removeClass(h.node.CURSELECTED),t){a.removeSelectedNode(e,t);break}o.splice(n,1),e.treeObj.trigger(h.event.UNSELECTED,[e.treeId,r])}},createNodeCallback:function(e){if(e.callback.onNodeCreated||e.view.addDiyDom)for(var t=a.getRoot(e);t.createdNodes.length>0;){var i=t.createdNodes.shift();c.apply(e.view.addDiyDom,[e.treeId,i]),e.callback.onNodeCreated&&e.treeObj.trigger(h.event.NODECREATED,[e.treeId,i])}},createNodes:function(t,i,n,r,o){if(n&&0!=n.length){var s=a.getRoot(t),l=t.data.key.children,c=!r||r.open||!!p(r[l][0],t).get(0);s.createdNodes=[];var d,f,g=u.appendNodes(t,i,n,r,o,!0,c);if(r){var m=p(r,h.id.UL,t);m.get(0)&&(d=m)}else d=t.treeObj;d&&(o>=0&&(f=d.children()[o]),o>=0&&f?e(f).before(g.join("")):d.append(g.join(""))),u.createNodeCallback(t)}},destroy:function(e){e&&(a.initCache(e),a.initRoot(e),s.unbindTree(e),s.unbindEvent(e),e.treeObj.empty(),delete t[e.treeId])},expandCollapseNode:function(e,t,i,n,r){var o,s=a.getRoot(e),l=e.data.key.children;if(t)if(s.expandTriggerFlag&&(o=r,r=function(){o&&o(),t.open?e.treeObj.trigger(h.event.EXPAND,[e.treeId,t]):e.treeObj.trigger(h.event.COLLAPSE,[e.treeId,t])},s.expandTriggerFlag=!1),!t.open&&t.isParent&&(!p(t,h.id.UL,e).get(0)||t[l]&&t[l].length>0&&!p(t[l][0],e).get(0))&&(u.appendParentULDom(e,t),u.createNodeCallback(e)),t.open!=i){var d=p(t,h.id.UL,e),f=p(t,h.id.SWITCH,e),g=p(t,h.id.ICON,e);t.isParent?(t.open=!t.open,t.iconOpen&&t.iconClose&&g.attr("style",u.makeNodeIcoStyle(e,t)),t.open?(u.replaceSwitchClass(t,f,h.folder.OPEN),u.replaceIcoClass(t,g,h.folder.OPEN),0==n||""==e.view.expandSpeed?(d.show(),c.apply(r,[])):t[l]&&t[l].length>0?d.slideDown(e.view.expandSpeed,r):(d.show(),c.apply(r,[]))):(u.replaceSwitchClass(t,f,h.folder.CLOSE),u.replaceIcoClass(t,g,h.folder.CLOSE),0!=n&&""!=e.view.expandSpeed&&t[l]&&t[l].length>0?d.slideUp(e.view.expandSpeed,r):(d.hide(),c.apply(r,[])))):c.apply(r,[])}else c.apply(r,[]);else c.apply(r,[])},expandCollapseParentNode:function(e,t,i,n,r){if(t){if(!t.parentTId)return void u.expandCollapseNode(e,t,i,n,r);u.expandCollapseNode(e,t,i,n),t.parentTId&&u.expandCollapseParentNode(e,t.getParentNode(),i,n,r)}},expandCollapseSonNode:function(e,t,i,n,r){var o=a.getRoot(e),s=e.data.key.children,l=t?t[s]:o[s],c=!t&&n,d=a.getRoot(e).expandTriggerFlag;if(a.getRoot(e).expandTriggerFlag=!1,l)for(var p=0,h=l.length;h>p;p++)l[p]&&u.expandCollapseSonNode(e,l[p],i,c);a.getRoot(e).expandTriggerFlag=d,u.expandCollapseNode(e,t,i,n,r)},isSelectedNode:function(e,t){if(!t)return!1;var i,n=a.getRoot(e).curSelectedList;for(i=n.length-1;i>=0;i--)if(t===n[i])return!0;return!1},makeDOMNodeIcon:function(e,t,i){var n=a.getNodeName(t,i),r=t.view.nameIsHTML?n:n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");e.push("<span id='",i.tId,h.id.ICON,"' title='' treeNode",h.id.ICON," class='",u.makeNodeIcoClass(t,i),"' style='",u.makeNodeIcoStyle(t,i),"'></span><span id='",i.tId,h.id.SPAN,"' class='",h.className.NAME,"'>",r,"</span>")},makeDOMNodeLine:function(e,t,i){e.push("<span id='",i.tId,h.id.SWITCH,"' title='' class='",u.makeNodeLineClass(t,i),"' treeNode",h.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(e,t,i){e.push("</li>")},makeDOMNodeMainBefore:function(e,t,i){e.push("<li id='",i.tId,"' class='",h.className.LEVEL,i.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(e,t,i){e.push("</a>")},makeDOMNodeNameBefore:function(e,t,i){var n=a.getNodeTitle(t,i),r=u.makeNodeUrl(t,i),o=u.makeNodeFontCss(t,i),s=[];for(var l in o)s.push(l,":",o[l],";");e.push("<a id='",i.tId,h.id.A,"' class='",h.className.LEVEL,i.level,"' treeNode",h.id.A,' onclick="',i.click||"",'" ',null!=r&&r.length>0?"href='"+r+"'":""," target='",u.makeNodeTarget(i),"' style='",s.join(""),"'"),c.apply(t.view.showTitle,[t.treeId,i],t.view.showTitle)&&n&&e.push("title='",n.replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),"'"),e.push(">")},makeNodeFontCss:function(e,t){var i=c.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return i&&"function"!=typeof i?i:{}},makeNodeIcoClass:function(e,t){var i=["ico"];return t.isAjaxing||(i[0]=(t.iconSkin?t.iconSkin+"_":"")+i[0],t.isParent?i.push(t.open?h.folder.OPEN:h.folder.CLOSE):i.push(h.folder.DOCU)),h.className.BUTTON+" "+i.join("_")},makeNodeIcoStyle:function(e,t){var i=[];if(!t.isAjaxing){var n=t.isParent&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.iconClose:t[e.data.key.icon];n&&i.push("background:url(",n,") 0 0 no-repeat;"),0!=e.view.showIcon&&c.apply(e.view.showIcon,[e.treeId,t],!0)||i.push("width:0px;height:0px;")}return i.join("")},makeNodeLineClass:function(e,t){var i=[];return e.view.showLine?0==t.level&&t.isFirstNode&&t.isLastNode?i.push(h.line.ROOT):0==t.level&&t.isFirstNode?i.push(h.line.ROOTS):t.isLastNode?i.push(h.line.BOTTOM):i.push(h.line.CENTER):i.push(h.line.NOLINE),t.isParent?i.push(t.open?h.folder.OPEN:h.folder.CLOSE):i.push(h.folder.DOCU),u.makeNodeLineClassEx(t)+i.join("_")},makeNodeLineClassEx:function(e){return h.className.BUTTON+" "+h.className.LEVEL+e.level+" "+h.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){var i=e.data.key.url;return t[i]?t[i]:null},makeUlHtml:function(e,t,i,n){i.push("<ul id='",t.tId,h.id.UL,"' class='",h.className.LEVEL,t.level," ",u.makeUlLineClass(e,t),"' style='display:",t.open?"block":"none","'>"),i.push(n),i.push("</ul>")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?h.line.LINE:""},removeChildNodes:function(e,t){if(t){var i=e.data.key.children,n=t[i];if(n){for(var r=0,o=n.length;o>r;r++)a.removeNodeCache(e,n[r]);if(a.removeSelectedNode(e),delete t[i],e.data.keep.parent)p(t,h.id.UL,e).empty();else{t.isParent=!1,t.open=!1;var s=p(t,h.id.SWITCH,e),l=p(t,h.id.ICON,e);u.replaceSwitchClass(t,s,h.folder.DOCU),u.replaceIcoClass(t,l,h.folder.DOCU),p(t,h.id.UL,e).remove()}}}},scrollIntoView:function(e){e&&(Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){function t(t,i,n,r){return!1===e||t+r>=n&&i+r>=t?Math.min(n,Math.max(i,t)):(i+n)/2}for(var i,n=this,r=function e(t,i,n,o){return{left:t,top:i,width:n,height:o,right:t+n,bottom:i+o,translate:function(r,a){return e(r+t,a+i,n,o)},relativeFromTo:function(a,s){var l=t,c=i;if((a=a.offsetParent)===(s=s.offsetParent))return r;for(;a;a=a.offsetParent)l+=a.offsetLeft+a.clientLeft,c+=a.offsetTop+a.clientTop;for(;s;s=s.offsetParent)l-=s.offsetLeft+s.clientLeft,c-=s.offsetTop+s.clientTop;return e(l,c,n,o)}}}(this.offsetLeft,this.offsetTop,this.offsetWidth,this.offsetHeight);(i=n.parentNode)instanceof HTMLElement;){var o=i.offsetLeft+i.clientLeft,a=i.offsetTop+i.clientTop;r=r.relativeFromTo(n,i).translate(-o,-a),i.scrollLeft=t(i.scrollLeft,r.right-i.clientWidth,r.left,i.clientWidth),i.scrollTop=t(i.scrollTop,r.bottom-i.clientHeight,r.top,i.clientHeight),r=r.translate(o-i.scrollLeft,a-i.scrollTop),n=i}}),e.scrollIntoViewIfNeeded())},setFirstNode:function(e,t){var i=e.data.key.children;t[i].length>0&&(t[i][0].isFirstNode=!0)},setLastNode:function(e,t){var i=e.data.key.children,n=t[i].length;n>0&&(t[i][n-1].isLastNode=!0)},removeNode:function(e,t){var i=a.getRoot(e),n=e.data.key.children,r=t.parentTId?t.getParentNode():i;if(t.isFirstNode=!1,t.isLastNode=!1,t.getPreNode=function(){return null},t.getNextNode=function(){return null},a.getNodeCache(e,t.tId)){p(t,e).remove(),a.removeNodeCache(e,t),a.removeSelectedNode(e,t);for(var o=0,s=r[n].length;s>o;o++)if(r[n][o].tId==t.tId){r[n].splice(o,1);break}u.setFirstNode(e,r),u.setLastNode(e,r);var l,c,d,f=r[n].length;if(e.data.keep.parent||0!=f){if(e.view.showLine&&f>0){var g=r[n][f-1];if(l=p(g,h.id.UL,e),c=p(g,h.id.SWITCH,e),d=p(g,h.id.ICON,e),r==i)if(1==r[n].length)u.replaceSwitchClass(g,c,h.line.ROOT);else{var m=p(r[n][0],h.id.SWITCH,e);u.replaceSwitchClass(r[n][0],m,h.line.ROOTS),u.replaceSwitchClass(g,c,h.line.BOTTOM)}else u.replaceSwitchClass(g,c,h.line.BOTTOM);l.removeClass(h.line.LINE)}}else r.isParent=!1,r.open=!1,l=p(r,h.id.UL,e),c=p(r,h.id.SWITCH,e),d=p(r,h.id.ICON,e),u.replaceSwitchClass(r,c,h.folder.DOCU),u.replaceIcoClass(r,d,h.folder.DOCU),l.css("display","none")}},replaceIcoClass:function(e,t,i){if(t&&!e.isAjaxing){var n=t.attr("class");if(null!=n){var r=n.split("_");switch(i){case h.folder.OPEN:case h.folder.CLOSE:case h.folder.DOCU:r[r.length-1]=i}t.attr("class",r.join("_"))}}},replaceSwitchClass:function(e,t,i){if(t){var n=t.attr("class");if(null!=n){var r=n.split("_");switch(i){case h.line.ROOT:case h.line.ROOTS:case h.line.CENTER:case h.line.BOTTOM:case h.line.NOLINE:r[0]=u.makeNodeLineClassEx(e)+i;break;case h.folder.OPEN:case h.folder.CLOSE:case h.folder.DOCU:r[1]=i}t.attr("class",r.join("_")),i!==h.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")}}},selectNode:function(e,t,i){i||u.cancelPreSelectedNode(e,null,t),p(t,h.id.A,e).addClass(h.node.CURSELECTED),a.addSelectedNode(e,t),e.treeObj.trigger(h.event.SELECTED,[e.treeId,t])},setNodeFontCss:function(e,t){var i=p(t,h.id.A,e),n=u.makeNodeFontCss(e,t);n&&i.css(n)},setNodeLineIcos:function(e,t){if(t){var i=p(t,h.id.SWITCH,e),n=p(t,h.id.UL,e),r=p(t,h.id.ICON,e),o=u.makeUlLineClass(e,t);0==o.length?n.removeClass(h.line.LINE):n.addClass(o),i.attr("class",u.makeNodeLineClass(e,t)),t.isParent?i.removeAttr("disabled"):i.attr("disabled","disabled"),r.removeAttr("style"),r.attr("style",u.makeNodeIcoStyle(e,t)),r.attr("class",u.makeNodeIcoClass(e,t))}},setNodeName:function(e,t){var i=a.getNodeTitle(e,t),n=p(t,h.id.SPAN,e);n.empty(),e.view.nameIsHTML?n.html(a.getNodeName(e,t)):n.text(a.getNodeName(e,t)),c.apply(e.view.showTitle,[e.treeId,t],e.view.showTitle)&&p(t,h.id.A,e).attr("title",i||"")},setNodeTarget:function(e,t){p(t,h.id.A,e).attr("target",u.makeNodeTarget(t))},setNodeUrl:function(e,t){var i=p(t,h.id.A,e),n=u.makeNodeUrl(e,t);null==n||0==n.length?i.removeAttr("href"):i.attr("href",n)},switchNode:function(e,t){if(t.open||!c.canAsync(e,t))u.expandCollapseNode(e,t,!t.open);else if(e.async.enable){if(!u.asyncNode(e,t))return void u.expandCollapseNode(e,t,!t.open)}else t&&u.expandCollapseNode(e,t,!t.open)}};e.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:c,view:u,event:s,data:a},getZTreeObj:function(e){return a.getZTreeTools(e)||null},destroy:function(e){if(e&&e.length>0)u.destroy(a.getSetting(e));else for(var i in t)u.destroy(t[i])},init:function(i,n,o){var l=c.clone(r);e.extend(!0,l,n),l.treeId=i.attr("id"),l.treeObj=i,l.treeObj.empty(),t[l.treeId]=l,void 0===document.body.style.maxHeight&&(l.view.expandSpeed=""),a.initRoot(l);var d=a.getRoot(l),f=l.data.key.children;o=o?c.clone(c.isArray(o)?o:[o]):[],l.data.simpleData.enable?d[f]=a.transformTozTreeFormat(l,o):d[f]=o,a.initCache(l),s.unbindTree(l),s.bindTree(l),s.unbindEvent(l),s.bindEvent(l);var g={setting:l,addNodes:function(e,t,i,n){if(e||(e=null),e&&!e.isParent&&l.data.keep.leaf)return null;var r=parseInt(t,10);if(isNaN(r)?(n=!!i,i=t,t=-1):t=r,!i)return null;var o=c.clone(c.isArray(i)?i:[i]);function a(){u.addNodes(l,e,t,o,1==n)}return c.canAsync(l,e)?u.asyncNode(l,e,n,a):a(),o},cancelSelectedNode:function(e){u.cancelPreSelectedNode(l,e)},destroy:function(){u.destroy(l)},expandAll:function(e){return e=!!e,u.expandCollapseSonNode(l,null,e,!0),e},expandNode:function(e,t,i,n,r){return e&&e.isParent?(!0!==t&&!1!==t&&(t=!e.open),(r=!!r)&&t&&0==c.apply(l.callback.beforeExpand,[l.treeId,e],!0)||r&&!t&&0==c.apply(l.callback.beforeCollapse,[l.treeId,e],!0)?null:(t&&e.parentTId&&u.expandCollapseParentNode(l,e.getParentNode(),t,!1),t!==e.open||i?(a.getRoot(l).expandTriggerFlag=r,!c.canAsync(l,e)&&i?u.expandCollapseSonNode(l,e,t,!0,o):(e.open=!t,u.switchNode(this.setting,e),o()),t):null)):null;function o(){var t=p(e,l).get(0);t&&!1!==n&&u.scrollIntoView(t)}},getNodes:function(){return a.getNodes(l)},getNodeByParam:function(e,t,i){return e?a.getNodeByParam(l,i?i[l.data.key.children]:a.getNodes(l),e,t):null},getNodeByTId:function(e){return a.getNodeCache(l,e)},getNodesByParam:function(e,t,i){return e?a.getNodesByParam(l,i?i[l.data.key.children]:a.getNodes(l),e,t):null},getNodesByParamFuzzy:function(e,t,i){return e?a.getNodesByParamFuzzy(l,i?i[l.data.key.children]:a.getNodes(l),e,t):null},getNodesByFilter:function(e,t,i,n){return t=!!t,e&&"function"==typeof e?a.getNodesByFilter(l,i?i[l.data.key.children]:a.getNodes(l),e,t,n):t?null:[]},getNodeIndex:function(e){if(!e)return null;for(var t=l.data.key.children,i=e.parentTId?e.getParentNode():a.getRoot(l),n=0,r=i[t].length;r>n;n++)if(i[t][n]==e)return n;return-1},getSelectedNodes:function(){for(var e=[],t=a.getRoot(l).curSelectedList,i=0,n=t.length;n>i;i++)e.push(t[i]);return e},isSelectedNode:function(e){return a.isSelectedNode(l,e)},reAsyncChildNodes:function(e,t,i){if(this.setting.async.enable){var n=!e;if(n&&(e=a.getRoot(l)),"refresh"==t){for(var r=this.setting.data.key.children,o=0,s=e[r]?e[r].length:0;s>o;o++)a.removeNodeCache(l,e[r][o]);a.removeSelectedNode(l),e[r]=[],n?this.setting.treeObj.empty():p(e,h.id.UL,l).empty()}u.asyncNode(this.setting,n?null:e,!!i)}},refresh:function(){this.setting.treeObj.empty();var e=a.getRoot(l),t=e[l.data.key.children];a.initRoot(l),e[l.data.key.children]=t,a.initCache(l),u.createNodes(l,0,e[l.data.key.children],null,-1)},removeChildNodes:function(e){if(!e)return null;var t=e[l.data.key.children];return u.removeChildNodes(l,e),t||null},removeNode:function(e,t){e&&((t=!!t)&&0==c.apply(l.callback.beforeRemove,[l.treeId,e],!0)||(u.removeNode(l,e),t&&this.setting.treeObj.trigger(h.event.REMOVE,[l.treeId,e])))},selectNode:function(e,t,i){if(e&&c.uCanDo(l)){if(t=l.view.selectedMulti&&t,e.parentTId)u.expandCollapseParentNode(l,e.getParentNode(),!0,!1,(function(){if(!i){var t=p(e,l).get(0);u.scrollIntoView(t)}}));else if(!i)try{p(e,l).focus().blur()}catch(e){}u.selectNode(l,e,t)}},transformTozTreeNodes:function(e){return a.transformTozTreeFormat(l,e)},transformToArray:function(e){return a.transformToArrayFormat(l,e)},updateNode:function(e,t){e&&p(e,l).get(0)&&c.uCanDo(l)&&(u.setNodeName(l,e),u.setNodeTarget(l,e),u.setNodeUrl(l,e),u.setNodeLineIcos(l,e),u.setNodeFontCss(l,e))}};return d.treeTools=g,a.setZTreeTools(l,g),d[f]&&d[f].length>0?u.createNodes(l,0,d[f],null,-1):l.async.enable&&l.async.url&&""!==l.async.url&&u.asyncNode(l),g}};var d=e.fn.zTree,p=c.$,h=d.consts}(e),function(e){var t={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},i={check:{enable:!1,autoCheckTrigger:!1,chkStyle:t.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:t.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}},n={onCheckNode:function(e,t){if(!0===t.chkDisabled)return!1;var i=c.getSetting(e.data.treeId),n=i.data.key.checked;if(0==a.apply(i.callback.beforeCheck,[i.treeId,t],!0))return!0;t[n]=!t[n],l.checkNodeRelation(i,t);var r=u(t,s.id.CHECK,i);return l.setChkClass(i,r,t),l.repairParentChkClassWithSelf(i,t),i.treeObj.trigger(s.event.CHECK,[e,i.treeId,t]),!0},onMouseoverCheck:function(e,t){if(!0===t.chkDisabled)return!1;var i=c.getSetting(e.data.treeId),n=u(t,s.id.CHECK,i);return t.check_Focus=!0,l.setChkClass(i,n,t),!0},onMouseoutCheck:function(e,t){if(!0===t.chkDisabled)return!1;var i=c.getSetting(e.data.treeId),n=u(t,s.id.CHECK,i);return t.check_Focus=!1,l.setChkClass(i,n,t),!0}},r={tools:{},view:{checkNodeRelation:function(e,t){var i,n,r,o=e.data.key.children,a=e.data.key.checked,d=s.radio;if(e.check.chkStyle==d.STYLE){var p=c.getRadioCheckedList(e);if(t[a])if(e.check.radioType==d.TYPE_ALL){for(n=p.length-1;n>=0;n--)(i=p[n])[a]&&i!=t&&(i[a]=!1,p.splice(n,1),l.setChkClass(e,u(i,s.id.CHECK,e),i),i.parentTId!=t.parentTId&&l.repairParentChkClassWithSelf(e,i));p.push(t)}else{var h=t.parentTId?t.getParentNode():c.getRoot(e);for(n=0,r=h[o].length;r>n;n++)(i=h[o][n])[a]&&i!=t&&(i[a]=!1,l.setChkClass(e,u(i,s.id.CHECK,e),i))}else if(e.check.radioType==d.TYPE_ALL)for(n=0,r=p.length;r>n;n++)if(t==p[n]){p.splice(n,1);break}}else t[a]&&(!t[o]||0==t[o].length||e.check.chkboxType.Y.indexOf("s")>-1)&&l.setSonNodeCheckBox(e,t,!0),t[a]||t[o]&&0!=t[o].length&&!(e.check.chkboxType.N.indexOf("s")>-1)||l.setSonNodeCheckBox(e,t,!1),t[a]&&e.check.chkboxType.Y.indexOf("p")>-1&&l.setParentNodeCheckBox(e,t,!0),!t[a]&&e.check.chkboxType.N.indexOf("p")>-1&&l.setParentNodeCheckBox(e,t,!1)},makeChkClass:function(e,t){var i,n=e.data.key.checked,r=s.checkbox,o=s.radio;i=!0===t.chkDisabled?r.DISABLED:t.halfCheck?r.PART:e.check.chkStyle==o.STYLE?t.check_Child_State<1?r.FULL:r.PART:t[n]?2===t.check_Child_State||-1===t.check_Child_State?r.FULL:r.PART:t.check_Child_State<1?r.FULL:r.PART;var a=e.check.chkStyle+"_"+(t[n]?r.TRUE:r.FALSE)+"_"+i;return a=t.check_Focus&&!0!==t.chkDisabled?a+"_"+r.FOCUS:a,s.className.BUTTON+" "+r.DEFAULT+" "+a},repairAllChk:function(e,t){if(e.check.enable&&e.check.chkStyle===s.checkbox.STYLE)for(var i=e.data.key.checked,n=e.data.key.children,r=c.getRoot(e),o=0,a=r[n].length;a>o;o++){var u=r[n][o];!0!==u.nocheck&&!0!==u.chkDisabled&&(u[i]=t),l.setSonNodeCheckBox(e,u,t)}},repairChkClass:function(e,t){if(t&&(c.makeChkFlag(e,t),!0!==t.nocheck)){var i=u(t,s.id.CHECK,e);l.setChkClass(e,i,t)}},repairParentChkClass:function(e,t){if(t&&t.parentTId){var i=t.getParentNode();l.repairChkClass(e,i),l.repairParentChkClass(e,i)}},repairParentChkClassWithSelf:function(e,t){if(t){var i=e.data.key.children;t[i]&&t[i].length>0?l.repairParentChkClass(e,t[i][0]):l.repairParentChkClass(e,t)}},repairSonChkDisabled:function(e,t,i,n){if(t){var r=e.data.key.children;if(t.chkDisabled!=i&&(t.chkDisabled=i),l.repairChkClass(e,t),t[r]&&n)for(var o=0,a=t[r].length;a>o;o++){var s=t[r][o];l.repairSonChkDisabled(e,s,i,n)}}},repairParentChkDisabled:function(e,t,i,n){t&&(t.chkDisabled!=i&&n&&(t.chkDisabled=i),l.repairChkClass(e,t),l.repairParentChkDisabled(e,t.getParentNode(),i,n))},setChkClass:function(e,t,i){t&&(!0===i.nocheck?t.hide():t.show(),t.attr("class",l.makeChkClass(e,i)))},setParentNodeCheckBox:function(e,t,i,n){var r=e.data.key.children,o=e.data.key.checked,a=u(t,s.id.CHECK,e);if(n||(n=t),c.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled&&(t[o]=i,l.setChkClass(e,a,t),e.check.autoCheckTrigger&&t!=n&&e.treeObj.trigger(s.event.CHECK,[null,e.treeId,t])),t.parentTId){var d=!0;if(!i)for(var p=t.getParentNode()[r],h=0,f=p.length;f>h;h++)if(!0!==p[h].nocheck&&!0!==p[h].chkDisabled&&p[h][o]||(!0===p[h].nocheck||!0===p[h].chkDisabled)&&p[h].check_Child_State>0){d=!1;break}d&&l.setParentNodeCheckBox(e,t.getParentNode(),i,n)}},setSonNodeCheckBox:function(e,t,i,n){if(t){var r=e.data.key.children,o=e.data.key.checked,a=u(t,s.id.CHECK,e);n||(n=t);var d=!1;if(t[r])for(var p=0,h=t[r].length;h>p;p++){var f=t[r][p];l.setSonNodeCheckBox(e,f,i,n),!0===f.chkDisabled&&(d=!0)}t!=c.getRoot(e)&&!0!==t.chkDisabled&&(d&&!0!==t.nocheck&&c.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled?(t[o]=i,d||(t.check_Child_State=t[r]&&t[r].length>0?i?2:0:-1)):t.check_Child_State=-1,l.setChkClass(e,a,t),e.check.autoCheckTrigger&&t!=n&&!0!==t.nocheck&&!0!==t.chkDisabled&&e.treeObj.trigger(s.event.CHECK,[null,e.treeId,t]))}}},event:{},data:{getRadioCheckedList:function(e){for(var t=c.getRoot(e).radioCheckedList,i=0,n=t.length;n>i;i++)c.getNodeCache(e,t[i].tId)||(t.splice(i,1),i--,n--);return t},getCheckStatus:function(e,t){if(!e.check.enable||t.nocheck||t.chkDisabled)return null;var i=e.data.key.checked;return{checked:t[i],half:t.halfCheck?t.halfCheck:e.check.chkStyle==s.radio.STYLE?2===t.check_Child_State:t[i]?t.check_Child_State>-1&&t.check_Child_State<2:t.check_Child_State>0}},getTreeCheckedNodes:function(e,t,i,n){if(!t)return[];var r=e.data.key.children,o=e.data.key.checked,a=i&&e.check.chkStyle==s.radio.STYLE&&e.check.radioType==s.radio.TYPE_ALL;n=n||[];for(var l=0,u=t.length;u>l&&(!0===t[l].nocheck||!0===t[l].chkDisabled||t[l][o]!=i||(n.push(t[l]),!a))&&(c.getTreeCheckedNodes(e,t[l][r],i,n),!(a&&n.length>0));l++);return n},getTreeChangeCheckedNodes:function(e,t,i){if(!t)return[];var n=e.data.key.children,r=e.data.key.checked;i=i||[];for(var o=0,a=t.length;a>o;o++)!0!==t[o].nocheck&&!0!==t[o].chkDisabled&&t[o][r]!=t[o].checkedOld&&i.push(t[o]),c.getTreeChangeCheckedNodes(e,t[o][n],i);return i},makeChkFlag:function(e,t){if(t){var i=e.data.key.children,n=e.data.key.checked,r=-1;if(t[i])for(var o=0,a=t[i].length;a>o;o++){var l=t[i][o],c=-1;if(e.check.chkStyle==s.radio.STYLE){if(2==(c=!0===l.nocheck||!0===l.chkDisabled?l.check_Child_State:!0===l.halfCheck||l[n]||l.check_Child_State>0?2:0)){r=2;break}0==c&&(r=0)}else if(e.check.chkStyle==s.checkbox.STYLE){if(1===(c=!0===l.nocheck||!0===l.chkDisabled?l.check_Child_State:!0===l.halfCheck?1:l[n]?-1===l.check_Child_State||2===l.check_Child_State?2:1:l.check_Child_State>0?1:0)){r=1;break}if(2===c&&r>-1&&o>0&&c!==r){r=1;break}if(2===r&&c>-1&&2>c){r=1;break}c>-1&&(r=c)}}t.check_Child_State=r}}}};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,r);var o=e.fn.zTree,a=o._z.tools,s=o.consts,l=o._z.view,c=o._z.data,u=(o._z.event,a.$);c.exSetting(i),c.addInitBind((function(e){var t=e.treeObj,i=s.event;t.bind(i.CHECK,(function(t,i,n,r){t.srcEvent=i,a.apply(e.callback.onCheck,[t,n,r])}))})),c.addInitUnBind((function(e){var t=e.treeObj,i=s.event;t.unbind(i.CHECK)})),c.addInitCache((function(e){})),c.addInitNode((function(e,t,i,n,r,o,l){if(i){var u=e.data.key.checked;"string"==typeof i[u]&&(i[u]=a.eqs(i[u],"true")),i[u]=!!i[u],i.checkedOld=i[u],"string"==typeof i.nocheck&&(i.nocheck=a.eqs(i.nocheck,"true")),i.nocheck=!!i.nocheck||e.check.nocheckInherit&&n&&!!n.nocheck,"string"==typeof i.chkDisabled&&(i.chkDisabled=a.eqs(i.chkDisabled,"true")),i.chkDisabled=!!i.chkDisabled||e.check.chkDisabledInherit&&n&&!!n.chkDisabled,"string"==typeof i.halfCheck&&(i.halfCheck=a.eqs(i.halfCheck,"true")),i.halfCheck=!!i.halfCheck,i.check_Child_State=-1,i.check_Focus=!1,i.getCheckStatus=function(){return c.getCheckStatus(e,i)},e.check.chkStyle==s.radio.STYLE&&e.check.radioType==s.radio.TYPE_ALL&&i[u]&&c.getRoot(e).radioCheckedList.push(i)}})),c.addInitProxy((function(e){var t=e.target,i=c.getSetting(e.data.treeId),r="",o=null,l="",u=null;if(a.eqs(e.type,"mouseover")?i.check.enable&&a.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+s.id.CHECK)&&(r=a.getNodeMainDom(t).id,l="mouseoverCheck"):a.eqs(e.type,"mouseout")?i.check.enable&&a.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+s.id.CHECK)&&(r=a.getNodeMainDom(t).id,l="mouseoutCheck"):a.eqs(e.type,"click")&&i.check.enable&&a.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+s.id.CHECK)&&(r=a.getNodeMainDom(t).id,l="checkNode"),r.length>0)switch(o=c.getNodeCache(i,r),l){case"checkNode":u=n.onCheckNode;break;case"mouseoverCheck":u=n.onMouseoverCheck;break;case"mouseoutCheck":u=n.onMouseoutCheck}return{stop:"checkNode"===l,node:o,nodeEventType:l,nodeEventCallback:u,treeEventType:"",treeEventCallback:null}}),!0),c.addInitRoot((function(e){c.getRoot(e).radioCheckedList=[]})),c.addBeforeA((function(e,t,i){e.data.key.checked,e.check.enable&&(c.makeChkFlag(e,t),i.push("<span ID='",t.tId,s.id.CHECK,"' class='",l.makeChkClass(e,t),"' treeNode",s.id.CHECK,!0===t.nocheck?" style='display:none;'":"","></span>"))})),c.addZTreeTools((function(e,t){t.checkNode=function(e,t,i,n){var r=this.setting.data.key.checked;if(!0!==e.chkDisabled&&(!0!==t&&!1!==t&&(t=!e[r]),n=!!n,(e[r]!==t||i)&&(!n||0!=a.apply(this.setting.callback.beforeCheck,[this.setting.treeId,e],!0))&&a.uCanDo(this.setting)&&this.setting.check.enable&&!0!==e.nocheck)){e[r]=t;var o=u(e,s.id.CHECK,this.setting);(i||this.setting.check.chkStyle===s.radio.STYLE)&&l.checkNodeRelation(this.setting,e),l.setChkClass(this.setting,o,e),l.repairParentChkClassWithSelf(this.setting,e),n&&this.setting.treeObj.trigger(s.event.CHECK,[null,this.setting.treeId,e])}},t.checkAllNodes=function(e){l.repairAllChk(this.setting,!!e)},t.getCheckedNodes=function(e){var t=this.setting.data.key.children;return e=!1!==e,c.getTreeCheckedNodes(this.setting,c.getRoot(this.setting)[t],e)},t.getChangeCheckedNodes=function(){var e=this.setting.data.key.children;return c.getTreeChangeCheckedNodes(this.setting,c.getRoot(this.setting)[e])},t.setChkDisabled=function(e,t,i,n){t=!!t,i=!!i,n=!!n,l.repairSonChkDisabled(this.setting,e,t,n),l.repairParentChkDisabled(this.setting,e.getParentNode(),t,i)};var i=t.updateNode;t.updateNode=function(e,n){if(i&&i.apply(t,arguments),e&&this.setting.check.enable&&u(e,this.setting).get(0)&&a.uCanDo(this.setting)){var r=u(e,s.id.CHECK,this.setting);(1==n||this.setting.check.chkStyle===s.radio.STYLE)&&l.checkNodeRelation(this.setting,e),l.setChkClass(this.setting,r,e),l.repairParentChkClassWithSelf(this.setting,e)}}}));var d=l.createNodes;l.createNodes=function(e,t,i,n,r){d&&d.apply(l,arguments),i&&l.repairParentChkClassWithSelf(e,n)};var p=l.removeNode;l.removeNode=function(e,t){var i=t.getParentNode();p&&p.apply(l,arguments),t&&i&&(l.repairChkClass(e,i),l.repairParentChkClass(e,i))};var h=l.appendNodes;l.appendNodes=function(e,t,i,n,r,o,a){var s="";return h&&(s=h.apply(l,arguments)),n&&c.makeChkFlag(e,n),s}}(e),function(e){var t={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},i={onHoverOverNode:function(e,t){var n=l.getSetting(e.data.treeId),r=l.getRoot(n);r.curHoverNode!=t&&i.onHoverOutNode(e),r.curHoverNode=t,s.addHoverDom(n,t)},onHoverOutNode:function(e,t){var i=l.getSetting(e.data.treeId),n=l.getRoot(i);n.curHoverNode&&!l.isSelectedNode(i,n.curHoverNode)&&(s.removeTreeDom(i,n.curHoverNode),n.curHoverNode=null)},onMousedownNode:function(i,n){var r,u,d=l.getSetting(i.data.treeId),p=l.getRoot(d),h=l.getRoots();if(2==i.button||!d.edit.enable||!d.edit.drag.isCopy&&!d.edit.drag.isMove)return!0;var f=i.target,g=l.getRoot(d).curSelectedList,m=[];if(l.isSelectedNode(d,n))for(r=0,u=g.length;u>r;r++){if(g[r].editNameFlag&&o.eqs(f.tagName,"input")&&null!==f.getAttribute("treeNode"+a.id.INPUT))return!0;if(m.push(g[r]),m[0].parentTId!==g[r].parentTId){m=[n];break}}else m=[n];s.editNodeBlur=!0,s.cancelCurEditNode(d);var v,y,b,w,_,x=e(d.treeObj.get(0).ownerDocument),$=e(d.treeObj.get(0).ownerDocument.body),C=!1,k=d,S=d,E=null,j=null,D=null,T=a.move.TYPE_INNER,I=i.clientX,A=i.clientY,O=(new Date).getTime();function N(i){if(0==p.dragFlag&&Math.abs(I-i.clientX)<d.edit.drag.minMoveSize&&Math.abs(A-i.clientY)<d.edit.drag.minMoveSize)return!0;var n,r,u,f,g,S=d.data.key.children;if($.css("cursor","pointer"),0==p.dragFlag){if(0==o.apply(d.callback.beforeDrag,[d.treeId,m],!0))return P(i),!0;for(n=0,r=m.length;r>n;n++)0==n&&(p.dragNodeShowBefore=[]),(u=m[n]).isParent&&u.open?(s.expandCollapseNode(d,u,!u.open),p.dragNodeShowBefore[u.tId]=!0):p.dragNodeShowBefore[u.tId]=!1;p.dragFlag=1,h.showHoverDom=!1,o.showIfameMask(d,!0);var N=!0,M=-1;if(m.length>1){var F=m[0].parentTId?m[0].getParentNode()[S]:l.getNodes(d);for(g=[],n=0,r=F.length;r>n;n++)if(void 0!==p.dragNodeShowBefore[F[n].tId]&&(N&&M>-1&&M+1!==n&&(N=!1),g.push(F[n]),M=n),m.length===g.length){m=g;break}}for(N&&(w=m[0].getPreNode(),_=m[m.length-1].getNextNode()),v=c("<ul class='zTreeDragUL'></ul>",d),n=0,r=m.length;r>n;n++)(u=m[n]).editNameFlag=!1,s.selectNode(d,u,n>0),s.removeTreeDom(d,u),n>d.edit.drag.maxShowNodeNum-1||((f=c("<li id='"+u.tId+"_tmp'></li>",d)).append(c(u,a.id.A,d).clone()),f.css("padding","0"),f.children("#"+u.tId+a.id.A).removeClass(a.node.CURSELECTED),v.append(f),n==d.edit.drag.maxShowNodeNum-1&&(f=c("<li id='"+u.tId+"_moretmp'><a> ... </a></li>",d),v.append(f)));v.attr("id",m[0].tId+a.id.UL+"_tmp"),v.addClass(d.treeObj.attr("class")),v.appendTo($),(y=c("<span class='tmpzTreeMove_arrow'></span>",d)).attr("id","zTreeMove_arrow_tmp"),y.appendTo($),d.treeObj.trigger(a.event.DRAG,[i,d.treeId,m])}if(1==p.dragFlag){if(b&&y.attr("id")==i.target.id&&D&&i.clientX+x.scrollLeft()+2>e("#"+D+a.id.A,b).offset().left){var R=e("#"+D+a.id.A,b);i.target=R.length>0?R.get(0):i.target}else b&&(b.removeClass(a.node.TMPTARGET_TREE),D&&e("#"+D+a.id.A,b).removeClass(a.node.TMPTARGET_NODE+"_"+a.move.TYPE_PREV).removeClass(a.node.TMPTARGET_NODE+"_"+t.move.TYPE_NEXT).removeClass(a.node.TMPTARGET_NODE+"_"+t.move.TYPE_INNER));b=null,D=null,C=!1,k=d;var L=l.getSettings();for(var q in L)L[q].treeId&&L[q].edit.enable&&L[q].treeId!=d.treeId&&(i.target.id==L[q].treeId||e(i.target).parents("#"+L[q].treeId).length>0)&&(C=!0,k=L[q]);var H=x.scrollTop(),z=x.scrollLeft(),B=k.treeObj.offset(),G=k.treeObj.get(0).scrollHeight,U=k.treeObj.get(0).scrollWidth,W=i.clientY+H-B.top,Y=k.treeObj.height()+B.top-i.clientY-H,V=i.clientX+z-B.left,K=k.treeObj.width()+B.left-i.clientX-z,X=W<d.edit.drag.borderMax&&W>d.edit.drag.borderMin,J=Y<d.edit.drag.borderMax&&Y>d.edit.drag.borderMin,Q=V<d.edit.drag.borderMax&&V>d.edit.drag.borderMin,Z=K<d.edit.drag.borderMax&&K>d.edit.drag.borderMin,ee=W>d.edit.drag.borderMin&&Y>d.edit.drag.borderMin&&V>d.edit.drag.borderMin&&K>d.edit.drag.borderMin,te=X&&k.treeObj.scrollTop()<=0,ie=J&&k.treeObj.scrollTop()+k.treeObj.height()+10>=G,ne=Q&&k.treeObj.scrollLeft()<=0,re=Z&&k.treeObj.scrollLeft()+k.treeObj.width()+10>=U;if(i.target&&o.isChildOrSelf(i.target,k.treeId)){for(var oe=i.target;oe&&oe.tagName&&!o.eqs(oe.tagName,"li")&&oe.id!=k.treeId;)oe=oe.parentNode;var ae=!0;for(n=0,r=m.length;r>n;n++){if(u=m[n],oe.id===u.tId){ae=!1;break}if(c(u,d).find("#"+oe.id).length>0){ae=!1;break}}ae&&i.target&&o.isChildOrSelf(i.target,oe.id+a.id.A)&&(b=e(oe),D=oe.id)}u=m[0],ee&&o.isChildOrSelf(i.target,k.treeId)&&(!b&&(i.target.id==k.treeId||te||ie||ne||re)&&(C||!C&&u.parentTId)&&(b=k.treeObj),X?k.treeObj.scrollTop(k.treeObj.scrollTop()-10):J&&k.treeObj.scrollTop(k.treeObj.scrollTop()+10),Q?k.treeObj.scrollLeft(k.treeObj.scrollLeft()-10):Z&&k.treeObj.scrollLeft(k.treeObj.scrollLeft()+10),b&&b!=k.treeObj&&b.offset().left<k.treeObj.offset().left&&k.treeObj.scrollLeft(k.treeObj.scrollLeft()+b.offset().left-k.treeObj.offset().left)),v.css({top:i.clientY+H+3+"px",left:i.clientX+z+3+"px"});var se=0,le=0;if(b&&b.attr("id")!=k.treeId){var ce=null==D?null:l.getNodeCache(k,D),ue=(i.ctrlKey||i.metaKey)&&d.edit.drag.isMove&&d.edit.drag.isCopy||!d.edit.drag.isMove&&d.edit.drag.isCopy,de=!(!w||D!==w.tId),pe=!(!_||D!==_.tId),he=u.parentTId&&u.parentTId==D,fe=(ue||!pe)&&o.apply(k.edit.drag.prev,[k.treeId,m,ce],!!k.edit.drag.prev),ge=(ue||!de)&&o.apply(k.edit.drag.next,[k.treeId,m,ce],!!k.edit.drag.next),me=(ue||!he)&&!(k.data.keep.leaf&&ce&&!ce.isParent)&&o.apply(k.edit.drag.inner,[k.treeId,m,ce],!!k.edit.drag.inner);function ve(){b=null,D="",T=a.move.TYPE_INNER,y.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null)}if(fe||ge||me){var ye=e("#"+D+a.id.A,b),be=ce.isLastNode?null:e("#"+ce.getNextNode().tId+a.id.A,b.next()),we=ye.offset().top,_e=ye.offset().left,xe=fe?me?.25:ge?.5:1:-1,$e=ge?me?.75:fe?.5:0:-1,Ce=(i.clientY+H-we)/ye.height();if((1==xe||xe>=Ce&&Ce>=-.2)&&fe?(se=1-y.width(),le=we-y.height()/2,T=a.move.TYPE_PREV):(0==$e||Ce>=$e&&1.2>=Ce)&&ge?(se=1-y.width(),le=null==be||ce.isParent&&ce.open?we+ye.height()-y.height()/2:be.offset().top-y.height()/2,T=a.move.TYPE_NEXT):me?(se=5-y.width(),le=we,T=a.move.TYPE_INNER):ve(),b&&(y.css({display:"block",top:le+"px",left:_e+se+"px"}),ye.addClass(a.node.TMPTARGET_NODE+"_"+T),(E!=D||j!=T)&&(O=(new Date).getTime()),ce&&ce.isParent&&T==a.move.TYPE_INNER)){var ke=!0;window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==ce.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===ce.tId&&(ke=!1),ke&&(window.zTreeMoveTimer=setTimeout((function(){T==a.move.TYPE_INNER&&ce&&ce.isParent&&!ce.open&&(new Date).getTime()-O>k.edit.drag.autoOpenTime&&o.apply(k.callback.beforeDragOpen,[k.treeId,ce],!0)&&(s.switchNode(k,ce),k.edit.drag.autoExpandTrigger&&k.treeObj.trigger(a.event.EXPAND,[k.treeId,ce]))}),k.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=ce.tId)}}else ve()}else T=a.move.TYPE_INNER,b&&o.apply(k.edit.drag.inner,[k.treeId,m,null],!!k.edit.drag.inner)?b.addClass(a.node.TMPTARGET_TREE):b=null,y.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null);E=D,j=T,d.treeObj.trigger(a.event.DRAGMOVE,[i,d.treeId,m])}return!1}function P(i){if(window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null),E=null,j=null,x.unbind("mousemove",N),x.unbind("mouseup",P),x.unbind("selectstart",M),$.css("cursor","auto"),b&&(b.removeClass(a.node.TMPTARGET_TREE),D&&e("#"+D+a.id.A,b).removeClass(a.node.TMPTARGET_NODE+"_"+a.move.TYPE_PREV).removeClass(a.node.TMPTARGET_NODE+"_"+t.move.TYPE_NEXT).removeClass(a.node.TMPTARGET_NODE+"_"+t.move.TYPE_INNER)),o.showIfameMask(d,!1),h.showHoverDom=!0,0!=p.dragFlag){var n,r,u;for(p.dragFlag=0,n=0,r=m.length;r>n;n++)(u=m[n]).isParent&&p.dragNodeShowBefore[u.tId]&&!u.open&&(s.expandCollapseNode(d,u,!u.open),delete p.dragNodeShowBefore[u.tId]);v&&v.remove(),y&&y.remove();var f=(i.ctrlKey||i.metaKey)&&d.edit.drag.isMove&&d.edit.drag.isCopy||!d.edit.drag.isMove&&d.edit.drag.isCopy;if(!f&&b&&D&&m[0].parentTId&&D==m[0].parentTId&&T==a.move.TYPE_INNER&&(b=null),b){var g=null==D?null:l.getNodeCache(k,D);if(0==o.apply(d.callback.beforeDrop,[k.treeId,m,g,T,f],!0))return void s.selectNodes(S,m);var w=f?o.clone(m):m;function _(){if(C){if(!f)for(var e=0,t=m.length;t>e;e++)s.removeNode(d,m[e]);T==a.move.TYPE_INNER?s.addNodes(k,g,-1,w):s.addNodes(k,g.getParentNode(),T==a.move.TYPE_PREV?g.getIndex():g.getIndex()+1,w)}else if(f&&T==a.move.TYPE_INNER)s.addNodes(k,g,-1,w);else if(f)s.addNodes(k,g.getParentNode(),T==a.move.TYPE_PREV?g.getIndex():g.getIndex()+1,w);else if(T!=a.move.TYPE_NEXT)for(e=0,t=w.length;t>e;e++)s.moveNode(k,g,w[e],T,!1);else for(e=-1,t=w.length-1;t>e;t--)s.moveNode(k,g,w[t],T,!1);s.selectNodes(k,w);var n=c(w[0],d).get(0);s.scrollIntoView(n),d.treeObj.trigger(a.event.DROP,[i,k.treeId,w,g,T,f])}T==a.move.TYPE_INNER&&o.canAsync(k,g)?s.asyncNode(k,g,!1,_):_()}else s.selectNodes(S,m),d.treeObj.trigger(a.event.DROP,[i,d.treeId,m,null,null,null])}}function M(){return!1}return o.uCanDo(d)&&x.bind("mousemove",N),x.bind("mouseup",P),x.bind("selectstart",M),i.preventDefault&&i.preventDefault(),!0}},n={tools:{getAbs:function(e){var t=e.getBoundingClientRect(),i=document.body.scrollTop+document.documentElement.scrollTop,n=document.body.scrollLeft+document.documentElement.scrollLeft;return[t.left+n,t.top+i]},inputFocus:function(e){e.get(0)&&(e.focus(),o.setCursorPosition(e.get(0),e.val().length))},inputSelect:function(e){e.get(0)&&(e.focus(),e.select())},setCursorPosition:function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select()}},showIfameMask:function(e,t){for(var i=l.getRoot(e);i.dragMaskList.length>0;)i.dragMaskList[0].remove(),i.dragMaskList.shift();if(t)for(var n=c("iframe",e),r=0,a=n.length;a>r;r++){var s=n.get(r),u=o.getAbs(s),d=c("<div id='zTreeMask_"+r+"' class='zTreeMask' style='top:"+u[1]+"px; left:"+u[0]+"px; width:"+s.offsetWidth+"px; height:"+s.offsetHeight+"px;'></div>",e);d.appendTo(c("body",e)),i.dragMaskList.push(d)}}},view:{addEditBtn:function(e,t){if(!(t.editNameFlag||c(t,a.id.EDIT,e).length>0)&&o.apply(e.edit.showRenameBtn,[e.treeId,t],e.edit.showRenameBtn)){var i=c(t,a.id.A,e),n="<span class='"+a.className.BUTTON+" edit' id='"+t.tId+a.id.EDIT+"' title='"+o.apply(e.edit.renameTitle,[e.treeId,t],e.edit.renameTitle)+"' treeNode"+a.id.EDIT+" style='display:none;'></span>";i.append(n),c(t,a.id.EDIT,e).bind("click",(function(){return!(!o.uCanDo(e)||0==o.apply(e.callback.beforeEditName,[e.treeId,t],!0)||(s.editNode(e,t),1))})).show()}},addRemoveBtn:function(e,t){if(!(t.editNameFlag||c(t,a.id.REMOVE,e).length>0)&&o.apply(e.edit.showRemoveBtn,[e.treeId,t],e.edit.showRemoveBtn)){var i=c(t,a.id.A,e),n="<span class='"+a.className.BUTTON+" remove' id='"+t.tId+a.id.REMOVE+"' title='"+o.apply(e.edit.removeTitle,[e.treeId,t],e.edit.removeTitle)+"' treeNode"+a.id.REMOVE+" style='display:none;'></span>";i.append(n),c(t,a.id.REMOVE,e).bind("click",(function(){return!(!o.uCanDo(e)||0==o.apply(e.callback.beforeRemove,[e.treeId,t],!0)||(s.removeNode(e,t),e.treeObj.trigger(a.event.REMOVE,[e.treeId,t]),1))})).bind("mousedown",(function(e){return!0})).show()}},addHoverDom:function(e,t){l.getRoots().showHoverDom&&(t.isHover=!0,e.edit.enable&&(s.addEditBtn(e,t),s.addRemoveBtn(e,t)),o.apply(e.view.addHoverDom,[e.treeId,t]))},cancelCurEditNode:function(e,t,i){var n=l.getRoot(e),r=e.data.key.name,u=n.curEditNode;if(u){var d=n.curEditInput,p=t||(i?u[r]:d.val());if(!1===o.apply(e.callback.beforeRename,[e.treeId,u,p,i],!0))return!1;u[r]=p,c(u,a.id.A,e).removeClass(a.node.CURSELECTED_EDIT),d.unbind(),s.setNodeName(e,u),u.editNameFlag=!1,n.curEditNode=null,n.curEditInput=null,s.selectNode(e,u,!1),e.treeObj.trigger(a.event.RENAME,[e.treeId,u,i])}return n.noSelection=!0,!0},editNode:function(e,t){var i=l.getRoot(e);if(s.editNodeBlur=!1,l.isSelectedNode(e,t)&&i.curEditNode==t&&t.editNameFlag)setTimeout((function(){o.inputFocus(i.curEditInput)}),0);else{var n=e.data.key.name;t.editNameFlag=!0,s.removeTreeDom(e,t),s.cancelCurEditNode(e),s.selectNode(e,t,!1),c(t,a.id.SPAN,e).html("<input type=text class='rename' id='"+t.tId+a.id.INPUT+"' treeNode"+a.id.INPUT+" >");var r=c(t,a.id.INPUT,e);r.attr("value",t[n]),e.edit.editNameSelectAll?o.inputSelect(r):o.inputFocus(r),r.bind("blur",(function(t){s.editNodeBlur||s.cancelCurEditNode(e)})).bind("keydown",(function(t){"13"==t.keyCode?(s.editNodeBlur=!0,s.cancelCurEditNode(e)):"27"==t.keyCode&&s.cancelCurEditNode(e,null,!0)})).bind("click",(function(e){return!1})).bind("dblclick",(function(e){return!1})),c(t,a.id.A,e).addClass(a.node.CURSELECTED_EDIT),i.curEditInput=r,i.noSelection=!1,i.curEditNode=t}},moveNode:function(e,t,i,n,r,o){var u=l.getRoot(e),d=e.data.key.children;if(t!=i&&(!e.data.keep.leaf||!t||t.isParent||n!=a.move.TYPE_INNER)){var p=i.parentTId?i.getParentNode():u,h=null===t||t==u;h&&null===t&&(t=u),h&&(n=a.move.TYPE_INNER);var f,g,m=t.parentTId?t.getParentNode():u;if(n!=a.move.TYPE_PREV&&n!=a.move.TYPE_NEXT&&(n=a.move.TYPE_INNER),n==a.move.TYPE_INNER&&(h?i.parentTId=null:(t.isParent||(t.isParent=!0,t.open=!!t.open,s.setNodeLineIcos(e,t)),i.parentTId=t.tId)),h)g=f=e.treeObj;else{if(o||n!=a.move.TYPE_INNER?o||s.expandCollapseNode(e,t.getParentNode(),!0,!1):s.expandCollapseNode(e,t,!0,!1),f=c(t,e),g=c(t,a.id.UL,e),f.get(0)&&!g.get(0)){var v=[];s.makeUlHtml(e,t,v,""),f.append(v.join(""))}g=c(t,a.id.UL,e)}var y=c(i,e);y.get(0)?f.get(0)||y.remove():y=s.appendNodes(e,i.level,[i],null,-1,!1,!0).join(""),g.get(0)&&n==a.move.TYPE_INNER?g.append(y):f.get(0)&&n==a.move.TYPE_PREV?f.before(y):f.get(0)&&n==a.move.TYPE_NEXT&&f.after(y);var b,w,_=-1,x=0,$=null,C=null,k=i.level;if(i.isFirstNode)_=0,p[d].length>1&&(($=p[d][1]).isFirstNode=!0);else if(i.isLastNode)_=p[d].length-1,($=p[d][_-1]).isLastNode=!0;else for(b=0,w=p[d].length;w>b;b++)if(p[d][b].tId==i.tId){_=b;break}if(_>=0&&p[d].splice(_,1),n!=a.move.TYPE_INNER)for(b=0,w=m[d].length;w>b;b++)m[d][b].tId==t.tId&&(x=b);if(n==a.move.TYPE_INNER?(t[d]||(t[d]=new Array),t[d].length>0&&((C=t[d][t[d].length-1]).isLastNode=!1),t[d].splice(t[d].length,0,i),i.isLastNode=!0,i.isFirstNode=1==t[d].length):t.isFirstNode&&n==a.move.TYPE_PREV?(m[d].splice(x,0,i),(C=t).isFirstNode=!1,i.parentTId=t.parentTId,i.isFirstNode=!0,i.isLastNode=!1):t.isLastNode&&n==a.move.TYPE_NEXT?(m[d].splice(x+1,0,i),(C=t).isLastNode=!1,i.parentTId=t.parentTId,i.isFirstNode=!1,i.isLastNode=!0):(n==a.move.TYPE_PREV?m[d].splice(x,0,i):m[d].splice(x+1,0,i),i.parentTId=t.parentTId,i.isFirstNode=!1,i.isLastNode=!1),l.fixPIdKeyValue(e,i),l.setSonNodeLevel(e,i.getParentNode(),i),s.setNodeLineIcos(e,i),s.repairNodeLevelClass(e,i,k),!e.data.keep.parent&&p[d].length<1){p.isParent=!1,p.open=!1;var S=c(p,a.id.UL,e),E=c(p,a.id.SWITCH,e),j=c(p,a.id.ICON,e);s.replaceSwitchClass(p,E,a.folder.DOCU),s.replaceIcoClass(p,j,a.folder.DOCU),S.css("display","none")}else $&&s.setNodeLineIcos(e,$);C&&s.setNodeLineIcos(e,C),e.check&&e.check.enable&&s.repairChkClass&&(s.repairChkClass(e,p),s.repairParentChkClassWithSelf(e,p),p!=i.parent&&s.repairParentChkClassWithSelf(e,i)),o||s.expandCollapseParentNode(e,i.getParentNode(),!0,r)}},removeEditBtn:function(e,t){c(t,a.id.EDIT,e).unbind().remove()},removeRemoveBtn:function(e,t){c(t,a.id.REMOVE,e).unbind().remove()},removeTreeDom:function(e,t){t.isHover=!1,s.removeEditBtn(e,t),s.removeRemoveBtn(e,t),o.apply(e.view.removeHoverDom,[e.treeId,t])},repairNodeLevelClass:function(e,t,i){if(i!==t.level){var n=c(t,e),r=c(t,a.id.A,e),o=c(t,a.id.UL,e),s=a.className.LEVEL+i,l=a.className.LEVEL+t.level;n.removeClass(s),n.addClass(l),r.removeClass(s),r.addClass(l),o.removeClass(s),o.addClass(l)}},selectNodes:function(e,t){for(var i=0,n=t.length;n>i;i++)s.selectNode(e,t[i],i>0)}},event:{},data:{setSonNodeLevel:function(e,t,i){if(i){var n=e.data.key.children;if(i.level=t?t.level+1:0,i[n])for(var r=0,o=i[n].length;o>r;r++)i[n][r]&&l.setSonNodeLevel(e,i,i[n][r])}}}};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,n);var r=e.fn.zTree,o=r._z.tools,a=r.consts,s=r._z.view,l=r._z.data,c=(r._z.event,o.$);l.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}}),l.addInitBind((function(e){var t=e.treeObj,i=a.event;t.bind(i.RENAME,(function(t,i,n,r){o.apply(e.callback.onRename,[t,i,n,r])})),t.bind(i.DRAG,(function(t,i,n,r){o.apply(e.callback.onDrag,[i,n,r])})),t.bind(i.DRAGMOVE,(function(t,i,n,r){o.apply(e.callback.onDragMove,[i,n,r])})),t.bind(i.DROP,(function(t,i,n,r,a,s,l){o.apply(e.callback.onDrop,[i,n,r,a,s,l])}))})),l.addInitUnBind((function(e){var t=e.treeObj,i=a.event;t.unbind(i.RENAME),t.unbind(i.DRAG),t.unbind(i.DRAGMOVE),t.unbind(i.DROP)})),l.addInitCache((function(e){})),l.addInitNode((function(e,t,i,n,r,o,a){i&&(i.isHover=!1,i.editNameFlag=!1)})),l.addInitProxy((function(e){var t=e.target,n=l.getSetting(e.data.treeId),r=e.relatedTarget,s="",c=null,u="",d=null,p=null;if(o.eqs(e.type,"mouseover")?(p=o.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+a.id.A}]))&&(s=o.getNodeMainDom(p).id,u="hoverOverNode"):o.eqs(e.type,"mouseout")?(p=o.getMDom(n,r,[{tagName:"a",attrName:"treeNode"+a.id.A}]))||(s="remove",u="hoverOutNode"):o.eqs(e.type,"mousedown")&&(p=o.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+a.id.A}]))&&(s=o.getNodeMainDom(p).id,u="mousedownNode"),s.length>0)switch(c=l.getNodeCache(n,s),u){case"mousedownNode":d=i.onMousedownNode;break;case"hoverOverNode":d=i.onHoverOverNode;break;case"hoverOutNode":d=i.onHoverOutNode}return{stop:!1,node:c,nodeEventType:u,nodeEventCallback:d,treeEventType:"",treeEventCallback:null}})),l.addInitRoot((function(e){var t=l.getRoot(e),i=l.getRoots();t.curEditNode=null,t.curEditInput=null,t.curHoverNode=null,t.dragFlag=0,t.dragNodeShowBefore=[],t.dragMaskList=new Array,i.showHoverDom=!0})),l.addZTreeTools((function(e,t){t.cancelEditName=function(e){l.getRoot(this.setting).curEditNode&&s.cancelCurEditNode(this.setting,e||null,!0)},t.copyNode=function(e,t,i,n){if(!t)return null;if(e&&!e.isParent&&this.setting.data.keep.leaf&&i===a.move.TYPE_INNER)return null;var r=this,l=o.clone(t);if(e||(e=null,i=a.move.TYPE_INNER),i==a.move.TYPE_INNER){function c(){s.addNodes(r.setting,e,-1,[l],n)}o.canAsync(this.setting,e)?s.asyncNode(this.setting,e,n,c):c()}else s.addNodes(this.setting,e?e.parentNode:void 0,-1,[l],n),s.moveNode(this.setting,e,l,i,!1,n);return l},t.editName=function(e){e&&e.tId&&e===l.getNodeCache(this.setting,e.tId)&&(e.parentTId&&s.expandCollapseParentNode(this.setting,e.getParentNode(),!0),s.editNode(this.setting,e))},t.moveNode=function(e,t,i,n){if(!t)return t;if(e&&!e.isParent&&this.setting.data.keep.leaf&&i===a.move.TYPE_INNER)return null;if(e&&(t.parentTId==e.tId&&i==a.move.TYPE_INNER||c(t,this.setting).find("#"+e.tId).length>0))return null;e||(e=null);var r=this;function l(){s.moveNode(r.setting,e,t,i,!1,n)}return o.canAsync(this.setting,e)&&i===a.move.TYPE_INNER?s.asyncNode(this.setting,e,n,l):l(),t},t.setEditable=function(e){return this.setting.edit.enable=e,this.refresh()}}));var u=s.cancelPreSelectedNode;s.cancelPreSelectedNode=function(e,t){for(var i=l.getRoot(e).curSelectedList,n=0,r=i.length;r>n&&(t&&t!==i[n]||(s.removeTreeDom(e,i[n]),!t));n++);u&&u.apply(s,arguments)};var d=s.createNodes;s.createNodes=function(e,t,i,n,r){d&&d.apply(s,arguments),i&&s.repairParentChkClassWithSelf&&s.repairParentChkClassWithSelf(e,n)};var p=s.makeNodeUrl;s.makeNodeUrl=function(e,t){return e.edit.enable?null:p.apply(s,arguments)};var h=s.removeNode;s.removeNode=function(e,t){var i=l.getRoot(e);i.curEditNode===t&&(i.curEditNode=null),h&&h.apply(s,arguments)};var f=s.selectNode;s.selectNode=function(e,t,i){var n=l.getRoot(e);return!(l.isSelectedNode(e,t)&&n.curEditNode==t&&t.editNameFlag||(f&&f.apply(s,arguments),s.addHoverDom(e,t),0))};var g=o.uCanDo;o.uCanDo=function(e,t){var i=l.getRoot(e);return!(!t||!(o.eqs(t.type,"mouseover")||o.eqs(t.type,"mouseout")||o.eqs(t.type,"mousedown")||o.eqs(t.type,"mouseup")))||(i.curEditNode&&(s.editNodeBlur=!1,i.curEditInput.focus()),!i.curEditNode&&(!g||g.apply(s,arguments)))}}(e),function(e){var t={view:{clearOldFirstNode:function(e,t){for(var i=t.getNextNode();i;){if(i.isFirstNode){i.isFirstNode=!1,o.setNodeLineIcos(e,i);break}if(i.isLastNode)break;i=i.getNextNode()}},clearOldLastNode:function(e,t,i){for(var n=t.getPreNode();n;){if(n.isLastNode){n.isLastNode=!1,i&&o.setNodeLineIcos(e,n);break}if(n.isFirstNode)break;n=n.getPreNode()}},makeDOMNodeMainBefore:function(e,t,i){e.push("<li ",i.isHidden?"style='display:none;' ":"","id='",i.tId,"' class='",r.className.LEVEL,i.level,"' tabindex='0' hidefocus='true' treenode>")},showNode:function(e,t,i){t.isHidden=!1,a.initShowForExCheck(e,t),s(t,e).show()},showNodes:function(e,t,i){if(t&&0!=t.length){var n,r,s={};for(n=0,r=t.length;r>n;n++){var l=t[n];if(!s[l.parentTId]){var c=l.getParentNode();s[l.parentTId]=null===c?a.getRoot(e):l.getParentNode()}o.showNode(e,l,i)}for(var u in s){var d=s[u][e.data.key.children];o.setFirstNodeForShow(e,d),o.setLastNodeForShow(e,d)}}},hideNode:function(e,t,i){t.isHidden=!0,t.isFirstNode=!1,t.isLastNode=!1,a.initHideForExCheck(e,t),o.cancelPreSelectedNode(e,t),s(t,e).hide()},hideNodes:function(e,t,i){if(t&&0!=t.length){var n,r,s={};for(n=0,r=t.length;r>n;n++){var l=t[n];if((l.isFirstNode||l.isLastNode)&&!s[l.parentTId]){var c=l.getParentNode();s[l.parentTId]=null===c?a.getRoot(e):l.getParentNode()}o.hideNode(e,l,i)}for(var u in s){var d=s[u][e.data.key.children];o.setFirstNodeForHide(e,d),o.setLastNodeForHide(e,d)}}},setFirstNode:function(e,t){var i=e.data.key.children,n=t[i].length;n>0&&!t[i][0].isHidden?t[i][0].isFirstNode=!0:n>0&&o.setFirstNodeForHide(e,t[i])},setLastNode:function(e,t){var i=e.data.key.children,n=t[i].length;n>0&&!t[i][0].isHidden?t[i][n-1].isLastNode=!0:n>0&&o.setLastNodeForHide(e,t[i])},setFirstNodeForHide:function(e,t){var i,n,r;for(n=0,r=t.length;r>n&&!(i=t[n]).isFirstNode;n++){if(!i.isHidden&&!i.isFirstNode){i.isFirstNode=!0,o.setNodeLineIcos(e,i);break}i=null}return i},setFirstNodeForShow:function(e,t){var i,n,r,a,s;for(n=0,r=t.length;r>n;n++){if(i=t[n],!a&&!i.isHidden&&i.isFirstNode){a=i;break}if(a||i.isHidden||i.isFirstNode){if(a&&i.isFirstNode){i.isFirstNode=!1,s=i,o.setNodeLineIcos(e,i);break}i=null}else i.isFirstNode=!0,a=i,o.setNodeLineIcos(e,i)}return{new:a,old:s}},setLastNodeForHide:function(e,t){var i,n;for(n=t.length-1;n>=0&&!(i=t[n]).isLastNode;n--){if(!i.isHidden&&!i.isLastNode){i.isLastNode=!0,o.setNodeLineIcos(e,i);break}i=null}return i},setLastNodeForShow:function(e,t){var i,n,r,a;for(n=t.length-1;n>=0;n--){if(i=t[n],!r&&!i.isHidden&&i.isLastNode){r=i;break}if(r||i.isHidden||i.isLastNode){if(r&&i.isLastNode){i.isLastNode=!1,a=i,o.setNodeLineIcos(e,i);break}i=null}else i.isLastNode=!0,r=i,o.setNodeLineIcos(e,i)}return{new:r,old:a}}},data:{initHideForExCheck:function(e,t){t.isHidden&&e.check&&e.check.enable&&(void 0===t._nocheck&&(t._nocheck=!!t.nocheck,t.nocheck=!0),t.check_Child_State=-1,o.repairParentChkClassWithSelf&&o.repairParentChkClassWithSelf(e,t))},initShowForExCheck:function(e,t){if(!t.isHidden&&e.check&&e.check.enable){if(void 0!==t._nocheck&&(t.nocheck=t._nocheck,delete t._nocheck),o.setChkClass){var i=s(t,r.id.CHECK,e);o.setChkClass(e,i,t)}o.repairParentChkClassWithSelf&&o.repairParentChkClassWithSelf(e,t)}}}};e.extend(!0,e.fn.zTree._z,t);var i=e.fn.zTree,n=i._z.tools,r=i.consts,o=i._z.view,a=i._z.data,s=(i._z.event,n.$);a.addInitNode((function(e,t,i,r,o,s,l){"string"==typeof i.isHidden&&(i.isHidden=n.eqs(i.isHidden,"true")),i.isHidden=!!i.isHidden,a.initHideForExCheck(e,i)})),a.addBeforeA((function(e,t,i){})),a.addZTreeTools((function(e,t){t.showNodes=function(t,i){o.showNodes(e,t,i)},t.showNode=function(t,i){t&&o.showNodes(e,[t],i)},t.hideNodes=function(t,i){o.hideNodes(e,t,i)},t.hideNode=function(t,i){t&&o.hideNodes(e,[t],i)};var i=t.checkNode;i&&(t.checkNode=function(e,n,r,o){e&&e.isHidden||i.apply(t,arguments)})}));var l=a.initNode;a.initNode=function(e,t,i,n,r,s,c){var u=(n||a.getRoot(e))[e.data.key.children];a.tmpHideFirstNode=o.setFirstNodeForHide(e,u),a.tmpHideLastNode=o.setLastNodeForHide(e,u),c&&(o.setNodeLineIcos(e,a.tmpHideFirstNode),o.setNodeLineIcos(e,a.tmpHideLastNode)),r=a.tmpHideFirstNode===i,s=a.tmpHideLastNode===i,l&&l.apply(a,arguments),c&&s&&o.clearOldLastNode(e,i,c)};var c=a.makeChkFlag;c&&(a.makeChkFlag=function(e,t){t&&t.isHidden||c.apply(a,arguments)});var u=a.getTreeCheckedNodes;u&&(a.getTreeCheckedNodes=function(e,t,i,n){if(t&&t.length>0){var r=t[0].getParentNode();if(r&&r.isHidden)return[]}return u.apply(a,arguments)});var d=a.getTreeChangeCheckedNodes;d&&(a.getTreeChangeCheckedNodes=function(e,t,i){if(t&&t.length>0){var n=t[0].getParentNode();if(n&&n.isHidden)return[]}return d.apply(a,arguments)});var p=o.expandCollapseSonNode;p&&(o.expandCollapseSonNode=function(e,t,i,n,r){t&&t.isHidden||p.apply(o,arguments)});var h=o.setSonNodeCheckBox;h&&(o.setSonNodeCheckBox=function(e,t,i,n){t&&t.isHidden||h.apply(o,arguments)});var f=o.repairParentChkClassWithSelf;f&&(o.repairParentChkClassWithSelf=function(e,t){t&&t.isHidden||f.apply(o,arguments)})}(e)})?n.apply(t,r):n)||(e.exports=o)}])},7054:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){var r,o=(0,n.getPrefixDataTypeKey)("cacheParams",!0),a={};if(a[e]=t,(0,n.hasCacheKey)(o))if((r=(0,n.getCacheKeyValue)(o)).has(i)){var s=r.get(i);Object.assign(s,a)}else r.set(i,a);else Eui.Cache.set(o,new Map([[i,a]]))};var n=i(3079)},9573:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={setting:i(4797).storeCacheSetting};t.default=n},213:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=function(){r();for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.getHandler.apply(null,t)},t.saveHandler=function(){r();for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.saveHandler.apply(null,t)};var n={saveHandler:function(){},getHandler:function(){}};function r(){n="remote"===Eui.env.customizationMode?i(6813):i(2568)}},2568:(e,t,i)=>{var n;n=i(1044).Z,e.exports=n},1044:(e,t)=>{t.Z=void 0;t.Z={saveHandler:function(e){e()},getHandler:function(e){e({success:!0,data:{result:[]}})}}},6813:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=function(e,t,i){Eui.Comm.postToRemote(t,{"userSetting.clientType":i},(function(t){e(t)}))},t.saveHandler=function(e,t,i){Eui.Comm.postToRemote(i,t,(function(t){Eui.isSuccess(t)&&e(t)}))}},2691:(e,t,i)=>{i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(9573))&&n.__esModule?n:{default:n},o=i(3079),a=i(213);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==s(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===s(r)?r:String(r)),n)}var r}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=Eui.getEnv("ecasMoreURLs")||{};this.actions={get:t.GetUserSettings||"getUserSettings.action",add:t.AddUserSetting||"addUserSetting.action",update:t.UpdateUserSetting||"updateUserSetting.action",delete:t.DeleteUserSetting||"deleteUserSetting.action"},this.clientType=0,this.dataTypes=[]}var t,i;return t=e,(i=[{key:"getAll",value:function(e){var t=this;(0,a.getHandler)((function(i){i&&Eui.isSuccess(i)&&t._analyzeData(i.data.result),e&&e(i)}),t.actions.get,t.clientType)}},{key:"save",value:function(e,t,i){var n=this,r={clientType:n.clientType,setting:"object"===s(t)?JSON.stringify(t):t};"object"===s(e)?(Eui.extend(r,e),e=r.dataType):r.dataType=e;var l=r.groupId,c="".concat(l?"".concat(l,":"):"").concat(e),u=n._isAdd(c),d=Eui.Extra.addPrefixForParam(r,"userSetting"),p=u?n.actions.add:n.actions.update;u&&this.dataTypes.push(c),(0,a.saveHandler)((function(n){i&&!1===i(n)||(0,o.setCustomValue)(t,e)}),d,p)}},{key:"_isAdd",value:function(e){return-1===this.dataTypes.indexOf(e)}},{key:"_analyzeData",value:function(e){var t=this;Eui.Array.each(e,(function(e){var i,n=e.dataType,a=e.groupId;try{i=e.setting?JSON.parse(e.setting):""}catch(e){i={},Eui.Logger.log("error",e)}t.dataTypes.push("".concat(a?"".concat(a,":"):"").concat(n)),r.default.hasOwnProperty(n)?r.default[n].call(null,n,i,a):(0,o.setCustomValue)(i,n,a)}))}}])&&l(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=c},4797:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasCacheSetting=function(){return(0,n.hasCacheKey)((0,n.getPrefixDataTypeKey)("setting"))},t.storeCacheSetting=function(e,t){var r;r=(0,i(4047).Z)(Eui.getEnv("asarMaps")),t&&Eui.extend(r,t),Eui.Setting.batchSet(r);var o=(0,n.getPrefixDataTypeKey)("setting");Eui.Cache.set(o,r)};var n=i(3079)},3079:(e,t)=>{function i(){return Eui.Share.get("activeGroup")||(Eui.Logger.log("warn","Have no active app group selected!"),"")}function n(e,t){var n,r=Eui.addPrefix(e);return void 0!==t&&(Eui.isBoolean(t)?n=i():Eui.isString(t)&&(n=t),n&&(r="".concat(r).concat(Eui.joinSign).concat(n))),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getActiveGroup=i,t.getCacheKeyValue=function(e){return Eui.Cache.get(e)},t.getPrefixDataTypeKey=n,t.hasCacheKey=function(e){return Eui.Cache.has(e)},t.saveData=function(e,t,n,o){var a=Eui.addPrefix(e),s={dataType:e};if(t){var l=o||i();if(!l)return;a="".concat(a,":").concat(l),s.groupId=l}if(Eui.Cache.has(a)){var c=Eui.Cache.get(a);"string"!=typeof c&&(c=r(c,n)),Eui.Customization.save(s,c,(function(){return!1}))}},t.setCustomValue=function(e,t,i){var r=n(t,i);e&&Eui.isObject(e)&&(e=Eui.es6.objToStrMap(e)),r===Eui.addPrefix("navStatus")&&(e.get("M")||e.delete("W"))||Eui.Cache.set(r,e)},t.transformValueType=void 0;var r=function(e,t){return"map"===t?Eui.es6.strMapToJson(e):JSON.stringify(e)};t.transformValueType=r},8887:(e,t,i)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return n()},n=i(242).Z},242:(e,t,i)=>{t.Z=function(){return r.default};var n,r=(n=i(2449))&&n.__esModule?n:{default:n}},8261:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},413:(e,t,i)=>{i(1703),i(7658),t.Z=void 0;var n,r=i(376),o=(n=i(8887))&&n.__esModule?n:{default:n};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var u=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){c(e,t,i[t])}))}return e}({},{},{"ipc:workflow:todo":function(e,t){Eui.Logger.log("info","当前流程代办事项总数: {0}.",t.data.total,!0)},"ipc:interface:status":function(e,t){var i,n=t.data,r=n.url,o=n.action,a=n.message,s=n.ignoreConfirm||"error.user.sl.exit"===a;(null===(i=Eui.service.findPluginByName("loginPlugin"))||void 0===i?void 0:i.relogin)(o,s),Eui.Logger.log("warn","The remote server which url of [{0}] occur {1}",r,a,!0)},"ipc:home:redirectToPage":function(e,t){var i=t.data;Eui.App.redirectToPage(i)},"ipc:home:activeToPage":function(e,t){var i=t.data;Eui.App.activeToPage(i)},"ipc:home:saveDesktopCacheParams":function(){Eui.App.saveDesktopCacheParams()},"ipc:home:openFullscreenPage":function(e,t){var i=t.data,n=i.menu,r=i.scopeId;Eui.App.openFullscreenPage(n,r)},"ipc:home:closeFullscreenPage":function(e,t){var i=t.data.scopeId;Eui.App.closeFullscreenPage(i)},"ipc:ws:subscribe":function(e,t){r.dynamicRegisterWs.apply(void 0,s(t.data))},"ipc:ws:unSubscribe":function(e,t){r.dynamicUnRegisterWs.apply(void 0,s(t.data))},"ipc:home:initCmsd":function(e,t){var i=(0,o.default)();Eui.Cmsd.instance=new i(Eui.Cmsd.target,t.data),Eui.Cmsd.instance.start(t.data)},"ipc:home:sendMessageCmsd":function(e,t){Eui.Cmsd.instance&&Eui.Cmsd.instance.send(t.data.message)},"ipc:home:searchPageBack":function(){Eui.App.searchPageBack()}});t.Z=u},9546:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(6595))&&n.__esModule?n:{default:n},o=Object.assign({},r.default,Eui.Vars.isPopupWindow?i(3941).Z:i(413).Z);t.default=o},3941:(e,t)=>{t.Z=void 0;var i={"ipc:popup:close":function(){window.close()}};t.Z=i},6595:(e,t,i)=>{i(7658),i(1703),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(i(7054));function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var s=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){a(e,t,i[t])}))}return e}({"ipc:save:cacheParams":function(e,t){var i=t.data,r=i.containerId,o=i.loadType,a=void 0===o?"W":o,s=i.params;(0,n.default)(r,s,a)},"ipc:home:conversinglepage":function(e,t){var i=t.data,n=void 0===i?{}:i,r=n.scopeId,o=n.params;Eui.App.coverSinglePage(o,r)},"ipc:home:maximizeTogglePage":function(e,t){var i=t.data;Eui.App.maximizeTogglePage(i)},"ipc:home:openWorkbenchModal":function(e,t){var i=t.data;Eui.App.openWorkbenchWithModal(i)},"ipc:home:cacheWidgetButtonData":function(e,t){var i=t.data,n=void 0===i?{}:i,r=n.scopeId,o=n.data;Eui.App.cacheWidgetButtonData(o,r)},"ipc:workbench:zoom":function(e,t){var i=t.data,n=void 0===i?{}:i,r=n.scopeId,o=n.rata,a=Eui.Processor.observer.getScoperef(r);if(a)if(a.isIframe){var s=a.$scope;Eui.postMessage(s,{rata:o,command:"zoom"})}else Eui.Ipc.send({title:"pagecontent:react:zoom",scopeId:r},o)}},r(i(8261)).default);t.default=s},376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicRegisterWs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"string"===Eui.type(e)&&(e=e.split("|"));var i=Eui.Processor.getWsInstance(t);if(e&&e.length&&i){var n=e.filter((function(e){return-1===i.titles.indexOf(e)}));n.length&&Eui.Ws.register(n,t)}},t.dynamicUnRegisterWs=function(e,t){if("string"===Eui.type(e)&&(e=e.split("|")||[]),e&&e.length){var i=Eui.Processor.observer.subscribers,n=e.filter((function(e){var n=void 0!==t?"client".concat(t,"_").concat(e):e;return!(i.has(n)&&i.get(n).size)}));n.length&&Eui.Ws.unregister(n,t)}}},3938:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=Math.uuidFast();Eui.scopeId=e,Eui.Processor.observer.setScopeRef(e,Eui.Processor.eventEmitter),Eui.Ipc.addSubscribes(r.default,{scopeId:e})};var n,r=(n=i(9546))&&n.__esModule?n:{default:n}},181:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={favorite:!0,notice:!0,user:!0,navbar:!0,workbench:!0,preload:!0,openHistory:!0,setting:!0,netFlowMonitor:!0,tooltipI18n:!0}},7780:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(4797),r={setting:function(){(0,n.hasCacheSetting)()||(Eui.Logger.log("debug","[component:render]: begin to init default setting configs."),(0,n.storeCacheSetting)())}};t.default=r},3633:(e,t,i)=>{i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.afterInitializeSys=function(){var e=[],t=Eui.App.initMaps;Eui.Logger.log("debug","[function:afterInitializeSys] => begin execute initMaps promises.");for(var i=0,n=Object.keys(t);i<n.length;i++){var r=n[i],o=Eui.App.executeAppInit(r);e.push(o)}return Promise.all(e)},t.beforeInitializeSys=function(e){for(var t=[],i=0,r=Object.keys(n.default);i<r.length;i++){var o=r[i];if(Eui.env[o]){Eui.Logger.log("debug","Begin to parse %s queue!",o);var a=Eui.Extra.executeParser(n.default,o,{},e);a instanceof Promise?t.push(a):"array"===Eui.type(a)&&(t=t.concat(a))}}return Promise.all(t)},t.cacheUserMenuDesktopData=function(){var e=[];Eui.Logger.log("debug","[function:cacheUserMenuDesktopData] => begin get menus, desktop datas promises.");for(var t=0,i=Object.entries(r.default);t<i.length;t++){var n=c(i[t],2),o=n[0],a=n[1];if(Eui.env[o]){var s=a.call();e.push(s)}}return Promise.all(e)},t.initComponents=function(){Eui.Instance={};var e=Eui.env,t=e.systemBarControl,i=e.customization;Eui.env.systemBarControl&&Eui.extend(a.default,t),!1===i&&Eui.extend(a.default,{favorite:!1}),Eui.isLogin()||Eui.extend(a.default,{favorite:!1,user:!1});for(var n=0,r=Object.entries(o.default);n<r.length;n++){var s=c(r[n],2),u=s[0],d=s[1];if(Eui.Logger.log("debug","【components】components initilize ".concat(u)),a.default[u]){var p=d.call();"object"===l(p)&&(Eui.Instance[u]=p)}}};var n=s(i(4971)),r=s(i(8829)),o=s(i(7780)),a=s(i(181));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}},1683:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i(7658),i(1703),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=[],n=function(){var t,n,u,d,p=(2,function(e){if(Array.isArray(e))return e}(t=c[l])||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{for(o=(i=i.call(e)).next,0;!(l=(n=o.call(i)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,2);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=p[0],f=p[1],g=f.react,m=f.globalCss,v=void 0===m||m,y=f.initjs,b=void 0===y?[]:y,w=f.preloads,_=f.settingPage,x=Eui.Helper.getContextPath(h);if(!0===g&&("array"!==Eui.type(b)||b.length||(b=["../vendors.async.js","../umi.js"]),v&&(n="".concat(x,"/../umi.css"),u=document.getElementsByTagName("head")[0],(d=document.createElement("link")).type="text/css",d.rel="stylesheet",d.href=n,u.appendChild(d))),"string"===$.type(b)&&(b=[b]),Eui.each(b,(function(t,n){var o=new Promise((function(i,o){if(Eui.env.UseHTMLCacheCoercion){var a="".concat(h,"_").concat(t,"_etag"),s=localStorage.getItem(a),l=s?{headers:{"If-None-Match":s}}:{};Eui.Comm.postToRemote(function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){r(e,t,i[t])}))}return e}({url:"".concat(x,"/").concat(n),dataType:"script",type:"GET",cache:!0},l),(function(){if(e.length>2&&e[2].getResponseHeader){var t=e[2].getResponseHeader("ETag");localStorage.setItem(a,t)}i()}),(function(){o()}))}else Eui.Comm.postToRemote({url:"".concat(x,"/").concat(n),dataType:"script",type:"GET"},(function(){i()}),(function(){o()}))}));i.push(o)})),w&&(a[h]||(a[h]=[]),a[h]=Eui.Array.merge(a[h],w)),_){var C=Eui.type(_);"object"===C?(_.groupId=h,s.push(_)):"array"===C&&_.forEach((function(e){e.groupId=h,s.push(e)}))}},l=0,c=Object.entries(t);l<c.length;l++)n();return Eui.Cache.set("preloadWindows",a),Eui.Cache.set("settingPages",s.map((function(e){var t=Eui.extend(!0,{},e);return t.url=Eui.Helper.getRelativeURL(t.url,t.groupId),t}))),i};var a={},s=[]},7887:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){i(9981)}},9981:()=>{Eui.apply(Eui,{Cmsd:{init:function(e){Eui.Ipc.send("ipc:home:initCmsd",e)},send:function(e){Eui.Ipc.send("ipc:home:sendMessageCmsd",e)}}})},8573:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return new Promise((function(e){var t=new r.default;Eui.Customization=t,Eui.isLogin()||!Eui.isLogin()&&"local"===Eui.getEnv("customizationMode")?t.getAll((function(t){e(t)})):e()}))};var n,r=(n=i(2691))&&n.__esModule?n:{default:n}},8417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=60*parseInt(Eui.Setting.get("heartBeatFreq")||10,10)*1e3;setInterval((function(){"login"===Eui.getEnv("systemStatus")&&(Eui.Processor.log.log("heartbeat send time =>".concat(Eui.Date.format(new Date,"Y-m-d H:i:s"))),$.Comm.postToRemote({url:Eui.env.ecasMoreURLs.RefreshUrl,success:function(e){return Eui.Processor.log.log("heartbeat result =>".concat($.encode(e))),!1}}))}),e)}},4971:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(i(8505)),r=c(i(2061)),o=c(i(8573)),a=c(i(2628)),s=c(i(8417)),l=c(i(7887));function c(e){return e&&e.__esModule?e:{default:e}}var u={customCss:function(){Eui.App.loadCustomCss()},autoLogin:{options:{userInfo:{"user.loginId":"","user.password":"","user.language":"zh-cn"}},handler:function(e,t){var i=(t||{}).userInfo;return Eui.env.userInfo&&Eui.extend(i,Eui.env.userInfo,Eui.env.extraLoginParams||{}),(0,n.default)(i)}},ws:{options:{},handler:function(e,t){var i=t||{},n=Eui.env.ws;return(0,r.default)(n,{scopeId:i.scopeId})}},customization:function(){return(0,o.default)()},ticket:function(){return(0,a.default)()},keepConnect:s.default,useCmsd:l.default};t.default=u},8505:(e,t,i)=>{i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise((function(t,i){Eui.Comm.postToRemote({url:"login.action",async:!1},e,(function(e){if(e.success){var n=e.data;if(Eui.setEnv({systemStatus:"login",loginId:n.user.loginId}),Eui.Share.set("loginId",n.user.loginId),Eui.Share.set("bankId",n.user.bankId),n.user.roles&&n.user.roles.length>0){var r={};$.each(n.user.roles,(function(e,t){var i=t.applCode,n=i.applCode,o=i.rights;r.hasOwnProperty(n)||(r[n]=[]),r[n].push(o)})),Eui.Share.set("roles",r)}t(e)}else i()}))}))}},2628:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return new Promise((function(e,t){Eui.Comm.postToRemote({url:"getTicket.action"},(function(t){t.success&&Eui.Storage.setItem("ticket",t.data.ticket),e()}),(function(){t()}))}))}},2061:(e,t)=>{function i(e){var t=e||{};return t.hasOwnProperty("protocol")||(t.protocol=location.protocol.replace(":","")),t.protocol="https"===t.protocol?"wss":"ws",t.hasOwnProperty("host")||(t.host=location.hostname),t.hasOwnProperty("port")||(t.port=location.port||"80"),"".concat(t.protocol,"://").concat(t.host,":").concat(t.port,"/ws/")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function n(e,n){var r=$.extend({scope:t},function(e){var t=Eui.type(e),n={};return"string"===t?n.url=e:"object"===t?(Eui.extend(!0,n,e),n.hasOwnProperty("url")||(n.url=i(n))):"boolean"===t&&e&&(n.url=i()),n}(e));void 0!==n&&(r.wsIndex=n,r.replyChannel="client".concat(n,"_ipc-message:ws:start")),function(e){e.hasOwnProperty("url")?(Eui.Ws.start(e,(function(e,t){Eui.Logger.log("debug","WebSocket call event, type => ",e.type,"; event name =>",t)})),Eui.Logger.log("debug","WebSocket have started with params => ",e)):Eui.Logger.log("error","please define 'url' parameter.")}(r)}return new Promise((function(t){try{e?"array"!==Eui.type(e)?n(e):e.forEach((function(e,t){n(e,t)})):Eui.Logger.log("error","You have no pass ws server url when start ws server.")}catch(e){}t()}))}},3162:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cacheDesktop=function(e){var t=(0,o.transformDesktopData)(e);Eui.Cache.set("desktopDatas",t)},t.cacheUserDesktop=function(){var e=[];return Eui.Logger.log("debug","【cacheUserDesktop】enter ".concat(Eui.isLogin()," |--| ").concat(Eui.env.desktopService)),new Promise((function(t,i){if(Eui.isLogin()&&"remote"===Eui.env.desktopService)Eui.Comm.postToRemote(Eui.env.ecasMoreURLs.DesktopOptionsUrl,(function(e){Eui.Logger.log("debug","【cacheUserDesktop】remote start ".concat(Eui.env.ecasMoreURLs.DesktopOptionsUrl," |--| response"),e),Eui.isSuccess(e)?(Eui.Logger.log("debug","【cacheUserDesktop】remote end ".concat(Eui.env.ecasMoreURLs.DesktopOptionsUrl," |--| datals"),e.data.result.datals),t(e.data.result.datals)):t([])}),(function(e){i(e)}));else if(Eui.getEnv("debug"))Eui.Logger.log("debug","【cacheUserDesktop】local debug ".concat(Eui.getEnv("debug"))),Eui.Comm.postToRemote({url:"../".concat(Eui.getEnv("localDesktopJson")),method:"get"},(function(e){Eui.Logger.log("debug","【cacheUserDesktop】local debug ".concat(Eui.getEnv("debug")," |--|"),e),t(e)}),(function(e){i(e)}));else{Eui.Logger.log("debug","【cacheUserDesktop】local debug ".concat(!Eui.getEnv("debug")));for(var n=Eui.getEnv("asarMaps")||{},o=0,a=Object.values(n);o<a.length;o++){var s=a[o];e=e.concat((0,r.default)("".concat(s.rootPath,"/data/").concat(Eui.getEnv("localDesktopJson"))))}Eui.Logger.log("debug","【cacheUserDesktop】local debug ".concat(!Eui.getEnv("debug")," |--|"),e),t(e)}}))};var n,r=(n=i(8773))&&n.__esModule?n:{default:n},o=i(5873)},8292:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cacheMenus=function(e){e=Eui.App.beforeRenderMenus(e);var t=(0,r.transformMenuData)(e,"window"),i=(0,r.transformMenuData)(e,"tab");Eui.Cache.set("workbenchMenus",i),Eui.Cache.set("navMenus",t)},t.cacheUserMenu=function(){var e=[];return Eui.Logger.log("debug","【cacheUserMenu】enter ".concat(Eui.isLogin()," |--| ").concat(Eui.env.menuService)),new Promise((function(t,i){if(Eui.isLogin()&&"remote"===Eui.env.menuService)Eui.Comm.postToRemote(Eui.env.ecasMoreURLs.UserInfoUrl,{bankId:Eui.Share.get("bankId")},(function(i){var n;Eui.Logger.log("debug","【cacheUserMenu】remote start ".concat(Eui.env.ecasMoreURLs.UserInfoUrl," |--| response"),i),Eui.isSuccess(i)&&(n=i.data.user.userApplGroups,e=n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(void 0!==e.isClient&&!e.isClient||(e.children=e.menus,delete e.menus,0))}))),Eui.Logger.log("debug","【cacheUserMenu】remote end ".concat(Eui.env.ecasMoreURLs.UserInfoUrl," |--| group"),e),t(e)}),(function(e){i(e)}));else if(Eui.getEnv("debug"))Eui.Logger.log("debug","【cacheUserMenu】local debug ".concat(Eui.getEnv("debug"))),Eui.Comm.postToRemote({url:"../".concat(Eui.getEnv("localMenuJson")),method:"get"},(function(e){Eui.Logger.log("debug","【cacheUserMenu】local debug ".concat(Eui.getEnv("debug")," |--|"),e),t(e)}),(function(e){i(e)}));else{Eui.Logger.log("debug","【cacheUserMenu】local debug ".concat(!Eui.getEnv("debug")));for(var n=Eui.getEnv("asarMaps")||{},r=0,a=Object.values(n);r<a.length;r++){var s=a[r];e=e.concat((0,o.default)("".concat(s.rootPath,"/data/").concat(Eui.getEnv("localMenuJson"))))}Eui.Logger.log("debug","【cacheUserMenu】local debug ".concat(!Eui.getEnv("debug")," |--|"),e),t(e)}}))};var n,r=i(5873),o=(n=i(8773))&&n.__esModule?n:{default:n}},8829:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(8292),r=i(3162),o={menuService:n.cacheUserMenu,desktopService:r.cacheUserDesktop};t.default=o},8773:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(1917).Z;t.default=n},1917:(e,t)=>{t.Z=function(e){var t=[];return Eui.ajax({url:e,async:!1,success:function(e){t=e},error:function(){Eui.Logger.log("warn","please define the json data file in path of '".concat(e,"'."))}}),t}},5873:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.transformDesktopData=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return e.desktopContent?e.desktopContent&&"string"==typeof e.desktopContent&&(e.desktopContent=JSON.parse(e.desktopContent)):e.desktopContent=[],"object"===Eui.type(e.desktopContent)&&Eui.extend(e,e.desktopContent,!0),e.desktopContent=Eui.App.beforeRenderDesktop(e.desktopContent),e}))},t.transformMenuData=function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],c=n;return t.length?t.map((function(t){var u=t.attributes,d=t.active;if(u){var p=t.attributes.client;if(p&&(!p.openMode||p.openMode===i)){var h=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){a(e,t,i[t])}))}return e}({id:t.id,tip:t.tip,text:t.text,originGroupId:t.groupId,isLeaf:!!p.href||!!p.path,saveParams:!!p.saveParams,loadMode:"iframe",singleMode:!!p.singleMode,dropdownShow:!!p.dropdownShow,iconCls:t.iconCls,applCode:t.applCode,showBorder:void 0===p.showBorder||p.showBorder,visible:void 0===p.visible||p.visible,breadTitles:[].concat(r(l),[t.text])},p.appAlias?{applCode:p.appAlias,groupId:p.appAlias,originApplCode:t.applCode}:{applCode:t.applCode,groupId:t.applCode});if(o&&(h.pid=o),!s||"window"!==i&&void 0!==i||(h.tabId=h.id),Object.assign(h,p),h.path&&"component"===h.loadMode&&(window.g_pathRoutes[h.path]?h.component=window.g_pathRoutes[h.path].component:(Eui.Logger.log("warn","menu data path do not match router",h),h.component=window.g_pathRoutes["/exception/404"].component)),h.href&&"remote"!==h.loadMode&&(h.moduleName=h.moduleName||Eui.Extra.getModuleNameFromUrl(p.href)),h.isLeaf){d&&(h.active=d);var f=Eui.Cache.get("leafMenus"),g=Eui.Cache.get("routeMenus"),m=h.id;f.set(m,h),g.set("".concat(h.pid,":").concat(m),h)}t.children&&(Object.assign(h,{children:[],isLeaf:!1}),e(t.children,i,h.children,"".concat(h.pid?"".concat(h.pid,":"):"").concat(h.id),!1,h.breadTitles)),n.push(h)}}else{var v=t.groupId,y={groupId:v,children:[]};v?Object.assign(y,{iconCls:t.icon,text:t.groupName||t.text,firstLevel:!0,id:v}):Object.assign(y,{iconCls:t.iconCls,id:t.id,text:t.text,breadTitles:[].concat(r(l),[t.text])}),o&&(y.pid=o),s&&"window"===i&&(y.tabId=y.id),c.push(y),t.children&&e(t.children,i,y.children,"".concat(y.pid?"".concat(y.pid,":"):"").concat(y.id),!!v,y.breadTitles)}return t})):Eui.Logger.log("warn","The param'type must be a array and length not equal 0 !"),c}},8927:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={initAsarMap:!0,initializeIpcListeners:!0};Object.defineProperty(t,"initAsarMap",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"initializeIpcListeners",{enumerable:!0,get:function(){return l.default}});var r=i(3633);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=i(8292);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=i(3162);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=c(i(1683)),l=c(i(3938));function c(e){return e&&e.__esModule?e:{default:e}}},3384:(e,t,i)=>{var n;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){l(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({"title:subscribe":{options:{channel:"directive",replyChannel:"",title:"",directive:""},handler:function(e,t){var i=this,n=t||{},r=n.title,o=i._getReplyChannelName(n),a=i.getScope(n);a.hasOwnProperty("scopeId")?i.observer.subscribe(a,r,o):i.log.error("You must less pass scopeId when execute '%s' directive.",n.directive)}},"title:unsubscribe":{options:{channel:"directive",directive:"",title:"",replyChannel:""},handler:function(e,t){var i=this,n=t||{},r=i._getReplyChannelName(n),o=n.title,a=[i.getScope(n),o];r&&a.push((function(e,t){this.emit(e,r,{time:new Date,title:t,message:"You have successfully unsubscribe title => ".concat(t,".")})})),i.observer.unsubscribe.apply(i.observer,a)}},"message:send":{options:{title:"",data:{}},handler:function(e,t){var i=t||{};i.title?this.observer.send(i):this.log.error("发送消息指令必须包含:title,data参数.")}},"ws:children:subscribe":{options:{title:"",data:{}},handler:function(e,t){var i=this,n=function(e,t,n){i.titleMapWindows["".concat(e)]||(i.titleMapWindows["".concat(e)]={});var r=i.titleMapWindows["".concat(e)];r["".concat(t,"_").concat(n)]||(r["".concat(t,"_").concat(n)]={webviewId:t,webviewType:n,title:e})};if(this.titleMapWindows){var r=t.title;"string"==typeof r?n(r,t.webviewId,t.webviewType):r.map((function(e){n(e,t.webviewId,t.webviewType)}))}}},"ws:children:unsubscribe":{options:{title:"",data:{}},handler:function(e,t){var i=this,n=function(e,t,n){var r=i.titleMapWindows["".concat(e)];r&&r["".concat(t,"_").concat(n)]&&(r["".concat(t,"_").concat(n)]=null)};if(this.titleMapWindows){var r=t.title;"string"==typeof r?n(r,t.webviewId,t.webviewType):r.map((function(e){n(e,t.webviewId,t.webviewType)}))}}},"scope:clear":function(e,t){var i=(t||{}).scopeId;i?this.observer.destroy(i):this.log.error("The scopeId is undefined when you execute 'scope:clear' command!")},"switch:theme":{options:{theme:"default"},handler:function(e,t){var i,n=(t||{}).theme,r=this.observer.scopeRefs,a=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=o(e))){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}((void 0===r?[]:r).values());try{for(a.s();!(i=a.n()).done;){var s=i.value;s.isIframe&&Eui.postMessage(s.$scope,{theme:n,command:"switch:theme"})}}catch(e){a.e(e)}finally{a.f()}}},"get:cacheParams":{options:{replyChannel:"",directive:"",params:[]},handler:function(e,t){var i,n,r=this,s=t||{},l=r._getReplyChannelName(s),c=r.getScope(s);c.hasOwnProperty("scopeId")?r.observer.emit(c.scopeId,l,(i=Eui).getCacheParams.apply(i,function(e){if(Array.isArray(e))return a(e)}(n=s.params)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||o(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):r.log.error("You must less pass scopeId when execute '%s' directive.",s.directive)}}},((n=i(5309))&&n.__esModule?n:{default:n}).default);t.default=c},1033:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}i(1703),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t||{},n=i.scope||"body";this.$scope=$(n),this.isIframe=void 0!==i.isIframe&&i.isIframe,this.messageList=new WeakMap}var t,i;return t=e,(i=[{key:"on",value:function(e,t){this.$scope.on(e,t)}},{key:"once",value:function(e,t){this.$scope.one(e,t)}},{key:"emit",value:function(e,t){this.isIframe?Eui.postMessage(this.$scope,{command:"ipc:message",channel:e,data:t}):this.$scope.trigger(e,t)}}])&&r(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=o},9035:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Processor",{enumerable:!0,get:function(){return r.default}}),t.default=function(e){return new r.default(e)};var n,r=(n=i(5371))&&n.__esModule?n:{default:n}},1249:(e,t)=>{function i(e,t){return e.forwardDirectives&&-1!==e.forwardDirectives.indexOf(t.directive)&&(!e.excludeChannels||t.title&&-1===e.excludeChannels.indexOf(t.title))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={"ipc-message":function(e,t){var n=this,r=n.directives;if(t&&"object"===$.type(t)){var o=t.directive;if(r.hasOwnProperty(o)){var a=r[o],s=$.type(a),l=window.plus;if(l&&l.webview.isPopWin()&&t.replyChannel){var c=Object.assign({},t);c.webviewType=l.webview.getPopupWinType(),c.webviewId=l.webview.getTargetId(),t.replyChannel.indexOf("ws:message:observe")>-1&&(c.directive="ws:children:subscribe",n.transmit&&i(n,c)&&n.transmit.call(n,c)),t.replyChannel.indexOf("ws:message:unobserve")>-1&&(c.directive="ws:children:unsubscribe",n.transmit&&i(n,c)&&n.transmit.call(n,c))}n.transmit&&i(n,t)&&n.transmit.call(n,t),"function"===s?a.call(n,e,t):"object"===s&&(t=$.extend({},a.options||{},t),a.handler.call(n,e,t))}else Eui.Logger.log("warn","The framework have not release directive: '{0}'.",o,!0)}else Eui.Logger.log("warn","The parameter of 'params' must be a object type and have the property of 'directive'.")}};t.default=n},7826:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(744).Z;t.default=n},4129:e=>{function t(e,t){return t=t||2,(new Array(t+1).join("0")+e).substr(-t,t)}e.exports=function(e,i){if("function"==typeof i)return i(e);var n,r,o=e.date;return i.replace("{level}",e.level).replace("{text}","").replace("{y}",o.getFullYear()).replace("{m}",t(o.getMonth()+1)).replace("{d}",t(o.getDate())).replace("{h}",t(o.getHours())).replace("{i}",t(o.getMinutes())).replace("{s}",t(o.getSeconds())).replace("{ms}",t(o.getMilliseconds(),3)).replace("{z}",(n=o.getTimezoneOffset(),r=Math.abs(n),"".concat((n>=0?"-":"+")+t(Math.floor(r/60)),":").concat(t(r%60))))}},744:(e,t,i)=>{t.Z=void 0;var n=["error","warn","info","verbose","debug","silly"],r=i(3506),o={transport:r,error:a.bind(null,"error"),warn:a.bind(null,"warn"),info:a.bind(null,"info"),verbose:a.bind(null,"verbose"),debug:a.bind(null,"debug"),silly:a.bind(null,"silly"),log:a.bind(null,"info")};function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o,a,s,l,c,u,d=Array.prototype.slice.call(t);o=d.shift(),a=d,"verbose"===o?o="log":"silly"===o&&(o="debug"),!1!==r.level&&(s=r.level,l=o,c=n.indexOf(s),-1===(u=n.indexOf(l))||-1===c||u<=c)&&r(o,a)}t.Z=o},503:e=>{e.exports={context:console,error:console.error,warn:console.warn,info:console.info,verbose:console.verbose,debug:console.debug,silly:console.silly,log:console.log}},3506:(e,t,i)=>{var n=i(503),r=i(4129);function o(e,t){var i=r({level:e,date:new Date},o.format);t[0]="".concat(i," ").concat(t[0]),n[e]?n[e].apply(n.context,t):n.log(t)}o.level="silly",o.format="[{h}:{i}:{s}.{ms}] [{level}] {text}",e.exports=o},3559:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function a(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t||{};i.eventEmitter||Eui.log("error","The eventEmitter must be not null when new Observer instance."),this.log=i.log,this.eventEmitter=i.eventEmitter,this.subscribers=new Map,this.scopeRefs=new Map,this.splitBy=i.splitBy?i.splitBy:"|"}var t,i;return t=e,i=[{key:"subscribe",value:function(e,t,i,n){var r=this,o=r._splitTitles(t),a=[],s=[];o.length&&(o.forEach((function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var l=n[0];if(l){var c={scope:e,channel:i};if(r.subscribers.has(l))r._contains(l,e)?a.push(l):(r.subscribers.get(l).add(c),s.push(l));else{var u=new Set;u.add(c),r.subscribers.set(l,u),s.push(l)}}})),n&&"function"==typeof n&&n.apply(this,Array.prototype.slice.call(arguments,0,-1)),a.length&&r.log.warn("target widget id => %s,channel => %s,repeat to subscribe titles => ",e.scopeId,i,a),s.length&&r.log.silly("target widget id => %s,channel => %s,success to subscribe titles => ",e.scopeId,i,s))}},{key:"unsubscribe",value:function(e,t,i){var n=this,o=n._splitTitles(t),a=[];if(o.length){var s=n.subscribers;o.forEach((function(t){if(s.has(t)){var i,n=s.get(t),o=r(n);try{for(o.s();!(i=o.n()).done;){var l=i.value;l.scope.scopeId===e.scopeId&&(n.delete(l),a.push(t))}}catch(e){o.e(e)}finally{o.f()}}})),i&&"function"==typeof i&&i.apply(this,[e.scopeId,a]),a.length?n.log.debug("render process: id => %s,success to unSubscribe titles => %s.",e.scopeId,a):n.log.warn("render process: id => %s,to unsubscribe any no subscribe titles.",e.scopeId)}}},{key:"emit",value:function(e,t,i){var n=this.getScoperef(e);n&&n.emit(t,i)}},{key:"send",value:function(e){if(e&&"object"===$.type(e)&&e.hasOwnProperty("title")&&e.hasOwnProperty("data")){var t=this,i=t.subscribers,n=e.data,o=e.originalTitle||e.title;if(i.has(o)){var a,s=r(i.get(o));try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.channel,u=e.time||$.util.formatMilliDate(new Date),d=l.scope.scopeId;if(d){if(e.scopeId&&e.scopeId!==d)continue;var p=t.getScoperef(d);if(p){var h={title:e.title,time:u,data:n};e.webviewId&&e.webviewType&&(h.subscriberInfo={webviewId:e.webviewId,webviewType:e.webviewType}),e.originalTitle&&(h.originalTitle=o),p.emit(c,h),t.log.silly("send data to target render div => '%s' successfully,channel => %s,sender time => %s, details => ",l.scope.scopeId,o,u,JSON.stringify(h))}}else t.log.error("scopeId is null when call observer instance send function!")}}catch(e){s.e(e)}finally{s.f()}}}else this.log.error("send to target electron data must be a simple object type,even include title and data property,current data format is:%s.",e)}},{key:"destroy",value:function(e){if(e){this.scopeRefs.has(e)&&this.scopeRefs.delete(e);var t,i=r(this.subscribers.values());try{for(i.s();!(t=i.n()).done;){var n,o=t.value,a=r(o);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.scope.scopeId===e&&o.delete(s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}}}},{key:"setScopeRef",value:function(e,t){this.scopeRefs.has(e)||this.scopeRefs.set(e,t)}},{key:"getScoperef",value:function(e){return this.scopeRefs.has(e)?this.scopeRefs.get(e):(this.log.error("You have no store %s relationship when execute getScoperef function.",e),null)}},{key:"hasSubscribers",value:function(e){return this.subscribers.has(e)&&this.subscribers.get(e).size}},{key:"_contains",value:function(e,t){if(this.subscribers.has(e)){var i,n=r(this.subscribers.get(e).values());try{for(n.s();!(i=n.n()).done;)if(i.value.scope.scopeId===t.scopeId)return!0}catch(e){n.e(e)}finally{n.f()}return!1}return!1}},{key:"_splitTitles",value:function(e){return"array"===$.type(e)?e:e.split(this.splitBy)}}],i&&a(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},5371:(e,t,i)=>{i(1703),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(i(1033)),r=l(i(3559)),o=l(i(3384)),a=l(i(1249)),s=l(i(7826));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===c(r)?r:String(r)),n)}var r}var p=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var l=this,c=t||{};this.log=s.default,c.transmit&&(this.transmit=c.transmit,delete c.transmit),c.bufferTransmitWsMessage&&(this.bufferTransmitWsMessage=c.bufferTransmitWsMessage,delete c.bufferTransmitWsMessage),c.logLevel&&this.log.transport&&this.log.transport.level&&(this.log.transport.level=c.logLevel),this.forwardDirectives=c.forwardDirectives,this.excludeChannels=c.excludeChannels,this.eventEmitter=new n.default(c),this.wsInstance=new Map,this.directives=o.default,this.bufferWsRules=new Set,this.titleMapWindows={};var u=Object.assign(c,{eventEmitter:this.eventEmitter,log:s.default});this.observer=new r.default(u);var d=function(e){i.eventEmitter.on(e,(function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];a.default[e].apply(l,i)}))};for(var p in a.default)d(p)}var t,i;return t=e,i=[{key:"bufferTransmitWsMessage",value:function(e){var t=e.title,i=0,n=this.bufferWsRules;if(n.size){var r,o=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(n.values());try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.test;if("function"==typeof s){if(!0!==s.call(null,t))continue}else if(!s.test(t))continue;i++,a.handler.call(this,e);break}}catch(e){o.e(e)}finally{o.f()}}i||this.sendWsMessage(e)}},{key:"addBufferRule",value:function(e){var t=this,i=Eui.type(e);"array"===i?e.forEach((function(e){t.bufferWsRules.add(e)})):"object"===i&&t.bufferWsRules.add(e)}},{key:"sendWsMessage",value:function(e){this.observer.send(e),Eui.transmitWsMessage&&Eui.transmitWsMessage(e)}},{key:"_getReplyChannelName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.replyChannel||"".concat(e.channel,":").concat(e.directive)}},{key:"_getWsInstanceIndex",value:function(e){return void 0!==e?e:0}},{key:"getWsInstance",value:function(e){return this.wsInstance.get(this._getWsInstanceIndex(e))}},{key:"hasInitializedWs",value:function(e){return this.wsInstance.has(this._getWsInstanceIndex(e))}},{key:"destroyWsInstance",value:function(e){var t=this._getWsInstanceIndex(e),i=this.getWsInstance(t);try{i?(i.destroy(),this.wsInstance.delete(t)):this.log.error("【Exception】An exception occurs, the ws instance object is not created or have been destroyed!")}catch(e){this.log.error("【Exception】An exception occurs,when execute destroyWsInstance function, details:",e.message)}}},{key:"getScope",value:function(e){var t=e||{},i={};return t.hasOwnProperty("scope")?i=t.scope:(t.hasOwnProperty("scopeId")&&(i.scopeId=t.scopeId),t.hasOwnProperty("$scope")&&(i.$scope=t.$scope),t.hasOwnProperty("eventEmitter")&&(i.eventEmitter=t.eventEmitter)),i}}],i&&d(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=p},147:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}i(1703),i(7658),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.WSStatus=t.MessageTitle=t.MessageResult=t.CloseCode=void 0;var r,o=(r=i(7826))&&r.__esModule?r:{default:r};function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function l(e,t,i){return(t=d(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,i){return t&&c(e.prototype,t),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h={NORMAL:1e3,GOING_AWAY:1001,PROTOCOL_ERROR:1002,UNSUPPORTED_DATA:1003,NO_STATUS_RECEIVED:1005,ABNORMAL_CLOSURE:1006,INVALID_FRAME_PAYLOAD:1007,POLICY_VIOLATION:1008,INTERNAL_ERROR:1011};t.CloseCode=h;var f={connect:"webnet:connect",close:"webnet:close",error:"webnet:onerror",message:"webnet:message"};t.MessageTitle=f;var g={UNKNOWN:null,CONNECTING:WebSocket.CONNECTING,CLOSING:WebSocket.CLOSING,CLOSED:WebSocket.CLOSED,OPEN:WebSocket.OPEN};t.WSStatus=g;var m=u((function e(t){p(this,e),this.reason=t.reason?t.code:"",this.code=t.code?t.code:0,this.status=t.status}));function v(e,t){var i=t.reason,n=void 0===i?"":i,r=t.code,o=void 0===r?0:r,a=t.status,s=new m({reason:n,code:o,status:void 0===a?g.CLOSED:a});Eui.Ipc.send(e,s)}t.MessageResult=m;var y=function(){function e(t){p(this,e),this.defaults={url:"",curlIndex:0,retryInterval:3e3,autoConnectOnNoNetwork:!0,titles:[],loseTitles:[],joinBy:"/",registerDirective:"#A:",unregisterDirective:"#D:",successRegisterBody:"#",formatter:"{y}-{m}-{d} {h}:{i}:{s}:{ms}",pingInterval:2e4};var i,n={};t&&"object"===$.type(t)?Object.assign(n,this.defaults,t):"string"===$.type(t)&&(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){l(e,t,i[t])}))}return e}({},n,this.defaults,{url:t})),this.log=o.default,this._retryConnectTimer=null,this._events={},Object.assign(this,n),this.url&&"string"===$.type(this.url)&&(this.url=this.url.split(";")),Eui.env&&Eui.env.wsLoadBalance&&this.url.length>1&&(this.curlIndex=(i=this.url.length,Math.floor(Math.random()*i)),this.curlIndex>=this.url.length&&(this.curlIndex=0));var r=this;r.pingTimer=null,r.listeners={open:function(){if(r.log.info("[webSocket:event:open]: success to connect webSocket =>",r.fullUrl),r._events.open){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];$.pass(r._events.open,t)()}r.sendConnectMessage(r.client.readyState),r._startPingTimer()},message:function(e){r.lastMsgTime=Date.now();var t=e.data;if(r.log.silly("[webSocket:event:message:response]: the message package not opened =>",t),$.String.startsWith(t,r.successRegisterBody))r.log.info("[webSocket:event:message:status]: received message => [%s] from server.",t);else{var i=t.match(/(^.+?):/)[1],n=t.substr(i.length+1),o=(new Date).getTime();if(r.log.debug("[webSocket:event:message:package]: the server return a content: title => [%s],time => %s, body length =>",i,o,n.length),r._events.message){var a={title:i,data:n,time:o};void 0!==r.wsIndex&&(a.originalTitle="client".concat(r.wsIndex,"_").concat(i)),$.pass(r._events.message,[a])()}}r._startPingTimer()},close:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(window.ActiveXObject||"ActiveXObject"in window)r.log.info("[webSocket:event:close]: the webSocket have closed => %s,current readyState => %s, code => ",r.fullUrl,this.readyState);else{var n=t[0].code;r.log.info("[webSocket:event:close]: the webSocket have closed => %s,current readyState => %s, code => ",r.fullUrl,this.readyState,n)}r.removeAllEvents(),r._clearAllTimers();var o=t[0].code,a=r.client.readyState;r.sendCloseMessage(o,a),r.client=null,r._events.close&&$.pass(r._events.close,t)(),r.autoConnectOnNoNetwork&&r._retryConnect()},error:function(){if(r.log.error("[webSocket:event:error]: webSocket appear error!"),r._clearAllTimers(),r._events.error){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];$.pass(r._events.error,t)()}}}}return u(e,[{key:"sendCloseMessage",value:function(e,t){var i="webnet 异常关闭";e===h.NO_STATUS_RECEIVED&&(i="webnet 正常关闭"),v(f.close,{code:e,status:t,message:i})}},{key:"sendConnectMessage",value:function(e){v(f.connect,{status:e})}},{key:"connect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t._clearRetryConnectTimer(),t._events=e,t.fullUrl=t.url[t.curlIndex]+t.titles.concat(t.loseTitles).join(t.joinBy),t.client&&(t.log.warn("have existed a webSocket connection,readyState => %d closing ...",t.client.readyState),t.client.close(),t.client=null);var i=new WebSocket(t.fullUrl);t.client=i,t.addEvents()}},{key:"addEvents",value:function(){var e=this,t=e.listeners;if(e.client)for(var i=0,n=Object.entries(t);i<n.length;i++){var r=a(n[i],2),o=r[0],s=r[1];e.client.addEventListener(o,s)}}},{key:"removeAllEvents",value:function(){var e=this,t=e.listeners;if(e.client)for(var i=0,n=Object.entries(t);i<n.length;i++){var r=a(n[i],2),o=r[0],s=r[1];e.client.removeEventListener(o,s)}}},{key:"destroy",value:function(){this.client&&this.client.readyState!==WebSocket.CLOSED?this.close():(this._clearAllTimers(),this.log.warn("[webSocket:warn]: webSocket may be not instantiate or not connect when ready to close!"))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.NO_STATUS_RECEIVED;this.client.readyState===WebSocket.OPEN&&(this._clearAllTimers(),window.ActiveXObject||"ActiveXObject"in window?this.listeners.close({code:e}):this.client.close())}},{key:"send",value:function(e,t){var i=this;i.log.info("[webSocket:send]: webSocket client try to send message => {%s} to server.",e),i.client&&i.client.readyState===WebSocket.OPEN?(i.client.send(e,(function(e){e&&i.log.error("[webSocket:send:error]: websocket client send data to server, occur exception =>",e)})),t&&t()):(i.log.warn("[webSocket:send:exception]: webSocket client failure to send data to server,because it's not connected!"),t&&t("webSocket not connect!"))}},{key:"register",value:function(e){var t=this,i=t.titles,n="array"===$.type(e)?e:[e];if(t.log.debug("[webSocket:title:register]: application function register titles =>",n),$.Array.union(i,n).length!==t.titles.length){var r=[],o=[];(r=$.Array.difference(n,i)).length<n.length&&(o=$.Array.difference(n,r),t.log.debug("[webSocket:title:repeat]: these titles of which repeat to registered, will be ignored =>",o));var a=Eui.Array.unique(r.concat(t.loseTitles));t.send(t.registerDirective+a.join(t.joinBy),(function(e){e?t.loseTitles=t.loseTitles.concat(r):(t.titles=i.concat(a),t.loseTitles=[]),t.log.silly("[webSocket:title:allCurrent]: current all titles => %s of global registered.",t.titles)}))}else t.log.warn("[webSocket:title:allRepeat]: please not repeat to register titles => [%s] ,because all of them are ready existed.",n)}},{key:"unregister",value:function(e){var t=this,i=t.titles,n="array"===$.type(e)?e:[e];t.log.debug("[webSocket:title:unregister]: application function unregister titles =>",n);var r=[];if(0!==(r=$.Array.intersect(n,i)).length){t.titles=$.Array.difference(i,n);var o=r.join(t.joinBy);t.send(t.unregisterDirective+o),t.log.silly("[webSocket:title:allCurrent]: current all titles => %s of global registered.",t.titles)}else t.log.debug("[webSocket:title:unregister]: the titles of these which you unregister are't existed =>",n)}},{key:"_heartBeat",value:function(){this.send("ping"),this._startPingTimer()}},{key:"_clearAllTimers",value:function(){this._clearRetryConnectTimer(),this._clearPingTimer()}},{key:"_clearRetryConnectTimer",value:function(){this._retryConnectTimer&&(clearTimeout(this._retryConnectTimer),this._retryConnectTimer=null)}},{key:"_clearPingTimer",value:function(){this.pingTimer&&(clearTimeout(this.pingTimer),this.pingTimer=null)}},{key:"_retryConnect",value:function(){var e=this,t=e.curlIndex;e._clearRetryConnectTimer(),e.curlIndex=t+1<e.url.length?++t:0,e.log.warn("[webSocket:retry]: WebSocket will retry to connect => %s after %s ms.",e.url[e.curlIndex],e.retryInterval),e._retryConnectTimer=setTimeout((function(){e.connect(e._events)}),e.retryInterval)}},{key:"_startPingTimer",value:function(){var e=this;e._clearPingTimer(),e.log.silly("[webSocket:ping]: WebSocket will send heartbeat message after %s ms",e.pingInterval),e.pingTimer=setTimeout((function(){e.log.silly("[webSocket:ping]: WebSocket send heartbeat message ."),e._heartBeat()}),e.pingInterval)}}]),e}();t.default=y},5309:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(147))&&n.__esModule?n:{default:n},o={"ws:start":{options:{url:"",titles:[],decode:!0,events:{message:function(e,t,i){if((t||{}).decode)try{i.data=JSON.parse(i.data)}catch(e){this.log.silly("transform data string to object occur exception => %s, response data => %s.",e.message,i.data)}i&&this.bufferTransmitWsMessage(i)},open:function(e,t,i){var n=t||{},r=this._getReplyChannelName(n);this.eventEmitter.emit(r,"open",i)},error:function(e,t,i){var n=t||{},r=this._getReplyChannelName(n);this.eventEmitter.emit(r,"error",i)},close:function(e,t,i){var n=t||{},r=this._getReplyChannelName(n);this.eventEmitter.emit(r,"close",i)}}},handler:function(e,t){var i=this,n=t||{},o=n.url,a={},s=n.wsIndex||0;if(i.hasInitializedWs(s)&&i.destroyWsInstance(s),o){var l=new r.default(n);i.wsInstance.set(s,l);var c=n.events;for(var u in c)a[u]=Eui.pass(c[u],[e,n],i);l.connect(a)}else i.log.error("【Error】WS service startup failed, url parameters cannot be empty!")}},"ws:stop":function(e,t){var i=t||{};this.destroyWsInstance(i.wsIndex)},"ws:register":{options:{title:""},handler:function(e,t){var i=t||{},n=i.title;if(n){var r=this,o=r.getWsInstance(i.wsIndex);if(o){var a=r.observer._splitTitles(n);o.register(a)}else r.log.error("wsInstance index = ".concat(i.wsIndex)),r.log.error("[ws:unregister:error]:webScoket have not instance, you can't register title now.")}}},"ws:unregister":{options:{title:""},handler:function(e,t){var i=t||{},n=i.title;if(n){var r=this,o=r.getWsInstance(i.wsIndex);if(o){var a=r.observer._splitTitles(n);o.unregister(a)}else r.log.error("[ws:unregister:error]: webScoket have not instance, you can't unresiger title.")}}},"ws:send":function(e,t){var i=t||{},n=i.content,r=this.getWsInstance(i.wsIndex);n&&r?r.send(n):this.log.error("[ws:send:error]:webScoket have not instance or you send no content body.")}};t.default=o},2512:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>X}),i(7658),i(1703);var n=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function r(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var o=Array.isArray;function a(e){return null!==e&&"object"==typeof e}function s(e){return"string"==typeof e}var l=Object.prototype.toString,c="[object Object]";function u(e){return l.call(e)===c}function d(e){return null==e}function p(e){return"function"==typeof e}function h(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i=null,n=null;return 1===e.length?a(e[0])||o(e[0])?n=e[0]:"string"==typeof e[0]&&(i=e[0]):2===e.length&&("string"==typeof e[0]&&(i=e[0]),(a(e[1])||o(e[1]))&&(n=e[1])),{locale:i,params:n}}function f(e){return JSON.parse(JSON.stringify(e))}function g(e,t){return!!~e.indexOf(t)}var m=Object.prototype.hasOwnProperty;function v(e,t){return m.call(e,t)}function y(e){for(var t=arguments,i=Object(e),n=1;n<arguments.length;n++){var r=t[n];if(null!=r){var o=void 0;for(o in r)v(r,o)&&(a(r[o])?i[o]=y(i[o],r[o]):i[o]=r[o])}}return i}function b(e,t){if(e===t)return!0;var i=a(e),n=a(t);if(!i||!n)return!i&&!n&&String(e)===String(t);try{var r=o(e),s=o(t);if(r&&s)return e.length===t.length&&e.every((function(e,i){return b(e,t[i])}));if(r||s)return!1;var l=Object.keys(e),c=Object.keys(t);return l.length===c.length&&l.every((function(i){return b(e[i],t[i])}))}catch(e){return!1}}var w={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n){if(e.i18n instanceof V){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=y(t,JSON.parse(e))})),Object.keys(t).forEach((function(i){e.i18n.mergeLocaleMessage(i,t[i])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(u(e.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V?this.$root.$i18n:null;if(i&&(e.i18n.root=this.$root,e.i18n.formatter=i.formatter,e.i18n.fallbackLocale=i.fallbackLocale,e.i18n.formatFallbackMessages=i.formatFallbackMessages,e.i18n.silentTranslationWarn=i.silentTranslationWarn,e.i18n.silentFallbackWarn=i.silentFallbackWarn,e.i18n.pluralizationRules=i.pluralizationRules,e.i18n.preserveDirectiveContent=i.preserveDirectiveContent),e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){n=y(n,JSON.parse(e))})),e.i18n.messages=n}catch(e){}var r=e.i18n.sharedMessages;r&&u(r)&&(e.i18n.messages=y(e.i18n.messages,r)),this._i18n=new V(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof V&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof V||u(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof V)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}},_={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var i=t.data,n=t.parent,r=t.props,o=t.slots,a=n.$i18n;if(a){var s=r.path,l=r.locale,c=r.places,u=o(),d=a.i(s,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var i=t?function(e){return Array.isArray(e)?e.reduce($,{}):Object.assign({},e)}(t):{};if(!e)return i;var n=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(C);return e.reduce(n?x:$,i)}(u.default,c):u),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,i,d):d}}};function x(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function $(e,t,i){return e[i]=t,e}function C(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var k,S={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var i=t.props,r=t.parent,o=t.data,l=r.$i18n;if(!l)return null;var c=null,u=null;s(i.format)?c=i.format:a(i.format)&&(i.format.key&&(c=i.format.key),u=Object.keys(i.format).reduce((function(e,t){var r;return g(n,t)?Object.assign({},e,((r={})[t]=i.format[t],r)):e}),null));var d=i.locale||l.locale,p=l._ntp(i.value,d,c,u),h=p.map((function(e,t){var i,n=o.scopedSlots&&o.scopedSlots[e.type];return n?n(((i={})[e.type]=e.value,i.index=t,i.parts=p,i)):e.value})),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?e(f,{attrs:o.attrs,class:o.class,staticClass:o.staticClass},h):h}};function E(e,t,i){T(0,i)&&I(e,t,i)}function j(e,t,i,n){if(T(0,i)){var r=i.context.$i18n;(function(e,t){var i=t.context;return e._locale===i.$i18n.locale})(e,i)&&b(t.value,t.oldValue)&&b(e._localeMessage,r.getLocaleMessage(r.locale))||I(e,t,i)}}function D(e,t,i,n){if(i.context){var o=i.context.$i18n||{};t.modifiers.preserve||o.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else r("Vue instance does not exists in VNode context")}function T(e,t){var i=t.context;return i?!!i.$i18n||(r("VueI18n instance does not exists in Vue instance"),!1):(r("Vue instance does not exists in VNode context"),!1)}function I(e,t,i){var n,o,a=function(e){var t,i,n,r;return s(e)?t=e:u(e)&&(t=e.path,i=e.locale,n=e.args,r=e.choice),{path:t,locale:i,args:n,choice:r}}(t.value),l=a.path,c=a.locale,d=a.args,p=a.choice;if(l||c||d)if(l){var h=i.context;e._vt=e.textContent=null!=p?(n=h.$i18n).tc.apply(n,[l,p].concat(A(c,d))):(o=h.$i18n).t.apply(o,[l].concat(A(c,d))),e._locale=h.$i18n.locale,e._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}else r("`path` is required in v-t directive");else r("value type not supported")}function A(e,t){var i=[];return e&&i.push(e),t&&(Array.isArray(t)||u(t))&&i.push(t),i}function O(e){O.installed=!0,(k=e).version&&Number(k.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var i=[],n=arguments.length-2;n-- >0;)i[n]=arguments[n+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(i))},e.prototype.$te=function(e,t){var i=this.$i18n;return i._te(e,i.locale,i._getMessages(),t)},e.prototype.$d=function(e){for(var t,i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(i))},e.prototype.$n=function(e){for(var t,i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(i))}}(k),k.mixin(w),k.directive("t",{bind:E,update:j,unbind:D}),k.component(_.name,_),k.component(S.name,S),k.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var N=function(){this._caches=Object.create(null)};N.prototype.interpolate=function(e,t){if(!t)return[e];var i=this._caches[e];return i||(i=function(e){for(var t=[],i=0,n="";i<e.length;){var r=e[i++];if("{"===r){n&&t.push({type:"text",value:n}),n="";var o="";for(r=e[i++];void 0!==r&&"}"!==r;)o+=r,r=e[i++];var a="}"===r,s=P.test(o)?"list":a&&M.test(o)?"named":"unknown";t.push({value:o,type:s})}else"%"===r?"{"!==e[i]&&(n+=r):n+=r}return n&&t.push({type:"text",value:n}),t}(e),this._caches[e]=i),function(e,t){var i=[],n=0,r=Array.isArray(t)?"list":a(t)?"named":"unknown";if("unknown"===r)return i;for(;n<e.length;){var o=e[n];switch(o.type){case"text":i.push(o.value);break;case"list":i.push(t[parseInt(o.value,10)]);break;case"named":"named"===r&&i.push(t[o.value])}n++}return i}(i,t)};var P=/^(?:\d)+/,M=/^(?:\w)+/,F=[];F[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},F[1]={ws:[1],".":[2],"[":[4],eof:[7]},F[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},F[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},F[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},F[5]={"'":[4,0],eof:8,else:[5,0]},F[6]={'"':[4,0],eof:8,else:[6,0]};var R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function L(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}var q=function(){this._cache=Object.create(null)};q.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,i,n,r,o,a,s,l=[],c=-1,u=0,d=0,p=[];function h(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,n="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==i&&(l.push(i),i=void 0)},p[0]=function(){void 0===i?i=n:i+=n},p[2]=function(){p[0](),d++},p[3]=function(){if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===i)return!1;if(!1===(i=function(e){var t,i,n,r=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(n=r,R.test(n)?(i=(t=r).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==i&&39!==i?t:t.slice(1,-1):"*"+r)}(i)))return!1;p[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!h()){if(r=L(t),8===(o=(s=F[u])[r]||s.else||8))return;if(u=o[0],(a=p[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===u)return l}}(e),t&&(this._cache[e]=t)),t||[]},q.prototype.getPathValue=function(e,t){if(!a(e))return null;var i=this.parsePath(t);if(0===i.length)return null;for(var n=i.length,r=e,o=0;o<n;){var s=r[i[o]];if(void 0===s)return null;r=s,o++}return r};var H,z=/<\/?[\w\s="/.':;#-\/]+>/,B=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,G=/^@(?:\.([a-z]+))?:/,U=/[()]/g,W={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Y=new N,V=function(e){var t=this;void 0===e&&(e={}),!k&&"undefined"!=typeof window&&window.Vue&&O(window.Vue);var i=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),r=e.messages||{},o=e.dateTimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Y,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new q,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,i){var n,r,o=Object.getPrototypeOf(t);return o&&o.getChoiceIndex?o.getChoiceIndex.call(t,e,i):t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,i]):(n=e,r=i,n=Math.abs(n),2===r?n?n>1?1:0:1:n?Math.min(n,2):0)},this._exist=function(e,i){return!(!e||!i||d(t._path.getPathValue(e,i))&&!e[i])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:i,fallbackLocale:n,messages:r,dateTimeFormats:o,numberFormats:a})},K={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};V.prototype._checkLocaleMessage=function(e,t,i){var n=function(e,t,i,a){if(u(i))Object.keys(i).forEach((function(r){var o=i[r];u(o)?(a.push(r),a.push("."),n(e,t,o,a),a.pop(),a.pop()):(a.push(r),n(e,t,o,a),a.pop())}));else if(o(i))i.forEach((function(i,r){u(i)?(a.push("["+r+"]"),a.push("."),n(e,t,i,a),a.pop(),a.pop()):(a.push("["+r+"]"),n(e,t,i,a),a.pop())}));else if(s(i)&&z.test(i)){var l="Detected HTML in message '"+i+"' of keypath '"+a.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?r(l):"error"===e&&function(e,t){"undefined"!=typeof console&&console.error("[vue-i18n] "+e)}(l)}};n(t,e,i,[])},V.prototype._initVM=function(e){var t=k.config.silent;k.config.silent=!0,this._vm=new k({data:e}),k.config.silent=t},V.prototype.destroyVM=function(){this._vm.$destroy()},V.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},V.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}(this._dataListeners,e)},V.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)k.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},V.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},V.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},K.vm.get=function(){return this._vm},K.messages.get=function(){return f(this._getMessages())},K.dateTimeFormats.get=function(){return f(this._getDateTimeFormats())},K.numberFormats.get=function(){return f(this._getNumberFormats())},K.availableLocales.get=function(){return Object.keys(this.messages).sort()},K.locale.get=function(){return this._vm.locale},K.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},K.fallbackLocale.get=function(){return this._vm.fallbackLocale},K.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},K.formatFallbackMessages.get=function(){return this._formatFallbackMessages},K.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},K.missing.get=function(){return this._missing},K.missing.set=function(e){this._missing=e},K.formatter.get=function(){return this._formatter},K.formatter.set=function(e){this._formatter=e},K.silentTranslationWarn.get=function(){return this._silentTranslationWarn},K.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},K.silentFallbackWarn.get=function(){return this._silentFallbackWarn},K.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},K.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},K.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},K.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},K.warnHtmlInMessage.set=function(e){var t=this,i=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,i!==e&&("warn"===e||"error"===e)){var n=this._getMessages();Object.keys(n).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])}))}},K.postTranslation.get=function(){return this._postTranslation},K.postTranslation.set=function(e){this._postTranslation=e},V.prototype._getMessages=function(){return this._vm.messages},V.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},V.prototype._getNumberFormats=function(){return this._vm.numberFormats},V.prototype._warnDefault=function(e,t,i,n,r,o){if(!d(i))return i;if(this._missing){var a=this._missing.apply(null,[e,t,n,r]);if(s(a))return a}if(this._formatFallbackMessages){var l=h.apply(void 0,r);return this._render(t,o,l.params,t)}return t},V.prototype._isFallbackRoot=function(e){return!e&&!d(this._root)&&this._fallbackRoot},V.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},V.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},V.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},V.prototype._interpolate=function(e,t,i,n,r,a,l){if(!t)return null;var c,h=this._path.getPathValue(t,i);if(o(h)||u(h))return h;if(d(h)){if(!u(t))return null;if(!s(c=t[i])&&!p(c))return null}else{if(!s(h)&&!p(h))return null;c=h}return s(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,t,c,n,"raw",a,l)),this._render(c,r,a,i)},V.prototype._link=function(e,t,i,n,r,a,s){var l=i,c=l.match(B);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],p=d.match(G),h=p[0],f=p[1],m=d.replace(h,"").replace(U,"");if(g(s,m))return l;s.push(m);var v=this._interpolate(e,t,m,n,"raw"===r?"string":r,"raw"===r?void 0:a,s);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,m,n,r,a)}v=this._warnDefault(e,m,v,n,o(a)?a:[a],r),this._modifiers.hasOwnProperty(f)?v=this._modifiers[f](v):W.hasOwnProperty(f)&&(v=W[f](v)),s.pop(),l=v?l.replace(d,v):l}return l},V.prototype._createMessageContext=function(e){var t=o(e)?e:[],i=a(e)?e:{};return{list:function(e){return t[e]},named:function(e){return i[e]}}},V.prototype._render=function(e,t,i,n){if(p(e))return e(this._createMessageContext(i));var r=this._formatter.interpolate(e,i,n);return r||(r=Y.interpolate(e,i,n)),"string"!==t||s(r)?r:r.join("")},V.prototype._appendItemToChain=function(e,t,i){var n=!1;return g(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),i&&i[t]&&(n=i[t]))),n},V.prototype._appendLocaleToChain=function(e,t,i){var n,r=t.split("-");do{var o=r.join("-");n=this._appendItemToChain(e,o,i),r.splice(-1,1)}while(r.length&&!0===n);return n},V.prototype._appendBlockToChain=function(e,t,i){for(var n=!0,r=0;r<t.length&&"boolean"==typeof n;r++){var o=t[r];s(o)&&(n=this._appendLocaleToChain(e,o,i))}return n},V.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var i=this._localeChainCache[e];if(!i){t||(t=this.fallbackLocale),i=[];for(var n,r=[e];o(r);)r=this._appendBlockToChain(i,r,t);(r=s(n=o(t)?t:a(t)?t.default?t.default:null:t)?[n]:n)&&this._appendBlockToChain(i,r,null),this._localeChainCache[e]=i}return i},V.prototype._translate=function(e,t,i,n,r,o,a){for(var s,l=this._getLocaleChain(t,i),c=0;c<l.length;c++){var u=l[c];if(!d(s=this._interpolate(u,e[u],n,r,o,a,[n])))return s}return null},V.prototype._t=function(e,t,i,n){for(var r,o=[],a=arguments.length-4;a-- >0;)o[a]=arguments[a+4];if(!e)return"";var s,l=h.apply(void 0,o);this._escapeParameterHtml&&(l.params=(null!=(s=l.params)&&Object.keys(s).forEach((function(e){"string"==typeof s[e]&&(s[e]=s[e].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))})),s));var c=l.locale||t,u=this._translate(i,c,this.fallbackLocale,e,n,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(o))}return u=this._warnDefault(c,e,u,n,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,e)),u},V.prototype.t=function(e){for(var t,i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(i))},V.prototype._i=function(e,t,i,n,r){var o=this._translate(i,t,this.fallbackLocale,e,n,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,o,n,[r],"raw")},V.prototype.i=function(e,t,i){return e?(s(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,i)):""},V.prototype._tc=function(e,t,i,n,r){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!e)return"";void 0===r&&(r=1);var l={count:r,n:r},c=h.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[e,t,i,n].concat(a)),r)},V.prototype.fetchChoice=function(e,t){if(!e||!s(e))return null;var i=e.split("|");return i[t=this.getChoiceIndex(t,i.length)]?i[t].trim():e},V.prototype.tc=function(e,t){for(var i,n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return(i=this)._tc.apply(i,[e,this.locale,this._getMessages(),null,t].concat(n))},V.prototype._te=function(e,t,i){for(var n=[],r=arguments.length-3;r-- >0;)n[r]=arguments[r+3];var o=h.apply(void 0,n).locale||t;return this._exist(i[o],e)},V.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},V.prototype.getLocaleMessage=function(e){return f(this._vm.messages[e]||{})},V.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},V.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,y({},this._vm.messages[e]||{},t))},V.prototype.getDateTimeFormat=function(e){return f(this._vm.dateTimeFormats[e]||{})},V.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},V.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,y(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},V.prototype._clearDateTimeFormat=function(e,t){for(var i in t){var n=e+"__"+i;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},V.prototype._localizeDateTime=function(e,t,i,n,r){for(var o=t,a=n[o],s=this._getLocaleChain(t,i),l=0;l<s.length;l++){var c=s[l];if(o=c,!d(a=n[c])&&!d(a[r]))break}if(d(a)||d(a[r]))return null;var u=a[r],p=o+"__"+r,h=this._dateTimeFormatters[p];return h||(h=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(o,u)),h.format(e)},V.prototype._d=function(e,t,i){if(!i)return new Intl.DateTimeFormat(t).format(e);var n=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),i);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,i,t)}return n||""},V.prototype.d=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this.locale,r=null;return 1===t.length?s(t[0])?r=t[0]:a(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&(s(t[0])&&(r=t[0]),s(t[1])&&(n=t[1])),this._d(e,n,r)},V.prototype.getNumberFormat=function(e){return f(this._vm.numberFormats[e]||{})},V.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},V.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,y(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},V.prototype._clearNumberFormat=function(e,t){for(var i in t){var n=e+"__"+i;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},V.prototype._getNumberFormatter=function(e,t,i,n,r,o){for(var a=t,s=n[a],l=this._getLocaleChain(t,i),c=0;c<l.length;c++){var u=l[c];if(a=u,!d(s=n[u])&&!d(s[r]))break}if(d(s)||d(s[r]))return null;var p,h=s[r];if(o)p=new Intl.NumberFormat(a,Object.assign({},h,o));else{var f=a+"__"+r;(p=this._numberFormatters[f])||(p=this._numberFormatters[f]=new Intl.NumberFormat(a,h))}return p},V.prototype._n=function(e,t,i,n){if(!V.availabilities.numberFormat)return"";if(!i)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),i,n),o=r&&r.format(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:i,locale:t},n))}return o||""},V.prototype.n=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var r=this.locale,o=null,l=null;return 1===t.length?s(t[0])?o=t[0]:a(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),l=Object.keys(t[0]).reduce((function(e,i){var r;return g(n,i)?Object.assign({},e,((r={})[i]=t[0][i],r)):e}),null)):2===t.length&&(s(t[0])&&(o=t[0]),s(t[1])&&(r=t[1])),this._n(e,r,o,l)},V.prototype._ntp=function(e,t,i,n){if(!V.availabilities.numberFormat)return[];if(!i)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),i,n),o=r&&r.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,i,n)}return o||[]},Object.defineProperties(V.prototype,K),Object.defineProperty(V,"availabilities",{get:function(){if(!H){var e="undefined"!=typeof Intl;H={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return H}}),V.install=O,V.version="8.22.2";const X=V},2569:(e,t,i)=>{function n(e,t){for(var i in t)e[i]=t[i];return e}i(1703),i(7658);var r=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(r,o).replace(a,",")};function l(e){try{return decodeURIComponent(e)}catch(e){}return e}var c=function(e){return null==e||"object"==typeof e?e:String(e)};function u(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var i=e.replace(/\+/g," ").split("="),n=l(i.shift()),r=i.length>0?l(i.join("=")):null;void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var i=e[t];if(void 0===i)return"";if(null===i)return s(t);if(Array.isArray(i)){var n=[];return i.forEach((function(e){void 0!==e&&(null===e?n.push(s(t)):n.push(s(t)+"="+s(e)))})),n.join("&")}return s(t)+"="+s(i)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function h(e,t,i,n){var r=n&&n.options.stringifyQuery,o=t.query||{};try{o=f(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,r),matched:e?m(e):[]};return i&&(a.redirectedFrom=v(i,r)),Object.freeze(a)}function f(e){if(Array.isArray(e))return e.map(f);if(e&&"object"==typeof e){var t={};for(var i in e)t[i]=f(e[i]);return t}return e}var g=h(null,{path:"/"});function m(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function v(e,t){var i=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;return void 0===r&&(r=""),(i||"/")+(t||d)(n)+r}function y(e,t,i){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&(i||e.hash===t.hash&&b(e.query,t.query)):!(!e.name||!t.name)&&e.name===t.name&&(i||e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var i=Object.keys(e).sort(),n=Object.keys(t).sort();return i.length===n.length&&i.every((function(i,r){var o=e[i];if(n[r]!==i)return!1;var a=t[i];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?b(o,a):String(o)===String(a)}))}function w(e){for(var t=0;t<e.matched.length;t++){var i=e.matched[t];for(var n in i.instances){var r=i.instances[n],o=i.enteredCbs[n];if(r&&o){delete i.enteredCbs[n];for(var a=0;a<o.length;a++)r._isBeingDestroyed||o[a](r)}}}}var _={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var i=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=o.$createElement,l=i.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),d=0,p=!1;o&&o._routerRoot!==o;){var h=o.$vnode?o.$vnode.data:{};h.routerView&&d++,h.keepAlive&&o._directInactive&&o._inactive&&(p=!0),o=o.$parent}if(a.routerViewDepth=d,p){var f=u[l],g=f&&f.component;return g?(f.configProps&&x(g,a,f.route,f.configProps),s(g,a,r)):s()}var m=c.matched[d],v=m&&m.components[l];if(!m||!v)return u[l]=null,s();u[l]={component:v},a.registerRouteInstance=function(e,t){var i=m.instances[l];(t&&i!==e||!t&&i===e)&&(m.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){m.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[l]&&(m.instances[l]=e.componentInstance),w(c)};var y=m.props&&m.props[l];return y&&(n(u[l],{route:c,configProps:y}),x(v,a,c,y)),s(v,a,r)}};function x(e,t,i,r){var o=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}(i,r);if(o){o=t.props=n({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function $(e,t,i){var n=e.charAt(0);if("/"===n)return e;if("?"===n||"#"===n)return t+e;var r=t.split("/");i&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function C(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var k=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},S=function e(t,i,n){return k(i)||(n=i||n,i=[]),n=n||{},t instanceof RegExp?function(e,t){var i=e.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return M(e,t)}(t,i):k(t)?function(t,i,n){for(var r=[],o=0;o<t.length;o++)r.push(e(t[o],i,n).source);return M(new RegExp("(?:"+r.join("|")+")",F(n)),i)}(t,i,n):function(e,t,i){return R(I(e,i),t,i)}(t,i,n)},E=I,j=O,D=R,T=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function I(e,t){for(var i,n=[],r=0,o=0,a="",s=t&&t.delimiter||"/";null!=(i=T.exec(e));){var l=i[0],c=i[1],u=i.index;if(a+=e.slice(o,u),o=u+l.length,c)a+=c[1];else{var d=e[o],p=i[2],h=i[3],f=i[4],g=i[5],m=i[6],v=i[7];a&&(n.push(a),a="");var y=null!=p&&null!=d&&d!==p,b="+"===m||"*"===m,w="?"===m||"*"===m,_=i[2]||s,x=f||g;n.push({name:h||r++,prefix:p||"",delimiter:_,optional:w,repeat:b,partial:y,asterisk:!!v,pattern:x?P(x):v?".*":"[^"+N(_)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&n.push(a),n}function A(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function O(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(i[n]=new RegExp("^(?:"+e[n].pattern+")$",F(t)));return function(t,n){for(var r="",o=t||{},a=(n||{}).pretty?A:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var c,u=o[l.name];if(null==u){if(l.optional){l.partial&&(r+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(k(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=a(u[d]),!i[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");r+=(0===d?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?encodeURI(u).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):a(u),!i[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');r+=l.prefix+c}}else r+=l}return r}}function N(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function P(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function M(e,t){return e.keys=t,e}function F(e){return e&&e.sensitive?"":"i"}function R(e,t,i){k(t)||(i=t||i,t=[]);for(var n=(i=i||{}).strict,r=!1!==i.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"==typeof s)o+=N(s);else{var l=N(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),o+=c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")"}}var u=N(i.delimiter||"/"),d=o.slice(-u.length)===u;return n||(o=(d?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":n&&d?"":"(?="+u+"|$)",M(new RegExp("^"+o,F(i)),t)}S.parse=E,S.compile=function(e,t){return O(I(e,t),t)},S.tokensToFunction=j,S.tokensToRegExp=D;var L=Object.create(null);function q(e,t,i){t=t||{};try{var n=L[e]||(L[e]=S.compile(e));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch(e){return""}finally{delete t[0]}}function H(e,t,i,r){var o="string"==typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){var a=(o=n({},e)).params;return a&&"object"==typeof a&&(o.params=n({},a)),o}if(!o.path&&o.params&&t){(o=n({},o))._normalized=!0;var s=n(n({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;o.path=q(l,s,t.path)}return o}var d=function(e){var t="",i="",n=e.indexOf("#");n>=0&&(t=e.slice(n),e=e.slice(0,n));var r=e.indexOf("?");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{path:e,query:i,hash:t}}(o.path||""),p=t&&t.path||"/",h=d.path?$(d.path,p,i||o.append):p,f=function(e,t,i){void 0===t&&(t={});var n,r=i||u;try{n=r(e||"")}catch(e){n={}}for(var o in t){var a=t[o];n[o]=Array.isArray(a)?a.map(c):c(a)}return n}(d.query,o.query,r&&r.options.parseQuery),g=o.hash||d.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:h,query:f,hash:g}}var z,B=function(){},G={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,i=this.$router,r=this.$route,o=i.resolve(this.to,r,this.append),a=o.location,s=o.route,l=o.href,c={},u=i.options.linkActiveClass,d=i.options.linkExactActiveClass,f=null==u?"router-link-active":u,g=null==d?"router-link-exact-active":d,m=null==this.activeClass?f:this.activeClass,v=null==this.exactActiveClass?g:this.exactActiveClass,b=s.redirectedFrom?h(null,H(s.redirectedFrom),null,i):s;c[v]=y(r,b,this.exactPath),c[m]=this.exact||this.exactPath?c[v]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var i in t)if(!(i in e))return!1;return!0}(e.query,t.query)}(r,b);var w=c[v]?this.ariaCurrentValue:null,_=function(e){U(e)&&(t.replace?i.replace(a,B):i.push(a,B))},x={click:U};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=_})):x[this.event]=_;var $={class:c},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:_,isActive:c[m],isExactActive:c[v]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)$.on=x,$.attrs={href:l,"aria-current":w};else{var k=W(this.$slots.default);if(k){k.isStatic=!1;var S=k.data=n({},k.data);for(var E in S.on=S.on||{},S.on){var j=S.on[E];E in x&&(S.on[E]=Array.isArray(j)?j:[j])}for(var D in x)D in S.on?S.on[D].push(x[D]):S.on[D]=_;var T=k.data.attrs=n({},k.data.attrs);T.href=l,T["aria-current"]=w}else $.on=x}return e(this.tag,$,this.$slots.default)}};function U(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function W(e){if(e)for(var t,i=0;i<e.length;i++){if("a"===(t=e[i]).tag)return t;if(t.children&&(t=W(t.children)))return t}}var Y="undefined"!=typeof window;function V(e,t,i,n,r){var o=t||[],a=i||Object.create(null),s=n||Object.create(null);e.forEach((function(e){K(o,a,s,e,r)}));for(var l=0,c=o.length;l<c;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),c--,l--);return{pathList:o,pathMap:a,nameMap:s}}function K(e,t,i,n,r,o){var a=n.path,s=n.name,l=n.pathToRegexpOptions||{},c=function(e,t,i){return i||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:C(t.path+"/"+e)}(a,r,l.strict);"boolean"==typeof n.caseSensitive&&(l.sensitive=n.caseSensitive);var u={path:c,regex:X(c,l),components:n.components||{default:n.component},alias:n.alias?"string"==typeof n.alias?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:s,parent:r,matchAs:o,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach((function(n){var r=o?C(o+"/"+n.path):void 0;K(e,t,i,n,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==n.alias)for(var d=Array.isArray(n.alias)?n.alias:[n.alias],p=0;p<d.length;++p){var h={path:d[p],children:n.children};K(e,t,i,h,r,u.path||"/")}s&&(i[s]||(i[s]=u))}function X(e,t){return S(e,[],t)}function J(e,t){var i=V(e),n=i.pathList,r=i.pathMap,o=i.nameMap;function a(e,i,a){var l=H(e,i,!1,t),c=l.name;if(c){var u=o[c];if(!u)return s(null,l);var d=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof l.params&&(l.params={}),i&&"object"==typeof i.params)for(var p in i.params)!(p in l.params)&&d.indexOf(p)>-1&&(l.params[p]=i.params[p]);return l.path=q(u.path,l.params),s(u,l,a)}if(l.path){l.params={};for(var h=0;h<n.length;h++){var f=n[h],g=r[f];if(Q(g.regex,l.path,l.params))return s(g,l,a)}}return s(null,l)}function s(e,i,n){return e&&e.redirect?function(e,i){var n=e.redirect,r="function"==typeof n?n(h(e,i,null,t)):n;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return s(null,i);var l=r,c=l.name,u=l.path,d=i.query,p=i.hash,f=i.params;if(d=l.hasOwnProperty("query")?l.query:d,p=l.hasOwnProperty("hash")?l.hash:p,f=l.hasOwnProperty("params")?l.params:f,c)return o[c],a({_normalized:!0,name:c,query:d,hash:p,params:f},void 0,i);if(u){var g=function(e,t){return $(e,t.parent?t.parent.path:"/",!0)}(u,e);return a({_normalized:!0,path:q(g,f),query:d,hash:p},void 0,i)}return s(null,i)}(e,n||i):e&&e.matchAs?function(e,t,i){var n=a({_normalized:!0,path:q(i,t.params)});if(n){var r=n.matched,o=r[r.length-1];return t.params=n.params,s(o,t)}return s(null,t)}(0,i,e.matchAs):h(e,i,n,t)}return{match:a,addRoute:function(e,t){var i="object"!=typeof e?o[e]:void 0;V([t||e],n,r,o,i),i&&i.alias.length&&V(i.alias.map((function(e){return{path:e,children:[t]}})),n,r,o,i)},getRoutes:function(){return n.map((function(e){return r[e]}))},addRoutes:function(e){V(e,n,r,o)}}}function Q(e,t,i){var n=t.match(e);if(!n)return!1;if(!i)return!0;for(var r=1,o=n.length;r<o;++r){var a=e.keys[r-1];a&&(i[a.name||"pathMatch"]="string"==typeof n[r]?l(n[r]):n[r])}return!0}var Z=Y&&window.performance&&window.performance.now?window.performance:Date;function ee(){return Z.now().toFixed(3)}var te=ee();function ie(){return te}function ne(e){return te=e}var re=Object.create(null);function oe(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),i=n({},window.history.state);return i.key=ie(),window.history.replaceState(i,"",t),window.addEventListener("popstate",le),function(){window.removeEventListener("popstate",le)}}function ae(e,t,i,n){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=function(){var e=ie();if(e)return re[e]}(),a=r.call(e,t,i,n?o:null);a&&("function"==typeof a.then?a.then((function(e){he(e,o)})).catch((function(e){})):he(a,o))}))}}function se(){var e=ie();e&&(re[e]={x:window.pageXOffset,y:window.pageYOffset})}function le(e){se(),e.state&&e.state.key&&ne(e.state.key)}function ce(e){return de(e.x)||de(e.y)}function ue(e){return{x:de(e.x)?e.x:window.pageXOffset,y:de(e.y)?e.y:window.pageYOffset}}function de(e){return"number"==typeof e}var pe=/^#\d/;function he(e,t){var i,n="object"==typeof e;if(n&&"string"==typeof e.selector){var r=pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var o=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var i=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{x:n.left-i.left-t.x,y:n.top-i.top-t.y}}(r,o={x:de((i=o).x)?i.x:0,y:de(i.y)?i.y:0})}else ce(e)&&(t=ue(e))}else n&&ce(e)&&(t=ue(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var fe,ge=Y&&(-1===(fe=window.navigator.userAgent).indexOf("Android 2.")&&-1===fe.indexOf("Android 4.0")||-1===fe.indexOf("Mobile Safari")||-1!==fe.indexOf("Chrome")||-1!==fe.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState;function me(e,t){se();var i=window.history;try{if(t){var r=n({},i.state);r.key=ie(),i.replaceState(r,"",e)}else i.pushState({key:ne(ee())},"",e)}catch(i){window.location[t?"replace":"assign"](e)}}function ve(e){me(e,!0)}var ye={redirected:2,aborted:4,cancelled:8,duplicated:16};function be(e,t){return we(e,t,ye.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function we(e,t,i,n){var r=new Error(n);return r._isRouter=!0,r.from=e,r.to=t,r.type=i,r}var _e=["params","query","hash"];function xe(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function $e(e,t){return xe(e)&&e._isRouter&&(null==t||e.type===t)}function Ce(e,t,i){var n=function(r){r>=e.length?i():e[r]?t(e[r],(function(){n(r+1)})):n(r+1)};n(0)}function ke(e,t){return Se(e.map((function(e){return Object.keys(e.components).map((function(i){return t(e.components[i],e.instances[i],e,i)}))})))}function Se(e){return Array.prototype.concat.apply([],e)}var Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function je(e){var t=!1;return function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];if(!t)return t=!0,e.apply(this,i)}}var De=function(e,t){this.router=e,this.base=function(e){if(!e)if(Y){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Te(e,t,i,n){var r=ke(e,(function(e,n,r,o){var a=function(e,t){return"function"!=typeof e&&(e=z.extend(e)),e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return i(e,n,r,o)})):i(a,n,r,o)}));return Se(n?r.reverse():r)}function Ie(e,t){if(t)return function(){return e.apply(t,arguments)}}De.prototype.listen=function(e){this.cb=e},De.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},De.prototype.onError=function(e){this.errorCbs.push(e)},De.prototype.transitionTo=function(e,t,i){var n,r=this;try{n=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var o=this.current;this.confirmTransition(n,(function(){r.updateRoute(n),t&&t(n),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(n,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(n)})))}),(function(e){i&&i(e),e&&!r.ready&&($e(e,ye.redirected)&&o===g||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},De.prototype.confirmTransition=function(e,t,i){var n=this,r=this.current;this.pending=e;var o,a,s=function(e){!$e(e)&&xe(e)&&(n.errorCbs.length?n.errorCbs.forEach((function(t){t(e)})):console.error(e)),i&&i(e)},l=e.matched.length-1,c=r.matched.length-1;if(y(e,r)&&l===c&&e.matched[l]===r.matched[c])return this.ensureURL(),e.hash&&ae(this.router,r,e,!1),s(((a=we(o=r,e,ye.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var u,d=function(e,t){var i,n=Math.max(e.length,t.length);for(i=0;i<n&&e[i]===t[i];i++);return{updated:t.slice(0,i),activated:t.slice(i),deactivated:e.slice(i)}}(this.current.matched,e.matched),p=d.updated,h=d.deactivated,f=d.activated,g=[].concat(function(e){return Te(e,"beforeRouteLeave",Ie,!0)}(h),this.router.beforeHooks,function(e){return Te(e,"beforeRouteUpdate",Ie)}(p),f.map((function(e){return e.beforeEnter})),(u=f,function(e,t,i){var n=!1,r=0,o=null;ke(u,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){n=!0,r++;var l,c=je((function(t){var n;((n=t).__esModule||Ee&&"Module"===n[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:z.extend(t),a.components[s]=t,--r<=0&&i()})),u=je((function(e){var t="Failed to resolve async component "+s+": "+e;o||(o=xe(e)?e:new Error(t),i(o))}));try{l=e(c,u)}catch(e){u(e)}if(l)if("function"==typeof l.then)l.then(c,u);else{var d=l.component;d&&"function"==typeof d.then&&d.then(c,u)}}})),n||i()})),m=function(t,i){if(n.pending!==e)return s(be(r,e));try{t(e,r,(function(t){!1===t?(n.ensureURL(!0),s(function(e,t){return we(e,t,ye.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(r,e))):xe(t)?(n.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(s(function(e,t){return we(e,t,ye.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return _e.forEach((function(i){i in e&&(t[i]=e[i])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}(r,e)),"object"==typeof t&&t.replace?n.replace(t):n.push(t)):i(t)}))}catch(e){s(e)}};Ce(g,m,(function(){var i=function(e){return Te(e,"beforeRouteEnter",(function(e,t,i,n){return function(e,t,i){return function(n,r,o){return e(n,r,(function(e){"function"==typeof e&&(t.enteredCbs[i]||(t.enteredCbs[i]=[]),t.enteredCbs[i].push(e)),o(e)}))}}(e,i,n)}))}(f);Ce(i.concat(n.router.resolveHooks),m,(function(){if(n.pending!==e)return s(be(r,e));n.pending=null,t(e),n.router.app&&n.router.app.$nextTick((function(){w(e)}))}))}))},De.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},De.prototype.setupListeners=function(){},De.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=g,this.pending=null};var Ae=function(e){function t(t,i){e.call(this,t,i),this._startLocation=Oe(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,i=t.options.scrollBehavior,n=ge&&i;n&&this.listeners.push(oe());var r=function(){var i=e.current,r=Oe(e.base);e.current===g&&r===e._startLocation||e.transitionTo(r,(function(e){n&&ae(t,e,i,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,i){var n=this,r=this.current;this.transitionTo(e,(function(e){me(C(n.base+e.fullPath)),ae(n.router,e,r,!1),t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this,r=this.current;this.transitionTo(e,(function(e){ve(C(n.base+e.fullPath)),ae(n.router,e,r,!1),t&&t(e)}),i)},t.prototype.ensureURL=function(e){if(Oe(this.base)!==this.current.fullPath){var t=C(this.base+this.current.fullPath);e?me(t):ve(t)}},t.prototype.getCurrentLocation=function(){return Oe(this.base)},t}(De);function Oe(e){var t=window.location.pathname,i=t.toLowerCase(),n=e.toLowerCase();return!e||i!==n&&0!==i.indexOf(C(n+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ne=function(e){function t(t,i,n){e.call(this,t,i),n&&function(e){var t=Oe(e);if(!/^\/#/.test(t))return window.location.replace(C(e+"/#"+t)),!0}(this.base)||Pe()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,i=ge&&t;i&&this.listeners.push(oe());var n=function(){var t=e.current;Pe()&&e.transitionTo(Me(),(function(n){i&&ae(e.router,n,t,!0),ge||Le(n.fullPath)}))},r=ge?"popstate":"hashchange";window.addEventListener(r,n),this.listeners.push((function(){window.removeEventListener(r,n)}))}},t.prototype.push=function(e,t,i){var n=this,r=this.current;this.transitionTo(e,(function(e){Re(e.fullPath),ae(n.router,e,r,!1),t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this,r=this.current;this.transitionTo(e,(function(e){Le(e.fullPath),ae(n.router,e,r,!1),t&&t(e)}),i)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Me()!==t&&(e?Re(t):Le(t))},t.prototype.getCurrentLocation=function(){return Me()},t}(De);function Pe(){var e=Me();return"/"===e.charAt(0)||(Le("/"+e),!1)}function Me(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Fe(e){var t=window.location.href,i=t.indexOf("#");return(i>=0?t.slice(0,i):t)+"#"+e}function Re(e){ge?me(Fe(e)):window.location.hash=e}function Le(e){ge?ve(Fe(e)):window.location.replace(Fe(e))}var qe=function(e){function t(t,i){e.call(this,t,i),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,i){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this;this.transitionTo(e,(function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)}),i)},t.prototype.go=function(e){var t=this,i=this.index+e;if(!(i<0||i>=this.stack.length)){var n=this.stack[i];this.confirmTransition(n,(function(){var e=t.current;t.index=i,t.updateRoute(n),t.router.afterHooks.forEach((function(t){t&&t(n,e)}))}),(function(e){$e(e,ye.duplicated)&&(t.index=i)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(De),He=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=J(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ge&&!1!==e.fallback,this.fallback&&(t="hash"),Y||(t="abstract"),this.mode=t,t){case"history":this.history=new Ae(this,e.base);break;case"hash":this.history=new Ne(this,e.base,this.fallback);break;case"abstract":this.history=new qe(this,e.base)}},ze={currentRoute:{configurable:!0}};He.prototype.match=function(e,t,i){return this.matcher.match(e,t,i)},ze.currentRoute.get=function(){return this.history&&this.history.current},He.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var i=t.apps.indexOf(e);i>-1&&t.apps.splice(i,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var i=this.history;if(i instanceof Ae||i instanceof Ne){var n=function(e){i.setupListeners(),function(e){var n=i.current,r=t.options.scrollBehavior;ge&&r&&"fullPath"in e&&ae(t,e,n,!1)}(e)};i.transitionTo(i.getCurrentLocation(),n,n)}i.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},He.prototype.beforeEach=function(e){return Ge(this.beforeHooks,e)},He.prototype.beforeResolve=function(e){return Ge(this.resolveHooks,e)},He.prototype.afterEach=function(e){return Ge(this.afterHooks,e)},He.prototype.onReady=function(e,t){this.history.onReady(e,t)},He.prototype.onError=function(e){this.history.onError(e)},He.prototype.push=function(e,t,i){var n=this;if(!t&&!i&&"undefined"!=typeof Promise)return new Promise((function(t,i){n.history.push(e,t,i)}));this.history.push(e,t,i)},He.prototype.replace=function(e,t,i){var n=this;if(!t&&!i&&"undefined"!=typeof Promise)return new Promise((function(t,i){n.history.replace(e,t,i)}));this.history.replace(e,t,i)},He.prototype.go=function(e){this.history.go(e)},He.prototype.back=function(){this.go(-1)},He.prototype.forward=function(){this.go(1)},He.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},He.prototype.resolve=function(e,t,i){var n=H(e,t=t||this.history.current,i,this),r=this.match(n,t),o=r.redirectedFrom||r.fullPath,a=function(e,t,i){var n="hash"===i?"#"+t:t;return e?C(e+"/"+n):n}(this.history.base,o,this.mode);return{location:n,route:r,href:a,normalizedTo:n,resolved:r}},He.prototype.getRoutes=function(){return this.matcher.getRoutes()},He.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},He.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(He.prototype,ze);var Be=He;function Ge(e,t){return e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}He.install=function e(t){if(!e.installed||z!==t){e.installed=!0,z=t;var i=function(e){return void 0!==e},n=function(e,t){var n=e.$options._parentVnode;i(n)&&i(n=n.data)&&i(n=n.registerRouteInstance)&&n(e,t)};t.mixin({beforeCreate:function(){i(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",_),t.component("RouterLink",G);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},He.version="3.6.5",He.isNavigationFailure=$e,He.NavigationFailureType=ye,He.START_LOCATION=g,Y&&window.Vue&&window.Vue.use(He),e.exports=Be},7474:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EffectScope:()=>Fi,computed:()=>dt,customRef:()=>it,default:()=>lr,defineAsyncComponent:()=>ln,defineComponent:()=>Cn,del:()=>Me,effectScope:()=>Ri,getCurrentInstance:()=>pe,getCurrentScope:()=>Li,h:()=>Gi,inject:()=>Bi,isProxy:()=>Ge,isReactive:()=>He,isReadonly:()=>Be,isRef:()=>Ve,isShallow:()=>ze,markRaw:()=>We,mergeDefaults:()=>Zt,nextTick:()=>on,onActivated:()=>mn,onBeforeMount:()=>un,onBeforeUnmount:()=>fn,onBeforeUpdate:()=>pn,onDeactivated:()=>vn,onErrorCaptured:()=>xn,onMounted:()=>dn,onRenderTracked:()=>bn,onRenderTriggered:()=>wn,onScopeDispose:()=>qi,onServerPrefetch:()=>yn,onUnmounted:()=>gn,onUpdated:()=>hn,provide:()=>Hi,proxyRefs:()=>et,reactive:()=>Re,readonly:()=>st,ref:()=>Ke,set:()=>Pe,shallowReactive:()=>Le,shallowReadonly:()=>ut,shallowRef:()=>Xe,toRaw:()=>Ue,toRef:()=>rt,toRefs:()=>nt,triggerRef:()=>Qe,unref:()=>Ze,useAttrs:()=>Xt,useCssModule:()=>an,useCssVars:()=>sn,useListeners:()=>Jt,useSlots:()=>Kt,version:()=>$n,watch:()=>Pi,watchEffect:()=>Ti,watchPostEffect:()=>Ii,watchSyncEffect:()=>Ai}),i(7658),i(4633),i(1703);var n=Object.freeze({}),r=Array.isArray;function o(e){return null==e}function a(e){return null!=e}function s(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return"function"==typeof e}function u(e){return null!==e&&"object"==typeof e}var d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var i=Object.create(null),n=e.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return t?function(e){return i[e.toLowerCase()]}:function(e){return i[e]}}var y=v("slot,component",!0),b=v("key,ref,slot,slot-scope,is");function w(e,t){var i=e.length;if(i){if(t===e[i-1])return void(e.length=i-1);var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function x(e,t){return _.call(e,t)}function $(e){var t=Object.create(null);return function(i){return t[i]||(t[i]=e(i))}}var C=/-(\w)/g,k=$((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),S=$((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,j=$((function(e){return e.replace(E,"-$1").toLowerCase()})),D=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function i(i){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,i):e.call(t)}return i._length=e.length,i};function T(e,t){t=t||0;for(var i=e.length-t,n=new Array(i);i--;)n[i]=e[i+t];return n}function I(e,t){for(var i in t)e[i]=t[i];return e}function A(e){for(var t={},i=0;i<e.length;i++)e[i]&&I(t,e[i]);return t}function O(e,t,i){}var N=function(e,t,i){return!1},P=function(e){return e};function M(e,t){if(e===t)return!0;var i=u(e),n=u(t);if(!i||!n)return!i&&!n&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,i){return M(e,t[i])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(i){return M(e[i],t[i])}))}catch(e){return!1}}function F(e,t){for(var i=0;i<e.length;i++)if(M(e[i],t))return i;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function L(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var q="data-server-rendered",H=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:O,parsePlatformTagName:P,mustUseProp:N,async:!0,_lifecycleHooks:z},G=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,i,n){Object.defineProperty(e,t,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var Y=new RegExp("[^".concat(G.source,".$_\\d]")),V="__proto__"in{},K="undefined"!=typeof window,X=K&&window.navigator.userAgent.toLowerCase(),J=X&&/msie|trident/.test(X),Q=X&&X.indexOf("msie 9.0")>0,Z=X&&X.indexOf("edge/")>0;X&&X.indexOf("android");var ee=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var te,ie=X&&X.match(/firefox\/(\d+)/),ne={}.watch,re=!1;if(K)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,oe)}catch(e){}var ae=function(){return void 0===te&&(te=!K&&void 0!==i.g&&i.g.process&&"server"===i.g.process.env.VUE_ENV),te},se=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);ce="undefined"!=typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=null;function pe(){return de&&{proxy:de}}function he(e){void 0===e&&(e=null),e||de&&de._scope.off(),de=e,e&&e._scope.on()}var fe=function(){function e(e,t,i,n,r,o,a,s){this.tag=e,this.data=t,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ge=function(e){void 0===e&&(e="");var t=new fe;return t.text=e,t.isComment=!0,t};function me(e){return new fe(void 0,void 0,void 0,String(e))}function ve(e){var t=new fe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ye=0,be=[],we=function(){for(var e=0;e<be.length;e++){var t=be[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}be.length=0},_e=function(){function e(){this._pending=!1,this.id=ye++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,be.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){for(var t=this.subs.filter((function(e){return e})),i=0,n=t.length;i<n;i++)t[i].update()},e}();_e.target=null;var xe=[];function $e(e){xe.push(e),_e.target=e}function Ce(){xe.pop(),_e.target=xe[xe.length-1]}var ke=Array.prototype,Se=Object.create(ke);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=ke[e];W(Se,e,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r,o=t.apply(this,i),a=this.__ob__;switch(e){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(Se),je={},De=!0;function Te(e){De=e}var Ie={notify:O,depend:O,addSub:O,removeSub:O},Ae=function(){function e(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=!1),this.value=e,this.shallow=t,this.mock=i,this.dep=i?Ie:new _e,this.vmCount=0,W(e,"__ob__",this),r(e)){if(!i)if(V)e.__proto__=Se;else for(var n=0,o=Ee.length;n<o;n++)W(e,s=Ee[n],Se[s]);t||this.observeArray(e)}else{var a=Object.keys(e);for(n=0;n<a.length;n++){var s;Ne(e,s=a[n],je,void 0,t,i)}}}return e.prototype.observeArray=function(e){for(var t=0,i=e.length;t<i;t++)Oe(e[t],!1,this.mock)},e}();function Oe(e,t,i){return e&&x(e,"__ob__")&&e.__ob__ instanceof Ae?e.__ob__:!De||!i&&ae()||!r(e)&&!p(e)||!Object.isExtensible(e)||e.__v_skip||Ve(e)||e instanceof fe?void 0:new Ae(e,t,i)}function Ne(e,t,i,n,o,a){var s=new _e,l=Object.getOwnPropertyDescriptor(e,t);if(!l||!1!==l.configurable){var c=l&&l.get,u=l&&l.set;c&&!u||i!==je&&2!==arguments.length||(i=e[t]);var d=!o&&Oe(i,!1,a);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=c?c.call(e):i;return _e.target&&(s.depend(),d&&(d.dep.depend(),r(t)&&Fe(t))),Ve(t)&&!o?t.value:t},set:function(t){var n=c?c.call(e):i;if(L(n,t)){if(u)u.call(e,t);else{if(c)return;if(!o&&Ve(n)&&!Ve(t))return void(n.value=t);i=t}d=!o&&Oe(t,!1,a),s.notify()}}}),s}}function Pe(e,t,i){if(!Be(e)){var n=e.__ob__;return r(e)&&h(t)?(e.length=Math.max(e.length,t),e.splice(t,1,i),n&&!n.shallow&&n.mock&&Oe(i,!1,!0),i):t in e&&!(t in Object.prototype)?(e[t]=i,i):e._isVue||n&&n.vmCount?i:n?(Ne(n.value,t,i,void 0,n.shallow,n.mock),n.dep.notify(),i):(e[t]=i,i)}}function Me(e,t){if(r(e)&&h(t))e.splice(t,1);else{var i=e.__ob__;e._isVue||i&&i.vmCount||Be(e)||x(e,t)&&(delete e[t],i&&i.dep.notify())}}function Fe(e){for(var t=void 0,i=0,n=e.length;i<n;i++)(t=e[i])&&t.__ob__&&t.__ob__.dep.depend(),r(t)&&Fe(t)}function Re(e){return qe(e,!1),e}function Le(e){return qe(e,!0),W(e,"__v_isShallow",!0),e}function qe(e,t){Be(e)||Oe(e,t,ae())}function He(e){return Be(e)?He(e.__v_raw):!(!e||!e.__ob__)}function ze(e){return!(!e||!e.__v_isShallow)}function Be(e){return!(!e||!e.__v_isReadonly)}function Ge(e){return He(e)||Be(e)}function Ue(e){var t=e&&e.__v_raw;return t?Ue(t):e}function We(e){return Object.isExtensible(e)&&W(e,"__v_skip",!0),e}var Ye="__v_isRef";function Ve(e){return!(!e||!0!==e.__v_isRef)}function Ke(e){return Je(e,!1)}function Xe(e){return Je(e,!0)}function Je(e,t){if(Ve(e))return e;var i={};return W(i,Ye,!0),W(i,"__v_isShallow",t),W(i,"dep",Ne(i,"value",e,null,t,ae())),i}function Qe(e){e.dep&&e.dep.notify()}function Ze(e){return Ve(e)?e.value:e}function et(e){if(He(e))return e;for(var t={},i=Object.keys(e),n=0;n<i.length;n++)tt(t,e,i[n]);return t}function tt(e,t,i){Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){var e=t[i];if(Ve(e))return e.value;var n=e&&e.__ob__;return n&&n.dep.depend(),e},set:function(e){var n=t[i];Ve(n)&&!Ve(e)?n.value=e:t[i]=e}})}function it(e){var t=new _e,i=e((function(){t.depend()}),(function(){t.notify()})),n=i.get,r=i.set,o={get value(){return n()},set value(e){r(e)}};return W(o,Ye,!0),o}function nt(e){var t=r(e)?new Array(e.length):{};for(var i in e)t[i]=rt(e,i);return t}function rt(e,t,i){var n=e[t];if(Ve(n))return n;var r={get value(){var n=e[t];return void 0===n?i:n},set value(i){e[t]=i}};return W(r,Ye,!0),r}var ot="__v_rawToReadonly",at="__v_rawToShallowReadonly";function st(e){return lt(e,!1)}function lt(e,t){if(!p(e))return e;if(Be(e))return e;var i=t?at:ot,n=e[i];if(n)return n;var r=Object.create(Object.getPrototypeOf(e));W(e,i,r),W(r,"__v_isReadonly",!0),W(r,"__v_raw",e),Ve(e)&&W(r,Ye,!0),(t||ze(e))&&W(r,"__v_isShallow",!0);for(var o=Object.keys(e),a=0;a<o.length;a++)ct(r,e,o[a],t);return r}function ct(e,t,i,n){Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){var e=t[i];return n||!p(e)?e:st(e)},set:function(){}})}function ut(e){return lt(e,!0)}function dt(e,t){var i,n,r=c(e);r?(i=e,n=O):(i=e.get,n=e.set);var o=ae()?null:new Dn(de,i,O,{lazy:!0}),a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),_e.target&&o.depend(),o.value):i()},set value(e){n(e)}};return W(a,Ye,!0),W(a,"__v_isReadonly",r),a}var pt=$((function(e){var t="&"===e.charAt(0),i="~"===(e=t?e.slice(1):e).charAt(0),n="!"===(e=i?e.slice(1):e).charAt(0);return{name:e=n?e.slice(1):e,once:i,capture:n,passive:t}}));function ht(e,t){function i(){var e=i.fns;if(!r(e))return Wi(e,null,arguments,t,"v-on handler");for(var n=e.slice(),o=0;o<n.length;o++)Wi(n[o],null,arguments,t,"v-on handler")}return i.fns=e,i}function ft(e,t,i,n,r,a){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=pt(l),o(c)||(o(u)?(o(c.fns)&&(c=e[l]=ht(c,a)),s(d.once)&&(c=e[l]=r(d.name,c,d.capture)),i(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)o(e[l])&&n((d=pt(l)).name,t[l],d.capture)}function gt(e,t,i){var n;e instanceof fe&&(e=e.data.hook||(e.data.hook={}));var r=e[t];function l(){i.apply(this,arguments),w(n.fns,l)}o(r)?n=ht([l]):a(r.fns)&&s(r.merged)?(n=r).fns.push(l):n=ht([r,l]),n.merged=!0,e[t]=n}function mt(e,t,i,n,r){if(a(t)){if(x(t,i))return e[i]=t[i],r||delete t[i],!0;if(x(t,n))return e[i]=t[n],r||delete t[n],!0}return!1}function vt(e){return l(e)?[me(e)]:r(e)?bt(e):void 0}function yt(e){return a(e)&&a(e.text)&&!1===e.isComment}function bt(e,t){var i,n,c,u,d=[];for(i=0;i<e.length;i++)o(n=e[i])||"boolean"==typeof n||(u=d[c=d.length-1],r(n)?n.length>0&&(yt((n=bt(n,"".concat(t||"","_").concat(i)))[0])&&yt(u)&&(d[c]=me(u.text+n[0].text),n.shift()),d.push.apply(d,n)):l(n)?yt(u)?d[c]=me(u.text+n):""!==n&&d.push(me(n)):yt(n)&&yt(u)?d[c]=me(u.text+n.text):(s(e._isVList)&&a(n.tag)&&o(n.key)&&a(t)&&(n.key="__vlist".concat(t,"_").concat(i,"__")),d.push(n)));return d}var wt=1,_t=2;function xt(e,t,i,n,o,d){return(r(i)||l(i))&&(o=n,n=i,i=void 0),s(d)&&(o=_t),function(e,t,i,n,o){if(a(i)&&a(i.__ob__))return ge();if(a(i)&&a(i.is)&&(t=i.is),!t)return ge();var s,l;if(r(n)&&c(n[0])&&((i=i||{}).scopedSlots={default:n[0]},n.length=0),o===_t?n=vt(n):o===wt&&(n=function(e){for(var t=0;t<e.length;t++)if(r(e[t]))return Array.prototype.concat.apply([],e);return e}(n)),"string"==typeof t){var d=void 0;l=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),s=B.isReservedTag(t)?new fe(B.parsePlatformTagName(t),i,n,void 0,void 0,e):i&&i.pre||!a(d=ir(e.$options,"components",t))?new fe(t,i,n,void 0,void 0,e):Wn(d,i,e,n,t)}else s=Wn(t,i,e,n);return r(s)?s:a(s)?(a(l)&&$t(s,l),a(i)&&function(e){u(e.style)&&Sn(e.style),u(e.class)&&Sn(e.class)}(i),s):ge()}(e,t,i,n,o)}function $t(e,t,i){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,i=!0),a(e.children))for(var n=0,r=e.children.length;n<r;n++){var l=e.children[n];a(l.tag)&&(o(l.ns)||s(i)&&"svg"!==l.tag)&&$t(l,t,i)}}function Ct(e,t){var i,n,o,s,l=null;if(r(e)||"string"==typeof e)for(l=new Array(e.length),i=0,n=e.length;i<n;i++)l[i]=t(e[i],i);else if("number"==typeof e)for(l=new Array(e),i=0;i<e;i++)l[i]=t(i+1,i);else if(u(e))if(ue&&e[Symbol.iterator]){l=[];for(var c=e[Symbol.iterator](),d=c.next();!d.done;)l.push(t(d.value,l.length)),d=c.next()}else for(o=Object.keys(e),l=new Array(o.length),i=0,n=o.length;i<n;i++)s=o[i],l[i]=t(e[s],s,i);return a(l)||(l=[]),l._isVList=!0,l}function kt(e,t,i,n){var r,o=this.$scopedSlots[e];o?(i=i||{},n&&(i=I(I({},n),i)),r=o(i)||(c(t)?t():t)):r=this.$slots[e]||(c(t)?t():t);var a=i&&i.slot;return a?this.$createElement("template",{slot:a},r):r}function St(e){return ir(this.$options,"filters",e)||P}function Et(e,t){return r(e)?-1===e.indexOf(t):e!==t}function jt(e,t,i,n,r){var o=B.keyCodes[t]||i;return r&&n&&!B.keyCodes[t]?Et(r,n):o?Et(o,e):n?j(n)!==t:void 0===e}function Dt(e,t,i,n,o){if(i&&u(i)){r(i)&&(i=A(i));var a=void 0,s=function(r){if("class"===r||"style"===r||b(r))a=e;else{var s=e.attrs&&e.attrs.type;a=n||B.mustUseProp(t,s,r)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=k(r),c=j(r);l in a||c in a||(a[r]=i[r],o&&((e.on||(e.on={}))["update:".concat(r)]=function(e){i[r]=e}))};for(var l in i)s(l)}return e}function Tt(e,t){var i=this._staticTrees||(this._staticTrees=[]),n=i[e];return n&&!t||At(n=i[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),n}function It(e,t,i){return At(e,"__once__".concat(t).concat(i?"_".concat(i):""),!0),e}function At(e,t,i){if(r(e))for(var n=0;n<e.length;n++)e[n]&&"string"!=typeof e[n]&&Ot(e[n],"".concat(t,"_").concat(n),i);else Ot(e,t,i)}function Ot(e,t,i){e.isStatic=!0,e.key=t,e.isOnce=i}function Nt(e,t){if(t&&p(t)){var i=e.on=e.on?I({},e.on):{};for(var n in t){var r=i[n],o=t[n];i[n]=r?[].concat(r,o):o}}return e}function Pt(e,t,i,n){t=t||{$stable:!i};for(var o=0;o<e.length;o++){var a=e[o];r(a)?Pt(a,t,i):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return n&&(t.$key=n),t}function Mt(e,t){for(var i=0;i<t.length;i+=2){var n=t[i];"string"==typeof n&&n&&(e[t[i]]=t[i+1])}return e}function Ft(e,t){return"string"==typeof e?t+e:e}function Rt(e){e._o=It,e._n=m,e._s=g,e._l=Ct,e._t=kt,e._q=M,e._i=F,e._m=Tt,e._f=St,e._k=jt,e._b=Dt,e._v=me,e._e=ge,e._u=Pt,e._g=Nt,e._d=Mt,e._p=Ft}function Lt(e,t){if(!e||!e.length)return{};for(var i={},n=0,r=e.length;n<r;n++){var o=e[n],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(i.default||(i.default=[])).push(o);else{var s=a.slot,l=i[s]||(i[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in i)i[c].every(qt)&&delete i[c];return i}function qt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ht(e){return e.isComment&&e.asyncFactory}function zt(e,t,i,r){var o,a=Object.keys(i).length>0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=Bt(e,i,c,t[c]))}else o={};for(var u in i)u in o||(o[u]=Gt(i,u));return t&&Object.isExtensible(t)&&(t._normalized=o),W(o,"$stable",s),W(o,"$key",l),W(o,"$hasNormal",a),o}function Bt(e,t,i,n){var o=function(){var t=de;he(e);var i=arguments.length?n.apply(null,arguments):n({}),o=(i=i&&"object"==typeof i&&!r(i)?[i]:vt(i))&&i[0];return he(t),i&&(!o||1===i.length&&o.isComment&&!Ht(o))?void 0:i};return n.proxy&&Object.defineProperty(t,i,{get:o,enumerable:!0,configurable:!0}),o}function Gt(e,t){return function(){return e[t]}}function Ut(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};W(t,"_v_attr_proxy",!0),Wt(t,e.$attrs,n,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Wt(e._listenersProxy={},e.$listeners,n,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||Vt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:D(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(i){return tt(e,t,i)}))}}}function Wt(e,t,i,n,r){var o=!1;for(var a in t)a in e?t[a]!==i[a]&&(o=!0):(o=!0,Yt(e,a,n,r));for(var a in e)a in t||(o=!0,delete e[a]);return o}function Yt(e,t,i,n){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return i[n][t]}})}function Vt(e,t){for(var i in t)e[i]=t[i];for(var i in e)i in t||delete e[i]}function Kt(){return Qt().slots}function Xt(){return Qt().attrs}function Jt(){return Qt().listeners}function Qt(){var e=de;return e._setupContext||(e._setupContext=Ut(e))}function Zt(e,t){var i=r(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var n in t){var o=i[n];o?r(o)||c(o)?i[n]={type:o,default:t[n]}:o.default=t[n]:null===o&&(i[n]={default:t[n]})}return i}var ei,ti=null;function ii(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function ni(e){if(r(e))for(var t=0;t<e.length;t++){var i=e[t];if(a(i)&&(a(i.componentOptions)||Ht(i)))return i}}function ri(e,t){ei.$on(e,t)}function oi(e,t){ei.$off(e,t)}function ai(e,t){var i=ei;return function n(){null!==t.apply(null,arguments)&&i.$off(e,n)}}function si(e,t,i){ei=e,ft(t,i||{},ri,oi,ai,e),ei=void 0}var li=null;function ci(e){var t=li;return li=e,function(){li=t}}function ui(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function di(e,t){if(t){if(e._directInactive=!1,ui(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var i=0;i<e.$children.length;i++)di(e.$children[i]);hi(e,"activated")}}function pi(e,t){if(!(t&&(e._directInactive=!0,ui(e))||e._inactive)){e._inactive=!0;for(var i=0;i<e.$children.length;i++)pi(e.$children[i]);hi(e,"deactivated")}}function hi(e,t,i,n){void 0===n&&(n=!0),$e();var r=de;n&&he(e);var o=e.$options[t],a="".concat(t," hook");if(o)for(var s=0,l=o.length;s<l;s++)Wi(o[s],e,i||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),n&&he(r),Ce()}var fi=[],gi=[],mi={},vi=!1,yi=!1,bi=0,wi=0,_i=Date.now;if(K&&!J){var xi=window.performance;xi&&"function"==typeof xi.now&&_i()>document.createEvent("Event").timeStamp&&(_i=function(){return xi.now()})}var $i=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Ci(){var e,t;for(wi=_i(),yi=!0,fi.sort($i),bi=0;bi<fi.length;bi++)(e=fi[bi]).before&&e.before(),t=e.id,mi[t]=null,e.run();var i=gi.slice(),n=fi.slice();bi=fi.length=gi.length=0,mi={},vi=yi=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,di(e[t],!0)}(i),function(e){for(var t=e.length;t--;){var i=e[t],n=i.vm;n&&n._watcher===i&&n._isMounted&&!n._isDestroyed&&hi(n,"updated")}}(n),we(),se&&B.devtools&&se.emit("flush")}function ki(e){var t=e.id;if(null==mi[t]&&(e!==_e.target||!e.noRecurse)){if(mi[t]=!0,yi){for(var i=fi.length-1;i>bi&&fi[i].id>e.id;)i--;fi.splice(i+1,0,e)}else fi.push(e);vi||(vi=!0,on(Ci))}}var Si="watcher",Ei="".concat(Si," callback"),ji="".concat(Si," getter"),Di="".concat(Si," cleanup");function Ti(e,t){return Mi(e,null,t)}function Ii(e,t){return Mi(e,null,{flush:"post"})}function Ai(e,t){return Mi(e,null,{flush:"sync"})}var Oi,Ni={};function Pi(e,t,i){return Mi(e,t,i)}function Mi(e,t,i){var o=void 0===i?n:i,a=o.immediate,s=o.deep,l=o.flush,u=void 0===l?"pre":l;o.onTrack,o.onTrigger;var d,p,h=de,f=function(e,t,i){return void 0===i&&(i=null),Wi(e,null,i,h,t)},g=!1,m=!1;if(Ve(e)?(d=function(){return e.value},g=ze(e)):He(e)?(d=function(){return e.__ob__.dep.depend(),e},s=!0):r(e)?(m=!0,g=e.some((function(e){return He(e)||ze(e)})),d=function(){return e.map((function(e){return Ve(e)?e.value:He(e)?Sn(e):c(e)?f(e,ji):void 0}))}):d=c(e)?t?function(){return f(e,ji)}:function(){if(!h||!h._isDestroyed)return p&&p(),f(e,Si,[y])}:O,t&&s){var v=d;d=function(){return Sn(v())}}var y=function(e){p=b.onStop=function(){f(e,Di)}};if(ae())return y=O,t?a&&f(t,Ei,[d(),m?[]:void 0,y]):d(),O;var b=new Dn(de,d,O,{lazy:!0});b.noRecurse=!t;var w=m?[]:Ni;return b.run=function(){if(b.active)if(t){var e=b.get();(s||g||(m?e.some((function(e,t){return L(e,w[t])})):L(e,w)))&&(p&&p(),f(t,Ei,[e,w===Ni?void 0:w,y]),w=e)}else b.get()},"sync"===u?b.update=b.run:"post"===u?(b.post=!0,b.update=function(){return ki(b)}):b.update=function(){if(h&&h===de&&!h._isMounted){var e=h._preWatchers||(h._preWatchers=[]);e.indexOf(b)<0&&e.push(b)}else ki(b)},t?a?b.run():w=b.get():"post"===u&&h?h.$once("hook:mounted",(function(){return b.get()})):b.get(),function(){b.teardown()}}var Fi=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Oi,!e&&Oi&&(this.index=(Oi.scopes||(Oi.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=Oi;try{return Oi=this,e()}finally{Oi=t}}},e.prototype.on=function(){Oi=this},e.prototype.off=function(){Oi=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,i=void 0;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].teardown();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}},e}();function Ri(e){return new Fi(e)}function Li(){return Oi}function qi(e){Oi&&Oi.cleanups.push(e)}function Hi(e,t){de&&(zi(de)[e]=t)}function zi(e){var t=e._provided,i=e.$parent&&e.$parent._provided;return i===t?e._provided=Object.create(i):t}function Bi(e,t,i){void 0===i&&(i=!1);var n=de;if(n){var r=n.$parent&&n.$parent._provided;if(r&&e in r)return r[e];if(arguments.length>1)return i&&c(t)?t.call(n):t}}function Gi(e,t,i){return xt(de,e,t,i,2,!0)}function Ui(e,t,i){$e();try{if(t)for(var n=t;n=n.$parent;){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(n,e,t,i))return}catch(e){Yi(e,n,"errorCaptured hook")}}Yi(e,t,i)}finally{Ce()}}function Wi(e,t,i,n,r){var o;try{(o=i?e.apply(t,i):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return Ui(e,n,r+" (Promise/async)")})),o._handled=!0)}catch(e){Ui(e,n,r)}return o}function Yi(e,t,i){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,i)}catch(t){t!==e&&Vi(t)}Vi(e)}function Vi(e,t,i){if(!K||"undefined"==typeof console)throw e;console.error(e)}var Ki,Xi=!1,Ji=[],Qi=!1;function Zi(){Qi=!1;var e=Ji.slice(0);Ji.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&le(Promise)){var en=Promise.resolve();Ki=function(){en.then(Zi),ee&&setTimeout(O)},Xi=!0}else if(J||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ki="undefined"!=typeof setImmediate&&le(setImmediate)?function(){setImmediate(Zi)}:function(){setTimeout(Zi,0)};else{var tn=1,nn=new MutationObserver(Zi),rn=document.createTextNode(String(tn));nn.observe(rn,{characterData:!0}),Ki=function(){tn=(tn+1)%2,rn.data=String(tn)},Xi=!0}function on(e,t){var i;if(Ji.push((function(){if(e)try{e.call(t)}catch(e){Ui(e,t,"nextTick")}else i&&i(t)})),Qi||(Qi=!0,Ki()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){i=e}))}function an(e){return void 0===e&&(e="$style"),de&&de[e]||n}function sn(e){if(K){var t=de;t&&Ii((function(){var i=t.$el,n=e(t,t._setupProxy);if(i&&1===i.nodeType){var r=i.style;for(var o in n)r.setProperty("--".concat(o),n[o])}}))}}function ln(e){c(e)&&(e={loader:e});var t=e.loader,i=e.loadingComponent,n=e.errorComponent,r=e.delay,o=void 0===r?200:r,a=e.timeout,s=(e.suspensible,e.onError),l=null,u=0,d=function(){var e;return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,i){s(e,(function(){return t((u++,l=null,d()))}),(function(){return i(e)}),u+1)}));throw e})).then((function(t){return e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:d(),delay:o,timeout:a,error:n,loading:i}}}function cn(e){return function(t,i){if(void 0===i&&(i=de),i)return function(e,t,i){var n=e.$options;n[t]=Qn(n[t],i)}(i,e,t)}}var un=cn("beforeMount"),dn=cn("mounted"),pn=cn("beforeUpdate"),hn=cn("updated"),fn=cn("beforeDestroy"),gn=cn("destroyed"),mn=cn("activated"),vn=cn("deactivated"),yn=cn("serverPrefetch"),bn=cn("renderTracked"),wn=cn("renderTriggered"),_n=cn("errorCaptured");function xn(e,t){void 0===t&&(t=de),_n(e,t)}var $n="2.7.14";function Cn(e){return e}var kn=new ce;function Sn(e){return En(e,kn),kn.clear(),e}function En(e,t){var i,n,o=r(e);if(!(!o&&!u(e)||e.__v_skip||Object.isFrozen(e)||e instanceof fe)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(i=e.length;i--;)En(e[i],t);else if(Ve(e))En(e.value,t);else for(i=(n=Object.keys(e)).length;i--;)En(e[n[i]],t)}}var jn=0,Dn=function(){function e(e,t,i,n,r){var o;void 0===(o=Oi&&!Oi._vm?Oi:e?e._scope:void 0)&&(o=Oi),o&&o.active&&o.effects.push(this),(this.vm=e)&&r&&(e._watcher=this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++jn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression="",c(t)?this.getter=t:(this.getter=function(e){if(!Y.test(e)){var t=e.split(".");return function(e){for(var i=0;i<t.length;i++){if(!e)return;e=e[t[i]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;$e(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ui(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&Sn(e),Ce(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ki(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user){var i='callback for watcher "'.concat(this.expression,'"');Wi(this.cb,this.vm,[e,t],this.vm,i)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),Tn={enumerable:!0,configurable:!0,get:O,set:O};function In(e,t,i){Tn.get=function(){return this[t][i]},Tn.set=function(e){this[t][i]=e},Object.defineProperty(e,i,Tn)}var An={lazy:!0};function On(e,t,i){var n=!ae();c(i)?(Tn.get=n?Nn(t):Pn(i),Tn.set=O):(Tn.get=i.get?n&&!1!==i.cache?Nn(t):Pn(i.get):O,Tn.set=i.set||O),Object.defineProperty(e,t,Tn)}function Nn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),_e.target&&t.depend(),t.value}}function Pn(e){return function(){return e.call(this,this)}}function Mn(e,t,i,n){return p(i)&&(n=i,i=i.handler),"string"==typeof i&&(i=e[i]),e.$watch(t,i,n)}function Fn(e,t){if(e){for(var i=Object.create(null),n=ue?Reflect.ownKeys(e):Object.keys(e),r=0;r<n.length;r++){var o=n[r];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)i[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;i[o]=c(s)?s.call(t):s}}}return i}}var Rn=0;function Ln(e){var t=e.options;if(e.super){var i=Ln(e.super);if(i!==e.superOptions){e.superOptions=i;var n=function(e){var t,i=e.options,n=e.sealedOptions;for(var r in i)i[r]!==n[r]&&(t||(t={}),t[r]=i[r]);return t}(e);n&&I(e.extendOptions,n),(t=e.options=tr(i,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function qn(e,t,i,o,a){var l,c=this,u=a.options;x(o,"_uid")?(l=Object.create(o))._original=o:(l=o,o=o._original);var d=s(u._compiled),p=!d;this.data=e,this.props=t,this.children=i,this.parent=o,this.listeners=e.on||n,this.injections=Fn(u.inject,o),this.slots=function(){return c.$slots||zt(o,e.scopedSlots,c.$slots=Lt(i,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return zt(o,e.scopedSlots,this.slots())}}),d&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=zt(o,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,i,n){var a=xt(l,e,t,i,n,p);return a&&!r(a)&&(a.fnScopeId=u._scopeId,a.fnContext=o),a}:this._c=function(e,t,i,n){return xt(l,e,t,i,n,p)}}function Hn(e,t,i,n,r){var o=ve(e);return o.fnContext=i,o.fnOptions=n,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function zn(e,t){for(var i in t)e[k(i)]=t[i]}function Bn(e){return e.name||e.__name||e._componentTag}Rt(qn.prototype);var Gn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Gn.prepatch(i,i)}else(e.componentInstance=function(e,t){var i={_isComponent:!0,_parentVnode:e,parent:t},n=e.data.inlineTemplate;return a(n)&&(i.render=n.render,i.staticRenderFns=n.staticRenderFns),new e.componentOptions.Ctor(i)}(e,li)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var i=t.componentOptions;!function(e,t,i,r,o){var a=r.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),c=!!(o||e.$options._renderChildren||l),u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o;var d=r.data.attrs||n;e._attrsProxy&&Wt(e._attrsProxy,d,u.data&&u.data.attrs||n,e,"$attrs")&&(c=!0),e.$attrs=d,i=i||n;var p=e.$options._parentListeners;if(e._listenersProxy&&Wt(e._listenersProxy,i,p||n,e,"$listeners"),e.$listeners=e.$options._parentListeners=i,si(e,i,p),t&&e.$options.props){Te(!1);for(var h=e._props,f=e.$options._propKeys||[],g=0;g<f.length;g++){var m=f[g],v=e.$options.props;h[m]=nr(m,v,t,e)}Te(!0),e.$options.propsData=t}c&&(e.$slots=Lt(o,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,i.propsData,i.listeners,t,i.children)},insert:function(e){var t,i=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,hi(n,"mounted")),e.data.keepAlive&&(i._isMounted?((t=n)._inactive=!1,gi.push(t)):di(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?pi(t,!0):t.$destroy())}},Un=Object.keys(Gn);function Wn(e,t,i,l,c){if(!o(e)){var d=i.$options._base;if(u(e)&&(e=d.extend(e)),"function"==typeof e){var p;if(o(e.cid)&&(e=function(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var i=ti;if(i&&a(e.owners)&&-1===e.owners.indexOf(i)&&e.owners.push(i),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(i&&!a(e.owners)){var n=e.owners=[i],r=!0,l=null,c=null;i.$on("hook:destroyed",(function(){return w(n,i)}));var d=function(e){for(var t=0,i=n.length;t<i;t++)n[t].$forceUpdate();e&&(n.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},p=R((function(i){e.resolved=ii(i,t),r?n.length=0:d(!0)})),h=R((function(t){a(e.errorComp)&&(e.error=!0,d(!0))})),g=e(p,h);return u(g)&&(f(g)?o(e.resolved)&&g.then(p,h):f(g.component)&&(g.component.then(p,h),a(g.error)&&(e.errorComp=ii(g.error,t)),a(g.loading)&&(e.loadingComp=ii(g.loading,t),0===g.delay?e.loading=!0:l=setTimeout((function(){l=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),a(g.timeout)&&(c=setTimeout((function(){c=null,o(e.resolved)&&h(null)}),g.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}(p=e,d),void 0===e))return function(e,t,i,n,r){var o=ge();return o.asyncFactory=e,o.asyncMeta={data:t,context:i,children:n,tag:r},o}(p,t,i,l,c);t=t||{},Ln(e),a(t.model)&&function(e,t){var i=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[i]=t.model.value;var o=t.on||(t.on={}),s=o[n],l=t.model.callback;a(s)?(r(s)?-1===s.indexOf(l):s!==l)&&(o[n]=[l].concat(s)):o[n]=l}(e.options,t);var h=function(e,t,i){var n=t.options.props;if(!o(n)){var r={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var c in n){var u=j(c);mt(r,l,c,u,!0)||mt(r,s,c,u,!1)}return r}}(t,e);if(s(e.options.functional))return function(e,t,i,o,s){var l=e.options,c={},u=l.props;if(a(u))for(var d in u)c[d]=nr(d,u,t||n);else a(i.attrs)&&zn(c,i.attrs),a(i.props)&&zn(c,i.props);var p=new qn(i,c,s,o,e),h=l.render.call(null,p._c,p);if(h instanceof fe)return Hn(h,i,p.parent,l);if(r(h)){for(var f=vt(h)||[],g=new Array(f.length),m=0;m<f.length;m++)g[m]=Hn(f[m],i,p.parent,l);return g}}(e,h,t,i,l);var g=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),i=0;i<Un.length;i++){var n=Un[i],r=t[n],o=Gn[n];r===o||r&&r._merged||(t[n]=r?Yn(o,r):o)}}(t);var v=Bn(e.options)||c;return new fe("vue-component-".concat(e.cid).concat(v?"-".concat(v):""),t,void 0,void 0,void 0,i,{Ctor:e,propsData:h,listeners:g,tag:c,children:l},p)}}}function Yn(e,t){var i=function(i,n){e(i,n),t(i,n)};return i._merged=!0,i}var Vn=O,Kn=B.optionMergeStrategies;function Xn(e,t,i){if(void 0===i&&(i=!0),!t)return e;for(var n,r,o,a=ue?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)"__ob__"!==(n=a[s])&&(r=e[n],o=t[n],i&&x(e,n)?r!==o&&p(r)&&p(o)&&Xn(r,o):Pe(e,n,o));return e}function Jn(e,t,i){return i?function(){var n=c(t)?t.call(i,i):t,r=c(e)?e.call(i,i):e;return n?Xn(n,r):r}:t?e?function(){return Xn(c(t)?t.call(this,this):t,c(e)?e.call(this,this):e)}:t:e}function Qn(e,t){var i=t?e?e.concat(t):r(t)?t:[t]:e;return i?function(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(i):i}function Zn(e,t,i,n){var r=Object.create(e||null);return t?I(r,t):r}Kn.data=function(e,t,i){return i?Jn(e,t,i):t&&"function"!=typeof t?e:Jn(e,t)},z.forEach((function(e){Kn[e]=Qn})),H.forEach((function(e){Kn[e+"s"]=Zn})),Kn.watch=function(e,t,i,n){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var a in I(o,e),t){var s=o[a],l=t[a];s&&!r(s)&&(s=[s]),o[a]=s?s.concat(l):r(l)?l:[l]}return o},Kn.props=Kn.methods=Kn.inject=Kn.computed=function(e,t,i,n){if(!e)return t;var r=Object.create(null);return I(r,e),t&&I(r,t),r},Kn.provide=function(e,t){return e?function(){var i=Object.create(null);return Xn(i,c(e)?e.call(this):e),t&&Xn(i,c(t)?t.call(this):t,!1),i}:t};var er=function(e,t){return void 0===t?e:t};function tr(e,t,i){if(c(t)&&(t=t.options),function(e,t){var i=e.props;if(i){var n,o,a={};if(r(i))for(n=i.length;n--;)"string"==typeof(o=i[n])&&(a[k(o)]={type:null});else if(p(i))for(var s in i)o=i[s],a[k(s)]=p(o)?o:{type:o};e.props=a}}(t),function(e,t){var i=e.inject;if(i){var n=e.inject={};if(r(i))for(var o=0;o<i.length;o++)n[i[o]]={from:i[o]};else if(p(i))for(var a in i){var s=i[a];n[a]=p(s)?I({from:a},s):{from:s}}}}(t),function(e){var t=e.directives;if(t)for(var i in t){var n=t[i];c(n)&&(t[i]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=tr(e,t.extends,i)),t.mixins))for(var n=0,o=t.mixins.length;n<o;n++)e=tr(e,t.mixins[n],i);var a,s={};for(a in e)l(a);for(a in t)x(e,a)||l(a);function l(n){var r=Kn[n]||er;s[n]=r(e[n],t[n],i,n)}return s}function ir(e,t,i,n){if("string"==typeof i){var r=e[t];if(x(r,i))return r[i];var o=k(i);if(x(r,o))return r[o];var a=S(o);return x(r,a)?r[a]:r[i]||r[o]||r[a]}}function nr(e,t,i,n){var r=t[e],o=!x(i,e),a=i[e],s=sr(Boolean,r.type);if(s>-1)if(o&&!x(r,"default"))a=!1;else if(""===a||a===j(e)){var l=sr(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(e,t,i){if(x(t,"default")){var n=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[i]&&void 0!==e._props[i]?e._props[i]:c(n)&&"Function"!==or(t.type)?n.call(e):n}}(n,r,e);var u=De;Te(!0),Oe(a),Te(u)}return a}var rr=/^\s*function (\w+)/;function or(e){var t=e&&e.toString().match(rr);return t?t[1]:""}function ar(e,t){return or(e)===or(t)}function sr(e,t){if(!r(t))return ar(t,e)?0:-1;for(var i=0,n=t.length;i<n;i++)if(ar(t[i],e))return i;return-1}function lr(e){this._init(e)}function cr(e){return e&&(Bn(e.Ctor.options)||e.tag)}function ur(e,t){return r(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(i=e,!("[object RegExp]"!==d.call(i))&&e.test(t));var i}function dr(e,t){var i=e.cache,n=e.keys,r=e._vnode;for(var o in i){var a=i[o];if(a){var s=a.name;s&&!t(s)&&pr(i,o,n,r)}}}function pr(e,t,i,n){var r=e[t];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),e[t]=null,w(i,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Rn++,t._isVue=!0,t.__v_skip=!0,t._scope=new Fi(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){var i=e.$options=Object.create(e.constructor.options),n=t._parentVnode;i.parent=t.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,t.render&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=tr(Ln(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,i=t.parent;if(i&&!t.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(e)}e.$parent=i,e.$root=i?i.$root:e,e.$children=[],e.$refs={},e._provided=i?i._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&si(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=Lt(t._renderChildren,r),e.$scopedSlots=i?zt(e.$parent,i.data.scopedSlots,e.$slots):n,e._c=function(t,i,n,r){return xt(e,t,i,n,r,!1)},e.$createElement=function(t,i,n,r){return xt(e,t,i,n,r,!0)};var o=i&&i.data;Ne(e,"$attrs",o&&o.attrs||n,null,!0),Ne(e,"$listeners",t._parentListeners||n,null,!0)}(t),hi(t,"beforeCreate",void 0,!1),function(e){var t=Fn(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(i){Ne(e,i,t[i])})),Te(!0))}(t),function(e){var t=e.$options;if(t.props&&function(e,t){var i=e.$options.propsData||{},n=e._props=Le({}),r=e.$options._propKeys=[];!e.$parent||Te(!1);var o=function(o){r.push(o);var a=nr(o,t,i,e);Ne(n,o,a),o in e||In(e,"_props",o)};for(var a in t)o(a);Te(!0)}(e,t.props),function(e){var t=e.$options,i=t.setup;if(i){var n=e._setupContext=Ut(e);he(e),$e();var r=Wi(i,null,[e._props||Le({}),n],e,"setup");if(Ce(),he(),c(r))t.render=r;else if(u(r))if(e._setupState=r,r.__sfc){var o=e._setupProxy={};for(var a in r)"__sfc"!==a&&tt(o,r,a)}else for(var a in r)U(a)||tt(e,r,a)}}(e),t.methods&&function(e,t){for(var i in e.$options.props,t)e[i]="function"!=typeof t[i]?O:D(t[i],e)}(e,t.methods),t.data)!function(e){var t=e.$options.data;p(t=e._data=c(t)?function(e,t){$e();try{return e.call(t,t)}catch(e){return Ui(e,t,"data()"),{}}finally{Ce()}}(t,e):t||{})||(t={});for(var i=Object.keys(t),n=e.$options.props,r=(e.$options.methods,i.length);r--;){var o=i[r];n&&x(n,o)||U(o)||In(e,"_data",o)}var a=Oe(t);a&&a.vmCount++}(e);else{var i=Oe(e._data={});i&&i.vmCount++}t.computed&&function(e,t){var i=e._computedWatchers=Object.create(null),n=ae();for(var r in t){var o=t[r],a=c(o)?o:o.get;n||(i[r]=new Dn(e,a||O,O,An)),r in e||On(e,r,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var i in t){var n=t[i];if(r(n))for(var o=0;o<n.length;o++)Mn(e,i,n[o]);else Mn(e,i,n)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;if(t){var i=c(t)?t.call(e):t;if(!u(i))return;for(var n=zi(e),r=ue?Reflect.ownKeys(i):Object.keys(i),o=0;o<r.length;o++){var a=r[o];Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(i,a))}}}(t),hi(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(lr),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Pe,e.prototype.$delete=Me,e.prototype.$watch=function(e,t,i){var n=this;if(p(t))return Mn(n,e,t,i);(i=i||{}).user=!0;var r=new Dn(n,e,t,i);if(i.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');$e(),Wi(t,n,[r.value],n,o),Ce()}return function(){r.teardown()}}}(lr),function(e){var t=/^hook:/;e.prototype.$on=function(e,i){var n=this;if(r(e))for(var o=0,a=e.length;o<a;o++)n.$on(e[o],i);else(n._events[e]||(n._events[e]=[])).push(i),t.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var i=this;function n(){i.$off(e,n),t.apply(i,arguments)}return n.fn=t,i.$on(e,n),i},e.prototype.$off=function(e,t){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(r(e)){for(var n=0,o=e.length;n<o;n++)i.$off(e[n],t);return i}var a,s=i._events[e];if(!s)return i;if(!t)return i._events[e]=null,i;for(var l=s.length;l--;)if((a=s[l])===t||a.fn===t){s.splice(l,1);break}return i},e.prototype.$emit=function(e){var t=this,i=t._events[e];if(i){i=i.length>1?T(i):i;for(var n=T(arguments,1),r='event handler for "'.concat(e,'"'),o=0,a=i.length;o<a;o++)Wi(i[o],t,n,t,r)}return t}}(lr),function(e){e.prototype._update=function(e,t){var i=this,n=i.$el,r=i._vnode,o=ci(i);i._vnode=e,i.$el=r?i.__patch__(r,e):i.__patch__(i.$el,e,t,!1),o(),n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i);for(var a=i;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){hi(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||w(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),hi(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(lr),function(e){Rt(e.prototype),e.prototype.$nextTick=function(e){return on(e,this)},e.prototype._render=function(){var e,t=this,i=t.$options,n=i.render,o=i._parentVnode;o&&t._isMounted&&(t.$scopedSlots=zt(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Vt(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;try{he(t),ti=t,e=n.call(t._renderProxy,t.$createElement)}catch(i){Ui(i,t,"render"),e=t._vnode}finally{ti=null,he()}return r(e)&&1===e.length&&(e=e[0]),e instanceof fe||(e=ge()),e.parent=o,e}}(lr);var hr=[String,RegExp,Array],fr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:hr,exclude:hr,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,i=e.keys,n=e.vnodeToCache,r=e.keyToCache;if(n){var o=n.tag,a=n.componentInstance,s=n.componentOptions;t[r]={name:cr(s),tag:o,componentInstance:a},i.push(r),this.max&&i.length>parseInt(this.max)&&pr(t,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)pr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){dr(e,(function(e){return ur(t,e)}))})),this.$watch("exclude",(function(t){dr(e,(function(e){return!ur(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=ni(e),i=t&&t.componentOptions;if(i){var n=cr(i),r=this.include,o=this.exclude;if(r&&(!n||!ur(r,n))||o&&n&&ur(o,n))return t;var a=this.cache,s=this.keys,l=null==t.key?i.Ctor.cid+(i.tag?"::".concat(i.tag):""):t.key;a[l]?(t.componentInstance=a[l].componentInstance,w(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:Vn,extend:I,mergeOptions:tr,defineReactive:Ne},e.set=Pe,e.delete=Me,e.nextTick=on,e.observable=function(e){return Oe(e),e},e.options=Object.create(null),H.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,fr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var i=T(arguments,1);return i.unshift(this),c(e.install)?e.install.apply(e,i):c(e)&&e.apply(null,i),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=tr(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var i=this,n=i.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var o=Bn(e)||Bn(i.options),a=function(e){this._init(e)};return(a.prototype=Object.create(i.prototype)).constructor=a,a.cid=t++,a.options=tr(i.options,e),a.super=i,a.options.props&&function(e){var t=e.options.props;for(var i in t)In(e.prototype,"_props",i)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var i in t)On(e.prototype,i,t[i])}(a),a.extend=i.extend,a.mixin=i.mixin,a.use=i.use,H.forEach((function(e){a[e]=i[e]})),o&&(a.options.components[o]=a),a.superOptions=i.options,a.extendOptions=e,a.sealedOptions=I({},a.options),r[n]=a,a}}(e),function(e){H.forEach((function(t){e[t]=function(e,i){return i?("component"===t&&p(i)&&(i.name=i.name||e,i=this.options._base.extend(i)),"directive"===t&&c(i)&&(i={bind:i,update:i}),this.options[t+"s"][e]=i,i):this.options[t+"s"][e]}}))}(e)}(lr),Object.defineProperty(lr.prototype,"$isServer",{get:ae}),Object.defineProperty(lr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(lr,"FunctionalRenderContext",{value:qn}),lr.version=$n;var gr=v("style,class"),mr=v("input,textarea,option,select,progress"),vr=function(e,t,i){return"value"===i&&mr(e)&&"button"!==t||"selected"===i&&"option"===e||"checked"===i&&"input"===e||"muted"===i&&"video"===e},yr=v("contenteditable,draggable,spellcheck"),br=v("events,caret,typing,plaintext-only"),wr=function(e,t){return kr(t)||"false"===t?"false":"contenteditable"===e&&br(t)?t:"true"},_r=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),xr="http://www.w3.org/1999/xlink",$r=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Cr=function(e){return $r(e)?e.slice(6,e.length):""},kr=function(e){return null==e||!1===e};function Sr(e,t){return{staticClass:Er(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Er(e,t){return e?t?e+" "+t:e:t||""}function jr(e){return Array.isArray(e)?function(e){for(var t,i="",n=0,r=e.length;n<r;n++)a(t=jr(e[n]))&&""!==t&&(i&&(i+=" "),i+=t);return i}(e):u(e)?function(e){var t="";for(var i in e)e[i]&&(t&&(t+=" "),t+=i);return t}(e):"string"==typeof e?e:""}var Dr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Tr=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ir=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ar=function(e){return Tr(e)||Ir(e)};function Or(e){return Ir(e)?"svg":"math"===e?"math":void 0}var Nr=Object.create(null),Pr=v("text,number,password,search,email,tel,url");function Mr(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var Fr=Object.freeze({__proto__:null,createElement:function(e,t){var i=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i},createElementNS:function(e,t){return document.createElementNS(Dr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,i){e.insertBefore(t,i)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Rr={create:function(e,t){Lr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Lr(e,!0),Lr(t))},destroy:function(e){Lr(e,!0)}};function Lr(e,t){var i=e.data.ref;if(a(i)){var n=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(i))Wi(i,n,[s],n,"template ref function");else{var u=e.data.refInFor,d="string"==typeof i||"number"==typeof i,p=Ve(i),h=n.$refs;if(d||p)if(u){var f=d?h[i]:i.value;t?r(f)&&w(f,o):r(f)?f.includes(o)||f.push(o):d?(h[i]=[o],qr(n,i,h[i])):i.value=[o]}else if(d){if(t&&h[i]!==o)return;h[i]=l,qr(n,i,s)}else if(p){if(t&&i.value!==o)return;i.value=s}}}}function qr(e,t,i){var n=e._setupState;n&&x(n,t)&&(Ve(n[t])?n[t].value=i:n[t]=i)}var Hr=new fe("",{},[]),zr=["create","activate","update","remove","destroy"];function Br(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var i,n=a(i=e.data)&&a(i=i.attrs)&&i.type,r=a(i=t.data)&&a(i=i.attrs)&&i.type;return n===r||Pr(n)&&Pr(r)}(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function Gr(e,t,i){var n,r,o={};for(n=t;n<=i;++n)a(r=e[n].key)&&(o[r]=n);return o}var Ur={create:Wr,update:Wr,destroy:function(e){Wr(e,Hr)}};function Wr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var i,n,r,o=e===Hr,a=t===Hr,s=Vr(e.data.directives,e.context),l=Vr(t.data.directives,t.context),c=[],u=[];for(i in l)n=s[i],r=l[i],n?(r.oldValue=n.value,r.oldArg=n.arg,Xr(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(Xr(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var i=0;i<c.length;i++)Xr(c[i],"inserted",t,e)};o?gt(t,"insert",d):d()}if(u.length&>(t,"postpatch",(function(){for(var i=0;i<u.length;i++)Xr(u[i],"componentUpdated",t,e)})),!o)for(i in s)l[i]||Xr(s[i],"unbind",e,e,a)}(e,t)}var Yr=Object.create(null);function Vr(e,t){var i,n,r=Object.create(null);if(!e)return r;for(i=0;i<e.length;i++){if((n=e[i]).modifiers||(n.modifiers=Yr),r[Kr(n)]=n,t._setupState&&t._setupState.__sfc){var o=n.def||ir(t,"_setupState","v-"+n.name);n.def="function"==typeof o?{bind:o,update:o}:o}n.def=n.def||ir(t.$options,"directives",n.name)}return r}function Kr(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function Xr(e,t,i,n,r){var o=e.def&&e.def[t];if(o)try{o(i.elm,e,i,n,r)}catch(n){Ui(n,i.context,"directive ".concat(e.name," ").concat(t," hook"))}}var Jr=[Rr,Ur];function Qr(e,t){var i=t.componentOptions;if(!(a(i)&&!1===i.Ctor.options.inheritAttrs||o(e.data.attrs)&&o(t.data.attrs))){var n,r,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.attrs=I({},u)),u)r=u[n],c[n]!==r&&Zr(l,n,r,t.data.pre);for(n in(J||Z)&&u.value!==c.value&&Zr(l,"value",u.value),c)o(u[n])&&($r(n)?l.removeAttributeNS(xr,Cr(n)):yr(n)||l.removeAttribute(n))}}function Zr(e,t,i,n){n||e.tagName.indexOf("-")>-1?eo(e,t,i):_r(t)?kr(i)?e.removeAttribute(t):(i="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,i)):yr(t)?e.setAttribute(t,wr(t,i)):$r(t)?kr(i)?e.removeAttributeNS(xr,Cr(t)):e.setAttributeNS(xr,t,i):eo(e,t,i)}function eo(e,t,i){if(kr(i))e.removeAttribute(t);else{if(J&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==i&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,i)}}var to={create:Qr,update:Qr};function io(e,t){var i=t.elm,n=t.data,r=e.data;if(!(o(n.staticClass)&&o(n.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=function(e){for(var t=e.data,i=e,n=e;a(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=Sr(n.data,t));for(;a(i=i.parent);)i&&i.data&&(t=Sr(t,i.data));return r=t.staticClass,o=t.class,a(r)||a(o)?Er(r,jr(o)):"";var r,o}(t),l=i._transitionClasses;a(l)&&(s=Er(s,jr(l))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var no,ro,oo,ao,so,lo,co={create:io,update:io},uo=/[\w).+\-_$\]]/;function po(e){var t,i,n,r,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,p=0,h=0;for(n=0;n<e.length;n++)if(i=t,t=e.charCodeAt(n),a)39===t&&92!==i&&(a=!1);else if(s)34===t&&92!==i&&(s=!1);else if(l)96===t&&92!==i&&(l=!1);else if(c)47===t&&92!==i&&(c=!1);else if(124!==t||124===e.charCodeAt(n+1)||124===e.charCodeAt(n-1)||u||d||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var f=n-1,g=void 0;f>=0&&" "===(g=e.charAt(f));f--);g&&uo.test(g)||(c=!0)}}else void 0===r?(h=n+1,r=e.slice(0,n).trim()):m();function m(){(o||(o=[])).push(e.slice(h,n).trim()),h=n+1}if(void 0===r?r=e.slice(0,n).trim():0!==h&&m(),o)for(n=0;n<o.length;n++)r=ho(r,o[n]);return r}function ho(e,t){var i=t.indexOf("(");if(i<0)return'_f("'.concat(t,'")(').concat(e,")");var n=t.slice(0,i),r=t.slice(i+1);return'_f("'.concat(n,'")(').concat(e).concat(")"!==r?","+r:r)}function fo(e,t){console.error("[Vue compiler]: ".concat(e))}function go(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function mo(e,t,i,n,r){(e.props||(e.props=[])).push(ko({name:t,value:i,dynamic:r},n)),e.plain=!1}function vo(e,t,i,n,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(ko({name:t,value:i,dynamic:r},n)),e.plain=!1}function yo(e,t,i,n){e.attrsMap[t]=i,e.attrsList.push(ko({name:t,value:i},n))}function bo(e,t,i,n,r,o,a,s){(e.directives||(e.directives=[])).push(ko({name:t,rawName:i,value:n,arg:r,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function wo(e,t,i){return i?"_p(".concat(t,',"').concat(e,'")'):e+t}function _o(e,t,i,r,o,a,s,l){var c;(r=r||n).right?l?t="(".concat(t,")==='click'?'contextmenu':(").concat(t,")"):"click"===t&&(t="contextmenu",delete r.right):r.middle&&(l?t="(".concat(t,")==='click'?'mouseup':(").concat(t,")"):"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=wo("!",t,l)),r.once&&(delete r.once,t=wo("~",t,l)),r.passive&&(delete r.passive,t=wo("&",t,l)),r.native?(delete r.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=ko({value:i.trim(),dynamic:l},s);r!==n&&(u.modifiers=r);var d=c[t];Array.isArray(d)?o?d.unshift(u):d.push(u):c[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function xo(e,t,i){var n=$o(e,":"+t)||$o(e,"v-bind:"+t);if(null!=n)return po(n);if(!1!==i){var r=$o(e,t);if(null!=r)return JSON.stringify(r)}}function $o(e,t,i){var n;if(null!=(n=e.attrsMap[t]))for(var r=e.attrsList,o=0,a=r.length;o<a;o++)if(r[o].name===t){r.splice(o,1);break}return i&&delete e.attrsMap[t],n}function Co(e,t){for(var i=e.attrsList,n=0,r=i.length;n<r;n++){var o=i[n];if(t.test(o.name))return i.splice(n,1),o}}function ko(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function So(e,t,i){var n=i||{},r=n.number,o="$$v",a=o;n.trim&&(a="(typeof ".concat(o," === 'string'")+"? ".concat(o,".trim()")+": ".concat(o,")")),r&&(a="_n(".concat(a,")"));var s=Eo(t,a);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(o,") {").concat(s,"}")}}function Eo(e,t){var i=function(e){if(e=e.trim(),no=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<no-1)return(ao=e.lastIndexOf("."))>-1?{exp:e.slice(0,ao),key:'"'+e.slice(ao+1)+'"'}:{exp:e,key:null};for(ro=e,ao=so=lo=0;!Do();)To(oo=jo())?Ao(oo):91===oo&&Io(oo);return{exp:e.slice(0,so),key:e.slice(so+1,lo)}}(e);return null===i.key?"".concat(e,"=").concat(t):"$set(".concat(i.exp,", ").concat(i.key,", ").concat(t,")")}function jo(){return ro.charCodeAt(++ao)}function Do(){return ao>=no}function To(e){return 34===e||39===e}function Io(e){var t=1;for(so=ao;!Do();)if(To(e=jo()))Ao(e);else if(91===e&&t++,93===e&&t--,0===t){lo=ao;break}}function Ao(e){for(var t=e;!Do()&&(e=jo())!==t;);}var Oo,No="__r",Po="__c";function Mo(e,t,i){var n=Oo;return function r(){null!==t.apply(null,arguments)&&Lo(e,r,i,n)}}var Fo=Xi&&!(ie&&Number(ie[1])<=53);function Ro(e,t,i,n){if(Fo){var r=wi,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Oo.addEventListener(e,t,re?{capture:i,passive:n}:i)}function Lo(e,t,i,n){(n||Oo).removeEventListener(e,t._wrapper||t,i)}function qo(e,t){if(!o(e.data.on)||!o(t.data.on)){var i=t.data.on||{},n=e.data.on||{};Oo=t.elm||e.elm,function(e){if(a(e[No])){var t=J?"change":"input";e[t]=[].concat(e[No],e[t]||[]),delete e[No]}a(e[Po])&&(e.change=[].concat(e[Po],e.change||[]),delete e[Po])}(i),ft(i,n,Ro,Lo,Mo,t.context),Oo=void 0}}var Ho,zo={create:qo,update:qo,destroy:function(e){return qo(e,Hr)}};function Bo(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var i,n,r=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(i in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=I({},c)),l)i in c||(r[i]="");for(i in c){if(n=c[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),n===l[i])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===i&&"PROGRESS"!==r.tagName){r._value=n;var u=o(n)?"":String(n);Go(r,u)&&(r.value=u)}else if("innerHTML"===i&&Ir(r.tagName)&&o(r.innerHTML)){(Ho=Ho||document.createElement("div")).innerHTML="<svg>".concat(n,"</svg>");for(var d=Ho.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;d.firstChild;)r.appendChild(d.firstChild)}else if(n!==l[i])try{r[i]=n}catch(e){}}}}function Go(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var i=!0;try{i=document.activeElement!==e}catch(e){}return i&&e.value!==t}(e,t)||function(e,t){var i=e.value,n=e._vModifiers;if(a(n)){if(n.number)return m(i)!==m(t);if(n.trim)return i.trim()!==t.trim()}return i!==t}(e,t))}var Uo={create:Bo,update:Bo},Wo=$((function(e){var t={},i=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Yo(e){var t=Vo(e.style);return e.staticStyle?I(e.staticStyle,t):t}function Vo(e){return Array.isArray(e)?A(e):"string"==typeof e?Wo(e):e}var Ko,Xo=/^--/,Jo=/\s*!important$/,Qo=function(e,t,i){if(Xo.test(t))e.style.setProperty(t,i);else if(Jo.test(i))e.style.setProperty(j(t),i.replace(Jo,""),"important");else{var n=ea(t);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)e.style[n]=i[r];else e.style[n]=i}},Zo=["Webkit","Moz","ms"],ea=$((function(e){if(Ko=Ko||document.createElement("div").style,"filter"!==(e=k(e))&&e in Ko)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<Zo.length;i++){var n=Zo[i]+t;if(n in Ko)return n}}));function ta(e,t){var i=t.data,n=e.data;if(!(o(i.staticStyle)&&o(i.style)&&o(n.staticStyle)&&o(n.style))){var r,s,l=t.elm,c=n.staticStyle,u=n.normalizedStyle||n.style||{},d=c||u,p=Vo(t.data.style)||{};t.data.normalizedStyle=a(p.__ob__)?I({},p):p;var h=function(e,t){for(var i,n={},r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(i=Yo(r.data))&&I(n,i);(i=Yo(e.data))&&I(n,i);for(var o=e;o=o.parent;)o.data&&(i=Yo(o.data))&&I(n,i);return n}(t);for(s in d)o(h[s])&&Qo(l,s,"");for(s in h)(r=h[s])!==d[s]&&Qo(l,s,null==r?"":r)}}var ia={create:ta,update:ta},na=/\s+/;function ra(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(na).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var i=" ".concat(e.getAttribute("class")||""," ");i.indexOf(" "+t+" ")<0&&e.setAttribute("class",(i+t).trim())}}function oa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(na).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var i=" ".concat(e.getAttribute("class")||""," "),n=" "+t+" ";i.indexOf(n)>=0;)i=i.replace(n," ");(i=i.trim())?e.setAttribute("class",i):e.removeAttribute("class")}}function aa(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&I(t,sa(e.name||"v")),I(t,e),t}return"string"==typeof e?sa(e):void 0}}var sa=$((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),la=K&&!Q,ca="transition",ua="animation",da="transition",pa="transitionend",ha="animation",fa="animationend";la&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(da="WebkitTransition",pa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ha="WebkitAnimation",fa="webkitAnimationEnd"));var ga=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ma(e){ga((function(){ga(e)}))}function va(e,t){var i=e._transitionClasses||(e._transitionClasses=[]);i.indexOf(t)<0&&(i.push(t),ra(e,t))}function ya(e,t){e._transitionClasses&&w(e._transitionClasses,t),oa(e,t)}function ba(e,t,i){var n=_a(e,t),r=n.type,o=n.timeout,a=n.propCount;if(!r)return i();var s=r===ca?pa:fa,l=0,c=function(){e.removeEventListener(s,u),i()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),e.addEventListener(s,u)}var wa=/\b(transform|all)(,|$)/;function _a(e,t){var i,n=window.getComputedStyle(e),r=(n[da+"Delay"]||"").split(", "),o=(n[da+"Duration"]||"").split(", "),a=xa(r,o),s=(n[ha+"Delay"]||"").split(", "),l=(n[ha+"Duration"]||"").split(", "),c=xa(s,l),u=0,d=0;return t===ca?a>0&&(i=ca,u=a,d=o.length):t===ua?c>0&&(i=ua,u=c,d=l.length):d=(i=(u=Math.max(a,c))>0?a>c?ca:ua:null)?i===ca?o.length:l.length:0,{type:i,timeout:u,propCount:d,hasTransform:i===ca&&wa.test(n[da+"Property"])}}function xa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,i){return $a(t)+$a(e[i])})))}function $a(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ca(e,t){var i=e.elm;a(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var n=aa(e.data.transition);if(!o(n)&&!a(i._enterCb)&&1===i.nodeType){for(var r=n.css,s=n.type,l=n.enterClass,d=n.enterToClass,p=n.enterActiveClass,h=n.appearClass,f=n.appearToClass,g=n.appearActiveClass,v=n.beforeEnter,y=n.enter,b=n.afterEnter,w=n.enterCancelled,_=n.beforeAppear,x=n.appear,$=n.afterAppear,C=n.appearCancelled,k=n.duration,S=li,E=li.$vnode;E&&E.parent;)S=E.context,E=E.parent;var j=!S._isMounted||!e.isRootInsert;if(!j||x||""===x){var D=j&&h?h:l,T=j&&g?g:p,I=j&&f?f:d,A=j&&_||v,O=j&&c(x)?x:y,N=j&&$||b,P=j&&C||w,M=m(u(k)?k.enter:k),F=!1!==r&&!Q,L=Ea(O),q=i._enterCb=R((function(){F&&(ya(i,I),ya(i,T)),q.cancelled?(F&&ya(i,D),P&&P(i)):N&&N(i),i._enterCb=null}));e.data.show||gt(e,"insert",(function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),O&&O(i,q)})),A&&A(i),F&&(va(i,D),va(i,T),ma((function(){ya(i,D),q.cancelled||(va(i,I),L||(Sa(M)?setTimeout(q,M):ba(i,s,q)))}))),e.data.show&&(t&&t(),O&&O(i,q)),F||L||q()}}}function ka(e,t){var i=e.elm;a(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var n=aa(e.data.transition);if(o(n)||1!==i.nodeType)return t();if(!a(i._leaveCb)){var r=n.css,s=n.type,l=n.leaveClass,c=n.leaveToClass,d=n.leaveActiveClass,p=n.beforeLeave,h=n.leave,f=n.afterLeave,g=n.leaveCancelled,v=n.delayLeave,y=n.duration,b=!1!==r&&!Q,w=Ea(h),_=m(u(y)?y.leave:y),x=i._leaveCb=R((function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),b&&(ya(i,c),ya(i,d)),x.cancelled?(b&&ya(i,l),g&&g(i)):(t(),f&&f(i)),i._leaveCb=null}));v?v($):$()}function $(){x.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),b&&(va(i,l),va(i,d),ma((function(){ya(i,l),x.cancelled||(va(i,c),w||(Sa(_)?setTimeout(x,_):ba(i,s,x)))}))),h&&h(i,x),b||w||x())}}function Sa(e){return"number"==typeof e&&!isNaN(e)}function Ea(e){if(o(e))return!1;var t=e.fns;return a(t)?Ea(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ja(e,t){!0!==t.data.show&&Ca(t)}var Da=function(e){var t,i,n={},c=e.modules,u=e.nodeOps;for(t=0;t<zr.length;++t)for(n[zr[t]]=[],i=0;i<c.length;++i)a(c[i][zr[t]])&&n[zr[t]].push(c[i][zr[t]]);function d(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function p(e,t,i,r,o,l,c){if(a(e.elm)&&a(l)&&(e=l[c]=ve(e)),e.isRootInsert=!o,!function(e,t,i,r){var o=e.data;if(a(o)){var l=a(e.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(e,!1),a(e.componentInstance))return h(e,t),f(i,e.elm,r),s(l)&&function(e,t,i,r){for(var o,s=e;s.componentInstance;)if(a(o=(s=s.componentInstance._vnode).data)&&a(o=o.transition)){for(o=0;o<n.activate.length;++o)n.activate[o](Hr,s);t.push(s);break}f(i,e.elm,r)}(e,t,i,r),!0}}(e,t,i,r)){var d=e.data,p=e.children,m=e.tag;a(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),b(e),g(e,p,t),a(d)&&y(e,t),f(i,e.elm,r)):s(e.isComment)?(e.elm=u.createComment(e.text),f(i,e.elm,r)):(e.elm=u.createTextNode(e.text),f(i,e.elm,r))}}function h(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(y(e,t),b(e)):(Lr(e),t.push(e))}function f(e,t,i){a(e)&&(a(i)?u.parentNode(i)===e&&u.insertBefore(e,t,i):u.appendChild(e,t))}function g(e,t,i){if(r(t))for(var n=0;n<t.length;++n)p(t[n],i,e.elm,null,!0,t,n);else l(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function y(e,i){for(var r=0;r<n.create.length;++r)n.create[r](Hr,e);a(t=e.data.hook)&&(a(t.create)&&t.create(Hr,e),a(t.insert)&&i.push(e))}function b(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var i=e;i;)a(t=i.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),i=i.parent;a(t=li)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function w(e,t,i,n,r,o){for(;n<=r;++n)p(i[n],o,e,t,!1,i,n)}function _(e){var t,i,r=e.data;if(a(r))for(a(t=r.hook)&&a(t=t.destroy)&&t(e),t=0;t<n.destroy.length;++t)n.destroy[t](e);if(a(t=e.children))for(i=0;i<e.children.length;++i)_(e.children[i])}function x(e,t,i){for(;t<=i;++t){var n=e[t];a(n)&&(a(n.tag)?($(n),_(n)):d(n.elm))}}function $(e,t){if(a(t)||a(e.data)){var i,r=n.remove.length+1;for(a(t)?t.listeners+=r:t=function(e,t){function i(){0==--i.listeners&&d(e)}return i.listeners=t,i}(e.elm,r),a(i=e.componentInstance)&&a(i=i._vnode)&&a(i.data)&&$(i,t),i=0;i<n.remove.length;++i)n.remove[i](e,t);a(i=e.data.hook)&&a(i=i.remove)?i(e,t):t()}else d(e.elm)}function C(e,t,i,n){for(var r=i;r<n;r++){var o=t[r];if(a(o)&&Br(e,o))return r}}function k(e,t,i,r,l,c){if(e!==t){a(t.elm)&&a(r)&&(t=r[l]=ve(t));var d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?j(e.elm,t,i):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;a(f)&&a(h=f.hook)&&a(h=h.prepatch)&&h(e,t);var g=e.children,v=t.children;if(a(f)&&m(t)){for(h=0;h<n.update.length;++h)n.update[h](e,t);a(h=f.hook)&&a(h=h.update)&&h(e,t)}o(t.text)?a(g)&&a(v)?g!==v&&function(e,t,i,n,r){for(var s,l,c,d=0,h=0,f=t.length-1,g=t[0],m=t[f],v=i.length-1,y=i[0],b=i[v],_=!r;d<=f&&h<=v;)o(g)?g=t[++d]:o(m)?m=t[--f]:Br(g,y)?(k(g,y,n,i,h),g=t[++d],y=i[++h]):Br(m,b)?(k(m,b,n,i,v),m=t[--f],b=i[--v]):Br(g,b)?(k(g,b,n,i,v),_&&u.insertBefore(e,g.elm,u.nextSibling(m.elm)),g=t[++d],b=i[--v]):Br(m,y)?(k(m,y,n,i,h),_&&u.insertBefore(e,m.elm,g.elm),m=t[--f],y=i[++h]):(o(s)&&(s=Gr(t,d,f)),o(l=a(y.key)?s[y.key]:C(y,t,d,f))?p(y,n,e,g.elm,!1,i,h):Br(c=t[l],y)?(k(c,y,n,i,h),t[l]=void 0,_&&u.insertBefore(e,c.elm,g.elm)):p(y,n,e,g.elm,!1,i,h),y=i[++h]);d>f?w(e,o(i[v+1])?null:i[v+1].elm,i,h,v,n):h>v&&x(t,d,f)}(d,g,v,i,c):a(v)?(a(e.text)&&u.setTextContent(d,""),w(d,null,v,0,v.length-1,i)):a(g)?x(g,0,g.length-1):a(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),a(f)&&a(h=f.hook)&&a(h=h.postpatch)&&h(e,t)}}}function S(e,t,i){if(s(i)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n<t.length;++n)t[n].data.hook.insert(t[n])}var E=v("attrs,class,staticClass,staticStyle,key");function j(e,t,i,n){var r,o=t.tag,l=t.data,c=t.children;if(n=n||l&&l.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(r=l.hook)&&a(r=r.init)&&r(t,!0),a(r=t.componentInstance)))return h(t,i),!0;if(a(o)){if(a(c))if(e.hasChildNodes())if(a(r=l)&&a(r=r.domProps)&&a(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,p=0;p<c.length;p++){if(!d||!j(d,c[p],i,n)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else g(t,c,i);if(a(l)){var f=!1;for(var m in l)if(!E(m)){f=!0,y(t,i);break}!f&&l.class&&Sn(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,i,r){if(!o(t)){var l,c=!1,d=[];if(o(e))c=!0,p(t,d);else{var h=a(e.nodeType);if(!h&&Br(e,t))k(e,t,d,null,null,r);else{if(h){if(1===e.nodeType&&e.hasAttribute(q)&&(e.removeAttribute(q),i=!0),s(i)&&j(e,t,d))return S(t,d,!0),e;l=e,e=new fe(u.tagName(l).toLowerCase(),{},[],void 0,l)}var f=e.elm,g=u.parentNode(f);if(p(t,d,f._leaveCb?null:g,u.nextSibling(f)),a(t.parent))for(var v=t.parent,y=m(t);v;){for(var b=0;b<n.destroy.length;++b)n.destroy[b](v);if(v.elm=t.elm,y){for(var w=0;w<n.create.length;++w)n.create[w](Hr,v);var $=v.data.hook.insert;if($.merged)for(var C=1;C<$.fns.length;C++)$.fns[C]()}else Lr(v);v=v.parent}a(g)?x([e],0,0):a(e.tag)&&_(e)}}return S(t,d,c),t.elm}a(e)&&_(e)}}({nodeOps:Fr,modules:[to,co,zo,Uo,ia,K?{create:ja,activate:ja,remove:function(e,t){!0!==e.data.show?ka(e,t):t()}}:{}].concat(Jr)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Fa(e,"input")}));var Ta={inserted:function(e,t,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?gt(i,"postpatch",(function(){Ta.componentUpdated(e,t,i)})):Ia(e,t,i.context),e._vOptions=[].map.call(e.options,Na)):("textarea"===i.tag||Pr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Pa),e.addEventListener("compositionend",Ma),e.addEventListener("change",Ma),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,i){if("select"===i.tag){Ia(e,t,i.context);var n=e._vOptions,r=e._vOptions=[].map.call(e.options,Na);r.some((function(e,t){return!M(e,n[t])}))&&(e.multiple?t.value.some((function(e){return Oa(e,r)})):t.value!==t.oldValue&&Oa(t.value,r))&&Fa(e,"change")}}};function Ia(e,t,i){Aa(e,t),(J||Z)&&setTimeout((function(){Aa(e,t)}),0)}function Aa(e,t,i){var n=t.value,r=e.multiple;if(!r||Array.isArray(n)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],r)o=F(n,Na(a))>-1,a.selected!==o&&(a.selected=o);else if(M(Na(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Oa(e,t){return t.every((function(t){return!M(t,e)}))}function Na(e){return"_value"in e?e._value:e.value}function Pa(e){e.target.composing=!0}function Ma(e){e.target.composing&&(e.target.composing=!1,Fa(e.target,"input"))}function Fa(e,t){var i=document.createEvent("HTMLEvents");i.initEvent(t,!0,!0),e.dispatchEvent(i)}function Ra(e){return!e.componentInstance||e.data&&e.data.transition?e:Ra(e.componentInstance._vnode)}var La={model:Ta,show:{bind:function(e,t,i){var n=t.value,r=(i=Ra(i)).data&&i.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&r?(i.data.show=!0,Ca(i,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,i){var n=t.value;!n!=!t.oldValue&&((i=Ra(i)).data&&i.data.transition?(i.data.show=!0,n?Ca(i,(function(){e.style.display=e.__vOriginalDisplay})):ka(i,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,i,n,r){r||(e.style.display=e.__vOriginalDisplay)}}},qa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ha(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ha(ni(t.children)):e}function za(e){var t={},i=e.$options;for(var n in i.propsData)t[n]=e[n];var r=i._parentListeners;for(var n in r)t[k(n)]=r[n];return t}function Ba(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ga=function(e){return e.tag||Ht(e)},Ua=function(e){return"show"===e.name},Wa={name:"transition",props:qa,abstract:!0,render:function(e){var t=this,i=this.$slots.default;if(i&&(i=i.filter(Ga)).length){var n=this.mode,r=i[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var o=Ha(r);if(!o)return r;if(this._leaving)return Ba(e,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:l(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=za(this),c=this._vnode,u=Ha(c);if(o.data.directives&&o.data.directives.some(Ua)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=I({},s);if("out-in"===n)return this._leaving=!0,gt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ba(e,r);if("in-out"===n){if(Ht(o))return c;var p,h=function(){p()};gt(s,"afterEnter",h),gt(s,"enterCancelled",h),gt(d,"delayLeave",(function(e){p=e}))}}return r}}},Ya=I({tag:String,moveClass:String},qa);delete Ya.mode;var Va={props:Ya,beforeMount:function(){var e=this,t=this._update;this._update=function(i,n){var r=ci(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,i,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=za(this),s=0;s<r.length;s++)(u=r[s]).tag&&null!=u.key&&0!==String(u.key).indexOf("__vlist")&&(o.push(u),i[u.key]=u,(u.data||(u.data={})).transition=a);if(n){var l=[],c=[];for(s=0;s<n.length;s++){var u;(u=n[s]).data.transition=a,u.data.pos=u.elm.getBoundingClientRect(),i[u.key]?l.push(u):c.push(u)}this.kept=e(t,null,l),this.removed=c}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ka),e.forEach(Xa),e.forEach(Ja),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var i=e.elm,n=i.style;va(i,t),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(pa,i._moveCb=function e(n){n&&n.target!==i||n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(pa,e),i._moveCb=null,ya(i,t))})}})))},methods:{hasMove:function(e,t){if(!la)return!1;if(this._hasMove)return this._hasMove;var i=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){oa(i,e)})),ra(i,t),i.style.display="none",this.$el.appendChild(i);var n=_a(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}};function Ka(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Xa(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ja(e){var t=e.data.pos,i=e.data.newPos,n=t.left-i.left,r=t.top-i.top;if(n||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(n,"px,").concat(r,"px)"),o.transitionDuration="0s"}}var Qa={Transition:Wa,TransitionGroup:Va};lr.config.mustUseProp=vr,lr.config.isReservedTag=Ar,lr.config.isReservedAttr=gr,lr.config.getTagNamespace=Or,lr.config.isUnknownElement=function(e){if(!K)return!0;if(Ar(e))return!1;if(e=e.toLowerCase(),null!=Nr[e])return Nr[e];var t=document.createElement(e);return e.indexOf("-")>-1?Nr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Nr[e]=/HTMLUnknownElement/.test(t.toString())},I(lr.options.directives,La),I(lr.options.components,Qa),lr.prototype.__patch__=K?Da:O,lr.prototype.$mount=function(e,t){return function(e,t,i){var n;e.$el=t,e.$options.render||(e.$options.render=ge),hi(e,"beforeMount"),n=function(){e._update(e._render(),i)},new Dn(e,n,O,{before:function(){e._isMounted&&!e._isDestroyed&&hi(e,"beforeUpdate")}},!0),i=!1;var r=e._preWatchers;if(r)for(var o=0;o<r.length;o++)r[o].run();return null==e.$vnode&&(e._isMounted=!0,hi(e,"mounted")),e}(this,e=e&&K?Mr(e):void 0,t)},K&&setTimeout((function(){B.devtools&&se&&se.emit("init",lr)}),0);var Za,es=/\{\{((?:.|\r?\n)+?)\}\}/g,ts=/[-.*+?^${}()|[\]\/\\]/g,is=$((function(e){var t=e[0].replace(ts,"\\$&"),i=e[1].replace(ts,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+i,"g")})),ns={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var i=$o(e,"class");i&&(e.staticClass=JSON.stringify(i.replace(/\s+/g," ").trim()));var n=xo(e,"class",!1);n&&(e.classBinding=n)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}},rs={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var i=$o(e,"style");i&&(e.staticStyle=JSON.stringify(Wo(i)));var n=xo(e,"style",!1);n&&(e.styleBinding=n)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}},os=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),as=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ss=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ls=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,cs=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,us="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(G.source,"]*"),ds="((?:".concat(us,"\\:)?").concat(us,")"),ps=new RegExp("^<".concat(ds)),hs=/^\s*(\/?)>/,fs=new RegExp("^<\\/".concat(ds,"[^>]*>")),gs=/^<!DOCTYPE [^>]+>/i,ms=/^<!\--/,vs=/^<!\[/,ys=v("script,style,textarea",!0),bs={},ws={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},_s=/&(?:lt|gt|quot|amp|#39);/g,xs=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,$s=v("pre,textarea",!0),Cs=function(e,t){return e&&$s(e)&&"\n"===t[0]};function ks(e,t){var i=t?xs:_s;return e.replace(i,(function(e){return ws[e]}))}var Ss,Es,js,Ds,Ts,Is,As,Os,Ns=/^@|^v-on:/,Ps=/^v-|^@|^:|^#/,Ms=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Fs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Rs=/^\(|\)$/g,Ls=/^\[.*\]$/,qs=/:(.*)$/,Hs=/^:|^\.|^v-bind:/,zs=/\.[^.\]]+(?=[^\]]*$)/g,Bs=/^v-slot(:|$)|^#/,Gs=/[\r\n]/,Us=/[ \f\t\r\n]+/g,Ws=$((function(e){return(Za=Za||document.createElement("div")).innerHTML=e,Za.textContent})),Ys="_empty_";function Vs(e,t,i){return{type:1,tag:e,attrsList:t,attrsMap:tl(t),rawAttrsMap:{},parent:i,children:[]}}function Ks(e,t){Ss=t.warn||fo,Is=t.isPreTag||N,As=t.mustUseProp||N,Os=t.getTagNamespace||N;t.isReservedTag;js=go(t.modules,"transformNode"),Ds=go(t.modules,"preTransformNode"),Ts=go(t.modules,"postTransformNode"),Es=t.delimiters;var i,n,r=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,l=!1;function c(e){if(u(e),s||e.processed||(e=Xs(e,t)),r.length||e===i||i.if&&(e.elseif||e.else)&&Qs(i,{exp:e.elseif,block:e}),n&&!e.forbidden)if(e.elseif||e.else)a=e,c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(n.children),c&&c.if&&Qs(c,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[o]=e}n.children.push(e),e.parent=n}var a,c;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),Is(e.tag)&&(l=!1);for(var d=0;d<Ts.length;d++)Ts[d](e,t)}function u(e){if(!l)for(var t=void 0;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var i,n,r=[],o=t.expectHTML,a=t.isUnaryTag||N,s=t.canBeLeftOpenTag||N,l=0,c=function(){if(i=e,n&&ys(n)){var c=0,p=n.toLowerCase(),h=bs[p]||(bs[p]=new RegExp("([\\s\\S]*?)(</"+p+"[^>]*>)","i"));x=e.replace(h,(function(e,i,n){return c=n.length,ys(p)||"noscript"===p||(i=i.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Cs(p,i)&&(i=i.slice(1)),t.chars&&t.chars(i),""})),l+=e.length-x.length,e=x,d(p,l-c,l)}else{var f=e.indexOf("<");if(0===f){if(ms.test(e)){var g=e.indexOf("--\x3e");if(g>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,g),l,l+g+3),u(g+3),"continue"}if(vs.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}var v=e.match(gs);if(v)return u(v[0].length),"continue";var y=e.match(fs);if(y){var b=l;return u(y[0].length),d(y[1],b,l),"continue"}var w=function(){var t=e.match(ps);if(t){var i={tagName:t[1],attrs:[],start:l};u(t[0].length);for(var n=void 0,r=void 0;!(n=e.match(hs))&&(r=e.match(cs)||e.match(ls));)r.start=l,u(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],u(n[0].length),i.end=l,i}}();if(w)return function(e){var i=e.tagName,l=e.unarySlash;o&&("p"===n&&ss(i)&&d(n),s(i)&&n===i&&d(i));for(var c=a(i)||!!l,u=e.attrs.length,p=new Array(u),h=0;h<u;h++){var f=e.attrs[h],g=f[3]||f[4]||f[5]||"",m="a"===i&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;p[h]={name:f[1],value:ks(g,m)}}c||(r.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:p,start:e.start,end:e.end}),n=i),t.start&&t.start(i,p,c,e.start,e.end)}(w),Cs(w.tagName,e)&&u(1),"continue"}var _=void 0,x=void 0,$=void 0;if(f>=0){for(x=e.slice(f);!(fs.test(x)||ps.test(x)||ms.test(x)||vs.test(x)||($=x.indexOf("<",1))<0);)f+=$,x=e.slice(f);_=e.substring(0,f)}f<0&&(_=e),_&&u(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===i)return t.chars&&t.chars(e),"break"};e&&"break"!==c(););function u(t){l+=t,e=e.substring(t)}function d(e,i,o){var a,s;if(null==i&&(i=l),null==o&&(o=l),e)for(s=e.toLowerCase(),a=r.length-1;a>=0&&r[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=r.length-1;c>=a;c--)t.end&&t.end(r[c].tag,i,o);r.length=a,n=a&&r[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,i,o):"p"===s&&(t.start&&t.start(e,[],!1,i,o),t.end&&t.end(e,i,o))}d()}(e,{warn:Ss,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,d){var p=n&&n.ns||Os(e);J&&"svg"===p&&(o=function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];il.test(n.name)||(n.name=n.name.replace(nl,""),t.push(n))}return t}(o));var h,f=Vs(e,o,n);p&&(f.ns=p),"style"!==(h=f).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ae()||(f.forbidden=!0);for(var g=0;g<Ds.length;g++)f=Ds[g](f,t)||f;s||(function(e){null!=$o(e,"v-pre")&&(e.pre=!0)}(f),f.pre&&(s=!0)),Is(f.tag)&&(l=!0),s?function(e){var t=e.attrsList,i=t.length;if(i)for(var n=e.attrs=new Array(i),r=0;r<i;r++)n[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(n[r].start=t[r].start,n[r].end=t[r].end);else e.pre||(e.plain=!0)}(f):f.processed||(Js(f),function(e){var t=$o(e,"v-if");if(t)e.if=t,Qs(e,{exp:t,block:e});else{null!=$o(e,"v-else")&&(e.else=!0);var i=$o(e,"v-else-if");i&&(e.elseif=i)}}(f),function(e){null!=$o(e,"v-once")&&(e.once=!0)}(f)),i||(i=f),a?c(f):(n=f,r.push(f))},end:function(e,t,i){var o=r[r.length-1];r.length-=1,n=r[r.length-1],c(o)},chars:function(e,t,i){if(n&&(!J||"textarea"!==n.tag||n.attrsMap.placeholder!==e)){var r,c=n.children;if(e=l||e.trim()?"script"===(r=n).tag||"style"===r.tag?e:Ws(e):c.length?a?"condense"===a&&Gs.test(e)?"":" ":o?" ":"":""){l||"condense"!==a||(e=e.replace(Us," "));var u=void 0,d=void 0;!s&&" "!==e&&(u=function(e,t){var i=t?is(t):es;if(i.test(e)){for(var n,r,o,a=[],s=[],l=i.lastIndex=0;n=i.exec(e);){(r=n.index)>l&&(s.push(o=e.slice(l,r)),a.push(JSON.stringify(o)));var c=po(n[1].trim());a.push("_s(".concat(c,")")),s.push({"@binding":c}),l=r+n[0].length}return l<e.length&&(s.push(o=e.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Es))?d={type:2,expression:u.expression,tokens:u.tokens,text:e}:" "===e&&c.length&&" "===c[c.length-1].text||(d={type:3,text:e}),d&&c.push(d)}}},comment:function(e,t,i){if(n){var r={type:3,text:e,isComment:!0};n.children.push(r)}}}),i}function Xs(e,t){var i;!function(e){var t=xo(e,"key");t&&(e.key=t)}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=xo(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=$o(e,"scope"),e.slotScope=t||$o(e,"slot-scope")):(t=$o(e,"slot-scope"))&&(e.slotScope=t);var i,n=xo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||vo(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){if(i=Co(e,Bs)){var r=Zs(i),o=r.name,a=r.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=i.value||Ys}}else if(i=Co(e,Bs)){var s=e.scopedSlots||(e.scopedSlots={}),l=Zs(i),c=l.name,u=(a=l.dynamic,s[c]=Vs("template",[],e));u.slotTarget=c,u.slotTargetDynamic=a,u.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=u,!0})),u.slotScope=i.value||Ys,e.children=[],e.plain=!1}}(e),"slot"===(i=e).tag&&(i.slotName=xo(i,"name")),function(e){var t;(t=xo(e,"is"))&&(e.component=t),null!=$o(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var n=0;n<js.length;n++)e=js[n](e,t)||e;return function(e){var t,i,n,r,o,a,s,l,c=e.attrsList;for(t=0,i=c.length;t<i;t++)if(n=r=c[t].name,o=c[t].value,Ps.test(n))if(e.hasBindings=!0,(a=el(n.replace(Ps,"")))&&(n=n.replace(zs,"")),Hs.test(n))n=n.replace(Hs,""),o=po(o),(l=Ls.test(n))&&(n=n.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(n=k(n))&&(n="innerHTML"),a.camel&&!l&&(n=k(n)),a.sync&&(s=Eo(o,"$event"),l?_o(e,'"update:"+('.concat(n,")"),s,null,!1,0,c[t],!0):(_o(e,"update:".concat(k(n)),s,null,!1,0,c[t]),j(n)!==k(n)&&_o(e,"update:".concat(j(n)),s,null,!1,0,c[t])))),a&&a.prop||!e.component&&As(e.tag,e.attrsMap.type,n)?mo(e,n,o,c[t],l):vo(e,n,o,c[t],l);else if(Ns.test(n))n=n.replace(Ns,""),(l=Ls.test(n))&&(n=n.slice(1,-1)),_o(e,n,o,a,!1,0,c[t],l);else{var u=(n=n.replace(Ps,"")).match(qs),d=u&&u[1];l=!1,d&&(n=n.slice(0,-(d.length+1)),Ls.test(d)&&(d=d.slice(1,-1),l=!0)),bo(e,n,r,o,d,l,a,c[t])}else vo(e,n,JSON.stringify(o),c[t]),!e.component&&"muted"===n&&As(e.tag,e.attrsMap.type,n)&&mo(e,n,"true",c[t])}(e),e}function Js(e){var t;if(t=$o(e,"v-for")){var i=function(e){var t=e.match(Ms);if(t){var i={};i.for=t[2].trim();var n=t[1].trim().replace(Rs,""),r=n.match(Fs);return r?(i.alias=n.replace(Fs,"").trim(),i.iterator1=r[1].trim(),r[2]&&(i.iterator2=r[2].trim())):i.alias=n,i}}(t);i&&I(e,i)}}function Qs(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Zs(e){var t=e.name.replace(Bs,"");return t||"#"!==e.name[0]&&(t="default"),Ls.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}}function el(e){var t=e.match(zs);if(t){var i={};return t.forEach((function(e){i[e.slice(1)]=!0})),i}}function tl(e){for(var t={},i=0,n=e.length;i<n;i++)t[e[i].name]=e[i].value;return t}var il=/^xmlns:NS\d+/,nl=/^NS\d+:/;function rl(e){return Vs(e.tag,e.attrsList.slice(),e.parent)}var ol,al,sl=[ns,rs,{preTransformNode:function(e,t){if("input"===e.tag){var i=e.attrsMap;if(!i["v-model"])return;var n=void 0;if((i[":type"]||i["v-bind:type"])&&(n=xo(e,"type")),i.type||n||!i["v-bind"]||(n="(".concat(i["v-bind"],").type")),n){var r=$o(e,"v-if",!0),o=r?"&&(".concat(r,")"):"",a=null!=$o(e,"v-else",!0),s=$o(e,"v-else-if",!0),l=rl(e);Js(l),yo(l,"type","checkbox"),Xs(l,t),l.processed=!0,l.if="(".concat(n,")==='checkbox'")+o,Qs(l,{exp:l.if,block:l});var c=rl(e);$o(c,"v-for",!0),yo(c,"type","radio"),Xs(c,t),Qs(l,{exp:"(".concat(n,")==='radio'")+o,block:c});var u=rl(e);return $o(u,"v-for",!0),yo(u,":type",n),Xs(u,t),Qs(l,{exp:r,block:u}),a?l.else=!0:s&&(l.elseif=s),l}}}}],ll={expectHTML:!0,modules:sl,directives:{model:function(e,t,i){var n=t.value,r=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return So(e,n,r),!1;if("select"===o)!function(e,t,i){var n=i&&i.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(n?"_n(val)":"val","})"),o="var $$selectedVal = ".concat(r,";");_o(e,"change",o="".concat(o," ").concat(Eo(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),null,!0)}(e,n,r);else if("input"===o&&"checkbox"===a)!function(e,t,i){var n=i&&i.number,r=xo(e,"value")||"null",o=xo(e,"true-value")||"true",a=xo(e,"false-value")||"false";mo(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(r,")>-1")+("true"===o?":(".concat(t,")"):":_q(".concat(t,",").concat(o,")"))),_o(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(n?"_n("+r+")":r,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Eo(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Eo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Eo(t,"$$c"),"}"),null,!0)}(e,n,r);else if("input"===o&&"radio"===a)!function(e,t,i){var n=i&&i.number,r=xo(e,"value")||"null";r=n?"_n(".concat(r,")"):r,mo(e,"checked","_q(".concat(t,",").concat(r,")")),_o(e,"change",Eo(t,r),null,!0)}(e,n,r);else if("input"===o||"textarea"===o)!function(e,t,i){var n=e.attrsMap.type,r=i||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==n,c=o?"change":"range"===n?No:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n(".concat(u,")"));var d=Eo(t,u);l&&(d="if($event.target.composing)return;".concat(d)),mo(e,"value","(".concat(t,")")),_o(e,c,d,null,!0),(s||a)&&_o(e,"blur","$forceUpdate()")}(e,n,r);else if(!B.isReservedTag(o))return So(e,n,r),!1;return!0},text:function(e,t){t.value&&mo(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&mo(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:os,mustUseProp:vr,canBeLeftOpenTag:as,isReservedTag:Ar,getTagNamespace:Or,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(sl)},cl=$((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function ul(e,t){e&&(ol=cl(t.staticKeys||""),al=t.isReservedTag||N,dl(e),pl(e,!1))}function dl(e){if(e.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!al(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ol))))}(e),1===e.type){if(!al(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,i=e.children.length;t<i;t++){var n=e.children[t];dl(n),n.static||(e.static=!1)}if(e.ifConditions)for(t=1,i=e.ifConditions.length;t<i;t++){var r=e.ifConditions[t].block;dl(r),r.static||(e.static=!1)}}}function pl(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var i=0,n=e.children.length;i<n;i++)pl(e.children[i],t||!!e.for);if(e.ifConditions)for(i=1,n=e.ifConditions.length;i<n;i++)pl(e.ifConditions[i].block,t)}}var hl=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,fl=/\([^)]*?\);*$/,gl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ml={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},vl={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},yl=function(e){return"if(".concat(e,")return null;")},bl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:yl("$event.target !== $event.currentTarget"),ctrl:yl("!$event.ctrlKey"),shift:yl("!$event.shiftKey"),alt:yl("!$event.altKey"),meta:yl("!$event.metaKey"),left:yl("'button' in $event && $event.button !== 0"),middle:yl("'button' in $event && $event.button !== 1"),right:yl("'button' in $event && $event.button !== 2")};function wl(e,t){var i=t?"nativeOn:":"on:",n="",r="";for(var o in e){var a=_l(e[o]);e[o]&&e[o].dynamic?r+="".concat(o,",").concat(a,","):n+='"'.concat(o,'":').concat(a,",")}return n="{".concat(n.slice(0,-1),"}"),r?i+"_d(".concat(n,",[").concat(r.slice(0,-1),"])"):i+n}function _l(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return _l(e)})).join(","),"]");var t=gl.test(e.value),i=hl.test(e.value),n=gl.test(e.value.replace(fl,""));if(e.modifiers){var r="",o="",a=[],s=function(t){if(bl[t])o+=bl[t],ml[t]&&a.push(t);else if("exact"===t){var i=e.modifiers;o+=yl(["ctrl","shift","alt","meta"].filter((function(e){return!i[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(t)};for(var l in e.modifiers)s(l);a.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(xl).join("&&"),")return null;")}(a)),o&&(r+=o);var c=t?"return ".concat(e.value,".apply(null, arguments)"):i?"return (".concat(e.value,").apply(null, arguments)"):n?"return ".concat(e.value):e.value;return"function($event){".concat(r).concat(c,"}")}return t||i?e.value:"function($event){".concat(n?"return ".concat(e.value):e.value,"}")}function xl(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var i=ml[e],n=vl[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(i),",")+"$event.key,"+"".concat(JSON.stringify(n))+")"}var $l={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(i){return"_b(".concat(i,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:O},Cl=function(e){this.options=e,this.warn=e.warn||fo,this.transforms=go(e.modules,"transformCode"),this.dataGenFns=go(e.modules,"genData"),this.directives=I(I({},$l),e.directives);var t=e.isReservedTag||N;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function kl(e,t){var i=new Cl(t),n=e?"script"===e.tag?"null":Sl(e,i):'_c("div")';return{render:"with(this){return ".concat(n,"}"),staticRenderFns:i.staticRenderFns}}function Sl(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return El(e,t);if(e.once&&!e.onceProcessed)return jl(e,t);if(e.for&&!e.forProcessed)return Il(e,t);if(e.if&&!e.ifProcessed)return Dl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var i=e.slotName||'"default"',n=Pl(e,t),r="_t(".concat(i).concat(n?",function(){return ".concat(n,"}"):""),o=e.attrs||e.dynamicAttrs?Rl((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:k(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||n||(r+=",null"),o&&(r+=",".concat(o)),a&&(r+="".concat(o?"":",null",",").concat(a)),r+")"}(e,t);var i=void 0;if(e.component)i=function(e,t,i){var n=t.inlineTemplate?null:Pl(t,i,!0);return"_c(".concat(e,",").concat(Al(t,i)).concat(n?",".concat(n):"",")")}(e.component,e,t);else{var n=void 0,r=t.maybeComponent(e);(!e.plain||e.pre&&r)&&(n=Al(e,t));var o=void 0,a=t.options.bindings;r&&a&&!1!==a.__isScriptSetup&&(o=function(e,t){var i=k(t),n=S(i),r=function(r){return e[t]===r?t:e[i]===r?i:e[n]===r?n:void 0},o=r("setup-const")||r("setup-reactive-const");if(o)return o;var a=r("setup-let")||r("setup-ref")||r("setup-maybe-ref");return a||void 0}(a,e.tag)),o||(o="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:Pl(e,t,!0);i="_c(".concat(o).concat(n?",".concat(n):"").concat(s?",".concat(s):"",")")}for(var l=0;l<t.transforms.length;l++)i=t.transforms[l](e,i);return i}return Pl(e,t)||"void 0"}function El(e,t){e.staticProcessed=!0;var i=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Sl(e,t),"}")),t.pre=i,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function jl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Dl(e,t);if(e.staticInFor){for(var i="",n=e.parent;n;){if(n.for){i=n.key;break}n=n.parent}return i?"_o(".concat(Sl(e,t),",").concat(t.onceId++,",").concat(i,")"):Sl(e,t)}return El(e,t)}function Dl(e,t,i,n){return e.ifProcessed=!0,Tl(e.ifConditions.slice(),t,i,n)}function Tl(e,t,i,n){if(!e.length)return n||"_e()";var r=e.shift();return r.exp?"(".concat(r.exp,")?").concat(o(r.block),":").concat(Tl(e,t,i,n)):"".concat(o(r.block));function o(e){return i?i(e,t):e.once?jl(e,t):Sl(e,t)}}function Il(e,t,i,n){var r=e.for,o=e.alias,a=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return e.forProcessed=!0,"".concat(n||"_l","((").concat(r,"),")+"function(".concat(o).concat(a).concat(s,"){")+"return ".concat((i||Sl)(e,t))+"})"}function Al(e,t){var i="{",n=function(e,t){var i=e.directives;if(i){var n,r,o,a,s="directives:[",l=!1;for(n=0,r=i.length;n<r;n++){o=i[n],a=!0;var c=t.directives[o.name];c&&(a=!!c(e,o,t.warn)),a&&(l=!0,s+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}return l?s.slice(0,-1)+"]":void 0}}(e,t);n&&(i+=n+","),e.key&&(i+="key:".concat(e.key,",")),e.ref&&(i+="ref:".concat(e.ref,",")),e.refInFor&&(i+="refInFor:true,"),e.pre&&(i+="pre:true,"),e.component&&(i+='tag:"'.concat(e.tag,'",'));for(var r=0;r<t.dataGenFns.length;r++)i+=t.dataGenFns[r](e);if(e.attrs&&(i+="attrs:".concat(Rl(e.attrs),",")),e.props&&(i+="domProps:".concat(Rl(e.props),",")),e.events&&(i+="".concat(wl(e.events,!1),",")),e.nativeEvents&&(i+="".concat(wl(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(i+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(i+="".concat(function(e,t,i){var n=e.for||Object.keys(t).some((function(e){var i=t[e];return i.slotTargetDynamic||i.if||i.for||Ol(i)})),r=!!e.if;if(!n)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Ys||o.for){n=!0;break}o.if&&(r=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Nl(t[e],i)})).join(",");return"scopedSlots:_u([".concat(a,"]").concat(n?",null,true":"").concat(!n&&r?",null,false,".concat(function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(i+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var o=function(e,t){var i=e.children[0];if(i&&1===i.type){var n=kl(i,t.options);return"inlineTemplate:{render:function(){".concat(n.render,"},staticRenderFns:[").concat(n.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);o&&(i+="".concat(o,","))}return i=i.replace(/,$/,"")+"}",e.dynamicAttrs&&(i="_b(".concat(i,',"').concat(e.tag,'",').concat(Rl(e.dynamicAttrs),")")),e.wrapData&&(i=e.wrapData(i)),e.wrapListeners&&(i=e.wrapListeners(i)),i}function Ol(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ol))}function Nl(e,t){var i=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!i)return Dl(e,t,Nl,"null");if(e.for&&!e.forProcessed)return Il(e,t,Nl);var n=e.slotScope===Ys?"":String(e.slotScope),r="function(".concat(n,"){")+"return ".concat("template"===e.tag?e.if&&i?"(".concat(e.if,")?").concat(Pl(e,t)||"undefined",":undefined"):Pl(e,t)||"undefined":Sl(e,t),"}"),o=n?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(r).concat(o,"}")}function Pl(e,t,i,n,r){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=i?t.maybeComponent(a)?",1":",0":"";return"".concat((n||Sl)(a,t)).concat(s)}var l=i?function(e,t){for(var i=0,n=0;n<e.length;n++){var r=e[n];if(1===r.type){if(Ml(r)||r.ifConditions&&r.ifConditions.some((function(e){return Ml(e.block)}))){i=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(i=1)}}return i}(o,t.maybeComponent):0,c=r||Fl;return"[".concat(o.map((function(e){return c(e,t)})).join(","),"]").concat(l?",".concat(l):"")}}function Ml(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Fl(e,t){return 1===e.type?Sl(e,t):3===e.type&&e.isComment?function(e){return"_e(".concat(JSON.stringify(e.text),")")}(e):"_v(".concat(2===(i=e).type?i.expression:Ll(JSON.stringify(i.text)),")");var i}function Rl(e){for(var t="",i="",n=0;n<e.length;n++){var r=e[n],o=Ll(r.value);r.dynamic?i+="".concat(r.name,",").concat(o,","):t+='"'.concat(r.name,'":').concat(o,",")}return t="{".concat(t.slice(0,-1),"}"),i?"_d(".concat(t,",[").concat(i.slice(0,-1),"])"):t}function Ll(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function ql(e,t){try{return new Function(e)}catch(i){return t.push({err:i,code:e}),O}}function Hl(e){var t=Object.create(null);return function(i,n,r){(n=I({},n)).warn,delete n.warn;var o=n.delimiters?String(n.delimiters)+i:i;if(t[o])return t[o];var a=e(i,n),s={},l=[];return s.render=ql(a.render,l),s.staticRenderFns=a.staticRenderFns.map((function(e){return ql(e,l)})),t[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var zl,Bl,Gl=(zl=function(e,t){var i=Ks(e.trim(),t);!1!==t.optimize&&ul(i,t);var n=kl(i,t);return{ast:i,render:n.render,staticRenderFns:n.staticRenderFns}},function(e){function t(t,i){var n=Object.create(e),r=[],o=[];if(i)for(var a in i.modules&&(n.modules=(e.modules||[]).concat(i.modules)),i.directives&&(n.directives=I(Object.create(e.directives||null),i.directives)),i)"modules"!==a&&"directives"!==a&&(n[a]=i[a]);n.warn=function(e,t,i){(i?o:r).push(e)};var s=zl(t.trim(),n);return s.errors=r,s.tips=o,s}return{compile:t,compileToFunctions:Hl(t)}}),Ul=Gl(ll).compileToFunctions;function Wl(e){return(Bl=Bl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Bl.innerHTML.indexOf(" ")>0}var Yl=!!K&&Wl(!1),Vl=!!K&&Wl(!0),Kl=$((function(e){var t=Mr(e);return t&&t.innerHTML})),Xl=lr.prototype.$mount;lr.prototype.$mount=function(e,t){if((e=e&&Mr(e))===document.body||e===document.documentElement)return this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=Kl(n));else{if(!n.nodeType)return this;n=n.innerHTML}else e&&(n=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(n){var r=Ul(n,{outputSourceRange:!1,shouldDecodeNewlines:Yl,shouldDecodeNewlinesForHref:Vl,delimiters:i.delimiters,comments:i.comments},this),o=r.render,a=r.staticRenderFns;i.render=o,i.staticRenderFns=a}}return Xl.call(this,e,t)},lr.compile=Ul},5751:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Store:()=>p,createLogger:()=>D,createNamespacedHelpers:()=>k,default:()=>N,install:()=>w,mapActions:()=>C,mapGetters:()=>$,mapMutations:()=>x,mapState:()=>_}),i(7658),i(1703);var n=("undefined"!=typeof window?window:void 0!==i.g?i.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var i,n=(i=function(t){return t.original===e},t.filter(i)[0]);if(n)return n.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(i){o[i]=r(e[i],t)})),o}function o(e,t){Object.keys(e).forEach((function(i){return t(e[i],i)}))}function a(e){return null!==e&&"object"==typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=("function"==typeof i?i():i)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){o(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&o(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&o(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&o(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,l);var c,u=function(e){this.register([],e,!1)};function d(e,t,i){if(t.update(i),i.modules)for(var n in i.modules){if(!t.getChild(n))return;d(e.concat(n),t.getChild(n),i.modules[n])}}u.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},u.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,i){return e+((t=t.getChild(i)).namespaced?i+"/":"")}),"")},u.prototype.update=function(e){d([],this.root,e)},u.prototype.register=function(e,t,i){var n=this;void 0===i&&(i=!0);var r=new s(t,i);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r),t.modules&&o(t.modules,(function(t,r){n.register(e.concat(r),t,i)}))},u.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1],n=t.getChild(i);n&&n.runtime&&t.removeChild(i)},u.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1];return!!t&&t.hasChild(i)};var p=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&w(window.Vue);var i=e.plugins;void 0===i&&(i=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,i){return s.call(o,e,t,i)},this.strict=r;var l=this._modules.root.state;v(this,l,[],this._modules.root),m(this,l),i.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:c.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},h={state:{configurable:!0}};function f(e,t,i){return t.indexOf(e)<0&&(i&&i.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function g(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;v(e,i,[],e._modules.root,!0),m(e,i,t)}function m(e,t,i){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};o(r,(function(t,i){a[i]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,i,{get:function(){return e._vm[i]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:a}),c.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(i&&e._withCommit((function(){n._data.$$state=null})),c.nextTick((function(){return n.$destroy()})))}function v(e,t,i,n,r){var o=!i.length,a=e._modules.getNamespace(i);if(n.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=n),!o&&!r){var s=y(t,i.slice(0,-1)),l=i[i.length-1];e._withCommit((function(){c.set(s,l,n.state)}))}var u=n.context=function(e,t,i){var n=""===t,r={dispatch:n?e.dispatch:function(i,n,r){var o=b(i,n,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:n?e.commit:function(i,n,r){var o=b(i,n,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var i={},n=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,n)===t){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=i}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,i)}}}),r}(e,a,i);n.forEachMutation((function(t,i){!function(e,t,i,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){i.call(e,n.state,t)}))}(e,a+i,t,u)})),n.forEachAction((function(t,i){var n=t.root?i:a+i,r=t.handler||t;!function(e,t,i,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var r,o=i.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,n,r,u)})),n.forEachGetter((function(t,i){!function(e,t,i,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return i(n.state,n.getters,e.state,e.getters)})}(e,a+i,t,u)})),n.forEachChild((function(n,o){v(e,t,i.concat(o),n,r)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function b(e,t,i){return a(e)&&e.type&&(i=t,t=e,e=e.type),{type:e,payload:t,options:i}}function w(e){c&&e===c||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:i});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,t.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(c=e)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(e){},p.prototype.commit=function(e,t,i){var n=this,r=b(e,t,i),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,n.state)})))},p.prototype.dispatch=function(e,t){var i=this,n=b(e,t),r=n.type,o=n.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,i.state)}))}catch(e){}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{i._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,i.state)}))}catch(e){}e(t)}),(function(e){try{i._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,i.state,e)}))}catch(e){}t(e)}))}))}},p.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},p.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},p.prototype.watch=function(e,t,i){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,i)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,i){void 0===i&&(i={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),i.preserveState),m(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var i=y(t.state,e.slice(0,-1));c.delete(i,e[e.length-1])})),g(this)},p.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},p.prototype.hotUpdate=function(e){this._modules.update(e),g(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,h);var _=E((function(e,t){var i={};return S(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){var t=this.$store.state,i=this.$store.getters;if(e){var n=j(this.$store,0,e);if(!n)return;t=n.context.state,i=n.context.getters}return"function"==typeof r?r.call(this,t,i):t[r]},i[n].vuex=!0})),i})),x=E((function(e,t){var i={};return S(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=this.$store.commit;if(e){var o=j(this.$store,0,e);if(!o)return;n=o.context.commit}return"function"==typeof r?r.apply(this,[n].concat(t)):n.apply(this.$store,[r].concat(t))}})),i})),$=E((function(e,t){var i={};return S(t).forEach((function(t){var n=t.key,r=t.val;r=e+r,i[n]=function(){if(!e||j(this.$store,0,e))return this.$store.getters[r]},i[n].vuex=!0})),i})),C=E((function(e,t){var i={};return S(t).forEach((function(t){var n=t.key,r=t.val;i[n]=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=this.$store.dispatch;if(e){var o=j(this.$store,0,e);if(!o)return;n=o.context.dispatch}return"function"==typeof r?r.apply(this,[n].concat(t)):n.apply(this.$store,[r].concat(t))}})),i})),k=function(e){return{mapState:_.bind(null,e),mapGetters:$.bind(null,e),mapMutations:x.bind(null,e),mapActions:C.bind(null,e)}};function S(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function E(e){return function(t,i){return"string"!=typeof t?(i=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,i)}}function j(e,t,i){return e._modulesNamespaceMap[i]}function D(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var i=e.filter;void 0===i&&(i=function(e,t,i){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=r(e.state);void 0!==u&&(l&&e.subscribe((function(e,a){var s=r(a);if(i(e,d,s)){var l=A(),c=o(e),p="mutation "+e.type+l;T(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),I(u)}d=s})),c&&e.subscribeAction((function(e,i){if(a(e,i)){var n=A(),r=s(e),o="action "+e.type+n;T(u,o,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),I(u)}})))}}function T(e,t,i){var n=i?e.groupCollapsed:e.group;try{n.call(e,t)}catch(i){e.log(t)}}function I(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function A(){var e=new Date;return" @ "+O(e.getHours(),2)+":"+O(e.getMinutes(),2)+":"+O(e.getSeconds(),2)+"."+O(e.getMilliseconds(),3)}function O(e,t){return"0",i=t-e.toString().length,new Array(i+1).join("0")+e;var i}const N={Store:p,install:w,version:"3.6.2",mapState:_,mapMutations:x,mapGetters:$,mapActions:C,createNamespacedHelpers:k,createLogger:D}},9662:(e,t,i)=>{var n=i(614),r=i(6330),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not a function")}},6077:(e,t,i)=>{var n=i(614),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},1223:(e,t,i)=>{var n=i(5112),r=i(30),o=i(3070).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},5787:(e,t,i)=>{var n=i(7976),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw r("Incorrect invocation")}},9670:(e,t,i)=>{var n=i(111),r=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not an object")}},3013:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:(e,t,i)=>{"use strict";var n,r,o,a=i(3013),s=i(9781),l=i(7854),c=i(614),u=i(111),d=i(2597),p=i(648),h=i(6330),f=i(8880),g=i(8052),m=i(7045),v=i(7976),y=i(9518),b=i(7674),w=i(5112),_=i(9711),x=i(9909),$=x.enforce,C=x.get,k=l.Int8Array,S=k&&k.prototype,E=l.Uint8ClampedArray,j=E&&E.prototype,D=k&&y(k),T=S&&y(S),I=Object.prototype,A=l.TypeError,O=w("toStringTag"),N=_("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",M=a&&!!b&&"Opera"!==p(l.opera),F=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},q=function(e){var t=y(e);if(u(t)){var i=C(t);return i&&d(i,P)?i[P]:q(t)}},H=function(e){if(!u(e))return!1;var t=p(e);return d(R,t)||d(L,t)};for(n in R)(o=(r=l[n])&&r.prototype)?$(o)[P]=r:M=!1;for(n in L)(o=(r=l[n])&&r.prototype)&&($(o)[P]=r);if((!M||!c(D)||D===Function.prototype)&&(D=function(){throw A("Incorrect invocation")},M))for(n in R)l[n]&&b(l[n],D);if((!M||!T||T===I)&&(T=D.prototype,M))for(n in R)l[n]&&b(l[n].prototype,T);if(M&&y(j)!==T&&b(j,T),s&&!d(T,O))for(n in F=!0,m(T,O,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),R)l[n]&&f(l[n],N,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:F&&N,aTypedArray:function(e){if(H(e))return e;throw A("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(D,e)))return e;throw A(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,i,n){if(s){if(i)for(var r in R){var o=l[r];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(i){try{o.prototype[e]=t}catch(e){}}}T[e]&&!i||g(T,e,i?t:M&&S[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,i){var n,r;if(s){if(b){if(i)for(n in R)if((r=l[n])&&d(r,e))try{delete r[e]}catch(e){}if(D[e]&&!i)return;try{return g(D,e,i?t:M&&D[e]||t)}catch(e){}}for(n in R)!(r=l[n])||r[e]&&!i||g(r,e,t)}},getTypedArrayConstructor:q,isView:function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(R,t)||d(L,t)},isTypedArray:H,TypedArray:D,TypedArrayPrototype:T}},7745:(e,t,i)=>{var n=i(6244);e.exports=function(e,t){for(var i=0,r=n(t),o=new e(r);r>i;)o[i]=t[i++];return o}},1318:(e,t,i)=>{var n=i(5656),r=i(1400),o=i(6244),a=function(e){return function(t,i,a){var s,l=n(t),c=o(l),u=r(a,c);if(e&&i!=i){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9671:(e,t,i)=>{var n=i(9974),r=i(8361),o=i(7908),a=i(6244),s=function(e){var t=1==e;return function(i,s,l){for(var c,u=o(i),d=r(u),p=n(s,l),h=a(d);h-- >0;)if(p(c=d[h],h,u))switch(e){case 0:return c;case 1:return h}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},3658:(e,t,i)=>{"use strict";var n=i(9781),r=i(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(r(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},206:(e,t,i)=>{var n=i(1702);e.exports=n([].slice)},1843:(e,t,i)=>{var n=i(6244);e.exports=function(e,t){for(var i=n(e),r=new t(i),o=0;o<i;o++)r[o]=e[i-o-1];return r}},1572:(e,t,i)=>{var n=i(6244),r=i(9303),o=RangeError;e.exports=function(e,t,i,a){var s=n(e),l=r(i),c=l<0?s+l:l;if(c>=s||c<0)throw o("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===c?a:e[d];return u}},4326:(e,t,i)=>{var n=i(1702),r=n({}.toString),o=n("".slice);e.exports=function(e){return o(r(e),8,-1)}},648:(e,t,i)=>{var n=i(1694),r=i(614),o=i(4326),a=i(5112)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?i:l?o(t):"Object"==(n=o(t))&&r(t.callee)?"Arguments":n}},9920:(e,t,i)=>{var n=i(2597),r=i(3887),o=i(1236),a=i(3070);e.exports=function(e,t,i){for(var s=r(t),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||i&&n(i,d)||l(e,d,c(t,d))}}},8544:(e,t,i)=>{var n=i(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8880:(e,t,i)=>{var n=i(9781),r=i(3070),o=i(9114);e.exports=n?function(e,t,i){return r.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7045:(e,t,i)=>{var n=i(6339),r=i(3070);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}},8052:(e,t,i)=>{var n=i(614),r=i(3070),o=i(6339),a=i(3072);e.exports=function(e,t,i,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(i)&&o(i,c,s),s.global)l?e[t]=i:a(t,i);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:r.f(e,t,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:(e,t,i)=>{var n=i(7854),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},9781:(e,t,i)=>{var n=i(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:e=>{var t="object"==typeof document&&document.all,i=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:i}},317:(e,t,i)=>{var n=i(7854),r=i(111),o=n.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},7207:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},3678:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},9363:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},6833:(e,t,i)=>{var n=i(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:(e,t,i)=>{var n=i(4326);e.exports="undefined"!=typeof process&&"process"==n(process)},8113:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(e,t,i)=>{var n,r,o=i(7854),a=i(8113),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:(e,t,i)=>{var n=i(1702),r=Error,o=n("".replace),a=String(r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},5392:(e,t,i)=>{var n=i(8880),r=i(1060),o=i(2914),a=Error.captureStackTrace;e.exports=function(e,t,i,s){o&&(a?a(e,t):n(e,"stack",r(i,s)))}},2914:(e,t,i)=>{var n=i(7293),r=i(9114);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},2109:(e,t,i)=>{var n=i(7854),r=i(1236).f,o=i(8880),a=i(8052),s=i(3072),l=i(9920),c=i(4705);e.exports=function(e,t){var i,u,d,p,h,f=e.target,g=e.global,m=e.stat;if(i=g?n:m?n[f]||s(f,{}):(n[f]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=r(i,u))&&h.value:i[u],!c(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(i,u,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},2104:(e,t,i)=>{var n=i(4374),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},9974:(e,t,i)=>{var n=i(1470),r=i(9662),o=i(4374),a=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4374:(e,t,i)=>{var n=i(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:(e,t,i)=>{var n=i(4374),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:(e,t,i)=>{var n=i(9781),r=i(2597),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},5668:(e,t,i)=>{var n=i(1702),r=i(9662);e.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}},1470:(e,t,i)=>{var n=i(4326),r=i(1702);e.exports=function(e){if("Function"===n(e))return r(e)}},1702:(e,t,i)=>{var n=i(4374),r=Function.prototype,o=r.call,a=n&&r.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},5005:(e,t,i)=>{var n=i(7854),r=i(614);e.exports=function(e,t){return arguments.length<2?(i=n[e],r(i)?i:void 0):n[e]&&n[e][t];var i}},8173:(e,t,i)=>{var n=i(9662),r=i(8554);e.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}},7854:function(e,t,i){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||this||Function("return this")()},2597:(e,t,i)=>{var n=i(1702),r=i(7908),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},3501:e=>{e.exports={}},490:(e,t,i)=>{var n=i(5005);e.exports=n("document","documentElement")},4664:(e,t,i)=>{var n=i(9781),r=i(7293),o=i(317);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,i)=>{var n=i(1702),r=i(7293),o=i(4326),a=Object,s=n("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9587:(e,t,i)=>{var n=i(614),r=i(111),o=i(7674);e.exports=function(e,t,i){var a,s;return o&&n(a=t.constructor)&&a!==i&&r(s=a.prototype)&&s!==i.prototype&&o(e,s),e}},2788:(e,t,i)=>{var n=i(1702),r=i(614),o=i(5465),a=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},8340:(e,t,i)=>{var n=i(111),r=i(8880);e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},9909:(e,t,i)=>{var n,r,o,a=i(4811),s=i(7854),l=i(111),c=i(8880),u=i(2597),d=i(5465),p=i(6200),h=i(3501),f="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw g(f);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=p("state");h[y]=!0,n=function(e,t){if(u(e,y))throw g(f);return t.facade=e,c(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:n,get:r,has:o,enforce:function(e){return o(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return i}}}},3157:(e,t,i)=>{var n=i(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},4067:(e,t,i)=>{var n=i(648);e.exports=function(e){var t=n(e);return"BigInt64Array"==t||"BigUint64Array"==t}},614:(e,t,i)=>{var n=i(4154),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},4705:(e,t,i)=>{var n=i(7293),r=i(614),o=/#|\.prototype\./,a=function(e,t){var i=l[s(e)];return i==u||i!=c&&(r(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},8554:e=>{e.exports=function(e){return null==e}},111:(e,t,i)=>{var n=i(614),r=i(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:e=>{e.exports=!1},2190:(e,t,i)=>{var n=i(5005),r=i(614),o=i(7976),a=i(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&o(t.prototype,s(e))}},6244:(e,t,i)=>{var n=i(7466);e.exports=function(e){return n(e.length)}},6339:(e,t,i)=>{var n=i(1702),r=i(7293),o=i(614),a=i(2597),s=i(9781),l=i(6530).CONFIGURABLE,c=i(2788),u=i(9909),d=u.enforce,p=u.get,h=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,i){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&i&&a(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&p(this).source||c(this)}),"toString")},4758:e=>{var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},6277:(e,t,i)=>{var n=i(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},30:(e,t,i)=>{var n,r=i(9670),o=i(6048),a=i(748),s=i(3501),l=i(490),c=i(317),u=i(6200),d="prototype",p="script",h=u("IE_PROTO"),f=function(){},g=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;v="undefined"!=typeof document?document.domain&&n?m(n):(t=c("iframe"),i="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(n);for(var r=a.length;r--;)delete v[d][a[r]];return v()};s[h]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[d]=r(e),i=new f,f[d]=null,i[h]=e):i=v(),void 0===t?i:o.f(i,t)}},6048:(e,t,i)=>{var n=i(9781),r=i(3353),o=i(3070),a=i(9670),s=i(5656),l=i(1956);t.f=n&&!r?Object.defineProperties:function(e,t){a(e);for(var i,n=s(t),r=l(t),c=r.length,u=0;c>u;)o.f(e,i=r[u++],n[i]);return e}},3070:(e,t,i)=>{var n=i(9781),r=i(4664),o=i(3353),a=i(9670),s=i(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=n?o?function(e,t,i){if(a(e),t=s(t),a(i),"function"==typeof e&&"prototype"===t&&"value"in i&&h in i&&!i[h]){var n=u(e,t);n&&n[h]&&(e[t]=i.value,i={configurable:p in i?i[p]:n[p],enumerable:d in i?i[d]:n[d],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(a(e),t=s(t),a(i),r)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},1236:(e,t,i)=>{var n=i(9781),r=i(6916),o=i(5296),a=i(9114),s=i(5656),l=i(4948),c=i(2597),u=i(4664),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!r(o.f,e,t),e[t])}},8006:(e,t,i)=>{var n=i(6324),r=i(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,i)=>{var n=i(2597),r=i(614),o=i(7908),a=i(6200),s=i(8544),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var i=t.constructor;return r(i)&&t instanceof i?i.prototype:t instanceof c?u:null}},7976:(e,t,i)=>{var n=i(1702);e.exports=n({}.isPrototypeOf)},6324:(e,t,i)=>{var n=i(1702),r=i(2597),o=i(5656),a=i(1318).indexOf,s=i(3501),l=n([].push);e.exports=function(e,t){var i,n=o(e),c=0,u=[];for(i in n)!r(s,i)&&r(n,i)&&l(u,i);for(;t.length>c;)r(n,i=t[c++])&&(~a(u,i)||l(u,i));return u}},1956:(e,t,i)=>{var n=i(6324),r=i(748);e.exports=Object.keys||function(e){return n(e,r)}},5296:(e,t)=>{"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},7674:(e,t,i)=>{var n=i(5668),r=i(9670),o=i(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return r(i),o(n),t?e(i,n):i.__proto__=n,i}}():void 0)},2140:(e,t,i)=>{var n=i(6916),r=i(614),o=i(111),a=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&r(i=e.toString)&&!o(s=n(i,e)))return s;if(r(i=e.valueOf)&&!o(s=n(i,e)))return s;if("string"!==t&&r(i=e.toString)&&!o(s=n(i,e)))return s;throw a("Can't convert object to primitive value")}},3887:(e,t,i)=>{var n=i(5005),r=i(1702),o=i(8006),a=i(5181),s=i(9670),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),i=a.f;return i?l(t,i(e)):t}},2626:(e,t,i)=>{var n=i(3070).f;e.exports=function(e,t,i){i in e||n(e,i,{configurable:!0,get:function(){return t[i]},set:function(e){t[i]=e}})}},4488:(e,t,i)=>{var n=i(8554),r=TypeError;e.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}},7152:(e,t,i)=>{"use strict";var n,r=i(7854),o=i(2104),a=i(614),s=i(9363),l=i(8113),c=i(206),u=i(8053),d=r.Function,p=/MSIE .\./.test(l)||s&&((n=r.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2]));e.exports=function(e,t){var i=t?2:1;return p?function(n,r){var s=u(arguments.length,1)>i,l=a(n)?n:d(n),p=s?c(arguments,i):[],h=s?function(){o(l,this,p)}:l;return t?e(h,r):e(h)}:e}},6200:(e,t,i)=>{var n=i(2309),r=i(9711),o=n("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},5465:(e,t,i)=>{var n=i(7854),r=i(3072),o="__core-js_shared__",a=n[o]||r(o,{});e.exports=a},2309:(e,t,i)=>{var n=i(1913),r=i(5465);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:(e,t,i)=>{var n=i(7392),r=i(7293),o=i(7854).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},261:(e,t,i)=>{var n,r,o,a,s=i(7854),l=i(2104),c=i(9974),u=i(614),d=i(2597),p=i(7293),h=i(490),f=i(206),g=i(317),m=i(8053),v=i(6833),y=i(5268),b=s.setImmediate,w=s.clearImmediate,_=s.process,x=s.Dispatch,$=s.Function,C=s.MessageChannel,k=s.String,S=0,E={},j="onreadystatechange";p((function(){n=s.location}));var D=function(e){if(d(E,e)){var t=E[e];delete E[e],t()}},T=function(e){return function(){D(e)}},I=function(e){D(e.data)},A=function(e){s.postMessage(k(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){m(arguments.length,1);var t=u(e)?e:$(e),i=f(arguments,1);return E[++S]=function(){l(t,void 0,i)},r(S),S},w=function(e){delete E[e]},y?r=function(e){_.nextTick(T(e))}:x&&x.now?r=function(e){x.now(T(e))}:C&&!v?(a=(o=new C).port2,o.port1.onmessage=I,r=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(A)?(r=A,s.addEventListener("message",I,!1)):r=j in g("script")?function(e){h.appendChild(g("script"))[j]=function(){h.removeChild(this),D(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},1400:(e,t,i)=>{var n=i(9303),r=Math.max,o=Math.min;e.exports=function(e,t){var i=n(e);return i<0?r(i+t,0):o(i,t)}},4599:(e,t,i)=>{var n=i(7593),r=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},5656:(e,t,i)=>{var n=i(8361),r=i(4488);e.exports=function(e){return n(r(e))}},9303:(e,t,i)=>{var n=i(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},7466:(e,t,i)=>{var n=i(9303),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},7908:(e,t,i)=>{var n=i(4488),r=Object;e.exports=function(e){return r(n(e))}},2452:(e,t,i)=>{var n=i(3002),r=RangeError;e.exports=function(e,t){var i=n(e);if(i%t)throw r("Wrong offset");return i}},3002:(e,t,i)=>{var n=i(9303),r=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw r("The argument can't be less than 0");return t}},7593:(e,t,i)=>{var n=i(6916),r=i(111),o=i(2190),a=i(8173),s=i(2140),l=i(5112),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var i,l=a(e,u);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!r(i)||o(i))return i;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:(e,t,i)=>{var n=i(7593),r=i(2190);e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},1694:(e,t,i)=>{var n={};n[i(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},1340:(e,t,i)=>{var n=i(648),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},6330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:(e,t,i)=>{var n=i(1702),r=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},3307:(e,t,i)=>{var n=i(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,i)=>{var n=i(9781),r=i(7293);e.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:e=>{var t=TypeError;e.exports=function(e,i){if(e<i)throw t("Not enough arguments");return e}},4811:(e,t,i)=>{var n=i(7854),r=i(614),o=n.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},5112:(e,t,i)=>{var n=i(7854),r=i(2309),o=i(2597),a=i(9711),s=i(6293),l=i(3307),c=n.Symbol,u=r("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},9191:(e,t,i)=>{"use strict";var n=i(5005),r=i(2597),o=i(8880),a=i(7976),s=i(7674),l=i(9920),c=i(2626),u=i(9587),d=i(6277),p=i(8340),h=i(5392),f=i(9781),g=i(1913);e.exports=function(e,t,i,m){var v="stackTraceLimit",y=m?2:1,b=e.split("."),w=b[b.length-1],_=n.apply(null,b);if(_){var x=_.prototype;if(!g&&r(x,"cause")&&delete x.cause,!i)return _;var $=n("Error"),C=t((function(e,t){var i=d(m?t:e,void 0),n=m?new _(e):new _;return void 0!==i&&o(n,"message",i),h(n,C,n.stack,2),this&&a(x,this)&&u(n,this,C),arguments.length>y&&p(n,arguments[y]),n}));if(C.prototype=x,"Error"!==w?s?s(C,$):l(C,$,{name:!0}):f&&v in _&&(c(C,_,v),c(C,_,"prepareStackTrace")),l(C,_),!g)try{x.name!==w&&o(x,"name",w),x.constructor=C}catch(e){}return C}}},2262:(e,t,i)=>{"use strict";var n=i(2109),r=i(7908),o=i(6244),a=i(9303),s=i(1223);n({target:"Array",proto:!0},{at:function(e){var t=r(this),i=o(t),n=a(e),s=n>=0?n:i+n;return s<0||s>=i?void 0:t[s]}}),s("at")},7658:(e,t,i)=>{"use strict";var n=i(2109),r=i(7908),o=i(6244),a=i(3658),s=i(7207);n({target:"Array",proto:!0,arity:1,forced:i(7293)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=r(this),i=o(t),n=arguments.length;s(i+n);for(var l=0;l<n;l++)t[i]=arguments[l],i++;return a(t,i),i}})},1703:(e,t,i)=>{var n=i(2109),r=i(7854),o=i(2104),a=i(9191),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var i={};i[e]=a(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},d=function(e,t){if(l&&l[e]){var i={};i[e]=a(s+"."+e,t,c),n({target:s,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},4506:(e,t,i)=>{"use strict";var n=i(2109),r=i(1702),o=i(4488),a=i(9303),s=i(1340),l=i(7293),c=r("".charAt);n({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(o(this)),i=t.length,n=a(e),r=n>=0?n:i+n;return r<0||r>=i?void 0:c(t,r)}})},8675:(e,t,i)=>{"use strict";var n=i(260),r=i(6244),o=i(9303),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=a(this),i=r(t),n=o(e),s=n>=0?n:i+n;return s<0||s>=i?void 0:t[s]}))},4590:(e,t,i)=>{"use strict";var n=i(260),r=i(9671).findLastIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},3408:(e,t,i)=>{"use strict";var n=i(260),r=i(9671).findLast,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},3462:(e,t,i)=>{"use strict";var n=i(7854),r=i(6916),o=i(260),a=i(6244),s=i(2452),l=i(7908),c=i(7293),u=n.RangeError,d=n.Int8Array,p=d&&d.prototype,h=p&&p.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return r(h,e,{length:1,0:3},1),3!==e[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),i=l(e);if(m)return r(h,this,i,t);var n=this.length,o=a(i),c=0;if(o+t>n)throw u("Wrong length");for(;c<o;)this[t+c]=i[c++]}),!m||v)},1439:(e,t,i)=>{"use strict";var n=i(1843),r=i(260),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;a("toReversed",(function(){return n(o(this),s(this))}))},7585:(e,t,i)=>{"use strict";var n=i(260),r=i(1702),o=i(9662),a=i(7745),s=n.aTypedArray,l=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,u=r(n.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),i=a(l(t),t);return u(i,e)}))},5315:(e,t,i)=>{"use strict";var n=i(1572),r=i(260),o=i(4067),a=i(9303),s=i(4599),l=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var i=l(this),r=a(e),u=o(i)?s(t):+t;return n(i,c(i),r,u)}}.with,!d)},3767:(e,t,i)=>{i(1439)},8585:(e,t,i)=>{i(7585)},8696:(e,t,i)=>{i(5315)},1091:(e,t,i)=>{var n=i(2109),r=i(7854),o=i(261).clear;n({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==o},{clearImmediate:o})},2801:(e,t,i)=>{"use strict";var n=i(2109),r=i(7854),o=i(5005),a=i(9114),s=i(3070).f,l=i(2597),c=i(5787),u=i(9587),d=i(6277),p=i(3678),h=i(1060),f=i(9781),g=i(1913),m="DOMException",v=o("Error"),y=o(m),b=function(){c(this,w);var e=arguments.length,t=d(e<1?void 0:arguments[0]),i=d(e<2?void 0:arguments[1],"Error"),n=new y(t,i),r=v(t);return r.name=m,s(n,"stack",a(1,h(r.stack,1))),u(n,this,b),n},w=b.prototype=y.prototype,_="stack"in v(m),x="stack"in new y(1,2),$=y&&f&&Object.getOwnPropertyDescriptor(r,m),C=!(!$||$.writable&&$.configurable),k=_&&!C&&!x;n({global:!0,constructor:!0,forced:g||k},{DOMException:k?b:y});var S=o(m),E=S.prototype;if(E.constructor!==S)for(var j in g||s(E,"constructor",a(1,S)),p)if(l(p,j)){var D=p[j],T=D.s;l(S,T)||s(S,T,a(6,D.c))}},4633:(e,t,i)=>{i(1091),i(2986)},2986:(e,t,i)=>{var n=i(2109),r=i(7854),o=i(261).set,a=i(7152),s=r.setImmediate?a(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},6965:(e,t,i)=>{e.exports=i}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(6965);titanOne=__webpack_exports__})(); |