!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/lib/node_modules/homebridge-camera-ui/interface/js/   drwxr-xr-x
Free 13.27 GB of 57.97 GB (22.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     camview.f766f25e.js (205.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["camview"],{"0d2d":function(e,t,i){var n,s;!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";function r(e){return null!=e&&e===e.window}var a=[],l=Object.getPrototypeOf,h=a.slice,c=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},u=a.push,d=a.indexOf,p={},f=p.toString,g=p.hasOwnProperty,m=g.toString,v=m.call(Object),y={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,i){var n,s,o=(i=i||_).createElement("script");if(o.text=e,t)for(n in w)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[f.call(e)]||"object":typeof e}var E="3.5.1",k=function(e,t){return new k.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,i=C(e);return!b(e)&&!r(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:E,constructor:k,length:0,toArray:function(){return h.call(this)},get:function(e){return null==e?h.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){return e=k.merge(this.constructor(),e),e.prevObject=this,e},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length;e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var e,t,i,n,s,o=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[r]||{},r++),"object"==typeof o||b(o)||(o={}),r===a&&(o=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(l&&i&&(k.isPlainObject(i)||(n=Array.isArray(i)))?(s=o[t],s=n&&!Array.isArray(s)?[]:n||k.isPlainObject(s)?s:{},n=!1,o[t]=k.extend(l,s,i)):void 0!==i&&(o[t]=i));return o},k.extend({expando:"jQuery"+(E+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==f.call(e))&&(!(e=l(e))||"function"==typeof(e=g.call(e,"constructor")&&e.constructor)&&m.call(e)===v)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){x(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(S(e))for(i=e.length;n<i&&!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},makeArray:function(e,t){return t=t||[],null!=e&&(S(Object(e))?k.merge(t,"string"==typeof e?[e]:e):u.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:d.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,o=e.length,r=!i;s<o;s++)!t(e[s],s)!=r&&n.push(e[s]);return n},map:function(e,t,i){var n,s,o=0,r=[];if(S(e))for(n=e.length;o<n;o++)null!=(s=t(e[o],o,i))&&r.push(s);else for(o in e)null!=(s=t(e[o],o,i))&&r.push(s);return c(r)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase()}));var N=function(e){function t(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function i(){f()}var n,s,o,r,a,l,h,c,u,d,p,f,g,m,v,y,b,_,w,x="sizzle"+ +new Date,C=e.document,E=0,k=0,S=le(),N=le(),T=le(),H=le(),D=function(e,t){return e===t&&(p=!0),0},A={}.hasOwnProperty,P=[],z=P.pop,R=P.push,M=P.push,O=P.slice,L=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",W="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+I+"*("+W+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+I+"*\\]",q=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",F=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),$=new RegExp("^"+I+"*,"+I+"*"),G=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),X=new RegExp(I+"|>"),Y=new RegExp(q),V=new RegExp("^"+W+"$"),K={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ie=/[+~]/,ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),se=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(P=O.call(C.childNodes),C.childNodes),P[C.childNodes.length].nodeType}catch(n){M={apply:P.length?function(e,t){R.apply(e,O.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,i,n){var o,r,a,h,u,d,p=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!n&&(f(t),t=t||g,v)){if(11!==m&&(h=te.exec(e)))if(d=h[1]){if(9===m){if(!(r=t.getElementById(d)))return i;if(r.id===d)return i.push(r),i}else if(p&&(r=p.getElementById(d))&&w(t,r)&&r.id===d)return i.push(r),i}else{if(h[2])return M.apply(i,t.getElementsByTagName(e)),i;if((d=h[3])&&s.getElementsByClassName&&t.getElementsByClassName)return M.apply(i,t.getElementsByClassName(d)),i}if(s.qsa&&!H[e+" "]&&(!y||!y.test(e))&&(1!==m||"object"!==t.nodeName.toLowerCase())){if(d=e,p=t,1===m&&(X.test(e)||G.test(e))){for((p=ie.test(e)&&ge(t.parentNode)||t)===t&&s.scope||((a=t.getAttribute("id"))?a=a.replace(se,oe):t.setAttribute("id",a=x)),o=(u=l(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+ve(u[o]);d=u.join(",")}try{return M.apply(i,p.querySelectorAll(d)),i}catch(t){H(e,!0)}finally{a===x&&t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,i,n)}function le(){var e=[];function t(i,n){return e.push(i+" ")>o.cacheLength&&delete t[e.shift()],t[i+" "]=n}return t}function he(e){return e[x]=!0,e}function ce(e){var t=g.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var i=e.split("|"),n=i.length;n--;)o.attrHandle[i[n]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(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&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function fe(e){return he((function(t){return t=+t,he((function(i,n){for(var s,o=e([],i.length,t),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(n in s=ae.support={},a=ae.isXML=function(e){var t=e.namespaceURI;e=(e.ownerDocument||e).documentElement;return!J.test(t||e&&e.nodeName||"HTML")},f=ae.setDocument=function(e){var n;e=e?e.ownerDocument||e:C;return e!=g&&9===e.nodeType&&e.documentElement&&(m=(g=e).documentElement,v=!a(g),C!=g&&(n=g.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),s.scope=ce((function(e){return m.appendChild(e).appendChild(g.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),s.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),s.getElementsByTagName=ce((function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length})),s.getElementsByClassName=ee.test(g.getElementsByClassName),s.getById=ce((function(e){return m.appendChild(e).id=x,!g.getElementsByName||!g.getElementsByName(x).length})),s.getById?(o.filter.ID=function(e){var i=e.replace(ne,t);return function(e){return e.getAttribute("id")===i}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&v)return e=t.getElementById(e),e?[e]:[]}):(o.filter.ID=function(e){var i=e.replace(ne,t);return function(e){return e=void 0!==e.getAttributeNode&&e.getAttributeNode("id"),e&&e.value===i}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),o.find.TAG=s.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):s.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},o.find.CLASS=s.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},b=[],y=[],(s.qsa=ee.test(g.querySelectorAll))&&(ce((function(e){var t;m.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+I+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+x+"-]").length||y.push("~="),(t=g.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=g.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(s.matchesSelector=ee.test(_=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ce((function(e){s.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),b.push("!=",q)})),y=y.length&&new RegExp(y.join("|")),b=b.length&&new RegExp(b.join("|")),n=ee.test(m.compareDocumentPosition),w=n||ee.test(m.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e;t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=n?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!s.sortDetached&&t.compareDocumentPosition(e)===i?e==g||e.ownerDocument==C&&w(C,e)?-1:t==g||t.ownerDocument==C&&w(C,t)?1:d?L(d,e)-L(d,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,r=[e],a=[t];if(!s||!o)return e==g?-1:t==g?1:s?-1:o?1:d?L(d,e)-L(d,t):0;if(s===o)return de(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?de(r[n],a[n]):r[n]==C?-1:a[n]==C?1:0}),g},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(f(e),s.matchesSelector&&v&&!H[t+" "]&&(!b||!b.test(t))&&(!y||!y.test(t)))try{var i=_.call(e,t);if(i||s.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){H(t,!0)}return 0<ae(t,g,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!=g&&f(e),w(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=g&&f(e);var i=o.attrHandle[t.toLowerCase()];i=i&&A.call(o.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==i?i:s.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ae.escape=function(e){return(e+"").replace(se,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],n=0,o=0;if(p=!s.detectDuplicates,d=!s.sortStable&&e.slice(0),e.sort(D),p){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return d=null,e},r=ae.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(o=ae.selectors={cacheLength:50,createPseudo:he,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(ne,t),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,t),"~="===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]||ae.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]&&ae.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=l(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 i=e.replace(ne,t).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===i}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&S(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){return n=ae.attr(n,e),null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&-1<n.indexOf(i):"$="===t?i&&n.slice(-i.length)===i:"~="===t?-1<(" "+n.replace(F," ")+" ").indexOf(i):"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var h,c,u,d,p,f,g=o!=r?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(b=(p=(h=(c=(u=(d=m)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===E&&h[1])&&h[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[E,p,b];break}}else if(!1===(b=y?p=(h=(c=(u=(d=t)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===E&&h[1]:b))for(;(d=++p&&d&&d[g]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(u=d[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=s)===n||b%n==0&&0<=b/n}}},PSEUDO:function(e,t){var i,n=o.pseudos[e]||o.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return n[x]?n(t):1<n.length?(i=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?he((function(e,i){for(var s,o=n(e,t),r=o.length;r--;)e[s=L(e,o[r])]=!(i[s]=o[r])})):function(e){return n(e,0,i)}):n}},pseudos:{not:he((function(e){var t=[],i=[],n=h(e.replace(B,"$1"));return n[x]?he((function(e,t,i,s){for(var o,r=n(e,null,s,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))})):function(e,s,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:he((function(e){return function(t){return 0<ae(e,t).length}})),contains:he((function(e){return e=e.replace(ne,t),function(t){return-1<(t.textContent||r(t)).indexOf(e)}})),lang:he((function(e){return V.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(ne,t).toLowerCase(),function(t){var i;do{if(i=v?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===m},focus:function(e){return e===g.activeElement&&(!g.hasFocus||g.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),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!o.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:fe((function(){return[0]})),last:fe((function(e,t){return[t-1]})),eq:fe((function(e,t,i){return[i<0?i+t:i]})),even:fe((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:fe((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:fe((function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e})),gt:fe((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=function(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}(n);function me(){}function ve(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ye(e,t,i){var n=t.dir,s=t.next,o=s||n,r=i&&"parentNode"===o,a=k++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,s);return!1}:function(t,i,l){var h,c,u=[E,a];if(l){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||r)if(h=(c=t[x]||(t[x]={}))[t.uniqueID]||(c[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=h[o])&&c[0]===E&&c[1]===a)return u[2]=c[2];if((h[o]=u)[2]=e(t,i,l))return!0}return!1}}function be(e){return 1<e.length?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function _e(e,t,i,n,s){for(var o,r=[],a=0,l=e.length,h=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,s)||(r.push(o),h&&t.push(a)));return r}function we(e,t,i,n,s,o){return n&&!n[x]&&(n=we(n)),s&&!s[x]&&(s=we(s,o)),he((function(o,r,a,l){var h,c,u,d=[],p=[],f=r.length,g=o||function(e,t,i){for(var n=0,s=t.length;n<s;n++)ae(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:_e(g,d,e,a,l),v=i?s||(o?e:f||n)?[]:r:m;if(i&&i(m,v,a,l),n)for(h=_e(v,p),n(h,[],a,l),c=h.length;c--;)(u=h[c])&&(v[p[c]]=!(m[p[c]]=u));if(o){if(s||e){if(s){for(h=[],c=v.length;c--;)(u=v[c])&&h.push(m[c]=u);s(null,v=[],h,l)}for(c=v.length;c--;)(u=v[c])&&-1<(h=s?L(o,u):d[c])&&(o[h]=!(r[h]=u))}}else v=_e(v===r?v.splice(f,v.length):v),s?s(null,r,v,l):M.apply(r,v)}))}function xe(e,t){function i(i,r,a,l,h){var c,d,p,m=0,y="0",b=i&&[],_=[],w=u,x=i||s&&o.find.TAG("*",h),C=E+=null==w?1:Math.random()||.1,k=x.length;for(h&&(u=r==g||r||h);y!==k&&null!=(c=x[y]);y++){if(s&&c){for(d=0,r||c.ownerDocument==g||(f(c),a=!v);p=e[d++];)if(p(c,r||g,a)){l.push(c);break}h&&(E=C)}n&&((c=!p&&c)&&m--,i&&b.push(c))}if(m+=y,n&&y!==m){for(d=0;p=t[d++];)p(b,_,r,a);if(i){if(0<m)for(;y--;)b[y]||_[y]||(_[y]=z.call(l));_=_e(_)}M.apply(l,_),h&&!i&&0<_.length&&1<m+t.length&&ae.uniqueSort(l)}return h&&(E=C,u=w),b}var n=0<t.length,s=0<e.length;return n?he(i):i}return me.prototype=o.filters=o.pseudos,o.setFilters=new me,l=ae.tokenize=function(e,t){var i,n,s,r,a,l,h,c=N[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],h=o.preFilter;a;){for(r in i&&!(n=$.exec(a))||(n&&(a=a.slice(n[0].length)||a),l.push(s=[])),i=!1,(n=G.exec(a))&&(i=n.shift(),s.push({value:i,type:n[0].replace(B," ")}),a=a.slice(i.length)),o.filter)!(n=K[r].exec(a))||h[r]&&!(n=h[r](n))||(i=n.shift(),s.push({value:i,type:r,matches:n}),a=a.slice(i.length));if(!i)break}return t?a.length:a?ae.error(e):N(e,l).slice(0)},h=ae.compile=function(e,t){var i,n=[],s=[],r=T[e+" "];if(!r){for(i=(t=t||l(e)).length;i--;)((r=function e(t){for(var i,n,s,r=t.length,a=o.relative[t[0].type],l=a||o.relative[" "],h=a?1:0,c=ye((function(e){return e===i}),l,!0),d=ye((function(e){return-1<L(i,e)}),l,!0),p=[function(e,t,n){return n=!a&&(n||t!==u)||((i=t).nodeType?c:d)(e,t,n),i=null,n}];h<r;h++)if(n=o.relative[t[h].type])p=[ye(be(p),n)];else{if((n=o.filter[t[h].type].apply(null,t[h].matches))[x]){for(s=++h;s<r&&!o.relative[t[s].type];s++);return we(1<h&&be(p),1<h&&ve(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(B,"$1"),n,h<s&&e(t.slice(h,s)),s<r&&e(t=t.slice(s)),s<r&&ve(t))}p.push(n)}return be(p)}(t[i]))[x]?n:s).push(r);(r=T(e,xe(s,n))).selector=e}return r},c=ae.select=function(e,i,n,s){var r,a,c,u,d,p="function"==typeof e&&e,f=!s&&l(e=p.selector||e);if(n=n||[],1===f.length){if(2<(a=f[0]=f[0].slice(0)).length&&"ID"===(c=a[0]).type&&9===i.nodeType&&v&&o.relative[a[1].type]){if(!(i=(o.find.ID(c.matches[0].replace(ne,t),i)||[])[0]))return n;p&&(i=i.parentNode),e=e.slice(a.shift().value.length)}for(r=K.needsContext.test(e)?0:a.length;r--&&(c=a[r],!o.relative[u=c.type]);)if((d=o.find[u])&&(s=d(c.matches[0].replace(ne,t),ie.test(a[0].type)&&ge(i.parentNode)||i))){if(a.splice(r,1),!(e=s.length&&ve(a)))return M.apply(n,s),n;break}}return(p||h(e,f))(s,i,!v,n,!i||ie.test(e)&&ge(i.parentNode)||i),n},s.sortStable=x.split("").sort(D).join("")===x,s.detectDuplicates=!!p,f(),s.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(g.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),s.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||ue(j,(function(e,t,i){if(!i)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null})),ae}(i);function T(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&k(e).is(i))break;n.push(e)}return n}function H(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}k.find=N,k.expr=N.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=N.uniqueSort,k.text=N.getText,k.isXMLDoc=N.isXML,k.contains=N.contains,k.escapeSelector=N.escape;var D=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,i){return b(t)?k.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?k.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?k.grep(e,(function(e){return-1<d.call(t,e)!==i})):k.filter(t,e,i)}k.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<n;t++)if(k.contains(s[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)k.find(e,s[t],i);return 1<n?k.uniqueSort(i):i},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&D.test(e)?k(e):e||[],!1).length}});var R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,i){if(!e)return this;if(i=i||M,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(k):k.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:R.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),P.test(n[1])&&k.isPlainObject(t))for(var n in t)b(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(e=_.getElementById(n[2]))&&(this[0]=e,this.length=1),this}).prototype=k.fn;var M=k(_),O=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,s=this.length,o=[],r="string"!=typeof e&&k(e);if(!D.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&k.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){return e=e.parentNode,e&&11!==e.nodeType?e:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,i){return T(e,"parentNode",i)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,i){return T(e,"nextSibling",i)},prevUntil:function(e,t,i){return T(e,"previousSibling",i)},siblings:function(e){return H((e.parentNode||{}).firstChild,e)},children:function(e){return H(e.firstChild)},contents:function(e){return null!=e.contentDocument&&l(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(i,n){var s=k.map(this,t,i);return(n="Until"!==e.slice(-5)?i:n)&&"string"==typeof n&&(s=k.filter(n,s)),1<this.length&&(L[e]||k.uniqueSort(s),O.test(e)&&s.reverse()),this.pushStack(s)}}));var I=/[^\x20\t\r\n\f]+/g;function W(e){return e}function U(e){throw e}function q(e,t,i,n){var s;try{e&&b(s=e.promise)?s.call(e).done(t).fail(i):e&&b(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}k.Callbacks=function(e){var t,i;function n(){for(a=a||e.once,r=s=!0;h.length;c=-1)for(o=h.shift();++c<l.length;)!1===l[c].apply(o[0],o[1])&&e.stopOnFalse&&(c=l.length,o=!1);e.memory||(o=!1),s=!1,a&&(l=o?[]:"")}e="string"==typeof e?(t=e,i={},k.each(t.match(I)||[],(function(e,t){i[t]=!0})),i):k.extend({},e);var s,o,r,a,l=[],h=[],c=-1,u={add:function(){return l&&(o&&!s&&(c=l.length-1,h.push(o)),function t(i){k.each(i,(function(i,n){b(n)?e.unique&&u.has(n)||l.push(n):n&&n.length&&"string"!==C(n)&&t(n)}))}(arguments),o&&!s&&n()),this},remove:function(){return k.each(arguments,(function(e,t){for(var i;-1<(i=k.inArray(t,l,i));)l.splice(i,1),i<=c&&c--})),this},has:function(e){return e?-1<k.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=h=[],l=o="",this},disabled:function(){return!l},lock:function(){return a=h=[],o||s||(l=o=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],h.push(t),s||n()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(i){k.each(t,(function(t,n){var s=b(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=s&&s.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,s){var o=0;function r(e,t,n,s){return function(){function a(){var i,a;if(!(e<o)){if((i=n.apply(l,h))===t.promise())throw new TypeError("Thenable self-resolution");a=i&&("object"==typeof i||"function"==typeof i)&&i.then,b(a)?s?a.call(i,r(o,t,W,s),r(o,t,U,s)):(o++,a.call(i,r(o,t,W,s),r(o,t,U,s),r(o,t,W,t.notifyWith))):(n!==W&&(l=void 0,h=[i]),(s||t.resolveWith)(l,h))}}var l=this,h=arguments,c=s?a:function(){try{a()}catch(a){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(a,c.stackTrace),o<=e+1&&(n!==U&&(l=void 0,h=[a]),t.rejectWith(l,h))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),i.setTimeout(c))}}return k.Deferred((function(i){t[0][3].add(r(0,i,b(s)?s:W,i.notifyWith)),t[1][3].add(r(0,i,b(e)?e:W)),t[2][3].add(r(0,i,b(n)?n:U))})).promise()},promise:function(e){return null!=e?k.extend(e,s):s}},o={};return k.each(t,(function(e,i){var r=i[2],a=i[5];s[i[1]]=r.add,a&&r.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=r.fireWith})),s.promise(o),e&&e.call(o,o),o},when:function(e){function t(e){return function(t){s[e]=this,o[e]=1<arguments.length?h.call(arguments):t,--i||r.resolveWith(s,o)}}var i=arguments.length,n=i,s=Array(n),o=h.call(arguments),r=k.Deferred();if(i<=1&&(q(e,r.done(t(n)).resolve,r.reject,!i),"pending"===r.state()||b(o[n]&&o[n].then)))return r.then();for(;n--;)q(o[n],t(n),r.reject);return r.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&F.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){i.setTimeout((function(){throw e}))};var B=k.Deferred();function $(){_.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),k.ready()}k.fn.ready=function(e){return B.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||B.resolveWith(_,[k])}}),k.ready.then=B.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?i.setTimeout(k.ready):(_.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var G=function(e,t,i,n,s,o,r){var a=0,l=e.length,h=null==i;if("object"===C(i))for(a in s=!0,i)G(e,t,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,b(n)||(r=!0),t=h?r?(t.call(e,n),null):(h=t,function(e,t,i){return h.call(k(e),i)}):t))for(;a<l;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return s?e:h?t.call(e):l?t(e[0],i):o},X=/^-ms-/,Y=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function K(e){return e.replace(X,"ms-").replace(Y,V)}function J(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[K(t)]=i;else for(n in t)s[K(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(K):(t=K(t))in n?[t]:t.match(I)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!k.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){return e=e[this.expando],void 0!==e&&!k.isEmptyObject(e)}};var Z=new Q,ee=new Q,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;function ne(e,t,i){var n,s;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ie,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:te.test(s)?JSON.parse(s):s)}catch(e){}ee.set(e,t,i)}else i=void 0;return i}k.extend({hasData:function(e){return ee.hasData(e)||Z.hasData(e)},data:function(e,t,i){return ee.access(e,t,i)},removeData:function(e,t){ee.remove(e,t)},_data:function(e,t,i){return Z.access(e,t,i)},_removeData:function(e,t){Z.remove(e,t)}}),k.fn.extend({data:function(e,t){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0!==e)return"object"==typeof e?this.each((function(){ee.set(this,e)})):G(this,(function(t){var i;return o&&void 0===t?void 0!==(i=ee.get(o,e))||void 0!==(i=ne(o,e))?i:void 0:void this.each((function(){ee.set(this,e,t)}))}),null,t,1<arguments.length,null,!0);if(this.length&&(s=ee.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=K(n.slice(5)),ne(o,n,s[n]));Z.set(o,"hasDataAttrs",!0)}return s},removeData:function(e){return this.each((function(){ee.remove(this,e)}))}}),k.extend({queue:function(e,t,i){var n;if(e)return n=Z.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=Z.access(e,t,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){var i=k.queue(e,t=t||"fx"),n=i.length,s=i.shift(),o=k._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,(function(){k.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z.get(e,i)||Z.access(e,i,{empty:k.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",i])}))})}}),k.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?k.queue(this[0],e):void 0===t?this:this.each((function(){var i=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--s||o.resolveWith(r,[r])}var n,s=1,o=k.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(r[a],e+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),o.promise(t)}});var se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+se+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ae=_.documentElement,le=function(e){return k.contains(e.ownerDocument,e)},he={composed:!0};ae.getRootNode&&(le=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(he)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&le(e)&&"none"===k.css(e,"display")};function ue(e,t,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=a(),h=i&&i[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==h&&+l)&&oe.exec(k.css(e,t));if(c&&c[3]!==h){for(h=h||c[3],c=+(l/=2)||1;r--;)k.style(e,t,c+h),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),c/=o;k.style(e,t,(c*=2)+h),i=i||[]}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=c,n.end=s)),s}var de={};function pe(e,t){for(var i,n,s,o,r,a=[],l=0,h=e.length;l<h;l++)(n=e[l]).style&&(i=n.style.display,t?("none"===i&&(a[l]=Z.get(n,"display")||null,a[l]||(n.style.display="")),""===n.style.display&&ce(n)&&(a[l]=(r=o=void 0,o=(s=n).ownerDocument,r=s.nodeName,(s=de[r])||(o=o.body.appendChild(o.createElement(r)),s=k.css(o,"display"),o.parentNode.removeChild(o),de[r]=s="none"===s?"block":s)))):"none"!==i&&(a[l]="none",Z.set(n,"display",i)));for(l=0;l<h;l++)null!=a[l]&&(e[l].style.display=a[l]);return e}k.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?k(this).show():k(this).hide()}))}});var fe=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;E=_.createDocumentFragment().appendChild(_.createElement("div")),(N=_.createElement("input")).setAttribute("type","radio"),N.setAttribute("checked","checked"),N.setAttribute("name","t"),E.appendChild(N),y.checkClone=E.cloneNode(!0).cloneNode(!0).lastChild.checked,E.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!E.cloneNode(!0).lastChild.defaultValue,E.innerHTML="<option></option>",y.option=!!E.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&A(e,t)?k.merge([e],i):i}function be(e,t){for(var i=0,n=e.length;i<n;i++)Z.set(e[i],"globalEval",!t||Z.get(t[i],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,y.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function we(e,t,i,n,s){for(var o,r,a,l,h,c=t.createDocumentFragment(),u=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===C(o))k.merge(u,o.nodeType?[o]:o);else if(_e.test(o)){for(r=r||c.appendChild(t.createElement("div")),a=(ge.exec(o)||["",""])[1].toLowerCase(),a=ve[a]||ve._default,r.innerHTML=a[1]+k.htmlPrefilter(o)+a[2],h=a[0];h--;)r=r.lastChild;k.merge(u,r.childNodes),(r=c.firstChild).textContent=""}else u.push(t.createTextNode(o));for(c.textContent="",d=0;o=u[d++];)if(n&&-1<k.inArray(o,n))s&&s.push(o);else if(l=le(o),r=ye(c.appendChild(o),"script"),l&&be(r),i)for(h=0;o=r[h++];)me.test(o.type||"")&&i.push(o);return c}var xe=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return _.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Te(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Se;else if(!s)return e;return 1===o&&(r=s,(s=function(e){return k().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=k.guid++)),e.each((function(){k.event.add(this,t,s,n,i)}))}function He(e,t,i){i?(Z.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var n,s,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=h.call(arguments),Z.set(this,t,o),n=i(this,t),this[t](),o!==(s=Z.get(this,t))||n?Z.set(this,t,!1):s={},o!==s)return e.stopImmediatePropagation(),e.preventDefault(),s.value}else o.length&&(Z.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&k.event.add(e,t,ke)}k.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,h,c,u,d,p,f=Z.get(e);if(J(e))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&k.find.matchesSelector(ae,s),i.guid||(i.guid=k.guid++),(a=f.events)||(a=f.events=Object.create(null)),(r=f.handle)||(r=f.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(I)||[""]).length;l--;)u=p=(h=Ee.exec(t[l])||[])[1],d=(h[2]||"").split(".").sort(),u&&(c=k.event.special[u]||{},u=(s?c.delegateType:c.bindType)||u,c=k.event.special[u]||{},h=k.extend({type:u,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&k.expr.match.needsContext.test(s),namespace:d.join(".")},o),(p=a[u])||((p=a[u]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,d,r)||e.addEventListener&&e.addEventListener(u,r)),c.add&&(c.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,h):p.push(h),k.event.global[u]=!0)},remove:function(e,t,i,n,s){var o,r,a,l,h,c,u,d,p,f,g,m=Z.hasData(e)&&Z.get(e);if(m&&(l=m.events)){for(h=(t=(t||"").match(I)||[""]).length;h--;)if(p=g=(a=Ee.exec(t[h])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=k.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!s&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(e,c));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||k.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[h],i,n,!0);k.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r=new Array(arguments.length),a=k.event.fix(e),l=(Z.get(this,"events")||Object.create(null))[a.type]||[];e=k.event.special[a.type]||{};for(r[0]=a,t=1;t<arguments.length;t++)r[t]=arguments[t];if(a.delegateTarget=this,!e.preDispatch||!1!==e.preDispatch.call(this,a)){for(o=k.event.handlers.call(this,a,l),t=0;(n=o[t++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==s.namespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(s=((k.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,r))&&!1===(a.result=s)&&(a.preventDefault(),a.stopPropagation()));return e.postDispatch&&e.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,s,o,r,a=[],l=t.delegateCount,h=e.target;if(l&&h.nodeType&&!("click"===e.type&&1<=e.button))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==e.type||!0!==h.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?-1<k(s,this).index(h):k.find(s,this,null,[h]).length),r[s]&&o.push(n);o.length&&a.push({elem:h,handlers:o})}return h=this,l<t.length&&a.push({elem:h,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){return e=this||e,fe.test(e.type)&&e.click&&A(e,"input")&&He(e,"click",ke),!1},trigger:function(e){return e=this||e,fe.test(e.type)&&e.click&&A(e,"input")&&He(e,"click"),!0},_default:function(e){return e=e.target,fe.test(e.type)&&e.click&&A(e,"input")&&Z.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return He(this,e,Ne),!1},trigger:function(){return He(this,e),!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,s=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=s.origType,i=s.handler.apply(this,arguments),e.type=t),i}}})),k.fn.extend({on:function(e,t,i,n){return Te(this,e,t,i,n)},one:function(e,t,i,n){return Te(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Se),this.each((function(){k.event.remove(this,e,i,t)}));for(s in e)this.off(s,t,e[s]);return this}});var De=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ze(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var i,n,s,o;if(1===t.nodeType){if(Z.hasData(e)&&(o=Z.get(e).events))for(s in Z.remove(t,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)k.event.add(t,s,o[s][i]);ee.hasData(e)&&(e=ee.access(e),e=k.extend({},e),ee.set(t,e))}}function Le(e,t,i,n){t=c(t);var s,o,r,a,l,h,u=0,d=e.length,p=d-1,f=t[0],g=b(f);if(g||1<d&&"string"==typeof f&&!y.checkClone&&Ae.test(f))return e.each((function(s){var o=e.eq(s);g&&(t[0]=f.call(this,s,o.html())),Le(o,t,i,n)}));if(d&&(o=(s=we(t,e[0].ownerDocument,!1,e,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=k.map(ye(s,"script"),Re)).length;u<d;u++)l=s,u!==p&&(l=k.clone(l,!0,!0),a&&k.merge(r,ye(l,"script"))),i.call(e[u],l,u);if(a)for(h=r[r.length-1].ownerDocument,k.map(r,Me),u=0;u<a;u++)l=r[u],me.test(l.type||"")&&!Z.access(l,"globalEval")&&k.contains(h,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},h):x(l.textContent.replace(Pe,""),l,h))}return e}function je(e,t,i){for(var n,s=t?k.filter(t,e):e,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||k.cleanData(ye(n)),n.parentNode&&(i&&le(n)&&be(ye(n,"script")),n.parentNode.removeChild(n));return e}function Ie(e,t,i){var n,s={};for(n in t)s[n]=e.style[n],e.style[n]=t[n];for(n in i=i.call(e),t)e.style[n]=s[n];return i}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,s,o,r,a,l,h,c=e.cloneNode(!0),u=le(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(r=ye(c),n=0,s=(o=ye(e)).length;n<s;n++)a=o[n],l=r[n],h=void 0,"input"===(h=l.nodeName.toLowerCase())&&fe.test(a.type)?l.checked=a.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=a.defaultValue);if(t)if(i)for(o=o||ye(e),r=r||ye(c),n=0,s=o.length;n<s;n++)Oe(o[n],r[n]);else Oe(e,c);return 0<(r=ye(c,"script")).length&&be(r,!u&&ye(e,"script")),c},cleanData:function(e){for(var t,i,n,s=k.event.special,o=0;void 0!==(i=e[o]);o++)if(J(i)){if(t=i[Z.expando]){if(t.events)for(n in t.events)s[n]?k.event.remove(i,n):k.removeEvent(i,n,t.handle);i[Z.expando]=void 0}i[ee.expando]&&(i[ee.expando]=void 0)}}}),k.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return G(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=ze(this,e)).insertBefore(e,t.firstChild)}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!ve[(ge.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(k.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,(function(t){var i=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ye(this)),i&&i.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var i,n=[],s=k(e),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),k(s[r])[t](i),u.apply(n,i.get());return this.pushStack(n)}}));var We,Ue,qe,Fe,Be,$e,Ge,Xe,Ye=new RegExp("^("+se+")(?!px)[a-z%]+$","i"),Ve=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:i).getComputedStyle(e)},Ke=new RegExp(re.join("|"),"i");function Je(){var e;Xe&&(Ge.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Xe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(Ge).appendChild(Xe),e=i.getComputedStyle(Xe),We="1%"!==e.top,$e=12===Qe(e.marginLeft),Xe.style.right="60%",Fe=36===Qe(e.right),Ue=36===Qe(e.width),Xe.style.position="absolute",qe=12===Qe(Xe.offsetWidth/3),ae.removeChild(Ge),Xe=null)}function Qe(e){return Math.round(parseFloat(e))}function Ze(e,t,i){var n,s,o=e.style;return(i=i||Ve(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||le(e)||(s=k.style(e,t)),!y.pixelBoxStyles()&&Ye.test(s)&&Ke.test(t)&&(n=o.width,e=o.minWidth,t=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=e,o.maxWidth=t)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ge=_.createElement("div"),(Xe=_.createElement("div")).style&&(Xe.style.backgroundClip="content-box",Xe.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Xe.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return Je(),Ue},pixelBoxStyles:function(){return Je(),Fe},pixelPosition:function(){return Je(),We},reliableMarginLeft:function(){return Je(),$e},scrollboxSize:function(){return Je(),qe},reliableTrDimensions:function(){var e,t,n;return null==Be&&(e=_.createElement("table"),n=_.createElement("tr"),t=_.createElement("div"),e.style.cssText="position:absolute;left:-11111px",n.style.height="1px",t.style.height="9px",ae.appendChild(e).appendChild(n).appendChild(t),n=i.getComputedStyle(n),Be=3<parseInt(n.height),ae.removeChild(e)),Be}}));var tt=["Webkit","Moz","ms"],it=_.createElement("div").style,nt={};function st(e){var t=k.cssProps[e]||nt[e];return t||(e in it?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,rt=/^--/,at={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"};function ht(e,t,i){var n=oe.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ct(e,t,i,n,s,o){var r="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=k.css(e,i+re[r],!0,s)),n?("content"===i&&(l-=k.css(e,"padding"+re[r],!0,s)),"margin"!==i&&(l-=k.css(e,"border"+re[r]+"Width",!0,s))):(l+=k.css(e,"padding"+re[r],!0,s),"padding"!==i?l+=k.css(e,"border"+re[r]+"Width",!0,s):a+=k.css(e,"border"+re[r]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function ut(e,t,i){var n=Ve(e),s=(!y.boxSizingReliable()||i)&&"border-box"===k.css(e,"boxSizing",!1,n),o=s,r=Ze(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(r)){if(!i)return r;r="auto"}return(!y.boxSizingReliable()&&s||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===k.css(e,"boxSizing",!1,n),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+ct(e,t,i||(s?"border":"content"),o,n,r)+"px"}function dt(e,t,i,n,s){return new dt.prototype.init(e,t,i,n,s)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t)return e=Ze(e,"opacity"),""===e?"1":e}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,r,a=K(t),l=rt.test(t),h=e.style;if(l||(t=st(a)),r=k.cssHooks[t]||k.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:h[t];"string"===(o=typeof i)&&(s=oe.exec(i))&&s[1]&&(i=ue(e,t,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(k.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==i||0!==t.indexOf("background")||(h[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?h.setProperty(t,i):h[t]=i))}},css:function(e,t,i,n){var s,o=K(t);return rt.test(t)||(t=st(o)),"normal"===(s=void 0===(s=(o=k.cssHooks[t]||k.cssHooks[o])&&"get"in o?o.get(e,!0,i):s)?Ze(e,t,n):s)&&t in lt&&(s=lt[t]),""===i||i?(t=parseFloat(s),!0===i||isFinite(t)?t||0:s):s}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,i,n){if(i)return!ot.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,n):Ie(e,at,(function(){return ut(e,t,n)}))},set:function(e,i,n){var s,o=Ve(e),r=!y.scrollboxSize()&&"absolute"===o.position,a=(r||n)&&"border-box"===k.css(e,"boxSizing",!1,o);n=n?ct(e,t,n,a,o):0;return a&&r&&(n-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),n&&(s=oe.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=k.css(e,t)),ht(0,i,n)}}})),k.cssHooks.marginLeft=et(y.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+re[n]+t]=o[n]||o[n-2]||o[0];return s}},"margin"!==e&&(k.cssHooks[e+t].set=ht)})),k.fn.extend({css:function(e,t){return G(this,(function(e,t,i){var n,s,o={},r=0;if(Array.isArray(t)){for(n=Ve(e),s=t.length;r<s;r++)o[t[r]]=k.css(e,t[r],!1,n);return o}return void 0!==i?k.style(e,t,i):k.css(e,t)}),e,t,1<arguments.length)}}),(k.Tween=dt).prototype={constructor:dt,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return(e&&e.get?e:dt.propHooks._default).get(this)},run:function(e){var t,i=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.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:dt.propHooks._default).set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=k.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var pt,ft,gt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function vt(){ft&&(!1===_.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(vt):i.setTimeout(vt,k.fx.interval),k.fx.tick())}function yt(){return i.setTimeout((function(){pt=void 0})),pt=Date.now()}function bt(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=re[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function _t(e,t,i){for(var n,s=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,t,e))return n}function wt(e,t,i){var n,s,o=0,r=wt.prefilters.length,a=k.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=pt||yt(),i=(t=Math.max(0,h.startTime+h.duration-t),1-(t/h.duration||0)),n=0,o=h.tweens.length;n<o;n++)h.tweens[n].run(i);return a.notifyWith(e,[h,i,t]),i<1&&o?t:(o||a.notifyWith(e,[h,1,0]),a.resolveWith(e,[h]),!1)},h=a.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},i),originalProperties:t,originalOptions:i,startTime:pt||yt(),duration:i.duration,tweens:[],createTween:function(t,i){return t=k.Tween(e,h.opts,t,i,h.opts.specialEasing[t]||h.opts.easing),h.tweens.push(t),t},stop:function(t){var i=0,n=t?h.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)h.tweens[i].run(1);return t?(a.notifyWith(e,[h,1,0]),a.resolveWith(e,[h,t])):a.rejectWith(e,[h,t]),this}}),c=h.props;for(!function(e,t){var i,n,s,o,r;for(i in e)if(s=t[n=K(i)],o=e[i],Array.isArray(o)&&(s=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(r=k.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=s);else t[n]=s}(c,h.opts.specialEasing);o<r;o++)if(n=wt.prefilters[o].call(h,e,c,h.opts))return b(n.stop)&&(k._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,_t,h),b(h.opts.start)&&h.opts.start.call(e,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:h,queue:h.opts.queue})),h}k.Animation=k.extend(wt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ue(i.elem,e,oe.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,s=(e=b(e)?(t=e,["*"]):e.match(I)).length;n<s;n++)i=e[n],wt.tweeners[i]=wt.tweeners[i]||[],wt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,o,r,a,l,h,c="width"in t||"height"in t,u=this,d={},p=e.style,f=e.nodeType&&ce(e),g=Z.get(e,"fxshow");for(n in i.queue||(null==(r=k._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always((function(){u.always((function(){r.unqueued--,k.queue(e,"fx").length||r.empty.fire()}))}))),t)if(s=t[n],gt.test(s)){if(delete t[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;f=!0}d[n]=g&&g[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(d))for(n in c&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=Z.get(e,"display")),"none"===(c=k.css(e,"display"))&&(h?c=h:(pe([e],!0),h=e.style.display||h,c=k.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===k.css(e,"float")&&(l||(u.done((function(){p.display=h})),null==h&&(c=p.display,h="none"===c?"":c)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",u.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,d)l||(g?"hidden"in g&&(f=g.hidden):g=Z.access(e,"fxshow",{display:h}),o&&(g.hidden=!f),f&&pe([e],!0),u.done((function(){for(n in f||pe([e]),Z.remove(e,"fxshow"),d)k.style(e,n,d[n])}))),l=_t(f?g[n]:0,n,u),n in g||(g[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),k.speed=function(e,t,i){var n=e&&"object"==typeof e?k.extend({},e):{complete:i||!i&&t||b(e)&&e,duration:e,easing:i&&t||t&&!b(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var s=k.isEmptyObject(e),o=k.speed(t,i,n);n=function(){var t=wt(this,k.extend({},e),o);(s||Z.get(this,"finish"))&&t.stop(!0)};return n.finish=n,s||!1===o.queue?this.each(n):this.queue(o.queue,n)},stop:function(e,t,i){function n(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",o=k.timers,r=Z.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&mt.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=e&&o[s].queue!==e||(o[s].anim.stop(i),t=!1,o.splice(s,1));!t&&i||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=Z.get(this),n=i[e+"queue"],s=i[e+"queueHooks"],o=k.timers,r=n?n.length:0;for(i.finish=!0,k.queue(this,e,[]),s&&s.stop&&s.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;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var i=k.fn[t];k.fn[t]=function(e,n,s){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(bt(t,!0),e,n,s)}})),k.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),k.timers=[],k.fx.tick=function(){var e,t=0,i=k.timers;for(pt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||k.fx.stop(),pt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ft||(ft=!0,vt())},k.fx.stop=function(){ft=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,this.queue(t=t||"fx",(function(t,n){var s=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(s)}}))},E=_.createElement("input"),se=_.createElement("select").appendChild(_.createElement("option")),E.type="checkbox",y.checkOn=""!==E.value,y.optSelected=se.selected,(E=_.createElement("input")).value="t",E.type="radio",y.radioValue="t"===E.value;var xt,Ct=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return G(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,i):(1===o&&k.isXMLDoc(e)||(s=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?xt:void 0)),void 0!==i?null===i?void k.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))||null!=(n=k.find.attr(e,t))?n:void 0)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(I);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),xt={set:function(e,t,i){return!1===t?k.removeAttr(e,i):e.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=Ct[t]||k.find.attr;Ct[t]=function(e,t,n){var s,o,r=t.toLowerCase();return n||(o=Ct[r],Ct[r]=s,s=null!=i(e,t,n)?r:null,Ct[r]=o),s}}));var Et=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function St(e){return(e.match(I)||[]).join(" ")}function Nt(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}k.fn.extend({prop:function(e,t){return G(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,s=k.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(k.propHooks.selected={get:function(e){return e=e.parentNode,e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode,e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,i,n,s,o,r,a=0;if(b(e))return this.each((function(t){k(this).addClass(e.call(this,t,Nt(this)))}));if((t=Tt(e)).length)for(;i=this[a++];)if(r=Nt(i),n=1===i.nodeType&&" "+St(r)+" "){for(o=0;s=t[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r!==(r=St(n))&&i.setAttribute("class",r)}return this},removeClass:function(e){var t,i,n,s,o,r,a=0;if(b(e))return this.each((function(t){k(this).removeClass(e.call(this,t,Nt(this)))}));if(!arguments.length)return this.attr("class","");if((t=Tt(e)).length)for(;i=this[a++];)if(r=Nt(i),n=1===i.nodeType&&" "+St(r)+" "){for(o=0;s=t[o++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");r!==(r=St(n))&&i.setAttribute("class",r)}return this},toggleClass:function(e,t){var i=typeof e,n="string"==i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):b(e)?this.each((function(i){k(this).toggleClass(e.call(this,i,Nt(this),t),t)})):this.each((function(){var t,s,o,r;if(n)for(s=0,o=k(this),r=Tt(e);t=r[s++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!=i||((t=Nt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==e&&Z.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+St(Nt(t))+" ").indexOf(n))return!0;return!1}});var Ht=/\r/g;function Dt(e){e.stopPropagation()}k.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=b(e),this.each((function(i){1===this.nodeType&&(null==(i=n?e.call(this,i,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):s?(t=k.valHooks[s.type]||k.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(Ht,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:St(k.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,s="select-one"===e.type,o=s?null:[],r=s?n+1:i.length,a=n<0?r:s?n:0;a<r;a++)if(((t=i[a]).selected||a===n)&&!t.disabled&&(!t.parentNode.disabled||!A(t.parentNode,"optgroup"))){if(t=k(t).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,s=e.options,o=k.makeArray(t),r=s.length;r--;)((n=s[r]).selected=-1<k.inArray(k.valHooks.option.get(n),o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},y.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in i;var At=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(e,t,n,s){var o,a,l,h,c,u,d,p=[n||_],f=g.call(e,"type")?e.type:e,m=g.call(e,"namespace")?e.namespace.split("."):[],v=d=a=n=n||_;if(3!==n.nodeType&&8!==n.nodeType&&!At.test(f+k.event.triggered)&&(-1<f.indexOf(".")&&(f=(m=f.split(".")).shift(),m.sort()),h=f.indexOf(":")<0&&"on"+f,(e=e[k.expando]?e:new k.Event(f,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[f]||{},s||!u.trigger||!1!==u.trigger.apply(n,t))){if(!s&&!u.noBubble&&!r(n)){for(l=u.delegateType||f,At.test(l+f)||(v=v.parentNode);v;v=v.parentNode)p.push(v),a=v;a===(n.ownerDocument||_)&&p.push(a.defaultView||a.parentWindow||i)}for(o=0;(v=p[o++])&&!e.isPropagationStopped();)d=v,e.type=1<o?l:u.bindType||f,(c=(Z.get(v,"events")||Object.create(null))[e.type]&&Z.get(v,"handle"))&&c.apply(v,t),(c=h&&v[h])&&c.apply&&J(v)&&(e.result=c.apply(v,t),!1===e.result&&e.preventDefault());return e.type=f,s||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),t)||!J(n)||h&&b(n[f])&&!r(n)&&((a=n[h])&&(n[h]=null),k.event.triggered=f,e.isPropagationStopped()&&d.addEventListener(f,Dt),n[f](),e.isPropagationStopped()&&d.removeEventListener(f,Dt),k.event.triggered=void 0,a&&(n[h]=a)),e.result}},simulate:function(e,t,i){e=k.extend(new k.Event,i,{type:e,isSimulated:!0}),k.event.trigger(e,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return k.event.trigger(e,t,i,!0)}}),y.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){function i(e){k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,s=Z.access(n,t);s||n.addEventListener(e,i,!0),Z.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=Z.access(n,t)-1;s?Z.access(n,t,s):(n.removeEventListener(e,i,!0),Z.remove(n,t))}}}));var Pt=i.location,zt={guid:Date.now()},Rt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Mt=/\[\]$/,Ot=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function i(e,t){t=b(t)?t():t,s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var n,s=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){i(this.name,this.value)}));else for(n in e)!function e(t,i,n,s){if(Array.isArray(i))k.each(i,(function(i,o){n||Mt.test(t)?s(t,o):e(t+"["+("object"==typeof o&&null!=o?i:"")+"]",o,n,s)}));else if(n||"object"!==C(i))s(t,i);else for(var o in i)e(t+"["+o+"]",i[o],n,s)}(n,e[n],t,i);return s.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&jt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:i.replace(Ot,"\r\n")}})).get()}});var It=/%20/g,Wt=/#.*$/,Ut=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Bt=/^\/\//,$t={},Gt={},Xt="*/".concat("*"),Yt=_.createElement("a");function Vt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,o=t.toLowerCase().match(I)||[];if(b(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Kt(e,t,i,n){var s={},o=e===Gt;function r(a){var l;return s[a]=!0,k.each(e[a]||[],(function(e,a){return a=a(t,i,n),"string"!=typeof a||o||s[a]?o?!(l=a):void 0:(t.dataTypes.unshift(a),r(a),!1)})),l}return r(t.dataTypes[0])||!s["*"]&&r("*")}function Jt(e,t){var i,n,s=k.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n=n||{})[i]=t[i]);return n&&k.extend(!0,e,n),e}Yt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,k.ajaxSettings),t):Jt(k.ajaxSettings,e)},ajaxPrefilter:Vt($t),ajaxTransport:Vt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,s,o,r,a,l,h,c,u,d=k.ajaxSetup({},t=t||{}),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?k(p):k.event,g=k.Deferred(),m=k.Callbacks("once memory"),v=d.statusCode||{},y={},b={},w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(l){if(!r)for(r={};t=qt.exec(o);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){if(e)if(l)x.always(e[x.status]);else for(var t in e)v[t]=[v[t],e[t]];return this},abort:function(e){return e=e||w,n&&n.abort(e),C(0,e),this}};if(g.promise(x),d.url=((e||d.url||Pt.href)+"").replace(Bt,Pt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(I)||[""],null==d.crossDomain){u=_.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Yt.protocol+"//"+Yt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=k.param(d.data,d.traditional)),Kt($t,d,t,x),l)return x;for(c in(h=k.event&&d.global)&&0==k.active++&&k.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ft.test(d.type),s=d.url.replace(Wt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(It,"+")):(u=d.url.slice(s.length),d.data&&(d.processData||"string"==typeof d.data)&&(s+=(Rt.test(s)?"&":"?")+d.data,delete d.data),!1===d.cache&&(s=s.replace(Ut,"$1"),u=(Rt.test(s)?"&":"?")+"_="+zt.guid+++u),d.url=s+u),d.ifModified&&(k.lastModified[s]&&x.setRequestHeader("If-Modified-Since",k.lastModified[s]),k.etag[s]&&x.setRequestHeader("If-None-Match",k.etag[s])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xt+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,x,d)||l))return x.abort();if(w="abort",m.add(d.complete),x.done(d.success),x.fail(d.error),n=Kt(Gt,d,t,x)){if(x.readyState=1,h&&f.trigger("ajaxSend",[x,d]),l)return x;d.async&&0<d.timeout&&(a=i.setTimeout((function(){x.abort("timeout")}),d.timeout));try{l=!1,n.send(y,C)}catch(e){if(l)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,r,c){var u,y,b,_=t;l||(l=!0,a&&i.clearTimeout(a),n=void 0,o=c||"",x.readyState=0<e?4:0,c=200<=e&&e<300||304===e,r&&(b=function(e,t,i){for(var n,s,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r=r||s}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(d,x,r)),!c&&-1<k.inArray("script",d.dataTypes)&&(d.converters["text script"]=function(){}),b=function(e,t,i,n){var s,o,r,a,l,h={},c=e.dataTypes.slice();if(c[1])for(r in e.converters)h[r.toLowerCase()]=e.converters[r];for(o=c.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=h[l+" "+o]||h["* "+o]))for(s in h)if((a=s.split(" "))[1]===o&&(r=h[l+" "+a[0]]||h["* "+a[0]])){!0===r?r=h[s]:!0!==h[s]&&(o=a[0],c.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,b,x,c),c?(d.ifModified&&((r=x.getResponseHeader("Last-Modified"))&&(k.lastModified[s]=r),(r=x.getResponseHeader("etag"))&&(k.etag[s]=r)),204===e||"HEAD"===d.type?_="nocontent":304===e?_="notmodified":(_=b.state,u=b.data,c=!(y=b.error))):(y=_,!e&&_||(_="error",e<0&&(e=0))),x.status=e,x.statusText=(t||_)+"",c?g.resolveWith(p,[u,_,x]):g.rejectWith(p,[x,_,y]),x.statusCode(v),v=void 0,h&&f.trigger(c?"ajaxSuccess":"ajaxError",[x,d,c?u:y]),m.fireWith(p,[x,_]),h&&(f.trigger("ajaxComplete",[x,d]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,i){return k.get(e,t,i,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,i,n,s){return b(i)&&(s=s||n,n=i,i=void 0),k.ajax(k.extend({url:e,type:t,dataType:s,data:i,success:n},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,i){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,i)}})},k.fn.extend({wrapAll:function(e){return this[0]&&(b(e)&&(e=e.call(this[0])),e=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(i){k(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(o){}};var Qt={0:200,1223:204},Zt=k.ajaxSettings.xhr();y.cors=!!Zt&&"withCredentials"in Zt,y.ajax=Zt=!!Zt,k.ajaxTransport((function(e){var t,n;if(y.cors||Zt&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Qt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,s){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&s("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){i&&i()}}}));var ei=[],ti=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ei.pop()||k.expando+"_"+zt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,n){var s,o,r,a=!1!==e.jsonp&&(ti.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ti.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ti,"$1"+s):!1!==e.jsonp&&(e.url+=(Rt.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||k.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=i[s],i[s]=function(){r=arguments},n.always((function(){void 0===o?k(i).removeProp(s):i[s]=o,e[s]&&(e.jsonpCallback=t.jsonpCallback,ei.push(s)),r&&b(o)&&o(r[0]),r=o=void 0})),"script"})),y.createHTMLDocument=((E=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===E.childNodes.length),k.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(y.createHTMLDocument?((n=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(n)):t=_),n=!i&&[],(i=P.exec(e))?[t.createElement(i[1])]:(i=we([e],t,n),n&&n.length&&k(n).remove(),k.merge([],i.childNodes)));var n},k.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return-1<a&&(n=St(e.slice(a)),e=e.slice(0,a)),b(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<r.length&&k.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){o=arguments,r.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,i){var n,s,o,r,a=k.css(e,"position"),l=k(e),h={};"static"===a&&(e.style.position="relative"),o=l.offset(),n=k.css(e,"top"),r=k.css(e,"left"),r=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=l.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(t=b(t)?t.call(e,i,k.extend({},o)):t).top&&(h.top=t.top-o.top+s),null!=t.left&&(h.left=t.left-o.left+r),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),l.css(h))}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,i=this[0];return i?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 e,t,i,n=this[0],s={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),s.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-k.css(n,"marginTop",!0),left:t.left-s.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ae}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;k.fn[e]=function(n){return G(this,(function(e,n,s){var o;return r(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===s?o?o[t]:e[n]:void(o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):e[n]=s)}),e,n,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(y.pixelPosition,(function(e,i){if(i)return i=Ze(e,t),Ye.test(i)?k(e).position()[t]+"px":i}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){k.fn[n]=function(s,o){var a=arguments.length&&(i||"boolean"!=typeof s),l=i||(!0===s||!0===o?"margin":"border");return G(this,(function(t,i,s){var o;return r(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===s?k.css(t,i,l):k.style(t,i,s,l)}),t,a?s:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({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)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.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(e,t){k.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}}));var ii=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=h.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(h.call(arguments)))}).guid=e.guid=e.guid||k.guid++,n},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=b,k.isWindow=r,k.camelCase=K,k.type=C,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(ii,"")},n=[],s=function(){return k}.apply(t,n),void 0===s||(e.exports=s);var ni=i.jQuery,si=i.$;return k.noConflict=function(e){return i.$===k&&(i.$=si),e&&i.jQuery===k&&(i.jQuery=ni),k},i.jQuery=i.$=k}))},"15d7":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDD=void 0;const n=i("337a"),s=i("f411"),o=i("afd0");class r extends n.GridStackDDI{static get(){return n.GridStackDDI.get()}remove(e){return this.draggable(e,"destroy").resizable(e,"destroy"),e.gridstackNode&&delete e.gridstackNode._initDD,this}}function a(e,t){let i=e?e.gridstackNode:void 0;i&&i.grid&&(t?i._isAboutToRemove=!0:delete i._isAboutToRemove,t?e.classList.add("grid-stack-item-removing"):e.classList.remove("grid-stack-item-removing"))}t.GridStackDD=r,s.GridStack.prototype._setupAcceptWidget=function(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return r.get().droppable(this.el,"destroy"),this;let e,t,i,n=(n,s,a)=>{let l=s.gridstackNode;if(!l)return;a=a||s;let h=a.getBoundingClientRect(),c=h.left-e.left,u=h.top-e.top,d={position:{top:u,left:c}};if(l._temporaryRemoved){if(l.x=Math.max(0,Math.round(c/i)),l.y=Math.max(0,Math.round(u/t)),delete l.autoPosition,this.engine.nodeBoundFix(l),!this.engine.willItFit(l)){if(l.autoPosition=!0,!this.engine.willItFit(l))return void r.get().off(s,"drag");l._willFitPos&&(o.Utils.copyPos(l,l._willFitPos),delete l._willFitPos)}this._onStartMoving(a,n,d,l,i,t)}else this._dragOrResize(a,n,d,l,i,t)};return r.get().droppable(this.el,{accept:e=>{let t=e.gridstackNode;if(t&&t.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let i=!0;if("function"===typeof this.opts.acceptWidgets)i=this.opts.acceptWidgets(e);else{let t=!0===this.opts.acceptWidgets?".grid-stack-item":this.opts.acceptWidgets;i=e.matches(t)}if(i&&t&&this.opts.maxRow){let e={w:t.w,h:t.h,minW:t.minW,minH:t.minH};i=this.engine.willItFit(e)}return i}}).on(this.el,"dropover",(s,o,l)=>{let h=o.gridstackNode;if(h&&h.grid===this&&!h._temporaryRemoved)return!1;if(h&&h.grid&&h.grid!==this&&!h._temporaryRemoved){let e=h.grid;e._leave(o,l)}let c=this.el.getBoundingClientRect();e={top:c.top,left:c.left},i=this.cellWidth(),t=this.getCellHeight(!0),h||(h=this._readAttr(o)),h.grid||(h._isExternal=!0,o.gridstackNode=h),l=l||o;let u=h.w||Math.round(l.offsetWidth/i)||1,d=h.h||Math.round(l.offsetHeight/t)||1;return h.grid&&h.grid!==this?(o._gridstackNodeOrig||(o._gridstackNodeOrig=h),o.gridstackNode=h=Object.assign(Object.assign({},h),{w:u,h:d,grid:this}),this.engine.cleanupNode(h).nodeBoundFix(h),h._initDD=h._isExternal=h._temporaryRemoved=!0):(h.w=u,h.h=d,h._temporaryRemoved=!0),a(h.el,!1),r.get().on(o,"drag",n),n(s,o,l),!1}).on(this.el,"dropout",(e,t,i)=>{let n=t.gridstackNode;return n.grid&&n.grid!==this||this._leave(t,i),!1}).on(this.el,"drop",(e,t,i)=>{let n=t.gridstackNode;if(n&&n.grid===this&&!n._isExternal)return!1;let s=!!this.placeholder.parentElement;this.placeholder.remove();let a=t._gridstackNodeOrig;if(delete t._gridstackNodeOrig,s&&a&&a.grid&&a.grid!==this){let e=a.grid;e.engine.removedNodes.push(a),e._triggerRemoveEvent()}return!!n&&(s&&(this.engine.cleanupNode(n),n.grid=this),r.get().off(t,"drag"),i!==t?(i.remove(),t.gridstackNode=a,s&&(t=t.cloneNode(!0))):(t.remove(),r.get().remove(t)),!!s&&(t.gridstackNode=n,n.el=t,o.Utils.copyPos(n,this._readAttr(this.placeholder)),o.Utils.removePositioningStyles(t),this._writeAttr(t,n),this.el.appendChild(t),this._updateContainerHeight(),this.engine.addedNodes.push(n),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler["dropped"]&&this._gsEventHandler["dropped"](Object.assign(Object.assign({},e),{type:"dropped"}),a&&a.grid?a:void 0,n),window.setTimeout(()=>{n.el&&n.el.parentElement?this._prepareDragDropByNode(n):this.engine.removeNode(n)}),!1))}),this},s.GridStack.prototype._setupRemoveDrop=function(){if(!this.opts.staticGrid&&"string"===typeof this.opts.removable){let e=document.querySelector(this.opts.removable);if(!e)return this;r.get().isDroppable(e)||r.get().droppable(e,this.opts.removableOptions).on(e,"dropover",(e,t)=>a(t,!0)).on(e,"dropout",(e,t)=>a(t,!1))}return this},s.GridStack.setupDragIn=function(e,t){let i,n;const s={revert:"invalid",handle:".grid-stack-item-content",scroll:!1,appendTo:"body"};if(e&&(i=e,n=Object.assign(Object.assign({},s),t||{})),"string"!==typeof i)return;let a=r.get();o.Utils.getElements(i).forEach(e=>{a.isDraggable(e)||a.dragIn(e,n)})},s.GridStack.prototype._prepareDragDropByNode=function(e){let t=e.el,i=r.get();if(this.opts.staticGrid||(e.noMove||this.opts.disableDrag)&&(e.noResize||this.opts.disableResize))return e._initDD&&(i.remove(t),delete e._initDD),t.classList.add("ui-draggable-disabled","ui-resizable-disabled"),this;if(!e._initDD){let n,s,r=(i,o)=>{this._gsEventHandler[i.type]&&this._gsEventHandler[i.type](i,i.target),n=this.cellWidth(),s=this.getCellHeight(!0),this._onStartMoving(t,i,o,e,n,s)},a=(i,o)=>{this._dragOrResize(t,i,o,e,n,s)},l=n=>{this.placeholder.remove(),delete e._moving,delete e._lastTried;let s=n.target;if(s.gridstackNode&&s.gridstackNode.grid===this){if(e.el=s,e._isAboutToRemove){let o=t.gridstackNode.grid;o._gsEventHandler[n.type]&&o._gsEventHandler[n.type](n,s),i.remove(t),o.engine.removedNodes.push(e),o._triggerRemoveEvent(),delete t.gridstackNode,delete e.el,t.remove()}else e._temporaryRemoved?(o.Utils.removePositioningStyles(s),o.Utils.copyPos(e,e._orig),this._writePosAttr(s,e),this.engine.addNode(e)):(o.Utils.removePositioningStyles(s),this._writePosAttr(s,e)),this._gsEventHandler[n.type]&&this._gsEventHandler[n.type](n,s);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate()}};i.draggable(t,{start:r,stop:l,drag:a}).resizable(t,{start:r,stop:l,resize:a}),e._initDD=!0}return e.noMove||this.opts.disableDrag?(i.draggable(t,"disable"),t.classList.add("ui-draggable-disabled")):(i.draggable(t,"enable"),t.classList.remove("ui-draggable-disabled")),e.noResize||this.opts.disableResize?(i.resizable(t,"disable"),t.classList.add("ui-resizable-disabled")):(i.resizable(t,"enable"),t.classList.remove("ui-resizable-disabled")),this},s.GridStack.prototype._onStartMoving=function(e,t,i,n,s,o){if(this.engine.cleanNodes().beginUpdate(n),this._writePosAttr(this.placeholder,n),this.el.appendChild(this.placeholder),n.el=this.placeholder,n._lastUiPosition=i.position,n._prevYPix=i.position.top,n._moving="dragstart"===t.type,delete n._lastTried,"dropover"===t.type&&n._temporaryRemoved&&(this.engine.addNode(n),n._moving=!0),this.engine.cacheRects(s,o,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),"resizestart"===t.type){let t=r.get().resizable(e,"option","minWidth",s*(n.minW||1)).resizable(e,"option","minHeight",o*(n.minH||1));n.maxW&&t.resizable(e,"option","maxWidth",s*n.maxW),n.maxH&&t.resizable(e,"option","maxHeight",o*n.maxH)}},s.GridStack.prototype._leave=function(e,t){let i=e.gridstackNode;i&&(r.get().off(e,"drag"),i._temporaryRemoved||(i._temporaryRemoved=!0,this.engine.removeNode(i),i.el=i._isExternal&&t?t:e,!0===this.opts.removable&&a(e,!0),e._gridstackNodeOrig?(e.gridstackNode=e._gridstackNodeOrig,delete e._gridstackNodeOrig):i._isExternal&&(delete i.el,delete e.gridstackNode,this.engine.restoreInitial())))},s.GridStack.prototype._dragOrResize=function(e,t,i,n,s,r){let a,l=Object.assign({},n._orig);const h=this.opts.marginLeft,c=this.opts.marginRight,u=this.opts.marginTop,d=this.opts.marginBottom;if("drag"===t.type){if(n._temporaryRemoved)return;let t=i.position.top-n._prevYPix;n._prevYPix=i.position.top,o.Utils.updateScrollPosition(e,i.position,t);let a=i.position.left+(i.position.left>n._lastUiPosition.left?-c:h),p=i.position.top+(i.position.top>n._lastUiPosition.top?-d:u);l.x=Math.round(a/s),l.y=Math.round(p/r);let f=this._extraDragRow;if(this.engine.collide(n,l)){let e=this.getRow(),t=Math.max(0,l.y+n.h-e);this.opts.maxRow&&e+t>this.opts.maxRow&&(t=Math.max(0,this.opts.maxRow-e)),this._extraDragRow=t}else this._extraDragRow=0;if(this._extraDragRow!==f&&this._updateContainerHeight(),n.x===l.x&&n.y===l.y)return}else if("resize"===t.type){if(l.x<0)return;if(o.Utils.updateScrollResize(t,e,r),l.w=Math.round((i.size.width-h)/s),l.h=Math.round((i.size.height-u)/r),n.w===l.w&&n.h===l.h)return;if(n._lastTried&&n._lastTried.w===l.w&&n._lastTried.h===l.h)return;let c=i.position.left+h,d=i.position.top+u;l.x=Math.round(c/s),l.y=Math.round(d/r),a=!0}n._lastTried=l;let p={x:i.position.left+h,y:i.position.top+u,w:(i.size?i.size.width:n.w*s)-h-c,h:(i.size?i.size.height:n.h*r)-u-d};if(this.engine.moveNodeCheck(n,Object.assign(Object.assign({},l),{cellWidth:s,cellHeight:r,rect:p}))){n._lastUiPosition=i.position,this.engine.cacheRects(s,r,u,c,d,h),delete n._skipDown,a&&n.subGrid&&n.subGrid.onParentResize(),this._extraDragRow=0,this._updateContainerHeight();let e=t.target;this._writePosAttr(e,n),this._gsEventHandler[t.type]&&this._gsEventHandler[t.type](t,e)}},s.GridStack.prototype.movable=function(e,t){return this.opts.staticGrid||s.GridStack.getElements(e).forEach(e=>{let i=e.gridstackNode;i&&(t?delete i.noMove:i.noMove=!0,this._prepareDragDropByNode(i))}),this},s.GridStack.prototype.resizable=function(e,t){return this.opts.staticGrid||s.GridStack.getElements(e).forEach(e=>{let i=e.gridstackNode;i&&(t?delete i.noResize:i.noResize=!0,this._prepareDragDropByNode(i))}),this},s.GridStack.prototype.disable=function(){if(!this.opts.staticGrid)return this.enableMove(!1),this.enableResize(!1),this._triggerEvent("disable"),this},s.GridStack.prototype.enable=function(){if(!this.opts.staticGrid)return this.enableMove(!0),this.enableResize(!0),this._triggerEvent("enable"),this},s.GridStack.prototype.enableMove=function(e){return this.opts.staticGrid||(this.opts.disableDrag=!e,this.engine.nodes.forEach(t=>this.movable(t.el,e))),this},s.GridStack.prototype.enableResize=function(e){return this.opts.staticGrid||(this.opts.disableResize=!e,this.engine.nodes.forEach(t=>this.resizable(t.el,e))),this}},"25eb":function(e,t,i){var n=i("23e7"),s=i("c20d");n({target:"Number",stat:!0,forced:Number.parseInt!=s},{parseInt:s})},"337a":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDDI=void 0;class n{static registerPlugin(e){return n.ddi=new e,n.ddi}static get(){return n.ddi||n.registerPlugin(n)}remove(e){return this}}t.GridStackDDI=n},"48bc":function(e,t,i){},"4fe7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("main",{staticClass:"w-100 h-100vh overflow-hidden"},[e.loading?i("div",{attrs:{id:"gridCont"}},[i("div",{staticClass:"grid-stack h-100vh d-flex flex-wrap justify-content-center align-content-center position-absolute-fullsize"},[i("b-spinner",{staticClass:"text-color-primary"})],1)]):i("div",{staticClass:"h-100vh toggleArea",attrs:{id:"gridCont"}},[i("div",{staticClass:"grid-stack toggleArea"},e._l(e.cameras,(function(t,n){return i("div",{key:t.name,staticClass:"grid-stack-item toggleArea",attrs:{"gs-id":n}},[i("VideoCard",{key:t.name,ref:t.name,refInFor:!0,attrs:{camera:t,cardClass:"grid-stack-item-content",fullsize:!0,nameOverlay:!0,notificationOverlay:!0,showFullsizeIndicator:!0,showRefreshIndicator:!0,showSpinner:!0},on:{refreshStream:e.refreshStreamSocket}})],1)})),0)])]),e.allCameras.length&&e.checkLevel(["cameras:access","settings:cameras:access","settings:camview:access"])?i("ActionSheet",{attrs:{items:e.allCameras,state:"favourite",showLeftNavi:!0,leftNaviName:e.$t("back"),showMiddleNavi:!e.isMobile,middleNaviName:e.$t("fullscreen"),showRightNavi:!0,rightNaviName:e.$t("signout")},on:{leftNaviClick:e.goBack,middleNaviClick:e.showFullscreen,rightNaviClick:e.logOut,changeState:e.handleFavouriteCamera}}):e._e()],1)},s=[],o=i("3835"),r=i("b85c"),a=i("1da1"),l=(i("96cf"),i("d3b7"),i("b0c0"),i("4de4"),i("3ca3"),i("ddb0"),i("7db0"),i("25f0"),i("d81d"),i("25eb"),i("a9e3"),i("e207"),i("f411")),h=(i("7626"),i("4add")),c=i("9f6c"),u=i("20b6"),d=i("b72c"),p=i("068a"),f=function(e){return new Promise((function(t){return setTimeout(t,e)}))},g={name:"CamView",components:{ActionSheet:d["a"],VideoCard:p["a"]},beforeRouteEnter:function(e,t,i){i((function(e){e.prevRoute=t}))},data:function(){return{allCameras:[],cameras:[],fullscreen:!1,grid:null,loading:!0,prevRoute:null,serializedData:[]}},computed:{currentUser:function(){return this.$store.state.auth.user},camviewLayout:function(){return this.$store.state.camview.layout}},created:function(){var e=document.querySelector("body"),t=document.querySelector("html");e.classList.add("body-bg-dark"),t.classList.add("body-bg-dark")},mounted:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var i,n,s,o,a,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!e.prevRoute||e.prevRoute.name||e.prevRoute.meta.name||(i=document.querySelector(".back-button"),i&&(i.innerHTML="Dashboard")),!e.checkLevel(["cameras:access","settings:camview:access"])){t.next=36;break}return t.next=5,Object(h["d"])();case 5:return n=t.sent,t.next=8,Object(u["b"])("camview");case 8:s=t.sent,o=Object(r["a"])(n.data.result),t.prev=10,l=regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=a.value,i.favourite=i.settings.camview.favourite,i.live=i.settings.camview.live||!1,i.refreshTimer=s.data.refreshTimer||60,t.next=6,Object(c["a"])("?cameras=".concat(i.name,"&pageSize=5"));case 6:n=t.sent,i.lastNotification=n.data.result.length>0&&n.data.result[0],i.favourite&&i.live&&e.$socket.client.on(i.name,(function(t){e.$refs[i.name]&&e.$refs[i.name][0]&&e.$refs[i.name][0].writeStream(t)}));case 9:case"end":return t.stop()}}),t)})),o.s();case 13:if((a=o.n()).done){t.next=17;break}return t.delegateYield(l(),"t0",15);case 15:t.next=13;break;case 17:t.next=22;break;case 19:t.prev=19,t.t1=t["catch"](10),o.e(t.t1);case 22:return t.prev=22,o.f(),t.finish(22);case 25:return e.allCameras=n.data.result,e.cameras=n.data.result.filter((function(e){return e.favourite})),e.loading=!1,t.next=30,f(10);case 30:e.updateLayout(),document.addEventListener("keydown",e.logKey),document.addEventListener("fullscreenchange",e.fullscreenHandler),window.addEventListener("resize",e.resizeHandler),t.next=37;break;case 36:e.$toast.error(e.$t("no_access"));case 37:t.next=42;break;case 39:t.prev=39,t.t2=t["catch"](0),e.$toast.error(t.t2.message);case 42:case"end":return t.stop()}}),t,null,[[0,39],[10,19,22,25]])})))()},beforeDestroy:function(){var e=document.querySelector("body"),t=document.querySelector("html");e.classList.remove("body-bg-dark"),t.classList.remove("body-bg-dark"),document.removeEventListener("keydown",this.logKey),document.removeEventListener("fullscreenchange",this.fullscreenHandler),window.removeEventListener("resize",this.resizeHandler)},methods:{closeFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen();var e=document.querySelector(".middle-button");e.innerHTML=this.$t("fullscreen"),this.fullscreen=!1},fullscreenHandler:function(){document.fullscreenElement?(console.log("Entered fullscreen mode."),this.fullscreen=!0):(console.log("Leaving fullscreen mode."),this.fullscreen=!1)},handleFavouriteCamera:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function i(){var n,s,o,a,l,h,c,d;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,n=t.allCameras.find((function(t){return t&&t.name===e.name})),i.next=4,Object(u["b"])("cameras");case 4:s=i.sent,o=Object(r["a"])(s.data);try{for(o.s();!(a=o.n()).done;)l=a.value,l.name===n.name&&(l.camview.favourite=e.state)}catch(p){o.e(p)}finally{o.f()}return i.next=9,Object(u["a"])("cameras",s.data);case 9:return e.state?t.cameras.push(n):t.cameras=t.cameras.filter((function(t){return t&&t.name!==e.name})),i.next=12,f(10);case 12:h=t.getLayout(),t.grid.removeAll(),c=h.length.toString(),t.camviewLayout[c]&&t.camviewLayout[c].length>0&&t.camviewLayout[c].length===h.length?(d=h.map((function(e){return e.el})),t.restoreFromStorage(c,d,!0)):t.refreshLayout(h),i.next=22;break;case 18:i.prev=18,i.t0=i["catch"](0),console.log(i.t0),t.$toast.error(i.t0.message);case 22:case"end":return i.stop()}}),i,null,[[0,18]])})))()},getLayout:function(e){var t,i=[],n=0,s=0,a=0,l=this.items().length<7?6:4,h=12/Math.round((this.items().length%2===0?this.items().length:this.items().length+1)/(this.items().length<7?2:3)),c=Object(r["a"])(this.items().entries());try{for(c.s();!(t=c.n()).done;){var u=Object(o["a"])(t.value,2),d=u[0],p=u[1],f=this.items()[d?d-1:d],g=Number.parseInt(f.getAttribute("gs-x"));s=this.items().length<7?d&&!g?6:0:d&&!g?4:4==g?8:0,this.items().length<7&&d%2==0&&(a=n*h,n++),this.items().length>=7&&d%3==0&&(a=n*h,n++),1===this.items().length&&(s=0,a=0,l=12,h=12),2===this.items().length&&(s=0,a=6*d,l=12,h=6),i.push({index:d,el:p,x:s,y:a,w:l,h:h}),e&&this.grid.update(p,{x:s,y:a,w:l,h:h})}}catch(m){c.e(m)}finally{c.f()}return i},goBack:function(){if(this.prevRoute&&!this.prevRoute.name&&!this.prevRoute.meta.name)return this.$router.push("/dashboard");this.$router.go(-1)},isMobile:function(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return e},items:function(){return document.querySelectorAll(".grid-stack-item")},logKey:function(e){"F11"===e.key||122===e.keyCode?(e.preventDefault(),this.fullscreen?this.closeFullscreen():this.openFullscreen()):"Escape"!==e.key&&27!==e.keyCode||!this.fullscreen||(e.preventDefault(),this.closeFullscreen())},logOut:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("auth/logout");case 2:e.$router.push("/");case 3:case"end":return t.stop()}}),t)})))()},openFullscreen:function(){var e=document.querySelector("html");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen();var t=document.querySelector(".middle-button");t.innerHTML=this.$t("close"),this.fullscreen=!0},refreshLayout:function(e){var t,i=0,n=0,s=0,a=e.length<7?6:4,l=12/Math.round((e.length%2===0?e.length:e.length+1)/(e.length<7?2:3)),h=Object(r["a"])(e.entries());try{for(h.s();!(t=h.n()).done;){var c=Object(o["a"])(t.value,2),u=c[0],d=c[1],p=e[u?u-1:u].el,f=Number.parseInt(p.getAttribute("gs-x"));n=e.length<7?u&&!f?6:0:u&&!f?4:4==f?8:0,e.length<7&&u%2==0&&(s=i*l,i++),e.length>=7&&u%3==0&&(s=i*l,i++),1===e.length&&(n=0,s=0,a=12,l=12),2===e.length&&(n=0,s=6*u,a=12,l=6);var g={id:d.el.getAttribute("gs-id"),x:n,y:s,w:a,h:l};this.grid.addWidget(d.el,g)}}catch(m){h.e(m)}finally{h.f()}},refreshStreamSocket:function(e){this.$refs[e.camera]&&this.$refs[e.camera][0]&&this.$refs[e.camera][0].pauseStream(!0),this.$socket.client.emit("join_stream",{feed:e.camera,destroy:!0})},resizeHandler:function(){this.grid&&this.grid.cellHeight(this.windowHeight()/12,!0)},restoreFromStorage:function(e,t,i){t=t||this.items();var n,s=this.camviewLayout[e],o=Object(r["a"])(t);try{for(o.s();!(n=o.n()).done;){var a,l=n.value,h=Object(r["a"])(s);try{for(h.s();!(a=h.n()).done;){var c=a.value,u=l.getAttribute("gs-id");u===c.id&&(i?this.grid.addWidget(l,c):this.grid.update(l,c))}}catch(d){h.e(d)}finally{h.f()}}}catch(d){o.e(d)}finally{o.f()}},saveToStorage:function(){var e={};e[this.items().length]=this.grid.save();var t,i=Object(r["a"])(e[this.items().length]);try{for(i.s();!(t=i.n()).done;){var n=t.value;delete n.content}}catch(s){i.e(s)}finally{i.f()}this.$store.dispatch("camview/updateElements",e)},showFullscreen:function(){this.fullscreen?this.closeFullscreen():this.openFullscreen()},updateLayout:function(){var e=this;this.grid=l["GridStack"].init({alwaysShowResizeHandle:this.isMobile(),disableOneColumnMode:!0,animate:!0,margin:2,row:12,float:!0,column:12,resizable:{autoHide:!this.isMobile(),handles:"all"},cellHeight:this.windowHeight()/12}),this.grid.on("dragstop resizestop",(function(){e.saveToStorage()}));var t=this.items().length.toString();this.camviewLayout[t]&&this.camviewLayout[t].length>0&&this.camviewLayout[t].length===this.items().length?this.restoreFromStorage(t):this.getLayout(!0)},windowHeight:function(){var e=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&"undefined"!=typeof window.outerHeight?Math.max(window.outerHeight,document.documentElement.clientHeight):document.documentElement.clientHeight;return e},windowWidth:function(){var e=Math.max(document.documentElement.clientWidth,window.innerWidth);return e}}},m=g,v=(i("df84"),i("2877")),y=Object(v["a"])(m,n,s,!1,null,"68c09213",null);t["default"]=y.exports},7626:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),s=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackDDJQueryUI=t.$=void 0;const o=i("15d7"),r=i("0d2d");t.$=r,i("cb12"),i("d70d"),s(i("15d7"),t);class a extends o.GridStackDD{resizable(e,t,i,n){let s=r(e);if("enable"===t)s.resizable().resizable(t);else if("disable"===t||"destroy"===t)s.data("ui-resizable")&&s.resizable(t);else if("option"===t)s.resizable(t,i,n);else{const i=e.gridstackNode.grid;let n=s.data("gs-resize-handles")?s.data("gs-resize-handles"):i.opts.resizable.handles;s.resizable(Object.assign(Object.assign(Object.assign({},i.opts.resizable),{handles:n}),{start:t.start,stop:t.stop,resize:t.resize}))}return this}draggable(e,t,i,n){let s=r(e);if("enable"===t)s.draggable().draggable("enable");else if("disable"===t||"destroy"===t)s.data("ui-draggable")&&s.draggable(t);else if("option"===t)s.draggable(t,i,n);else{const i=e.gridstackNode.grid;s.draggable(Object.assign(Object.assign({},i.opts.draggable),{containment:i.opts._isNested&&!i.opts.dragOut?r(i.el).parent():i.opts.draggable.containment||null,start:t.start,stop:t.stop,drag:t.drag}))}return this}dragIn(e,t){let i=r(e);return i.draggable(t),this}droppable(e,t,i,n){let s=r(e);return"function"!==typeof t.accept||t._accept||(t._accept=t.accept,t.accept=e=>t._accept(e.get(0))),"disable"===t||"destroy"===t?s.data("ui-droppable")&&s.droppable(t):s.droppable(t,i,n),this}isDroppable(e){let t=r(e);return Boolean(t.data("ui-droppable"))}isDraggable(e){let t=r(e);return Boolean(t.data("ui-draggable"))}isResizable(e){let t=r(e);return Boolean(t.data("ui-resizable"))}on(e,t,i){let n=r(e);return n.on(t,(e,t)=>i(e,t.draggable?t.draggable[0]:e.target,t.helper?t.helper[0]:null)),this}off(e,t){let i=r(e);return i.off(t),this}}t.GridStackDDJQueryUI=a,o.GridStackDD.registerPlugin(a)},a9e3:function(e,t,i){"use strict";var n=i("83ab"),s=i("da84"),o=i("94ca"),r=i("6eeb"),a=i("5135"),l=i("c6b6"),h=i("7156"),c=i("d9b5"),u=i("c04e"),d=i("d039"),p=i("7c73"),f=i("241c").f,g=i("06cf").f,m=i("9bf2").f,v=i("58a8").trim,y="Number",b=s[y],_=b.prototype,w=l(p(_))==y,x=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,i,n,s,o,r,a,l,h=u(e,"number");if("string"==typeof h&&h.length>2)if(h=v(h),t=h.charCodeAt(0),43===t||45===t){if(i=h.charCodeAt(2),88===i||120===i)return NaN}else if(48===t){switch(h.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+h}for(o=h.slice(2),r=o.length,a=0;a<r;a++)if(l=o.charCodeAt(a),l<48||l>s)return NaN;return parseInt(o,n)}return+h};if(o(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,E=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof E&&(w?d((function(){_.valueOf.call(i)})):l(i)!=y)?h(new b(x(t)),i,E):x(t)},k=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;k.length>S;S++)a(b,C=k[S])&&!a(E,C)&&m(E,C,g(b,C));E.prototype=_,_.constructor=E,r(s,y,E)}},afd0:function(e,t,i){"use strict";function n(e,t,i,n,s){let o=(...o)=>(console.warn("gridstack.js: Function `"+i+"` is deprecated in "+s+" and has been replaced with `"+n+"`. It will be **completely** removed in v1.0"),t.apply(e,o));return o.prototype=t.prototype,o}function s(e,t,i,n){void 0!==e[t]&&(e[i]=e[t],console.warn("gridstack.js: Option `"+t+"` is deprecated in "+n+" and has been replaced with `"+i+"`. It will be **completely** removed in v1.0"))}function o(e,t,i,n){void 0!==e[t]&&console.warn("gridstack.js: Option `"+t+"` is deprecated in "+i+n)}function r(e,t,i,n){let s=e.getAttribute(t);null!==s&&(e.setAttribute(i,s),console.warn("gridstack.js: attribute `"+t+"`="+s+" is deprecated on this object in "+n+" and has been replaced with `"+i+"`. It will be **completely** removed in v1.0"))}Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.obsoleteAttr=t.obsoleteOptsDel=t.obsoleteOpts=t.obsolete=void 0,t.obsolete=n,t.obsoleteOpts=s,t.obsoleteOptsDel=o,t.obsoleteAttr=r;class a{static getElements(e){if("string"===typeof e){let t=document.querySelectorAll(e);return t.length||"."===e[0]||"#"===e[0]||(t=document.querySelectorAll("."+e),t.length||(t=document.querySelectorAll("#"+e))),Array.from(t)}return[e]}static getElement(e){if("string"===typeof e){if(!e.length)return null;if("#"===e[0])return document.getElementById(e.substring(1));if("."===e[0]||"["===e[0])return document.querySelector(e);if(!isNaN(+e[0]))return document.getElementById(e);let t=document.querySelector(e);return t||(t=document.getElementById(e)),t||(t=document.querySelector("."+e)),t}return e}static isIntercepted(e,t){return!(e.y>=t.y+t.h||e.y+e.h<=t.y||e.x+e.w<=t.x||e.x>=t.x+t.w)}static isTouching(e,t){return a.isIntercepted(e,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static sort(e,t,i){return i=i||e.reduce((e,t)=>Math.max(t.x+t.w,e),0)||12,-1===t?e.sort((e,t)=>t.x+t.y*i-(e.x+e.y*i)):e.sort((e,t)=>e.x+e.y*i-(t.x+t.y*i))}static createStylesheet(e,t){let i=document.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("gs-style-id",e),i.styleSheet?i.styleSheet.cssText="":i.appendChild(document.createTextNode("")),t?t.insertBefore(i,t.firstChild):(t=document.getElementsByTagName("head")[0],t.appendChild(i)),i.sheet}static removeStylesheet(e){let t=document.querySelector("STYLE[gs-style-id="+e+"]");t&&t.parentNode&&t.remove()}static addCSSRule(e,t,i){"function"===typeof e.addRule?e.addRule(t,i):"function"===typeof e.insertRule&&e.insertRule(`${t}{${i}}`)}static toBool(e){return"boolean"===typeof e?e:"string"===typeof e?(e=e.toLowerCase(),!(""===e||"no"===e||"false"===e||"0"===e)):Boolean(e)}static toNumber(e){return null===e||0===e.length?void 0:Number(e)}static parseHeight(e){let t,i="px";if("string"===typeof e){let n=e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%)?$/);if(!n)throw new Error("Invalid height");i=n[2]||"px",t=parseFloat(n[1])}else t=e;return{h:t,unit:i}}static defaults(e,...t){return t.forEach(t=>{for(const i in t){if(!t.hasOwnProperty(i))return;null===e[i]||void 0===e[i]?e[i]=t[i]:"object"===typeof t[i]&&"object"===typeof e[i]&&this.defaults(e[i],t[i])}}),e}static same(e,t){if("object"!==typeof e)return e==t;if(typeof e!==typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}static copyPos(e,t,i=!1){return e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,i?(t.minW&&(e.minW=t.minW),t.minH&&(e.minH=t.minH),t.maxW&&(e.maxW=t.maxW),t.maxH&&(e.maxH=t.maxH),e):e}static samePos(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}static removeInternalAndSame(e,t){if("object"===typeof e&&"object"===typeof t)for(let i in e){let n=e[i];if("_"===i[0]||n===t[i])delete e[i];else if(n&&"object"===typeof n&&void 0!==t[i]){for(let e in n)n[e]!==t[i][e]&&"_"!==e[0]||delete n[e];Object.keys(n).length||delete e[i]}}}static closestByClass(e,t){while(e=e.parentElement)if(e.classList.contains(t))return e;return null}static throttle(e,t){let i=!1;return(...n)=>{i||(i=!0,setTimeout(()=>{e(...n),i=!1},t))}}static removePositioningStyles(e){let t=e.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(e){if(!e)return document.scrollingElement;const t=getComputedStyle(e),i=/(auto|scroll)/;return i.test(t.overflow+t.overflowY)?e:this.getScrollElement(e.parentElement)}static updateScrollPosition(e,t,i){let n=e.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight;if(n.top<0||n.bottom>s){let o=n.bottom-s,r=n.top,a=this.getScrollElement(e);if(null!==a){let l=a.scrollTop;n.top<0&&i<0?e.offsetHeight>s?a.scrollTop+=i:a.scrollTop+=Math.abs(r)>Math.abs(i)?i:r:i>0&&(e.offsetHeight>s?a.scrollTop+=i:a.scrollTop+=o>i?i:o),t.top+=a.scrollTop-l}}}static updateScrollResize(e,t,i){const n=this.getScrollElement(t),s=n.clientHeight,o=n===this.getScrollElement()?0:n.getBoundingClientRect().top,r=e.clientY-o,a=r<i,l=r>s-i;a?n.scrollBy({behavior:"smooth",top:r-i}):l&&n.scrollBy({behavior:"smooth",top:i-(s-r)})}static clone(e){return null===e||void 0===e||"object"!==typeof e?e:e instanceof Array?[...e]:Object.assign({},e)}static cloneDeep(e){const t=a.clone(e);for(const i in t)t.hasOwnProperty(i)&&"object"===typeof t[i]&&"__"!==i.substring(0,2)&&(t[i]=a.cloneDeep(e[i]));return t}}t.Utils=a},c20d:function(e,t,i){var n=i("da84"),s=i("d039"),o=i("577e"),r=i("58a8").trim,a=i("5899"),l=n.parseInt,h=n.Symbol,c=h&&h.iterator,u=/^[+-]?0[Xx]/,d=8!==l(a+"08")||22!==l(a+"0x16")||c&&!s((function(){l(Object(c))}));e.exports=d?function(e,t){var i=r(o(e));return l(i,t>>>0||(u.test(i)?16:10))}:l},cb12:function(e,t,i){var n,s,o;!function(r){s=[i("0d2d")],n=r,o="function"===typeof n?n.apply(t,s):n,void 0===o||(e.exports=o)}((function(e){e.ui=e.ui||{},e.ui.version="1.12.1";var t,i=0,n=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(i){for(var n,s,o=0;null!=(s=i[o]);o++)try{(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove")}catch(i){}t(i)}),e.widget=function(t,i,n){var s,o,r,a={},l=t.split(".")[0],h=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),e.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr[":"][h.toLowerCase()]=function(t){return!!e.data(t,h)},e[l]=e[l]||{},s=e[l][t],o=e[l][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,(function(t,n){function s(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}e.isFunction(n)?a[t]=function(){var e,t=this._super,i=this._superApply;return this._super=s,this._superApply=o,e=n.apply(this,arguments),this._super=t,this._superApply=i,e}:a[t]=n})),o.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:h}),s?(e.each(s._childConstructors,(function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete s._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,s,o=n.call(arguments,1),r=0,a=o.length;r<a;r++)for(i in o[r])s=o[r][i],o[r].hasOwnProperty(i)&&void 0!==s&&(e.isPlainObject(s)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):t[i]=s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(o){var r="string"==typeof o,a=n.call(arguments,1),l=this;return r?this.length||"instance"!==o?this.each((function(){var i,n=e.data(this,s);return"instance"===o?(l=n,!1):n?e.isFunction(n[o])&&"_"!==o.charAt(0)?(i=n[o].apply(n,a))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(a.length&&(o=e.widget.extend.apply(null,[o].concat(a))),this.each((function(){var t=e.data(this,s);t?(t.option(o||{}),t._init&&t._init()):e.data(this,s,new i(o,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),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,s,o,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(n=t.split(".")).shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),o=0;o<n.length-1;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){for(var 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,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,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){var i=[],n=this;function s(s,o){for(var r,a=0;a<s.length;a++)r=n.classesElementLookup[s[a]]||e(),r=t.add?e(e.unique(r.get().concat(t.element.get()))):e(r.not(t.element).get()),n.classesElementLookup[s[a]]=r,i.push(s[a]),o&&t.classes[s[a]]&&i.push(t.classes[s[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,(function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))}))},_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){var s="string"==typeof e||null===e;i={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n="boolean"==typeof n?n:i};return i.element.toggleClass(this._classes(i),n),this},_on:function(t,i,n){var s,o=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,(function(n,r){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/);n=l[1]+o.eventNamespace,l=l[2];l?s.on(n,l,a):i.on(n,a)}))},_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 s,o,r=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(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(e.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,i){e.Widget.prototype["_"+t]=function(n,s,o){var r=(s="string"==typeof s?{effect:s}:s)?!0!==s&&"number"!=typeof s&&s.effect||i:t,a=!e.isEmptyObject(s="number"==typeof(s=s||{})?{duration:s}:s);s.complete=o,s.delay&&n.delay(s.delay),a&&e.effects&&e.effects.effect[r]?n[t](s):r!==t&&n[r]?n[r](s.duration,s.easing,o):n.queue((function(i){e(this)[t](),o&&o.call(n[0]),i()}))}})),e.widget,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:(s="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(s+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}}),e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/;t=this.parents().filter((function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==i&&t.length?t:e(this[0].ownerDocument||document)},e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var s,o=!1;e(document).on("mouseup",(function(){o=!1})),e.widget("ui.mouse",{version:"1.12.1",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(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!s&&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(),o=!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,o=!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={add:function(t,i,n){var s,o=e.ui[t].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(s){t=e.body}return(t=t||e.body).nodeName?t:e.body},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",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(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||0<e(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),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]);e(t.target).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=0<this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length,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){if(i=this._uiHash(),!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.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);t=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_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(" ")),"left"in(t=e.isArray(t)?{left:+t[0],top:+t[1]||0}: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()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}: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,s=this.options,o=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.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)):this.containment=s.containment: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]: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]:this.containment=null},_convertPositionTo:function(e,t){t=t||this.position;var i="absolute"===e?1:-1;e=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:e?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:e?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n=this.options,s=this._isRootNode(this.scrollParent[0]),o=e.pageX,r=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(r=i[3]+this.offset.click.top)),n.grid&&(e=n.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,r=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-n.grid[1]:e+n.grid[1],e=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||e-this.offset.click.left>=i[0]||e-this.offset.click.left>i[2]?e:e-this.offset.click.left>=i[0]?e-n.grid[0]:e+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis&&(r=this.originalPageY)),{top:r-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:o-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 s=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,s))}))},stop:function(t,i,n){var s=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,s))}))},drag:function(t,i,n){e.each(n.sortables,(function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,s=(this===o||!this._intersectsWith(this.containerCache)||!e.contains(o.element[0],this.element[0]))&&s}))),s?(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 s=e("body");n=n.options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(t,i,n){n=n.options,n._cursor&&e("body").css("cursor",n._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){i=e(i.helper),n=n.options,i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(t,i,n){n=n.options,n._opacity&&e(i.helper).css("opacity",n._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 s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=o=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(a).scrollTop()<s.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<s.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(a).scrollLeft()<s.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<s.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+s.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.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){for(var s,o,r,a,l,h,c,u,d,p=n.options,f=p.snapTolerance,g=i.offset.left,m=g+n.helperProportions.width,v=i.offset.top,y=v+n.helperProportions.height,b=n.snapElements.length-1;0<=b;b--)h=(l=n.snapElements[b].left-n.margins.left)+n.snapElements[b].width,u=(c=n.snapElements[b].top-n.margins.top)+n.snapElements[b].height,m<l-f||h+f<g||y<c-f||u+f<v||!e.contains(n.snapElements[b].item.ownerDocument,n.snapElements[b].item)?(n.snapElements[b].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=!1):("inner"!==p.snapMode&&(s=Math.abs(c-y)<=f,o=Math.abs(u-v)<=f,r=Math.abs(l-m)<=f,a=Math.abs(h-g)<=f,s&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left)),d=s||o||r||a,"outer"!==p.snapMode&&(s=Math.abs(c-v)<=f,o=Math.abs(u-y)<=f,r=Math.abs(l-g)<=f,a=Math.abs(h-m)<=f,s&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left)),!n.snapElements[b].snapping&&(s||o||r||a||d)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=s||o||r||a||d)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s;n=n.options,n=e.makeArray(e(n.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));n.length&&(s=parseInt(e(n[0]).css("zIndex"),10)||0,e(n).each((function(t){e(this).css("zIndex",s+t)})),this.css("zIndex",s+n.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){i=e(i.helper),n=n.options,i.css("zIndex")&&(n._zIndex=i.css("zIndex")),i.css("zIndex",n.zIndex)},stop:function(t,i,n){n=n.options,n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}}),e.ui.draggable,e.widget("ui.droppable",{version:"1.12.1",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(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},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){var n;"accept"===t?this.accept=e.isFunction(i)?i:function(e){return e.is(i)}:"scope"===t&&(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,s=!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)&&r(n,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return!(s=!0)})),!s&&!!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 r=e.ui.intersect=function(e,t,i,n){if(!t.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,r=s+e.helperProportions.width,l=o+e.helperProportions.height,h=t.offset.left,c=t.offset.top,u=h+t.proportions().width,d=c+t.proportions().height;switch(i){case"fit":return h<=s&&r<=u&&c<=o&&l<=d;case"intersect":return h<s+e.helperProportions.width/2&&r-e.helperProportions.width/2<u&&c<o+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return a(n.pageY,c,t.proportions().height)&&a(n.pageX,h,t.proportions().width);case"touch":return(c<=o&&o<=d||c<=l&&l<=d||o<c&&d<l)&&(h<=s&&s<=u||h<=r&&r<=u||s<h&&u<r);default:return!1}};function a(e,t,i){return t<=e&&e<t+i}!(e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,s,o=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,a=(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(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue e}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&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&&r(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(){var n,s,o,a;this.options.disabled||this.greedyChild||!this.visible||(a=!(o=r(t,this,this.options.tolerance,i))&&this.isover?"isout":o&&!this.isover?"isover":null)&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===s}))).length&&((n=e(o[0]).droppable("instance")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(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)}})!==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,e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",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";i=!1;return 0<t[n]||(t[n]=1,i=0<t[n],t[n]=0,i)},_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(){function t(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var i;return this._mouseDestroy(),this.elementIsWrapper&&(t(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){this._super(e,t),"handles"===e&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,i,n,s,o,r=this.options,a=this;if(this.handles=r.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++)s="ui-resizable-"+(t=e.trim(n[i])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+s),o.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(o);this._renderAxis=function(t){var i,n,s;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].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,s),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(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var i,n,s=!1;for(i in this.handles)(n=e(this.handles[i])[0])!==t.target&&!e.contains(n,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,n,s=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,n+=e(s.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:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,n=this.axis,s=t.pageX-i.left||0;i=t.pageY-i.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(i=n.apply(this,[t,s,i]),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),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var i,n,s,o=this.options,r=this;return this._helper&&(s=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:r.sizeDiff.height,n=i?0:r.sizeDiff.width,i={width:r.helper.width()-n,height:r.helper.height()-s},n=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,s=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,o.animate||this.element.css(e.extend(i,{top:s,left:n})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper&&!o.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=this.options,s={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,e=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),i>s.minHeight&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),e<s.maxHeight&&(s.maxHeight=e)),this._vBoundaries=s},_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,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i);i=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&h&&(e.left=a-t.minWidth),n&&h&&(e.left=a-t.maxWidth),r&&i&&(e.top=l-t.minHeight),s&&i&&(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")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[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,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width;o={width:i.size.width-a,height:i.size.height-r},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,r=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(o,r&&a?{top:r,left:a}:{}),{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"))};s&&s.length&&e(s[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=e(this).resizable("instance"),s=n.options,o=n.element,r=s.containment,a=r instanceof e?r.get(0):/parent/.test(r)?o.parent().get(0):r;a&&(n.containerElement=e(a),/document/.test(r)||r===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(a),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,s){i[e]=n._num(t.css("padding"+s))})),n.containerOffset=t.offset(),n.containerPosition=t.position(),n.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},s=n.containerOffset,o=n.containerSize.height,r=n.containerSize.width,r=n._hasScroll(a,"left")?a.scrollWidth:r,o=n._hasScroll(a)?a.scrollHeight:o,n.parentData={element:a,left:s.left,top:s.top,width:r,height:o}))},resize:function(t){var i=e(this).resizable("instance"),n=i.options,s=i.containerOffset,o=i.position,r=i._aspectRatio||t.shiftKey,a={top:0,left:0},l=i.containerElement;t=!0;l[0]!==document&&/static/.test(l.css("position"))&&(a=s),o.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-a.left),r&&(i.size.height=i.size.width/i.aspectRatio,t=!1),i.position.left=n.helper?s.left:0),o.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),r&&(i.size.width=i.size.height*i.aspectRatio,t=!1),i.position.top=i._helper?s.top:0),n=i.containerElement.get(0)===i.element.parent().get(0),o=/relative|absolute/.test(i.containerElement.css("position")),n&&o?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-a.left:i.offset.left-s.left)),s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-a.top:i.offset.top-s.top)),o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,r&&(i.size.height=i.size.width/i.aspectRatio,t=!1)),s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,r&&(i.size.width=i.size.height*i.aspectRatio,t=!1)),t||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.containerPosition,o=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width;r=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:r}),t._helper&&!i.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:r})}}),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"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};e(s.alsoResize).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),s={},o=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var i=(n[t]||0)+(a[t]||0);i&&0<=i&&(s[t]=i||null)})),t.css(s)}))},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,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,h=l[0]||1,c=l[1]||1,u=Math.round((s.width-o.width)/h)*h,d=Math.round((s.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p;s=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=h),s&&(f+=c),g&&(p-=h),m&&(f-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-u):((f-c<=0||p-h<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),0<f-c?(i.size.height=f,i.position.top=r.top-d):(f=c-t.height,i.size.height=f,i.position.top=r.top+o.height-f),0<p-h?(i.size.width=p,i.position.left=r.left-u):(p=h-t.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),e.ui.resizable}))},d70d:function(e,t,i){var n,s,o;!function(r){s=[i("0d2d"),i("cb12")],n=r,o="function"===typeof n?n.apply(t,s):n,void 0===o||(e.exports=o)}((function(e){var t,i,n,s;function o(e){return{x:e.originalEvent.changedTouches[0].pageX,y:e.originalEvent.changedTouches[0].pageY}}function r(e,t){var i,n;1<e.originalEvent.touches.length||(e.cancelable&&e.preventDefault(),i=e.originalEvent.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n))}e.support.mspointer=window.navigator.msPointerEnabled,e.support.touch="ontouchstart"in document||"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints,(e.support.touch||e.support.mspointer)&&e.ui.mouse&&(t=e.ui.mouse.prototype,i=t._mouseInit,n=t._mouseDestroy,t._touchStart=function(e){var t=this;this._startedMove=e.timeStamp,t._startPos=o(e),!s&&t._mouseCapture(e.originalEvent.changedTouches[0])&&(s=!0,t._touchMoved=!1,r(e,"mouseover"),r(e,"mousemove"),r(e,"mousedown"))},t._touchMove=function(e){s&&(this._touchMoved=!0,r(e,"mousemove"))},t._touchEnd=function(e){var t;s&&(r(e,"mouseup"),r(e,"mouseout"),t=e.timeStamp-this._startedMove,!this._touchMoved||t<500?r(e,"click"):(t=o(e),Math.abs(t.x-this._startPos.x)<10&&Math.abs(t.y-this._startPos.y)<10&&(this._touchMoved&&"stylus"!==e.originalEvent.changedTouches[0].touchType||r(e,"click"))),this._touchMoved=!1,s=!1)},t._mouseInit=function(){var t=this;e.support.mspointer&&(t.element[0].style.msTouchAction="none"),t.element.on({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t)},t._mouseDestroy=function(){var t=this;t.element.off({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),n.call(t)})}))},d7bf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridStackEngine=void 0;const n=i("afd0");class s{constructor(e={}){this.addedNodes=[],this.removedNodes=[],this.column=e.column||12,this.onChange=e.onChange,this._float=e.float,this.maxRow=e.maxRow,this.nodes=e.nodes||[]}batchUpdate(){return this.batchMode||(this.batchMode=!0,this._prevFloat=this._float,this._float=!0,this.saveInitial()),this}commit(){return this.batchMode?(this.batchMode=!1,this._float=this._prevFloat,delete this._prevFloat,this._packNodes()._notify()):this}_useEntireRowArea(e,t){return!this.float&&!this._hasLocked&&(!e._moving||e._skipDown||t.y<=e.y)}_fixCollisions(e,t=e,i,s={}){if(this._sortNodes(-1),i=i||this.collide(e,t),!i)return!1;if(e._moving&&!s.nested&&!this.float&&this.swap(e,i))return!0;let o=t;this._useEntireRowArea(e,t)&&(o={x:0,w:this.column,y:t.y,h:t.h},i=this.collide(e,o,s.skip));let r=!1,a={nested:!0,pack:!1};while(i=i||this.collide(e,o,s.skip)){let o;if(i.locked||e._moving&&!e._skipDown&&t.y>e.y&&!this.float&&(!this.collide(i,Object.assign(Object.assign({},i),{y:e.y}),e)||!this.collide(i,Object.assign(Object.assign({},i),{y:t.y-i.h}),e))?(e._skipDown=e._skipDown||t.y>e.y,o=this.moveNode(e,Object.assign(Object.assign(Object.assign({},t),{y:i.y+i.h}),a)),i.locked&&o?n.Utils.copyPos(t,e):!i.locked&&o&&s.pack&&(this._packNodes(),t.y=i.y+i.h,n.Utils.copyPos(e,t)),r=r||o):o=this.moveNode(i,Object.assign(Object.assign(Object.assign({},i),{y:t.y+t.h,skip:e}),a)),!o)return r;i=void 0}return r}collide(e,t=e,i){return this.nodes.find(s=>s!==e&&s!==i&&n.Utils.isIntercepted(s,t))}collideAll(e,t=e,i){return this.nodes.filter(s=>s!==e&&s!==i&&n.Utils.isIntercepted(s,t))}collideCoverage(e,t,i){if(!t.rect||!e._rect)return;let n,s=e._rect,o=Object.assign({},t.rect);return o.y>s.y?(o.h+=o.y-s.y,o.y=s.y):o.h+=s.y-o.y,o.x>s.x?(o.w+=o.x-s.x,o.x=s.x):o.w+=s.x-o.x,i.forEach(e=>{if(e.locked||!e._rect)return;let t=e._rect,i=Number.MAX_VALUE,r=Number.MAX_VALUE,a=.5;s.y<t.y?i=(o.y+o.h-t.y)/t.h:s.y+s.h>t.y+t.h&&(i=(t.y+t.h-o.y)/t.h),s.x<t.x?r=(o.x+o.w-t.x)/t.w:s.x+s.w>t.x+t.w&&(r=(t.x+t.w-o.x)/t.w);let l=Math.min(r,i);l>a&&(a=l,n=e)}),n}cacheRects(e,t,i,n,s,o){return this.nodes.forEach(r=>r._rect={y:r.y*t+i,x:r.x*e+o,w:r.w*e-o-n,h:r.h*t-i-s}),this}swap(e,t){if(!t||t.locked||!e||e.locked)return!1;function i(){let i=t.x,n=t.y;return t.x=e.x,t.y=e.y,e.h!=t.h?(e.x=i,e.y=t.y+t.h):(e.x=i,e.y=n),e._dirty=t._dirty=!0,!0}let s;if(e.w===t.w&&e.h===t.h&&(e.x===t.x||e.y===t.y)&&(s=n.Utils.isTouching(e,t)))return i();if(!1!==s){if(e.w===t.w&&e.x===t.x&&(s||n.Utils.isTouching(e,t))){if(t.y<e.y){let i=e;e=t,t=i}return i()}return!1}}isAreaEmpty(e,t,i,n){let s={x:e||0,y:t||0,w:i||1,h:n||1};return!this.collide(s)}compact(){if(0===this.nodes.length)return this;this.batchUpdate()._sortNodes();let e=this.nodes;return this.nodes=[],e.forEach(e=>{e.locked||(e.autoPosition=!0),this.addNode(e,!1),e._dirty=!0}),this.commit()}set float(e){this._float!==e&&(this._float=e||!1,e||this._packNodes()._notify())}get float(){return this._float||!1}_sortNodes(e){return this.nodes=n.Utils.sort(this.nodes,e,this.column),this}_packNodes(){return this._sortNodes(),this.float?this.nodes.forEach(e=>{if(e._updating||void 0===e._orig||e.y===e._orig.y)return;let t=e.y;while(t>e._orig.y){--t;let i=this.collide(e,{x:e.x,y:t,w:e.w,h:e.h});i||(e._dirty=!0,e.y=t)}}):this.nodes.forEach((e,t)=>{if(!e.locked)while(e.y>0){let i=0===t?0:e.y-1,n=0===t||!this.collide(e,{x:e.x,y:i,w:e.w,h:e.h});if(!n)break;e._dirty=e.y!==i,e.y=i}}),this}prepareNode(e,t){e=e||{},e._id=e._id||s._idSeq++,void 0!==e.x&&void 0!==e.y&&null!==e.x&&null!==e.y||(e.autoPosition=!0);let i={x:0,y:0,w:1,h:1};return n.Utils.defaults(e,i),e.autoPosition||delete e.autoPosition,e.noResize||delete e.noResize,e.noMove||delete e.noMove,"string"==typeof e.x&&(e.x=Number(e.x)),"string"==typeof e.y&&(e.y=Number(e.y)),"string"==typeof e.w&&(e.w=Number(e.w)),"string"==typeof e.h&&(e.h=Number(e.h)),isNaN(e.x)&&(e.x=i.x,e.autoPosition=!0),isNaN(e.y)&&(e.y=i.y,e.autoPosition=!0),isNaN(e.w)&&(e.w=i.w),isNaN(e.h)&&(e.h=i.h),this.nodeBoundFix(e,t)}nodeBoundFix(e,t){return e.maxW&&(e.w=Math.min(e.w,e.maxW)),e.maxH&&(e.h=Math.min(e.h,e.maxH)),e.minW&&e.minW<=this.column&&(e.w=Math.max(e.w,e.minW)),e.minH&&(e.h=Math.max(e.h,e.minH)),e.w>this.column?(this.column<12&&(e.w=Math.min(12,e.w),this.cacheOneLayout(e,12)),e.w=this.column):e.w<1&&(e.w=1),this.maxRow&&e.h>this.maxRow?e.h=this.maxRow:e.h<1&&(e.h=1),e.x<0&&(e.x=0),e.y<0&&(e.y=0),e.x+e.w>this.column&&(t?e.w=this.column-e.x:e.x=this.column-e.w),this.maxRow&&e.y+e.h>this.maxRow&&(t?e.h=this.maxRow-e.y:e.y=this.maxRow-e.h),e}getDirtyNodes(e){return e?this.nodes.filter(e=>e._dirty&&!n.Utils.samePos(e,e._orig)):this.nodes.filter(e=>e._dirty)}_notify(e,t=!0){if(this.batchMode)return this;e=void 0===e?[]:Array.isArray(e)?e:[e];let i=e.concat(this.getDirtyNodes());return this.onChange&&this.onChange(i,t),this}cleanNodes(){return this.batchMode||this.nodes.forEach(e=>{delete e._dirty,delete e._lastTried}),this}saveInitial(){return this.nodes.forEach(e=>{e._orig=n.Utils.copyPos({},e),delete e._dirty}),this._hasLocked=this.nodes.some(e=>e.locked),this}restoreInitial(){return this.nodes.forEach(e=>{n.Utils.samePos(e,e._orig)||(n.Utils.copyPos(e,e._orig),e._dirty=!0)}),this._notify(),this}addNode(e,t=!1){let i;if(i=this.nodes.find(t=>t._id===e._id))return i;if(e=this.prepareNode(e),delete e._temporaryRemoved,delete e._removeDOM,e.autoPosition){this._sortNodes();for(let t=0;;++t){let i=t%this.column,s=Math.floor(t/this.column);if(i+e.w>this.column)continue;let o={x:i,y:s,w:e.w,h:e.h};if(!this.nodes.find(e=>n.Utils.isIntercepted(o,e))){e.x=i,e.y=s,delete e.autoPosition;break}}}return this.nodes.push(e),t&&this.addedNodes.push(e),this._fixCollisions(e),this._packNodes()._notify(),e}removeNode(e,t=!0,i=!1){return this.nodes.find(t=>t===e)?(i&&this.removedNodes.push(e),t&&(e._removeDOM=!0),this.nodes=this.nodes.filter(t=>t!==e),this._packNodes()._notify(e)):this}removeAll(e=!0){return delete this._layouts,0===this.nodes.length?this:(e&&this.nodes.forEach(e=>e._removeDOM=!0),this.removedNodes=this.nodes,this.nodes=[],this._notify(this.removedNodes))}moveNodeCheck(e,t){if(!this.changedPosConstrain(e,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(e,t);let i,o=new s({column:this.column,float:this.float,nodes:this.nodes.map(t=>t===e?(i=Object.assign({},t),i):Object.assign({},t))});if(!i)return!1;let r=o.moveNode(i,t);if(this.maxRow&&r&&(r=o.getRow()<=this.maxRow,!r)){let i=this.collide(e,t);if(i&&this.swap(e,i))return this._notify(),!0}return!!r&&(o.nodes.filter(e=>e._dirty).forEach(e=>{let t=this.nodes.find(t=>t._id===e._id);t&&(n.Utils.copyPos(t,e),t._dirty=!0)}),this._notify(),!0)}willItFit(e){if(delete e._willFitPos,!this.maxRow)return!0;let t=new s({column:this.column,float:this.float,nodes:this.nodes.map(e=>Object.assign({},e))}),i=Object.assign({},e);return this.cleanupNode(i),delete i.el,delete i._id,delete i.content,delete i.grid,t.addNode(i),t.getRow()<=this.maxRow&&(e._willFitPos=n.Utils.copyPos({},i),!0)}changedPosConstrain(e,t){return t.w=t.w||e.w,t.h=t.h||e.h,e.x!==t.x||e.y!==t.y||(e.maxW&&(t.w=Math.min(t.w,e.maxW)),e.maxH&&(t.h=Math.min(t.h,e.maxH)),e.minW&&(t.w=Math.max(t.w,e.minW)),e.minH&&(t.h=Math.max(t.h,e.minH)),e.w!==t.w||e.h!==t.h)}moveNode(e,t){if(!e||!t)return!1;void 0===t.pack&&(t.pack=!0),"number"!==typeof t.x&&(t.x=e.x),"number"!==typeof t.y&&(t.y=e.y),"number"!==typeof t.w&&(t.w=e.w),"number"!==typeof t.h&&(t.h=e.h);let i=e.w!==t.w||e.h!==t.h,s=n.Utils.copyPos({},e,!0);if(n.Utils.copyPos(s,t),s=this.nodeBoundFix(s,i),n.Utils.copyPos(t,s),n.Utils.samePos(e,t))return!1;let o=n.Utils.copyPos({},e),r=s,a=this.collideAll(e,r,t.skip),l=!0;if(a.length){let i=e._moving&&!t.nested?this.collideCoverage(e,t,a):a[0];l=!!i&&!this._fixCollisions(e,s,i,t)}return l&&(e._dirty=!0,n.Utils.copyPos(e,s)),t.pack&&this._packNodes()._notify(),!n.Utils.samePos(e,o)}getRow(){return this.nodes.reduce((e,t)=>Math.max(e,t.y+t.h),0)}beginUpdate(e){return e._updating||(e._updating=!0,delete e._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){let e=this.nodes.find(e=>e._updating);return e&&(delete e._updating,delete e._skipDown),this}save(e=!0){let t=[];return this._sortNodes(),this.nodes.forEach(i=>{let n={};for(let e in i)"_"!==e[0]&&null!==i[e]&&void 0!==i[e]&&(n[e]=i[e]);delete n.grid,e||delete n.el,n.autoPosition||delete n.autoPosition,n.noResize||delete n.noResize,n.noMove||delete n.noMove,n.locked||delete n.locked,t.push(n)}),t}layoutsNodesChange(e){return!this._layouts||this._ignoreLayoutsNodeChange||this._layouts.forEach((t,i)=>{if(!t||i===this.column)return this;i<this.column?this._layouts[i]=void 0:e.forEach(e=>{if(!e._orig)return;let n=t.find(t=>t._id===e._id);if(!n)return;let s=i/this.column;e.y!==e._orig.y&&(n.y+=e.y-e._orig.y),e.x!==e._orig.x&&(n.x=Math.round(e.x*s)),e.w!==e._orig.w&&(n.w=Math.round(e.w*s))})}),this}updateNodeWidths(e,t,i,s="moveScale"){if(!this.nodes.length||e===t)return this;if(this.cacheLayout(this.nodes,e),1===t&&i&&i.length){let e=0;i.forEach(t=>{t.x=0,t.w=1,t.y=Math.max(t.y,e),e=t.y+t.h})}else i=n.Utils.sort(this.nodes,-1,e);let o=this._layouts[t]||[],r=this._layouts.length-1;0===o.length&&t>e&&t<r&&(o=this._layouts[r]||[],o.length&&(e=r,o.forEach(e=>{let t=i.findIndex(t=>t._id===e._id);-1!==t&&(i[t].x=e.x,i[t].y=e.y,i[t].w=e.w)}),o=[]));let a=[];if(o.forEach(e=>{let t=i.findIndex(t=>t._id===e._id);-1!==t&&(i[t].x=e.x,i[t].y=e.y,i[t].w=e.w,a.push(i[t]),i.splice(t,1))}),i.length)if("function"===typeof s)s(t,e,a,i);else{let n=t/e,o="move"===s||"moveScale"===s,r="scale"===s||"moveScale"===s;i.forEach(i=>{i.x=1===t?0:o?Math.round(i.x*n):Math.min(i.x,t-1),i.w=1===t||1===e?1:r?Math.round(i.w*n)||1:Math.min(i.w,t),a.push(i)}),i=[]}return a=n.Utils.sort(a,-1,t),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(),this.nodes=[],a.forEach(e=>{this.addNode(e,!1),e._dirty=!0},this),this.commit(),delete this._ignoreLayoutsNodeChange,this}cacheLayout(e,t,i=!1){let n=[];return e.forEach((e,t)=>{e._id=e._id||s._idSeq++,n[t]={x:e.x,y:e.y,w:e.w,_id:e._id}}),this._layouts=i?[]:this._layouts||[],this._layouts[t]=n,this}cacheOneLayout(e,t){e._id=e._id||s._idSeq++;let i={x:e.x,y:e.y,w:e.w,_id:e._id};this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];let n=this._layouts[t].findIndex(t=>t._id===e._id);return-1===n?this._layouts[t].push(i):this._layouts[t][n]=i,this}cleanupNode(e){for(let t in e)"_"===t[0]&&"_id"!==t&&delete e[t];return this}}t.GridStackEngine=s,s._idSeq=1},df84:function(e,t,i){"use strict";i("48bc")},e207:function(e,t,i){},f411:function(e,t,i){"use strict";
/*!
 * GridStack 4.2.7
 * https://gridstackjs.com/
 *
 * Copyright (c) 2021 Alain Dumesny
 * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
 */var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),s=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.GridStack=void 0;const o=i("d7bf"),r=i("afd0"),a=i("337a");s(i("fa7b"),t),s(i("afd0"),t),s(i("d7bf"),t),s(i("337a"),t);const l={column:12,minRow:0,maxRow:0,itemClass:"grid-stack-item",placeholderClass:"grid-stack-placeholder",placeholderText:"",handle:".grid-stack-item-content",handleClass:null,styleInHead:!1,cellHeight:"auto",cellHeightThrottle:100,margin:10,auto:!0,minWidth:768,float:!1,staticGrid:!1,animate:!0,alwaysShowResizeHandle:!1,resizable:{autoHide:!0,handles:"se"},draggable:{handle:".grid-stack-item-content",scroll:!1,appendTo:"body"},disableDrag:!1,disableResize:!1,rtl:"auto",removable:!1,removableOptions:{accept:".grid-stack-item"},marginUnit:"px",cellHeightUnit:"px",disableOneColumnMode:!1,oneColumnModeDomSort:!1};class h{constructor(e,t={}){this._gsEventHandler={},this._extraDragRow=0,this.el=e,t=t||{},t.row&&(t.minRow=t.maxRow=t.row,delete t.row);let i=r.Utils.toNumber(e.getAttribute("gs-row")),n=Object.assign(Object.assign({},r.Utils.cloneDeep(l)),{column:r.Utils.toNumber(e.getAttribute("gs-column"))||12,minRow:i||(r.Utils.toNumber(e.getAttribute("gs-min-row"))||0),maxRow:i||(r.Utils.toNumber(e.getAttribute("gs-max-row"))||0),staticGrid:r.Utils.toBool(e.getAttribute("gs-static"))||!1,_styleSheetClass:"grid-stack-instance-"+(1e4*Math.random()).toFixed(0),alwaysShowResizeHandle:t.alwaysShowResizeHandle||!1,resizable:{autoHide:!t.alwaysShowResizeHandle,handles:"se"},draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||".grid-stack-item-content",scroll:!1,appendTo:"body"},removableOptions:{accept:"."+(t.itemClass||"grid-stack-item")}});e.getAttribute("gs-animate")&&(n.animate=r.Utils.toBool(e.getAttribute("gs-animate"))),this.opts=r.Utils.defaults(t,n),t=null,this.initMargin(),1!==this.opts.column&&!this.opts.disableOneColumnMode&&this._widthOrContainer()<=this.opts.minWidth&&(this._prevColumn=this.opts.column,this.opts.column=1),"auto"===this.opts.rtl&&(this.opts.rtl="rtl"===e.style.direction),this.opts.rtl&&this.el.classList.add("grid-stack-rtl");let s=r.Utils.closestByClass(this.el,l.itemClass);if(s&&s.gridstackNode&&(this.opts._isNested=s.gridstackNode,this.opts._isNested.subGrid=this,this.el.classList.add("grid-stack-nested")),this._isAutoCellHeight="auto"===this.opts.cellHeight,this._isAutoCellHeight||"initial"===this.opts.cellHeight?this.cellHeight(void 0,!1):("number"==typeof this.opts.cellHeight&&this.opts.cellHeightUnit&&this.opts.cellHeightUnit!==l.cellHeightUnit&&(this.opts.cellHeight=this.opts.cellHeight+this.opts.cellHeightUnit,delete this.opts.cellHeightUnit),this.cellHeight(this.opts.cellHeight,!1)),this.el.classList.add(this.opts._styleSheetClass),this._setStaticClass(),this.engine=new o.GridStackEngine({column:this.opts.column,float:this.opts.float,maxRow:this.opts.maxRow,onChange:e=>{let t=0;this.engine.nodes.forEach(e=>{t=Math.max(t,e.y+e.h)}),e.forEach(e=>{let t=e.el;e._removeDOM?(t&&t.remove(),delete e._removeDOM):this._writePosAttr(t,e)}),this._updateStyles(!1,t)}}),this.opts.auto){this.batchUpdate();let e=[];this.getGridItems().forEach(t=>{let i=parseInt(t.getAttribute("gs-x")),n=parseInt(t.getAttribute("gs-y"));e.push({el:t,i:(Number.isNaN(i)?1e3:i)+(Number.isNaN(n)?1e3:n)*this.opts.column})}),e.sort((e,t)=>e.i-t.i).forEach(e=>this._prepareElement(e.el)),this.commit()}this.setAnimation(this.opts.animate),this._updateStyles(),12!=this.opts.column&&this.el.classList.add("grid-stack-"+this.opts.column),this.opts.dragIn&&h.setupDragIn(this.opts.dragIn,this.opts.dragInOptions),delete this.opts.dragIn,delete this.opts.dragInOptions,this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateWindowResizeEvent()}static init(e={},t=".grid-stack"){let i=h.getGridElement(t);return i?(i.gridstack||(i.gridstack=new h(i,r.Utils.cloneDeep(e))),i.gridstack):("string"===typeof t?console.error('GridStack.initAll() no grid was found with selector "'+t+'" - element missing or wrong selector ?\nNote: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.'):console.error("GridStack.init() no grid element was passed."),null)}static initAll(e={},t=".grid-stack"){let i=[];return h.getGridElements(t).forEach(t=>{t.gridstack||(t.gridstack=new h(t,r.Utils.cloneDeep(e)),delete e.dragIn,delete e.dragInOptions),i.push(t.gridstack)}),0===i.length&&console.error('GridStack.initAll() no grid was found with selector "'+t+'" - element missing or wrong selector ?\nNote: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.'),i}static addGrid(e,t={}){if(!e)return null;let i=e;if(!e.classList.contains("grid-stack")){let n=document.implementation.createHTMLDocument();n.body.innerHTML=`<div class="grid-stack ${t.class||""}"></div>`,i=n.body.children[0],e.appendChild(i)}let n=h.init(t,i);if(n.opts.children){let e=n.opts.children;delete n.opts.children,n.load(e)}return n}get placeholder(){if(!this._placeholder){let e=document.createElement("div");e.className="placeholder-content",this.opts.placeholderText&&(e.innerHTML=this.opts.placeholderText),this._placeholder=document.createElement("div"),this._placeholder.classList.add(this.opts.placeholderClass,l.itemClass,this.opts.itemClass),this.placeholder.appendChild(e)}return this._placeholder}addWidget(e,t){if(arguments.length>2){console.warn("gridstack.ts: `addWidget(el, x, y, width...)` is deprecated. Use `addWidget({x, y, w, content, ...})`. It will be removed soon");let t=arguments,i=1,n={x:t[i++],y:t[i++],w:t[i++],h:t[i++],autoPosition:t[i++],minW:t[i++],maxW:t[i++],minH:t[i++],maxH:t[i++],id:t[i++]};return this.addWidget(e,n)}function i(e){return void 0!==e.x||void 0!==e.y||void 0!==e.w||void 0!==e.h||void 0!==e.content}let n;if("string"===typeof e){let t=document.implementation.createHTMLDocument();t.body.innerHTML=e,n=t.body.children[0]}else if(0===arguments.length||1===arguments.length&&i(e)){let i=e&&e.content||"";t=e;let s=document.implementation.createHTMLDocument();s.body.innerHTML=`<div class="grid-stack-item ${this.opts.itemClass||""}"><div class="grid-stack-item-content">${i}</div></div>`,n=s.body.children[0]}else n=e;let s=this._readAttr(n);t=r.Utils.cloneDeep(t)||{},r.Utils.defaults(t,s);let o=this.engine.prepareNode(t);if(this._writeAttr(n,t),this._insertNotAppend?this.el.prepend(n):this.el.appendChild(n),this._prepareElement(n,!0,t),this._updateContainerHeight(),o.subGrid&&!o.subGrid.el){let e=o.el.querySelector(".grid-stack-item-content");o.subGrid=h.addGrid(e,o.subGrid)}return this._triggerAddEvent(),this._triggerChangeEvent(),n}save(e=!0,t=!1){let i=this.engine.save(e);if(i.forEach(t=>{if(e&&t.el&&!t.subGrid){let e=t.el.querySelector(".grid-stack-item-content");t.content=e?e.innerHTML:void 0,t.content||delete t.content}else e||delete t.content,t.subGrid&&(t.subGrid=t.subGrid.save(e,!0));delete t.el}),t){let e=r.Utils.cloneDeep(this.opts);return e.marginBottom===e.marginTop&&e.marginRight===e.marginLeft&&e.marginTop===e.marginRight&&(e.margin=e.marginTop,delete e.marginTop,delete e.marginRight,delete e.marginBottom,delete e.marginLeft),e.rtl===("rtl"===this.el.style.direction)&&(e.rtl="auto"),this._isAutoCellHeight&&(e.cellHeight="auto"),r.Utils.removeInternalAndSame(e,l),e.children=i,e}return i}load(e,t=!0){let i=h.Utils.sort([...e],-1,this._prevColumn||this.opts.column);this._insertNotAppend=!0,this._prevColumn&&this._prevColumn!==this.opts.column&&i.some(e=>e.x+e.w>this.opts.column)&&(this._ignoreLayoutsNodeChange=!0,this.engine.cacheLayout(i,this._prevColumn,!0));let n=[];if(this.batchUpdate(),t){let e=[...this.engine.nodes];e.forEach(e=>{let s=i.find(t=>e.id===t.id);s||("function"===typeof t?t(this,e,!1):(n.push(e),this.removeWidget(e.el,!0,!1)))})}return i.forEach(e=>{let i=e.id||0===e.id?this.engine.nodes.find(t=>t.id===e.id):void 0;if(i){if(this.update(i.el,e),e.subGrid&&e.subGrid.children){let t=i.el.querySelector(".grid-stack");t&&t.gridstack&&(t.gridstack.load(e.subGrid.children),this._insertNotAppend=!0)}}else t&&(e="function"===typeof t?t(this,e,!0).gridstackNode:this.addWidget(e).gridstackNode)}),this.engine.removedNodes=n,this.commit(),delete this._ignoreLayoutsNodeChange,delete this._insertNotAppend,this}batchUpdate(){return this.engine.batchUpdate(),this}getCellHeight(e=!1){return!this.opts.cellHeight||"auto"===this.opts.cellHeight||e&&this.opts.cellHeightUnit&&"px"!==this.opts.cellHeightUnit?Math.round(this.el.getBoundingClientRect().height)/parseInt(this.el.getAttribute("gs-current-row")):this.opts.cellHeight}cellHeight(e,t=!0){if(t&&void 0!==e&&this._isAutoCellHeight!==("auto"===e)&&(this._isAutoCellHeight="auto"===e,this._updateWindowResizeEvent()),"initial"!==e&&"auto"!==e||(e=void 0),void 0===e){let t=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;e=this.cellWidth()+t}let i=r.Utils.parseHeight(e);return this.opts.cellHeightUnit===i.unit&&this.opts.cellHeight===i.h||(this.opts.cellHeightUnit=i.unit,this.opts.cellHeight=i.h,t&&this._updateStyles(!0,this.getRow())),this}cellWidth(){return this._widthOrContainer()/this.opts.column}_widthOrContainer(){return this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}commit(){return this.engine.commit(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent(),this}compact(){return this.engine.compact(),this._triggerChangeEvent(),this}column(e,t="moveScale"){if(this.opts.column===e)return this;let i,n=this.opts.column;return 1===e?this._prevColumn=n:delete this._prevColumn,this.el.classList.remove("grid-stack-"+n),this.el.classList.add("grid-stack-"+e),this.opts.column=this.engine.column=e,1===e&&this.opts.oneColumnModeDomSort&&(i=[],this.getGridItems().forEach(e=>{e.gridstackNode&&i.push(e.gridstackNode)}),i.length||(i=void 0)),this.engine.updateNodeWidths(n,e,i,t),this._isAutoCellHeight&&this.cellHeight(),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(e=>e.matches("."+this.opts.itemClass)&&!e.matches("."+this.opts.placeholderClass))}destroy(e=!0){if(this.el)return this._updateWindowResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),e?this.el.parentNode.removeChild(this.el):(this.removeAll(e),this.el.classList.remove(this.opts._styleSheetClass)),this._removeStylesheet(),this.el.removeAttribute("gs-current-row"),delete this.opts._isNested,delete this.opts,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(e){return this.engine.float=e,this._triggerChangeEvent(),this}getFloat(){return this.engine.float}getCellFromPixel(e,t=!1){let i,n=this.el.getBoundingClientRect();i=t?{top:n.top+document.documentElement.scrollTop,left:n.left}:{top:this.el.offsetTop,left:this.el.offsetLeft};let s=e.left-i.left,o=e.top-i.top,r=n.width/this.opts.column,a=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(s/r),y:Math.floor(o/a)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow)}isAreaEmpty(e,t,i,n){return this.engine.isAreaEmpty(e,t,i,n)}makeWidget(e){let t=h.getElement(e);return this._prepareElement(t,!0),this._updateContainerHeight(),this._triggerAddEvent(),this._triggerChangeEvent(),t}on(e,t){if(-1!==e.indexOf(" ")){let i=e.split(" ");return i.forEach(e=>this.on(e,t)),this}if("change"===e||"added"===e||"removed"===e||"enable"===e||"disable"===e){let i="enable"===e||"disable"===e;this._gsEventHandler[e]=i?e=>t(e):e=>t(e,e.detail),this.el.addEventListener(e,this._gsEventHandler[e])}else"drag"===e||"dragstart"===e||"dragstop"===e||"resizestart"===e||"resize"===e||"resizestop"===e||"dropped"===e?this._gsEventHandler[e]=t:console.log("GridStack.on("+e+') event not supported, but you can still use $(".grid-stack").on(...) while jquery-ui is still used internally.');return this}off(e){if(-1!==e.indexOf(" ")){let t=e.split(" ");return t.forEach(e=>this.off(e)),this}return"change"!==e&&"added"!==e&&"removed"!==e&&"enable"!==e&&"disable"!==e||this._gsEventHandler[e]&&this.el.removeEventListener(e,this._gsEventHandler[e]),delete this._gsEventHandler[e],this}removeWidget(e,t=!0,i=!0){return h.getElements(e).forEach(e=>{if(e.parentElement!==this.el)return;let n=e.gridstackNode;n||(n=this.engine.nodes.find(t=>e===t.el)),n&&(delete e.gridstackNode,a.GridStackDDI.get().remove(e),this.engine.removeNode(n,t,i),t&&e.parentElement&&e.remove())}),i&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this}removeAll(e=!0){return this.engine.nodes.forEach(e=>{delete e.el.gridstackNode,a.GridStackDDI.get().remove(e.el)}),this.engine.removeAll(e),this._triggerRemoveEvent(),this}setAnimation(e){return e?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this}setStatic(e,t=!0){return this.opts.staticGrid===e||(this.opts.staticGrid=e,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(e=>this._prepareDragDropByNode(e)),t&&this._setStaticClass()),this}update(e,t){if(arguments.length>2){console.warn("gridstack.ts: `update(el, x, y, w, h)` is deprecated. Use `update(el, {x, w, content, ...})`. It will be removed soon");let i=arguments,n=1;return t={x:i[n++],y:i[n++],w:i[n++],h:i[n++]},this.update(e,t)}return h.getElements(e).forEach(e=>{if(!e||!e.gridstackNode)return;let i=e.gridstackNode,n=r.Utils.cloneDeep(t);delete n.autoPosition;let s,o=["x","y","w","h"];if(o.some(e=>void 0!==n[e]&&n[e]!==i[e])&&(s={},o.forEach(e=>{s[e]=void 0!==n[e]?n[e]:i[e],delete n[e]})),!s&&(n.minW||n.minH||n.maxW||n.maxH)&&(s={}),n.content){let t=e.querySelector(".grid-stack-item-content");t&&t.innerHTML!==n.content&&(t.innerHTML=n.content),delete n.content}let a=!1,l=!1;for(const t in n)"_"!==t[0]&&i[t]!==n[t]&&(i[t]=n[t],a=!0,l=l||!this.opts.staticGrid&&("noResize"===t||"noMove"===t||"locked"===t));s&&(this.engine.cleanNodes().beginUpdate(i).moveNode(i,s),this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate()),a&&this._writeAttr(e,i),l&&this._prepareDragDropByNode(i)}),this}margin(e){let t="string"===typeof e&&e.split(" ").length>1;if(!t){let t=r.Utils.parseHeight(e);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=e,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this.initMargin(),this._updateStyles(!0),this}getMargin(){return this.opts.margin}willItFit(e){if(arguments.length>1){console.warn("gridstack.ts: `willItFit(x,y,w,h,autoPosition)` is deprecated. Use `willItFit({x, y,...})`. It will be removed soon");let e=arguments,t=0,i={x:e[t++],y:e[t++],w:e[t++],h:e[t++],autoPosition:e[t++]};return this.willItFit(i)}return this.engine.willItFit(e)}_triggerChangeEvent(){if(this.engine.batchMode)return this;let e=this.engine.getDirtyNodes(!0);return e&&e.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(e),this._triggerEvent("change",e)),this.engine.saveInitial(),this}_triggerAddEvent(){return this.engine.batchMode||this.engine.addedNodes&&this.engine.addedNodes.length>0&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(e=>{delete e._dirty}),this._triggerEvent("added",this.engine.addedNodes),this.engine.addedNodes=[]),this}_triggerRemoveEvent(){return this.engine.batchMode||this.engine.removedNodes&&this.engine.removedNodes.length>0&&(this._triggerEvent("removed",this.engine.removedNodes),this.engine.removedNodes=[]),this}_triggerEvent(e,t){let i=t?new CustomEvent(e,{bubbles:!1,detail:t}):new Event(e);return this.el.dispatchEvent(i),this}_removeStylesheet(){return this._styles&&(r.Utils.removeStylesheet(this._styles._id),delete this._styles),this}_updateStyles(e=!1,t){if(e&&this._removeStylesheet(),this._updateContainerHeight(),0===this.opts.cellHeight)return this;let i=this.opts.cellHeight,n=this.opts.cellHeightUnit,s=`.${this.opts._styleSheetClass} > .${this.opts.itemClass}`;if(!this._styles){let e="gridstack-style-"+(1e5*Math.random()).toFixed(),t=this.opts.styleInHead?void 0:this.el.parentNode;if(this._styles=r.Utils.createStylesheet(e,t),!this._styles)return this;this._styles._id=e,this._styles._max=0,r.Utils.addCSSRule(this._styles,s,`min-height: ${i}${n}`);let o=this.opts.marginTop+this.opts.marginUnit,a=this.opts.marginBottom+this.opts.marginUnit,l=this.opts.marginRight+this.opts.marginUnit,h=this.opts.marginLeft+this.opts.marginUnit,c=s+" > .grid-stack-item-content",u=`.${this.opts._styleSheetClass} > .grid-stack-placeholder > .placeholder-content`;r.Utils.addCSSRule(this._styles,c,`top: ${o}; right: ${l}; bottom: ${a}; left: ${h};`),r.Utils.addCSSRule(this._styles,u,`top: ${o}; right: ${l}; bottom: ${a}; left: ${h};`),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-ne","right: "+l),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-e","right: "+l),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-se",`right: ${l}; bottom: ${a}`),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-nw","left: "+h),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-w","left: "+h),r.Utils.addCSSRule(this._styles,s+" > .ui-resizable-sw",`left: ${h}; bottom: ${a}`)}if(t=t||this._styles._max,t>this._styles._max){let e=e=>i*e+n;for(let i=this._styles._max+1;i<=t;i++){let t=e(i);r.Utils.addCSSRule(this._styles,`${s}[gs-y="${i-1}"]`,"top: "+e(i-1)),r.Utils.addCSSRule(this._styles,`${s}[gs-h="${i}"]`,"height: "+t),r.Utils.addCSSRule(this._styles,`${s}[gs-min-h="${i}"]`,"min-height: "+t),r.Utils.addCSSRule(this._styles,`${s}[gs-max-h="${i}"]`,"max-height: "+t)}this._styles._max=t}return this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;let e=this.getRow()+this._extraDragRow,t=parseInt(getComputedStyle(this.el)["min-height"]);if(t>0){let i=Math.round(t/this.getCellHeight(!0));e<i&&(e=i)}if(this.el.setAttribute("gs-current-row",String(e)),0===e)return this.el.style.removeProperty("height"),this;let i=this.opts.cellHeight,n=this.opts.cellHeightUnit;return i?(this.el.style.height=e*i+n,this):this}_prepareElement(e,t=!1,i){i||(e.classList.add(this.opts.itemClass),i=this._readAttr(e)),e.gridstackNode=i,i.el=e,i.grid=this;let n=Object.assign({},i);return i=this.engine.addNode(i,t),r.Utils.same(i,n)||this._writeAttr(e,i),this._prepareDragDropByNode(i),this}_writePosAttr(e,t){return void 0!==t.x&&null!==t.x&&e.setAttribute("gs-x",String(t.x)),void 0!==t.y&&null!==t.y&&e.setAttribute("gs-y",String(t.y)),t.w&&e.setAttribute("gs-w",String(t.w)),t.h&&e.setAttribute("gs-h",String(t.h)),this}_writeAttr(e,t){if(!t)return this;this._writePosAttr(e,t);let i={autoPosition:"gs-auto-position",minW:"gs-min-w",minH:"gs-min-h",maxW:"gs-max-w",maxH:"gs-max-h",noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",resizeHandles:"gs-resize-handles"};for(const n in i)t[n]?e.setAttribute(i[n],String(t[n])):e.removeAttribute(i[n]);return this}_readAttr(e){let t={};t.x=r.Utils.toNumber(e.getAttribute("gs-x")),t.y=r.Utils.toNumber(e.getAttribute("gs-y")),t.w=r.Utils.toNumber(e.getAttribute("gs-w")),t.h=r.Utils.toNumber(e.getAttribute("gs-h")),t.maxW=r.Utils.toNumber(e.getAttribute("gs-max-w")),t.minW=r.Utils.toNumber(e.getAttribute("gs-min-w")),t.maxH=r.Utils.toNumber(e.getAttribute("gs-max-h")),t.minH=r.Utils.toNumber(e.getAttribute("gs-min-h")),t.autoPosition=r.Utils.toBool(e.getAttribute("gs-auto-position")),t.noResize=r.Utils.toBool(e.getAttribute("gs-no-resize")),t.noMove=r.Utils.toBool(e.getAttribute("gs-no-move")),t.locked=r.Utils.toBool(e.getAttribute("gs-locked")),t.resizeHandles=e.getAttribute("gs-resize-handles"),t.id=e.getAttribute("gs-id");for(const i in t){if(!t.hasOwnProperty(i))return;t[i]||0===t[i]||delete t[i]}return t}_setStaticClass(){let e=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...e),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...e),this.el.removeAttribute("gs-static")),this}onParentResize(){if(!this.el||!this.el.clientWidth)return;let e=!this.opts.disableOneColumnMode&&this.el.clientWidth<=this.opts.minWidth,t=!1;return 1===this.opts.column!==e&&(t=!0,this.opts.animate&&this.setAnimation(!1),this.column(e?1:this._prevColumn),this.opts.animate&&this.setAnimation(!0)),this._isAutoCellHeight&&(!t&&this.opts.cellHeightThrottle?(this._cellHeightThrottle||(this._cellHeightThrottle=r.Utils.throttle(()=>this.cellHeight(),this.opts.cellHeightThrottle)),this._cellHeightThrottle()):this.cellHeight()),this.engine.nodes.forEach(e=>{e.subGrid&&e.subGrid.onParentResize()}),this}_updateWindowResizeEvent(e=!1){const t=(this._isAutoCellHeight||!this.opts.disableOneColumnMode)&&!this.opts._isNested;return e||!t||this._windowResizeBind?!e&&t||!this._windowResizeBind||(window.removeEventListener("resize",this._windowResizeBind),delete this._windowResizeBind):(this._windowResizeBind=this.onParentResize.bind(this),window.addEventListener("resize",this._windowResizeBind)),this}static getElement(e=".grid-stack-item"){return r.Utils.getElement(e)}static getElements(e=".grid-stack-item"){return r.Utils.getElements(e)}static getGridElement(e){return h.getElement(e)}static getGridElements(e){return r.Utils.getElements(e)}initMargin(){let e,t=0,i=[];return"string"===typeof this.opts.margin&&(i=this.opts.margin.split(" ")),2===i.length?(this.opts.marginTop=this.opts.marginBottom=i[0],this.opts.marginLeft=this.opts.marginRight=i[1]):4===i.length?(this.opts.marginTop=i[0],this.opts.marginRight=i[1],this.opts.marginBottom=i[2],this.opts.marginLeft=i[3]):(e=r.Utils.parseHeight(this.opts.margin),this.opts.marginUnit=e.unit,t=this.opts.margin=e.h),void 0===this.opts.marginTop?this.opts.marginTop=t:(e=r.Utils.parseHeight(this.opts.marginTop),this.opts.marginTop=e.h,delete this.opts.margin),void 0===this.opts.marginBottom?this.opts.marginBottom=t:(e=r.Utils.parseHeight(this.opts.marginBottom),this.opts.marginBottom=e.h,delete this.opts.margin),void 0===this.opts.marginRight?this.opts.marginRight=t:(e=r.Utils.parseHeight(this.opts.marginRight),this.opts.marginRight=e.h,delete this.opts.margin),void 0===this.opts.marginLeft?this.opts.marginLeft=t:(e=r.Utils.parseHeight(this.opts.marginLeft),this.opts.marginLeft=e.h,delete this.opts.margin),this.opts.marginUnit=e.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop),this}static setupDragIn(e,t){}movable(e,t){return this}resizable(e,t){return this}disable(){return this}enable(){return this}enableMove(e){return this}enableResize(e){return this}_setupAcceptWidget(){return this}_setupRemoveDrop(){return this}_prepareDragDropByNode(e){return this}_onStartMoving(e,t,i,n,s,o){}_dragOrResize(e,t,i,n,s,o){}_leave(e,t){}}t.GridStack=h,h.Utils=r.Utils,h.Engine=o.GridStackEngine},fa7b:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}}]);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0432 ]--