diff --git a/README.md b/README.md index 11e104b4..31c96f08 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/center-key/node-slate/blob/main/LICENSE.txt) [![npm](https://img.shields.io/npm/v/node-slate.svg)](https://www.npmjs.com/package/node-slate) -[![Vulnerabilities](https://snyk.io/test/github/center-key/node-slate/badge.svg)](https://snyk.io/test/github/center-key/node-slate) [![Build](https://github.com/center-key/node-slate/workflows/build/badge.svg)](https://github.com/center-key/node-slate/actions/workflows/run-spec-on-push.yaml) Features diff --git a/docs/js/all.js b/docs/js/all.js index f66d3474..3d7dc456 100644 --- a/docs/js/all.js +++ b/docs/js/all.js @@ -1 +1 @@ -!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(x,L){"use strict";function _(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function g(t){return null!=t&&t===t.window}var e=[],j=Object.getPrototypeOf,a=e.slice,z=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},W=e.push,R=e.indexOf,F={},q=F.toString,B=F.hasOwnProperty,$=B.toString,Y=$.call(Object),m={},w=x.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function K(t,e,i){var n,s,o=(i=i||w).createElement("script");if(o.text=t,e)for(n in U)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?F[q.call(t)]||"object":typeof t}var t="3.6.3",C=function(t,e){return new C.fn.init(t,e)};function V(t){var e=!!t&&"length"in t&&t.length,i=f(t);return!_(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&0>10|55296,1023&t|56320))}function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function z(){w()}var t,d,b,o,W,p,R,F,x,l,h,w,C,i,k,f,n,s,g,D="sizzle"+ +new Date,c=L.document,T=0,q=0,B=P(),$=P(),Y=P(),m=P(),U=function(t,e){return t===e&&(h=!0),0},K={}.hasOwnProperty,e=[],V=e.pop,X=e.push,S=e.push,G=e.slice,_=function(t,e){for(var i=0,n=t.length;i+~]|"+r+")"+r+"*"),nt=new RegExp(r+"|>"),st=new RegExp(Z),ot=new RegExp("^"+a+"$"),y={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},rt=/HTML$/i,at=/^(?:input|select|textarea|button)$/i,lt=/^h\d$/i,I=/^[^{]+\{\s*\[native \w/,ht=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ct=/[+~]/,M=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),ut=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,dt=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{S.apply(e=G.call(c.childNodes),c.childNodes),e[c.childNodes.length].nodeType}catch(t){S={apply:e.length?function(t,e){X.apply(t,G.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function E(e,t,i,n){var s,o,r,a,l,h,c=t&&t.ownerDocument,u=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&(w(t),t=t||C,k)){if(11!==u&&(a=ht.exec(e)))if(s=a[1]){if(9===u){if(!(h=t.getElementById(s)))return i;if(h.id===s)return i.push(h),i}else if(c&&(h=c.getElementById(s))&&g(t,h)&&h.id===s)return i.push(h),i}else{if(a[2])return S.apply(i,t.getElementsByTagName(e)),i;if((s=a[3])&&d.getElementsByClassName&&t.getElementsByClassName)return S.apply(i,t.getElementsByClassName(s)),i}if(d.qsa&&!m[e+" "]&&(!f||!f.test(e))&&(1!==u||"object"!==t.nodeName.toLowerCase())){if(h=e,c=t,1===u&&(nt.test(e)||it.test(e))){for((c=ct.test(e)&&mt(t.parentNode)||t)===t&&d.scope||((r=t.getAttribute("id"))?r=r.replace(ut,j):t.setAttribute("id",r=D)),o=(l=p(e)).length;o--;)l[o]=(r?"#"+r:":scope")+" "+H(l[o]);h=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+h+"))"))throw new Error;return S.apply(i,c.querySelectorAll(h)),i}catch(t){m(e,!0)}finally{r===D&&t.removeAttribute("id")}}}return F(e.replace(v,"$1"),t,i,n)}function P(){var i=[];function n(t,e){return i.push(t+" ")>b.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function A(t){return t[D]=!0,t}function N(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function pt(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function ft(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function gt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&dt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function O(r){return A(function(o){return o=+o,A(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=E.support={},W=E.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!rt.test(e||t&&t.nodeName||"HTML")},w=E.setDocument=function(t){var t=t?t.ownerDocument||t:c;return t!=C&&9===t.nodeType&&t.documentElement&&(i=(C=t).documentElement,k=!W(C),c!=C&&(t=C.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",z,!1):t.attachEvent&&t.attachEvent("onunload",z)),d.scope=N(function(t){return i.appendChild(t).appendChild(C.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=N(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=N(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=N(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=I.test(C.getElementsByClassName),d.getById=N(function(t){return i.appendChild(t).id=D,!C.getElementsByName||!C.getElementsByName(D).length}),d.getById?(b.filter.ID=function(t){var e=t.replace(M,u);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k)return(e=e.getElementById(t))?[e]:[]}):(b.filter.ID=function(t){var e=t.replace(M,u);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},n=[],f=[],(d.qsa=I.test(C.querySelectorAll))&&(N(function(t){var e;i.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+r+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+r+"*(?:value|"+Q+")"),t.querySelectorAll("[id~="+D+"-]").length||f.push("~="),(e=C.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+D+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),N(function(t){t.innerHTML="";var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+r+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),i.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")})),(d.matchesSelector=I.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&N(function(t){d.disconnectedMatch=s.call(t,"*"),s.call(t,"[s!='']:x"),n.push("!=",Z)}),d.cssSupportsSelector||f.push(":has"),f=f.length&&new RegExp(f.join("|")),n=n.length&&new RegExp(n.join("|")),t=I.test(i.compareDocumentPosition),g=t||I.test(i.contains)?function(t,e){var i=9===t.nodeType&&t.documentElement||t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(i.contains?i.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=t?function(t,e){var i;return t===e?(h=!0,0):(i=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===i?t==C||t.ownerDocument==c&&g(c,t)?-1:e==C||e.ownerDocument==c&&g(c,e)?1:l?_(l,t)-_(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t==C?-1:e==C?1:s?-1:o?1:l?_(l,t)-_(l,e):0;if(s===o)return ft(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ft(r[n],a[n]):r[n]==c?-1:a[n]==c?1:0}),C},E.matches=function(t,e){return E(t,null,null,e)},E.matchesSelector=function(t,e){if(w(t),d.matchesSelector&&k&&!m[e+" "]&&(!n||!n.test(e))&&(!f||!f.test(e)))try{var i=s.call(t,e);if(i||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){m(e,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(M,u),t[3]=(t[3]||t[4]||t[5]||"").replace(M,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||E.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&E.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&st.test(i)&&(e=(e=p(i,!0))&&i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(M,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+r+")"+t+"("+r+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(t){t=E.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(t,i,n){return _(i)?C.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?C.grep(t,function(t){return t===i!==n}):"string"!=typeof i?C.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/,et=((C.fn.init=function(t,e,i){if(t){if(i=i||Z,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):_(t)?void 0!==i.ready?i.ready(t):t(C):C.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:tt.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),Q.test(n[1])&&C.isPlainObject(e))for(var n in e)_(this[n])?this[n](e[n]):this.attr(n,e[n])}else(i=w.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=C.fn,Z=C(w),/^(?:parents|prev(?:Until|All))/),it={children:!0,contents:!0,next:!0,prev:!0};function nt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i,I=(A=w.createDocumentFragment().appendChild(w.createElement("div")),(o=w.createElement("input")).setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),A.appendChild(o),m.checkClone=A.cloneNode(!0).cloneNode(!0).lastChild.checked,A.innerHTML="",m.noCloneChecked=!!A.cloneNode(!0).lastChild.defaultValue,A.innerHTML="",m.option=!!A.lastChild,{thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]});function M(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&l(t,e)?C.merge([t],i):i}function kt(t,e){for(var i=0,n=t.length;i",""]);var Dt=/<|&#?\w+;/;function Tt(t,e,i,n,s){for(var o,r,a,l,h,c=e.createDocumentFragment(),u=[],d=0,p=t.length;d\s*$/g;function Ot(t,e){return l(t,"table")&&l(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var i,n,s,o;if(1===e.nodeType){if(b.hasData(t)&&(o=b.get(t).events))for(s in b.remove(e,"handle events"),o)for(i=0,n=o[s].length;i").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),w.head.appendChild(n[0])},abort:function(){s&&s()}}}),[]),Ge=/(=)\?(?=&|$)|\?\?/,Qe=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||C.expando+"_"+Ie.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=_(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Ge,"$1"+n):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?C(x).removeProp(n):x[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(n)),o&&_(s)&&s(o[0]),o=s=void 0}),"script"}),m.createHTMLDocument=((o=w.implementation.createHTMLDocument("").body).innerHTML="
",2===o.childNodes.length),C.parseHTML=function(t,e,i){var n;return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((n=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(n)):e=w),n=!i&&[],(i=Q.exec(t))?[e.createElement(i[1])]:(i=Tt([t],e,n),n&&n.length&&C(n).remove(),C.merge([],i.childNodes)))},C.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return-1").append(C.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,i){var n,s,o,r,a=C.css(t,"position"),l=C(t),h={};"static"===a&&(t.style.position="relative"),o=l.offset(),n=C.css(t,"top"),r=C.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=l.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(e=_(e)?e.call(t,i,C.extend({},o)):e).top&&(h.top=e.top-o.top+s),null!=e.left&&(h.left=e.left-o.left+a),"using"in e?e.using.call(t,h):l.css(h)}},C.fn.extend({offset:function(e){var t,i;return arguments.length?void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)}):(i=this[0])?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===C.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(n,"marginTop",!0),left:e.left-s.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||D})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return u(this,function(t,e,i){var n;if(g(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i)return n?n[s]:t[e];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),C.each(["top","left"],function(t,i){C.cssHooks[i]=ee(m.pixelPosition,function(t,e){if(e)return e=te(t,i),Vt.test(e)?C(t).position()[i]+"px":e})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){C.fn[o]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return u(this,function(t,e,i){var n;return g(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+r],n["scroll"+r],t.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?C.css(t,e,s):C.style(t,e,i,s)},a,i?t:void 0,i)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){C.fn[i]=function(t,e){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=K(e||this.defaultElement||this)[0],this.element=K(e),this.uuid=H++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=K(),this.hoverable=K(),this.focusable=K(),this.classesElementLookup={},e!==this&&(K.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=K(e.style?e.ownerDocument:e.document||e),this.window=K(this.document[0].defaultView||this.document[0].parentWindow)),this.options=K.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:K.noop,_create:K.noop,_init:K.noop,destroy:function(){var i=this;this._destroy(),K.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:K.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return K.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=K.widget.extend({},this.options[t]),s=0;s
")).children()[0],K("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthw(C(n),C(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),r.offset(K.extend(h,{using:t}))})):i.apply(this,arguments)},K.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,o=t.left-e.collisionPosition.marginLeft,r=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0s?0")[0],g=u.each;function m(t){return null==t?t+"":"object"==typeof t?d[z.call(t)]||"object":typeof t}function v(t,e,i){var n=F[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:Math.min(n.max,Math.max(0,t)))}function B(n){var s=p(),o=s._rgba=[];return n=n.toLowerCase(),g(R,function(t,e){var i=e.re.exec(n),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=s[e](i),s[f[e].cache]=i[f[e].cache],o=s._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&u.extend(o,b.transparent),s):b[n]}function _(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}t.style.cssText="background-color:rgba(1,1,1,.5)",q.rgba=-1o.mod/2?n+=o.mod:n-s>o.mod/2&&(n-=o.mod)),l[i]=v((s-n)*r+n,e)))}),this[t](l)},blend:function(t){var e,i,n;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),n=p(t)._rgba,p(u.map(e,function(t,e){return(1-i)*n[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=u.map(this._rgba,function(t,e){return null!=t?t:2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return i.wrap(t),i[0]!==s&&!K.contains(i[0],s)||K(s).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(K.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),K.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!K.contains(t[0],e)||K(e).trigger("focus")),t}}),K.extend(K.effects,{version:"1.13.2",define:function(t,e,i){return i||(i=e,e="effect"),K.effects.effect[t]=i,K.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var n;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(n="horizontal"!==i?(e||100)/100:1,i="vertical"!==i?(e||100)/100:1,{height:t.height()*i,width:t.width()*n,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*n})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1").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(x+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=x+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){K.effects.restoreStyle(t),K.effects.removePlaceholder(t)},setTransition:function(n,t,s,o){return o=o||{},K.each(t,function(t,e){var i=n.cssUnit(e);0");l.appendTo("body").addClass(t.className).css({top:n.top-r,left:n.left-o,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),K.fx.step.clip=function(t){t.clipInit||(t.start=K(t.elem).cssClip(),"string"==typeof t.end&&(t.end=et(t.end,t.elem)),t.clipInit=!0),K(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})},y={},K.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){y[t]=function(t){return Math.pow(t,e+2)}}),K.extend(y,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),K.each(y,function(t,e){K.easing["easeIn"+t]=e,K.easing["easeOut"+t]=function(t){return 1-e(1-t)},K.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});t=K.effects;K.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=K(this),s=t.direction||"up",o=n.cssClip(),r={clip:K.extend({},o)},a=K.effects.createPlaceholder(n);r.clip[i[s][0]]=r.clip[i[s][1]],"show"===t.mode&&(n.cssClip(r.clip),a&&a.css(K.effects.clipToBox(r)),r.clip=o),a&&a.animate(K.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),K.effects.define("bounce",function(t,e){var i,n,s=K(this),o=t.mode,r="hide"===o,o="show"===o,a=t.direction||"up",l=t.distance,h=t.times||5,c=2*h+(o||r?1:0),u=t.duration/c,d=t.easing,p="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,g=0,t=s.queue().length;for(K.effects.createPlaceholder(s),a=s.css(p),l=l||s["top"==p?"outerHeight":"outerWidth"]()/3,o&&((n={opacity:1})[p]=a,s.css("opacity",0).css(p,f?2*-l:2*l).animate(n,u,d)),r&&(l/=Math.pow(2,h-1)),(n={})[p]=a;g").css({position:"absolute",visibility:"visible",left:-n*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:s+(u?r*p:0),top:o+(u?a*f:0),opacity:u?0:1}).animate({left:s+(u?0:r*p),top:o+(u?0:a*f),opacity:u?1:0},t.duration||500,t.easing,m)}),K.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;K(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),K.effects.define("fold","hide",function(e,t){var i=K(this),n=e.mode,s="show"===n,n="hide"===n,o=e.size||15,r=/([0-9]+)%/.exec(o),a=!!e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=K.effects.createPlaceholder(i),c=i.cssClip(),u={clip:K.extend({},c)},d={clip:K.extend({},c)},p=[c[a[0]],c[a[1]]],f=i.queue().length;r&&(o=parseInt(r[1],10)/100*p[n?0:1]),u.clip[a[0]]=o,d.clip[a[0]]=o,d.clip[a[1]]=0,s&&(i.cssClip(d.clip),h&&h.css(K.effects.clipToBox(d)),d.clip=c),i.queue(function(t){h&&h.animate(K.effects.clipToBox(u),l,e.easing).animate(K.effects.clipToBox(d),l,e.easing),t()}).animate(u,l,e.easing).animate(d,l,e.easing).queue(t),K.effects.unshift(i,f,4)}),K.effects.define("highlight","show",function(t,e){var i=K(this),n={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),K.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),K.effects.define("size",function(n,e){var s,i=K(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=n.mode,l="effect"!==a,h=n.scale||"both",c=n.origin||["middle","center"],u=i.css("position"),d=i.position(),p=K.effects.scaledDimensions(i),f=n.from||p,g=n.to||K.effects.scaledDimensions(i,0);K.effects.createPlaceholder(i),"show"===a&&(a=f,f=g,g=a),s={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(s.from.y!==s.to.y&&(f=K.effects.setTransition(i,o,s.from.y,f),g=K.effects.setTransition(i,o,s.to.y,g)),s.from.x!==s.to.x&&(f=K.effects.setTransition(i,r,s.from.x,f),g=K.effects.setTransition(i,r,s.to.x,g))),"content"!==h&&"both"!==h||s.from.y!==s.to.y&&(f=K.effects.setTransition(i,t,s.from.y,f),g=K.effects.setTransition(i,t,s.to.y,g)),c&&(a=K.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*a.y+d.top,f.left=(p.outerWidth-f.outerWidth)*a.x+d.left,g.top=(p.outerHeight-g.outerHeight)*a.y+d.top,g.left=(p.outerWidth-g.outerWidth)*a.x+d.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=K(this),e=K.effects.scaledDimensions(t),i={height:e.height*s.from.y,width:e.width*s.from.x,outerHeight:e.outerHeight*s.from.y,outerWidth:e.outerWidth*s.from.x},e={height:e.height*s.to.y,width:e.width*s.to.x,outerHeight:e.height*s.to.y,outerWidth:e.width*s.to.x};s.from.y!==s.to.y&&(i=K.effects.setTransition(t,o,s.from.y,i),e=K.effects.setTransition(t,o,s.to.y,e)),s.from.x!==s.to.x&&(i=K.effects.setTransition(t,r,s.from.x,i),e=K.effects.setTransition(t,r,s.to.x,e)),l&&K.effects.saveStyle(t),t.css(i),t.animate(e,n.duration,n.easing,function(){l&&K.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),K.effects.saveStyle(i)),e()}})}),K.effects.define("scale",function(t,e){var i=K(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==n?0:100),i=K.extend(!0,{from:K.effects.scaledDimensions(i),to:K.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),K.effects.effect.size.call(this,i,e)}),K.effects.define("puff","hide",function(t,e){t=K.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});K.effects.effect.scale.call(this,t,e)}),K.effects.define("pulsate","show",function(t,e){var i=K(this),n=t.mode,s="show"===n,o=2*(t.times||5)+(s||"hide"===n?1:0),r=t.duration/o,a=0,l=1,n=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),a=1);l li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=K(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():K()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=K(""),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"===t?this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=K.ui.keyCode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(n+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(n-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&(K(t.target).attr("tabIndex",-1),K(s).attr("tabIndex",0),K(s).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===K.ui.keyCode.UP&&t.ctrlKey&&K(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=K()):!1===t.active?this._activate(0):this.active.length&&!K.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=K()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,n=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=K(this),e=t.uniqueId().attr("id"),i=t.next(),n=i.uniqueId().attr("id");t.attr("aria-controls",n),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=K(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=K(this).outerHeight(!0)}),this.headers.next().each(function(){K(this).height(Math.max(0,i-K(this).innerHeight()+K(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=K(this).is(":visible");t||K(this).show(),i=Math.max(i,K(this).css("height","").height()),t||K(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:K.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):K()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&K.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,n=K(t.currentTarget),s=n[0]===i[0],o=s&&e.collapsible,r=o?K():n.next(),a=i.next(),a={oldHeader:i,oldPanel:a,newHeader:o?K():n,newPanel:r};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(n),this.active=s?K():n,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(r=i.children(".ui-accordion-header-icon"),this._removeClass(r,null,e.icons.activeHeader)._addClass(r,null,e.icons.header)),s)||(this._removeClass(n,"ui-accordion-header-collapsed")._addClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=n.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(n.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(K(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function n(){o._toggleComplete(e)}var s,o=this,r=0,a=t.css("box-sizing"),l=t.length&&(!i.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=K(t.target),i=K(K.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){K.contains(this.element[0],K.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=K(t.target).closest(".ui-menu-item"),i=K(t.currentTarget),e[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=K(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,n,s=!0;switch(t.keyCode){case K.ui.keyCode.PAGE_UP:this.previousPage(t);break;case K.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case K.ui.keyCode.HOME:this._move("first","first",t);break;case K.ui.keyCode.END:this._move("last","last",t);break;case K.ui.keyCode.UP:this.previous(t);break;case K.ui.keyCode.DOWN:this.next(t);break;case K.ui.keyCode.LEFT:this.collapse(t);break;case K.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case K.ui.keyCode.ENTER:case K.ui.keyCode.SPACE:this._activate(t);break;case K.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",n=s=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?n=!0:i=e+i,e=this._filterMenuItems(i),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,n=this,s=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=K(this),e=t.prev(),i=K("").data("ui-menu-submenu-caret",!0);n._addClass(i,"ui-menu-icon","ui-icon "+s),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=K(this);n._isDivider(t)&&n._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!K.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n;this._hasScroll()&&(e=parseFloat(K.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(K.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),n=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):n",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,n,s,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=K.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!n){var e=K.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){s?(s=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=K("