/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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!b.pseudos.empty(e)},header:function(e){return J.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){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={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 ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,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&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.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:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.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 He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(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&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},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,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.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),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.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,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});

window.apex=window.apex||{},apex.items={},apex.regions={},apex.env=apex.env||{},apex.env.APEX_FILES=window.apex_img_dir||"",apex.jQuery=jQuery,function(e){"use strict";function o(){apex._dtNotifyErrors?apex._dtNotifyErrors():apex._pageHasErrors=!0}apex.gPageContext$=e(document),apex.gParentPageContext$=apex.gPageContext$;const t=window.onerror;window.onerror=function(e,n,r,a,i){o(),t&&t(e,n,r,a,i)};const n=e.Deferred.exceptionHook;n&&(e.Deferred.exceptionHook=function(e,t){n(e,t),e&&"abort"!==e.statusText&&o()});let r,a=0,i=0;e(window).resize((function(){let o=e(window);o.height()===a&&o.width()===i||(a=o.height(),i=o.width(),r&&clearTimeout(r),r=setTimeout((function(){e(window).trigger("apexwindowresized"),r=null}),200))}));let s=!1;e((function(){let o;e("body").append("<p id='hcmtest' style='position:absolute;top:0;left:-99999px;background-color:#878787;'></p>"),o=e("#hcmtest").css("background-color").toLowerCase(),e("#hcmtest").remove(),"#878787"!==o&&"rgb(135, 135, 135)"!==o&&e("body").addClass("u-HCM");const t=apex.storage.getScopedSessionStorage({prefix:"APEX",useAppId:!1});"y"===t.getItem("userHasTouched")?s=!0:e(document.body).one("touchstart",(function(){s=!0,t.setItem("userHasTouched","y")}))})),apex.userHasTouched=function(){return s}}(apex.jQuery);
apex.debug={},apex.debug=function(){"use strict";apex.debug.log.apply(this,arguments)},function(e,o){"use strict";function n(){}let r=-1,t=n,a=n,c=n,l=n;window.console&&console.log&&(t=console.log,a=console.error?console.error:console.log,c=console.warn?console.warn:console.log,l=console.info?console.info:console.log),e.LOG_LEVEL={OFF:0,ERROR:1,WARN:2,INFO:4,APP_TRACE:6,ENGINE_TRACE:9},e.getLevel=function(){let n;return r<0&&(n=o("#pdebug",apex.gPageContext$).val(),r="YES"===n?e.LOG_LEVEL.INFO:/^LEVEL[0-9]$/.test(n)?parseInt(n.substr(5),10):apex._dtNotifyErrors?e.LOG_LEVEL.WARN:e.LOG_LEVEL.OFF),r},e.setLevel=function(n){let t,a,c=r;r="number"==typeof n?n:e.LOG_LEVEL.OFF,(r<0||r>9)&&(r=e.LOG_LEVEL.OFF),r!==c&&(t="LEVEL"+r,a=o("#pdebug",apex.gPageContext$),0===a.length&&(a=o("<input id='pdebug' type='hidden' name='p_debug'>").prependTo(o("#wwvFlowForm",apex.gPageContext$))),a.val(t))},e.message=function(o){let n=t;e.getLevel()>=o&&o>0&&(o===e.LOG_LEVEL.ERROR?n=a:o<=e.LOG_LEVEL.WARN?n=c:o<=e.LOG_LEVEL.INFO&&(n=l),n.apply(console,Array.prototype.slice.call(arguments,1)))},e.error=function(){a.apply(console,arguments),console.trace&&console.trace(),apex._dtNotifyErrors&&apex._dtNotifyErrors()},e.warn=function(){e.getLevel()>=e.LOG_LEVEL.WARN&&c.apply(console,arguments)},e.info=function(){e.getLevel()>=e.LOG_LEVEL.INFO&&l.apply(console,arguments)},e.trace=function(){e.getLevel()>=e.LOG_LEVEL.APP_TRACE&&t.apply(console,arguments)},e.log=function(){e.getLevel()>e.LOG_LEVEL.OFF&&t.apply(console,arguments)},e.deprecated=function(o){e.warn("DEPRECATED: "+o)},e.timeCall=function(e,o,n){return function(){let r,t=e+"_begin",a=e+"_end";return performance.mark&&performance.mark(t),r=o.apply(n||this,arguments),performance.mark&&(performance.mark(a),performance.measure(e,t,a)),r}},e.timeBegin=function(e){performance.mark&&performance.mark(e+"_begin")},e.timeEnd=function(e){let o=e+"_begin",n=e+"_end";performance.mark&&(performance.mark(n),performance.measure(e,o,n))},e.timeMark=function(e){performance.mark&&performance.mark(e)}}(apex.debug,apex.jQuery);
apex.util=function(e,t,n){"use strict";function l(e){return"string"==typeof e?e.replace(/([.$*+\-?(){}|^[\]\\])/g,"\\$1"):""}function i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function r(e){return(e=""+e).replace(/[^A-Za-z0-9\-_.,]/gu,(function(e){let t=e.codePointAt().toString(16).toUpperCase();return t.length%2!=0&&(t="0"+t),"&#x"+t+";"}))}const a=function(e){return i(""+e)};let o=function*(e){const t=e?Object.keys(e):[];for(const n of t)yield[n,e[n]]},u=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=new RegExp("(["+l(" !#$%&'()*+,./:;<=>?@[\\]^`{|}~\"")+"])","g"),p=/<[^<>]+>/;let c=null,d=null,f=null,m=new Map;const h=new Map,g={node:!1,element:{},item_type:!1,id:!1},x=/&(([A-Z0-9_$#]+(?:%[A-Za-z0-9_]+)?)|"([^"\r\n]+)")(!([A-Z]+))?\./g,w=/%([A-Za-z0-9_]+)$/,y=/#([_$A-Z0-9]+)#|{([iIcClLeEoOwWaA{!]([^/\r\n]|\/(?!}))*)\/}/g,v=/^(!|\w+(?:\s+|$))(.*)?$/,b=/^(.+)_LABEL$/,T=/^[_$A-Z0-9]+$/,I=/^[^"\r\n]+$/,A=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script\s*>/gi,E=/\$[^$]*$/,P=/^"([^"]+)"\s+([^"&\r\n]+)$/,S=/\n\s*([_$A-Z0-9]+)\s*:=/g,C=/[#&]|\/}/,_=Array.isArray,k=e.extend,R={eq:function(e,t){if(_(e)){for(let n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}return e===t},neq:function(e,t){return!R.eq(e,t)},null:function(e){return null===e||""===e||_(e)&&0===e.length},notnull:function(e){return!R.null(e)},in:function(e,t){if("string"!=typeof t)return!1;if(t=","+t+",",_(e)){for(let n=0;n<e.length;n++)if(t.indexOf(","+e[n]+",")>=0)return!0;return!1}return t.indexOf(","+e+",")>=0},notin:function(e,t){return!R.in(e,t)}};let $=1;const M={markup:function(e){return this.html+=e,this},attr:function(e,t){return 1===arguments.length&&(t=e,e=null),e&&(this.html+=" "+e+"='"),this.html+=r(t),e&&(this.html+="'"),this},optionalAttr:function(e,t){return t&&"object"!=typeof t&&(this.html+=" "+e+"='"+r(t)+"'"),this},optionalBoolAttr:function(e,t){return!0===t&&(this.html+=" "+e),this},content:function(e){return this.html+=a(e),this},clear:function(){this.html=""},toString:function(){return this.html}},L={debounce:function(e,t){let n;return function(){let l=arguments,i=this;clearTimeout(n),n=setTimeout((function(){n=null,e.apply(i,l)}),t)}},toArray:function(t,n){let l,i;return"string"==typeof t?(l=void 0===n?":":n,i=t.split(l)):i=e.makeArray(t),i},arrayEqual:function(e,t){let n=e.length;if(n!==t.length)return!1;for(let l=0;l<n;l++)if(e[l]!==t[l])return!1;return!0},binarySearch:function(e,t,n){for(var l,i,r=0,a=e.length-1;r<=a;)if((i=n(t,e[l=a+r>>1]))>0)r=l+1;else{if(!(i<0))return l;a=l-1}return r},escapeHTML:i,escapeHTMLAttr:r,escapeRegExp:l,escapeCSS:function(e){return e?CSS&&CSS.escape?CSS.escape(e):e.replace(s,"\\$1"):""},getContextString:function(){return"p_context="+$v("pContext")},htmlBuilder:function(){const e=Object.create(M);return e.clear(),e},makeApplicationUrl:function(e){var t="f?p=";if(t+=e.appId||n.APP_ID,t+=":",t+=e.pageId||n.APP_PAGE_ID,t+=":",t+=e.session||n.APP_SESSION,t+=":",t+=e.request||$v("pRequest"),t+=":",t+=e.debug||$v("pdebug")||"",t+=":",t+=e.clearCache||"",t+=":",e.itemNames&&(t+=e.itemNames.join(",")),t+=":",e.itemValues)for(let n=0;n<e.itemValues.length;n++)n>0&&(t+=","),t+=encodeURIComponent(e.itemValues[n]);return t+=":",t+=e.printerFriendly||""},showSpinner:function(t,n){var l,i,r,a,o,u=L.htmlBuilder(),s=k({alert:apex.lang.getMessage("APEX.PROCESSING"),spinnerClass:""},n),p=t&&!s.fixed?e(t):e("body"),c=e(window),d=p.offset(),f={top:c.scrollTop(),left:c.scrollLeft()};return u.markup("<span").attr("class","u-Processing"+(s.spinnerClass?" "+s.spinnerClass:"")).attr("role","alert").markup(">").markup("<span").attr("class","u-Processing-spinner").markup(">").markup("</span>").markup("<span").attr("class","u-VisuallyHidden").markup(">").content(s.alert).markup("</span>").markup("</span>"),(l=e(u.toString())).appendTo(p),s.fixed?(r=(c.height()-l.height())/2,i=(c.width()-l.width())/2,l.css({position:"fixed",top:r+"px",left:i+"px"})):(f.bottom=f.top+c.height(),f.right=f.left+c.width(),d.bottom=d.top+p.outerHeight(),d.right=d.left+p.outerWidth(),r=d.top>f.top?d.top:f.top,a=((d.bottom<f.bottom?d.bottom:f.bottom)-r)/2,(o=f.top-d.top)>0&&(a+=o),l.position({my:"center",at:"left+50% top+"+a+"px",of:p,collision:"fit"})),l},delayLinger:function(){var e={};function t(t){var n=e[t];return n||(n={count:0,timer:null},e[t]=n),n}function n(t){delete e[t]}return{start:function(e,n){var l=t(e);l.count+=1,1!==l.count||null!==l.timer||l.showing||(l.start=(new Date).getTime(),l.timer=setTimeout(()=>{l.timer=null,l.showing=!0,n()},200))},finish:function(e,l){var i,r=t(e);if(0===r.count)throw new Error("delayLinger.finish called before start for scope "+e);i=(new Date).getTime()-r.start,r.count-=1,0===r.count&&(null===r.timer?i<1e3?setTimeout(()=>{0===r.count&&(r.showing=!1,l(),n(e))},1e3-i):(r.showing=!1,l(),n(e)):(clearTimeout(r.timer),r.timer=null,n(e)))}}}(),setOuterHeight:function(t,n){e.each(["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom","marginTop","marginBottom"],(function(e,l){let i=parseInt(t.css(l),10);isNaN(i)||(n-=i)})),t.height(n)},setOuterWidth:function(t,n){e.each(["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight","marginLeft","marginRight"],(function(e,l){let i=parseInt(t.css(l),10);isNaN(i)||(n-=i)})),t.width(n)},getDateFromISO8601String:function(e){var t,n,l,i=0,r=0,a=0,o=0,u=/^(\d\d\d\d)-(\d\d)-(\d\d)(T(\d\d):(\d\d)(:(\d\d)(.(\d\d\d))?)?Z?)?$/.exec(e);if(!u)throw new Error("Invalid date format");return t=parseInt(u[1],10),n=parseInt(u[2],10)-1,l=parseInt(u[3],10),u[5]&&(i=parseInt(u[5],10),r=parseInt(u[6],10),u[8]&&(a=parseInt(u[8],10),u[10]&&(o=parseInt(u[10],10)))),new Date(Date.UTC(t,n,l,i,r,a,o))},getTopApex:function(){var e,t;function n(e){var t;try{t=e.apex||null}catch(e){t=null}return t}if(null!==d)return d;if(d=n(top),null!==d)return d;for(e=window;null!==(t=n(e))&&e.parent&&e.parent!==e;)d=t,e=e.parent;return d},getScrollbarSize:function(){if(null===c){let t=e("<div>").css({width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}).appendTo("body");c={width:t[0].offsetWidth-t[0].clientWidth,height:t[0].offsetHeight-t[0].clientHeight},t.remove()}return c},invokeAfterPaint:(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,0)}).bind(window),cancelInvokeAfterPaint:(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||function(e){return window.clearTimeout(e)}).bind(window),stripHTML:function(e){for(;p.exec(e);)e=e.replace(p,"");return e},getNestedObject:function(e,t){let n=e;return t.length>0&&t.split(".").forEach((function(e){void 0===n[e]&&(n[e]={}),n=n[e]})),n},checkCondition:function(e,n){let l,i,r,a;if(n=n||{},e.item){if(l=apex.item(e.item),!l.node)return t.warn("No such item: ",e.item),!1;i=l.getValue(),n.multiValued&&!_(i)&&""!==i&&(i=i.split(":"))}return void 0!==e.value&&(r=e.value,n.doSubstitution&&r.match(C)&&(r=L.applyTemplate(r,n))),void 0!==e.value2&&(a=e.value2,n.doSubstitution&&a.match(C)&&(a=L.applyTemplate(a,n))),!!R[e.op](i,r,a)},watchCondition:function(n,l,i){let r,a,o="watchCond"+$;if($+=1,l=l||{},n.item){if(r=apex.item(n.item),!r.node)return void t.warn("No such item: ",n.item);e(r.node).on("change."+o,(function(){let e=apex.item(n.item).getValue();e!==a&&(a=e,i(L.checkCondition(n,l)))}))}return i(L.checkCondition(n,l)),o},unwatchCondition:function(t,n){let l;if(t.item){if(l=apex.item(t.item),!l.node)return;e(l.node).off("change."+n)}},defineTemplates:function(e){if(_(e))for(let n=0;n<e.length;n++){let l=e[n],i=l.name;if(i&&i.match(T))if(l.template){l.args||(l.args=[]);for(let e=0;e<l.args.length;e++){let n=l.args[e];n.required&&n.default&&(delete n.default,t.warn("defineTemplates default value for required arg removed: "+i)),void 0===n.escape||["ATTR","HTML","STRIPHTML"].includes(n.escape)||(delete n.escape,t.warn("defineTemplates invalid escape value removed: "+i)),n.name&&n.name.match(T)||(l.args.splice(e,1),e-=1,t.warn("defineTemplates argument with missing or invalid name removed: "+i))}m.set(i,l)}else t.warn("defineTemplates missing template ignored: "+i);else t.warn("defineTemplates template with invalid name ignored: "+i)}else for(const[n,l]of o(e))n.match(T)?m.set(n,{name:n,args:[],template:l}):t.warn("defineTemplates template with invalid name ignored: "+n)},listTemplates:function(){return[...m.keys()]},getTemplateDef:function(e){return m.get(e)||null},applyTemplate:function(l,a,o,s){let p,c,d,R,$,M,O,F,N,V,H,X,D,q,W=apex.model,j=[],B=[],Z=[],U=[],Y=s||[],z=new Map;function G(e){let t=h.get(e);if(!t){let n=apex.gPageContext$[0].getElementById(e);t=n?apex.item(n):g,h.set(e,t)}return t.node?t:null}const K={if:function(e,t){let n,l={matched:!1};return Q(t)?(n=J(t),B.push(l),n?(l.matched=!0,e):ue(e,{else:1,elseif:1,endif:1},"if","endif")):e},elseif:function(e,n){let l,i=B[B.length-1];return!Q(n)||ee(B,"elseif","if")?e:(l=J(n),i.hasElse&&t.error("applyTemplate 'elseif' must come before 'else'"),!i.matched&&l?(i.matched=!0,e):ue(e,{else:1,elseif:1,endif:1},"if","endif"))},else:function(e,n){let l=B[B.length-1];return te("else",n),ee(B,"else","if")?e:(l.hasElse&&t.error("applyTemplate 'if' must have only one 'else'"),l.hasElse=!0,l.matched?ue(e,{endif:1},"if","endif"):(l.matched=!0,e))},endif:function(e,t){return te("endif",t),ee(B,"endif","if")||B.pop(),e},case:function(e,n){let l,i={matched:!1};if(l=j[e],"text"===l.type&&""===l.text.trim()&&(e+=1),l=j[e],"directive"===l.type&&"when"===l.name){if(!Q(n))return e;Z.push(i),i.value=ae(n,!1).trim()}else t.error("applyTemplate must have 'when' right after 'case'");return e},when:function(e,n){let l=Z[Z.length-1];return ee(Z,"when","case")?e:(l.hasOtherwise&&t.error("applyTemplate 'when' must come before 'otherwise'"),l.matched?ue(e,{endcase:1},"case","endcase"):l.value===n.trim()?(l.matched=!0,e):ue(e,{when:1,otherwise:1,endcase:1},"case","endcase"))},otherwise:function(e,n){let l=Z[Z.length-1];return te("otherwise",n),ee(Z,"otherwise","case")?e:(l.hasOtherwise&&t.error("applyTemplate 'case' must have only one 'otherwise'"),l.hasOtherwise=!0,l.matched?ue(e,{endcase:1},"case","endcase"):(l.matched=!0,e))},endcase:function(e,t){return te("endcase",t),ee(Z,"endcase","case")||Z.pop(),e},with:function(e){let n,l,i,r,a,o,u,s,p=0,c="",d=ue(e,{apply:1},"with","apply");for(n=e;n<d;n++)c+=j[n].text;if(i=j[e=n],i&&"directive"===i.type&&"apply"===i.name)for(z.clear(),l=S.exec(c);l;)a=l.index+l[0].length,0===p&&(r=l[1],o=a),l=S.exec(c),u=l?l.index:c.length,s=c.substring(a,u),s.includes("{with")&&(p+=1),s.includes("{apply")&&(p-=s.split("{apply").length-1),0===p&&z.set(r,c.substring(o,u).trim());else t.error("applyTemplate missing 'apply' after 'with'");return e},apply:function(e,n){let l=!1;if(n){let e=m.get(n);if(e){l=!0;let n=k({},o),u=e.args||[];for(let e=0;e<u.length;e++){let n=u[e],l=n.name;!0!==n.required||z.has(l)&&""!==z.get(l)||t.error("applyTemplate 'apply' missing required argument "+l),z.has(l)||z.set(l,n.default||"")}for(const[e,t]of z.entries()){let l,s,p=null,c=u.find(t=>t.name===e);c&&c.escape&&(p=c.escape),t.match(C)?(l=a.defaultEscapeFilter,p&&(a.defaultEscapeFilter=!1),s=L.applyTemplate(t,a,o,Y),a.defaultEscapeFilter=l):s=t,"ATTR"===p?s=r(s):"HTML"===p?s=i(s):"STRIPHTML"===p&&(s=i(L.stripHTML(s.replace(" ","")))),n[e]=s}p+=L.applyTemplate(e.template,a,n),z.clear()}}return l||t.warn("applyTemplate 'apply' missing or unknown template name"),e},loop:function(e,n){let l,i,r,o,u,s=null,p={};if(U.push(p),n){if(u=oe(n),/^\[.*,.*]$/.test(u))try{u=JSON.parse(u),_(u)&&2===u.length||(u=null)}catch(e){u=null}u&&(l=W&&W.get(u))}else u=null,l=a.model,l||t.error("applyTemplate no model or item to loop over");if(l)o=a.extraSubstitutions,p.prevIndex=o.APEX$I,p.prevItem=o.APEX$ID,p.model=l,Y.push(p),l.forEach((function(t,i,r){q="directive",p.record=t,p.recMeta=l.getRecordMetadata(r),o.APEX$I=""+(i+1),o.APEX$ID=r,a.iterationCallback&&a.iterationCallback(n,l,t,i,a.placeholders,o),s=se(j,e)})),o.APEX$I=p.prevIndex,o.APEX$ID=p.prevItem,u&&W.release(u),Y.pop(),null!==s&&pe(s-1);else if(n){let t,l,u=P.exec(n);if(u)t=u[1],l=u[2];else{l=n;let e=G(l);e&&(t=e.getSeparator()),t=t||":"}if(t.length>1&&(t=new RegExp(t)),i=ae(l,!0),i){o=a.extraSubstitutions,p.prevIndex=o.APEX$I,p.prevItem=o.APEX$ITEM,r=_(i)?i:i.split(t);for(let t=0;t<r.length;t++)q="directive",o.APEX$I=""+(t+1),o.APEX$ITEM=r[t],a.iterationCallback&&a.iterationCallback(n,null,null,t,a.placeholders,o),s=se(j,e);o.APEX$I=p.prevIndex,o.APEX$ITEM=p.prevItem,null!==s&&pe(s-1)}}return null===s&&(s=ue(e,{endloop:1},"loop","endloop")),s},endloop:function(e,t){return te("endloop",t),ee(U,"endloop","loop")||U.pop(),e},"!":function(e){return c=c.substring($+F.length+3),e}};function Q(e){return!(null==e||!I.test(e))||(t.error("applyTemplate missing or invalid name for 'if', 'elseif', or 'case'"),!1)}function J(e){let t,n,l=null,i=!1;return e.startsWith("!")&&(i=!0,e=e.substr(1).trim()),n=e.substr(0,1),"?=".includes(n)?e=e.substr(1).trim():n=null,t=ae(e,!1),t=t.trim(),a.includePageItems&&(l=G(e)),t="?"===n?!(l&&l.isEmpty()||""===t):"="===n?!a.falseValues.includes(t):!(l&&l.isEmpty()||""===t||a.falseValues.includes(t)),i&&(t=!t),t}function ee(e,n,l){let i=e.length<1;return i&&t.error("applyTemplate '"+n+"' without '"+l+"'"),i}function te(e,n){""!==n&&t.warn("applyTemplate extra text after directive '"+e+"' ignored")}function ne(e,t,n,l){let i=e.getOption("fields"),r=null;return void 0!==i[t]&&(r=i[t][n]||"","tmpl"===l?r=L.applyTemplate(r,a):"bool"===l&&(r=!0===r?"Y":"N"),r=""+r),r}const le={label:function(t){let n=e("#"+L.escapeCSS(t.id)+"_CONTAINER");return n.length||(n=e("body")),n.find("[for='"+L.escapeCSS(t.id)+"']").text()},display:function(e){let t=e.displayValueFor(e.getValue());return _(t)&&(t=t.join(", ")),t},valid:function(e){return e.getValidity().valid?"Y":"N"},message:function(e){return e.getValidationMessage()},changed:function(e){return e.isChanged()?"Y":"N"},disabled:function(e){return e.isDisabled()?"Y":"N"}},ie={display:function(e,t,n){let l,i=t.getOption("fields"),r=t.getValue(n,e);if(void 0!==i[e]&&(l=i[e]),l&&l.cellTemplate)r=L.applyTemplate(l.cellTemplate,a);else if("object"==typeof r&&r.d)r=r.d;else if(l&&l.elementId){let e=G(l.elementId);e&&(r=e.displayValueFor(r))}return r},label:function(e,t){let n=t.getOption("fields"),l=null;if(void 0!==n[e]){let t=n[e];l=L.stripHTML(t.label||t.heading||"")}return l},heading:function(e,t){let n=t.getOption("fields"),l=null;if(void 0!==n[e]){let t=n[e];l=t.heading||t.label||""}return l},heading_class:function(e,t){return ne(t,e,"headingCssClasses")},column_class:function(e,t){return ne(t,e,"columnCssClasses")},field_class:function(e,t){return ne(t,e,"fieldCssClasses")},field_col_span:function(e,t){return ne(t,e,"fieldColSpan")},width:function(e,t){return ne(t,e,"width")},required:function(e,t){return ne(t,e,"isRequired","bool")},readonly:function(e,t,n,l){let i,r=ne(t,e,"readonly","bool");return"Y"!==r&&(l&&l.fields&&l.fields[e]&&(i=l.fields[e]),(i&&i.ck||!t.allowEdit(n))&&(r="Y")),r},link:function(e,t,n,l){let i,r,a="",o=t.getOption("fields");return l&&l.fields&&l.fields[e]&&(r=l.fields[e]),void 0!==o[e]&&(i=o[e],N=i.heading||i.label||""),(r&&r.url||i.linkTargetColumn)&&(a=i.linkTargetColumn?t.getValue(n,i.linkTargetColumn)||null:r.url),a},link_text:function(e,t){return ne(t,e,"linkText","tmpl")},link_attrs:function(e,t){return ne(t,e,"linkAttributes","tmpl")},hidden:function(e,t){return ne(t,e,"hidden","bool")}};function re(e,n,l){let o,s,p,c,d,m,h=a.defaultEscapeFilter;if(p=w.exec(e),p&&(m=e.substring(0,p.index),d=p[1],c=d.toLowerCase()),o=function(e){let n=null;if(e.startsWith("APP_TEXT$")){let l=e.substr(9),i=E.exec(l);i&&(i[0].length>1&&t.warn("applyTemplate message text substitution "+i[0]+" language ignored."),l=l.replace(E,"")),l&&(n=apex.lang.getMessage(l))}return n}(e),null===o&&Y.length>0&&([o,s,h]=function(e,t,n,l){let i,r,a,o,u,s,p,c,d=Y.length-1,f=Y[d],m=f.model,h=f.record,g=f.recMeta,x=[],w=null,y=null;for(;null===y&&h&&m;){let v;t&&ie[n]?(y=ie[n](t,m,h,g),v=t):(y=m.getValue(h,e),void 0===y&&(y=null),v=e,null===y&&(c=b.exec(e),c&&(u=c[1],s=m.getOption("fields"),void 0!==s[u]&&(y=s[u].label||s[u].heading||null),v=u))),h=null,null===y?(i=m.getOption("parentModel"),r=m.getOption("parentRecordId"),i&&r?(m=W.get(i),m&&(x.push(i),h=m.getRecord(r),o=m.getRecordId(h),g=null,o&&(g=m.getRecordMetadata(o)))):d>0&&(d-=1,f=Y[d],m=f.model,h=f.record,g=f.recMeta)):(h=null,s=m.getOption("fields"),p=s[v],p&&void 0!==p.escape&&(l=p.escape?"HTML":"RAW"),p&&void 0!==p.elementId&&(a=p.elementId,w=G(a)))}for(let e=0;e<x.length;e++)W.release(x[e]);return[y,w,l]}(e,m,c,h)),null===o&&a.includePageItems&&([o,s]=function(e,t,n){let l,i=null;return t&&le[n]?(l=G(t),l&&(i=le[n](l))):(l=G(e),l&&(i=l.getValue())),[i,l]}(e,m,c)),null===o&&a.includeBuiltinSubstitutions&&(o=f[e]||null),null===o&&a.extraSubstitutions&&(o=a.extraSubstitutions[m||e]||null,null!=o&&m&&"object"==typeof o&&(o=o[d]||null,"boolean"==typeof o&&(o=o?"Y":a.falseValues[0]))),null===o)o="";else{if("object"==typeof o&&u(o,"v")&&(o=o.v),"string"!=typeof o&&(n||!l))if(_(o)){let e=":";s&&(e=s.getSeparator()),o=o.join(e)}else o=""+o;if(!1!==n)if(n||(n=h),!1===h&&"STRIPHTML"!==n&&(n="RAW"),"HTML"===n)o=i(o);else if("ATTR"===n)o=r(o);else if("STRIPHTML"===n)o=L.stripHTML(o.replace(" ","")),!1!==h&&(o=i(o));else if("RAW"!==n&&n)throw new Error("Invalid template filter: "+n)}return o}function ae(e,t){const n=a.placeholders;if(T.test(e)){if(o&&void 0!==o[e])return o[e];if(n&&void 0!==n[e])return n[e]}return re(e,!1,t)}function oe(e){return e.replace(x,(e,t,n,l,i,r)=>{let a="";return l&&(n=l),n&&(a=re(n,r)),a})}function ue(e,t,n,l){let i,r,a,o=0;for(i=e;i<j.length;i++){if(r=j[i],a=r.name,"directive"===r.type){if(t[a]&&0===o)break;a===n?o+=1:a===l&&(o-=1)}if(o<0)break}return i}function se(e,t){let n,l=t;for(;;){if(l>=e.length){l=null;break}if(l=pe(l),n=e[l],n&&"directive"===n.type&&"endloop"===n.name){l+=1;break}}return l}function pe(e){let t=j[e];if(e+=1,"text"===t.type){let e=t.text;"directive"===q&&(e=e.replace(/^\s+/," ")),p+=oe(e),q=t.type}else"ph"===t.type?(p+=t.value,q=t.type):"directive"===t.type&&(D=K[t.name],D?(q=t.type,e=D(e,t.arg)):(p+=oe(t.text),q="text"));return e}if(a=k({placeholders:null,directives:!0,defaultEscapeFilter:"HTML",includePageItems:!0,model:null,record:null,extraSubstitutions:{},includeBuiltinSubstitutions:!0,falseValues:["F","f","N","n","0"],clearItemCache:!0},a||{}),!o&&a.clearItemCache&&h.clear(),a.model&&a.record&&0===Y.length){let e=null,t=a.model,n=a.record,l=t.getRecordId(n);l&&(e=t.getRecordMetadata(l)),Y.push({model:t,record:n,recMeta:e})}if(!f&&a.includeBuiltinSubstitutions&&(f={APP_USER:n.APP_USER,APP_ID:n.APP_ID,APP_PAGE_ID:n.APP_PAGE_ID,APP_SESSION:n.APP_SESSION,APP_FILES:n.APP_FILES,WORKSPACE_FILES:n.WORKSPACE_FILES,REQUEST:$v("pRequest"),DEBUG:$v("pdebug"),IMAGE_PREFIX:n.APEX_FILES,APEX_FILES:n.APEX_FILES,APEX_VERSION:n.APEX_VERSION}),(o||a.directives)&&null===a.placeholders&&(a.placeholders={}),V=null!==a.placeholders,H=a.directives,V||H){for(c=l,d=y.exec(c),$=d?d.index:-1,M=0;d;)O=d[1],F=d[2],"{{/}"===d[0]?(j.push({type:"text",text:c.substring(M,$)+"{"}),M=$+d[0].length):O&&V?(ce=O,N=o&&void 0!==o[ce]?o[ce]:a.placeholders[O],void 0!==N?($>M&&j.push({type:"text",text:c.substring(M,$)}),j.push({type:"ph",text:d[0],value:N})):(j.push({type:"text",text:c.substring(M,$+O.length+2)}),y.lastIndex-=1),M=$+d[0].length):F&&H&&($>M&&j.push({type:"text",text:c.substring(M,$)}),R=v.exec(F),R?j.push({type:"directive",text:d[0],name:R[1].trim().toLowerCase(),arg:(R[2]||"").trim()}):j.push({type:"text",text:d[0]}),M=$+d[0].length),d=y.exec(c),$=d?d.index:-1;c.length>M&&j.push({type:"text",text:c.substring(M)})}else j.push({type:"text",text:l});var ce;for(let e=1;e<j.length;e++){let t=j[e],n=j[e-1];"text"===t.type&&"text"===n.type&&(n.text+=t.text,j.splice(e,1),e-=1)}for(a.iterationCallback&&a.model&&a.record&&a.iterationCallback(null,a.model,a.record,null,a.placeholders,a.extraSubstitutions),p="",X=0,q=null;X<j.length;)X=pe(X);for((B.length>0||Z.length>0||U.length>0)&&t.error("applyTemplate missing 'endif', 'endcase', or 'endloop'");A.test(p);)p=p.replace(A,"");return p},extractTemplateDependencies:function(e){let t,n=[];for(t=x.exec(e);t;){let l=t[2]||t[3];n.push(l),t=x.exec(e)}return n},cssDurationToMilliseconds:e=>{let t=parseFloat(e);return isNaN(t)?0:e.includes("ms")?t:1e3*t}};return L.escapeHTMLContent=a,L.objectEntries=o,L.hasOwnProperty=u,L}(apex.jQuery,apex.debug,apex.env);
apex.locale={},function(e,t,r){"use strict";let n={language:"en",separators:{group:",",decimal:"."},currency:{local:"$",iso:"USD",dual:"$"},calendar:{abbrMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rawAbbrMonthNames:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],rawMonthNames:["JANUARY  ","FEBRUARY ","MARCH    ","APRIL    ","MAY      ","JUNE     ","JULY     ","AUGUST   ","SEPTEMBER","OCTOBER  ","NOVEMBER ","DECEMBER "],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rawAbbrDayNames:["SUN","MON","TUE","WED","THU","FRI","SAT"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],rawDayNames:["SUNDAY   ","MONDAY   ","TUESDAY  ","WEDNESDAY","THURSDAY ","FRIDAY   ","SATURDAY "],dateFormat:"YYYY/MM/DD",dsDateFormat:"fmMM/DD/RRRR",dlDateFormat:"fmDay, Month fmdd, yyyy",amFormat:"AM",pmFormat:"PM",startOfWeek:"sunday"}},a=!1,i=r.Deferred(),o=i.promise();const l=function(e,o){let l,s,u,c,m,g,d=e;function f(){o!==Object.keys(n.cldr.main)[0]&&t.warn("HTML lang different from language set in init."),t.timeEnd("Load L10n Resources"),i.resolve(),a=!1}t.timeBegin("Load L10n Resources"),a=!0,n.cldr={},o=function(e){let t,r;return r=e.split("-"),r[0]=r[0].toLowerCase(),t=1,r.length>t&&4===r[t].length&&(t=2),r.length>t&&(r[t]=r[t].toUpperCase()),r.join("-")}(o),window.require&&window.define?require.s.contexts._.config.config.ojL10n&&require(["ojL10n!ojtranslations/nls/localeElements"],(function(e){r.extend(!0,n.cldr,e),f()})):(window.define=function(e){e.root&&(m=e,e=e.root),r.extend(!0,n.cldr,e)},s={cache:!0,dataType:"script"},l=d+"localeElements.js",u=r.ajax(l,s),u.done((function(){g=o,m[g]||(g=g.split("-")[0],m[g]||(g=navigator.language,m[g]||(g="en"))),l=d+g+"/localeElements.js",c=r.ajax(l,s),c.fail((function(){t.error("Failed to load locale resource ",l)})).always((function(){f(),delete window.define}))})))};e.init=function(t){"pending"!==e.resourcesLoaded().state()&&(i=r.Deferred(),o=i.promise()),n=r.extend(n,t),r((function(){let t,s=n.resources;s&&(a?(t=e.resourcesLoaded(),t.done((function(){setTimeout((function(){i=r.Deferred(),o=i.promise(),l(s,n.language)}),1)}))):l(s,n.language))}))},e.getSettings=function(){return r.extend(!0,{},n)},e.resourcesLoaded=function(e){return e&&o.done(e),o},e.getGroupSeparator=function(){return n.separators.group},e.getDecimalSeparator=function(){return n.separators.decimal},e.getAbbrevMonthNames=function(){return n.calendar.abbrMonthNames},e.getMonthNames=function(){return n.calendar.monthNames},e.getAbbrevDayNames=function(){return n.calendar.abbrDayNames},e.getDayNames=function(){return n.calendar.dayNames},e.getDateFormat=function(){return n.calendar.dateFormat},e.getDSDateFormat=function(){return n.calendar.dsDateFormat},e.getDLDateFormat=function(){return n.calendar.dlDateFormat},e.getLanguage=function(){return n.language},e.getCurrency=function(){return n.currency.local},e.getISOCurrency=function(){return n.currency.iso},e.getDualCurrency=function(){return n.currency.dual};const s=apex.util.escapeRegExp,u=/V|RN|TM|EEEE/,c=/^\s*0[bBoO]/,m=/^\s*0[Xx]/,g=/^[-+]?0*/,d=/\.?0*$/,f=/[$CLU]/;e.toNumber=function(r,n){let a,i=NaN,o=e.getDecimalSeparator();if("number"==typeof r)i=r;else if("string"==typeof r&&""!==r.trim()&&!c.test(r)){if(n&&("string"!=typeof n||u.test(n))&&(n=null,t.warn("Unsupported format ignored: ",n)),n||"."===o||(n="GD"),n)if(p.test(n))m.test(r)||(r="0x"+r),i=Number(r);else{let t,l,u=e.getGroupSeparator(),c=".";if(m.test(r))return i;if(a=r,(n=n.toUpperCase()).includes("PR")?(l=/^\s*<(.+)>\s*$/.exec(a),l&&(a="-"+l[1])):/(S|MI)$/.test(n)&&a.includes("-")&&(a="-"+a.replace("-","")),"."!==o&&(a=a.replace(o,"\n"),c="\n"),t=a.split(c),n.includes("G"))t[0]=t[0].replaceAll(u,"");else if(n.includes(","))t[0]=t[0].replaceAll(",","");else if(t[0].includes("."))return i;if(a=t.join(".").trim(),f.test(n)){let t=new RegExp("\\$|"+s(e.getCurrency())+"|"+s(e.getDualCurrency())+"|"+s(e.getISOCurrency()),"g");a=a.replace(t,"")}i=Number(a)}else a=r.replace(/[$,]/g,"").trim(),i=Number(a);if(a&&!isNaN(i)&&!/[eE]/.test(a)){let e=(""+i).replace(g,""),r=a.replace(g,"");e.includes(".")&&(e=e.replace(d,"")),r.includes(".")&&(r=r.replace(d,"")),e!==r&&(t.error("Value exceeds number precision "+a),i=NaN)}}return i};const p=/^(FM)?(0*X+)$/,h=/^(FMS|SFM|S|FM)?([CLU])?([D$09B][GD$09B]*)?(V9+)?([CLU])?(PR|MI|S)?$/,D=/^(FMS|SFM|S|FM)?([CLU])?([.$09B][,.$09B]*)?(V9+)?([CLU])?(PR|MI|S)?$/;e.formatNumber=function(t,n,a){let i,o,l,s,u,c,m,g,d,f,S,N,b,F,A,L,R,y,U,C,x,I,O,v,_,w,T={groupingSize:0,groupingSize0:0,decimalSeparator:".",groupingSeparator:""};function Y(){throw new Error("Invalid number format model "+n)}function $(){return"########################################".substr(0,A)}if(null===t||""===t)return"";if(v=(a=r.extend({NLS_NUMERIC_CHARACTERS:e.getDecimalSeparator()+e.getGroupSeparator(),NLS_CURRENCY:e.getCurrency(),NLS_DUAL_CURRENCY:e.getDualCurrency(),NLS_ISO_CURRENCY:e.getISOCurrency()},a)).NLS_NUMERIC_CHARACTERS[0],_=a.NLS_NUMERIC_CHARACTERS[1],v===_)throw new Error("Invalid NLS parameter");if(null==n){let e="number"==typeof t;return t=""+t,e&&"."!==v&&t.includes(".")&&(t=t.replace(".",v)),t}if(y=n.toUpperCase(),s=p.exec(y),s)return m=s[1]&&s[1].indexOf("FM")>=0,d=s[2],N="0"===d.substr(0,1),b=d===n.replace(/FM/i,""),L=d.length,A=L+1,t<0||t>(Number.MAX_SAFE_INTEGER||9007199254740991)?F=$():(F=Math.round(t).toString(16),b&&(F=F.toUpperCase()),N&&(F=M(F,d.length,!0)),F.length>L?F=$():m||(F=" "+F)),F;if(s=h.exec(y),s||(v=".",_=",",s=D.exec(y)),s||Y(),s[1]=s[1]||"",s[2]&&s[5]&&Y(),m=s[1].indexOf("FM")>=0,u=s[2]||s[5]||"",S=!!s[2],d=s[3]||"B",f=d.indexOf("$"),f>=0&&(u&&Y(),u="$",S=!0,d=d.substr(0,f)+d.substr(f+1)),f=d.indexOf("B"),g=f>=0,g&&(d=d.substr(0,f)+d.substr(f+1)),c="",f=s[1].indexOf("S"),f>=0&&s[6]&&Y(),c=f>=0?"LS":s[6]||"",w=s[4]||"",w&&d.match(/[D.]/)&&Y(),w&&(w=w.substr(1),t*=parseInt(w,10)+1,d+=w),U=d.split(/[D.]/),(U.length>2||U.length>1&&U[1].match(/[G,]/)||d.match(/[B$]/))&&Y(),I=U[0],O=U[1]||"",A=d.length+1,"PR"===c&&(A+=1),u)switch(u){case"C":u=a.NLS_ISO_CURRENCY,A+=7;break;case"L":u=a.NLS_CURRENCY,A+=10;break;case"U":u=a.NLS_DUAL_CURRENCY,A+=10;break;case"$":A+=1}if(l=Math.abs(t),isNaN(l))return"NaN";for(t<0&&(l=-l),T.maximumFractionDigits=O.length,f=O.lastIndexOf("0"),T.minimumFractionDigits=m&&f>=0?f+1:O.length,R=I.replace(/[G,]/g,""),f=R.indexOf("0"),T.minimumIntegerDigits=f>=0?R.length-f:0,F=E(l,{},T),"0."===F.substr(0,2)&&"9"===I[I.length-1]&&(F=F.substr(1)),U=F.split("."),R=U[0],x=U[1]||"",C="",i=I.length-1,o=R.length-1;i>=0;i--)if(I[i].match(/[G,]/))o>=0&&(C=_+C);else{if(o<0)break;C=R[o]+C,o-=1}if(o>=0&&!(g&&""===d&&F<1))return $();if(F=C,d.match(/[D.]/)&&(F+=v+x),g&&F.match(/^[0.,]*$/)&&(F=""),u&&(S?F=u+F:F+=u),m=m?"":" ",t<0&&""!==F)switch(c){case"LS":F="-"+F;break;case"S":case"MI":F+="-";break;case"PR":F="<"+F+">";break;default:F="-"+F}else if(t>=0)switch(c){case"LS":F="+"+F;break;case"S":F+="+";break;case"MI":case"PR":F+=m}return F.length<A&&(F=m+F),F},e.formatCompactNumber=function(a,i){let o,l,s,u,c,m,g,d,f,p,h,D,S,F,M;return"resolved"!==e.resourcesLoaded().state()?(t.warn("Can't format number before locale resources loaded."),""+a):(delete(i=r.extend({useGrouping:!0,roundingMode:"DEFAULT",maximumFractionDigits:2,minimumFractionDigits:0,minimumIntegerDigits:1},i)).pattern,c=n.cldr,u=Object.keys(c.main)[0],h=c.main[u].numbers,S="latn",F="symbols-numberSystem-latn",M=h[F].minusSign,D=h["decimalFormats-numberSystem-latn"],g=D.standard,g=g.split(".")[0],d=g.split(","),d.length>2?(f=d[d.length-1].length,p=d[d.length-2].length):d.length>1&&(f=d[d.length-1].length,p=0),m=i.separators||{},s={lang:(A=u,A.split("-")[0]),plurals:c.supplemental.plurals,shortDecimalFormat:D.short.decimalFormat,groupingSize:f||3,groupingSize0:p||0,decimalSeparator:m.decimal||h[F].decimal,groupingSeparator:m.group||h[F].group,maximumFractionDigits:i.maximumFractionDigits,minimumFractionDigits:i.minimumFractionDigits,minimumIntegerDigits:i.minimumIntegerDigits},o="",l=function(e,t,r){var n,a,i,o=Math.abs(e),l=function(e){for(var t=Object.keys(N),r=0;r<t.length;r++)for(var n=t[r],a=N[n].length,i=0;i<a;i++)if(N[n][i]<=e)return[n,N[n][i]];return[e,null]}(o),s="";if(null!==l[1]){var u=r.lang,c=r.plurals[u](Math.floor(o/b[l[0]]));if(n=l[1]+"-count-"+c,void 0===(n=r.shortDecimalFormat[n])&&(c="other",n=l[1]+"-count-"+c,n=r.shortDecimalFormat[n]),a=function(e){var t=0,r=0,n=0,a="";if("0"!==e[0]){for(;"0"!==e[t]&&t<e.length;)t+=1;a=e.substr(0,t),n=t}for(t=n;t<e.length&&"0"===e[t];t++)r+=1;return[a,r]}(n),i=a[1],s=a[0],i<n.length){var m=1*Math.pow(10,i);m=l[1]/m*10,o/=m}}var g,d="";void 0!==n&&(d=n.substr(i+a[0].length));e<0&&(o=-o);g=E(o,t,r);return d=d.replace(/'\.'/g,"."),d=s+g+d}(a,i,s),o+=a<0&&l-0!=0?M+l:l,o);var A};var S=/^0+$/,N={trillion:[1e14,1e13,1e12],billion:[1e11,1e10,1e9],million:[1e8,1e7,1e6],thousand:[1e5,1e4,1e3]},b={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},F={HALF_UP:"ceil",CEILING:"ceil",UP:"ceil",HALF_DOWN:"floor",FLOOR:"floor",DOWN:"floor",DEFAULT:"round"};function M(e,t,r){var n;for(n=e.length;n<t;n+=1)e=r?"0"+e:e+"0";return e}function E(e,t,r){var n=r.groupingSize,a=r.groupingSize0,i=r.decimalSeparator,o=e+"",l=o.split(/e/i),s=l.length>1?parseInt(l[1],10):0,u=(l=(o=l[0]).split(".")).length>1?l[1]:"",c=Math.min(r.maximumFractionDigits,u.length-s);l.length>1&&u.length>s&&(e=function(e,t,r){var n,a=r,i=e.toString().split(".");if(void 0===i[1])return Math.abs(e);if("DEFAULT"!==r){if("HALF_UP"===r||"HALF_EVEN"===r||"HALF_DOWN"===r){if("5"===i[1][t]){var o=i[1].substr(t);(o=parseInt(o,10))>5&&(a="HALF_UP")}else a="DEFAULT";e=Math.abs(e)}a=function(e,t,r,n){var a=F[t];if("HALF_EVEN"===t){var i;if(0===r){var o=e[0].length;i=parseInt(e[0][o-1],10)}else i=parseInt(e[1][r-1],10);a=i%2==0?F.HALF_DOWN:F.HALF_UP}else"UP"===t&&n<0?a=F.DOWN:"DOWN"===t&&n<0&&(a=F.UP);return a}(i,a,t,e),n=function(e,t,r){if(0===t)return Math[r](e);var n=e.toString().split("e"),a=n[0],i=n[1],o=a+"e"+(i?parseInt(i,10)-t:-t),l=parseFloat(o),s=Math[r](l);return n=s.toString().split("e"),a=n[0],i=n[1],o=a+"e"+(i?parseInt(i,10)+t:t),l=parseFloat(o)}(e,-t,a)}else{var l=Math.pow(10,t);if(n=Math.round(e*l)/l,!isFinite(n))return e}return Math.abs(n)}(e,c,t.roundingMode||"DEFAULT"));s=(l=(o=Math.abs(e)+"").split(/e/i)).length>1?parseInt(l[1],10):0,l=(o=l[0]).split("."),o=l[0],u=l.length>1?l[1]:"",s>0?(o+=(u=M(u,s,!1)).slice(0,s),u=u.substr(s)):s<0&&(u=(o=M(o,(s=-s)+1,!0)).slice(-s,o.length)+u,o=o.slice(0,-s)),c>0&&u.length>0?(u=u.length>c?u.slice(0,c):M(u,c,!1),!0===S.test(u)&&(u=u.slice(0,r.minimumFractionDigits)),u=i+u):u=r.minimumFractionDigits>0?i:"",u=M(u,i.length+r.minimumFractionDigits,!1);var m=r.groupingSeparator,g="";!1===t.useGrouping&&void 0===t.pattern&&(m="");var d=(o=M(o,r.minimumIntegerDigits,!0)).length-1;for(u=u.length>1?u:"";d>=0;){if(0===n||n>d)return o.slice(0,d+1)+(g.length?m+g+u:u);g=o.slice(d-n+1,d+1)+(g.length?m+g:""),d-=n,a>0&&(n=a)}return o.slice(0,d+1)+m+g+u}}(apex.locale,apex.debug,apex.jQuery);
apex.lang=function(e,n,t){"use strict";const s=/%([0-9,%])/g;function a(t,a,...o){let r,u=0,g=a.replace(s,(function(n,s){let a,r;return"%"===s?"%":(a=parseInt(s,10),u+=1,r=a>=o.length?"?":o[a],t?e.escapeHTML(r+""):r)}));return u<o.length?r="many":u>o.length&&(r="few"),r&&n.error(`Format('${a}'): too ${r} arguments. Expecting ${u}, got ${o.length}`),g}let o={};const r={addMessages:function(e){t.extend(o,e)},loadMessages:function(e){let n=t.Deferred(),s={p_app_id:apex.env.APP_ID,p_lang:apex.locale.getLanguage(),p_version:"1",p_names:e};return t.get("wwv_flow.js_messages",s,null,"json").done((function(e){r.addMessages(e),n.resolve()})).fail((function(){n.reject()})),n.promise()},loadMessagesIfNeeded:function(e,n){let t=[];for(let n=0;n<e.length;n++)this.hasMessage(e[n])||t.push(e[n]);t.length>0?r.loadMessages(t).done((function(){n()})):n()},clearMessages:function(){o={}},getMessage:function(e){let n=o[e];return null==n?e:n},hasMessage:function(e){return null!=o[e]},formatMessage:function(e,...n){let t=r.getMessage(e);return r.format(t,...n)},format:function(e,...n){return a(!0,e,...n)},formatMessageNoEscape:function(e,...n){let t=r.getMessage(e);return r.formatNoEscape(t,...n)},formatNoEscape:function(e,...n){return a(!1,e,...n)}};return r}(apex.util,apex.debug,apex.jQuery);
apex.date={},function(e,t,r,n){"use strict";function a(t,r){let n;return r===e.UNIT.YEAR?n=new Date(t.getFullYear(),0,1,0,0,0,0):r===e.UNIT.MONTH?n=new Date(t.getFullYear(),t.getMonth(),1,0,0,0,0):r===e.UNIT.WEEK||r===e.UNIT.DAY?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0):r===e.UNIT.HOUR?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),0,0,0):r===e.UNIT.MINUTE?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),0,0):r===e.UNIT.SECOND?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0):r===e.UNIT.MILLISECOND&&(n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),n}e.UNIT={MILLISECOND:"millisecond",SECOND:"second",MINUTE:"minute",HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},e.isValid=function(e){return e instanceof Date&&!isNaN(e)},e.isValidString=function(e){return!isNaN(Date.parse(e))},e.clone=function(e){return new Date(e.getTime())},e.add=function(t,r,n){let a=t||new Date;return n===e.UNIT.YEAR?a.setFullYear(a.getFullYear()+r):n===e.UNIT.MONTH?a=function(e,t){let r=e.getDate();return e.setMonth(e.getMonth()+t),e.getDate()!==r&&e.setDate(0),e}(a,r):n===e.UNIT.WEEK?a.setDate(a.getDate()+7*r):n===e.UNIT.DAY?a.setDate(a.getDate()+r):n===e.UNIT.HOUR?a.setHours(a.getHours()+r):n===e.UNIT.MINUTE?a.setTime(a.getTime()+6e4*r):n===e.UNIT.SECOND?a.setTime(a.getTime()+1e3*r):n===e.UNIT.MILLISECOND&&a.setTime(a.getTime()+r),a},e.subtract=function(t,r,n){let a=t||new Date;return a=e.add(a,-r,n),a},e.ISOWeek=function(t){let r,n=e.clone(t||new Date),a=(n.getDay()+6)%7;return n.setDate(n.getDate()-a+3),r=n.valueOf(),n.setMonth(0,1),4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),1+Math.ceil((r-n)/6048e5)},e.weekOfMonth=function(t){let r=e.clone(t||new Date);return r.setDate(r.getDate()-r.getDay()+1),Math.ceil(r.getDate()/7)},e.daysInMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},e.dayOfWeek=function(e){let t=e||new Date;return 0===t.getDay()?7:t.getDay()},e.getDayOfYear=function(e){let t=e||new Date,r=new Date(t.getFullYear(),0,0),n=t-r;return Math.floor(n/864e5)},e.setDayOfYear=function(e,t){(e||new Date).setMonth(0,t)},e.secondsPastMidnight=function(t){let r=e.clone(t||new Date);return Math.round((e.clone(r)-r.setHours(0,0,0,0))/1e3,0)},e.firstOfMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),1)},e.lastOfMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth()+1,0)},e.startOfDay=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},e.endOfDay=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)},e.monthsBetween=function(e,t){let r;return r=12*(t.getFullYear()-e.getFullYear()),r-=e.getMonth(),r+=t.getMonth(),Math.abs(r)},e.min=function(...e){let t=e||[new Date];return new Date(Math.min.apply(null,t))},e.max=function(...e){let t=e||[new Date];return new Date(Math.max.apply(null,t))},e.isBefore=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()<g.getTime():i<e.add(e.subtract(g,1,s),1,e.UNIT.MILLISECOND),o},e.isAfter=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()>g.getTime():i>e.subtract(e.add(g,1,s),1,e.UNIT.MILLISECOND),o},e.isSame=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=i.getTime()===g.getTime(),o},e.isSameOrBefore=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()<=g.getTime():e.isSame(i,g)||i<e.add(e.subtract(g,1,s),1,e.UNIT.MILLISECOND),o},e.isSameOrAfter=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()>=g.getTime():e.isSame(i,g)||i>e.subtract(e.add(g,1,s),1,e.UNIT.MILLISECOND),o},e.isBetween=function(t,r,n,o){let s=!1,i=o||e.UNIT.MILLISECOND,g=a(t,i),l=a(r,i),u=a(n,i);return s=g>l&&g<u,s},e.isLeapYear=function(e){let t=e||new Date;return 29===new Date(t.getFullYear(),1,29).getDate()},e.toISOString=function(t){let r=e.clone(t||new Date);return e.add(r,-1*r.getTimezoneOffset(),e.UNIT.MINUTE),r.toISOString().split(".")[0]},e.since=function(t,n=!1){let a=t||new Date,o=new Date,s=(o-a)/1e3,i=(a-o)/1e3,g=n,l="",u=r.formatMessage,D={secondsAgo:u(g?"APEX.SINCE.SHORT.SECONDS_AGO":"SINCE_SECONDS_AGO","#time#"),minutesAgo:u(g?"APEX.SINCE.SHORT.MINUTES_AGO":"SINCE_MINUTES_AGO","#time#"),hoursAgo:u(g?"APEX.SINCE.SHORT.HOURS_AGO":"SINCE_HOURS_AGO","#time#"),daysAgo:u(g?"APEX.SINCE.SHORT.DAYS_AGO":"SINCE_DAYS_AGO","#time#"),weeksAgo:u(g?"APEX.SINCE.SHORT.WEEKS_AGO":"SINCE_WEEKS_AGO","#time#"),monthsAgo:u(g?"APEX.SINCE.SHORT.MONTHS_AGO":"SINCE_MONTHS_AGO","#time#"),yearsAgo:u(g?"APEX.SINCE.SHORT.YEARS_AGO":"SINCE_YEARS_AGO","#time#"),secondsFromNow:u(g?"APEX.SINCE.SHORT.SECONDS_FROM_NOW":"SINCE_SECONDS_FROM_NOW","#time#"),minutesFromNow:u(g?"APEX.SINCE.SHORT.MINUTES_FROM_NOW":"SINCE_MINUTES_FROM_NOW","#time#"),hoursFromNow:u(g?"APEX.SINCE.SHORT.HOURS_FROM_NOW":"SINCE_HOURS_FROM_NOW","#time#"),daysFromNow:u(g?"APEX.SINCE.SHORT.DAYS_FROM_NOW":"SINCE_DAYS_FROM_NOW","#time#"),weeksFromNow:u(g?"APEX.SINCE.SHORT.WEEKS_FROM_NOW":"SINCE_WEEKS_FROM_NOW","#time#"),monthsFromNow:u(g?"APEX.SINCE.SHORT.MONTHS_FROM_NOW":"SINCE_MONTHS_FROM_NOW","#time#"),yearsFromNow:u(g?"APEX.SINCE.SHORT.YEARS_FROM_NOW":"SINCE_YEARS_FROM_NOW","#time#"),now:u("SINCE_NOW")};if(!e.isValid(a))throw new Error("Not a valid date");return e.isSame(o,a,e.UNIT.SECOND)?l=D.now:s>0&&s<60?l=D.secondsAgo.replace("#time#",Math.round(s)):i>0&&i<60?l=D.secondsFromNow.replace("#time#",Math.round(i)):s>=60&&s<3600?l=D.minutesAgo.replace("#time#",Math.round(s/60)):i>=60&&i<3600?l=D.minutesFromNow.replace("#time#",Math.round(i/60)):s>=3600&&s<172800?l=D.hoursAgo.replace("#time#",Math.round(s/60/60)):i>=3600&&i<172800?l=D.hoursFromNow.replace("#time#",Math.round(i/60/60)):s>=172800&&s<1209600?l=D.daysAgo.replace("#time#",Math.round(s/60/60/24)):i>=172800&&i<1209600?l=D.daysFromNow.replace("#time#",Math.round(i/60/60/24)):s>=1209600&&s<5184e3?l=D.weeksAgo.replace("#time#",Math.round(s/60/60/24/7)):i>=1209600&&i<5184e3?l=D.weeksFromNow.replace("#time#",Math.round(i/60/60/24/7)):s>=5184e3&&s<31536e3?l=D.monthsAgo.replace("#time#",Math.round(e.monthsBetween(a,o))):i>=5184e3&&i<31536e3?l=D.monthsFromNow.replace("#time#",Math.round(e.monthsBetween(o,a))):s>=31536e3?l=D.yearsAgo.replace("#time#",(e.monthsBetween(a,o)/12).toFixed(1)):i>=31536e3&&(l=D.yearsFromNow.replace("#time#",(e.monthsBetween(o,a)/12).toFixed(1))),l},e.format=function(r,a,o){let s,i,g,l,u=r||new Date,D=o||t.getLanguage()||"default",M=a||t.getDateFormat(),c=M.toUpperCase(),m=t.getSettings().calendar.amFormat,p=t.getSettings().calendar.pmFormat,d=[],N="",h=[],S="",E=[];function w(e,t){let r=(e.toUpperCase().match(/".*?"/g)||[]).join(" "),n=t.toUpperCase(),a=r.indexOf(n);return r.substr(0,a).includes('"')&&r.substr(a+1,r.length).includes('"')}function f(e=""){return e.toUpperCase().startsWith("FM")?e.replace(new RegExp("FM","ig"),""):e}function O(e=""){let t=f(e);return t===t.toUpperCase()}function Y(e=""){let t=f(e);return t===t.toLowerCase()}function I(e=""){let t=f(e);return t.charAt(0)===t.charAt(0).toUpperCase()&&t.substr(1)===t.substr(1).toLowerCase()}function F(e=""){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}function C(e){let r=t.getAbbrevMonthNames(),n="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'MON' format");return n=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{month:"short"}):r[e.getMonth()],n.toUpperCase()}function R(e){let r=t.getMonthNames(),n="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'MONTH' format");return n=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{month:"long"}):r[e.getMonth()],n.toUpperCase()}function H(e){let r=t.getAbbrevDayNames(),n="sunday"===t.getSettings().calendar.startOfWeek?0:-1,a="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'DY' format");return a=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{weekday:"short"}):r[e.getDay()+n===-1?r.length+n:e.getDay()+n],a.toUpperCase()}function T(e){let r=t.getDayNames(),n="sunday"===t.getSettings().calendar.startOfWeek?0:-1,a="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'DAY' format");return a=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{weekday:"long"}):r[e.getDay()+n===-1?r.length+n:e.getDay()+n],a.toUpperCase()}function A(t,r){return{YYYY:e=>("0000"+e.getFullYear()).slice(-4),FMYYYY:e=>("0000"+e.getFullYear()).slice(-4),YY:e=>("0000"+e.getFullYear()).slice(-2),RRRR:e=>("0000"+e.getFullYear()).slice(-4),FMRRRR:e=>("0000"+e.getFullYear()).slice(-4),RR:e=>("0000"+e.getFullYear()).slice(-2),MONTH:e=>R(e),FMMONTH:e=>R(e),MON:e=>C(e),FMMON:e=>C(e),MM:e=>("0"+(e.getMonth()+1)).slice(-2),FMMM:e=>(e.getMonth()+1).toString(),IW:t=>("0"+e.ISOWeek(t)).slice(-2),WW:t=>("0"+e.ISOWeek(t)).slice(-2),W:t=>e.weekOfMonth(t),DAY:e=>T(e),FMDAY:e=>T(e),DDD:t=>("0"+e.dayOfYear(t)).slice(-3),DD:e=>("0"+e.getDate()).slice(-2),FMDD:e=>e.getDate().toString(),DY:e=>H(e),FMDY:e=>H(e),D:e=>e.getDay()+1,HH24:e=>("0"+e.getHours()).slice(-2),HH12:e=>e.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).substr(0,2),HH:e=>e.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).substr(0,2),AM:e=>e.getHours()<12?m:p,PM:e=>e.getHours()<12?m:p,MI:e=>("0"+e.getMinutes()).slice(-2),SSSSS:t=>e.secondsPastMidnight(t),SS:e=>("0"+e.getSeconds()).slice(-2)}[r](t)}if(!e.isValid(u))throw new Error("Not a valid date");if("SINCE"===c)return e.since(u);for("DS"===c&&(M=t.getDSDateFormat(),c=M.toUpperCase()),"DL"===c&&(M=t.getDLDateFormat(),c=M.toUpperCase()),n.info("apex.date.format: date",e.toISOString(u)),n.info("apex.date.format: formatMask",M),d="FMMONTH|FMYYYY|FMRRRR|MONTH|FMMON|FMDAY|SSSSS|FMDY|FMDD|FMMM|HH12|HH24|RRRR|YYYY|DAY|DDD|MON|AM|DD|DL|DS|DY|HH|IW|MI|MM|PM|RR|SS|WW|YY|D|W".split("|"),l=0;l<d.length;l++)N=d[l],c.includes(N)&&(w(M,N)||(E.push({id:l,name:N,textCase:"DS"===N||"DL"===N?"original":O(M.substr(M.toUpperCase().indexOf(N),N.length))?"upper":Y(M.substr(M.toUpperCase().indexOf(N),N.length))?"lower":I(M.substr(M.toUpperCase().indexOf(N),N.length))?"init":"upper"}),M=M.replace(new RegExp(N,"ig"),"~~"+l+"~~")),c=c.replace(new RegExp(N,"g"),""));for(h="SYEAR|SYYYY|IYYY|YEAR|IYY|SCC|TZD|TZH|TZM|TZR|AD|BC|CC|EE|FF|FX|IY|RM|TS|E|I|J|Q|X".split("|"),l=0;l<h.length;l++)if(S=h[l],c.includes(S)&&!w(c,S))throw new Error("Format not supported: "+S);for(g=M,l=0;l<E.length;l++){switch(i=E[l],s=A(u,i.name).toString(),i.textCase){case"upper":s=s.toUpperCase();break;case"lower":s=s.toLowerCase();break;case"init":s=F(s)}n.info("apex.date.format: getDatePart","value:",s,"format:",i.name),g=g.replace(new RegExp("~~"+i.id+"~~","g"),s)}return g.includes('"')&&(g=g.replace(new RegExp('"',"g"),"")),g},e.parse=function(r,a){let o,s,i,g,l=new Date(2022,0,1),u=r||"",D=a||t.getDateFormat(),M=D.toUpperCase(),c=t.getSettings().calendar.amFormat,m=t.getSettings().calendar.pmFormat,p=[],d="",N=[],h="",S=[],E=!1,w=0,f=0,O=0,Y=!1,I=["~","*","#","<",">","|","§","^","°","=","$","&","%","@","€"],F="";function C(e,r=!1){let n,a=r?t.getAbbrevMonthNames():t.getMonthNames();return n=(r?t.getSettings().calendar.rawAbbrMonthNames:t.getSettings().calendar.rawMonthNames).findIndex(t=>t.toLowerCase()===e.toLowerCase()),-1===n&&(n=a.findIndex(t=>t.toLowerCase()===e.toLowerCase())),n}function R(e,r=!1){let n=r?t.getAbbrevMonthNames():t.getMonthNames(),a=r?t.getSettings().calendar.rawAbbrMonthNames:t.getSettings().calendar.rawMonthNames,o=!1,s="";for(let t=0;t<a.length;t++){if(s=a[t],e.toLowerCase().includes(s.toLowerCase())){o=!0;break}s=""}if(!o)for(let t=0;t<n.length&&(s=n[t],!e.toLowerCase().includes(s.toLowerCase()));t++)s="";return s}function H(e,r=!1){let n=r?t.getAbbrevDayNames():t.getDayNames(),a=r?t.getSettings().calendar.rawAbbrDayNames:t.getSettings().calendar.rawDayNames,o=!1,s="";for(let t=0;t<a.length;t++){if(s=a[t],e.toLowerCase().includes(s.toLowerCase())){o=!0;break}s=""}if(!o)for(let t=0;t<n.length&&(s=n[t],!e.toLowerCase().includes(s.toLowerCase()));t++)s="";return s}function T(e){let t="";return e.toLowerCase().includes(c.toLowerCase())&&(t=c),t||e.toLowerCase().includes(m.toLowerCase())&&(t=m),t}function A(e,t,r){return((e.substring(t,r)||"").match(/\d{1,2}/)||[]).join()}function U(e,t,r){e=e.filter((function(e){return e.start>t})).forEach((function(e){e.start=e.start+r,e.end=e.end+r}))}function L(e=""){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(t,r,a){n.info("apex.date.parse: setDatePart","value:",r,"format:",a);({YYYY:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: YYYY not valid.");e.setFullYear(t)},FMYYYY:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: FMYYYY not valid.");e.setFullYear(t)},YY:(e,t)=>{if(!/^\d{2}$/.test(t))throw new Error("Date Parsing Error: YY not valid.");e.setFullYear(e.getFullYear().toString().substr(0,2)+t)},RRRR:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: RRRR not valid.");e.setFullYear(t)},FMRRRR:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: FMRRRR not valid.");e.setFullYear(t)},RR:(e,t)=>{if(!/^\d{2}$/.test(t))throw new Error("Date Parsing Error: RR not valid.");e.setFullYear(e.getFullYear().toString().substr(0,2)+t)},MONTH:(e,t)=>{const r=C(t,!1);if(-1===r)throw new Error("Date Parsing Error: MONTH not valid.");e.setMonth(r)},FMMONTH:(e,t)=>{const r=C(t,!1);if(-1===r)throw new Error("Date Parsing Error: FMMONTH not valid.");e.setMonth(r)},MON:(e,t)=>{const r=C(t,!0);if(-1===r)throw new Error("Date Parsing Error: MON not valid.");e.setMonth(r)},FMMON:(e,t)=>{const r=C(t,!0);if(-1===r)throw new Error("Date Parsing Error: FMMON not valid.");e.setMonth(r)},MM:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: MM not valid.");e.setMonth(r-1)},FMMM:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: FMMM not valid.");e.setMonth(r-1)},DDD:(t,r)=>{const n=parseInt(r,10);if(!/^\d+$/.test(n)||n<1||n>366)throw new Error("Date Parsing Error: DDD not valid.");e.setDayOfYear(t,n)},DD:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>31)throw new Error("Date Parsing Error: DD not valid.");e.setDate(r)},FMDD:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>31)throw new Error("Date Parsing Error: FMDD not valid.");e.setDate(r)},D:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>7)throw new Error("Date Parsing Error: D not valid.");!function(e,t){const r=t-(e.getDay()+1);e.setDate(e.getDate()+r)}(e,r)},HH24:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>23)throw new Error("Date Parsing Error: HH24 not valid.");e.setHours(r)},HH12:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: HH12 not valid.");e.setHours(r)},HH:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: HH not valid.");e.setHours(r)},AM:(e,t)=>{if(![c,m].includes(t.toUpperCase()))throw new Error("Date Parsing Error: AM not valid.");t.toUpperCase()===c&&12===e.getHours()?e.setHours(0):t.toUpperCase()===m&&0===e.getHours()?e.setHours(12):t.toUpperCase()===c&&e.getHours()>12?e.setHours(e.getHours()-12):t.toUpperCase()===m&&e.getHours()<12&&e.setHours(e.getHours()+12)},PM:(e,t)=>{if(![c,m].includes(t.toUpperCase()))throw new Error("Date Parsing Error: PM not valid.");t.toUpperCase()===c&&12===e.getHours()?e.setHours(0):t.toUpperCase()===m&&0===e.getHours()?e.setHours(12):t.toUpperCase()===c&&e.getHours()>12?e.setHours(e.getHours()-12):t.toUpperCase()===m&&e.getHours()<12&&e.setHours(e.getHours()+12)},MI:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>59)throw new Error("Date Parsing Error: MI not valid.");e.setMinutes(r)},SS:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>59)throw new Error("Date Parsing Error: SS not valid.");e.setSeconds(r)}})[a](t,r)}if(u){for(l.setHours(0,0,0,0),"DS"===M&&(D=t.getDSDateFormat(),M=D.toUpperCase()),"DL"===M&&(D=t.getDLDateFormat(),M=D.toUpperCase()),M.includes('"')&&(D=D.replace(/".*?"/g,(function(e){return" ".repeat(e.length-2)})),M=D.toUpperCase()),/[\u{0080}-\u{FFFF}]/u.test(M)&&(D=D.replace(/[\u{0080}-\u{FFFF}]/gu," "),M=D.toUpperCase()),n.info("apex.date.parse: dateString",u),n.info("apex.date.parse: formatMask",D),p="FMMONTH|FMYYYY|FMRRRR|MONTH|FMMON|FMDAY|FMDY|FMDD|FMMM|HH12|HH24|RRRR|YYYY|DAY|DDD|MON|AM|DD|DL|DS|DY|HH|MI|MM|PM|RR|SS|YY|D".split("|"),g=0;g<p.length;g++)d=p[g],M.includes(d)&&(w=D.toUpperCase().indexOf(d),f=D.toUpperCase().indexOf(d)+d.length,"FMYYYY"!==d&&"FMRRRR"!==d||(f-=2,O=w,E=!0),S.push({id:g,name:d,start:w,end:f}),M=M.replace(d,new Array(d.length+1).join(g)));for(E&&U(S,O,-2),N="SSSSS|SYEAR|SYYYY|IYYY|YEAR|IYY|SCC|TZD|TZH|TZM|TZR|AD|BC|CC|EE|FF|FX|IW|IY|RM|TS|WW|E|I|J|Q|W|X".split("|"),g=0;g<N.length;g++)if(h=N[g],M.includes(h))throw new Error("Format not supported: "+h);for(S.sort((function(e,t){return e.start-t.start})),g=0;g<S.length;g++)F=I[g]||"~",o=S[g],Y=D.toUpperCase().includes(o.name+" "),i="","MONTH"!==o.name&&"FMMONTH"!==o.name||(i=R(u,!1),i&&(u=u.replace(new RegExp(i,"ig"),F.repeat(o.name.length)+(Y?" ":"")),_(l,i,o.name),S.splice(g,1),g-=1)),"MON"!==o.name&&"FMMON"!==o.name||(i=R(u,!0),i&&(u=u.replace(new RegExp(i,"ig"),F.repeat(o.name.length)+(Y?" ":"")),_(l,i,o.name),S.splice(g,1),g-=1)),"MM"!==o.name&&"DD"!==o.name&&"FMMM"!==o.name&&"FMDD"!==o.name||(4===o.name.length&&(o.end=o.end-2),i=u.substring(o.start,o.end),i&&(/^\d+$/.test(i)?_(l,i,o.name):(i=A(u,o.start,o.end),i&&_(l,i,o.name)),o.end=4===o.name.length?o.end-(o.name.length-i.length)+2:o.end-(o.name.length-i.length),U(S,o.start,-(o.name.length-i.length)),S.splice(g,1),g-=1)),"DAY"!==o.name&&"FMDAY"!==o.name||(i=H(u,!1),i&&(u=u.replace(new RegExp(i,"ig"),F.repeat(o.name.length)+(Y?" ":""))),S.splice(g,1),g-=1),"DY"!==o.name&&"FMDY"!==o.name||(i=H(u,!0),i&&(u=u.replace(new RegExp(i,"ig"),F.repeat(o.name.length)+(Y?" ":""))),S.splice(g,1),g-=1),"HH"!==o.name&&"HH12"!==o.name&&"HH24"!==o.name||(4===o.name.length&&(o.end=o.end-2),i=u.substring(o.start,o.end),i&&(/^\d+$/.test(i)?_(l,i,o.name):(i=A(u,o.start,o.end),i&&_(l,i,o.name)),o.end=4===o.name.length?o.end-(o.name.length-i.length)+2:o.end-(o.name.length-i.length),U(S,o.start,-(o.name.length-i.length)),S.splice(g,1),g-=1)),"AM"!==o.name&&"PM"!==o.name||(i=T(u),i&&(u=u.replace(new RegExp(i,"ig"),F.repeat(o.name.length)+(Y?" ":"")),_(l,i,o.name),S.splice(g,1),g-=1)),i&&Y&&(u=u.replace(new RegExp(L(F)+"  ","ig"),F+" "));for(S.sort((function(e,t){return e.start-t.start})),g=0;g<S.length;g++)o=S[g],s=u.substring(o.start,o.end),s=s.replace(/[^a-zA-Z0-9]/gi,(function(e){return U(S,o.start,-e.length),""})),_(l,s,o.name);if(!e.isValid(l))throw new Error("Date Parsing Error");return l}},e.getAbbrevMonthNames=function(){return t.getAbbrevMonthNames()},e.getMonthNames=function(){return t.getMonthNames()},e.getAbbrevDayNames=function(){return t.getAbbrevDayNames()},e.getDayNames=function(){return t.getDayNames()},e.getDSDateFormat=function(){return t.getDSDateFormat()},e.getDLDateFormat=function(){return t.getDLDateFormat()}}(apex.date,apex.locale,apex.lang,apex.debug);
apex.message={},function(e,a,t,i,o){"use strict";var n={},l=[],s=[],r={beforeShow:null,beforeHide:null,closeNotificationSelector:"button.t-Button--closeAlert"};e.TYPE={SUCCESS:"success",ERROR:"error"},e.registerTemplates=function(t){var i,o,l,s;if(a.isPlainObject(t))n=a.extend(n,t);else for(i=0;i<t.length;i++)for(l=t[i].ids.split(","),o=0;o<l.length;o++)(s={})[l[o]]=t[i].markup,e.registerTemplates(s)},e.clearTemplates=function(){n={}},e.getTemplates=function(){return n},e.setThemeHooks=function(e){r=a.extend(r,e)},e.showErrors=function(o){var s,c,d,u,p=a.isPlainObject(o)?[o]:o,f=[],g=a("#APEX_SUCCESS_MESSAGE");for(s=0;s<p.length;s++)l.push(p[s]);for(c=0;c<l.length;c++)u="string"==typeof(d=l[c]).location?[d.location]:d.location,a.inArray("inline",u)>-1&&d.pageItem&&m(d),a.inArray("page",u)>-1&&f.push(d);f.length>0&&function(o){var l,s=t.htmlBuilder(),c={},d=!0,u=a("#APEX_ERROR_MESSAGE");u.html(n[u.data("template-id")]),s.markup("<div").attr("class","a-Notification a-Notification--error").markup(">"),s.markup("<h2").attr("class","a-Notification-title aErrMsgTitle").markup(">"),l=1===o.length?i.getMessage("FLOW.SINGLE_VALIDATION_ERROR"):i.formatMessage("FLOW.VALIDATION_ERROR",o.length);s.content(l).markup("</h2>"),s.markup("<ul").attr("class","a-Notification-list htmldbUlErr").markup(">");for(let e=0;e<o.length;e++){let a=o[e],t=a.pageItem||a.regionStaticId;if(s.markup("<li").attr("class","a-Notification-item htmldbStdErr").markup(">"),t&&s.markup("<a").attr("href","#").optionalAttr("data-region",a.regionStaticId).optionalAttr("data-instance",a.instance).optionalAttr("data-record",a.recordId).optionalAttr("data-column",a.columnName).optionalAttr("data-for",a.pageItem).attr("class","a-Notification-link").markup(">"),void 0===a.unsafe||a.unsafe?s.content(a.message):s.markup(a.message),t&&s.markup("</a>"),a.techInfo){let e,t=i.getMessage("APEX.ERROR.TECHNICAL_INFO");s.markup("<button class='a-Button a-Button--notification js-showDetails' tabindex='-1' type='button'").attr("aria-label",t).attr("title",t).markup("><span class='a-Icon icon-info' aria-hidden='true'></span></button>"),s.markup("<div class='a-Notification-details' style='display:none'><h2>").content(t).markup("</h2><ul class='error_technical_info'>");for(let t=0;t<a.techInfo.length;t++)e=a.techInfo[t],s.markup("<li><span class='a-Notification-detailName'>").content(e.name+": ").markup("</span>"),e.usePre&&s.markup("<br>"),s.markup("<span").attr("class","a-Notification-detailValue"+(e.usePre?" a-Notification--pre":"")).markup(">").content(e.value).markup("</span></li>");s.markup("</ul></div>")}s.markup("</li>")}s.markup("</ul>"),s.markup("</div>"),c.placeholders={MESSAGE:s.toString(),CLOSE_NOTIFICATION:i.getMessage("APEX.CLOSE_NOTIFICATION"),ERROR_MESSAGE_HEADING:i.getMessage("APEX.ERROR_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""},u.html(t.applyTemplate(u.html(),c)),r.beforeShow&&(d=r.beforeShow(e.TYPE.ERROR,u));(void 0===d||d)&&u.removeClass("u-hidden").addClass("u-visible")}(f),g.removeClass("u-visible").addClass("u-hidden")},e.clearErrors=function(t){var i,o,n,s,c=!0,d=a("#APEX_ERROR_MESSAGE");function u(e){var a=f(e),t=a.attr("data-old-aria-describedby");t?a.attr("aria-describedby",t).removeAttr("aria-invalid data-old-aria-describedby").removeClass("apex-page-item-error"):a.removeAttr("aria-invalid aria-describedby").removeClass("apex-page-item-error")}if(t)u(t),n=a("#"+t+"_error_placeholder.a-Form-error");else{for(i=0;i<l.length;i++)s="string"==typeof(o=l[i]).location?[o.location]:o.location,a.inArray("inline",s)>-1&&o.pageItem&&u(o.pageItem);n=a("span.a-Form-error"),r.beforeHide&&(c=r.beforeHide(e.TYPE.ERROR,d)),(void 0===c||c)&&d.removeClass("u-visible").addClass("u-hidden").html("")}n.html("").removeClass("u-visible").addClass("u-hidden"),l=[]},e.showPageSuccess=function(o){var l=!0,s=a("#APEX_SUCCESS_MESSAGE"),c={placeholders:{SUCCESS_MESSAGE:o,CLOSE_NOTIFICATION:i.getMessage("APEX.CLOSE_NOTIFICATION"),SUCCESS_MESSAGE_HEADING:i.getMessage("APEX.SUCCESS_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""}};e.clearErrors(),s.html(t.applyTemplate(n[s.data("template-id")],c)),r.beforeShow&&(l=r.beforeShow(e.TYPE.SUCCESS,s)),(void 0===l||l)&&s.removeClass("u-hidden").addClass("u-visible")},e.hidePageSuccess=function(){var t=!0,i=a("#APEX_SUCCESS_MESSAGE");r.beforeHide&&(t=r.beforeHide(e.TYPE.SUCCESS,i)),(void 0===t||t)&&i.removeClass("u-visible").addClass("u-hidden")},e.confirm=function(e,a){setTimeout((function(){p(""+e,{confirm:!0,modern:!0,callback:a})}),0)},e.alert=function(e,a){setTimeout((function(){p(""+e,{modern:!0,callback:a})}),0)},e.addVisibilityCheck=function(e){s.push(e)};var c=[],d=null,u=null;function p(e,n){var l,s,r,p,f,m,g,E,h,S,v,b,C,A=!1,k=apex.navigation,_=t.getTopApex().jQuery,I=_("body"),y=null,T=[];return(n=a.extend({id:null,isPopup:!1,noOverlay:!1,draggable:!0,resizable:!1,notification:!0,dialogClass:"ui-dialog--notification",okButton:!0,okButtonClass:"ui-button--hot",okLabel:null,okLabelKey:"APEX.DIALOG.OK",cancelLabel:null,cancelLabelKey:"APEX.DIALOG.CANCEL",confirm:!1,defaultButton:!1,title:"",unsafe:!0,modern:!1,style:null,iconClass:null},n)).title&&(n.dialogClass+=" ui-dialog--hasTitle"),n.modern&&(n.dialogClass+=" ui-dialog--modern",["information","warning","danger","success"].includes(n.style)?(n.dialogClass+=" ui-dialog--"+("information"===n.style?"info":n.style),n.okButtonClass="danger"===n.style?"ui-button--danger":"ui-button--hot",null===n.iconClass&&(n.iconClass="a-Icon")):null!==n.style&&o.error(`"${n.style}" is not a valid style for apex.message.showDialog`)),g=n.isPopup?"popup":"dialog",S=n.parentElement,n.id&&(s=_("#"+t.escapeCSS(n.id))),u=n.returnFocusTo||document.activeElement||null,S&&_!==apex.jQuery&&(E=(S=a(S)).offset(),h=_("iframe").filter((function(){return this.contentWindow===window})).offset(),v=a(window),E.top+=h.top-v.scrollTop(),E.left+=h.left-v.scrollLeft(),A=!0,n.parentElement=_("<div>").css("position","absolute").appendTo(I).outerWidth(S.outerWidth()).outerHeight(S.outerHeight()).offset(E)),s&&s[0]?(A&&s[g]("option","parentElement",n.parentElement),s[g]("open")):(s="string"==typeof e?_("<div>"+(n.unsafe?t.escapeHTML(e).replace(/\r\n|\n/g,"<br>"):e)+"</div>"):"function"==typeof e?_(e()):e,n.modern&&((p=_(`<div>\n                         <div class="a-AlertMessage">\n                             ${n.iconClass?`<div class="a-AlertMessage-icon">\n                                         <span aria-hidden="true" class="${t.escapeHTMLAttr(n.iconClass)}"></span>\n                                 </div>`:""}\n                             <div class="a-AlertMessage-body">\n                                 ${n.title?`<div class="a-AlertMessage-title">${n.unsafe?t.escapeHTML(n.title||""):n.title||""}</div>`:""}\n                                 <div class="a-AlertMessage-details"></div>\n                             </div>\n                         </div>\n                     </div>`)).find(".a-AlertMessage-details").append("string"==typeof e?s.contents():s),s=p),n.id&&s.attr("id",n.id),n.okButton&&T.unshift({class:"js-confirmBtn",text:null!==n.okLabel?n.okLabel:i.getMessage(n.okLabelKey),click:function(){y=!0,s[g]("close")}}),n.confirm&&T.unshift({text:null!==n.cancelLabel?n.cancelLabel:i.getMessage(n.cancelLabelKey),click:function(){y=!1,s[g]("close")}}),n.extraButtons&&n.extraButtons.forEach((function(e){T.unshift(e)})),n.id&&_!==apex.jQuery&&(c.push({dialogId:n.id,widget:g}),d||(d=function(){var e,t;for(e=0;e<c.length;e++)t=c[e],_("#"+t.dialogId)[t.widget]("close").remove();a(window).off("unload",d)},a(window).on("unload",d))),I.append(s),f={closeText:i.getMessage("APEX.DIALOG.CLOSE"),autoOpen:!0,noOverlay:n.noOverlay,modal:!0,classes:{"ui-dialog":n.dialogClass},parentElement:n.isPopup?n.parentElement:void 0,title:n.modern?"":n.title,closeOnEscape:!0,create:function(){l=_(this).closest(".ui-dialog"),m=l.find(".js-confirmBtn"),r=l.find("button.ui-dialog-titlebar-close"),l.css("position","fixed").attr("role",n.notification?"alertdialog":"dialog"),n.init&&n.init(s),n.okButtonClass&&m.addClass(n.okButtonClass),n.modern?(b=l.attr("aria-labelledby"),C=l.attr("aria-describedby"),l.find("#"+t.escapeCSS(b)).remove(),l.find(".a-AlertMessage-title").attr("id",b),l.find("#"+t.escapeCSS(C)).removeAttr("id"),l.find(".a-AlertMessage-details").attr("id",C),r.remove()):r.contents().filter((e,a)=>a.nodeType===Node.TEXT_NODE).remove()},open:function(e){k.beginFreezeScroll(),n.open?n.open(e):m.focus()},close:function(){k.endFreezeScroll(),n.callback&&(null===y&&(y=!1),n.confirm?n.callback(y):n.callback()),A&&s[g]("option","parentElement").remove(),u&&a(u).focus(),n.id||s.remove()},beforeClose:n.beforeClose,resize:n.resize,resizeStop:n.resizeStop,buttons:T},["draggable","resizable","width","height","minWidth","minHeight","maxWidth","maxHeight"].forEach((function(e){void 0!==n[e]&&(f[e]=n[e])})),s[g](f),n.defaultButton&&s.on("keydown",(function(e){13===e.which&&"INPUT"===e.target.nodeName&&(m.click(),e.preventDefault())}))),s}function f(e){var i=apex.item(e);return i.callbacks&&i.callbacks.setFocusTo&&!a("#"+t.escapeCSS(e)).hasClass("rich_text_editor")?a.isFunction(i.callbacks.setFocusTo)?i.callbacks.setFocusTo.call(i):a(i.callbacks.setFocusTo):a("#"+t.escapeCSS(e))}function m(e){var i,o,l,s={},r={},c=t.escapeCSS(e.pageItem)+"_error",d=f(e.pageItem),u=a("#"+t.escapeCSS(e.pageItem)+"_error_placeholder"),p=d.attr("aria-describedby"),m=t.htmlBuilder();u.length||(i=e.pageItem,(l=(o=d).closest("fieldset").parent()).length||(l=o.parent()),u=a("<div id='"+i+"_error_placeholder' data-template-id='FALLBACK_ET' class='u-hidden'></div>").appendTo(l),n.FALLBACK_ET||(n.FALLBACK_ET="<div class='t-Form-error'>#ERROR_MESSAGE#</div>")),m.markup("<div").attr("id",c).markup(">"),void 0===e.unsafe||e.unsafe?m.content(e.message):m.markup(e.message),m.markup("</div>"),r.placeholders={ERROR_MESSAGE:m.toString()},u.html(n[u.data("template-id")]),u.html(t.applyTemplate(u.html(),r)).removeClass("u-hidden").addClass("u-visible"),p?(s["data-old-aria-describedby"]=p,s["aria-describedby"]=c+" "+p):s["aria-describedby"]=c,s["aria-invalid"]=!0,d.addClass("apex-page-item-error").attr(s)}e.showDialog=p,a((function(){a("#APEX_SUCCESS_MESSAGE").on("click",r.closeNotificationSelector,(function(a){e.hidePageSuccess(),a.preventDefault()})),a("#APEX_ERROR_MESSAGE").on("click",r.closeNotificationSelector,(function(e){a("#APEX_ERROR_MESSAGE").removeClass("u-visible").addClass("u-hidden"),e.preventDefault()})).on("click","a.a-Notification-link",(function(e){var t,i,o,n,l=a(this),r={};function c(e){var a;for(a=0;a<s.length;a++)s[a](e)}a.each(["data-region","data-instance","data-record","data-column","data-for"],(function(e,a){var t=a.substr(5),i=l.attr(a);void 0!==i&&(r[t]=i)})),(o=r.for)?(c(o),n=apex.item(o),0===a("#"+o+"_CONTAINER,#"+o+"_DISPLAY,#"+o,apex.gPageContext$).filter(":visible").length&&n.show(),n.setFocus()):r.region&&(c(i=r.region),(t=apex.region(i))&&t.gotoError(r)),e.preventDefault()})).on("click",".js-showDetails",(function(){var e=a(this),t=e.next();p(t,{callback:function(){e.after(t)},dialogClass:"ui-dialog--notificationLarge"})})).on("keydown",".a-Notification-link",(function(e){112===e.which&&e.altKey&&a(this).parent().find(".js-showDetails").click()}))}))}(apex.message,apex.jQuery,apex.util,apex.lang,apex.debug);
apex.storage={},function(e,t){"use strict";var n,o;function r(e,t,n){var o;return e()?((o=Object.create(u)).prefix=i(n),o._store=t,o._re=new RegExp("^"+o.prefix),o.length=s(o._store,o._re)):(o=Object.create(l)).prefix=i(n),o}function i(e){var n=(e.prefix||"")+".";return void 0!==e.useAppId&&null!==e.AppId||(e.useAppId=!0),e.useAppId&&(n+=t("#pFlowId").val()+"."),e.usePageId&&(n+=t("#pFlowStepId").val()+"."),e.regionId&&(n+=e.regionId+"."),n}function s(e,t){var n,o=0;for(n=0;n<e.length;n++)t.test(e.key(n))&&(o+=1);return o}e.getCookieVal=function(e){var t=document.cookie.indexOf(";",e);return-1===t&&(t=document.cookie.length),unescape(document.cookie.substring(e,t))},e.getCookie=function(t){for(var n=t+"=",o=n.length,r=document.cookie.length,i=0;i<r;){var s=i+o;if(document.cookie.substring(i,s)===n)return e.getCookieVal(s);if(0===(i=document.cookie.indexOf(" ",i)+1))break}return null},e.setCookie=function(e,t){var n=arguments,o=arguments.length,r=o>2?n[2]:null,i=o>3?n[3]:null,s=o>4?n[4]:null,u=o>5;document.cookie=e+"="+escape(t)+(null===r?"":"; expires="+r.toGMTString())+(null===i?"":"; path="+i)+(null===s?"":"; domain="+s)+(!0===u||"https:"===window.location.protocol?"; secure":"")},e.hasLocalStorageSupport=(n=null,function(){if(null!==n)return n;try{localStorage.setItem("$test$","$test$"),localStorage.removeItem("$test$"),n=!0}catch(e){n=!1}return n}),e.hasSessionStorageSupport=(o=null,function(){if(null!==o)return o;try{sessionStorage.setItem("$test$","$test$"),sessionStorage.removeItem("$test$"),o=!0}catch(e){o=!1}return o});var u={prefix:"",length:0,key:function(e){var t,n,o=0;if(e<this._store.length)for(t=0;t<this._store.length;t++)if(n=this._store.key(t),this._re.test(n)){if(e===o)return n;o+=1}return null},getItem:function(e){return this._store.getItem(this.prefix+e)},setItem:function(e,t){var n=this.getItem(e);this._store.setItem(this.prefix+e,t),null===n&&(this.length+=1)},removeItem:function(e){var t=this.getItem(e);this._store.removeItem(this.prefix+e),null!==t&&(this.length-=1)},clear:function(){var e,t;for(e=0;e<this._store.length;e++)t=this._store.key(e),this._re.test(t)&&this._store.removeItem(t);this.length=0},sync:function(){this.length=s(this._store,this._re)}},l={prefix:"",length:0,key:function(){return null},getItem:function(){return null},setItem:function(){},removeItem:function(){},clear:function(){}};e.getScopedSessionStorage=function(t){return r(e.hasSessionStorageSupport,window.sessionStorage,t)},e.getScopedLocalStorage=function(t){return r(e.hasLocalStorageSupport,window.localStorage,t)}}(apex.storage,apex.jQuery);
apex.navigation={},function(e,o,i){"use strict";var n=/^#\S*$/;let t;e.redirect=function(e){i("base").length&&e.match(n)?location.hash=e:location.href=e},e.popup=function(e){var o=i.extend({url:"about:blank",name:"_blank",width:600,height:600,scroll:"yes",resizable:"yes",toolbar:"no",location:"no",statusbar:"no",menubar:"no"},e),n=window.open(o.url,"_blank"===(o.name+"").toLowerCase()?o.name:o.name+"_"+apex.env.APP_SESSION,"toolbar="+o.toolbar+",scrollbars="+o.scroll+",location="+o.location+",status="+o.statusbar+",menubar="+o.menubar+",resizable="+o.resizable+",width="+o.width+",height="+o.height);return n&&(null===n.opener&&(n.opener=window.self),n.focus()),n},e.popup.url=function(o){e.popup({url:o,name:"winLov",width:800,height:600})},e.openInNewWindow=function(e,o,i){var n,t,a=!0,l=i&&i.noopener,r=i&&i.altSuffix||null;return void 0===o&&(o="_blank"),"_blank"!==o.toLowerCase()&&(null===r&&(r=apex.env.APP_SESSION),r&&(o+="_"+r),a=!1),void 0===l&&(l=a),i&&!0===i.favorTabbedBrowsing||(t=/msie\s|trident\//i.exec(navigator.userAgent)?"personalbar,menubar,titlebar,toolbar,location,resizable,scrollbars":"personalbar,menubar,titlebar,toolbar,location,status,resizable,scrollbars"),l&&!/msie\s|trident\/|edge\//i.exec(navigator.userAgent)&&(t=t?t+",":"",t+="noopener"),(n=t?window.open(e,o,t):window.open(e,o))&&(n.focus(),l&&(n.opener=null,n=null)),n},e.popup.close=function(e,o){window.opener.$x_Value(e,o),window.close()},o.getTopApex().navigation._gNextDialogId||(o.getTopApex().navigation._gNextDialogId=1),e.dialog=function(n,t,a,l){var r,s,d,c,g,u,f,p={width:500,maxWidth:1500,height:500,closeText:apex.lang.getMessage("APEX.DIALOG.CLOSE"),modal:!0,resizable:!1,scroll:"auto",closeOnEscape:!0,dialog:null,dialogClass:"ui-dialog--apex"},h=i.extend(p,t);t.dialogClass&&(h.dialogClass="ui-dialog--apex "+t.dialogClass),u=h.close,h.close=function(e,n){const t=()=>{s.children("iframe").attr("src",""),o.getTopApex().jQuery(this).dialog("destroy").remove()},a=o.cssDurationToMilliseconds(i(this).css("--js-dialog-close-timing")||"0ms");u&&u(e,n),0===a?t():setTimeout(t,a)},f=h.beforeClose,h.beforeClose=function(e,o){var n=i(this).children("iframe")[0].contentWindow.apex;f&&f(e,o),n&&n.page.cancelWarnOnUnsavedChanges()},a&&(h.dialogClass+=" "+a),r=i(l,apex.gPageContext$),h.modal?null===h.dialog?(d="apex_dialog_"+o.getTopApex().navigation._gNextDialogId,o.getTopApex().navigation._gNextDialogId+=1,(s=o.getTopApex().jQuery('<div id="'+d+'"><iframe src="'+o.escapeHTMLAttr(n)+'"title="'+o.escapeHTMLAttr(h.title)+'" width="100%" height="100%" style="min-width: 95%;height:100%;" scrolling="'+o.escapeHTMLAttr(h.scroll)+'"></iframe></div>')).on("dialogcreate",(function(){i(this).closest(".ui-dialog").css("position","fixed").attr("aria-modal",!0)})).on("dialogopen",(function(){h.modal&&o.getTopApex().navigation.beginFreezeScroll(),s.children("iframe").on("load",(function(){i(this.contentDocument.body).on("keydown",(function(o){if(o.which===i.ui.keyCode.ESCAPE&&h.closeOnEscape&&!o.isDefaultPrevented())e.dialog.fireCloseHandler(s,!1);else if(o.which===i.ui.keyCode.TAB){var n=i(this).find(":tabbable").last(),t=s.closest(".ui-dialog").find(":tabbable").first();o.target!==n[0]||o.shiftKey||(setTimeout((function(){t.focus()}),1),o.preventDefault())}}))})),s.closest(".ui-dialog").find("button.ui-dialog-titlebar-close").off("click").on("click",(function(){e.dialog.fireCloseHandler(s,!1)}))})).on("dialogbeforeclose",(function(){i(this).closest(".ui-dialog").addClass("is-closing")})).on("dialogclose",(function(){h.modal&&o.getTopApex().navigation.endFreezeScroll()})).on("dialogresize",(function(){var e=s.height(),o=s.width();s.closest(".ui-dialog").css("position","fixed"),s.children("iframe").width(o).height(e)})),s.dialog(h),s.closest(".ui-dialog").on("keydown",(function(e){if(e.keyCode===i.ui.keyCode.TAB){var o=i(s.children("iframe")[0].contentDocument.body).find(":tabbable"),n=o.filter(":first"),t=o.filter(":last"),a=i(this).find(":tabbable"),l=a.filter(":first"),r=a.filter(":last");e.target!==r[0]&&e.target!==s[0]||e.shiftKey?e.target!==l[0]&&e.target!==s[0]||!e.shiftKey||(setTimeout((function(){t.focus()}),1),e.preventDefault()):(setTimeout((function(){n.focus()}),1),e.preventDefault())}})),e.dialog.registerCloseHandler({handler$:s,dialog:s,triggeringElement$:r,closeFunction:function(){s.dialog("close")}}),s.on("dialogclose",(function(o){h.closeOnEscape&&o.originalEvent&&"keydown"===o.originalEvent.handleObj.type&&o.originalEvent.keyCode===i.ui.keyCode.ESCAPE&&e.dialog.fireCloseHandler(s,!1)}))):h.dialog.dialog("option","title",h.title).children("iframe").attr("src",n):null===h.dialog?(g=void 0!==r.id&&void 0!==r[0].id&&""!==r[0].id&&r?r[0].id:"winDialog",c=e.popup({url:n,name:g,width:h.width,height:h.height}),e.dialog.registerCloseHandler({handler$:r,dialog:c,triggeringElement$:r,closeFunction:function(){c.close()}})):(h.dialog.location.href=n,h.dialog.resizeTo(h.width,h.height))},e.dialog.close=function(n,t){var a;i.isArray(t)&&(t=function(e){var o,i,n,t={};for(o=0;o<e.length;o++)n=e[o],i=$v(n),t[n]=i;return t.dialogPageId=apex.env.APP_PAGE_ID,t.closeAction="close",t}(t)),n?e.dialog.fireCloseHandler(o.getTopApex().jQuery(".ui-dialog--apex").last().children(".ui-dialog-content"),t):window.opener&&!window.opener.closed&&function(){try{if(window.opener.apex&&window.opener.apex.jQuery)return!0}catch(e){return!1}return!1}()?((a=o.escapeCSS(window.name)).lastIndexOf("_")>0&&(a=a.substring(0,a.lastIndexOf("_"))),void 0===a?window.close():"winDialog"===a?i.isFunction(t)?t.call(this,window):window.close():e.dialog.fireCloseHandler(window.opener.apex.jQuery("#"+a),t)):i.isFunction(t)?t.call(this,window):window.close()},e.dialog.cancel=function(o){e.dialog.close(o,!1)},e.dialog.registerCloseHandler=function(o){o.handler$.off("apexclosedialoginternal").on("apexclosedialoginternal",(function(n,t){var a;i.isFunction(t)?t.call(this,o.dialog,o):"string"===i.type(t)?(a=location.href,e.redirect(t),location.href!==a&&o.closeFunction()):!1===t?(o.closeFunction(),o.triggeringElement$.trigger("apexafterclosecanceldialog",{dialogPageId:apex.env.APP_PAGE_ID,closeAction:"cancel"})):(o.closeFunction(),o.triggeringElement$.trigger("apexafterclosedialog",[t]),o.triggeringElement$.trigger("apexafterclosecanceldialog",[t]))}))},e.dialog.fireCloseHandler=function(e,o){e.trigger("apexclosedialoginternal",o)};var a,l=0,r=function(){i(document.body).css("width",a),i(window).off("apexwindowresized",r)};e.beginFreezeScroll=function(){0===l&&(i(window).on("apexwindowresized",r),a=document.body.style.width,i(document.body).width(i(document.body).width()).addClass("apex-no-scroll")),l+=1},e.endFreezeScroll=function(){(l-=1)<=0&&(r(),i(document.body).removeClass("apex-no-scroll"),l=0)},i("base").length&&i((function(){setTimeout((function(){i(document).on("click","a",(function(e){var o;e.isDefaultPrevented()||(o=i(this).attr("href"))&&(o=o.trim()).match(n)&&(e.preventDefault(),location.hash=o)}))}),0)})),e.download=function(e){t=t||document.createElement("a"),t.download="download",t.href=e,t.click()}}(apex.navigation,apex.util,apex.jQuery);
apex.event={},function(e,g){"use strict";e.gCancelFlag=!1,e.trigger=function(a,n,t){return e.gCancelFlag=!1,g(a,apex.gPageContext$).trigger(n,t),e.gCancelFlag}}(apex.event,apex.jQuery);
apex.server={},function(e,t,n,r,o,a){"use strict";const i=n.hasOwnProperty,s=n.objectEntries,l=Array.isArray,p=e=>"function"==typeof e,c=t.extend,f=/\r?\n/g,u=/^(?:submit|button|image|reset|file)$/i,d=/^(?:input|select|textarea|keygen)/i,g=/^(?:checkbox|radio)$/i;function _(e){return"string"==typeof e?e.replace(f,"\r\n"):e}t.ajaxSettings.traditional=!0,t.ajaxPrefilter("script",(function(e){e.cache=!0})),e.plugin=function(e,t,n){let r=null;return"string"==typeof e?r="PLUGIN="+e:(n=t,t=e),y(r,t,n)},e.pluginUrl=function(t,n){return e.url(c({},n,{p_request:"PLUGIN="+t}))},e.ajaxUrl=function(e,t){let r,o,i,p;function f(e,t){if(l(t))for(let n=0;n<t.length;n++)r=r+"&"+e+"="+encodeURIComponent(t[n]);else r=r+"&"+e+"="+encodeURIComponent(t)}r="wwv_flow.ajax?p_flow_id="+a.APP_ID+"&p_flow_step_id="+a.APP_PAGE_ID+"&p_instance="+a.APP_SESSION+"&p_debug="+$v("pdebug"),t||(t={}),p={};for(const[t,n]of s(e))if(o=t.toLowerCase(),I(o))p[t]=null!==n&&"object"==typeof n?c(!0,l(n)?[]:{},n):n;else if(l(n))for(let r=0;r<e[t].length;r++)f(t,m(_(n[r]+"")));else f(t,m(_(n+"")));return t.target&&(i=apex.region.findClosest(t.target),i&&b(i,p)),w(p.pageItems,p),f("p_json",m(_(JSON.stringify(p)))),r=r+"&"+n.getContextString(),r},e.url=function(e,r){let o,i,p=r;null==p&&(p=a.APP_PAGE_ID),o="wwv_flow.show?p_flow_id="+a.APP_ID+"&p_flow_step_id="+p+"&p_instance="+a.APP_SESSION+"&p_debug="+$v("pdebug");for(const[n,r]of s(e))if("pageItems"===n)if(l(e.pageItems))for(let t=0;t<e.pageItems.length;t++)i=$x(e.pageItems[t]),i&&(o=o+"&p_arg_names="+encodeURIComponent(i.id)+"&p_arg_values="+encodeURIComponent($v(i)));else t(e.pageItems,apex.gPageContext$).each((function(){o=o+"&p_arg_names="+encodeURIComponent(this.id)+"&p_arg_values="+encodeURIComponent($v(this))}));else o=o+"&"+n+"="+encodeURIComponent(r);return o=o+"&"+n.getContextString(),o},e.process=function(e,t,n){return y("APPLICATION_PROCESS="+e,t,n)};function m(e){let t,n;if(e.length>8e3){for(n=[],t=0;t<e.length;)n.push(e.substr(t,8e3)),t+=8e3;return n}return e}e.chunk=m,e.loadScript=function(e,n){var r,o,a,i,s={};return e.requirejs&&"function"==typeof define&&define.amd?(r=e.path,o=e.global,i=(a=r.substring(0,r.length-3)).replace(/^.*[\\/]/,""),requirejs.s.contexts._.config.paths[i]&&(i+=t.guid,t.guid+=1),s[i]=a,requirejs.config({paths:s}),require([i],(function(e){"string"==typeof o&&(window[o]=e),"function"==typeof n&&n()}))):t.getScript(e.path,n)};const h={p_flow_id:1,p_flow_step_id:1,p_instance:1,p_debug:1,p_trace:1,p_page_submission_id:1,p_request:1,p_reload_on_submit:1,fmap:1,fhdr:1,fcud:1,fcs:1,frowid:1};for(let e=1;e<=20;e++)h["x"+(e<10?"0"+e:e)]=1;for(let e=1;e<=50;e++)h["f"+(e<10?"0"+e:e)]=1,h["f"+(e<10?"0"+e:e)+"_NOSUBMIT"]=1;for(let e=1;e<=10;e++)h["p_ignore_"+(e<10?"0"+e:e)]=1;function I(e){return!h[e.toLowerCase()]}function b(e,n){let r,o,a,i;if(o=n.pageItems,l(o)||(o=[],t(n.pageItems,apex.gPageContext$).each((function(){this.id&&o.push(this.id)}))),i=e.getSessionState(o),i)if(n.pageItems=i.pageItems,n.regions){for(r=0;r<n.regions.length;r++)if(a=n.regions[r],a.id===i.region.id){n.regions[r]=c(a,i.region);break}r>=n.regions.length&&n.regions.push(i.region)}else n.regions=[i.region];return i}function w(e,r,o){var a,i,s=[],p=1;if(o&&t("form#wwvFlowForm").triggerHandler("submit"),r.salt=$v("pSalt"),e){a=[];try{i=JSON.parse($v("pPageFormRegionChecksums"))}catch(e){i=[]}r.pageItems={itemsToSubmit:a,protected:$v("pPageItemsProtected"),rowVersion:$v("pPageItemsRowVersion"),formRegionChecksums:i},l(e)&&(e=e.map((function(e){return"#"+n.escapeCSS(e)})).join(",")),t(e,apex.gPageContext$).each((function(){let e,r,i,c,_=this.id,m=t(this);if(I(_)){if(r=apex.item(_),e=t('input[data-for="'+n.escapeCSS(_)+'"]').val(),c=r.node&&r.isDisabled()&&!e&&o?"":m.attr("name")===_||r.element.data("apexitem")||!1!==r.item_type&&!o?r.getValue(_):function(e){let n=[];return t("[name='"+e+"']").filter((function(){let e=this.type;return!this.disabled&&d.test(this.nodeName)&&!u.test(e)&&(this.checked||!g.test(e))})).each((function(){n.push(t(this).val())})),0===n.length?n="":1===n.length&&(n=n[0]),n}(_),l(c))for(let e=0;e<c.length;e++)c[e]=c[e].replace(f,"\r\n");else c=c.replace(f,"\r\n");i={n:_,v:c},l(c)&&r.getSeparator()&&(i.s=r.getSeparator()),"INPUT"===this.nodeName&&"file"===this.type&&this.name&&this.files.length>0&&(s.push(this),i.fileIndex=p,i.fileCount=this.files.length,p+=this.files.length),e&&(i.ck=e),a.push(i)}}))}return s}e.isValidPageItemName=I,e.addPageItemsToRequest=w,e.accept=function(e,n){let r=t.Deferred();return n.fullPage=!0,A(null,e,n,r),r.promise()},e.widget=function(e,n,r){let o=t.Deferred();return(n=n||{}).p_widget_name=e,A("APXWGT",n,r,o),o.promise()};let P=null,v=null,x=[],S={},j=0;function y(e,n,r){var o,a,i,s,l=t.Deferred();return r&&r.queue?(o=r.queue.name,a=r.queue.action,delete r.queue,function(e,t,n,r,o,a,i){var s,l,p,c;function f(e){var t=S[e];return t||(t=S[e]=[]),t}if("lazyWrite"===t){if(p=function(e,t){for(let n=0;n<e.length;n++)if(e[n].name===t)return e[n];return null}(x,e))return p.deferred.reject({status:0},"superseded",null),p.request=n,p.data=r,p.options=o,p.call=a,void(p.deferred=i);if(x.push({name:e,request:n,data:r,options:o,call:a,deferred:i}),P)return;l=null===v||(l=v+5e3-(new Date).getTime())<0?10:l,P=setTimeout((function(){let e;for(P=null,v=(new Date).getTime();x.length>0;)e=x.shift(),e.call(e.request,e.data,e.options,e.deferred)}),l)}else{if(s=f(e),"replace"===t&&s.length>=1)for((c=s.shift()).jqXHR?c.jqXHR.abort():c.deferred.reject({status:0},"superseded",null);s.length>0;)(c=s.shift()).deferred.reject({status:0},"superseded",null);s.push({request:n,data:r,options:o,call:a,deferred:i}),1===s.length&&function e(t){var n,r,o=f(t);o.length>=1&&(r=(n=o[0]).deferred.promise(),n.jqXHR=n.call(n.request,n.data,n.options,n.deferred),r.then((function(){o.shift(),setTimeout((function(){e(t)}),0)}),(function(){setTimeout((function(){var e,t;for(e=1;e<o.length;e++)(t=o[e]).options.error&&t.options.error({status:0},"abort",null),t.deferred.reject({status:0},"abort",null),t.options.complete&&t.options.complete({status:0},"abort");o.length=0}),0)})))}(e)}}(o,a,e,n,r,A,l)):i=A(e,n,r,l),(s=l.promise()).abort=function(){i&&i.abort()},s}const C={p_flow_id:1,p_flow_step_id:1,p_instance:1,p_trace:1,fcs:1,fmap:1,fhdr:1,fcud:1,frowid:1,p_clob_01:1,p_widget_name:1,p_widget_mod:1,p_widget_action:1,p_widget_action_mod:1,p_widget_num_return:1,p_widget_view_mode:1,p_fsp_region_id:1,p_clear_cache:1,p_pg_min_row:1,p_pg_max_rows:1,p_pg_rows_fetched:1};function A(e,r,f,u){var d,g,h,I,P,v,x,S,y,A,D,E,$,q,N=null,T={dataType:"json",type:"post",async:!0,url:"wwv_flow.ajax?"+n.getContextString(),traditional:!0},k={p_flow_id:a.APP_ID,p_flow_step_id:a.APP_PAGE_ID,p_instance:a.APP_SESSION,p_debug:$v("pdebug")},U=t();function L(e,t,n){let r,o=t[n];if("string"!=typeof o&&null!==o.length&&void 0!==o.length)for(r=0;r<o.length;r++)e.append(n,o[r]);else e.append(n,o)}e&&(k.p_request=e),f||(f={}),["accepts","dataType","beforeSend","contents","converters","dataFilter","headers","complete","statusCode","async"].forEach((function(e){i(f,e)&&(T[e]=f[e])})),I=f.success,P=f.error,$=f.loadingIndicatorPosition||"after",f.fullPage&&(k.p_request=$v("pRequest"),k.p_reload_on_submit=$v("pReloadOnSubmit"),k.p_page_submission_id=$v("pPageSubmissionId"),T.url="wwv_flow.accept?"+n.getContextString()),A={};for(const[e,t]of s(r))if(x=e.toLowerCase(),/f[0-5][0-9]/.exec(x))if(l(t))for(k[e]=[],d=0;d<t.length;d++)k[e][d]=_(t[d]);else k[e]=m(_(t+""));else/x[0-2][0-9]/.exec(x)||C[x]?k[e]=_(t):A[e]=null!==t&&"object"==typeof t?c(!0,l(t)?[]:{},t):t;if(f.target&&(S=apex.region.findClosest(f.target))&&(y=b(S,A)),q=w(A.pageItems,A,f.fullPage),A.p_arg_names&&A.p_arg_values&&A.p_arg_names.length===A.p_arg_values.length)for(A.pageItems&&A.pageItems.itemsToSubmit||(A.pageItems={itemsToSubmit:[],protected:$v("pPageItemsProtected"),rowVersion:$v("pPageItemsRowVersion")}),v=A.pageItems.itemsToSubmit,d=0;d<A.p_arg_names.length;d++)v.push({n:A.p_arg_names[d],v:A.p_arg_values[d]});for(delete A.p_arg_names,delete A.p_arg_values,k.p_json=m(JSON.stringify(A)),k.p_files=[],d=0;d<q.length;d++)for(g=0;g<q[d].files.length;g++)k.p_files.push(q[d].files[g]);if(q.length>0){h=new FormData,T.enctype="multipart/form-data",T.processData=!1,T.contentType=!1,L(h,k,"p_json");for(const e of Object.keys(k))"p_json"!==e&&L(h,k,e);T.data=h}else T.data=k;return apex.event.trigger(f.refreshObject,"apexbeforerefresh",f.refreshObjectData)?(u.reject({status:0},"cancel",null),null):(p(f.clear)&&f.clear(),(f.loadingIndicator||"page"===$)&&(D=t('<span class="u-Processing u-Processing--inline"><span class="u-Processing-spinner"></span></span>'),j+=1,N="_call"+j,n.delayLinger.start(N,(function(){"page"===$?(E=n.showSpinner(),U=U.add(E)):p(f.loadingIndicator)?U=f.loadingIndicator(D):t(f.loadingIndicator).each((function(){var e=null,r=t(this,apex.gPageContext$),o=apex.item(this);E=D.clone(),S&&S.alternateLoadingIndicator&&(e=S.alternateLoadingIndicator(this,E)),e?E=e:void 0!==o.loadingIndicator?E=o.loadingIndicator(E):"before"===$?E=E.insertBefore(r.filter(":not(:hidden)")):"after"===$?E=E.insertAfter(r.filter(":not(:hidden)")):"prepend"===$?E=E.prependTo(r):"append"===$?E=E.appendTo(r):"centered"===$&&(E=n.showSpinner(r)),U=U.add(E)}))}))),T.error=function(e,t,n){!function(e,t,n,r){let a,i=!1;R(r.loadingIndicator,r.progressScopeName),O(e),p(r.callback)?i=r.callback(e,t,n):0!==e.status&&(a="APEX"===t?n:"Error: "+n,o.clearErrors(),o.showErrors({message:a,location:"page"}));r.deferred.reject(e,t,n)}(e,t,n,{deferred:u,callback:P,loadingIndicator:U,progressScopeName:N})},T.success=function(e,t,n){!function(e,t,n,r){let o=!0,a=n.getResponseHeader("APEX-ERROR");if(e){if(e.error)return e.pageSubmissionId&&$s("pPageSubmissionId",e.pageSubmissionId),r.errorCallback(n,"APEX",e.error);if(a)return r.errorCallback(n,"APEX",decodeURIComponent(a))}O(n),R(r.loadingIndicator,r.progressScopeName),p(r.callback)&&(o=r.callback(e,t,n));r.deferred.resolve(e,t,n),(o||null==o)&&apex.event.trigger(r.refreshObject,"apexafterrefresh",r.refreshObjectData)&&(o=!1)}(e,t,n,{deferred:u,callback:I,errorCallback:T.error,loadingIndicator:U,progressScopeName:N,refreshObject:f.refreshObject,refreshObjectData:f.refreshObjectData})},y&&y.beforeAsync&&y.afterAsync&&(y.beforeAsync(),u.always((function(){y.afterAsync()}))),t.ajax(T))}function R(e,r){function o(){p(e)?e():t(e,apex.gPageContext$).remove()}r?n.delayLinger.finish(r,(function(){o()})):o()}function O(e){var o,a,i,s,l,p,c=e.getResponseHeader("APEX-DEBUG-ID");c&&(i=(p=n.getTopApex()._dtGetBuilderInstance)&&p(),(a=c.match(/(\d+),level=(.+)/))?(o={ERROR:r.error,WARN:r.warn}[a[2]]||r.log,s="Server debug log message written: View Identifier = "+a[1]+", Level = "+a[2]+".",i&&((l=t("base").prop("baseURI"))||(l=window.location.pathname,l=window.location.origin+l.substr(0,l.lastIndexOf("/"))+"/"),s+=" "+l+"f?p=4000:939:"+i+"::NO:939:P939_PAGE_VIEW_ID:"+a[1]+"#"),o(s)):r.log("APEX-Debug-ID: "+c))}}(apex.server,apex.jQuery,apex.util,apex.debug,apex.message,apex.env);
apex.page={},function(e,t,n,a,i,o,r){"use strict";e.loadingDeferreds=[];var s=!1,l=!1,d=null,c=null;const p=/^(x[0-2][0-9]|f[0-5][0-9]|fcs|fmap|fhdr|fcud|frowid)$/i,u=/^(f[0-5][0-9]|fcs|fmap|fhdr|fcud|frowid)$/i,g=/^x[0-2][0-9]$/i;o.hasOwnProperty;function m(e,n){var a,i,o={};switch("SUBMIT"===n?a=null:"CONFIRM"===n&&(a="Delete"),i={request:a,set:null,showWait:!1,waitMsg:null,form:"wwv_flow",reloadOnSubmit:null,ignoreChange:!0,validate:!1},typeof e){case"string":o=t.extend(i,{request:e});break;case"object":o=t.extend(i,e);break;default:o=i}return o}function f(e,t){var n=i.isValidPageItemName(e);return n&&"radio"===t&&!document.getElementById(e)&&(n=!1),n}function h(e,n,a){var i={};t(e[0].elements).each((function(){var e=this.name,t=this.type;if("BUTTON"!==this.nodeName&&"button"!==t&&"submit"!==t&&"reset"!==t&&e&&(a||!i[e]))return f(e,t)?(i[e]=1,n(this,e,t)):void 0}))}t((function(){t("#wwvFlowForm").on("submit",(function(){if(!l)return e.submit(),!1}))})),e.forEachPageItem=h,e.submit=function(d){var c,b,x,v,w,I=!0,C=m(d,"SUBMIT");return void 0!==C.submitIfEnter&&13!==(window.event?window.event.keyCode:C.submitIfEnter.which)||(n.trigger(apex.gPageContext$,"apexbeforepagesubmit",C.request)?n.gCancelFlag=!1:(C.showWait&&(b=apex.widget.waitPopup()),C.set&&t.each(C.set,(function(e,t){e&&void 0!==t&&$s(e,t)})),v=t("form[name="+C.form+"]",apex.gPageContext$),C.reloadOnSubmit&&$s("pReloadOnSubmit",C.reloadOnSubmit),c=$v("pReloadOnSubmit"),t("#pRequest",apex.gPageContext$).val(C.request),x=0,(w=function(){var d,m,y,E,T,S,P,k,N;0===v.attr("action").indexOf("wwv_flow.accept")&&0===t("#pPageItemsProtected",apex.gPageContext$).length?(x+=1)>5?(b&&b.remove(),a.alert(r.getMessage("APEX.WAIT_UNTIL_PAGE_LOADED"))):(void 0===b&&1===x&&(b=apex.widget.waitPopup()),setTimeout(w,300)):(C.validate&&(e.validate(["inline","page"],v)||(I=!1)),I&&(n.trigger(apex.gPageContext$,"apexpagesubmit",C.request),"S"===c?(d=v,m=b,y=C.ignoreChange,S=[],P={},k={},N=apex.model,t(d[0].elements).each((function(){var e=this,n=e.name,a=e.nodeName,i=e.type;if("BUTTON"!==a&&"button"!==i&&"submit"!==i&&"reset"!==i&&n){if(g.test(n)){if(e.disabled||"INPUT"===a&&("checkbox"===i||"radio"===i)&&!e.checked)return;P[n]=t(e).val()}if(u.test(n)){if(e.disabled||"INPUT"===a&&("checkbox"===i||"radio"===i)&&!e.checked)return;P[n]||(P[n]=[]),P[n].push(t(e).val())}f(n,i)&&S.push(n)}})),S.length&&(P.pageItems=S),N&&(T=N.addChangesToSaveRequest(P)),m||(k.loadingIndicatorPosition="page"),s=y,l=!0,E=i.accept(P,k),l=!1,T&&T(E),E.done((function(e){e.errors?(e.pageSubmissionId&&$s("pPageSubmissionId",e.pageSubmissionId),m&&(m.remove(),m=null),a.clearErrors(),a.showErrors(e.errors),s=!1):e.redirectURL?(apex.navigation.redirect(e.redirectURL),m=null):s=!1})).fail((function(){s=!1})).always((function(){m&&m.remove()}))):"A"===c?function(e,n){var a,r,d=[],c=[],u={};for(h(e,(function(e,t){d.push(t),c.push(e)}),!0),l=!0,r=i.addPageItemsToRequest(d,u,!0),t(e[0].elements).each((function(){let e=this,t=e.name;!t||"INPUT"!==e.nodeName||"radio"!==e.type||p.test(t)||d.includes(t)||(d.push(t),c.push(e))})),a=0;a<c.length;a++)t(c[a]).removeAttr("name");for(a=0;a<r.length;a++)t(r[a]).attr("name","p_files");for(u=i.chunk(JSON.stringify(u)),t.isArray(u)||(u=[u]),a=u.length-1;a>=0;a--)e.prepend("<input type='hidden' name='p_json' value='"+o.escapeHTML(u[a])+"'>");for(s=n,e.trigger("submit"),l=!1,a=0;a<c.length;a++)t(c[a]).attr("name",d[a]);t("input[name='p_json']").remove()}(v,C.ignoreChange):(l=!0,v.trigger("submit"),l=!1)))})()),void 0===C.submitIfEnter&&void 0)},e.confirm=function(t,n){var i,o=m(n,"CONFIRM");i=t||"Would you like to perform this delete action?",a.confirm(i,(function(t){t&&e.submit(o)}))},e.validatePageItemsOnBlur=function(){t(t("#wwvFlowForm")[0].elements).each((function(){var e=this,n=e.name,i=e.type;"BUTTON"!==e.nodeName&&"button"!==i&&"submit"!==i&&"reset"!==i&&n&&f(n,i)&&0===t(e).closest(".js-ignoreChange").length&&t(e).on("blur.apexValidate",(function(){var t,n=[];e.disabled||((t=apex.item(e)).getValidity().valid?a.clearErrors(t.id):(n.push({message:t.getValidationMessage(),location:"inline",pageItem:t.id}),a.showErrors(n)))}))}))},e.validate=function(e=["inline","page"],n=t("#wwvFlowForm")){var i=!0,r=[],s=apex.model;if(a.clearErrors(),h(n,(function(t,n){var a;(a=apex.item(n)).isDisabled()||a.getValidity().valid||(i=!1,r.push({message:a.getValidationMessage(),location:e,pageItem:a.id}))})),s){s.anyErrors()&&(i=!1,s.list().forEach(t=>{let n=s.get(t),a=n.getErrors();if(a)for(let t=0;t<a.length;t++){let i=a[t];for(const[t,a]of o.objectEntries(i.fields))a.error&&a.message&&r.push({message:a.message,location:e,regionStaticId:n.getOption("regionStaticId"),recordId:i.originalId||n.getRecordId(i.record),columnName:t})}s.release(t)}))}return i||a.showErrors(r),i},e.isChanged=function(){var e=!1,n=apex.model;return n&&(e=n.anyChanges()),e||h(t("#wwvFlowForm"),(function(n,a){if(!n.disabled)return 0===t(n).closest(".js-ignoreChange").length&&apex.item(a).isChanged()?(e=!0,!1):void 0})),!e&&d&&(e=d()),e},e.warnOnUnsavedChanges=function(n,a){a&&(d=a),t(window).off(".apexpageunload"),n||(n=r.getMessage("APEX.WARN_ON_UNSAVED_CHANGES")),c=n,t("button.js-ignoreChange").each((function(){var n=t(this),a=n.prop("onclick");a&&n.removeAttr("onclick").on("click",(function(){e.cancelWarnOnUnsavedChanges(),a()}))})),t("a.js-ignoreChange").on("click.apexpageunload",(function(){e.cancelWarnOnUnsavedChanges()})),t(window).on("beforeunload.apexpageunload",(function(){if(!s&&e.isChanged())return c}))},e.cancelWarnOnUnsavedChanges=function(){c=null,t(window).off("beforeunload.apexpageunload")},apex.submit=e.submit,apex.confirm=e.confirm,e.init=function(e,a){if(t.isFunction(a)&&a.call(e),"undefined"!=typeof Hammer){Hammer.defaults.cssProps&&delete Hammer.defaults.cssProps.userSelect;const e=(e,a)=>{t(e).each((e,t)=>{let i=new Hammer(t);const o=(e,t)=>{a===e&&i.on(t,(function(e){n.trigger(e.target,a,e)}))};o("apextap","tap"),o("apexdoubletap","doubletap"),o("apexpress","press"),o("apexpan","pan"),o("apexswipe","swipe")})};if(apex.da.gEventList){apex.da.gEventList.filter(e=>["apextap","apexdoubletap","apexpress","apexpan","apexswipe"].includes(e.bindEventType)).forEach(t=>{let n=apex.da.constructSelector({elementType:t.triggeringElementType,element:t.triggeringElement,regionId:t.triggeringRegionId,buttonId:t.triggeringButtonId});e(n,t.bindEventType)})}e(".a-Region-carouselItems","apexswipe")}},e.configureButtonForConfirmation=e=>{var n=t.extend({buttonId:"",okLabel:"",message:"",style:null,callback:()=>{}},e),i=t("#"+o.escapeCSS(n.buttonId)),r=!1;i.on("click",e=>{r?r=!1:(e.stopImmediatePropagation(),e.preventDefault(),a.showDialog(o.applyTemplate(n.message),{confirm:!0,okLabel:n.okLabel,unsafe:!1,modern:!0,style:n.style,callback:e=>{e&&(n.callback(),r=!0,i.trigger("click"))}}))})},e.configureBottomButton=e=>{const n=t.extend({topId:"",bottomId:""},e),a=t("#"+o.escapeCSS(n.bottomId)),i=apex.item(n.bottomId),r=t("#"+o.escapeCSS(n.topId)),s=t("#"+o.escapeCSS(n.topId+"_CONTAINER"));a.on("click",()=>{r.trigger("click")}),r.on({apexafterdisable:()=>{i.disable()},apexafterenable:()=>{i.enable()}}),r.add(s).on({apexafterhide:()=>{i.hide()},apexaftershow:()=>{i.show()}})},e.bindTemplates=function(e){e||(e=t(document)),e.find(".js-bindContent .js-bindContent").each((function(){apex.debug.error("Nested template content bindings not allowed."),t(this).attr("class","")})),e.find(".js-bindContent").each((function(){var e,n,a,i="",r="",s=!1,l=t("body"),d=t(this),c="false"!==(d.attr("data-bind-immediate")||"false").toLowerCase(),p=d.html().replace(/~~/g,"&").replace(/&/g,"&");function u(){var e,a=apex.util.applyTemplate(p),i=document.activeElement;t(i).closest(n).length&&(e=i.id),n.html(a),e&&t("#"+e).focus()}var g=o.debounce(u,150);if(d.next().length||d.prev().length)n=d,s=!0;else{for(n=d.parent(),a=d[0].previousSibling;a&&3===a.nodeType;)a.textContent.trim()&&(p=a.textContent+p),a=a.previousSibling;for(a=d[0].nextSibling;a&&3===a.nodeType;)a.textContent.trim()&&(p+=a.textContent),a=a.nextSibling}(e=(e=d.attr("data-bind-depends"))?e.split(/,\s*/):o.extractTemplateDependencies(p)).length>0&&(e.forEach((function(e){var t,n=apex.item(e);n.node&&(i.length>0&&(i+=","),i+="#"+e,t=n.node.type,(c&&"text"===t||"textarea"===t)&&(r.length>0&&(r+=","),r+="#"+e))})),l.on("change",i,g),r&&l.on("keyup",r,g)),u(),s&&n.attr("class","").removeAttr("data-bind-immediate").removeAttr("data-bind-depends")})),e.find(".js-bindClass").each((function(){var e,n="",a=t(this),i=a.removeClass("js-bindClass").attr("class").replace(/~~/g,"&");function r(){var e=apex.util.applyTemplate(i);a.attr("class",e)}var s=o.debounce(r,150);(e=o.extractTemplateDependencies(i)).length>0&&(e.forEach((function(e){apex.item(e).node&&(n.length>0&&(n+=","),n+="#"+e)})),t("body").on("change",n,s)),r()}))},t((function(){setTimeout((function(){e.bindTemplates()}),0)}))}(apex.page,apex.jQuery,apex.event,apex.message,apex.server,apex.util,apex.lang);
!function(e,t){"use strict";function n(e,t){return e.split(/\s+/).map(e=>{let n,i=e,r=i.indexOf(".");return r>=0&&(n=i.substring(r),i=i.substring(0,r)),void 0!==t.options[i]&&(i=t.widgetEventPrefix+i.toLowerCase()),n&&(i+=n),i}).join(" ")}const i={element:null,parentRegionId:null,type:"generic",widgetName:null,refresh:function(){this.element.trigger("apexrefresh")},focus:function(){this.element.find(":tabbable").first().focus()},widget:function(){return null},call:function(...e){let t=this.widget();if(this.widgetName&&t)return t[this.widgetName](...e);throw new Error("Call not supported.")},on:function(e,...t){let i=this.widget();if(!this.widgetName||!i)throw new Error("On not supported.");e=n(e,i[this.widgetName]("instance")),i.on(e,...t)},off:function(e,...t){let i=this.widget();if(!this.widgetName||!i)throw new Error("Off not supported.");e=n(e,i[this.widgetName]("instance")),i.off(e,...t)},gotoError:function(){},getSessionState:function(){return null},getParentItems:function(){let e,t,n,i,r,o;if(this.parentRegionId&&(e=apex.region(this.parentRegionId),e)){switch(this.type){case"InteractiveGrid":i=this.widget().interactiveGrid("getCurrentView").modelColumns,r=this.widget().interactiveGrid("option").config.modelInstanceId}switch(e.type){case"InteractiveGrid":t=e.widget().interactiveGrid("getCurrentView").model}if(t&&(o={values:[]},n=t.getRecord(r),n))for(let e in i)i[e].parentField&&o.values.push({n:i[e].parentField,v:t.getValue(n,i[e].parentField)})}return o}};function r(e){return t("#"+apex.util.escapeCSS(e),apex.gPageContext$)}apex.region=function(e){let n=null,o=r(e);return o.length&&(n=o.data("apexregion"),n||(n=t.extend({},i),n.element=o)),n},apex.region.create=function(e,n){const o=r(e);let a;if(!o.length)throw new Error("Region element not found "+e);a=Object.create(i),a.element=o,"function"==typeof n?n(a):t.extend(a,n),o.addClass("js-apex-region"),o.data("apexregion",a),apex.regions[e]=a},apex.region.destroy=function(e){const t=r(e);if(!t.length)throw new Error("Region element not found "+e);t.removeData("apexregion"),delete apex.regions[e]},apex.region.isRegion=function(e){const t=r(e);return!!t.length&&!!t.data("apexregion")},apex.region.findClosest=function(e){let n,i,r=t(e).closest("[data-owning-region]").attr("data-owning-region");return i=r?t("#"+apex.util.escapeCSS(r),apex.gPageContext$):t(e).parent(),n=i.closest(".js-apex-region").prop("id"),n?apex.region(n):null}}(apex.debug,apex.jQuery);
!function(e,t,a,i){"use strict";const s=/^\s*$/,n=a.escapeCSS;function l(e){return"function"==typeof e}function o(e,t){return e&&null!=t&&(t=a.escapeHTML(""+t)),t}function r(e){let t=n(e),a=i('label[for="'+t+'"]');if(!a[0]){let e=i("#"+t);if(t=n(e.attr("aria-labelledby")),!t)return e.attr("aria-label")||"";a=i("#"+t)}return a.clone().children(".u-vh,.u-VisuallyHidden").remove().end().text().trim()}const h={node:!1,element:null,item_type:!1,id:!1,isReady:function(){return!0},reinit:function(e,t){this.setValue(e,t,!0)},getValue:function(){let e,t=!0,a=[];switch(this.item_type){case"RADIO_GROUP":e=i(":checked",this.node),a=0===e.length?"":e.val();break;case"CHECKBOX_GROUP":i(":checked",this.node).each((function(){a.push(this.value)}));break;case"SELECT":a=this.element.val(),null==a&&(a=this.element.attr("multiple")?[]:"");break;default:t=!1}if(!t)switch(this.item_type){case"CHECKBOX":case"RADIO":a=this.node.checked?this.node.value:"";break;case"POPUP_KEY_LOV":a=i("#"+n(this.id)+"_HIDDENVALUE",apex.gPageContext$).val();break;case"TEXT":case"POPUP_LOV":case"HIDDEN":case"DISPLAY_SAVES_STATE":case"TEXTAREA":a=this.node.value;break;case"DISPLAY_ONLY":a=this.node.innerHTML;break;default:a=""}return a},setValue:function(e,t){let a,s,l=null;if(this.node){switch(this.item_type){case"RADIO_GROUP":l=$x_FormItems(this.node,"RADIO");break;case"CHECKBOX_GROUP":l=$x_FormItems(this.node,"CHECKBOX");break;case"POPUP_KEY_LOV":i("#"+n(this.id)+"_HIDDENVALUE",apex.gPageContext$).val(e),this.element.val(t)}if(l)for(let t=0,i=l.length;t<i;t++)a=l[t].value==e,l[t].checked=a;else switch(this.item_type){case"CHECKBOX":case"RADIO":this.node.checked=this.node.value===e;break;case"TEXT":case"POPUP_LOV":case"HIDDEN":case"TEXTAREA":this.element.val(e);break;case"SELECT":this.element.val(e),-1===this.node.selectedIndex&&1===parseInt($nvl(this.element.attr("size"),"1"),10)&&!0!==this.element.prop("multiple")&&this.element.find("option").first().prop("selected",!0);break;case"DISPLAY_SAVES_STATE":this.element.val(e),i(this.display_span,apex.gPageContext$).html(o(this.escape,e));break;case"DISPLAY_ONLY":this.element.html(o(this.escape,e));break;case"FCKEDITOR":s=FCKeditorAPI.GetInstance(this.id),s.SetHTML(e);break;default:this.node.innerHTML=e}}},enable:function(){this.element.removeClass("apex_disabled").prop("disabled",!1).trigger("apexafterenable"),this.afterModify&&this.afterModify()},disable:function(){this.element.addClass("apex_disabled").prop("disabled",!0).trigger("apexafterdisable"),this.afterModify&&this.afterModify()},isDisabled:function(){return!!this.element.prop("disabled")},show:function(e){let t=n(this.id),a=i("#"+t+"_CONTAINER",apex.gPageContext$);a.length>0?a.show().trigger("apexaftershow"):e?$x_ItemRow(this.node,"SHOW"):(l(this._show)?this._show():(a=i("#"+t+"_DISPLAY",apex.gPageContext$),a.length>0?a.show().trigger("apexaftershow"):this.element.show().trigger("apexaftershow")),t&&i("label[for="+t+"]",apex.gPageContext$).show())},hide:function(e){let t=n(this.id),a=i("#"+t+"_CONTAINER",apex.gPageContext$);a.length>0?a.hide().trigger("apexafterhide"):e?$x_ItemRow(this.node,"HIDE"):(l(this._hide)?this._hide():(a=i("#"+t+"_DISPLAY",apex.gPageContext$),a.length>0?a.hide().trigger("apexafterhide"):this.element.hide().trigger("apexafterhide")),t&&i("label[for="+t+"]",apex.gPageContext$).hide())},isEmpty:function(){let e,t,a,n="";return e=this.getValue(),e=Array.isArray(e)?e.join(":"):""+e,t=this.node,this.nullValue?l(this.nullValue)?this.nullValue.call(this):null===e||e===this.nullValue||s.test(e):("SELECT"===this.item_type?(apex.widget&&apex.widget.report&&apex.widget.report.tabular&&apex.widget.report.tabular.gNullValueList&&i.each(apex.widget.report.tabular.gNullValueList,(function(e,a){if(this.name===t.name)return n=a.value,!1})),a=t.multiple?0===e.length||e===n:!(!n&&""!==n)&&e===n):a=null===e||s.test(e),a)},isChanged:function(){let e,t,a,i=!1;function s(){let a=e.length!==t.length;if(!a)for(let i=0;i<t.length;i++)if(e[i]!==t[i]){a=!0;break}return a}switch(this.item_type){case"TEXTAREA":case"TEXT":case"POPUP_LOV":i=this.node.value!==this.node.defaultValue;break;case"SELECT":if(e=this.element.val(),"select-multiple"===this.node.type){e||(e=[]),t=[];for(let e=0;e<this.node.options.length;e++){let a=this.node.options[e];void 0!==a.attributes.selected&&t.push(a.value)}i=s()}else{t="";for(let e=0;e<this.node.options.length;e++){let a=this.node.options[e];if(void 0!==a.attributes.selected){t=a.value;break}}i=e!==t}break;case"RADIO_GROUP":e=this.getValue(),t="",a=$x_FormItems(this.node,"RADIO");for(let e=0;e<a.length;e++)if(a[e].defaultChecked){t=a[e].value;break}i=e!==t;break;case"CHECKBOX_GROUP":e=this.getValue(),t=[],a=$x_FormItems(this.node,"CHECKBOX");for(let e=0;e<a.length;e++)a[e].defaultChecked&&t.push(a[e].value);i=s();break;case"RADIO":case"CHECKBOX":i=this.node.checked!==this.node.defaultChecked;break;case"POPUP_KEY_LOV":i=this.node.value!==this.node.defaultValue}return i},addValue:function(){e.error("No default handling defined for addValue")},removeValue:function(){e.error("No default handling defined for removeValue")},refresh:function(){this.element.trigger("apexrefresh")},setFocus:function(){let e=this.element;this.setFocusTo&&(e=l(this.setFocusTo)?this.setFocusTo():i(this.setFocusTo)),e.focus()},setStyle:function(e,t){let a=this.element;this.setStyleTo&&(a=l(this.setStyleTo)?this.setStyleTo():i(this.setStyleTo)),a.css(e,t),this.afterModify&&this.afterModify()},displayValueFor:function(e){let t,a,i,s=e,l=!1;if(("SHUTTLE"===this.item_type||"SELECT"===this.item_type&&this.element.attr("multiple"))&&(l=!0),null==s&&(s=""),"password"===this.node.type)return"******";switch(this.item_type){case"POPUP_KEY_LOV":e===this.getValue()&&(s=this.element.val());break;case"SHUTTLE":if(a=[],null!=e){for(t of e)i=this.element.find(`option[value="${n(t+"")}"]`),i.length>0?a.push(i.text()):a.push(t);a.length>1?s=a.join(","):1===a.length&&(s=a[0])}break;case"SELECT":if(null!=e)if(l){for(t of e)i=this.element.find(`[value='${n(t+"")}']`),i.length>0?a.push(i.text()):a.push(t);a.length>1?s=a.join(","):1===a.length&&(s=a[0])}else i=this.element.find(`[value='${n(e+"")}']`),s=i.length>0?i.text():e}return s},getValidity:function(){return this.node.validity||{valid:!0}},getValidationMessage:function(e){let t;return t=this.getValidity().valueMissing?apex.lang.getMessage("APEX.PAGE_ITEM_IS_REQUIRED"):this.node.validationMessage||"",t},getPopupSelector:function(){return null},getSeparator:function(){return this.separator?this.separator:null}};function d(e){let t=null;return e instanceof Element?t=i(e):"string"==typeof e&&(t=i("#"+n(""+e),apex.gPageContext$),t.length||(t=null)),t}function u(e,t){let s,l,o=d(e);if(o)return l=t.afterModify,l&&["enable","disable","addValue","removeValue"].forEach((function(e){let a=t[e];a&&(t[e]=function(e){return function(){e.apply(this,arguments),this.afterModify()}}(a))})),["show","hide"].forEach((function(e){let a=t[e];a&&(t["_"+e]=a,delete t[e])})),s=Object.create(h),s.element=o,s.node=o[0],s.id=s.node.id,"function"==typeof t?t(s):i.extend(s,t),s.setValue=(u=s.setValue,function(e,t,a){u.call(this,e,t,a),this.afterModify&&this.afterModify(),a||this.element.trigger("change")}),s.getValidationMessage=function(e){return function(t){let i,s=this.element.attr("data-valid-message");return i=!this.getValidity().valid&&s?s:e.call(this),i&&(i=a.applyTemplate(i,{placeholders:{LABEL:t||r(this.id)}})),i}}(s.getValidationMessage),s.item_type||function(e){let t,a,s,l=!1,o=e.element;if(t=e.node.nodeName.toUpperCase(),"FIELDSET"===t)o.hasClass("checkbox_group")?l="CHECKBOX_GROUP":o.hasClass("radio_group")?l="RADIO_GROUP":o.hasClass("shuttle")&&(l="SHUTTLE");else if("DIV"===t)o.hasClass("apex-item-checkbox")?l="CHECKBOX_GROUP":o.hasClass("apex-item-radio")?l="RADIO_GROUP":o.hasClass("apex-item-group--shuttle")&&(l="SHUTTLE");else if("INPUT"===t){let t;switch(l=e.node.type.toUpperCase(),l){case"CHECKBOX":case"RADIO":break;case"TEXT":a=e.node.parentNode.className.toUpperCase(),(o.hasClass("apex-item-popup-lov")||"LOV"===a)&&(l=i("#"+n(e.id)+"_HIDDENVALUE",apex.gPageContext$).length>0?"POPUP_KEY_LOV":"POPUP_LOV");break;case"HIDDEN":t=i("#"+n(e.id)+"_DISPLAY",apex.gPageContext$),t[0]&&(e.display_span=t[0],l="DISPLAY_SAVES_STATE",s=t.attr("data-escape"),e.escape=s&&"true"===s.toLowerCase());break;default:l="TEXT"}}else switch(l=t,l){case"TEXTAREA":try{window.CKEDITOR&&window.CKEDITOR.instances[e.id]&&(l="CKEDITOR3")}catch(e){}break;case"SPAN":o.hasClass("display_only")&&(l="DISPLAY_ONLY",s=o.attr("data-escape"),e.escape=s&&"true"===s.toLowerCase())}e.item_type=l}(s),Object.defineProperty(s,"value",{get:s.getValue,set:s.setValue,configurable:!1,enumerable:!0}),[s,o];throw new Error("Item element not found "+e);var u}apex.item=function(e){let t,a=d(e);return a?(t=a.data("apexitem"),t||(t=u(e,{})[0])):(t=Object.create(h),t.element=i()),t},apex.item.isItem=function(e){let t=d(e);return!!t&&!!t.data("apexitem")},apex.item.create=function(e,a){let s,[n,l]=u(e,a);if(l.removeData("apexitem").data("apexitem",n),apex.items[n.id]=n,a.delayLoading)return s=i.Deferred(),t.loadingDeferreds.push(s),n.isReady=function(){return"pending"!==s.state()},n.whenReady=function(){return s.promise()},s};const c=[];apex.item.addAttachHandler=function(e){c.push(e)},apex.item.attach=function(t){t=t||apex.gPageContext$;for(let a=0;a<c.length;a++)try{c[a](t)}catch(t){e.error("Error in item attach processing.",t)}},i((function(){apex.item.addAttachHandler(e=>{i("input[type='hidden'],input.apex-item-text[type='password']",e).each((function(){this.id&&this.id===this.name&&!apex.item.isItem(this.id)&&apex.item.create(this.id,{})})),i("span.display_only.apex-item-display-only",e).each((function(){!this.id||this.id.endsWith("_DISPLAY")||apex.item.isItem(this.id)||apex.item.create(this.id,{})}))}),apex.item.attach(apex.gPageContext$)}))}(apex.debug,apex.page,apex.util,apex.jQuery);
function $d_Find(e,t,n,r){if(n||(n="DIV"),e=$x(e)){var o=e.getElementsByTagName(n);e.style.display="none",gRegex||(gRegex=new RegExp("test")),gRegex.compile(t,"i");for(var i=0,a=o.length;i<a;i++)gRegex.test(o[i].innerHTML)?o[i].style.display="block":o[i].style.display="none";e.style.display="block"}}function doMultiple(e,t){e=$u_Carray(e);for(var n=0;n<e.length;n++){var r=$x(e[n]);apex.item(r)[t]()}return $u_Narray(e)}function $xml_Control(e){var t;this.xsl_string='<?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html"/><xsl:param name="xpath" /><xsl:template match="/"><xsl:copy-of select="//*[@id=$xpath]"/></xsl:template></xsl:stylesheet>',document.all?(this.xsl_object=new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0"),this.xsl_object.async=!1,this.xsl_object.loadXML(this.xsl_string),(t=new ActiveXObject("Msxml2.XSLTemplate.3.0")).stylesheet=this.xsl_object,this.xsl_processor=t.createProcessor()):(this.xsl_object=(new DOMParser).parseFromString(this.xsl_string,"text/xml"),this.xsl_processor=new XSLTProcessor,this.xsl_processor.importStylesheet(this.xsl_object),this.ownerDocument=document.implementation.createDocument("","test",null)),this.xml=e,this.CloneAndPlace=function(e,t,n){var r=$x(t);if(document.all){this.xsl_processor.addParameter("xpath",e),this.xsl_processor.input=this.xml,this.xsl_processor.transform;var o=this.xsl_processor.output}else{this.xsl_processor.setParameter(null,"xpath",e);o=this.xsl_processor.transformToFragment(this.xml,this.ownerDocument)}if(r)return ie?$s(r,o):($s(r,""),r.appendChild(o)),o}}function $s_Split(e,t){var n=[];if(e.length<=t)n[n.length]=e;else{for(;e.length>4e3;)n[n.length]=e.substr(0,4e3),e=e.substr(4e3,e.length-4e3);n[n.length]=e.substr(0,4e3)}return n}null!==apex.spreadsheet&&"object"==typeof apex.spreadsheet||(apex.spreadsheet={}),null!==apex.items&&"object"==typeof apex.items||(apex.items={}),null!==apex.ajax&&"object"==typeof apex.ajax||(apex.ajax={}),null!==apex.dhtml&&"object"==typeof apex.dhtml||(apex.dhtml={}),null!==apex.worksheet&&"object"==typeof apex.worksheet||(apex.worksheet={});var gkeyPressTime,gDebug=!0,gLastTab=!1,gRegex=!1,ie=!!document.all;ie&&(document.expando=!0);var gDebugWindow=!1;function $x(e){return apex.item(e).node}function $v(e){var t=apex.item(e).getValue();return apex.jQuery.isArray(t)?t.join(":"):t}function $v2(e){return apex.item(e).getValue()}function $s(e,t,n,r){return apex.item(e).setValue(t,n,r)}function $u_Carray(e){return $x(e)?[e]:e}function $u_Narray(e){return 1==e.length?e[0]:e}function $nvl(e,t){return null!=e?e:t||""}function $x_Check_For_Compound(e){var t=$x(e);return t&&$x(t.id+"_fieldset")?$x(t.id+"_fieldset"):t}function $x_Style(e,t,n){e=$u_Carray(e);for(var r=0;r<e.length;r++){var o=$x(e[r]);o&&(o.style[t]=n)}return $u_Narray(e)}function $x_Hide(e){return doMultiple(e,"hide")}function $x_Show(e){return doMultiple(e,"show")}function $x_Show_Hide(e,t){$x_Hide(t),$x_Show(e)}function $x_Toggle(e){var t,n,r;e=$u_Carray(e);for(var o=0;o<e.length;o++)n=$x(e[o]),"string"==typeof e[o]?t=e[o]:e[o].id&&(t=e[o].id),t&&((r=apex.jQuery("#"+t+"_CONTAINER").get(0))||(r=apex.jQuery("#"+t+"_DISPLAY").get(0))),r||(r=n),n&&(0===apex.jQuery(r).filter(":visible").length?$x_Show(n):$x_Hide(n));return $u_Narray(e)}function $x_Remove(e){for(var t=0,n=(e=$u_Carray(e)).length;t<n;t++){var r=$x(e[t]),o=r.parentNode;r&&o&&(o.removeChild(r),o.normalize())}return $u_Narray(e)}function $x_Value(e,t){for(var n=0,r=(e=$u_Carray(e)).length;n<r;n++){apex.item(e[n]).setValue(t)}}function $x_UpTill(e,t,n){var r=$x(e);if(r){var o=r.parentNode;if(n)for(;o&&(o.nodeName!=t||!apex.jQuery(o).hasClass(n));)o=o.parentNode;else for(;o&&o.nodeName!=t;)o=o.parentNode;return o||!1}return!1}function $x_ItemRow(e,t){var n;e=$u_Carray(e);for(var r=0;r<e.length;r++)if(n=$x_UpTill($x_Check_For_Compound(e[r]),"TR"))switch(t){case"TOGGLE":$x_Toggle(n);break;case"SHOW":$x_Show(n);break;case"HIDE":$x_Hide(n)}}function $x_HideItemRow(e){$x_ItemRow(e,"HIDE")}function $x_ShowItemRow(e){$x_ItemRow(e,"SHOW")}function $x_ToggleItemRow(e){$x_ItemRow(e,"TOGGLE")}function $x_HideAllExcept(e,t){var n=$x(e);return n&&($x_Hide(t),$x_Show(n)),n}function $x_HideSiblings(e){return apex.jQuery($x(e)).show().siblings().hide().get()}function $x_ShowSiblings(e){return apex.jQuery($x(e)).show().siblings().show().get()}function $x_Class(e,t){$x(e)&&(e=[e]);for(var n=e.length,r=0;r<n;r++)$x(e[r])&&($x(e[r]).className=t);return $u_Narray(e)}function $x_SetSiblingsClass(e,t,n){var r=apex.jQuery($x(e));return r.siblings().removeClass("").addClass(t),n&&r.removeClass("").addClass(n),r.get()}function $x_ByClass(e,t,n){var r=n?n+"."+e:"."+e;return apex.jQuery(r,$x(t)).get()}function $x_ShowAllByClass(e,t,n){var r=n?n+"."+t:"."+t;apex.jQuery(r,$x(e)).show()}function $x_ShowChildren(e){apex.jQuery($x(e)).children().show()}function $x_HideChildren(e){apex.jQuery($x(e)).children().hide()}function $x_disableItem(e,t){return doMultiple(e,t?"disable":"enable")}function $f_get_emptys(e,t,n){var r=[],o=[];$x(e)&&(e=[e]);for(var i=0,a=e.length;i<a;i++){var s=$x(e[i]);s&&(apex.item(s).isEmpty()?r[r.length]=s:o[o.length]=s)}return t&&$x_Class(r,t),n&&$x_Class(o,n),0===r.length?r=!1:r[0].focus(),r}function $v_Array(e){return apex.jQuery.makeArray(apex.item(e).getValue())}function $f_ReturnChecked(e){return!!$x(e)&&$v_Array(e)}function $d_ClearAndHide(e){$x(e)&&(e=[e]);for(var t=0,n=e.length;t<n;t++){var r=$x(e[t]);r&&($x_Hide(r).innerHTML="")}}function $f_SelectedOptions(e){var t=$x(e),n=[];if("SELECT"==t.nodeName){for(var r=t.options,o=0,i=r.length;o<i;o++)r[o].selected&&(n[n.length]=r[o]);return $u_Narray(n)}return!1}function $f_SelectValue(e){return $u_Narray($v_Array(e))}function $v_CheckValueAgainst(e,t){var n,r=!1,o=[];t.constructor==Array?o=t:o[0]=t,n=$v(e);for(var i=0,a=o.length;i<a&&!(r=n==o[i]);i++);return r}function $f_Hide_On_Value_Item(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_Hide(t):$x_Show(t),r}function $f_Show_On_Value_Item(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_Show(t):$x_Hide(t),r}function $f_Hide_On_Value_Item_Row(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_HideItemRow(t):$x_ShowItemRow(t),r}function $f_Show_On_Value_Item_Row(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_ShowItemRow(t):$x_HideItemRow(t),r}function $f_DisableOnValue(e,t,n){var r=$v_CheckValueAgainst(e,t),o=[];if(n){if(n instanceof Array)o=n;else for(var i=2;i<arguments.length;i++)arguments[i]&&(o[o.length]=arguments[i]);$x_disableItem(o,r)}return r}function $x_ClassByClass(e,t,n,r){var o=$x_ByClass(t,e,n);return $x_Class(o,r),o}function $f_ValuesToArray(e,t,n){for(var r=$x_ByClass(t,e,n),o=[],i=0,a=r.length;i<a;i++)o[i]=r[i].value;return o}function $dom_JoinNodeLists(e,t){var n,r,o=[];for(n=0,r=e.length;n<r;n++)o[n]=e[n];for(n=0,r=t.length;n<r;n++)o[o.length]=t[n];return o}function $x_FormItems(e,t){var n,r,o,i=t?t.toUpperCase():"ALL",a=[],s=[],l=$x(e);if(l){if("SELECT"==l.nodeName||"INPUT"==l.nodeName||"TEXTAREA"==l.nodeName)return[l];if(n=l.getElementsByTagName("SELECT"),a=l.getElementsByTagName("INPUT"),r=l.getElementsByTagName("TEXTAREA"),o=l.getElementsByTagName("FIELDSET"),"SELECT"==i?a=n:"TEXTAREA"==i?a=r:"ALL"==i&&(a=$dom_JoinNodeLists(a,o),a=$dom_JoinNodeLists(a,n),a=$dom_JoinNodeLists(a,r)),"SELECT"==i||"TEXTAREA"==i||"ALL"==i)s=a;else for(var u=0;u<a.length;u++)a[u].type.toUpperCase()==t.toUpperCase()&&(s[s.length]=a[u]);return s}}function $f_CheckAll(e,t,n){for(var r,o=0,i=(r=n||$x_FormItems(e,"CHECKBOX")).length;o<i;o++)r[o].checked=t}function $f_CheckFirstColumn(e){for(var t=$x_UpTill(e,"TABLE"),n=[],r=0,o=t.rows.length;r<o;r++){var i=$x_FormItems(t.rows[r],"CHECKBOX")[0];i&&(n[n.length]=i)}return $f_CheckAll(!1,e.checked,n),n}var gToggleWithImageA="pseudoButtonActive",gToggleWithImageI="pseudoButtonInactive";function $x_ToggleWithImage(e,t){return $x_CheckImageSrc(e=$x(e),"plus")?($x_Class(e,gToggleWithImageI),e.src=html_StringReplace(e.src,"plus","minus")):($x_Class(e,gToggleWithImageA),e.src=html_StringReplace(e.src,"minus","plus")),$x_Toggle(t)}function $x_SwitchImageSrc(e,t,n){var r=$x(e);return r&&"IMG"==r.nodeName&&-1!=r.src.indexOf(t)&&(r.src=n),r}function $x_CheckImageSrc(e,t){var n=$x(e),r=!1;return n&&"IMG"==n.nodeName&&(r=$u_SubString(n.src,t)),r}function $u_SubString(e,t){return-1!=e.toString().indexOf(t.toString())}function html_RemoveAllChildren(e){var t=$x(e);if(t&&t.hasChildNodes&&t.removeChild)for(;t.hasChildNodes();)t.removeChild(t.firstChild)}function html_SetSelectValue(e,t){var n=$x(e);if("SELECT"==n.nodeName){n.selectedIndex=0;for(var r=0,o=n.options.length;r<o;r++)n.options[r].value==t&&(n.options[r].selected=!0)}}function $f_Swap(e,t){var n=$x(e),r=$x(t);e&&t&&($x_Value(e,r.value),$x_Value(t,n.value))}function $f_SetValueSequence(e,t){for(var n=e.length,r=0;r<n;r++)$x_Value(e[r],(r+1)*t)}function $dom_AddTag(e,t,n){var r=document.createElement(t),o=$x(e);return o&&o.appendChild(r),null!=n&&(r.innerHTML=n),r}function $tr_AddTD(e,t){return $dom_AddTag($x(e),"TD",t)}function $tr_AddTH(e,t){return $dom_AddTag($x(e),"TH",t)}function $dom_AddInput(e,t,n,r,o){var i=$dom_AddTag(!1,"INPUT");return i.type=t||"text",i.id=n||"",i.name=r||"",i.value=o||"",e&&$x(e).appendChild(i),i}function $dom_MakeParent(e,t){var n=$x(e),r=$x(t);return n&&r&&n.parentNode!=r&&r.appendChild(n),n}var gCurrentRow=!1;function $x_RowHighlight(e,t){var n=$x(e);n&&$x_Style(n.getElementsByTagName("TD"),"backgroundColor",t),gCurrentRow=n}function $x_RowHighlightOff(e){var t=$x(e);t&&$x_Style(t.getElementsByTagName("TD"),"backgroundColor","")}function $v_Upper(e){var t=$x(e);t&&(t.value=t.value.toUpperCase())}function html_StringReplace(e,t,n){n||(n="");var r=e.length,o=t.length;if(0===r||0===o)return e;var i=e.indexOf(t);if(!i&&t!=e.substring(0,o))return e;if(-1==i)return e;var a=e.substring(0,i)+n;return i+o<r&&(a+=html_StringReplace(e.substring(i+o,r),t,n)),a}function setSelectionRange(e,t,n){var r;if(e.setSelectionRange)t>(r=e.value.length)&&(t=r),n>r&&(n=r),e.focus(),e.setSelectionRange(t,n);else if(e.createTextRange){var o=e.createTextRange();o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select()}}function setCaretToPos(e,t){setSelectionRange(e,t,t)}function html_ReturnToTextSelection(e,t,n){var r,o,i=$x(t),a=apex.item(i).isEmpty()||n?"":" ";if(document.selection){i.focus();var s=document.selection.createRange();s.text=s.text+a+e}else r=i.selectionStart,o=i.selectionEnd,i.value=i.value.slice(0,r)+a+e+i.value.slice(o,i.value.length),i.focus(),setCaretToPos(i,o+(e.length+2))}function $p_DatePicker(e,t,n,r,o,i,a,s,l,u,c,h,p,x,_){var d=window.open("wwv_flow_utilities.show_as_popup_calendar?p_element_index="+encodeURIComponent(e)+"&p_form_index="+encodeURIComponent(t)+"&p_date_format="+encodeURIComponent(n)+"&p_bgcolor="+encodeURIComponent(r)+"&p_dd="+encodeURIComponent(o)+"&p_hh="+encodeURIComponent(i)+"&p_mi="+encodeURIComponent(a)+"&p_pm="+encodeURIComponent(s)+"&p_yyyy="+encodeURIComponent(l)+"&p_lang="+encodeURIComponent(u)+"&p_application_format="+encodeURIComponent(c)+"&p_application_id="+encodeURIComponent(h)+"&p_security_group_id="+encodeURIComponent(p)+"&p_mm="+encodeURIComponent(x),"winLov","Scrollbars=no,resizable=yes,width=258,height="+_);return null==d.opener&&(d.opener=self),d.focus(),d}function $u_js_temp_drop(){var e=apex.jQuery("#apex_js_temp_drop");return e.length>0?e.empty():e=apex.jQuery('<div id="apex_js_temp_drop"></div>').prependTo(document.body).hide(),e[0]}function $u_js_temp_clear(){var e=$x("apex_js_temp_drop");return e&&(e.innerHTML=""),e}function dhtml_ShuttleObject(e,t){this.Select1=$x(e),this.Select2=$x(t),this.Select1ArrayInit=this.Select1.cloneNode(!0),this.Select2ArrayInit=this.Select2.cloneNode(!0),this.Op1Init=[],this.Op2Init=[],this.Op1Init=this.Select1ArrayInit.options,this.Op2Init=this.Select2ArrayInit.options,this.move=function(){var e=$f_SelectedOptions(this.Select1);$x(e)&&(e=[e]);for(var t=e.length,n=0;n<t;n++)this.Select2.appendChild(e[n])},this.remove=function(){var e=$f_SelectedOptions(this.Select2);$x(e)&&(e=[e]);for(var t=e.length,n=0;n<t;n++)this.Select1.appendChild(e[n])},this.reset=function(){this.Select1.options.length=0,this.Select2.options.length=0;for(var e=this.Op1Init.length,t=0;t<e;t++)this.Select1.options[t]=new Option(this.Op1Init[t].text,this.Op1Init[t].value);for(var n=this.Op2Init.length,r=0;r<n;r++)this.Select2.options[r]=new Option(this.Op2Init[r].text,this.Op2Init[r].value)},this.move_all=function(){for(var e=0,t=this.Select1.options.length;e<t;e++)this.Select1.options[e].selected=!0;this.move()},this.remove_all=function(){for(var e=0,t=this.Select2.options.length;e<t;e++)this.Select2.options[e].selected=!0;this.remove()},this.sort=function(e,t){var n,r=e.options.length;if("U"==t)for(n=0;n<r;n++)e.options[n].selected&&"U"==t&&n&&e.insertBefore(e.options[n],e.options[n-1]);else if("D"==t)for(n=r-1;n>=0;n--)e.options[n].selected&&"D"==t&&n!=r-1&&e.insertBefore(e.options[n],e.options[n+2]);else{var o=[];for(n=0;n<r;n++)e.options[n].selected&&(o[o.length]=e.options[n]);if("B"==t)for(n=0;n<o.length;n++)e.appendChild(o[n]);else if("T"==t)for(n=o.length-1;n>=0;n--)e.insertBefore(o[n],e.firstChild)}},this.sort1=function(e){this.sort(this.Select1,e)},this.sort2=function(e){this.sort(this.Select2,e)}}
apex.widget=function(e,t){"use strict";function n(e){return e.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))}function o(e,t){var n;(e=e.jquery?e[0]:e)&&e.getAttribute&&(n=e.getAttribute("data-"+t));try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:i.test(n)?JSON.parse(n):n)}catch(e){}return n}const i=/(?:{[\s\S]*}|\[[\s\S]*])$/,u=/[A-Z]/g,c=function(e){return"-"+e.toLowerCase()};return{waitPopup:function(e){var n,o,i;return e?(n=t('<div id="apex_wait_popup" class="apex_wait_popup"></div><div id="apex_wait_overlay" class="apex_wait_overlay"></div>').prependTo("body"),o=n.first(),e.indexOf("<img")>=0&&o.hide(),window.setTimeout((function(){o.html(e).find("img").hide().on("load",(function(){t(this).show(),o.show()}))}),10)):(n=t('<div id="apex_wait_overlay" class="apex_wait_overlay"></div>').prependTo("body"),window.setTimeout((function(){void 0!==n&&(i=apex.util.showSpinner())}),10),n.css("visibility","visible")),{remove:function(){void 0!==i&&i.remove(),n.remove(),n=void 0}}},initPageItem:function(e,t){apex.item.create(e,t)},textareaClob:{_upload:function(e,t,n){var o=$s_Split($v(e),4e3);apex.server.widget("apex_utility",{p_flow_step_id:"0",x04:"CLOB_CONTENT",x05:"SET",f01:o},{dataType:"text"}).done((function(){$s(e,n),apex.submit(t)}))},upload:function(e,t){this._upload(e,t,"")},uploadNonEmpty:function(e,t){0===$v(e).replace(/\s/g,"").length||""===$v(e)||"."===$v(e)?($s(e,""),apex.submit(t)):this._upload(e,t,".")}},contextMenuMixin:{options:{contextMenuAction:null,contextMenu:null,contextMenuId:null},_initContextMenu:function(o,i,u,c){var r=this.options,s=this,a=this.element,x=this.widgetName,p=n(x);if(r.contextMenu||r.contextMenuId)if(t.apex.menu){if(r.contextMenu){if(r.contextMenu.menubar)throw new Error(p+" contextMenu must not be a menubar");r.contextMenu._originalBeforeOpen=r.contextMenu.beforeOpen,r.contextMenu.beforeOpen=function(e,t){r.contextMenu._originalBeforeOpen&&(t.menuElement=s.contextMenu$,t[x]=a,t.selection=s.getSelection(),c&&c(t),r.contextMenu._originalBeforeOpen(e,t))},r.contextMenu._originalAfterClose=r.contextMenu.afterClose,r.contextMenu.afterClose=function(e,t){r.contextMenu._originalAfterClose&&(t.menuElement=s.contextMenu$,t[x]=a,r.contextMenu._originalAfterClose(e,t)),t.actionTookFocus||s.focus()},this.contextMenu$=t("<div style='display:none'></div>").appendTo("body"),r.contextMenuId&&(this.contextMenu$[0].id=r.contextMenuId),this.contextMenu$.menu(r.contextMenu)}else if(this.contextMenu$=t("#"+r.contextMenuId),0===this.contextMenu$.length||!this.contextMenu$.is(":apex-menu"))throw new Error(p+" contextMenuId not found");r.contextMenuAction&&e.warn(p+" contextMenuAction option ignored when contextMenu option present"),r.contextMenuAction=function(e){var n,i;"contextmenu"===e.type&&0!==e.button?s.contextMenu$.menu("toggle",e.pageX,e.pageY):(i=(n=t(e.target)).offset(),s.contextMenu$.menu("toggle",i.left,i.top+n.closest(o).outerHeight()))}}else e.warn(p+" contextMenu option ignored because menu widget not preset");function l(e){var t,n=s.options.contextMenuAction;n&&!i(e)&&(t=u(e))&&(t.length&&s._select(t,null,!0,!1),n(e),e.preventDefault())}this._on({keydown:function(e){e.shiftKey&&121===e.which&&l(e)},contextmenu:l})},_destroyContextMenu:function(){this.options.contextMenu&&this.contextMenu$&&this.contextMenu$.remove()},_checkContextMenuOptions:function(e){var t=this.options,o=n(this.widgetName);if("contextMenu"===e||"contextMenuId"===e)throw new Error(o+" "+e+" cannot be set");if("contextMenuAction"===e&&(t.contextMenu||t.contextMenuId))throw new Error(o+" contextMenuAction cannot be set when the contextMenu or contextMenuId option is used")}},getAttribute:o,_getCreateOptions:function(){let e=this.element[0],t={};if(!o(e,"defaults"))for(const[n]of apex.util.objectEntries(this.options)){let i=o(e,n.replace(u,c));null!=i&&(t[n]=i)}return t}}}(apex.debug,apex.jQuery);
apex.widget.util={},function(e,t,a,i,n){"use strict";const o=t.hasOwnProperty,l=t.objectEntries,s=n.extend,r=".a-Chip-text > .a-Chip-value",c='<span class="a-Chip-divider" role="separator" aria-orientation="vertical"></span><span class="a-Chip-remove js-removeChip"><span class="a-Icon icon-multi-remove"></span></span>';e.initComboSelect=function(e,i){let o,l,s,u,d,p,h,f,v,m,g=!1,C=null,b=null,x=!1,y="",E=null,w=39,P=37,I=t.getTopApex().jQuery,T=!1,S=!1,_=!1,O=".u-hidden",A=function(){return"<div class='a-ComboSelect-popup'></div>"};function V(e){let a="{loop APEX$CHOICES/}"+i.choiceTemplate+"{endloop/}";return t.applyTemplate(a,{extraSubstitutions:{APEX$CHOICES:e},defaultEscapeFilter:i.escapeChoices?"HTML":"RAW"})}function L(e){let t=0===e;u.text(t?a.getMessage("APEX.CS.NO_MATCHES"):a.formatMessage("APEX.CS.MATCHES_FOUND",e)),t&&h.popup("close")}function M(e){i.choices(e,(function(t){b.html(V(t)),!S&&e.length>0&&t.length>0&&k(),setTimeout(()=>{L(t.length)},0)}))}function D(e,a){const o=new RegExp("([<>&;])|("+t.escapeRegExp(a)+")","ig");let l=null,s=i.choices[e],r=!(i.multiValued&&s.selected)&&(!x||s.lc.includes(a.toLowerCase()));return r&&(d+=1,n(this).find(i.itemLabelSelector).html(x?s.d.replace(o,(function(e,t,a){if(t){switch(t){case"<":l=t;break;case">":"<"===l&&(l=null);break;case"&":l||(l=t);break;case";":"&"===l&&(l=null)}return t}return l||!a.length?a:"<span class='a-ComboSelect-itemHighlight'>"+a+"</span>"})):s.d)),!r}function H(e){if(e){let t=e.d,a=e.r;i.multiValued?ee(a,t):Z(a,t)}h&&h.find(".a-ComboSelect-list").children(".is-focused").removeClass("is-focused"),p.prop("tabIndex",0).attr("aria-expanded","false"),_=!0,setTimeout(()=>{_=!1,S=!1},0)}function k(t){let l=!0;if(S=!0,i.multiValued&&o.children(".is-active").removeClass("is-active"),i.onOpen){if(l=!1,!i.onOpen(t,H))return void(S=!1)}else{if(!(g||i.choices&&0!==i.choices.length))return void(S=!1);let t={id:v,title:a.getMessage("APEX.POPUP.SEARCH"),isPopup:!0,parentElement:e,returnFocusTo:p[0],noOverlay:!0,width:200,minHeight:20,maxHeight:400,okButton:!1,dialogClass:"ui-dialog-comboSelect"+(i.popupClasses?" "+i.popupClasses:""),notification:!1,callback:()=>{H(m)},init:function(e){function t(t){m={r:t.attr("data-value"),d:t.find(".a-ComboSelect-label").text()},e.popup("close")}let a="a-ComboSelect-list";i.multiValued&&(a+=" a-ComboSelect--multi"),b=n(`<ul class="${a}" role="listbox"></ul>`),e.append(b),g||(b.html(C),b.filterable({enhanced:!0,filterCallback:D,input:p,children:"li",beforefilter:()=>{d=0},filter:()=>{L(d)}})),b.keydown((function(e){let a,i=e.which,n=b.children(".is-focused");40===i?a=n.nextAll(".a-ComboSelect-item").not(O).first():38===i?a=n.prevAll(".a-ComboSelect-item").not(O).first():13!==i&&9!==i||(n[0]&&t(n),13===i&&e.preventDefault()),a&&a[0]&&(n.removeClass("is-focused"),a.addClass("is-focused").focus(),e.preventDefault())})).click((function(e){t(n(e.target).closest(".a-ComboSelect-item"))}))},open:function(t){var a,o,l,s,r=I(t.target);m=null,g?""===y&&M(""):b.filterable("refresh"),i.width||(a=e.width()),l=n(window).width()-10,s=n(window).height()-10,(i.width||a)>l&&(a=l),i.height>s&&(o=s),a&&r.popup("option","width",a),o&&r.popup("option","height",o)}};h=apex.message.showDialog(A,t),p.attr("aria-owns",v)}p.attr("aria-expanded","true"),l&&p.focus()}function R(){S&&h.popup("close")}function $(e){let t;e.addClass("is-active"),t=i.getChipLabel?i.getChipLabel(e):e.find(r).text(),l.attr("aria-live","assertive").text(a.format(i.activeChipMessage,t))}function X(){R(),$(p.parent().prevAll(".a-Chip--applied,.a-Chip--overflow").filter(":visible").first())}function z(e,t=!0){C&&C.each((function(){let a=n(this);a.attr("data-value")===e&&a.attr("aria-selected",t?"true":"false")}))}function j(){let e=[];o.children(".a-Chip--applied").each((function(){let t,a,o=n(this);i.getChipLabel?a=i.getChipLabel(o):(a=o.find(r).text(),t=o.find(".a-Chip-label").text(),t&&(a=t+" "+a)),e.push(a)})),s.text(e.join(", "))}function N(e){let t=null;return Array.isArray(i.choices)?t=i.choices.find(t=>t.r===e):i.findChoice&&(t=i.findChoice(e)),t}function F(e,a,l=""){let s,r=o.children(".a-Chip--applied");if(s=N(e),(i.enterable||s)&&(!s||a&&i.enterable||(a=s.d),0===r.filter((function(){return n(this).attr("data-value")===e})).length)){let i=r.last(),u=n(`<li class="a-Chip a-Chip--applied" data-value="${t.escapeHTMLAttr(e)}">${l?`<span class="a-Chip-label">${t.escapeHTML(l)}</span>`:""}<span class="a-Chip-text"><span class="a-Chip-value">${t.escapeHTML(a)}</span></span>${c}</li>`);return s&&(s.selected=!0,z(e)),i[0]?i.after(u):o.prepend(u),j(),Q(),!0}return!1}function B(e){let t=!1,a=N(e);return a&&(delete a.selected,z(e,!1)),o.children(".a-Chip--applied").each((function(){let a=n(this);if(a.attr("data-value")===e)return a.remove(),j(),Q(),t=!0,!1})),t}function U(){let e;if(i.multiValued)e=[],o.children(".a-Chip--applied").each((function(){let t=n(this),a={value:t.attr("data-value"),displayValue:t.find(r).text()},i=t.find(".a-Chip-label").text();i&&(a.label=i),e.push(a)}));else{let t=p.attr("data-value");e=t?{value:t,displayValue:p.val()}:null}return e}function Y(e,t){let a=N(e),n=N(p.attr("data-value"));return C&&C.filter("[aria-selected='true']").attr("aria-selected","false"),n&&delete n.selected,!(!i.enterable&&!a)&&(a?(a.selected=!0,t=a.d,z(e)):t||(t=e),x=!1,p.attr("data-value",e).val(t),!0)}function G(e,t){return t.addClass("is-active"),i.activateChip&&((e=!i.activateChip(t.attr("data-value"),t,(function(e,a=null,i=null){null!=a&&t.find(".a-Chip-label").text(a),null!=i&&t.find(r).text(i),K(),e&&p.focus()})))||t.addClass("is-active")),e}function W(){p.attr("data-value","").val("").parent().addClass("is-empty")}function K(){if(i.useOverflow){let e,t,a,i=o.width(),n=0,l=0,s=!1;o.removeClass("a-Chips--wrap"),i-=i/3,e=o.children(".a-Chip--applied"),a=e.length-1;for(let t=a;t>=0;t--){let o=e.eq(t);n+=o.removeClass("is-overflow").width(),n>i&&t<a&&(s=!0,l+=1),n>i&&o.addClass("is-overflow")}t=o.children(".a-Chip--overflow"),t.toggleClass("is-overflow",s),s&&t.find(".a-Chip-value").text("+"+l)}}function Q(){let e=0===o.children(".a-Chip--applied").length;f&&p.attr("placeholder",e?f:""),K()}function q(e){let t=e.attr("data-value");i.removeValue(t),B(t)}function J(){let e,t=p.val(),a=t.toLowerCase(),n=t;Array.isArray(i.choices)&&(e=i.choices.find(e=>e.lc===a),e&&(n=e.r)),i.multiValued?ee(n,t):Z(n,t)}function Z(e,t){i.setValue(e,t),Y(e,t),y=""}function ee(e,t){let a,n;a=i.addValue(e,t),a&&(null!=a.text&&(t=a.text),null!=a.value&&(e=a.value),n=a.label||""),F(e,t,n),W(),y=""}const te=t.debounce((function(){let e=p.val(),t=e.length,a=y?y.length:0;y!==e&&(t>=1||t<a)&&(y=e,M(e))}),250);let ae='<li role="option" class="a-ComboSelect-item"data-value="&APEX$ITEM%r!ATTR."tabIndex="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>';if(i.hasIcons&&i.hasGroups?ae='<li role="option" class="{if APEX$ITEM%g/}a-ComboSelect-itemGroup{else/}a-ComboSelect-item{endif/}" data-value="&APEX$ITEM%r!ATTR." tabIndex="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-Icon &APEX$ITEM%i!ATTR." aria-hidden="true"></span> <span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>':i.hasIcons?ae='<li role="option" class=\'a-ComboSelect-item\' data-value=\'&APEX$ITEM%r!ATTR.\' tabIndex=\'-1\' {if APEX$ITEM%selected/}aria-selected="true"{endif/}> <span class="a-Icon &APEX$ITEM%i!ATTR." aria-hidden="true"></span> <span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>':i.hasGroups&&(ae='<li role="option" class="{if APEX$ITEM%g/}a-ComboSelect-itemGroup{else/}a-ComboSelect-item{endif/}" data-value="&APEX$ITEM%r!ATTR." tabIndex="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>'),i=n.extend({escapeChoices:!0,searchIcon:!1,clearIcon:!1,expandIcon:!1,enterable:!1,multiValued:!1,activeChipMessage:"%0. Press back space to delete.",useOverflow:!1,hasIcons:!1,hasGroups:!1,choiceTemplate:ae,itemLabelSelector:".a-ComboSelect-label",isDisabled:()=>!0},i),v="CS_"+n("#pFlowStepId").val()+"_"+i.baseId,h=I("#"+t.escapeCSS(v)),h.parent().remove(),i.multiValued?O+=",[aria-selected='true']":i.useOverflow=!1,e.addClass("apex-item-comboselect"),i.onOpen||(e.append('<div class="u-vh js-results-description" aria-live="polite"></div>'),u=e.children().last()),p=e.find("input"),p.attr({role:"combobox","aria-expanded":"false",autocomplete:"off",autocorrect:"off",autocapitalize:"none",spellcheck:"false","aria-autocomplete":"list"}),i.searchIcon&&e.prepend('<span class="a-Icon icon-search" tabindex="-1" aria-hidden="true"></span>'),i.expandIcon){let t=i.expandIcon;!0===t&&(t="icon-popup-lov-under"),i.enterable&&e.append('<span class="a-Chip-divider" role="separator" aria-orientation="vertical"></span>'),e.append(`<button class="a-Button a-Button--popupLOV js-expand" type="button" tabindex="-1" aria-hidden="true"><span class="a-Icon ${t}"></span></button>`)}if("function"==typeof i.choices)g=!0;else if(null!=i.choices&&!Array.isArray(i.choices)){let e=n(i.choices).children(),t=[];e.each((function(){let e=n(this),a=e.attr("data-value"),i=e.attr("data-selected"),o={r:a,d:e.text()};i&&"true"===i.toLowerCase()&&(o.selected=!0),t.push(o)})),e.parent().remove(),i.choices=t}if(Array.isArray(i.choices)&&(i.choices.forEach(e=>{e.lc=t.stripHTML(e.d.toLowerCase())}),C=n(V(i.choices))),i.multiValued){let a=!1,r=null;if(p.val(""),o=e.find("ul").first(),o[0]||(o=n("<ul>"),e.prepend(o)),o.addClass("a-Chips a-Chips--applied"+(i.useOverflow?"":" a-Chips--wrap")).attr("role","presentation").children().each((function(e){let i,o=n(this);o.has("input")[0]?(a=!0,o.addClass("a-Chip a-Chip--input is-empty")):(o.has("span")[0]||(i=o.text(),o.html(`<span class="a-Chip-text"><span class="a-Chip-value">${t.escapeHTML(i)}</span></span>`)),o.append(c).addClass("a-Chip a-Chip--applied"),o.attr("data-value")||o.attr("data-value",""+(e+1)),r=o)})),i.useOverflow){let e=n('<li class="a-Chip a-Chip--overflow"><span class="a-Chip-text"><span class="a-Chip-value"></span></span></li>');r?r.after(e):o.prepend(e)}a||(o.append('<li class="a-Chip a-Chip--input is-empty"></li>'),o.find(".a-Chip--input").append(p)),o.after(`<div class="u-vh js-active-description"></div><div id="${i.baseId}_desc" class="u-vh"></div>`),l=o.next(),s=l.next(),p.attr("aria-describedby",i.baseId+"_desc"),j()}i.clearIcon&&p.after('<span class="a-Chip-clear js-clearInput" tabindex="-1"><span class="a-Icon icon-multi-remove"></span></span>');let ie={options:i,getValue:U};return i.multiValued?(ie.addValueChip=F,ie.removeValueChip=B,ie.activate=function(e){o.children(".is-active").removeClass("is-active"),o.children(".a-Chip--applied").each((function(){let t=!1,a=n(this);if(a.attr("data-value")===e)return t=G(t,a),t&&p.focus(),!1}))},ie.updatedValueChip=function(){j()},ie.editValue=function(e,t=e){B(e),p.val(t)[0].select()},f=p.attr("placeholder"),"rtl"===o.css("direction")&&(w=37,P=39),Q()):ie.setValue=Y,e.click((function(e){let t=!0,a=n(e.target),l=a.closest(".js-removeChip"),s=a.closest(".js-clearInput"),r=a.closest(".a-Chip--overflow"),c=a.closest(".a-Chip--applied");i.isDisabled()||(r[0]?o.addClass("a-Chips--wrap"):l[0]?q(c):s[0]?W():c[0]&&(o.children(".is-active").removeClass("is-active"),t=G(!0,c)),t&&setTimeout(()=>{p.focus()},0))})).mousedown((function(e){let t=n(e.target),a=t.closest(".js-clearInput"),i=t.closest(".a-Chip--applied,.a-Chip--overflow");a[0]&&(T=!0),1&((e=e.originalEvent||e).buttons||1)&&!S&&!i[0]&&!a[0]&&k()})).focusout((function(){o&&o.removeClass("is-focused").children(".is-active").removeClass("is-active"),i.enterable?!p.val()||S&&!_||T||J():x&&(Y(E.value,E.displayValue),E=null),x=!1,T=!1})),p.focus((function(){o&&o.addClass("is-focused"),i.enterable||E||(E=U())})).keydown((function(e){let t=e.which,a=!1;if(i.multiValued&&""===p.val()){let a=!1,i=o.children(".is-active");if(46===t||8===t)e.target!==p[0]||8!==t||i[0]||X(),i[0]&&q(i),a=!0;else if(t===P){if(i[0]){let e=i.prevAll().filter(":visible");e[0]&&(i.removeClass("is-active"),$(e.first()))}else X();a=!0}else if(t===w){if(i[0]){let e=i.nextAll().filter(":visible");e[0]&&(i.removeClass("is-active"),i=e.first(),i.hasClass("a-Chip--input")?l.attr("aria-live","off").text(""):$(i))}a=!0}else 13!==t&&32!==t||i[0]&&(i.hasClass("a-Chip--overflow")?o.addClass("a-Chips--wrap"):13===t&&G(!0,i),a=!0);if(a)return void e.preventDefault()}if(40===t||38===t)if(S){if(!i.onOpen){let t;i.multiValued||(t=h.find(".a-ComboSelect-item[aria-selected='true']").first()),t&&t[0]||(t=h.find(".a-ComboSelect-item").not(O).first()),t.addClass("is-focused").focus(),p.prop("tabIndex",-1),e.preventDefault()}}else k();else 13===t?(i.enterable&&p.val()&&(J(),R(),e.stopPropagation()),e.preventDefault()):27===t?(S&&e.preventDefault(),R()):9===t?(i.enterable&&p.val()&&J(),R()):i.enterable||(a=!(t>=112&&t<=123||t>=33&&t<=46||t<32),a&&(e.ctrlKey||e.metaKey)&&{65:1,67:1,86:1,88:1,89:1,90:1}[t]&&(a=!1),a&&(x=!0,setTimeout((function(){"x".length>0?k("x"):document.activeElement===(void 0)[0]&&p.focus()}),10)))})).keyup((function(e){let t=e.which;if(i.multiValued&&32===t){let e=o.children(".is-active");e[0]&&!e.hasClass("a-Chip--overflow")&&G(!0,e)}g&&te()})).on("input",(function(){let e=""===p[0].value;!e&&i.multiValued&&o.children(".is-active").removeClass("is-active"),p.parent().toggleClass("is-empty",e),g&&te()})),ie};const u=["constructor","widget","option"],d=["create"];e.makeInterfaceFromWidget=function(e,t,a,i=[],n=[]){let o=t[a]("instance"),l=o.options;function s(e,t){o.option(e,t)}for(let t in o)if("function"==typeof o[t]&&"_"!==t[0]&&!i.includes(t)&&!u.includes(t)){if("refresh"!==t&&"focus"!==t&&void 0!==e[t])throw new Error(`Can't overwrite method '${t}'`);e[t]=o[t].bind(o)}for(let t in l)if(!n.includes(t)&&!d.includes(t)){if(void 0!==e[t])throw new Error(`Can't overwrite property '${t}'`);Object.defineProperty(e,t,{enumerable:!0,get:()=>{return e=t,o.option(e);var e},set:e=>{s(t,e)}})}return e.widget=function(){return t},e},e.cascadingLov=function(e,t,a,i){var o=n(e,apex.gPageContext$),l=o[0]?o[0].id:"lov",r=s({optimizeRefresh:!0,queue:{name:l,action:"replace"}},i),c=!1;return r.refreshObject||(r.refreshObject=o),r.loadingIndicator||(r.loadingIndicator=o),r.optimizeRefresh&&(n(r.dependingOn,apex.gPageContext$).each((function(){if(apex.item(this).isEmpty())return c=!0,!1})),c)?(r.refreshObject.trigger("apexbeforerefresh"),n.isFunction(r.clear)&&r.clear(),o.change(),void r.refreshObject.trigger("apexafterrefresh")):(a.pageItems=n(a.pageItems,apex.gPageContext$).add(r.dependingOn),apex.server.plugin(t,a,r))},e.openPopupLov=function(e,i,r,c,u){var d,p,h,f,v,m,g,C,b,x=t.getTopApex().jQuery,y=null,E=c.isPopup||!1,w=a.getMessage("APEX.POPUP_LOV.NO_RESULTS"),P=null,I=c.incrementalSearch,T=c.initialSearch||"",S=n("#"+t.escapeCSS(c.itemId)),_="PopupLov_"+n("#pFlowStepId").val()+"_"+c.itemId,O=_+"_dlg",A=null;function V(){h.resize()}function L(e,a,i,n){var o,l=!1,s=!1,r=d.getOption("fetchData");e.forceRefresh&&(l=!0,"none"!==c.initialFetch||e.typeAhead&&I||(s=!0),r.search=null,e.forceRefresh=!1),null!==a&&a!==r.search&&(r.search=a,l=!0),i&&n&&(i!==r.sortColumn||n!==r.sortDirection)&&(r.sortColumn=i,r.sortDirection=n,l=!0),l&&(o=t.escapeRegExp(r.search).replace(/[_%]/g,(function(e){return"[^<>&]"+("%"===e?"*":"")})),h.options.highlighterContext={term:r.search,re:new RegExp("([<>&;])|("+o+")","ig")},P?a.length>=c.minSearchChars&&!s&&!e.typeAhead?(h._setOption("noDataMessage",w),d.clearData()):(h._setOption("noDataMessage",P),d.setData([]),r.search=null):e.typeAhead&&!I?(d.setData([]),r.search=null):d.clearData(),e.typeAhead=!1)}function M(){b.setItem("state",JSON.stringify(y))}if(c.persistState&&function(){var e;if(b=apex.storage.getScopedSessionStorage({prefix:_,usePageId:!0,useAppId:!0}),y={},"grid"===c.display&&(y.columnWidths={}),e=b.getItem("state"))try{e=JSON.parse(e),E||(y.width=parseInt(e.width,10)||c.width,y.height=parseInt(e.height,10)||c.height),e.sortDirection&&/^(asc|desc)$/.test(e.sortDirection)&&(y.sortDirection=e.sortDirection),c.columns[e.sortColumn]&&(y.sortColumn=e.sortColumn),n.each(e.columnWidths,(function(e,t){(t=parseInt(t,10))&&(y.columnWidths[e]=t)}))}catch(e){}}(),C=function(){return"<div class='a-PopupLOV-dialog'></div>"},S.data("popupSearchState",{forceRefresh:e,typeAhead:r,searchText:i}),!x("#"+t.escapeCSS(O))[0]&&y){c.width=y.width||c.width,c.height=y.height||c.height,y.sortColumn&&y.sortDirection&&n.each(c.columns,(function(e,t){e===y.sortColumn&&t.canSort?(t.sortIndex=1,t.sortDirection=y.sortDirection):(delete t.sortIndex,delete t.sortDirection)}));for(const[e,t]of l(y.columnWidths))c.columns[e]&&(c.columns[e].width=t)}f={id:O,title:c.title||a.getMessage("APEX.POPUP_LOV.TITLE"),isPopup:E,parentElement:E?S.closest(".apex-item-group--popup-lov"):null,returnFocusTo:S[0],noOverlay:!0,draggable:!0,resizable:!0,width:200,height:c.height,okButton:!1,dialogClass:"ui-dialog-popuplov",notification:!1,callback:function(){var e,t,a,i="setValue",n=apex.item(c.itemId);if(c.multiple&&(i="addValue"),A&&("object"==typeof A&&o(A,"d")&&o(A,"v")?n[i](A.v,A.d):"object"==typeof A&&o(A,"v")?n[i](A.v):n[i](A),!c.multiple&&(e=c.extraOut)))for(const[i,n]of l(e))a=null,null!==(t=A[i])&&"object"==typeof t&&o(t,"d")&&(a=(t=t.v).d),$s(n.item,t,a);h.setSelectedRecords([],!1),u&&u(A)},init:function(o){var l,u,f,C,b,x,O,V,D=null,H=null,k=_+"_m",R=o.is(":data(apexPopup)")?"popup":"dialog",$=a.getMessage("APEX.POPUP.SEARCH"),X={forceRefresh:e,typeAhead:r,searchText:T||i},z=t.htmlBuilder();function j(e){return e.match(/^[A-Z0-9_$#]+$/)?"&"+e+".":'&"'+e+'".'}function N(){var e=h.getSelectedRecords()[0];e&&(A={v:d.getValue(e,c.valueColumn)},c.hasDisplayValue&&c.displayColumn&&(A.d=d.getValue(e,c.displayColumn)),c.extraOut&&Object.keys(c.extraOut).forEach((function(t){A[t]=d.getValue(e,t)})),o[R]("close"))}function F(e,t,a){var i=null;return!e.term||a&&!1===a.canSearch?t:t.replace(e.re,(function(e,t,a){if(t){switch(t){case"<":i=t;break;case">":"<"===i&&(i=null);break;case"&":i||(i=t);break;case";":"&"===i&&(i=null)}return t}return i||!a.length?a:"<span class='popup-lov-highlight'>"+a+"</span>"}))}if(S.data("popupSearchState",X),z.markup("<div><div").attr("class","a-PopupLOV-searchBar"+(I?" a-PopupLOV--incremental":"")).markup("><input type='text' aria-label='"+$+"' maxlength='100' class='a-PopupLOV-search apex-item-text'").attr("value",T).markup(">"),I||z.markup("<button type='button' class='a-Button a-PopupLOV-doSearch' aria-label='"+$+"'>"),z.markup("<span class='a-Icon icon-search' aria-hidden='true'></span>"),I||z.markup("</button>"),z.markup("</div>"),c.nullDisplayValue&&z.markup("<div class='a-PopupLOV-clear'><button class='a-PopupLOV-clearButton' type='button'>").content(c.nullDisplayValue).markup("</button></div>"),z.markup("<div class='a-PopupLOV-results'></div></div></div>"),O=n(z.toString()),p=O.find(".a-PopupLOV-results"),v=O.find(".a-PopupLOV-searchBar"),m=v.find(".a-PopupLOV-search"),V=v.find(".a-PopupLOV-doSearch"),g=O.find(".a-PopupLOV-clearButton"),n.each(c.columns,(function(e,t){if(t.sortIndex)return D=e,H=t.sortDirection,!1})),d=apex.model.create(k,{shape:"table",hasTotalRecords:!1,recordIsArray:!0,identityField:c.valueColumn,metaField:c.columns._meta?"_meta":null,fields:c.columns,paginationType:"progressive",regionId:c.itemId,fetchData:{search:null,sortColumn:D,sortDirection:H},requestOptions:c.pluginTarget?{target:c.pluginTarget}:null,ajaxIdentifier:c.ajaxIdentifier,pageItemsToSubmit:c.itemsToSubmit},[],0,!1),S.data("popupLovModelName",k),b=c.displayColumn||c.valueColumn,"grid"===c.display)c.columns[b].usedAsRowHeader=!0,c.iconColumn&&(C="<span class='"+j(c.iconColumn)+"'></span> "+j(b),c.columns[b].cellTemplate=C),l=s({modelName:k,columns:[c.columns],columnSort:!0,columnSortMultiple:!1,collapsibleControlBreaks:!1,footer:!1,hasSize:!0,noDataMessage:w,multiple:!1,pagination:{scroll:!0,loadMore:!0},constrainNavigation:!1,reorderColumns:!1,resizeColumns:!0,tooltip:null,highlighter:F,activateCell:function(e){var t=n(e.target).closest(".a-GV-cell");"keydown"===e.type&&13!==e.which||t.hasClass("a-GV-selHeader")||t.hasClass("has-button")||N()},selectionChange:function(e){e.originalEvent&&"click"===e.originalEvent.type&&N()},sortChange:function(e,t){var a,i,n,o=t.column.sortIndex,l=f.grid("getColumns");for(n=1,a=0;a<l.length;a++)(i=l[a]).sortIndex&&("change"===t.action?i===t.column&&(n=i.sortIndex):"add"===t.action?i.sortIndex>=n&&(n=i.sortIndex+1):"remove"===t.action?i===t.column?(delete i.sortIndex,delete i.sortDirection):i.sortIndex>o&&(i.sortIndex-=1):"clear"!==t.action&&"set"!==t.action||(delete i.sortIndex,delete i.sortDirection));"clear"!==t.action&&"remove"!==t.action&&(t.column.sortIndex=n,t.column.sortDirection=t.direction),f.grid("refreshColumns"),L(X,null,t.column.property,t.direction),y&&(y.sortColumn=t.column.property,y.sortDirection=t.direction,M())},columnResize:function(e,t){y&&(y.columnWidths[t.column.property]=parseInt(t.width,10),M())}},c.defaultGridOptions),(f=p).grid(l),h=f.data("apex-grid"),f.click((function(e){n(e.target).closest(".a-GV-row").hasClass("is-selected")&&N()}));else{if("list"!==c.display)throw new Error("Invalid display value");(C=c.recordTemplate)?C=C.replace("&DISPLAY.","&"+b+".").replace("&ICON.","&"+c.iconColumn+".").replace("&RETURN.","&"+c.valueColumn+"."):(C="<li data-id='"+j(c.valueColumn)+"'>",c.iconColumn&&(C+="<span class='"+j(c.iconColumn)+"'></span> "),C+=j(b)+"</li>"),u=s({modelName:k,recordTemplate:C,footer:!1,hasSize:!0,noDataMessage:w,highlighter:F,useIconList:!0,constrainNavigation:!1,iconListOptions:{navigation:!0,multiple:!1,activate:function(e){N(),e.preventDefault()}},pagination:{scroll:!0,loadMore:!0}},c.defaultIconListOptions),p.tableModelView(u),h=p.data("apex-tableModelView")}o.append(O.children()),c.minSearchChars>0&&(P=a.formatMessage("APEX.POPUP_LOV.FILTER_REQ",c.minSearchChars)),P||"none"!==c.initialFetch||(P=a.getMessage("APEX.POPUP_LOV.INITIAL_FILTER_REQ")),I&&(x=t.debounce((function(){L(X,m.val())}),400)),p.keydown((function(e){var t=e.which;e.isDefaultPrevented()||(40===t?m.focus():38===t&&g.add(m).last().focus())})).focusin((function(){var e=h.getSelection();0===e.length&&(e=n(p[0].ownerDocument.activeElement).closest(".a-IconList-item,.a-GV-row"))[0]&&h.setSelection(e)})),m.keydown((function(e){var t,a=e.which;40===a?(g[0]?g.focus():h.focus(),e.preventDefault()):38===a?(h.focus(),e.preventDefault()):9===a&&I?1===d.getTotalRecords()&&(f?f.grid("setSelection",f.find(".a-GV-cell").eq(0)):h.focus(),N(),e.preventDefault(),e.stopPropagation()):13===a?(e.preventDefault(),I&&c.enterable&&E&&m.val()?(A={v:m.val()},o[R]("close")):I&&!c.enterable&&1===d.getTotalRecords()?(t=null,d.forEach((function(e){t=e})),t&&(h.setSelectedRecords([t]),N())):L(X,m.val())):I&&x()})),V.click((function(){L(X,m.val())})),g.click((function(){A={v:c.nullValue,d:c.nullDisplayValue},c.extraOut&&Object.keys(c.extraOut).forEach((function(e){A[e]=""})),o[R]("close")})).keydown((function(e){var t=e.which;40===t?(h.focus(),e.preventDefault()):38===t&&(m.focus(),e.preventDefault())})),o.attr("role","application")},open:function(e){var t,a,i,o,l=S.data("popupSearchState"),s=l.searchText||"",r=x(e.target),u=r.is(":data(apexPopup)")?"popup":"dialog";c.width||(t=S.closest(".apex-item-group--popup-lov").width()),E&&(i=n(window).width()-10,o=n(window).height()-10,(c.width||t)>i&&(t=i),c.height>o&&(a=o)),t&&r[u]("option","width",t),a&&r[u]("option","height",a),V(e.target),A=null,(s||l.forceRefresh)&&(m.val(s),L(l,s)),m.focus()},resize:function(e){V(e.target)},resizeStop:function(e,t){y&&!E&&(y.height=t.size.height,y.width=t.size.width,M())}},["draggable","resizable","width","height","minWidth","minHeight","maxWidth","maxHeight","noOverlay"].forEach((function(e){void 0!==c[e]&&(f[e]=c[e])})),apex.message.showDialog(C,f)};var p=function(e,t){e.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),"label-desc"===t&&e.reverse()};e.chartSortArray=p,e.chartFillGaps=function(e,t,a,i){p(t,a);for(var n=0;n<e.length;n++)t[n]&&t[n].name===e[n].name?t[n].id!==n&&(t[n].id=n):t.splice(n,0,{name:e[n].name,value:i?0:null})},e.enableIcon=function(e,t,a){e.find("img").css({opacity:1,cursor:""}).parent("a").attr("href",t),a&&e.click(a)},e.disableIcon=function(e){e.find("img").css({opacity:.5,cursor:"default"}).parent("a").removeAttr("href").unbind("click")};var h=[];function f(e){var t;for(t=0;t<h.length;t++)if(h[t].el===e)return t;return null}e.onVisibilityChange=function(e,t){var a=f(e),i={el:e,cb:t};null!==a?h[a]=i:h.push(i)},e.offVisibilityChange=function(e){var t=f(e);null!==t&&h.splice(t,1)},e.isVisible=function(e){var t,a,i=e.is(":visible");return e.closest("div.apex-tabs-region").length>0&&(t=apex.region(e.closest("div.apex-tabs-region").attr("id")).widget())&&(a=t.aTabs("getActive").el$,0===e.parents("#"+a.attr("id")).length&&(i=!1)),i},e.whenBecomesVisible=function(t,a){setTimeout((function(){e.isVisible(t)?a(t):e.onVisibilityChange(t[0],(function(i){i&&(a(t),e.offVisibilityChange(t[0]))}))}),0)};var v=e.visibilityChange=function(e,t){var a,i,o,l=n(e);for(t=!!t,a=0;a<h.length;a++)o=h[a],t===(i=n(o.el)).is(":visible")&&i.closest(l).length&&o.cb(t)};n(document).on("apexaftershow",(function(e){v(e.target,!0)})).on("apexafterhide",(function(e){v(e.target,!1)}));e.onElementResize=function(e,t){var a,i;"string"==typeof e&&(e="#"+e),(i=(a=n(e).first()).data("apex-resize-sensor"))||(i=new m(a[0]),a.data("apex-resize-sensor",i),i.start()),i.addListener(t)},e.offElementResize=function(e,t){var a,i;"string"==typeof e&&(e="#"+e),(i=(a=n(e).first()).data("apex-resize-sensor"))&&(t?(i.removeListener(t),i.isEmpty()&&(i.stop(),a.removeData("apex-resize-sensor"))):(i.destroy(),a.removeData("apex-resize-sensor")))},e.updateResizeSensors=function(e){"string"==typeof e&&(e="#"+e),n(e).find(".js-resize-sensor").parent().each((function(e,t){var a=n(t).data("apex-resize-sensor");null!=a&&a.init(!0)}))};var m=function(e){var a=n.Callbacks(),i=0,o=null,l=null,s=null,r=null,c=null,u=null,d=null;function p(e){var t=!1;if(null!=r.offsetParent){var a=r.offsetWidth,n=r.offsetHeight;l===a&&s===n||(i=2,m(a,n),t=!0,e&&h(!0))}return t}function h(i){var n=e.offsetWidth,l=e.offsetHeight;a.has()&&(i?(null!==o&&t.cancelInvokeAfterPaint(o),o=t.invokeAfterPaint((function(){o=null,a.fire(n,l)}))):a.fire(n,l))}function f(e){e.stopPropagation(),p(!0)||i>0&&null!=r.offsetParent&&(0==r.scrollLeft||0==r.scrollTop)&&(i--,m(l,s))}function v(){h(!1)}function m(e,t){l=e,s=t;var a=r.firstChild.style,i=1;do{a.width=e+i+"px",a.height=t+i+"px",r.scrollLeft=r.scrollTop=i,i++}while((0==r.scrollTop||0==r.scrollLeft)&&i<=5);c.scrollLeft=e,c.scrollTop=t}this.addListener=function(e){a.add(e)},this.removeListener=function(e){a.remove(e)},this.isEmpty=function(){return!a.has()},this.destroy=function(){a.empty(),this.stop()},this.start=function(){function t(e,t){e.direction="ltr",e.position=t.position="absolute",e.left=e.top=e.right=e.bottom="0",e.overflow="hidden",e.zIndex="-1",e.visibility="hidden",t.left=t.top="0",t.transition="0s"}if(d=f.bind(this),e.attachEvent)u=v.bind(this),e.attachEvent("onresize",u);else{var a=e.childNodes[0];(r=document.createElement("div")).className="js-resize-sensor";var i=document.createElement("div");t(r.style,i.style),r.appendChild(i),a?e.insertBefore(r,a):e.appendChild(r),r.addEventListener("scroll",d,!1),c=document.createElement("div");var n=document.createElement("div");t(c.style,n.style),n.style.width="200%",n.style.height="200%",c.appendChild(n),e.insertBefore(c,r),c.addEventListener("scroll",d,!1),this.init(!1)}},this.stop=function(){null!==o&&(t.cancelInvokeAfterPaint(o),o=null),null!==r?(r.removeEventListener("scroll",d),c.removeEventListener("scroll",d),r.parentNode&&e.removeChild(r),c.parentNode&&e.removeChild(c)):e.detachEvent("onresize",u)},this.init=function(e){var t=p(e);e&&!t&&null!=r.offsetParent&&m(l,s)}};e.TouchProxy=function(e){this._init(e)},e.TouchProxy.prototype._init=function(e){this._elem=e,this._touchHandled=!1,this._touchMoved=!1,this._touchStartHandler=n.proxy(this._touchStart,this),this._touchEndHandler=n.proxy(this._touchEnd,this),this._touchMoveHandler=n.proxy(this._touchMove,this),this._elem.on({touchstart:this._touchStartHandler,touchend:this._touchEndHandler,touchmove:this._touchMoveHandler,touchcancel:this._touchEndHandler})},e.TouchProxy.prototype._destroy=function(){this._elem&&this._touchStartHandler&&(this._elem.off({touchstart:this._touchStartHandler,touchmove:this._touchMoveHandler,touchend:this._touchEndHandler,touchcancel:this._touchEndHandler}),this._touchStartHandler=void 0,this._touchEndHandler=void 0,this._touchMoveHandler=void 0)},e.TouchProxy.prototype._touchHandler=function(e,t){if(!(e.originalEvent.touches.length>1)){"touchstart"!=e.type&&"touchend"!=e.type&&e.preventDefault();var a=e.originalEvent.changedTouches[0],i=document.createEvent("MouseEvent");i.initMouseEvent(t,!0,!0,window,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(i)}},e.TouchProxy.prototype._touchStart=function(e){this._touchHandled||(this._touchHandled=!0,this._touchMoved=!1,this._touchHandler(e,"mouseover"),this._touchHandler(e,"mousemove"),this._touchHandler(e,"mousedown"))},e.TouchProxy.prototype._touchMove=function(e){this._touchHandled&&(this._touchMoved=!0,this._touchHandler(e,"mousemove"))},e.TouchProxy.prototype._touchEnd=function(e){this._touchHandled&&(this._touchHandler(e,"mouseup"),this._touchHandler(e,"mouseout"),this._touchHandled=!1)},e.TouchProxy._TOUCH_PROXY_KEY="apexTouchProxy",e.TouchProxy.prototype.touchMoved=function(){return this._touchMoved},e.TouchProxy.addTouchListeners=function(t){var a=n(t),i=a.data(e.TouchProxy._TOUCH_PROXY_KEY);return i||(i=new e.TouchProxy(a),a.data(e.TouchProxy._TOUCH_PROXY_KEY,i)),i},e.TouchProxy.removeTouchListeners=function(t){var a=n(t),i=a.data(e.TouchProxy._TOUCH_PROXY_KEY);i&&(i._destroy(),a.removeData(e.TouchProxy._TOUCH_PROXY_KEY))}}(apex.widget.util,apex.util,apex.lang,apex.navigation,apex.jQuery);
apex.clipboard=function(e,t,n){"use strict";var o=[],a=document.execCommand&&document.queryCommandSupported;function c(e){var t,a,c,d,i=e.originalEvent,r=n(document.activeElement);if(c=i.clipboardData||window.clipboardData)for(d={dt:c,setData:function(e,t){(window.clipboardData||/Edge\/\d./i.test(navigator.userAgent))&&("text/plain"===e&&(e="text"),"text"!==e)||this.dt.setData(e,t)}},t=0;t<o.length;t++)if(a=o[t],r.closest(a.element).length>0){a.handler(d)&&e.preventDefault();break}}function d(){var e,t=document.activeElement;"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName&&(window.getSelection().removeAllRanges(),(e=document.createRange()).selectNode(n("#apexCBMDummySelection")[0]),window.getSelection().addRange(e),n(t).focus())}var i={isSupported:function(){return a&&document.queryCommandSupported("copy")},copy:function(o){var a=!1,c="APEX.CLIPBOARD.NOTSUP";return o=o||{},this.isSupported()&&(d(),a=document.execCommand("copy")),a||(o.noWarn||t.loadMessagesIfNeeded([c],(function(){apex.message.alert(t.getMessage(c))})),e.warn("Browser does not support clipboard copy command.")),a&&o.tooltipElement&&n(o.tooltipElement).tooltip({content:t.getMessage("APEX.CLIPBOARD.COPIED"),close:function(){n(this).tooltip("destroy")}}),a},addElement:function(e,t){var o=this,a=n(e);-1===a.prop("tabIndex")&&a.prop("tabIndex",0),apex.clipboard.addHandler(a[0],(function(e){return e.setData("text/plain",(a.text()||a.val()).replace(/\n/g,"\r\n")),!0})),t&&n(t).click((function(){a.focus(),o.copy({tooltipElement:t}),n(this).focus()}))},addText:function(e,t){var o=this,a=n(t);apex.clipboard.addHandler(a[0],(function(t){return t.setData("text/plain",e),!0})),n(t).click((function(){o.copy({tooltipElement:t}),n(this).focus()}))},addHandler:function(e,t){0===o.length&&(n(document).on("copy.cbManager",c),n(document.body).append("<input id='apexCBMDummySelection' style='display:none;' value='x'>")),n(e).on("keydown.cbManager",(function(e){((e.metaKey||e.ctrlKey)&&67===e.which||e.shiftKey&&121===e.which)&&d()})).on("contextmenu.cbManager",(function(){d()})),o.push({element:e,handler:t})},removeHandler:function(e){var t;for(t=0;t<o.length;t++)if(o[t].element===e){o.splice(t,1);break}n(e).off(".cbManager"),0===o.length&&(n(document).off(".cbManager"),n("#apexCBMDummySelection").remove())}};return n((function(){n("[data-clipboard-source]",apex.gPageContext$).each((function(){var e=n(this),t=e.attr("data-clipboard-source");"#"===t.substr(0,1)?i.addElement(n(t)[0],e[0]):i.addText(t,e[0])}))})),i}(apex.debug,apex.lang,apex.jQuery);
apex.da={},function(da,$,event,util,message){"use strict";function checkCondition(e,t,n,a){return!e||("JAVASCRIPT_EXPRESSION"===e?n.call(a):da.testCondition(t,e,n))}da.gEventList=[],da.gCancelActions=!1,da.init=function(){$(da.gEventList).each((function(){var e,t;if(e=$.extend({name:null,bindDelegateTo:null,isIGRegion:!1},this),t=da.constructSelector({elementType:e.triggeringElementType,element:e.triggeringElement,regionId:e.triggeringRegionId,buttonId:e.triggeringButtonId}),-1===$.inArray(e.bindEventType,["ready","pageinit"])){switch(e.bindType){case"bind":$(t,apex.gPageContext$).on(e.bindEventType,(function(t,n){da.actions(this,e,t,n)}));break;case"live":(e.bindDelegateTo?$(e.bindDelegateTo,apex.gPageContext$):apex.gPageContext$).on(e.bindEventType,t,(function(t,n){da.actions(this,e,t,n)}));break;case"one":$(t,apex.gPageContext$).one(e.bindEventType,(function(t,n){da.actions(this,e,t,n)}))}e.anyActionsFireOnInit&&(e.isIGRegion?$("#"+util.escapeCSS(e.triggeringRegionId),apex.gPageContext$).on("apexbeginrecordedit",(function(n,a){da.actions(t,e,n,a)})):da.actions(t,e,"load"))}else da.actions(t,e,"load")}))},da.constructSelector=function(pOptions){function escapeSelector(e){var t;return t=e.split(","),"#"+$.map(t,(function(e){return util.escapeCSS(e)})).join(",#")}var lLen,lDefaults,lOptions,lSelector;switch(lDefaults={elementType:null,element:null,regionId:null,buttonId:null,triggeringElement:null,eventTarget:null},lOptions=$.extend(lDefaults,pOptions),lOptions.elementType){case"ITEM":case"COLUMN":lSelector=escapeSelector(lOptions.element);break;case"REGION":lSelector="#"+util.escapeCSS(lOptions.regionId);break;case"BUTTON":lSelector="#"+util.escapeCSS(lOptions.buttonId);break;case"JAVASCRIPT_EXPRESSION":lSelector=lOptions.element();break;case"DOM_OBJECT":apex.debug.deprecated("DOM Object selector"),lSelector="#"+lOptions.element.replace(/,/g,",#");try{lLen=$(lSelector,apex.gPageContext$).length}catch(e){lLen=0}if(0===lLen)try{lSelector=eval(lOptions.element)}catch(e){lSelector=lOptions.element}break;case"JQUERY_SELECTOR":lSelector=lOptions.element;break;case"TRIGGERING_ELEMENT":lSelector=lOptions.triggeringElement;break;case"EVENT_SOURCE":lSelector=lOptions.eventTarget;break;default:lSelector=apex.gPageContext$}return"#"===lSelector&&(lSelector=void 0),lSelector},da.actions=function(e,t,n,a){event.gCancelFlag=!1,da.gCancelActions=!1,$(e,apex.gPageContext$).each((function(){var e,i;e={triggeringElement:this,browserEvent:n,data:a},i=checkCondition(t.triggeringConditionType,t.conditionElement,t.triggeringConditionExpression,e),da.doActions(t,0,i,e),da.gCancelActions=!1}))},da.doActions=function(e,t,n,a){for(var i=e.actionList.length,r=t;r<i;r++){var l,o,c,s;if(da.gCancelActions)return!1;if(l={eventResult:null,conditionElement:null,conditionType:null,conditionExpression:null,executeOnPageInit:!1,stopExecutionOnError:!0,action:null,affectedElementsType:null,affectedRegionId:null,affectedElements:null,javascriptFunction:null,ajaxIdentifier:null,attribute01:null,attribute02:null,attribute03:null,attribute04:null,attribute05:null,attribute06:null,attribute07:null,attribute08:null,attribute09:null,attribute10:null,attribute11:null,attribute12:null,attribute13:null,attribute14:null,attribute15:null},"NATIVE_ALERT"!==(o=$.extend(l,e.actionList[r])).action&&"NATIVE_CONFIRM"!==o.action||(o.waitForResult=!0),("load"!==a.browserEvent||"load"===a.browserEvent&&(o.executeOnPageInit||-1!==$.inArray(e.bindEventType,["ready","pageinit"])))&&o.eventResult===n&&checkCondition(o.conditionType,o.conditionElement,o.conditionExpression,a)&&(c=da.constructSelector({elementType:o.affectedElementsType,element:o.affectedElements,regionId:o.affectedRegionId,buttonId:o.affectedButtonId,triggeringElement:a.triggeringElement,eventTarget:a.browserEvent.target}),o.waitForResult&&(s=function(t){da.gCancelActions=o.stopExecutionOnError&&t,da.doActions(e,r+1,n,a)}),!1===da.doAction(a,c,o,e.name,s)&&o.stopExecutionOnError&&(da.gCancelActions=!0),o.waitForResult))return!1}},da.testCondition=function(e,t,n){var a,i,r=apex.item(e),l=r.getValue();switch(t){case"EQUALS":$.isArray(l)?(a=!1,$.each(l,(function(e,t){if(a=t===n)return!1}))):a=l===n;break;case"NOT_EQUALS":$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=t!==n))return!1}))):a=l!==n;break;case"IN_LIST":i=n.split(","),$.isArray(l)?(a=!1,$.each(l,(function(e,t){if(a=-1!==$.inArray(t,i))return!1}))):a=-1!==$.inArray(l,i);break;case"NOT_IN_LIST":i=n.split(","),$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=-1===$.inArray(t,i)))return!1}))):a=-1===$.inArray(l,i);break;case"GREATER_THAN":$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=t>parseFloat(n)))return!1}))):a=l>parseFloat(n);break;case"GREATER_THAN_OR_EQUAL":$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=t>=parseFloat(n)))return!1}))):a=l>=parseFloat(n);break;case"LESS_THAN":$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=t<parseFloat(n)))return!1}))):a=l<parseFloat(n);break;case"LESS_THAN_OR_EQUAL":$.isArray(l)?(a=!0,$.each(l,(function(e,t){if(!(a=t<=parseFloat(n)))return!1}))):a=l<=parseFloat(n);break;case"NULL":a=r.isEmpty();break;case"NOT_NULL":a=!r.isEmpty();break;default:a=!0}return a},da.doAction=function(e,t,n,a,i){var r={triggeringElement:e.triggeringElement,affectedElements:$(t,apex.gPageContext$),action:n,browserEvent:e.browserEvent,data:e.data,resumeCallback:i};if(n.javascriptFunction)return apex.debug.log("Dynamic Action Fired: "+a+" ("+n.action+")",r),n.javascriptFunction.call(r)},da.resume=function(e,t){$.isFunction(e)&&e(t)},da.cancel=function(){apex.event.gCancelFlag=!0,da.gCancelActions=!0},da.handleAjaxErrors=function(e,t,n,a){var i;if(0!==e.status)return i="APEX"===t?n:"Error: "+t+" - "+n,void message.alert(i,(function(){da.resume(a,!0)}));da.resume(a,!0)}}(apex.da,apex.jQuery,apex.event,apex.util,apex.message);
!function(t,e,a,i,n,s,l,u){"use strict";t.show=function(){var t;this.affectedElements&&(t="Y"===this.action.attribute01,this.affectedElements.each((function(){a(this).show(t)})))},t.hide=function(){var t;this.affectedElements&&(t="Y"===this.action.attribute01,this.affectedElements.each((function(){a(this).hide(t)})))},t.enable=function(){this.affectedElements&&this.affectedElements.each((function(){a(this).enable()}))},t.disable=function(){this.affectedElements&&this.affectedElements.each((function(){a(this).disable()}))},t.setValue=function(){var a=this.action,i=a.attribute01,n=a.attribute02,s=a.attribute04,l=a.attribute05,u="Y"===a.attribute09,c=a.attribute10,r=a.waitForResult&&"sync"===a.attribute11,o=this.affectedElements,f=this.resumeCallback;function h(e){o.each((function(){$s(this,e,null,u)})),t.resume(f,!1)}"STATIC_ASSIGNMENT"===i?h(n):"SQL_STATEMENT"===i||"PLSQL_EXPRESSION"===i||"FUNCTION_BODY"===i?e.plugin(a.ajaxIdentifier,{pageItems:s},{loadingIndicator:o,clear:function(){r||o.each((function(){$s(this,"",null,!0)}))},success:function(e){var n,s;if("SQL_STATEMENT"===i)if("ITEM"===a.affectedElementsType||"COLUMN"===a.affectedElementsType){for(var l=0,c=(n=a.affectedElements.split(",")).length;l<c;l++)s=void 0!==e.values[l]?e.values[l]:"",$s(n[l],s,null,u);t.resume(f,!1)}else h(e.values[0]);else h(e.value)},error:function(e,a,i){t.handleAjaxErrors(e,a,i,f)},async:!r,target:this.browserEvent.target}):"JAVASCRIPT_EXPRESSION"===i?h(l.call(this)):"DIALOG_RETURN_ITEM"===i&&h(this.data[c])},t.executePlSqlCode=function(){var a=this.action,n=a.attribute01,s=a.attribute02,l="Y"===a.attribute04,u=a.waitForResult&&"sync"===a.attribute05,c=this.resumeCallback;e.plugin(a.ajaxIdentifier,{pageItems:n},{dataType:s?"json":"",loadingIndicator:s,clear:function(){u||i(s,apex.gPageContext$).each((function(){$s(this,"",null,!0)}))},success:function(e){var a,i;if(e&&e.item){a=e.item.length,i=e.item;for(var n=0;n<a;n++)$s(i[n].id,i[n].value,null,l)}t.resume(c,!1)},error:function(e,a,i){t.handleAjaxErrors(e,a,i,c)},async:!u,target:this.browserEvent.target})},t.clear=function(){this.affectedElements&&this.affectedElements.each((function(){$s(this,"","")}))},t.addClass=function(){this.affectedElements&&this.affectedElements.addClass(this.action.attribute01)},t.removeClass=function(){this.affectedElements&&(this.action.attribute01?this.affectedElements.removeClass(this.action.attribute01):this.affectedElements.removeClass())},t.setCSS=function(){var t=this.action;this.affectedElements.each((function(){a(this).setStyle(t.attribute01,t.attribute02)}))},t.setFocus=function(){this.affectedElements.each((function(){a(this).setFocus()}))},t.submitPage=function(){var t=this.action,e=t.attribute01,a="Y"===t.attribute02;apex.submit({request:e,showWait:a})},t.refresh=function(){this.affectedElements&&this.affectedElements.each((function(){var t=this.id;t&&n.isRegion(t)?n(t).refresh():a(t).refresh()}))},t.cancelEvent=function(){t.cancel(),this.browserEvent.stopImmediatePropagation(),this.browserEvent.preventDefault()},t.showAlert=function(){var e=this.action,a=this.resumeCallback,i=null!==e.attribute01?u.applyTemplate(e.attribute01):null,n=null!==e.attribute02?u.applyTemplate(e.attribute02):null,l=e.attribute03,c=e.attribute04,r=e.attribute05,o=null!==e.attribute06?u.applyTemplate(e.attribute06):null;s.showDialog(n,{title:i,callback:function(){t.resume(a,!1)},dialogClass:"ui-dialog--notification "+(r||""),unsafe:!1,okLabel:o,modern:!0,style:l,iconClass:c})},t.askConfirm=function(){var e=this.action,a=this.resumeCallback,i=null!==e.attribute01?u.applyTemplate(e.attribute01):null,n=null!==e.attribute02?u.applyTemplate(e.attribute02):null,l=e.attribute03,c=e.attribute04,r=e.attribute05,o=null!==e.attribute06?u.applyTemplate(e.attribute06):null,f=null!==e.attribute07?u.applyTemplate(e.attribute07):null;s.showDialog(n,{confirm:!0,title:i,callback:function(e){e?t.resume(a,!1):t.cancel()},dialogClass:"ui-dialog--notification "+(r||""),unsafe:!1,okLabel:o,cancelLabel:f,modern:!0,style:l,iconClass:c})}}(apex.da,apex.server,apex.item,apex.jQuery,apex.region,apex.message,apex.lang,apex.util);
apex.session={},function(e,i,s,t,n,o,a){"use strict";var r,m,l,d,c,f,u;function _(){o("#apex_session_alert_dlg").remove()}function E(e,s){var t=o.extend({id:"apex_session_alert_dlg",confirm:!0},s);return _(),i.showDialog(e,t)}function x(){d&&(clearTimeout(d),n.info("Idle session warning timer cleared. ID="+d)),c&&(clearTimeout(c),n.info("Idle session expired timer cleared. ID="+c))}function S(e){var i=new Date,s=e.life_time_ms/1e3,t=r<s?r:s;return i.setSeconds(i.getSeconds()+t),i.toLocaleTimeString(void 0,{timeStyle:"medium"})}function g(i){x(),_(),d=setTimeout((function(){e.getTimeouts((function(i){n.info("Is session idle time still valid?",i),i.idle_time_ms-1<1e3*r?(n.info("...Yes, show warning."),E(t.formatMessage("APEX.SESSION.ALERT.IDLE_WARN",S(i)),{okLabelKey:"APEX.SESSION.ALERT.EXTEND",callback:function(i){i&&e.getTimeouts((function(e){n.info("Session extended",e),g(e)}),!0)}})):(n.info("...No, reset idle timers to new values."),g(i))}))}),i.idle_time_ms-1e3*r),c=setTimeout((function(){e.getTimeouts((function(e){n.info("Is session idle expired time still valid?",e),0===e.idle_time_ms?(n.info("...Yes, show expired alert."),f&&(clearTimeout(f),n.info("Max session warning timer cleared. ID="+f)),u&&(clearTimeout(u),n.info("Max session expired timer cleared. ID="+u)),E(t.getMessage("APEX.SESSION.ALERT.EXPIRED"),{okLabelKey:"APEX.SESSION.ALERT.CREATE_NEW",callback:function(e){e&&s.redirect(m)}})):(n.info("...No, reset idle timers to new values."),g(e))}))}),i.idle_time_ms),n.info("Idle session warning timer started for "+(i.idle_time_ms/1e3-r)+" seconds. ID="+d),n.info("Idle session expired timer started for "+i.idle_time_ms/1e3+" seconds. ID="+c)}e.getTimeouts=function(e,i){o.get({url:"apex_session.emit_timeouts?p_app_id="+a.APP_ID+"&p_session_id="+a.APP_SESSION+"&p_reset_idle="+(i?"Y":"N"),dataType:"json",success:e,error:function(e,i,s){n.error("Error occurred when making session.getTimeouts Ajax call.",e,i,s)}})},e.initTimeouts=function(e,i,o,a){var d;m=o,l=a,(r=e)>0&&(r>i.max_idle_time_ms/1e3?n.warn("Invalid metadata state. Session timeout warning time ("+r+" seconds) cannot be greater than the maximum session idle time ("+i.max_idle_time_ms/1e3+" seconds)."):(g(i),d=i,f=setTimeout((function(){n.info("Session max time about to expire, show warning."),x(),E(t.formatMessage("APEX.SESSION.ALERT.MAX_WARN",S(d)),{confirm:!1})}),d.life_time_ms-1e3*r),u=setTimeout((function(){n.info("Session max time expired, show expired alert."),E(t.getMessage("APEX.SESSION.ALERT.EXPIRED"),{okLabelKey:"APEX.SESSION.ALERT.CREATE_NEW",callback:function(e){e&&s.redirect(l)}})}),d.life_time_ms),n.info("Max session warning timer started for "+(d.life_time_ms/1e3-r)+" seconds. ID="+f),n.info("Max session expired timer started for "+d.life_time_ms/1e3+" seconds. ID="+u)))}}(apex.session,apex.message,apex.navigation,apex.lang,apex.debug,apex.jQuery,apex.env);
/*! jQuery UI - v1.12.1 - 2018-10-14
* http://jqueryui.com
* Includes: version.js, unique-id.js, keycode.js, plugin.js, focusable.js, tabbable.js, jquery-1-7.js, ie.js, form.js, data.js, widget.js, mouse.js, position.js, escape-selector.js, disable-selection.js, form-reset-mixin.js, labels.js, scroll-parent.js, safe-active-element.js, safe-blur.js, effect.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, button.js, checkboxradio.js, controlgroup.js, datepicker.js, dialog.js, tooltip.js, effect-drop.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){for(var b=a.css("visibility");"inherit"===b;)a=a.parent(),b=a.css("visibility");return"hidden"!==b}function c(a){for(var b,c;a.length&&a[0]!==document;){if(b=a.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(a.css("zIndex"),10),!isNaN(c)&&0!==c))return c;a=a.parent()}return 0}function d(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.regional.en=a.extend(!0,{},this.regional[""]),this.regional["en-US"]=a.extend(!0,{},this.regional.en),this.dpDiv=e(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function e(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.on("mouseout",c,function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",c,f)}function f(){a.datepicker._isDisabledDatepicker(q.inline?q.dpDiv.parent()[0]:q.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))}function g(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.ui=a.ui||{};a.ui.version="1.12.1",a.fn.extend({uniqueId:function(){var a=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},a.ui.plugin={add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c,d){var e,f=a.plugins[b];if(f&&(d||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(e=0;e<f.length;e++)a.options[f[e][0]]&&f[e][1].apply(a.element,c)}};a.ui.focusable=function(c,d){var e,f,g,h,i,j=c.nodeName.toLowerCase();return"area"===j?(e=c.parentNode,f=e.name,!(!c.href||!f||"map"!==e.nodeName.toLowerCase())&&(g=a("img[usemap='#"+f+"']"),g.length>0&&g.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(j)?(h=!c.disabled,h&&(i=a(c).closest("fieldset")[0],i&&(h=!i.disabled))):h="a"===j?c.href||d:d,h&&a(c).is(":visible")&&b(a(c)))},a.extend(a.expr[":"],{focusable:function(b){return a.ui.focusable(b,null!=a.attr(b,"tabindex"))}});a.ui.focusable,a.extend(a.expr[":"],{tabbable:function(b){var c=a.attr(b,"tabindex"),d=null!=c;return(!d||c>=0)&&a.ui.focusable(b,d)}});"1.7"===a.fn.jquery.substring(0,3)&&(a.each(["Width","Height"],function(b,c){function d(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===c?["Left","Right"]:["Top","Bottom"],f=c.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(b){return void 0===b?g["inner"+c].call(this):this.each(function(){a(this).css(f,d(this,b)+"px")})},a.fn["outer"+c]=function(b,e){return"number"!=typeof b?g["outer"+c].call(this,b):this.each(function(){a(this).css(f,d(this,b,!0,e)+"px")})}}),a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});var h=(a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):a(this[0].form)},a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])}}),0),i=Array.prototype.slice;a.cleanData=function(b){return function(c){var d,e,f;for(f=0;null!=(e=c[f]);f++)try{d=a._data(e,"events"),d&&d.remove&&a(e).triggerHandler("remove")}catch(g){}b(c)}}(a.cleanData),a.widget=function(b,c,d){var e,f,g,h={},i=b.split(".")[0];b=b.split(".")[1];var j=i+"-"+b;return d||(d=c,c=a.Widget),a.isArray(d)&&(d=a.extend.apply(null,[{}].concat(d))),a.expr[":"][j.toLowerCase()]=function(b){return!!a.data(b,j)},a[i]=a[i]||{},e=a[i][b],f=a[i][b]=function(a,b){return this._createWidget?void(arguments.length&&this._createWidget(a,b)):new f(a,b)},a.extend(f,e,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),g=new c,g.options=a.widget.extend({},g.options),a.each(d,function(b,d){return a.isFunction(d)?void(h[b]=function(){function a(){return c.prototype[b].apply(this,arguments)}function e(a){return c.prototype[b].apply(this,a)}return function(){var b,c=this._super,f=this._superApply;return this._super=a,this._superApply=e,b=d.apply(this,arguments),this._super=c,this._superApply=f,b}}()):void(h[b]=d)}),f.prototype=a.widget.extend(g,{widgetEventPrefix:e?g.widgetEventPrefix||b:b},h,{constructor:f,namespace:i,widgetName:b,widgetFullName:j}),e?(a.each(e._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,f,c._proto)}),delete e._childConstructors):c._childConstructors.push(f),a.widget.bridge(b,f),f},a.widget.extend=function(b){for(var c,d,e=i.call(arguments,1),f=0,g=e.length;f<g;f++)for(c in e[f])d=e[f][c],e[f].hasOwnProperty(c)&&void 0!==d&&(a.isPlainObject(d)?b[c]=a.isPlainObject(b[c])?a.widget.extend({},b[c],d):a.widget.extend({},d):b[c]=d);return b},a.widget.bridge=function(b,c){var d=c.prototype.widgetFullName||b;a.fn[b]=function(e){var f="string"==typeof e,g=i.call(arguments,1),h=this;return f?this.length||"instance"!==e?this.each(function(){var c,f=a.data(this,d);return"instance"===e?(h=f,!1):f?a.isFunction(f[e])&&"_"!==e.charAt(0)?(c=f[e].apply(f,g),c!==f&&void 0!==c?(h=c&&c.jquery?h.pushStack(c.get()):c,!1):void 0):a.error("no such method '"+e+"' for "+b+" widget instance"):a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+e+"'")}):h=void 0:(g.length&&(e=a.widget.extend.apply(null,[e].concat(g))),this.each(function(){var b=a.data(this,d);b?(b.option(e||{}),b._init&&b._init()):a.data(this,d,new c(e,this))})),h}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(b,c){c=a(c||this.defaultElement||this)[0],this.element=a(c),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=a(),this.hoverable=a(),this.focusable=a(),this.classesElementLookup={},c!==this&&(a.data(c,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===c&&this.destroy()}}),this.document=a(c.style?c.ownerDocument:c.document||c),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){var b=this;this._destroy(),a.each(this.classesElementLookup,function(a,c){b._removeClass(c,a)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:a.noop,widget:function(){return this.element},option:function(b,c){var d,e,f,g=b;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof b)if(g={},d=b.split("."),b=d.shift(),d.length){for(e=g[b]=a.widget.extend({},this.options[b]),f=0;f<d.length-1;f++)e[d[f]]=e[d[f]]||{},e=e[d[f]];if(b=d.pop(),1===arguments.length)return void 0===e[b]?null:e[b];e[b]=c}else{if(1===arguments.length)return void 0===this.options[b]?null:this.options[b];g[b]=c}return this._setOptions(g),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return"classes"===a&&this._setOptionClasses(b),this.options[a]=b,"disabled"===a&&this._setOptionDisabled(b),this},_setOptionClasses:function(b){var c,d,e;for(c in b)e=this.classesElementLookup[c],b[c]!==this.options.classes[c]&&e&&e.length&&(d=a(e.get()),this._removeClass(e,c),d.addClass(this._classes({element:d,keys:c,classes:b,add:!0})))},_setOptionDisabled:function(a){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!a),a&&(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(b){function c(c,f){var g,h;for(h=0;h<c.length;h++)g=e.classesElementLookup[c[h]]||a(),g=a(b.add?a.unique(g.get().concat(b.element.get())):g.not(b.element).get()),e.classesElementLookup[c[h]]=g,d.push(c[h]),f&&b.classes[c[h]]&&d.push(b.classes[c[h]])}var d=[],e=this;return b=a.extend({element:this.element,classes:this.options.classes||{}},b),this._on(b.element,{remove:"_untrackClassesElement"}),b.keys&&c(b.keys.match(/\S+/g)||[],!0),b.extra&&c(b.extra.match(/\S+/g)||[]),d.join(" ")},_untrackClassesElement:function(b){var c=this;a.each(c.classesElementLookup,function(d,e){a.inArray(b.target,e)!==-1&&(c.classesElementLookup[d]=a(e.not(b.target).get()))})},_removeClass:function(a,b,c){return this._toggleClass(a,b,c,!1)},_addClass:function(a,b,c){return this._toggleClass(a,b,c,!0)},_toggleClass:function(a,b,c,d){d="boolean"==typeof d?d:c;var e="string"==typeof a||null===a,f={extra:e?b:c,keys:e?a:b,element:e?this.element:a,add:d};return f.element.toggleClass(this._classes(f),d),this},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^([\w:-]*)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.on(j,k,h):c.on(j,h)})},_off:function(b,c){c=(c||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,b.off(c).off(c),this.bindings=a(this.bindings.not(b).get()),this.focusable=a(this.focusable.not(b).get()),this.hoverable=a(this.hoverable.not(b).get())},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){this._addClass(a(b.currentTarget),null,"ui-state-hover")},mouseleave:function(b){this._removeClass(a(b.currentTarget),null,"ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){this._addClass(a(b.currentTarget),null,"ui-state-focus")},focusout:function(b){this._removeClass(a(b.currentTarget),null,"ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}});var j=(a.widget,!1);a(document).on("mouseup",function(){j=!1});a.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.on("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).on("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.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(b){if(!j){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var c=this,d=1===b.which,e=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(d&&!e&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return c._mouseMove(a)},this._mouseUpDelegate=function(a){return c._mouseUp(a)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),j=!0,!0))}},_mouseMove:function(b){if(this._mouseMoved){if(a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button)return this._mouseUp(b);if(!b.which)if(b.originalEvent.altKey||b.originalEvent.ctrlKey||b.originalEvent.metaKey||b.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(b)}return(b.which||b.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,j=!1,b.preventDefault()},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function b(a,b,c){return[parseFloat(a[0])*(l.test(a[0])?b/100:1),parseFloat(a[1])*(l.test(a[1])?c/100:1)]}function c(b,c){return parseInt(a.css(b,c),10)||0}function d(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}var e,f=Math.max,g=Math.abs,h=/left|center|right/,i=/top|center|bottom/,j=/[\+\-]\d+(\.[\d]+)?%?/,k=/^\w+/,l=/%$/,m=a.fn.position;a.position={scrollbarWidth:function(){if(void 0!==e)return e;var b,c,d=a("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),f=d.children()[0];return a("body").append(d),b=f.offsetWidth,d.css("overflow","scroll"),c=f.offsetWidth,b===c&&(c=d[0].clientWidth),d.remove(),e=b-c},getScrollInfo:function(b){var c=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),d=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:f?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]),e=!!c[0]&&9===c[0].nodeType,f=!d&&!e;return{element:c,isWindow:d,isDocument:e,offset:f?a(b).offset():{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:c.outerWidth(),height:c.outerHeight()}}},a.fn.position=function(e){if(!e||!e.of)return m.apply(this,arguments);e=a.extend({},e);var l,n,o,p,q,r,s=a(e.of),t=a.position.getWithinInfo(e.within),u=a.position.getScrollInfo(t),v=(e.collision||"flip").split(" "),w={};return r=d(s),s[0].preventDefault&&(e.at="left top"),n=r.width,o=r.height,p=r.offset,q=a.extend({},p),a.each(["my","at"],function(){var a,b,c=(e[this]||"").split(" ");1===c.length&&(c=h.test(c[0])?c.concat(["center"]):i.test(c[0])?["center"].concat(c):["center","center"]),c[0]=h.test(c[0])?c[0]:"center",c[1]=i.test(c[1])?c[1]:"center",a=j.exec(c[0]),b=j.exec(c[1]),w[this]=[a?a[0]:0,b?b[0]:0],e[this]=[k.exec(c[0])[0],k.exec(c[1])[0]]}),1===v.length&&(v[1]=v[0]),"right"===e.at[0]?q.left+=n:"center"===e.at[0]&&(q.left+=n/2),"bottom"===e.at[1]?q.top+=o:"center"===e.at[1]&&(q.top+=o/2),l=b(w.at,n,o),q.left+=l[0],q.top+=l[1],this.each(function(){var d,h,i=a(this),j=i.outerWidth(),k=i.outerHeight(),m=c(this,"marginLeft"),r=c(this,"marginTop"),x=j+m+c(this,"marginRight")+u.width,y=k+r+c(this,"marginBottom")+u.height,z=a.extend({},q),A=b(w.my,i.outerWidth(),i.outerHeight());"right"===e.my[0]?z.left-=j:"center"===e.my[0]&&(z.left-=j/2),"bottom"===e.my[1]?z.top-=k:"center"===e.my[1]&&(z.top-=k/2),z.left+=A[0],z.top+=A[1],d={marginLeft:m,marginTop:r},a.each(["left","top"],function(b,c){a.ui.position[v[b]]&&a.ui.position[v[b]][c](z,{targetWidth:n,targetHeight:o,elemWidth:j,elemHeight:k,collisionPosition:d,collisionWidth:x,collisionHeight:y,offset:[l[0]+A[0],l[1]+A[1]],my:e.my,at:e.at,within:t,elem:i})}),e.using&&(h=function(a){var b=p.left-z.left,c=b+n-j,d=p.top-z.top,h=d+o-k,l={target:{element:s,left:p.left,top:p.top,width:n,height:o},element:{element:i,left:z.left,top:z.top,width:j,height:k},horizontal:c<0?"left":b>0?"right":"center",vertical:h<0?"top":d>0?"bottom":"middle"};n<j&&g(b+c)<n&&(l.horizontal="center"),o<k&&g(d+h)<o&&(l.vertical="middle"),f(g(b),g(c))>f(g(d),g(h))?l.important="horizontal":l.important="vertical",e.using.call(this,a,l)}),i.offset(a.extend(z,{using:h}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,g=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-g-e;b.collisionWidth>g?i>0&&j<=0?(c=a.left+i+b.collisionWidth-g-e,a.left+=i-c):j>0&&i<=0?a.left=e:i>j?a.left=e+g-b.collisionWidth:a.left=e:i>0?a.left+=i:j>0?a.left-=j:a.left=f(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,g=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-g-e;b.collisionHeight>g?i>0&&j<=0?(c=a.top+i+b.collisionHeight-g-e,a.top+=i-c):j>0&&i<=0?a.top=e:i>j?a.top=e+g-b.collisionHeight:a.top=e:i>0?a.top+=i:j>0?a.top-=j:a.top=f(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,h=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-h-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];k<0?(c=a.left+m+n+o+b.collisionWidth-h-f,(c<0||c<g(k))&&(a.left+=m+n+o)):l>0&&(d=a.left-b.collisionPosition.marginLeft+m+n+o-i,(d>0||g(d)<l)&&(a.left+=m+n+o))},top:function(a,b){var c,d,e=b.within,f=e.offset.top+e.scrollTop,h=e.height,i=e.isWindow?e.scrollTop:e.offset.top,j=a.top-b.collisionPosition.marginTop,k=j-i,l=j+b.collisionHeight-h-i,m="top"===b.my[1],n=m?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,o="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,p=-2*b.offset[1];k<0?(d=a.top+n+o+p+b.collisionHeight-h-f,(d<0||d<g(k))&&(a.top+=n+o+p)):l>0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,(c>0||g(c)<l)&&(a.top+=n+o+p))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}}}();var k=(a.ui.position,a.ui.escapeSelector=function(){var a=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(b){return b.replace(a,"\\$1")}}(),a.fn.extend({disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),a.ui.formResetMixin={_formResetHandler:function(){var b=a(this);setTimeout(function(){var c=b.data("ui-form-reset-instances");a.each(c,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var a=this.form.data("ui-form-reset-instances")||[];a.length||this.form.on("reset.ui-form-reset",this._formResetHandler),a.push(this),this.form.data("ui-form-reset-instances",a)}},_unbindFormResetHandler:function(){if(this.form.length){var b=this.form.data("ui-form-reset-instances");b.splice(a.inArray(this,b),1),b.length?this.form.data("ui-form-reset-instances",b):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},a.fn.labels=function(){var b,c,d,e,f;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),d=this.attr("id"),d&&(b=this.eq(0).parents().last(),f=b.add(b.length?b.siblings():this.siblings()),c="label[for='"+a.ui.escapeSelector(d)+"']",e=e.add(f.find(c).addBack(c))),this.pushStack(e))},a.fn.scrollParent=function(b){var c=this.css("position"),d="absolute"===c,e=b?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var b=a(this);return(!d||"static"!==b.css("position"))&&e.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return"fixed"!==c&&f.length?f:a(this[0].ownerDocument||document)},a.ui.safeActiveElement=function(a){var b;try{b=a.activeElement}catch(c){b=a.body}return b||(b=a.body),b.nodeName||(b=a.body),b},a.ui.safeBlur=function(b){b&&"body"!==b.nodeName.toLowerCase()&&a(b).trigger("blur")},"ui-effects-"),l="ui-effects-style",m="ui-effects-animated",n=a;a.effects={effect:{}},function(a,b){function c(a,b,c){var d=l[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function d(b){var c=j(),d=c._rgba=[];return b=b.toLowerCase(),o(i,function(a,e){var f,g=e.re.exec(b),h=g&&e.parse(g),i=e.space||"rgba";if(h)return f=c[i](h),c[k[i].cache]=f[k[i].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,f.transparent),c):f[b]}function e(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var f,g="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",h=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],j=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},k={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},l={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=j.support={},n=a("<p>")[0],o=a.each;n.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=n.style.backgroundColor.indexOf("rgba")>-1,o(k,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),j.fn=a.extend(j.prototype,{parse:function(e,g,h,i){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(g),g=b);var l=this,m=a.type(e),n=this._rgba=[];return g!==b&&(e=[e,g,h,i],m="array"),"string"===m?this.parse(d(e)||f._default):"array"===m?(o(k.rgba.props,function(a,b){n[b.idx]=c(e[b.idx],b)}),this):"object"===m?(e instanceof j?o(k,function(a,b){e[b.cache]&&(l[b.cache]=e[b.cache].slice())}):o(k,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!l[f]&&d.to){if("alpha"===a||null==e[a])return;l[f]=d.to(l._rgba)}l[f][b.idx]=c(e[a],b,!0)}),l[f]&&a.inArray(null,l[f].slice(0,3))<0&&(l[f][3]=1,d.from&&(l._rgba=d.from(l[f])))}),this):void 0},is:function(a){var b=j(a),c=!0,d=this;return o(k,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return o(k,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=j(a),e=d._space(),f=k[e],g=0===this.alpha()?j("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],j=d[f],k=l[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=c((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=j(b)._rgba;return j(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===j?0:l<=.5?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=d<=.5?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(k,function(d,e){var f=e.props,g=e.cache,i=e.to,k=e.from;j.fn[d]=function(d){if(i&&!this[g]&&(this[g]=i(this._rgba)),d===b)return this[g].slice();var e,h=a.type(d),l="array"===h||"object"===h?d:arguments,m=this[g].slice();return o(f,function(a,b){var d=l["object"===h?a:b.idx];null==d&&(d=m[b.idx]),m[b.idx]=c(d,b)}),k?(e=j(k(m)),e[g]=m,e):j(m)},o(f,function(b,c){j.fn[b]||(j.fn[b]=function(e){var f,g=a.type(e),i="alpha"===b?this._hsla?"hsla":"rgba":d,j=this[i](),k=j[c.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&c.empty?this:("string"===g&&(f=h.exec(e),f&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1))),j[c.idx]=e,this[i](j)))})})}),j.hook=function(b){var c=b.split(" ");o(c,function(b,c){a.cssHooks[c]={set:function(b,e){var f,g,h="";if("transparent"!==e&&("string"!==a.type(e)||(f=d(e)))){if(e=j(f||e),!m.rgba&&1!==e._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}e=e.blend(h&&"transparent"!==h?h:"_default")}e=e.toRgbaString()}try{b.style[c]=e}catch(i){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=j(b.elem,c),b.end=j(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},j.hook(g),a.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},f=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function b(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function c(b,c){var d,f,g={};for(d in c)f=c[d],b[d]!==f&&(e[d]||!a.fx.step[d]&&isNaN(parseFloat(f))||(g[d]=f));return g}var d=["add","remove","toggle"],e={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(n.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){
return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(e,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f,g=a(this),h=g.attr("class")||"",j=i.children?g.find("*").addBack():g;j=j.map(function(){var c=a(this);return{el:c,start:b(this)}}),f=function(){a.each(d,function(a,b){e[b]&&g[b+"Class"](e[b])})},f(),j=j.map(function(){return this.end=b(this.el[0]),this.diff=c(this.start,this.end),this}),g.attr("class",h),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){f(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(g[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(b){return function(c,d,e,f,g){return"boolean"==typeof d||void 0===d?e?a.effects.animateClass.call(this,d?{add:c}:{remove:c},e,f,g):b.apply(this,arguments):a.effects.animateClass.call(this,{toggle:c},d,e,f)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function b(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function c(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}function d(a,b){var c=b.outerWidth(),d=b.outerHeight(),e=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,f=e.exec(a)||["",0,c,d,0];return{top:parseFloat(f[1])||0,right:"auto"===f[2]?c:parseFloat(f[2]),bottom:"auto"===f[3]?d:parseFloat(f[3]),left:parseFloat(f[4])||0}}a.expr&&a.expr.filters&&a.expr.filters.animated&&(a.expr.filters.animated=function(b){return function(c){return!!a(c).data(m)||b(c)}}(a.expr.filters.animated)),a.uiBackCompat!==!1&&a.extend(a.effects,{save:function(a,b){for(var c=0,d=b.length;c<d;c++)null!==b[c]&&a.data(k+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c,d=0,e=b.length;d<e;d++)null!==b[d]&&(c=a.data(k+b[d]),a.css(b[d],c))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).trigger("focus"),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).trigger("focus")),b}}),a.extend(a.effects,{version:"1.12.1",define:function(b,c,d){return d||(d=c,c="effect"),a.effects.effect[b]=d,a.effects.effect[b].mode=c,d},scaledDimensions:function(a,b,c){if(0===b)return{height:0,width:0,outerHeight:0,outerWidth:0};var d="horizontal"!==c?(b||100)/100:1,e="vertical"!==c?(b||100)/100:1;return{height:a.height()*e,width:a.width()*d,outerHeight:a.outerHeight()*e,outerWidth:a.outerWidth()*d}},clipToBox:function(a){return{width:a.clip.right-a.clip.left,height:a.clip.bottom-a.clip.top,left:a.clip.left,top:a.clip.top}},unshift:function(a,b,c){var d=a.queue();b>1&&d.splice.apply(d,[1,0].concat(d.splice(b,c))),a.dequeue()},saveStyle:function(a){a.data(l,a[0].style.cssText)},restoreStyle:function(a){a[0].style.cssText=a.data(l)||"",a.removeData(l)},mode:function(a,b){var c=a.is(":hidden");return"toggle"===b&&(b=c?"show":"hide"),(c?"hide"===b:"show"===b)&&(b="none"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createPlaceholder:function(b){var c,d=b.css("position"),e=b.position();return b.css({marginTop:b.css("marginTop"),marginBottom:b.css("marginBottom"),marginLeft:b.css("marginLeft"),marginRight:b.css("marginRight")}).outerWidth(b.outerWidth()).outerHeight(b.outerHeight()),/^(static|relative)/.test(d)&&(d="absolute",c=a("<"+b[0].nodeName+">").insertAfter(b).css({display:/^(inline|ruby)/.test(b.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:b.css("marginTop"),marginBottom:b.css("marginBottom"),marginLeft:b.css("marginLeft"),marginRight:b.css("marginRight"),"float":b.css("float")}).outerWidth(b.outerWidth()).outerHeight(b.outerHeight()).addClass("ui-effects-placeholder"),b.data(k+"placeholder",c)),b.css({position:d,left:e.left,top:e.top}),c},removePlaceholder:function(a){var b=k+"placeholder",c=a.data(b);c&&(c.remove(),a.removeData(b))},cleanUp:function(b){a.effects.restoreStyle(b),a.effects.removePlaceholder(b)},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function c(b){function c(){h.removeData(m),a.effects.cleanUp(h),"hide"===d.mode&&h.hide(),g()}function g(){a.isFunction(i)&&i.call(h[0]),a.isFunction(b)&&b()}var h=a(this);d.mode=k.shift(),a.uiBackCompat===!1||f?"none"===d.mode?(h[j](),g()):e.call(h[0],d,c):(h.is(":hidden")?"hide"===j:"show"===j)?(h[j](),g()):e.call(h[0],d,g)}var d=b.apply(this,arguments),e=a.effects.effect[d.effect],f=e.mode,g=d.queue,h=g||"fx",i=d.complete,j=d.mode,k=[],l=function(b){var c=a(this),d=a.effects.mode(c,j)||f;c.data(m,!0),k.push(d),f&&("show"===d||d===f&&"hide"===d)&&c.show(),f&&"none"===d||a.effects.saveStyle(c),a.isFunction(b)&&b()};return a.fx.off||!e?j?this[j](d.duration,i):this.each(function(){i&&i.call(this)}):g===!1?this.each(l).each(c):this.queue(h,l).queue(h,c)},show:function(a){return function(d){if(c(d))return a.apply(this,arguments);var e=b.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}}(a.fn.show),hide:function(a){return function(d){if(c(d))return a.apply(this,arguments);var e=b.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}}(a.fn.hide),toggle:function(a){return function(d){if(c(d)||"boolean"==typeof d)return a.apply(this,arguments);var e=b.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d},cssClip:function(a){return a?this.css("clip","rect("+a.top+"px "+a.right+"px "+a.bottom+"px "+a.left+"px)"):d(this.css("clip"),this)},transfer:function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),a.isFunction(c)&&c()})}}),a.fx.step.clip=function(b){b.clipInit||(b.start=a(b.elem).cssClip(),"string"==typeof b.end&&(b.end=d(b.end,b.elem)),b.clipInit=!0),a(b.elem).cssClip({top:b.pos*(b.end.top-b.start.top)+b.start.top,right:b.pos*(b.end.right-b.start.right)+b.start.right,bottom:b.pos*(b.end.bottom-b.start.bottom)+b.start.bottom,left:b.pos*(b.end.left-b.start.left)+b.start.left})}}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}();a.effects;a.widget("ui.draggable",a.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(a,b){this._super(a,b),"handle"===a&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(this._blurActiveElement(b),this._blockFrames(c.iframeFix===!0?"iframe":c.iframeFix),!0))},_blockFrames:function(b){this.iframeBlocks=this.document.find(b).map(function(){var b=a(this);return a("<div>").css("position","absolute").appendTo(b.parent()).outerWidth(b.outerWidth()).outerHeight(b.outerHeight()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(b){var c=a.ui.safeActiveElement(this.document[0]),d=a(b.target);d.closest(c).length||a.ui.safeBlur(c)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===a(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(b),this.originalPosition=this.position=this._generatePosition(b,!1),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_refreshOffsets:function(a){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:a.pageX-this.offset.left,top:a.pageY-this.offset.top}},_mouseDrag:function(b,c){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b,!0),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp(new a.Event("mouseup",b)),!1;this.position=d.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1},_mouseUp:function(b){return this._unblockFrames(),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),this.handleElement.is(b.target)&&this.element.trigger("focus"),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new a.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.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(b){var c=this.options,d=a.isFunction(c.helper),e=d?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return e.parents("body").length||e.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d&&e[0]===this.element[0]&&this._setPositionRelative(),e[0]===this.element[0]||/(fixed|absolute)/.test(e.css("position"))||e.css("position","absolute"),e},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var b=this.offsetParent.offset(),c=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==c&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var a=this.element.position(),b=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(b?0:this.scrollParent.scrollTop()),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(b?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 b,c,d,e=this.options,f=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(f).width()-this.helperProportions.width-this.margins.left,(a(f).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b=/(scroll|auto)/.test(c.css("overflow")),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=c))):void(this.containment=null)},_convertPositionTo:function(a,b){b||(b=this.position);var c="absolute"===a?1:-1,d=this._isRootNode(this.scrollParent[0]);return{top:b.top+this.offset.relative.top*c+this.offset.parent.top*c-("fixed"===this.cssPosition?-this.offset.scroll.top:d?0:this.offset.scroll.top)*c,left:b.left+this.offset.relative.left*c+this.offset.parent.left*c-("fixed"===this.cssPosition?-this.offset.scroll.left:d?0:this.offset.scroll.left)*c}},_generatePosition:function(a,b){var c,d,e,f,g=this.options,h=this._isRootNode(this.scrollParent[0]),i=a.pageX,j=a.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),b&&(this.containment&&(this.relativeContainer?(d=this.relativeContainer.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,a.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),a.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),a.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),a.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f),"y"===g.axis&&(i=this.originalPageX),"x"===g.axis&&(j=this.originalPageY)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:h?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(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d,this],!0),/^(drag|start|stop)/.test(b)&&(this.positionAbs=this._convertPositionTo("absolute"),d.offset=this.positionAbs),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c,d){var e=a.extend({},c,{item:d.element});d.sortables=[],a(d.options.connectToSortable).each(function(){var c=a(this).sortable("instance");c&&!c.options.disabled&&(d.sortables.push(c),c.refreshPositions(),c._trigger("activate",b,e))})},stop:function(b,c,d){var e=a.extend({},c,{item:d.element});d.cancelHelperRemoval=!1,a.each(d.sortables,function(){var a=this;a.isOver?(a.isOver=0,d.cancelHelperRemoval=!0,a.cancelHelperRemoval=!1,a._storedCSS={position:a.placeholder.css("position"),top:a.placeholder.css("top"),left:a.placeholder.css("left")},a._mouseStop(b),a.options.helper=a.options._helper):(a.cancelHelperRemoval=!0,a._trigger("deactivate",b,e))})},drag:function(b,c,d){a.each(d.sortables,function(){var e=!1,f=this;f.positionAbs=d.positionAbs,f.helperProportions=d.helperProportions,f.offset.click=d.offset.click,f._intersectsWith(f.containerCache)&&(e=!0,a.each(d.sortables,function(){return this.positionAbs=d.positionAbs,this.helperProportions=d.helperProportions,this.offset.click=d.offset.click,this!==f&&this._intersectsWith(this.containerCache)&&a.contains(f.element[0],this.element[0])&&(e=!1),e})),e?(f.isOver||(f.isOver=1,d._parent=c.helper.parent(),f.currentItem=c.helper.appendTo(f.element).data("ui-sortable-item",!0),f.options._helper=f.options.helper,f.options.helper=function(){return c.helper[0]},b.target=f.currentItem[0],f._mouseCapture(b,!0),f._mouseStart(b,!0,!0),f.offset.click.top=d.offset.click.top,f.offset.click.left=d.offset.click.left,f.offset.parent.left-=d.offset.parent.left-f.offset.parent.left,f.offset.parent.top-=d.offset.parent.top-f.offset.parent.top,d._trigger("toSortable",b),d.dropped=f.element,a.each(d.sortables,function(){this.refreshPositions()}),d.currentItem=d.element,f.fromOutside=d),f.currentItem&&(f._mouseDrag(b),c.position=f.position)):f.isOver&&(f.isOver=0,f.cancelHelperRemoval=!0,f.options._revert=f.options.revert,f.options.revert=!1,f._trigger("out",b,f._uiHash(f)),f._mouseStop(b,!0),f.options.revert=f.options._revert,f.options.helper=f.options._helper,f.placeholder&&f.placeholder.remove(),c.helper.appendTo(d._parent),d._refreshOffsets(b),c.position=d._generatePosition(b,!0),d._trigger("fromSortable",b),d.dropped=!1,a.each(d.sortables,function(){this.refreshPositions()}))})}}),a.ui.plugin.add("draggable","cursor",{start:function(b,c,d){var e=a("body"),f=d.options;e.css("cursor")&&(f._cursor=e.css("cursor")),e.css("cursor",f.cursor)},stop:function(b,c,d){var e=d.options;e._cursor&&a("body").css("cursor",e._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c,d){var e=a(c.helper),f=d.options;e.css("opacity")&&(f._opacity=e.css("opacity")),e.css("opacity",f.opacity)},stop:function(b,c,d){var e=d.options;e._opacity&&a(c.helper).css("opacity",e._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(a,b,c){c.scrollParentNotHidden||(c.scrollParentNotHidden=c.helper.scrollParent(!1)),c.scrollParentNotHidden[0]!==c.document[0]&&"HTML"!==c.scrollParentNotHidden[0].tagName&&(c.overflowOffset=c.scrollParentNotHidden.offset())},drag:function(b,c,d){var e=d.options,f=!1,g=d.scrollParentNotHidden[0],h=d.document[0];g!==h&&"HTML"!==g.tagName?(e.axis&&"x"===e.axis||(d.overflowOffset.top+g.offsetHeight-b.pageY<e.scrollSensitivity?g.scrollTop=f=g.scrollTop+e.scrollSpeed:b.pageY-d.overflowOffset.top<e.scrollSensitivity&&(g.scrollTop=f=g.scrollTop-e.scrollSpeed)),e.axis&&"y"===e.axis||(d.overflowOffset.left+g.offsetWidth-b.pageX<e.scrollSensitivity?g.scrollLeft=f=g.scrollLeft+e.scrollSpeed:b.pageX-d.overflowOffset.left<e.scrollSensitivity&&(g.scrollLeft=f=g.scrollLeft-e.scrollSpeed))):(e.axis&&"x"===e.axis||(b.pageY-a(h).scrollTop()<e.scrollSensitivity?f=a(h).scrollTop(a(h).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(h).scrollTop())<e.scrollSensitivity&&(f=a(h).scrollTop(a(h).scrollTop()+e.scrollSpeed))),e.axis&&"y"===e.axis||(b.pageX-a(h).scrollLeft()<e.scrollSensitivity?f=a(h).scrollLeft(a(h).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(h).scrollLeft())<e.scrollSensitivity&&(f=a(h).scrollLeft(a(h).scrollLeft()+e.scrollSpeed)))),f!==!1&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}}),a.ui.plugin.add("draggable","snap",{start:function(b,c,d){var e=d.options;d.snapElements=[],a(e.snap.constructor!==String?e.snap.items||":data(ui-draggable)":e.snap).each(function(){var b=a(this),c=b.offset();this!==d.element[0]&&d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o=d.options,p=o.snapTolerance,q=c.offset.left,r=q+d.helperProportions.width,s=c.offset.top,t=s+d.helperProportions.height;for(m=d.snapElements.length-1;m>=0;m--)i=d.snapElements[m].left-d.margins.left,j=i+d.snapElements[m].width,k=d.snapElements[m].top-d.margins.top,l=k+d.snapElements[m].height,r<i-p||q>j+p||t<k-p||s>l+p||!a.contains(d.snapElements[m].item.ownerDocument,d.snapElements[m].item)?(d.snapElements[m].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item})),d.snapElements[m].snapping=!1):("inner"!==o.snapMode&&(e=Math.abs(k-t)<=p,f=Math.abs(l-s)<=p,g=Math.abs(i-r)<=p,h=Math.abs(j-q)<=p,e&&(c.position.top=d._convertPositionTo("relative",{top:k-d.helperProportions.height,left:0}).top),f&&(c.position.top=d._convertPositionTo("relative",{top:l,left:0}).top),g&&(c.position.left=d._convertPositionTo("relative",{top:0,left:i-d.helperProportions.width}).left),h&&(c.position.left=d._convertPositionTo("relative",{top:0,left:j}).left)),n=e||f||g||h,"outer"!==o.snapMode&&(e=Math.abs(k-s)<=p,f=Math.abs(l-t)<=p,g=Math.abs(i-q)<=p,h=Math.abs(j-r)<=p,e&&(c.position.top=d._convertPositionTo("relative",{top:k,left:0}).top),f&&(c.position.top=d._convertPositionTo("relative",{top:l-d.helperProportions.height,left:0}).top),g&&(c.position.left=d._convertPositionTo("relative",{top:0,left:i}).left),h&&(c.position.left=d._convertPositionTo("relative",{top:0,left:j-d.helperProportions.width}).left)),!d.snapElements[m].snapping&&(e||f||g||h||n)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item})),d.snapElements[m].snapping=e||f||g||h||n)}}),a.ui.plugin.add("draggable","stack",{start:function(b,c,d){var e,f=d.options,g=a.makeArray(a(f.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});g.length&&(e=parseInt(a(g[0]).css("zIndex"),10)||0,a(g).each(function(b){a(this).css("zIndex",e+b)}),this.css("zIndex",e+g.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c,d){var e=a(c.helper),f=d.options;e.css("zIndex")&&(f._zIndex=e.css("zIndex")),e.css("zIndex",f.zIndex)},stop:function(b,c,d){var e=d.options;e._zIndex&&a(c.helper).css("zIndex",e._zIndex)}});a.ui.draggable;a.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 b,c=this.options,d=c.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(d)?d:function(a){return a.is(d)},this.proportions=function(){return arguments.length?void(b=arguments[0]):b?b:b={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(c.scope),c.addClasses&&this._addClass("ui-droppable")},_addToManager:function(b){a.ui.ddmanager.droppables[b]=a.ui.ddmanager.droppables[b]||[],a.ui.ddmanager.droppables[b].push(this)},_splice:function(a){for(var b=0;b<a.length;b++)a[b]===this&&a.splice(b,1)},_destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];this._splice(b)},_setOption:function(b,c){if("accept"===b)this.accept=a.isFunction(c)?c:function(a){return a.is(c)};else if("scope"===b){var d=a.ui.ddmanager.droppables[this.options.scope];this._splice(d),this._addToManager(c)}this._super(b,c)},_activate:function(b){var c=a.ui.ddmanager.current;this._addActiveClass(),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this._removeActiveClass(),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this._addHoverClass(),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this._removeHoverClass(),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var c=a(this).droppable("instance");if(c.options.greedy&&!c.options.disabled&&c.options.scope===d.options.scope&&c.accept.call(c.element[0],d.currentItem||d.element)&&o(d,a.extend(c,{offset:c.element.offset()}),c.options.tolerance,b))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.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 o=a.ui.intersect=function(){function a(a,b,c){return a>=b&&a<b+c}return function(b,c,d,e){if(!c.offset)return!1;var f=(b.positionAbs||b.position.absolute).left+b.margins.left,g=(b.positionAbs||b.position.absolute).top+b.margins.top,h=f+b.helperProportions.width,i=g+b.helperProportions.height,j=c.offset.left,k=c.offset.top,l=j+c.proportions().width,m=k+c.proportions().height;switch(d){case"fit":return j<=f&&h<=l&&k<=g&&i<=m;case"intersect":return j<f+b.helperProportions.width/2&&h-b.helperProportions.width/2<l&&k<g+b.helperProportions.height/2&&i-b.helperProportions.height/2<m;case"pointer":return a(e.pageY,k,c.proportions().height)&&a(e.pageX,j,c.proportions().width);case"touch":return(g>=k&&g<=m||i>=k&&i<=m||g<k&&i>m)&&(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l);default:return!1}}}();a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions().height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions({width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight}))}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&o(b,this,this.options.tolerance,c)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").on("scroll.droppable",function(){
b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=o(b,this,this.options.tolerance,c),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a(this).droppable("instance").options.scope===e}),f.length&&(d=a(f[0]).droppable("instance"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").off("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}},a.uiBackCompat!==!1&&a.widget("ui.droppable",a.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)}});a.ui.droppable;a.widget("ui.resizable",a.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(a){return parseFloat(a)||0},_isNumber:function(a){return!isNaN(parseFloat(a))},_hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0||(b[d]=1,e=b[d]>0,b[d]=0,e)},_create:function(){var b,c=this.options,d=this;this._addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(a("<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,b={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(b),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(b),this._proportionallyResize()),this._setupHandles(),c.autoHide&&a(this.element).on("mouseenter",function(){c.disabled||(d._removeClass("ui-resizable-autohide"),d._handles.show())}).on("mouseleave",function(){c.disabled||d.resizing||(d._addClass("ui-resizable-autohide"),d._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_setOption:function(a,b){switch(this._super(a,b),a){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var b,c,d,e,f,g=this.options,h=this;if(this.handles=g.handles||(a(".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=a(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),d=this.handles.split(","),this.handles={},c=0;c<d.length;c++)b=a.trim(d[c]),e="ui-resizable-"+b,f=a("<div>"),this._addClass(f,"ui-resizable-handle "+e),f.css({zIndex:g.zIndex}),this.handles[b]=".ui-resizable-"+b,this.element.append(f);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String?this.handles[c]=this.element.children(this.handles[c]).first().show():(this.handles[c].jquery||this.handles[c].nodeType)&&(this.handles[c]=a(this.handles[c]),this._on(this.handles[c],{mousedown:h._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),this._handles=this._handles.add(this.handles[c])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){h.resizing||(this.className&&(f=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),h.axis=f&&f[1]?f[1]:"se")}),g.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)d=a(this.handles[c])[0],(d===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var c,d,e,f=this.options,g=this.element;return this.resizing=!0,this._renderProxy(),c=this._num(this.helper.css("left")),d=this._num(this.helper.css("top")),f.containment&&(c+=a(f.containment).scrollLeft()||0,d+=a(f.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:c,top:d},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:g.width(),height:g.height()},this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()},this.originalPosition={left:c,top:d},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof f.aspectRatio?f.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===e?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d,e=this.originalMousePosition,f=this.axis,g=b.pageX-e.left||0,h=b.pageY-e.top||0,i=this._change[f];return this._updatePrevProperties(),!!i&&(c=i.apply(this,[b,g,h]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),d=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(d)||(this._updatePrevProperties(),this._trigger("resize",b,this.ui()),this._applyChanges()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&this._hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseFloat(k.element.css("left"))+(k.position.left-k.originalPosition.left)||null,i=parseFloat(k.element.css("top"))+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",b),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 a={};return this.position.top!==this.prevPosition.top&&(a.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(a.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(a.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(a.height=this.size.height+"px"),this.helper.css(a),a},_updateVirtualBoundaries:function(a){var b,c,d,e,f,g=this.options;f={minWidth:this._isNumber(g.minWidth)?g.minWidth:0,maxWidth:this._isNumber(g.maxWidth)?g.maxWidth:1/0,minHeight:this._isNumber(g.minHeight)?g.minHeight:0,maxHeight:this._isNumber(g.maxHeight)?g.maxHeight:1/0},(this._aspectRatio||a)&&(b=f.minHeight*this.aspectRatio,d=f.minWidth/this.aspectRatio,c=f.maxHeight*this.aspectRatio,e=f.maxWidth/this.aspectRatio,b>f.minWidth&&(f.minWidth=b),d>f.minHeight&&(f.minHeight=d),c<f.maxWidth&&(f.maxWidth=c),e<f.maxHeight&&(f.maxHeight=e)),this._vBoundaries=f},_updateCache:function(a){this.offset=this.helper.offset(),this._isNumber(a.left)&&(this.position.left=a.left),this._isNumber(a.top)&&(this.position.top=a.top),this._isNumber(a.height)&&(this.size.height=a.height),this._isNumber(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,d=this.axis;return this._isNumber(a.height)?a.width=a.height*this.aspectRatio:this._isNumber(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===d&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===d&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,d=this._isNumber(a.width)&&b.maxWidth&&b.maxWidth<a.width,e=this._isNumber(a.height)&&b.maxHeight&&b.maxHeight<a.height,f=this._isNumber(a.width)&&b.minWidth&&b.minWidth>a.width,g=this._isNumber(a.height)&&b.minHeight&&b.minHeight>a.height,h=this.originalPosition.left+this.originalSize.width,i=this.originalPosition.top+this.originalSize.height,j=/sw|nw|w/.test(c),k=/nw|ne|n/.test(c);return f&&(a.width=b.minWidth),g&&(a.height=b.minHeight),d&&(a.width=b.maxWidth),e&&(a.height=b.maxHeight),f&&j&&(a.left=h-b.minWidth),d&&j&&(a.left=h-b.maxWidth),g&&k&&(a.top=i-b.minHeight),e&&k&&(a.top=i-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_getPaddingPlusBorderDimensions:function(a){for(var b=0,c=[],d=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],e=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];b<4;b++)c[b]=parseFloat(d[b])||0,c[b]+=parseFloat(e[b])||0;return{height:c[0]+c[2],width:c[1]+c[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a,b=0,c=this.helper||this.element;b<this._proportionallyResizeElements.length;b++)a=this._proportionallyResizeElements[b],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(a)),a.css({height:c.height()-this.outerDimensions.height||0,width:c.width()-this.outerDimensions.width||0})},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<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:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,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}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).resizable("instance"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&c._hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,k=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseFloat(c.element.css("width")),height:parseFloat(c.element.css("height")),top:parseFloat(c.element.css("top")),left:parseFloat(c.element.css("left"))};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,c,d,e,f,g,h,i=a(this).resizable("instance"),j=i.options,k=i.element,l=j.containment,m=l instanceof a?l.get(0):/parent/.test(l)?k.parent().get(0):l;m&&(i.containerElement=a(m),/document/.test(l)||l===document?(i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(m),c=[],a(["Top","Right","Left","Bottom"]).each(function(a,d){c[a]=i._num(b.css("padding"+d))}),i.containerOffset=b.offset(),i.containerPosition=b.position(),i.containerSize={height:b.innerHeight()-c[3],width:b.innerWidth()-c[1]},d=i.containerOffset,e=i.containerSize.height,f=i.containerSize.width,g=i._hasScroll(m,"left")?m.scrollWidth:f,h=i._hasScroll(m)?m.scrollHeight:e,i.parentData={element:m,left:d.left,top:d.top,width:g,height:h}))},resize:function(b){var c,d,e,f,g=a(this).resizable("instance"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement,n=!0;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio,n=!1),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio,n=!1),g.position.top=g._helper?i.top:0),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f?(g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top):(g.offset.left=g.element.offset().left,g.offset.top=g.element.offset().top),c=Math.abs(g.sizeDiff.width+(g._helper?g.offset.left-l.left:g.offset.left-i.left)),d=Math.abs(g.sizeDiff.height+(g._helper?g.offset.top-l.top:g.offset.top-i.top)),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio,n=!1)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio,n=!1)),n||(g.position.left=g.prevPosition.left,g.position.top=g.prevPosition.top,g.size.width=g.prevSize.width,g.size.height=g.prevSize.height)},stop:function(){var b=a(this).resizable("instance"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).resizable("instance"),c=b.options;a(c.alsoResize).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseFloat(b.width()),height:parseFloat(b.height()),left:parseFloat(b.css("left")),top:parseFloat(b.css("top"))})})},resize:function(b,c){var d=a(this).resizable("instance"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0};a(e.alsoResize).each(function(){var b=a(this),d=a(this).data("ui-resizable-alsoresize"),e={},f=b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(f,function(a,b){var c=(d[b]||0)+(h[b]||0);c&&c>=0&&(e[b]=c||null)}),b.css(e)})},stop:function(){a(this).removeData("ui-resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).resizable("instance"),c=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}),b._addClass(b.ghost,"ui-resizable-ghost"),a.uiBackCompat!==!1&&"string"==typeof b.options.ghost&&b.ghost.addClass(this.options.ghost),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).resizable("instance");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).resizable("instance");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b,c=a(this).resizable("instance"),d=c.options,e=c.size,f=c.originalSize,g=c.originalPosition,h=c.axis,i="number"==typeof d.grid?[d.grid,d.grid]:d.grid,j=i[0]||1,k=i[1]||1,l=Math.round((e.width-f.width)/j)*j,m=Math.round((e.height-f.height)/k)*k,n=f.width+l,o=f.height+m,p=d.maxWidth&&d.maxWidth<n,q=d.maxHeight&&d.maxHeight<o,r=d.minWidth&&d.minWidth>n,s=d.minHeight&&d.minHeight>o;d.grid=i,r&&(n+=j),s&&(o+=k),p&&(n-=j),q&&(o-=k),/^(se|s|e)$/.test(h)?(c.size.width=n,c.size.height=o):/^(ne)$/.test(h)?(c.size.width=n,c.size.height=o,c.position.top=g.top-m):/^(sw)$/.test(h)?(c.size.width=n,c.size.height=o,c.position.left=g.left-l):((o-k<=0||n-j<=0)&&(b=c._getPaddingPlusBorderDimensions(this)),o-k>0?(c.size.height=o,c.position.top=g.top-m):(o=k-b.height,c.size.height=o,c.position.top=g.top+f.height-o),n-j>0?(c.size.width=n,c.position.left=g.left-l):(n=j-b.width,c.size.width=n,c.position.left=g.left+f.width-n))}});var p=(a.ui.resizable,a.widget("ui.selectable",a.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b.elementPos=a(b.element[0]).offset(),b.selectees=a(b.options.filter,b.element[0]),b._addClass(b.selectees,"ui-selectee"),b.selectees.each(function(){var c=a(this),d=c.offset(),e={left:d.left-b.elementPos.left,top:d.top-b.elementPos.top};a.data(this,"selectable-item",{element:this,$element:c,left:e.left,top:e.top,right:e.left+c.outerWidth(),bottom:e.top+c.outerHeight(),startselected:!1,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=a("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.elementPos=a(this.element[0]).offset(),this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(c._removeClass(d.$element,"ui-selected"),d.selected=!1,c._addClass(d.$element,"ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),c._removeClass(e.$element,d?"ui-unselecting":"ui-selected")._addClass(e.$element,d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1,k={};c&&c.element!==d.element[0]&&(k.left=c.left+d.elementPos.left,k.right=c.right+d.elementPos.left,k.top=c.top+d.elementPos.top,k.bottom=c.bottom+d.elementPos.top,"touch"===e.tolerance?j=!(k.left>h||k.right<f||k.top>i||k.bottom<g):"fit"===e.tolerance&&(j=k.left>f&&k.right<h&&k.top>g&&k.bottom<i),j?(c.selected&&(d._removeClass(c.$element,"ui-selected"),c.selected=!1),c.unselecting&&(d._removeClass(c.$element,"ui-unselecting"),c.unselecting=!1),c.selecting||(d._addClass(c.$element,"ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(d._removeClass(c.$element,"ui-selecting"),c.selecting=!1,d._addClass(c.$element,"ui-selected"),c.selected=!0):(d._removeClass(c.$element,"ui-selecting"),c.selecting=!1,c.startselected&&(d._addClass(c.$element,"ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(d._removeClass(c.$element,"ui-selected"),c.selected=!1,d._addClass(c.$element,"ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");c._removeClass(d.$element,"ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");c._removeClass(d.$element,"ui-selecting")._addClass(d.$element,"ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}}),a.widget("ui.sortable",a.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(a,b,c){return a>=b&&a<b+c},_isFloating:function(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(a,b){this._super(a,b),"handle"===a&&this._setHandleClassName()},_setHandleClassName:function(){var b=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),a.each(this.items,function(){b._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-this.document.scrollTop()<g.scrollSensitivity?h=this.document.scrollTop(this.document.scrollTop()-g.scrollSpeed):this.window.height()-(b.pageY-this.document.scrollTop())<g.scrollSensitivity&&(h=this.document.scrollTop(this.document.scrollTop()+g.scrollSpeed)),b.pageX-this.document.scrollLeft()<g.scrollSensitivity?h=this.document.scrollLeft(this.document.scrollLeft()-g.scrollSpeed):this.window.width()-(b.pageX-this.document.scrollLeft())<g.scrollSensitivity&&(h=this.document.scrollLeft(this.document.scrollLeft()+g.scrollSpeed))),h!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new a.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);
c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b,c,d="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height),e="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width),f=d&&e;return!!f&&(b=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection(),this.floating?"right"===c||"down"===b?2:1:b&&("down"===b?2:1))},_intersectsWithSides:function(a){var b=this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),c=this._isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),d=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?"right"===e&&c||"left"===e&&!c:d&&("down"===d&&b||"up"===d&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){function c(){h.push(this)}var d,e,f,g,h=[],i=[],j=this._connectWith();if(j&&b)for(d=j.length-1;d>=0;d--)for(f=a(j[d],this.document[0]),e=f.length-1;e>=0;e--)g=a.data(f[e],this.widgetFullName),g&&g!==this&&!g.options.disabled&&i.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g]);for(i.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),d=i.length-1;d>=0;d--)i[d][0].each(c);return a(h)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c],this.document[0]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]);return b._addClass(e,"ui-sortable-placeholder",c||b.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===d?b._createTrPlaceholder(b.currentItem.find("tr").eq(0),a("<tr>",b.document[0]).appendTo(e)):"tr"===d?b._createTrPlaceholder(b.currentItem,e):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_createTrPlaceholder:function(b,c){var d=this;b.children().each(function(){a("<td> </td>",d.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(c)})},_contactContainers:function(b){var c,d,e,f,g,h,i,j,k,l,m=null,n=null;for(c=this.containers.length-1;c>=0;c--)if(!a.contains(this.currentItem[0],this.containers[c].element[0]))if(this._intersectsWith(this.containers[c].containerCache)){if(m&&a.contains(this.containers[c].element[0],m.element[0]))continue;m=this.containers[c],n=c}else this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",b,this._uiHash(this)),this.containers[c].containerCache.over=0);if(m)if(1===this.containers.length)this.containers[n].containerCache.over||(this.containers[n]._trigger("over",b,this._uiHash(this)),this.containers[n].containerCache.over=1);else{for(e=1e4,f=null,k=m.floating||this._isFloating(this.currentItem),g=k?"left":"top",h=k?"width":"height",l=k?"pageX":"pageY",d=this.items.length-1;d>=0;d--)a.contains(this.containers[n].element[0],this.items[d].item[0])&&this.items[d].item[0]!==this.currentItem[0]&&(i=this.items[d].item.offset()[g],j=!1,b[l]-i>this.items[d][h]/2&&(j=!0),Math.abs(b[l]-i)<e&&(e=Math.abs(b[l]-i),f=this.items[d],this.direction=j?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[n])return void(this.currentContainer.containerCache.over||(this.containers[n]._trigger("over",b,this._uiHash()),this.currentContainer.containerCache.over=1));f?this._rearrange(b,f,null,!0):this._rearrange(b,null,this.containers[n].element,!0),this._trigger("change",b,this._uiHash()),this.containers[n]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[n],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",b,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===e.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===e.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){function c(a,b,c){return function(d){c._trigger(a,d,b._uiHash(b))}}this.reverting=!1;var d,e=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(d in this._storedCSS)"auto"!==this._storedCSS[d]&&"static"!==this._storedCSS[d]||(this._storedCSS[d]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||e.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(e.push(function(a){this._trigger("remove",a,this._uiHash())}),e.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),e.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),d=this.containers.length-1;d>=0;d--)b||e.push(c("deactivate",this,this.containers[d])),this.containers[d].containerCache.over&&(e.push(c("out",this,this.containers[d])),this.containers[d].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!b){for(d=0;d<e.length;d++)e[d].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}}),/ui-corner-([a-z]){2,6}/g);a.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var b=this,c=[];a.each(this.options.items,function(d,e){var f,g={};if(e)return"controlgroupLabel"===d?(f=b.element.find(e),f.each(function(){var b=a(this);b.children(".ui-controlgroup-label-contents").length||b.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),b._addClass(f,null,"ui-widget ui-widget-content ui-state-default"),void(c=c.concat(f.get()))):void(a.fn[d]&&(g=b["_"+d+"Options"]?b["_"+d+"Options"]("middle"):{classes:{}},b.element.find(e).each(function(){var e=a(this),f=e[d]("instance"),h=a.widget.extend({},g);if("button"!==d||!e.parent(".ui-spinner").length){f||(f=e[d]()[d]("instance")),f&&(h.classes=b._resolveClassesValues(h.classes,f)),e[d](h);var i=e[d]("widget");a.data(i[0],"ui-controlgroup-data",f?f:e[d]("instance")),c.push(i[0])}})))}),this.childWidgets=a(a.unique(c)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(b){this.childWidgets.each(function(){var c=a(this),d=c.data("ui-controlgroup-data");d&&d[b]&&d[b]()})},_updateCornerClass:function(a,b){var c="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",d=this._buildSimpleOptions(b,"label").classes.label;this._removeClass(a,null,c),this._addClass(a,null,d)},_buildSimpleOptions:function(a,b){var c="vertical"===this.options.direction,d={classes:{}};return d.classes[b]={middle:"",first:"ui-corner-"+(c?"top":"left"),last:"ui-corner-"+(c?"bottom":"right"),only:"ui-corner-all"}[a],d},_spinnerOptions:function(a){var b=this._buildSimpleOptions(a,"ui-spinner");return b.classes["ui-spinner-up"]="",b.classes["ui-spinner-down"]="",b},_buttonOptions:function(a){return this._buildSimpleOptions(a,"ui-button")},_checkboxradioOptions:function(a){return this._buildSimpleOptions(a,"ui-checkboxradio-label")},_selectmenuOptions:function(a){var b="vertical"===this.options.direction;return{width:!!b&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(b?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(b?"top":"left")},last:{"ui-selectmenu-button-open":b?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(b?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[a]}},_resolveClassesValues:function(b,c){var d={};return a.each(b,function(e){var f=c.options.classes[e]||"";f=a.trim(f.replace(p,"")),d[e]=(f+" "+b[e]).replace(/\s+/g," ")}),d},_setOption:function(a,b){return"direction"===a&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(a,b),"disabled"===a?void this._callChildMethod(b?"disable":"enable"):void this.refresh()},refresh:function(){var b,c=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),b=this.childWidgets,this.options.onlyVisible&&(b=b.filter(":visible")),b.length&&(a.each(["first","last"],function(a,d){var e=b[d]().data("ui-controlgroup-data");if(e&&c["_"+e.widgetName+"Options"]){var f=c["_"+e.widgetName+"Options"](1===b.length?"only":d);f.classes=c._resolveClassesValues(f.classes,e),e.element[e.widgetName](f)}else c._updateCornerClass(b[d](),d)}),this._callChildMethod("refresh"))}});a.widget("ui.checkboxradio",[a.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var b,c,d=this,e=this._super()||{};return this._readType(),c=this.element.labels(),this.label=a(c[c.length-1]),this.label.length||a.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){d.originalLabel+=3===this.nodeType?a(this).text():this.outerHTML}),this.originalLabel&&(e.label=this.originalLabel),b=this.element[0].disabled,null!=b&&(e.disabled=b),e},_create:function(){var a=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),a&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var b=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===b&&/radio|checkbox/.test(this.type)||a.error("Can't create checkboxradio on element.nodeName="+b+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var b,c=this.element[0].name,d="input[name='"+a.ui.escapeSelector(c)+"']";return c?(b=this.form.length?a(this.form[0].elements).filter(d):a(d).filter(function(){return 0===a(this).form().length}),b.not(this.element)):a([])},_toggleClasses:function(){var b=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",b),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",b)._toggleClass(this.icon,null,"ui-icon-blank",!b),"radio"===this.type&&this._getRadioGroup().each(function(){var b=a(this).checkboxradio("instance");b&&b._removeClass(b.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(a,b){if("label"!==a||b)return this._super(a,b),"disabled"===a?(this._toggleClass(this.label,null,"ui-state-disabled",b),void(this.element[0].disabled=b)):void this.refresh()},_updateIcon:function(b){var c="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=a("<span>"),this.iconSpace=a("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(c+=b?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,b?"ui-icon-blank":"ui-icon-check")):c+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",c),b||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var a=this.label.contents().not(this.element[0]);this.icon&&(a=a.not(this.icon[0])),this.iconSpace&&(a=a.not(this.iconSpace[0])),a.remove(),this.label.append(this.options.label)},refresh:function(){var a=this.element[0].checked,b=this.element[0].disabled;this._updateIcon(a),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",a),null!==this.options.label&&this._updateLabel(),b!==this.options.disabled&&this._setOptions({disabled:b})}}]);a.ui.checkboxradio;a.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var a,b=this._super()||{};return this.isInput=this.element.is("input"),a=this.element[0].disabled,null!=a&&(b.disabled=a),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(b.label=this.originalLabel),b},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(b){b.keyCode===a.ui.keyCode.SPACE&&(b.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(b,c){var d="iconPosition"!==b,e=d?this.options.iconPosition:c,f="top"===e||"bottom"===e;this.icon?d&&this._removeClass(this.icon,null,this.options.icon):(this.icon=a("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),d&&this._addClass(this.icon,null,c),this._attachIcon(e),f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=a("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(e))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(a){this.icon[/^(?:end|bottom)/.test(a)?"before":"after"](this.iconSpace)},_attachIcon:function(a){this.element[/^(?:end|bottom)/.test(a)?"append":"prepend"](this.icon)},_setOptions:function(a){var b=void 0===a.showLabel?this.options.showLabel:a.showLabel,c=void 0===a.icon?this.options.icon:a.icon;b||c||(a.showLabel=!0),this._super(a)},_setOption:function(a,b){"icon"===a&&(b?this._updateIcon(a,b):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===a&&this._updateIcon(a,b),"showLabel"===a&&(this._toggleClass("ui-button-icon-only",null,!b),this._updateTooltip()),"label"===a&&(this.isInput?this.element.val(b):(this.element.html(b),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(a,b),"disabled"===a&&(this._toggleClass(null,"ui-state-disabled",b),this.element[0].disabled=b,b&&this.element.blur())},refresh:function(){var a=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");a!==this.options.disabled&&this._setOptions({disabled:a}),this._updateTooltip()}}),a.uiBackCompat!==!1&&(a.widget("ui.button",a.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(a,b){return"text"===a?void this._super("showLabel",b):("showLabel"===a&&(this.options.text=b),"icon"===a&&(this.options.icons.primary=b),"icons"===a&&(b.primary?(this._super("icon",b.primary),this._super("iconPosition","beginning")):b.secondary&&(this._super("icon",b.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),a.fn.button=function(b){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?b.apply(this,arguments):(a.ui.checkboxradio||a.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(a.fn.button),a.fn.buttonset=function(){return a.ui.controlgroup||a.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});a.ui.button;a.extend(a.ui,{datepicker:{version:"1.12.1"}});var q;a.extend(d.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var d=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:d,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?e(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(c),a.data(b,"datepicker",c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.off("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.on("focus",this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.on("click",function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),
a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,e,f){var h,i,j,k,l,m=this._dialogInst;return m||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),a("body").append(this._dialogInput),m=this._dialogInst=this._newInst(this._dialogInput,!1),m.settings={},a.data(this._dialogInput[0],"datepicker",m)),g(m.settings,e||{}),c=c&&c.constructor===Date?this._formatDate(m,c):c,this._dialogInput.val(c),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(i=document.documentElement.clientWidth,j=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[i/2-100+k,j/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),m.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],"datepicker",m),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,"datepicker");d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,"datepicker"),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==c&&"span"!==c||d.removeClass(this.markerClassName).empty(),q===e&&(q=null))},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,"datepicker")}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(b,c,d){var e,f,h,i,j=this._getInst(b);return 2===arguments.length&&"string"==typeof c?"defaults"===c?a.extend({},a.datepicker._defaults):j?"all"===c?a.extend({},j.settings):this._get(j,c):null:(e=c||{},"string"==typeof c&&(e={},e[c]=d),void(j&&(this._curInst===j&&this._hideDatepicker(),f=this._getDateDatepicker(b,!0),h=this._getMinMaxDate(j,"min"),i=this._getMinMaxDate(j,"max"),g(j.settings,e),null!==h&&void 0!==e.dateFormat&&void 0===e.minDate&&(j.settings.minDate=this._formatDate(j,h)),null!==i&&void 0!==e.dateFormat&&void 0===e.maxDate&&(j.settings.maxDate=this._formatDate(j,i)),"disabled"in e&&(e.disabled?this._disableDatepicker(b):this._enableDatepicker(b)),this._attachments(a(b),j),this._autoSize(j),this._setDate(j,f),this._updateAlternate(j),this._updateDatepicker(j))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var d,e,f,h,i,j,k;d=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==d&&(a.datepicker._curInst.dpDiv.stop(!0,!0),d&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),e=a.datepicker._get(d,"beforeShow"),f=e?e.apply(b,[b,d]):{},f!==!1&&(g(d.settings,f),d.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(d),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),h=!1,a(b).parents().each(function(){return h|="fixed"===a(this).css("position"),!h}),i={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,d.dpDiv.empty(),d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(d),i=a.datepicker._checkOffset(d,i,h),d.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":h?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),d.inline||(j=a.datepicker._get(d,"showAnim"),k=a.datepicker._get(d,"duration"),d.dpDiv.css("z-index",c(a(b))+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[j]?d.dpDiv.show(j,a.datepicker._get(d,"showOptions"),k):d.dpDiv[j||"show"](j?k:null),a.datepicker._shouldFocusInput(d)&&d.input.trigger("focus"),a.datepicker._curInst=d))}},_updateDatepicker:function(b){this.maxRows=4,q=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b);var c,d=this._getNumberOfMonths(b),e=d[1],g=17,h=b.dpDiv.find("."+this._dayOverClass+" a");h.length>0&&f.apply(h.get(0)),b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),e>1&&b.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",g*e+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.trigger("focus"),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var c,d,e,f,g=this._curInst;!g||b&&g!==a.data(b,"datepicker")||this._datepickerShowing&&(c=this._get(g,"showAnim"),d=this._get(g,"duration"),e=function(){a.datepicker._tidyDialog(g)},a.effects&&(a.effects.effect[c]||a.effects[c])?g.dpDiv.hide(c,a.datepicker._get(g,"showOptions"),d,e):g.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(g,"onClose"),f&&f.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).val(e))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e="y"===a?d:1,f=new RegExp("^\\d{"+e+","+d+"}"),g=c.substring(i).match(f);if(!g)throw"Missing number at position "+i;return i+=g[0].length,parseInt(g[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(i,d.length).toLowerCase()===d.toLowerCase())return f=b[0],i+=d.length,!1}),f!==-1)return f+1;throw"Unknown name at position "+i},x=function(){if(c.charAt(i)!==b.charAt(e))throw"Unexpected literal at position "+i;i++};for(e=0;e<b.length;e++)if(t)"'"!==b.charAt(e)||u("'")?x():t=!1;else switch(b.charAt(e)){case"d":r=v("d");break;case"D":w("D",l,m);break;case"o":s=v("o");break;case"m":q=v("m");break;case"M":q=w("M",n,o);break;case"y":p=v("y");break;case"@":h=new Date(v("@")),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"!":h=new Date((v("!")-this._ticksTo1970)/1e4),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"'":u("'")?x():t=!0;break;default:x()}if(i<c.length&&(g=c.substr(i),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(p===-1?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=k?0:-100)),s>-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),r<=f)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getFullYear()%100<10?"0":"")+b.getFullYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(h){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(d){}for(var e=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,f=e.getFullYear(),g=e.getMonth(),h=e.getDate(),i=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=i.exec(c);j;){switch(j[2]||"d"){case"d":case"D":h+=parseInt(j[1],10);break;case"w":case"W":h+=7*parseInt(j[1],10);break;case"m":case"M":g+=parseInt(j[1],10),h=Math.min(h,a.datepicker._getDaysInMonth(f,g));break;case"y":case"Y":f+=parseInt(j[1],10),h=Math.min(h,a.datepicker._getDaysInMonth(f,g))}j=i.exec(c)}return new Date(f,g,h)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).on(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th scope='col'"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?" ":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.selectedYear+("Y"===c?b:0),e=a.selectedMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).on("mousedown",a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new d,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.12.1";a.datepicker;a.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={
parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||a.ui.safeBlur(a.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(b,c){var d=!1,e=this.uiDialog.siblings(".ui-front:visible").map(function(){return+a(this).css("z-index")}).get(),f=Math.max.apply(null,e);return f>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",f+1),d=!0),d&&!c&&this._trigger("focus",b),d},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(a.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var a=this._focusedElement;a||(a=this.element.find("[autofocus]")),a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).trigger("focus")},_keepFocus:function(b){function c(){var b=a.ui.safeActiveElement(this.document[0]),c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB&&!b.isDefaultPrevented()){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(this._delay(function(){e.trigger("focus")}),b.preventDefault()):(this._delay(function(){d.trigger("focus")}),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=a("<button type='button'></button>").button({label:a("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(b,"ui-dialog-title"),this._title(b),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title?a.text(this.options.title):a.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,f={icon:d.icon,iconPosition:d.iconPosition,showLabel:d.showLabel,icons:d.icons,text:d.text},delete d.click,delete d.icon,delete d.iconPosition,delete d.showLabel,delete d.icons,"boolean"==typeof d.text&&delete d.text,a("<button></button>",d).button(f).appendTo(b.uiButtonSet).on("click",function(){e.apply(b.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var c=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,e){c._addClass(a(this),"ui-dialog-dragging"),c._blockFrames(),c._trigger("dragStart",d,b(e))},drag:function(a,d){c._trigger("drag",a,b(d))},stop:function(e,f){var g=f.offset.left-c.document.scrollLeft(),h=f.offset.top-c.document.scrollTop();d.position={my:"left top",at:"left"+(g>=0?"+":"")+g+" top"+(h>=0?"+":"")+h,of:c.window},c._removeClass(a(this),"ui-dialog-dragging"),c._unblockFrames(),c._trigger("dragStop",e,b(f))}})},_makeResizable:function(){function b(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var c=this,d=this.options,e=d.resizable,f=this.uiDialog.css("position"),g="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:this._minHeight(),handles:g,start:function(d,e){c._addClass(a(this),"ui-dialog-resizing"),c._blockFrames(),c._trigger("resizeStart",d,b(e))},resize:function(a,d){c._trigger("resize",a,b(d))},stop:function(e,f){var g=c.uiDialog.offset(),h=g.left-c.document.scrollLeft(),i=g.top-c.document.scrollTop();d.height=c.uiDialog.height(),d.width=c.uiDialog.width(),d.position={my:"left top",at:"left"+(h>=0?"+":"")+h+" top"+(i>=0?"+":"")+i,of:c.window},c._removeClass(a(this),"ui-dialog-resizing"),c._unblockFrames(),c._trigger("resizeStop",e,b(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(b){this._makeFocusTarget(),this._focusedElement=a(b.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var b=this._trackingInstances(),c=a.inArray(this,b);c!==-1&&b.splice(c,1)},_trackingInstances:function(){var a=this.document.data("ui-dialog-instances");return a||(a=[],this.document.data("ui-dialog-instances",a)),a},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var c=this,d=!1,e={};a.each(b,function(a,b){c._setOption(a,b),a in c.sizeRelatedOptions&&(d=!0),a in c.resizableRelatedOptions&&(e[a]=b)}),d&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",e)},_setOption:function(b,c){var d,e,f=this.uiDialog;"disabled"!==b&&(this._super(b,c),"appendTo"===b&&this.uiDialog.appendTo(this._appendTo()),"buttons"===b&&this._createButtons(),"closeText"===b&&this.uiDialogTitlebarClose.button({label:a("<a>").text(""+this.options.closeText).html()}),"draggable"===b&&(d=f.is(":data(ui-draggable)"),d&&!c&&f.draggable("destroy"),!d&&c&&this._makeDraggable()),"position"===b&&this._position(),"resizable"===b&&(e=f.is(":data(ui-resizable)"),e&&!c&&f.resizable("destroy"),e&&"string"==typeof c&&f.resizable("option","handles",c),e||c===!1||this._makeResizable()),"title"===b&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=!0;this._delay(function(){b=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(a){b||this._allowInteraction(a)||(a.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=a("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var a=this.document.data("ui-dialog-overlays")-1;a?this.document.data("ui-dialog-overlays",a):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(a,b){"dialogClass"===a&&this.uiDialog.removeClass(this.options.dialogClass).addClass(b),this._superApply(arguments)}});a.ui.dialog;a.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))},_removeDescribedBy:function(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=a("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=a([])},_setOption:function(b,c){var d=this;this._super(b,c),"content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b.element)})},_setOptionDisabled:function(a){this[a?"_disable":"_enable"]()},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d.element[0],b.close(e,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var b=a(this);if(b.is("[title]"))return b.data("ui-tooltip-title",b.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))}),this.disabledTitles=a([])},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var b,d=a(this);d.data("ui-tooltip-open")&&(b=a.Event("blur"),b.target=b.currentTarget=this,c.close(b,!0)),d.attr("title")&&(d.uniqueId(),c.parents[this.id]={element:this,title:d.attr("title")},d.attr("title",""))}),this._registerCloseHandlers(b,d),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d||d.nodeType||d.jquery?this._open(b,a,d):(c=d.call(a[0],function(c){e._delay(function(){a.data("ui-tooltip-open")&&(b&&(b.type=f),this._open(b,a,c))})}),void(c&&this._open(b,a,c)))},_open:function(b,c,d){function e(a){j.of=a,g.is(":hidden")||g.position(j)}var f,g,h,i,j=a.extend({},this.options.position);if(d){if(f=this._find(c))return void f.tooltip.find(".ui-tooltip-content").html(d);c.is("[title]")&&(b&&"mouseover"===b.type?c.attr("title",""):c.removeAttr("title")),f=this._tooltip(c),g=f.tooltip,this._addDescribedBy(c,g.attr("id")),g.find(".ui-tooltip-content").html(d),this.liveRegion.children().hide(),i=a("<div>").html(g.find(".ui-tooltip-content").html()),i.removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:e}),e(b)):g.position(a.extend({of:c},this.options.position)),g.hide(),this._show(g,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){g.is(":visible")&&(e(j.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:g})}},_registerCloseHandlers:function(b,c){var d={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var d=a.Event(b);d.currentTarget=c[0],this.close(d,!0)}}};c[0]!==this.element[0]&&(d.remove=function(){this._removeTooltip(this._find(c).tooltip)}),b&&"mouseover"!==b.type||(d.mouseleave="close"),b&&"focusin"!==b.type||(d.focusout="close"),this._on(!0,c,d)},close:function(b){var c,d=this,e=a(b?b.currentTarget:this.element),f=this._find(e);return f?(c=f.tooltip,void(f.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&!e.attr("title")&&e.attr("title",e.data("ui-tooltip-title")),this._removeDescribedBy(e),f.hiding=!0,c.stop(!0),this._hide(c,this.options.hide,function(){d._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,c){a(c.element).attr("title",c.title),delete d.parents[b]}),f.closing=!0,this._trigger("close",b,{tooltip:c}),f.hiding||(f.closing=!1)))):void e.removeData("ui-tooltip-open")},_tooltip:function(b){var c=a("<div>").attr("role","tooltip"),d=a("<div>").appendTo(c),e=c.uniqueId().attr("id");return this._addClass(d,"ui-tooltip-content"),this._addClass(c,"ui-tooltip","ui-widget ui-widget-content"),c.appendTo(this._appendTo(b)),this.tooltips[e]={element:b,tooltip:c}},_find:function(a){var b=a.data("ui-tooltip-id");return b?this.tooltips[b]:null},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_appendTo:function(a){var b=a.closest(".ui-front, dialog");return b.length||(b=this.document[0].body),b},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur"),f=d.element;e.target=e.currentTarget=f[0],b.close(e,!0),a("#"+c).remove(),f.data("ui-tooltip-title")&&(f.attr("title")||f.attr("title",f.data("ui-tooltip-title")),f.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),a.uiBackCompat!==!1&&a.widget("ui.tooltip",a.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var a=this._superApply(arguments);return this.options.tooltipClass&&a.tooltip.addClass(this.options.tooltipClass),a}});a.ui.tooltip,a.effects.define("drop","hide",function(b,c){var d,e=a(this),f=b.mode,g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"-=":"+=",k="+="===j?"-=":"+=",l={opacity:0};a.effects.createPlaceholder(e),d=b.distance||e["top"===i?"outerHeight":"outerWidth"](!0)/2,l[i]=j+d,g&&(e.css(l),l[i]=k+d,l.opacity=1),e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:c})})});
!function(t,e,o,a,n){"use strict";const i=a.objectEntries,r=Array.isArray,c=n.extend,l="aria-label",s=function(){const t={Help:1,Backspace:1,Enter:1,Escape:1,Space:1,PageUp:"Page Up",PageDown:"Page Down",End:1,Home:1,ArrowLeft:1,ArrowUp:1,ArrowRight:1,ArrowDown:1,Insert:1,Delete:1,Digit0:1,Digit1:1,Digit2:1,Digit3:1,Digit4:1,Digit5:1,Digit6:1,Digit7:1,Digit8:1,Digit9:1,KeyA:1,KeyB:1,KeyC:1,KeyD:1,KeyE:1,KeyF:1,KeyG:1,KeyH:1,KeyI:1,KeyJ:1,KeyK:1,KeyL:1,KeyM:1,KeyN:1,KeyO:1,KeyP:1,KeyQ:1,KeyR:1,KeyS:1,KeyT:1,KeyU:1,KeyV:1,KeyW:1,KeyX:1,KeyY:1,KeyZ:1,Numpad0:"Keypad 0",Numpad1:"Keypad 1",Numpad2:"Keypad 2",Numpad3:"Keypad 3",Numpad4:"Keypad 4",Numpad5:"Keypad 5",Numpad6:"Keypad 6",Numpad7:"Keypad 7",Numpad8:"Keypad 8",Numpad9:"Keypad 9",NumpadMultiply:"Keypad *",NumpadAdd:"Keypad +",NumpadSubtract:"Keypad -",NumpadDecimal:"Keypad .",NumpadDivide:"Keypad /",NumpadClear:"Keypad Clear",NumpadEqual:"Keypad =",F1:1,F2:1,F3:1,F4:1,F5:1,F6:1,F7:1,F8:1,F9:1,F10:1,F11:1,F12:1,F13:1,F14:1,F15:1,Semicolon:1,Equal:"=",Comma:1,Minus:1,Period:1,Slash:"/",Backquote:"Backtick",BracketLeft:"[",Backslash:"\\",BracketRight:"]",Quote:1};for(let[e,o]of i(t))t[e]=1===o?e.replace(/Arrow|Digit|Key/,""):o;return t}(),u={6:"Help",8:"Backspace",13:"Enter",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"Keypad 0",97:"Keypad 1",98:"Keypad 2",99:"Keypad 3",100:"Keypad 4",101:"Keypad 5",102:"Keypad 6",103:"Keypad 7",104:"Keypad 8",105:"Keypad 9",106:"Keypad *",107:"Keypad +",109:"Keypad -",110:"Keypad .",111:"Keypad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",186:"Semicolon",187:"=",188:"Comma",189:"Minus",190:"Period",191:"/",192:"Backtick",219:"[",220:"\\",221:"]",222:"Quote"},h=navigator.appVersion.indexOf("Mac")>=0;let d=!0,f=!0,p={};const g={T_RADIO:1,T_CHECKBOX:1,submit:1,image:1,reset:1,T_BUTTON:1},b={"Ctrl+C":1,"Ctrl+X":1,"Ctrl+V":1,"Ctrl+A":1,"Ctrl+Z":1,"Ctrl+Shift+Z":1,"Ctrl+Y":1},y={"Meta+C":1,"Meta+X":1,"Meta+V":1,"Meta+A":1,"Meta+Z":1,"Meta+Shift+Z":1},m={option:1,treeitem:1},v=["label","onLabel","offLabel","title","contextLabel"],k=["label","group","title"];function K(t,e){let o,a,i,r,c=null;const l=t.altKey,d=t.ctrlKey,p=t.metaKey,v=t.which,k=t.code;return a=k?s[k]:u[v],a&&(c="",d&&(c+="Ctrl+"),l&&(c+="Alt+"),p&&(c+="Meta+"),i=k?/Key./.test(k):v>59&&v<91,t.shiftKey&&(!i||d||l||p)&&(c+="Shift+"),c+=a,r=k?/Digit\d|Key.|Space|Semicolon|Equal|Comma|Minus|Period|Slash|Backquote|Bracket.+|Backslash|Quote/.test(k):!(v>=112&&v<=123||v>=33&&v<=46||v<32),o=t.target&&t.target.nodeName,e||"TEXTAREA"!==o&&"SELECT"!==o&&("INPUT"!==o||g[t.target.type.toLowerCase()])&&!m[n(t.target).attr("role")]?!r||d||l||p||f||(c=null):(r&&(!l&&!d&&!p||d&&l&&!p||h&&l&&!d&&!p)||(h?y:b)[c]||v<=46)&&(c=null)),c}function C(t){let e=t.contextLabel||t.label;return!e&&t.onLabel&&t.offLabel?e=t.onLabel+"/"+t.offLabel:t.set&&t.get&&!t.choices&&(e=o.formatMessage("APEX.ACTIONS.TOGGLE",e)),e}function S(t){let e;return e=t.id?n("[for="+t.id+"]"):n(t).closest("label"),e}function N(t,e){let a,n,i;for(a=0;a<e.length;a++)n=e[a],i=n+"Key",t[i]&&(t[n]=o.getMessage(t[i]),delete t[i])}function x(t,o){e.error("No such action '"+t+"'"+o)}let D=".a-Button--noLabel, .t-Button--noLabel";const w=new Map;function B(o,i){let c,s=null;const h=n(i),f=function(o,a){const i=new Map,c=new Map,l=new Map;let s=[],h=!1,d=0;function f(t,e){let o,a;for(o=0;o<s.length;o++)a=s[o],a(t,e)}function g(t){f(t,"update")}function b(t,e,o){const a=i.get(t);a&&a[e]!=o&&(a[e]=o,g(a))}function y(t,e,o){let a,n,i=t.split(",");i.length>1?(n=i[0],a=l.get(n),a||(a=[],l.set(n,a)),a.push({shortcut:t,seqLen:i.length,actionName:e,value:o})):l.set(t,o?{actionName:e,value:o}:e)}function m(t){let e,o,a;if(t)if(a=t.split(","),a&&a.length>1){o=a[0],e=l.get(o);for(let o=0;o<e.length;o++)if(e[o].shortcut===t){e.splice(o,1);break}0===e.length&&l.delete(o)}else l.delete(t)}function K(t,e){let o,a,n,i,c,s=t.split(",");if(!(s.length>1))return l.get(t);if(a=s[0],i=[],o=l.get(a),r(o)){c=t.length;for(let e=0;e<o.length;e++){if(n=o[e],n.shortcut===t)return void 0!==n.value?{actionName:n.actionName,value:n.value}:n.actionName;n.seqLen>s.length&&n.shortcut.substr(0,c)===t&&i.push(n)}return i.length&&e?i:void 0}}function S(t,o,a){var n=!0,i=a||o,r=i.shortcut,l=o.name;return t.isValidShortcut(r)?!a&&i.choices?(e.warn("Shortcut '"+r+"' for radio group action '"+l+"' ignored."),n=!1):K(r)?(e.warn("Duplicate shortcut '"+i.shortcut+"' for action '"+l+"' ignored."),n=!1):(c.set(a?l+">"+a.value:l,r),y(r,l,a&&a.value)):(e.warn("Invalid shortcut '"+r+"' for action '"+l+"' ignored."),n=!1),n||(i.shortcut=null),n}return{typeName:o,context:a,add:function(t){var o,a,n,c,l=!0;for(r(t)||(t=[t]),o=0;o<t.length;o++)if((n=t[o]).name)if(i.has(n.name))e.warn("Duplicate action '"+n.name+"' ignored."),l=!1;else{if(i.set(n.name,n),n.shortcut&&(S(this,n)||(l=!1)),N(n,v),n.choices)for(a=0;a<n.choices.length;a++)(c=n.choices[a]).shortcut&&(S(this,n,c)||(l=!1)),N(c,k);f(n,"add")}return l},addFromMarkup:function(t){var e=this;t.find("ul").eq(0).children("li").each((function(){var t,o,a,i,r,c=null,l=n(this),s=l.find("a").eq(0),u=l.find("span.a-Menu-label").eq(0);u.length||(u=l.find("span").eq(0)),t={},s.length>0?(t.label=s.text(),t.href=s.attr("href"),(r=s.attr("target"))&&(t.target=r),c=s.attr("title")):u.length>0&&(t.label=u.text(),c=u.attr("title")),c&&(t.title=c),t.name=l.attr("data-id"),"true"===l.attr("data-hide")&&(t.hide=!0),"true"===l.attr("data-disabled")&&(t.disabled=!0),t.shortcut=l.attr("data-shortcut")||null,(o=l.attr("data-icon"))&&((a=o.indexOf(" "))>=0?(t.iconType=o.substring(0,a),t.icon=o.substring(a+1)):t.icon=o),t.name&&t.label&&"separator"!==t.href&&((i=e.lookup(t.name))?n.each(["label","href","target","hide","disabled","shortcut","icon","iconType"],(function(e,o){!i[o]&&t[o]&&(i[o]=t[o])})):e.add(t)),l.children("ul").length>0&&e.addFromMarkup(l)}))},remove:function(t){var e,o,a,n,l,s;for(r(t)||(t=[t]),e=0;e<t.length;e++)if((l="string"==typeof(n=t[e])?n:n.name)&&i.has(l)){if((s=(n=i.get(l)).shortcut)&&m(s),n.choices)for(o=0;o<n.choices.length;o++)(s=(a=n.choices[o]).shortcut)&&(m(s),c.delete(l+">"+a.value));i.delete(l),c.delete(l),f(n,"remove")}},clear:function(){for(const t of i.values())f(t,"remove");i.clear(),c.clear(),l.clear()},lookup:function(t){return i.get(t)},list:function(){var t,e,o,a,n=[];for(const[r,c]of i)if(o=C(c),c.choices)for(t=0;t<c.choices.length;t++)e=c.choices[t],a=o?o+": "+e.label:e.label,n.push({name:r,choice:e.value,label:a});else n.push({name:r,label:o});return n},update:function(t){var e,o,a,n=i.get(t),r=c.get(t),l=!0;if(n.shortcut!==r&&(m(r),n.shortcut?S(this,n)||(l=!1):c.delete(t)),N(n,v),n.choices)for(e=0;e<n.choices.length;e++)a=t+">"+(o=n.choices[e]).value,r=c.get(a),o.shortcut!==r&&(m(r),o.shortcut?S(this,n,o)||(l=!1):c.delete(a)),N(o,k);return g(n),l},updateChoices:function(t){const e=i.get(t);let o=!1;return e.choices&&(f(e,"updateChoices"),o=!0),o},enable:function(t){b(t,"disabled",!1)},disable:function(t){b(t,"disabled",!0)},hide:function(t){b(t,"hide",!0)},show:function(t){b(t,"hide",!1)},invoke:function(e,o,a){const n=i.get(e);return n&&(n.action||n.href)?n.disabled||n.hide?void 0:n.action?n.action(o,a):(n.target?t.navigation.openInNewWindow(n.href,n.target,{favorTabbedBrowsing:!0}):t.navigation.redirect(n.href),!0):(x(e," or action can't be invoked."),!1)},toggle:function(t){const e=i.get(t);if(!(e&&e.get&&e.set)||e.choices)return x(t," or action cannot be toggled."),!1;if(!e.disabled&&!e.hide){let o=!e.get();e.set(o),this.update(t)}},get:function(t){const e=i.get(t);return e&&e.get?e.get():(x(t," or cannot get action value."),null)},set:function(t,e){const o=i.get(t);o&&o.get&&o.set?o.disabled||o.hide||(o.choices||(e=!!e),o.set(e),this.update(t)):x(t," or cannot set action value.")},_lookupShortcutAction:function(t,e,o){if(!h||o)return K(t,e)},addShortcut:function(t,o,a){var n,c,l,s=i.get(o);if(!s)return e.warn("No such action '"+o+"'."),!1;if(!this.isValidShortcut(t))return e.warn("Invalid shortcut '"+t+"' ignored."),!1;if((l=K(t,!0))||r(l))return e.warn("Duplicate shortcut '"+t+"' for action '"+o+"' ignored."),!1;if(s.choices){if(!a)return e.warn("Shortcut '"+t+"' for radio group action '"+o+"' ignored."),!1;for(c=!1,n=0;n<s.choices.length;n++)if(s.choices[n].value===a){c=!0;break}if(!c)return e.warn("No such choice '"+a+" for action '"+o+"'."),!1}return y(t,o,a),!0},removeShortcut:function(t){let o=K(t,!0);return!r(o)&&(o&&"string"!=typeof o&&(o=o.actionName+">"+o.value),c.get(o)===t?(e.warn("Can't delete primary for action."),!1):(m(t),!0))},listShortcuts:function(t){var e,o,a,n,c,s,u,h=[];for(let[d,f]of l)for(r(f)||(a={shortcut:d},"string"!=typeof f?(a.actionName=f.actionName,a.value=f.value):a.actionName=f,f=[a]),o=0;o<f.length;o++){if(a=f[o],n=i.get(a.actionName),s={shortcut:a.shortcut,shortcutDisplay:this.shortcutDisplay(a.shortcut,t),actionName:a.actionName},(c=a.value)&&n.choices){for(s.choice=c,e=0;e<n.choices.length;e++)if(n.choices[e].value===c){(u=C(n))?u+=":"+n.choices[e].label:u=n.choices[e].label,s.actionLabel=u;break}}else s.actionLabel=C(n);h.push(s)}return h},shortcutDisplay:function(t,e){var o,a,n,i,r,c="",l=t.split(",");function s(t){var e,o=t.split("+");for(e=0;e<o.length;e++)e>0&&(c+=i+"+"+r),c+=a+(p[o[e]]||o[e])+n}for(a=n=i=r="",e&&(a="<b>",n="</b>",i="<i>",r="</i>",c="<span class='apex-kb-shortcut'>"),o=0;o<l.length;o++)o>0&&(c+=", "),s(l[o]);return e&&(c+="</span>"),c},disableShortcuts:function(){d+=1,d>0&&(h=!0)},enableShortcuts:function(){d-=1,d<=0&&(h=!1,d=0)},observe:function(t){s.push(t)},unobserve:function(t){for(let e=0;e<s.length;e++)if(s[e]===t){s.splice(e,1);break}},isValidShortcut:function(t,e){var o,a=t.split(",");function n(t){var e,o,a,n,i=0,r=!0,c=t.split("+");for(e=0;e<c.length-1;e++){if("Ctrl"===(o=c[e]))a=1;else if("Alt"===o)a=2;else if("Meta"===o)a=3;else{if("Shift"!==o){r=!1;break}a=4}if(a<=i){r=!1;break}i=a}if(r)for(n in o=c[e],r=!1,u)if(u[n]===o){r=!0;break}return r}for(o=0;o<a.length;o++)if(!n(a[o]))return!1;return!(e&&K(t,!0))}}}(o,i);function g(t,o,a,n){var i,r,c;try{if(!(i=f.lookup(t)))return void x(t,".");if(i.disabled)return;if(i.action||i.href){if(e.info(a+" invoke action '"+t+"'"),!1===(r=f.invoke(t,o,o.target)))return}else i.get&&i.set?(void 0!==n?(i.set(n),e.info(a+" set action '"+t+"'. Value now "+n)):(c=!i.get(),i.set(c),e.info(a+" toggle action '"+t+"'. Value now "+c)),f.update(t)):e.error("Error action '"+t+"' has no href or action, get, or set methods.")}catch(o){e.error("Error in action for '"+t+"'.",o)}!0!==r&&o.target.focus()}return F(o,i),c=w.get(o),c||(c=[],w.set(o,c)),c.push(f),f.observe((function(t,e){var o=t.name,i=n("[data-action="+o+"]",h);function r(t,e,o){t.find("."+e).each((function(){var t=n(this),a=[],i=t.attr("class");n.each(i.split(" "),(function(t,e){/^t-/.test(e)&&a.push(e)})),a.push(e),a.push(o),t.attr("class",a.join(" "))}))}"remove"!==e?i.each((function(){var o,i,c,s,u,h,p,g,b,y,m,v,k,K,C,N,x,w,B,F,T,A=!1,L="action",M=n(this);if(t.hide)M.hide();else{if(M.show(),t.get&&(L=t.choices?"radio":"toggle",g=t.get()),M.is(".js-actionSelect")?F="select":M.is(".js-actionRadioGroup")?F="radio":M.is(".js-actionCheckbox")?(F="checkbox","INPUT"!==(y=M)[0].nodeName&&(y=M.find("input")),(m=S(y[0])).is(".a-Button, .t-Button")?(A=!0,(v=M.find(".a-Button-label, .t-Button-label").first()).length||(v=m)):v=m):M.is(".js-actionButton")&&(F="button",(v=M.find(".a-Button-label, .t-Button-label").first()).length||(v=M)),"updateChoices"===e||"add"===e&&"radio"===L&&0===M.children().length){if(i=a.htmlBuilder(),"select"===F)for(s=null,o=0;o<t.choices.length;o++)(c=t.choices[o]).hide||(void 0!==c.group&&c.group!==s&&(null!==s&&i.markup("</optgroup>"),null!==c.group&&i.markup("<optgroup").attr("label",c.group).markup(">"),s=c.group),i.markup("<option").attr("value",c.value).markup(">").content(c.label).markup("</option>"));else if("radio"===F)for(k=M.closest("[id]")[0].id+"_"+t.name,K=M.attr("data-item-start")||t.labelStartClasses,C=M.attr("data-item")||t.labelClasses,N=M.attr("data-item-end")||t.labelClasses,x=!1,(w=M.attr("data-item-wrap")||t.itemWrapClasses||!1)&&(x=!!w&&"span",w&&w.indexOf(":")>0&&(x=(w=w.split(":"))[0],w=w[1]),x&&1!=={p:1,li:1,span:1,div:1}[x]&&(x="span")),o=0;o<t.choices.length;o++)(c=t.choices[o]).hide||(u=k+"_"+o,h=0===o&&K?K:o===t.choices.length-1&&N?N:C||"",x&&i.markup("<"+x).attr("class",w).markup(">"),i.markup("<input type='radio'").attr("name",k).attr("id",u).attr("value",c.value).markup("><label").attr("for",u).attr("class",h).attr("title",c.title||c.icon?c.title||c.label:null).markup(">"),c.icon?i.markup("<span class='u-VisuallyHidden'>").content(c.label).markup("</span><span aria-hidden='true'").attr("class",(c.iconType||"a-Icon")+" "+c.icon).markup("></span>"):i.content(c.label),i.markup("</label>"),x&&i.markup("</"+x+">"));M.html(i.toString())}else"add"===e&&(null===t.label&&("button"===F&&"action"===L?M.attr(l)?t.label=M.attr(l):M.is(D)?t.label=M.attr("title"):t.label=v.text():"checkbox"===F&&"toggle"===L?A&&m.is(D)?(t.label=m.find(".u-VisuallyHidden").first().text(),t.label||(t.label=m.attr("title"))):t.label=v.text():M.attr(l)&&(t.label=M.attr(l))),null===t.title&&"radio"!==F&&(t.title=M.attr("title"),!t.title&&m&&(t.title=m.attr("title")),!t.label&&t.title&&(t.label=t.title)),null===t.disabled&&(M.prop("disabled")||y&&y.prop("disabled"))&&(t.disabled=!0));if(p=t.label,b=t.title,p||"toggle"!==L||(p=g?t.onLabel:t.offLabel),B="",t.shortcut&&d&&(B=" ("+f.shortcutDisplay(t.shortcut)+")"),void 0===M.attr("data-no-update")&&("button"===F&&M.is(D)?(M.attr(l,p+B),b||(b=p)):"checkbox"===F&&"toggle"===L&&A&&m.is(D)?(m.find(".u-VisuallyHidden").first().text(p),b||(b=p)):"radio"===L?(p?M.attr(l,p):M.removeAttr(l),"select"!==F||b||(b=p)):v&&(v.text(p),B?M.attr(l,p+B):M.removeAttr(l)),"radio"!==F&&(B&&(b||(b=""),b+=B),b?M.attr("title",b):M.removeAttr("title")),"button"===F&&t.icon&&M.is(".a-Button--withIcon, .t-Button--icon")?r(M,t.iconType||"a-Icon",t.icon):A&&t.icon&&m.is(".a-Button--withIcon, .t-Button--icon")&&r(m,t.iconType||"a-Icon",t.icon)),"action"!==L&&("select"===F?M.val(g):"radio"===F?(M.find(".is-active").removeClass("is-active"),(y=M.find("[value="+a.escapeCSS(g)+"]")).prop("checked",!0),y.length&&(m=S(y[0])).addClass("is-active")):"checkbox"===F?(y.prop("checked",!!g),m.toggleClass("is-active",g)):M.is(".js-actionButton")&&("toggle"!==L||t.onLabel||M.toggleClass("is-active",g))),"checkbox"===F&&y.prop("disabled",!!t.disabled),"radio"===F||"select"===F){for(T=M.find("option,input"),o=0;o<t.choices.length;o++)c=t.choices[o],T.eq(o).prop("disabled",!!c.disabled);"select"===F&&M.prop("disabled",!!t.disabled)}else M.prop("disabled",!!t.disabled)}})):i.hide()})),h.on("click.actions",".js-actionButton",(function(t){g(n(this).attr("data-action"),t,"Button click"),t.stopPropagation()})).on("click.actions",".js-actionCheckbox",(function(t){var e=n(this).attr("data-action");"INPUT"===t.target.nodeName&&(g(e,t,"Checkbox click",t.target.checked),t.stopPropagation())})).on("change.actions",".js-actionRadioGroup",(function(t){var e,o,a=n(this).attr("data-action");e="",(o=n(this).find(":checked")).length&&(e=o.val()),g(a,t,"Radio group change",e),t.stopPropagation()})).on("change.actions",".js-actionSelect",(function(t){g(n(this).attr("data-action"),t,"Select change",n(this).val()),t.stopPropagation()})).on("keydown.actions",(function(e){var o,a,n,i,c,l,u=t.actions.partialShortcutInput;d&&!e.isDefaultPrevented()&&(i=e.originalEvent||e,l=s,(n=K(i,!!s))?(s&&(s+=","+n,n=s),o=f._lookupShortcutAction(n,!0),r(o)?(s||(s=n),e.stopPropagation(),e.preventDefault(),o=null):o||(s=null),o&&(s&&u&&u(f.shortcutDisplay(s)),s=null,"string"!=typeof o&&(a=o.value,o=o.actionName),g(o,e,"Shortcut key",a),o=null,e.stopPropagation(),e.preventDefault())):16!==(c=i.which)&&17!==c&&18!==c&&91!==c&&(s=null),(s||l)&&u&&u(s?f.shortcutDisplay(s):null))})).on("menubeforeopen.actions",(function(){f.disableShortcuts()})).on("menuafterclose.actions",(function(){f.enableShortcuts()})).on("dialogopen.actions",(function(t){t.target!==f.context&&n(t.target).dialog("option","modal")&&f.disableShortcuts()})).on("dialogclose.actions",(function(t){t.target!==f.context&&n(t.target).dialog("option","modal")&&f.enableShortcuts()})),f}function F(t,e){const o=w.get(t);if(o)for(let a=0;a<o.length;a++)if(o[a].context===e){return n(o[a].context).off(".actions"),o.splice(a,1),void(0===o.length&&w.delete(t))}}t.actions={},t.actions.createContext=B,t.actions.removeContext=F,n((function(){c(t.actions,B("global",document.body)),w.get("global")[0]=t.actions})),t.actions.getContextTypes=function(){let t=[];for(const e of w.keys())t.push(e);return t},t.actions.getContextsForType=function(t){return w.get(t)||[]},t.actions.findContext=function(t,e){let o,a,n=t=>t.context===e;if(e||(e=t,t=null),t)o=w.get(t),o&&(a=o.find(n));else for(const t of w.keys())if(a=w.get(t).find(n),a)break;return a},t.actions.getShortcutFromEvent=function(t){const e=K(t.originalEvent||t,!0);return e?{shortcut:e,shortcutDisplay:this.shortcutDisplay(e)}:null},t.actions.shortcutSupport=function(t){if(void 0===t)return d?f?"sequence":"single":"off";d=!0,"single"===t?f=!1:"sequence"===t?f=!0:d=!1},t.actions.setKeyCaps=function(t){if(null===t)p={};else{p=c(p,t);for(let[t,e]of i(p))p[t]=a.stripHTML(e)}},t.actions.getKeyCaps=function(){return c({},p)},h&&t.actions.setKeyCaps({Alt:"Option",Meta:"⌘",Ctrl:"Control",Backspace:"Delete"}),t.actions.setShortcutKeyBindings=function(e){var o,a,n,i,c,l,s,u,h,d,f,p,g,b,y,m={};function v(t,e,o,a,n){var i,c,l,s,u=!1,h=t._lookupShortcutAction(e,!0,!0);if(r(h))return!1;if(!h)return!0;if("string"!=typeof h&&(c=h.value,h=h.actionName),l=t.lookup(h),c){for(i=0;i<l.choices.length;i++)if((s=l.choices[i]).value===c){u=s.shortcut===e;break}}else u=l.shortcut===e;return(o!==h||a!==c||u!==n)&&(u?(c?s.shortcut=null:l.shortcut=null,t.update(h)):t.removeShortcut(e),!0)}for(o=0;o<e.length;o++)if((i=e[o]).shortcut&&(m[i.type+":"+i.shortcut]=1),i.shortcuts)for(a=0;a<i.shortcuts.length;a++)m[i.type+":"+i.shortcuts[a]]=1;for(g=t.actions.getContextTypes(),o=0;o<g.length;o++)for(b=g[o],c=t.actions.getContextsForType(b),a=0;a<c.length;a++)for(y=(l=c[a]).listShortcuts(),n=0;n<y.length;n++)m[b+":"+y[n].shortcut]||v(l,y[n].shortcut);for(o=0;o<e.length;o++)if(h=(i=e[o]).name,p=i.choice,d=i.shortcut,f=i.shortcuts||[],(d||f.length)&&(c=t.actions.getContextsForType(i.type)))for(a=0;a<c.length;a++)if(s=(l=c[a]).lookup(h)){if(d&&v(l,d,h,p,!0)){if(p){for(n=0;n<s.choices.length;n++)if((u=s.choices[n]).value===p){u.shortcut=d;break}}else s.shortcut=d;l.update(h)}if(f.length>0)for(n=0;n<f.length;n++)v(l,f[n],h,p,!1)&&l.addShortcut(f[n],h,p)}}}(apex,apex.debug,apex.lang,apex.util,apex.jQuery);
/*! Hammer.JS - v2.0.8 - 2016-04-23
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */
!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(b,c,d){var e="DEPRECATED METHOD: "+c+"\n"+d+" AT \n";return function(){var c=new Error("get-stack-trace"),d=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function s(a){return Array.prototype.slice.call(a,0)}function t(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];r(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ma.length;){if(c=ma[g],e=c?c+f:b,e in a)return e;g++}return d}function v(){return ua++}function w(b){var c=b.ownerDocument||b;return c.defaultView||c.parentWindow||a}function x(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){k(a.options.enable,[a])&&c.handler(b)},this.init()}function y(a){var b,c=a.options.inputClass;return new(b=c?c:xa?M:ya?P:wa?R:L)(a,z)}function z(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&Ea&&d-e===0,g=b&(Ga|Ha)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,A(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function A(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=D(b)),e>1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:pa(a.pointers[c].clientX),clientY:pa(a.pointers[c].clientY)},c++;return{timeStamp:ra(),pointers:b,center:E(b),deltaX:a.deltaX,deltaY:a.deltaY}}function E(a){var b=a.length;if(1===b)return{x:pa(a[0].clientX),y:pa(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ga|Ha)&&delete d[g[e].identifier],e++;return h.length?[t(f.concat(h),"identifier",!0),h]:void 0}function R(){x.apply(this,arguments);var a=j(this.handler,this);this.touch=new P(this.manager,a),this.mouse=new L(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}function S(a,b){a&Ea?(this.primaryTouch=b.changedPointers[0].identifier,T.call(this,b)):a&(Ga|Ha)&&T.call(this,b)}function T(a){var b=a.changedPointers[0];if(b.identifier===this.primaryTouch){var c={x:b.clientX,y:b.clientY};this.lastTouches.push(c);var d=this.lastTouches,e=function(){var a=d.indexOf(c);a>-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d<this.lastTouches.length;d++){var e=this.lastTouches[d],f=Math.abs(b-e.x),g=Math.abs(c-e.y);if(db>=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(e!==d&&null!==e)for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])}return b}:Object.assign;var sa=h(function(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a},"extend","Use `assign`."),ta=h(function(a,b){return sa(a,b,!0)},"merge","Use `assign`."),ua=1,va=/mobile|tablet|ip(ad|hone|od)|android/i,wa="ontouchstart"in a,xa=u(a,"PointerEvent")!==d,ya=wa&&va.test(navigator.userAgent),za="touch",Aa="pen",Ba="mouse",Ca="kinect",Da=25,Ea=1,Fa=2,Ga=4,Ha=8,Ia=1,Ja=2,Ka=4,La=8,Ma=16,Na=Ja|Ka,Oa=La|Ma,Pa=Na|Oa,Qa=["x","y"],Ra=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(w(this.element),this.evWin,this.domHandler)}};var Sa={mousedown:Ea,mousemove:Fa,mouseup:Ga},Ta="mousedown",Ua="mousemove mouseup";i(L,x,{handler:function(a){var b=Sa[a.type];b&Ea&&0===a.button&&(this.pressed=!0),b&Fa&&1!==a.which&&(b=Ga),this.pressed&&(b&Ga&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:Ba,srcEvent:a}))}});var Va={pointerdown:Ea,pointermove:Fa,pointerup:Ga,pointercancel:Ha,pointerout:Ha},Wa={2:za,3:Aa,4:Ba,5:Ca},Xa="pointerdown",Ya="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Xa="MSPointerDown",Ya="MSPointerMove MSPointerUp MSPointerCancel"),i(M,x,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Va[d],f=Wa[a.pointerType]||a.pointerType,g=f==za,h=r(b,a.pointerId,"pointerId");e&Ea&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(tb|nb)))return!1;a++}return!0},recognize:function(a){var b=la({},a);return k(this.options.enable,[this,b])?(this.state&(rb|sb|tb)&&(this.state=nb),this.state=this.process(b),void(this.state&(ob|pb|qb|sb)&&this.tryEmit(b))):(this.reset(),void(this.state=tb))},process:function(a){},getTouchAction:function(){},reset:function(){}},i(aa,Y,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(ob|pb),e=this.attrTest(a);return d&&(c&Ha||!e)?b|sb:d||e?c&Ga?b|qb:b&ob?b|pb:ob:tb}}),i(ba,aa,{defaults:{event:"pan",threshold:10,pointers:1,direction:Pa},getTouchAction:function(){var a=this.options.direction,b=[];return a&Na&&b.push(lb),a&Oa&&b.push(kb),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Na?(e=0===f?Ia:0>f?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&Ea&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ga)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||H(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=rb,this.tryEmit()},b.interval,this),ob):rb}return tb},failTimeout:function(){return this._timer=e(function(){this.state=tb},this.options.interval,this),tb},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==rb&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ha.VERSION="2.0.8",ha.defaults={domEvents:!1,touchAction:gb,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[ca,{enable:!1},["rotate"]],[fa,{direction:Na}],[ba,{direction:Na},["swipe"]],[ga],[ga,{event:"doubletap",taps:2},["tap"]],[da]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ub=1,vb=2;ia.prototype={set:function(a){return la(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?vb:ub},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&rb)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===vb||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(ob|pb|qb)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof Y)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;if(a=this.get(a)){var b=this.recognizers,c=r(b,a);-1!==c&&(b.splice(c,1),this.touchAction.update())}return this},on:function(a,b){if(a!==d&&b!==d){var c=this.handlers;return g(q(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this}},off:function(a,b){if(a!==d){var c=this.handlers;return g(q(a),function(a){b?c[a]&&c[a].splice(r(c[a],b),1):delete c[a]}),this}},emit:function(a,b){this.options.domEvents&&ka(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&ja(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},la(ha,{INPUT_START:Ea,INPUT_MOVE:Fa,INPUT_END:Ga,INPUT_CANCEL:Ha,STATE_POSSIBLE:nb,STATE_BEGAN:ob,STATE_CHANGED:pb,STATE_ENDED:qb,STATE_RECOGNIZED:rb,STATE_CANCELLED:sb,STATE_FAILED:tb,DIRECTION_NONE:Ia,DIRECTION_LEFT:Ja,DIRECTION_RIGHT:Ka,DIRECTION_UP:La,DIRECTION_DOWN:Ma,DIRECTION_HORIZONTAL:Na,DIRECTION_VERTICAL:Oa,DIRECTION_ALL:Pa,Manager:ia,Input:x,TouchAction:V,TouchInput:P,MouseInput:L,PointerEventInput:M,TouchMouseInput:R,SingleTouchInput:N,Recognizer:Y,AttrRecognizer:aa,Tap:ga,Pan:ba,Swipe:fa,Pinch:ca,Rotate:ea,Press:da,on:m,off:n,each:g,merge:ta,extend:sa,assign:la,inherit:i,bindFn:j,prefixed:u});var wb="undefined"!=typeof a?a:"undefined"!=typeof self?self:{};wb.Hammer=ha,"function"==typeof define&&define.amd?define(function(){return ha}):"undefined"!=typeof module&&module.exports?module.exports=ha:a[c]=ha}(window,document,"Hammer");

!function(e,t,c,a){"use strict";let n={item_type:"SINGLE_CHECKBOX",enable:function(){this.element.prop("disabled",!1)},disable:function(){this.element.prop("disabled",!0)},isDisabled:function(){return!0===this.element.prop("disabled")},setValue:function(e){e!==this._checkedValue&&e!==this._uncheckedValue&&(a.warn("Checkbox item corrected invalid set value."),e=this._uncheckedValue),this.element.prev().val(e),this.node.checked=e===this._checkedValue},getValue:function(){return t("#"+c.escapeCSS(this.id+"_HIDDENVALUE")).val()},isChanged:function(){return this.node.defaultChecked!==(this.getValue()===this._checkedValue)},setStyleTo:function(){return this.element.parent().find(".u-checkbox")},displayValueFor:function(e,t){let c=e===this._checkedValue,a=apex.lang.getMessage("APEX.ITEM_TYPE.CHECKBOX."+(c?"CHECKED":"UNCHECKED"));return!t||t.disabled||t.readonly?"<span class='u-checkbox"+(c?" is-checked":"")+"'><span class='u-vh'>"+a+"</span></span>":"<div class='apex-item-single-checkbox'><input type='checkbox'"+(c?" checked":"")+" tabindex='-1'><span class='u-checkbox'></span><span class='u-vh' aria-hidden='true'>"+a+"</span></div>"},getInteractionSelector:function(){return".u-checkbox,.apex-item-single-checkbox"},onInteraction:function(e,t,c,a){let n;if("keydown"!==e.type)return"click"===e.type?(n=t.getValue(c,a),n=n===this._checkedValue?this._uncheckedValue:this._checkedValue,t.setValue(c,a,n)):"activate"===e.type&&(n=this.getValue(),n=n===this._checkedValue?this._uncheckedValue:this._checkedValue,this.setValue(n)),!1},setLabel:function(e){e!==this._label&&(this._label=e,e?this.element.parent().find(".u-checkbox").replaceWith("<label class='u-checkbox' for='"+this.id+"'>"+e+"</label>"):this.element.parent().find(".u-checkbox").replaceWith("<span class='u-checkbox'></span>"))}};e.addAttachHandler((function(i){t(".apex-item-single-checkbox > input[type='checkbox']",i).each((i,l)=>{let s,h,u,d=t(l),o=d.parent(),r=l.id,p=t("#"+c.escapeCSS(r+"_HIDDENVALUE")),k=d.attr("value")||"Y",b=d.attr("data-unchecked-value");void 0===b&&(b="N"),s=d.next("label"),s.length||(s=t('label[for="'+c.escapeCSS(r)+'"]'),s.length?s.attr("class","u-checkbox"):s=t('<span class="u-checkbox"></span>'),o.append(s)),h=p.val(),h!==k&&h!==b&&(h=b,p.val(h),a.warn("Checkbox item corrected invalid initial value.")),d[0].checked!==(h===k)&&(d[0].checked=d[0].defaultChecked=h===k,a.warn("Checkbox item initial checked state adjusted to match value.")),d.click(()=>{p.val(d[0].checked?k:b)}).parent().on("mousedown","span.u-checkbox",e=>{d[0].focus(),d.trigger("click"),e.preventDefault()}),e.create(r,n),u=e(r),u._checkedValue=k,u._uncheckedValue=b})}))}(apex.item,apex.jQuery,apex.util,apex.debug);
!function(e,n,t,a){"use strict";const i=t.hasOwnProperty;e.checkboxAndRadio=function(o,r,u){var c=n.extend({action:null,nullValue:"",inputName:null},u),l=n(o,apex.gPageContext$);function p(){l.children(":not(legend)").remove()}function d(e){l.append(e.html)}n(o,apex.gPageContext$).each((function(){var a=this,i={enable:function(){n(":"+r,a).prop("disabled",!1).removeClass("apex_disabled_multi")},disable:function(){n(":"+r,a).prop("disabled",!0).addClass("apex_disabled_multi")},isDisabled:function(){return!0===n(":"+r,a).first().prop("disabled")},setValue:function(e){var i=n(":"+r,a),o=[];i.prop("checked",!1),"checkbox"===r?o=t.toArray(e):o[0]=e;for(var u=0;u<o.length;u++)i.filter("[value='"+t.escapeCSS(o[u])+"']").prop("checked",!0)},getValue:function(){var e,t;return"checkbox"===r?(e=[],n(":checked",a).each((function(){e[e.length]=this.value}))):(t=n(o+" :checked",apex.gPageContext$),e=0===t.length?"":t.val()),e},nullValue:c.nullValue,setFocusTo:n(":"+r,a).first(),loadingIndicator:function(e){return e.appendTo(l)},displayValueFor:function(e){var i,o,r,u=[],c=n(a);if(null!=e)for(Array.isArray(e)||(e=[e]),i=0;i<e.length;i++)null!=(o=e[i])&&(void 0!==(r=c.find(`[value='${t.escapeCSS(o+"")}']`).attr("data-display"))?u.push(r):u.push(o));return u.join(", ")}};c.dependingOnSelector&&(i.reinit=function(a){var i,o=this,u=n.isArray(a)?a:[a];for(p(),i=0;i<u.length;i++)l.append("<input type='"+r+"' value='"+t.escapeHTML(u[i])+"'>");return this.setValue(a,null,!0),function(){e.util.cascadingLov(l,c.ajaxIdentifier,{x01:c.inputName,pageItems:n(c.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:c.optimizeRefresh,dependingOn:n(c.dependingOnSelector,apex.gPageContext$),success:function(e){p(),d(e),o.setValue(a,null,!0)},target:o.node})}}),apex.item.create(this.id,i)})),c.dependingOnSelector&&n(c.dependingOnSelector,apex.gPageContext$).on("change",(function(){l.trigger("apexrefresh")})),l.on("apexrefresh",(function(t){e.util.cascadingLov(l,c.ajaxIdentifier,{x01:c.inputName,pageItems:n(c.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:c.optimizeRefresh,dependingOn:n(c.dependingOnSelector,apex.gPageContext$),success:function(e){d(e),i(e,"default")&&$s(l[0],e.default)},clear:p,target:t.target})})),"REDIRECT_SET_VALUE"===c.action?l.find("input").click((function(){location.href="f?p="+a.APP_ID+":"+a.APP_PAGE_ID+":"+apex.env.APP_SESSION+"::"+$v("pdebug")+"::"+l.attr("id")+":"+$v(l.attr("id"))})):"SUBMIT"===c.action&&l.find("input").click((function(){apex.submit(l.attr("id"))}))}}(apex.widget,apex.jQuery,apex.util,apex.env);
!function(e,t,a,i,n,r){"use strict";let o={getNativeValue:function(){let e=this.node.value;return e?(10===e.length?e+="T00:00:00Z":e+="Z",new Date(e)):null},isChanged:function(){return void 0!==this._initialValue&&this._initialValue!==this.getValue()},getValidationMessage:function(){let e=this.element.attr("data-valid-message"),t="",a=this.element.prop("required"),n=void 0!==this.element.attr("min"),r=void 0!==this.element.attr("max");return this.getValidity().valid||(t=e||(a&&this.isEmpty()?i.formatMessageNoEscape("APEX.DATEPICKER_JET.REQUIRED"):n&&r?i.formatMessageNoEscape("APEX.DATEPICKER_JET.VALUE_MUST_BE_BETWEEN",this._format(this.element.attr("min")),this._format(this.element.attr("max"))):n?i.formatMessageNoEscape("APEX.DATEPICKER_JET.VALUE_MUST_BE_ON_OR_AFTER",this._format(this.element.attr("min"))):r?i.formatMessageNoEscape("APEX.DATEPICKER_JET.VALUE_MUST_BE_ON_OR_BEFORE",this._format(this.element.attr("max"))):i.formatMessageNoEscape("APEX.DATEPICKER_JET.VALUE_INVALID",this.element.attr("data-valid-example")))),t},reinit:function(e){let t=this.element.attr("data-dynamic-min"),a=this.element.attr("data-dynamic-max");this.setValue(e,null,!0),t&&c("min",t,this),a&&c("max",a,this)},_ignorePropertyChange:!1},s=t.extend({},o,{_datePickerType:"jet",displayValueFor:function(e){return this.isReady()?this._format(e):e},getPopupSelector:function(){return".oj-datepicker-popup"},setFocusTo:function(){return this._isInline?t(this.node).find(":focusable").first():this.node},getValue:function(){return this.isReady()?this._format(this.node.value):t("#"+a.escapeCSS(this.id)).attr("data-oracle-date-value")||""},setValue:function(e){this._ignorePropertyChange=!0,this.isReady()?this.node.value=this._parse(e):this.node.value=e,this._ignorePropertyChange=!1},getValidity:function(){return this._ignorePropertyChange=!0,this.node.validate(),this._ignorePropertyChange=!1,{valid:"valid"===this.node.valid}},delayLoading:!0}),d=t.extend({},o,{_datePickerType:"native",getValue:function(){return this.node.value||""},setValue:function(e){this._ignorePropertyChange=!0,this.node.value=e,this._ignorePropertyChange=!1},displayValueFor:function(e){let t="";return e&&(t=this._hasTime?new Date(e).toLocaleString():new Date(e).toLocaleDateString()),t},_format:function(e){return this.displayValueFor(e)}});function l(e,t){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(e))return n.parse(e,'YYYY-MM-DD"T"HH24:MI:SS');if(/^\d{4}-\d{2}-\d{2}$/.test(e))return n.parse(e,"YYYY-MM-DD");try{return n.parse(e,t)}catch(t){return r.info(t),e}}function u(e){let i=t("#"+a.escapeCSS(e.id));return!(!i.attr("data-dynamic-min")&&!i.attr("data-dynamic-max"))}function c(i,r,o){let s=e(r),d=t("#"+a.escapeCSS(o.id)),u=s.node?s.node.value||s.getValue():null,c=l(u,d.attr("data-format"));if(u&&!isNaN(c)){let e=n.format(c,"YYYY-MM-DD");o._hasTime&&(e=n.format(c,'YYYY-MM-DD"T"HH24:MI:SS')),d.attr(i,e)}else d.removeAttr(i)}e.addAttachHandler((function(i){let o,m=[],p=[],h=[],f=t("oj-input-date.apex-jet-component,oj-input-date-time.apex-jet-component,oj-date-picker.apex-jet-component,oj-date-time-picker.apex-jet-component",i);function g(e){let i;function n(e,i,n,r){c(e,i,r),t("#"+a.escapeCSS(i)).on("change",(function(){c(e,i,r)}))}for(i=0;i<e.length;i++){let r=e[i],o=r.id,s=t("#"+a.escapeCSS(o)),d=s.attr("data-dynamic-min"),l=s.attr("data-dynamic-max");d&&n("min",d,0,r),l&&n("max",l,0,r)}}for(t("input[type=date].apex-item-datepicker,input[type=datetime-local].apex-item-datepicker",i).each((t,a)=>{let i,n=a.id;e.create(n,d),i=e(n),i._hasTime="datetime-local"===a.type,i._initialValue=i.getValue(),u(i)&&m.push(i)}),g(m),f.each((a,i)=>{let o=i.id,d=t(i),c=e.create(i.id,s),m=e(o);const h=d.attr("data-format");require(["ojs/ojcore","ojs/ojconverterutils-i18n","ojs/ojconverter-datetime","ojs/ojdatetimepicker"],(function(e,a,o){e.Context.getContext(this).getBusyContext().whenReady().then((function(){let e=d.find("input.oj-text-field-input");t(".oj-datepicker-popup").prop("tabindex",-1),e.attr("aria-labelledby",i.id+"_LABEL").attr("size",d.attr("data-size")).attr("maxlength",d.attr("data-maxlength")).attr("name",d.attr("data-name")),m._hasTime=d.is("oj-input-date-time,oj-date-time-picker"),m._isInline=d.is("oj-date-picker,oj-date-time-picker");let a=new o.IntlDateTimeConverter({formatType:m._hasTime?"datetime":"date",timeFormat:h.toUpperCase().includes("SS")?"medium":"short"});a.format=function(e){if(r.info("apex.widget.jetDatePicker: format",i.id),null==e||""===e)return null;try{let t=l(e,h);return n.format(t,h)}catch(t){return e}},a.parse=function(e){if(r.info("apex.widget.jetDatePicker: parse",i.id),null==e||""===e)return null;try{let t=l(e,h);return n.toISOString(t)}catch(t){return e}},i.converter=a,m._format=function(e){return i.converter.format(e)||""},m._parse=function(e){return i.converter.parse(e)},d.on("valueChanged",(function(){m._ignorePropertyChange||setTimeout((function(){d.trigger("change")}),0)})).change((function(e){e.target!==i&&e.stopImmediatePropagation()})),d.find(".oj-required-inline-container").hide(),c.resolve(),m._initialValue=m.getValue()}))})),m.whenReady&&u(m)&&p.push(m)}),o=0;o<p.length;o++)h.push(p[o].whenReady());t.when.apply(t,h).done((function(){g(p)}))}))}(apex.item,apex.jQuery,apex.util,apex.lang,apex.date,apex.debug);
!function(e,t,a,i){"use strict";const l=i.ui.keyCode,n=a.hasOwnProperty;e.popupLov=function(r){var s,o,u,p,c,d,f,m,v,h,g,b=l.RIGHT,x=l.LEFT,y=!1,V=!1,E=!1,C="",S=r.itemId,O=i("#"+a.escapeCSS(S)+"_lov_btn",apex.gPageContext$),T=O.parent(),D=i("#"+a.escapeCSS(S),apex.gPageContext$),w=i("#"+a.escapeCSS(S)+"_HIDDENVALUE",apex.gPageContext$),I=i().add(O).add(D).add(w),P=i().add(O).add(D);function j(t){var a,i=!1,l=D.val();r.enterable&&l!==C?a=l:t?(a=t,i=!0):a=null,C=l,D.attr("aria-expanded","true"),V=!0,e.util.openPopupLov(y,a,i,r,(function(e){e&&(C=e.d||e.v||e,r.multiple&&D.val("")),D.attr("aria-expanded","false"),V=!1})),y=!1}function A(e,t){var i=t||e;return"<li class='apex-item-multi-item' data-value='"+a.escapeHTMLAttr(e)+"'><span>"+a.escapeHTML(i)+"<button class='apex-item-multi-remove' type='button' tabindex='-1' aria-label='"+apex.lang.formatMessage("APEX.POPUP_LOV.REMOVE_VALUE",i)+"'><span class='a-Icon icon-multi-remove'></span></button></span></li>"}function L(){var e,t;(e=D.data("popupLovModelName"))&&(t=apex.model.get(e))&&(t.setData([]),apex.model.release(e)),y=!0}if((r=i.extend({dependingOnSelector:null,pageItemsToSubmit:null,height:r.isPopup?280:380,width:null,isPopup:!1,display:"list",nullValue:"",dynamicDefault:!1,initialFetch:"empty",multiple:!1,separator:":",enterable:!1,incrementalSearch:!1,minSearchChars:0,displayColumn:null,iconColumn:null,extraOut:{},persistState:!0},r)).width||r.isPopup||(r.width="grid"===r.display?500:300),void 0===r.nullDisplayValue&&(r.nullDisplayValue=r.nullValue),r.hasDisplayValue=!r.enterable&&r.displayColumn,D.attr("role","combobox").attr("aria-autocomplete","list").attr("aria-expanded","false").attr("aria-haspopup","dialog"),r.multiple&&(m=D.attr("placeholder"),"rtl"===(u=D.parent().parent()).css("direction")&&(b=l.LEFT,x=l.RIGHT),(c=u.parent()).css("position","relative"),D.css("flex-grow",0),d=function(){var e=c.width()-O.outerWidth(!0);u.css("max-width",e),p=e-parseInt(u.css("border-left-width"),10)-parseInt(u.css("border-right-width"),10)-parseInt(u.css("padding-left"),10)-parseInt(u.css("padding-right"),10)},e.util.onElementResize(c[0],(function(){d(),s.afterModify()})),e.util.onVisibilityChange(c[0],(function(t){t&&e.util.updateResizeSensors(c[0])})),d(),h=[],g=[],u.children().not(":last").each((function(){var e=i(this);h.push(e.attr("data-value")),g.push(e.text())})).remove(),u.click((function(e){var t=!1,a=i(e.target),l=a.closest(".apex-item-multi-remove"),n=a.closest(".apex-item-multi-item");s.isDisabled()||(l[0]?(s.removeValue(n.attr("data-value")),t=!0):n.find("input")[0]||(u.children(".is-active").removeClass("is-active"),n.addClass("is-active"),t=!0),t&&setTimeout((function(){D.focus()}),1))})).keydown((function(e){var t=e.which,a=u.children(".is-active");s.isDisabled()||(""===D.val()?t===l.DELETE||t===l.BACKSPACE?(e.target!==D[0]||t!==l.BACKSPACE||a[0]||(a=D.parent().prev()),a[0]&&s.removeValue(a.attr("data-value"))):t===x?a[0]?a.prev()[0]&&(a.removeClass("is-active"),a.prev().addClass("is-active")):D.parent().prev().addClass("is-active"):t===b&&a[0]&&a.next()[0]&&(a.removeClass("is-active"),(a=a.next()).find("input")[0]||a.addClass("is-active")):r.enterable&&t===l.ENTER&&D.val()&&(s.addValue(D.val()),D.val(""),e.stopPropagation()),t===l.ENTER&&e.preventDefault())})).focusin((function(e){u.addClass("is-focused"),"INPUT"!==e.target.nodeName.toUpperCase()&&D.focus()})).focusout((function(){u.removeClass("is-focused").children(".is-active").removeClass("is-active"),r.enterable&&D.val()&&!V&&(s.addValue(D.val()),D.val(""))}))),r.initialSearch="",y=!0,"value"!==r.initialFetch||r.multiple||(r.initialSearch=D.val()),(r.pageItemsToSubmit||r.dependingOnSelector)&&(o=r.pageItemsToSubmit||"",r.dependingOnSelector&&(o.length>0&&(o+=","),o+=r.dependingOnSelector),r.itemsToSubmit=o.replace(/#/g,"").split(/\s*,\s*/)),r.itemsToSubmit&&(r.pluginTarget=D[0]),r.isPopup&&!r.enterable?T.mousedown((function(e){0!==e.button||s.isDisabled()||(j(),e.preventDefault())})):O.click((function(){E||j(),E=!1})).mousedown((function(){V&&(E=!0)})),r.enterable&&!r.multiple&&!i.isEmptyObject(r.extraOut)){let e;D.focus(t=>{e=t.target.value}).blur(t=>{let a=t.target.value;e!==a&&s.setValue(a,null,!0)})}function _(){s.refresh()}D.keydown((function(e){var t,a=e.which,n=!1;a===l.DOWN||a===l.UP?j():a===l.ENTER?e.preventDefault():r.enterable||((n=!(a>=112&&a<=123||a>=33&&a<=46||a<32))&&(e.ctrlKey||e.metaKey)&&{65:1,67:1,86:1,88:1,89:1,90:1}[a]&&(n=!1),n&&((t=i("#apexPopupLovInputTrap"))[0]||(t=i("<input id='apexPopupLovInputTrap' type='text' class='u-vh' aria-hidden='true' tabindex='-1'>")),t.insertAfter(D).focus(),setTimeout((function(){var e=t.val();t.val(""),e.length>0?j(e):document.activeElement===t[0]&&D.focus()}),10)))})),O.on("focus",(function(){D.focus()})),v={enable:function(){I.prop("disabled",!1),D.removeClass("apex_disabled"),r.multiple&&u.find(".apex-item-multi-remove").prop("disabled",!1)},disable:function(){I.prop("disabled",!0),D.addClass("apex_disabled"),r.multiple&&u.find(".apex-item-multi-remove").prop("disabled",!0)},isDisabled:function(){return D.prop("disabled")},show:function(){P.show()},hide:function(){P.hide()},refresh:function(){D.trigger("apexbeforerefresh"),r.dynamicDefault?setTimeout((function(){s.setValue("TODO","To do")}),900):s.setValue(r.nullValue,r.nullDisplayValue),function(e){let t=r.extraOut;for(const[,i]of a.objectEntries(t)){let t,a;e?(t="",a=null):(t=i.initialValue,a=null,null!==t&&"object"==typeof t&&n(t,"d")&&(t=t.v,a=t.d)),$s(i.item,t,a)}}(!0),L(),D.trigger("apexafterrefresh")},setValue:function(e,l,n){function o(e,t){V||apex.server.plugin(r.ajaxIdentifier,{p_widget_action:"get-row-values",f01:e,pageItems:r.pageItemsToSubmit},{loadingIndicator:"#"+a.escapeCSS(s.id),success:function(e){t(e)}})}function p(e,t){let a,l="";for(a=0;a<e.length;a++)l+=A(e[a],t?t[a]:null);D.parent().before(i(l))}function c(e){let a,l=r.extraOut;if(!i.isEmptyObject(l))for(const[i,r]of Object.entries(l))a=e?e[i]:"",t(r.item).setValue(a,null,n)}if(r.multiple){let t=a.toArray(e,r.separator);D.val(""),u.children().not(":last").remove(),""!==e&&(l?(p(t,a.toArray(l,r.separator)),w.val(t.join(r.separator))):o(e,t=>{if(!i.isEmptyObject(t)){let i,l=[],n=a.toArray(e,r.separator);for(i=0;i<n.length;i++)t[n[i]]?l.push(t[n[i]].display):n.splice(i,1);p(n,l),w.val(n.join(r.separator))}}))}else r.hasDisplayValue?(w.val(e),l||e!==r.nullValue?l?(D.val(l),i.isEmptyObject(r.extraOut)||o(e,t=>{i.isEmptyObject(t)?c():c(t[e].columns)})):e?o(e,t=>{i.isEmptyObject(t)?(D.val(""),c()):(D.val(t[e].display),c(t[e].columns))}):(D.val(""),c()):(D.val(r.nullDisplayValue),c())):(D.val(e),i.isEmptyObject(r.extraOut)||o(e,t=>{i.isEmptyObject(t)?c():c(t[e].columns)}))},addValue:function(e,t){var a,l;r.multiple&&(l=!0,u.children().not(":last").each((function(){if(i(this).attr("data-value")===e)return l=!1,!1})),l&&(a=i(A(e,t)),D.parent().before(a),w.val(this.getValue().join(r.separator)),D.change()))},removeValue:function(e){var t=[];r.multiple&&(u.children().not(":last").each((function(){i(this).attr("data-value")===e&&t.push(this)})),i(t).remove(),w.val(this.getValue().join(r.separator)),t.length&&D.change())},isChanged:function(){var e=this.getValue();return i.isArray(e)&&(e=e.join(r.separator)),f!==e},getValue:function(){var e;return r.multiple?(e=[],u.children().not(":last").each((function(){e.push(i(this).attr("data-value"))})),e):r.hasDisplayValue?w.val():D.val()},afterModify:function(){var e,t,a,i,l,n;if(r.multiple){if(m&&D.attr("placeholder",this.isEmpty()?m:""),a=D.parent(),n=parseInt(a.css("margin-left"),10)+parseInt(a.css("margin-right"),10),e=t=p,!this.isEmpty())for(l=(a=a.prev()).offset().top;(e-=a.outerWidth(!0),(a=a.prev()).length)&&(i=a.offset().top)===l;)l=i;e<60&&(e=t),D.css("max-width",e-n)}},setFocusTo:function(){return D},displayValueFor:function(e){var t,l,n;if(r.hasDisplayValue){if(r.multiple){if(l=a.toArray(e,r.separator),(n=this.getValue()).length!==l.length)return e;for(t=0;t<l.length;t++)if(l[t]!==n[t])return e;return i.map(u.children().not(":last"),(function(e){return i(e).text()})).join(", ")}if(e===this.getValue())return i(this.node).val()}return e},getPopupSelector:function(){return".ui-dialog-popuplov"},nullValue:r.nullValue,separator:r.multiple?r.separator:null},r.itemsToSubmit&&(v.reinit=function(e,t){return this.setValue(e,t,!0),function(){L()}}),t.create(S,v),s=apex.item(S),r.multiple&&(s.setValue(h,g,!0),s.afterModify()),C=D.val(),f=s.getValue(),i.isArray(f)&&(f=f.join(r.separator)),r.dependingOnSelector&&i(r.dependingOnSelector).change(_),D.on("apexrefresh",_)}}(apex.widget,apex.item,apex.util,apex.jQuery);
!function(e,t,n){"use strict";e.selectList=function(o,a){var i=n.extend({optionAttributes:null,nullValue:""},a),u=n(o,apex.gPageContext$);function l(){"nullValue"in a?n('option[value!="'+t.escapeCSS(i.nullValue)+'"]',u).remove():n("option",u).remove(),n("optgroup",u).remove()}function p(e){var t,n,o,a,l="";for(t=0;t<e.values.length;t++)n=e.values[t-1],o=e.values[t],a=e.values[t+1],o.g&&(n&&n.g===o.g||(l=l+'<optgroup label="'+o.g+'">')),l=l+'<option value="'+(o.r?o.r:"")+'" '+(i.optionAttributes?i.optionAttributes:"")+">"+(o.d?o.d:"")+"</option>",o.g&&(a&&a.g===o.g||(l+="</optgroup>"));u.append(l)}function r(t){e.util.cascadingLov(u,i.ajaxIdentifier,{pageItems:n(i.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:i.optimizeRefresh,dependingOn:n(i.dependingOnSelector,apex.gPageContext$),success:function(e){p(e),$s(u[0],e.default)},clear:l,target:t.target})}u.each((function(){var o={nullValue:i.nullValue};i.dependingOnSelector&&(o.reinit=function(r,g){var s=this,c=r,d=g||c;return"nullValue"in a?n('option[value!="'+t.escapeCSS(o.nullValue)+'"]',u).remove():n("option",u).remove(),a.nullValue!==c&&u.append("<option value='"+t.escapeHTML(c)+"'>"+t.escapeHTML(d)+"</option>"),this.setValue(c,null,!0),function(){e.util.cascadingLov(u,i.ajaxIdentifier,{pageItems:n(i.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:i.optimizeRefresh,dependingOn:n(i.dependingOnSelector,apex.gPageContext$),success:function(e){l(),p(e),s.setValue(c,null,!0)},target:s.node})}}),apex.item.create(this.id,o)})),i.dependingOnSelector&&n(i.dependingOnSelector,apex.gPageContext$).on("apexbeforerefresh",l).on("change",r),u.on("apexrefresh",r)}}(apex.widget,apex.util,apex.jQuery);
!function(t,e,a,n,l){"use strict";const r=/V|RN|TM|EEEE/,i=a.formatNumber,u=a.toNumber,o=(t,e)=>{let a=u(t,e);return isNaN(a)||(t=i(a,e)),t.trim()},m=(t,e)=>{let a=t.element;if(a[0].setCustomValidity(""),""===e)a.val(e);else{let l,r,o,m=!0,s=t._format,_=u(e,s);r=t._min,null!=r&&(r=u(r)),o=t._max,null!=o&&(o=u(o)),isNaN(_)?m=!1:(s&&(e=i(_,s).trim()),null!=r&&null!=o?(_<r||_>o)&&(m=!1):null!=r?_<r&&(m=!1):null!=o&&_>o&&(m=!1)),a.val(e),m||(l=null!=r&&null!=o?n.formatMessage("APEX.NUMBER_FIELD.VALUE_NOT_BETWEEN_MIN_MAX",i(r,s),i(o,s)):null!=r?n.formatMessage("APEX.NUMBER_FIELD.VALUE_LESS_MIN_VALUE",i(r,s)):null!=o?n.formatMessage("APEX.NUMBER_FIELD.VALUE_GREATER_MAX_VALUE",i(o,s)):n.getMessage("APEX.NUMBER_FIELD.VALUE_INVALID"),a[0].setCustomValidity(l))}},s={item_type:"NUMBER",setValue:function(t,e,a){this._noFormat?this.element.val(t):m(this,t),a||(this._preventChangeHandler=!0)},getValue:function(){let t=this.element.val();return this._noFormat||(t=o(this.element.val(),this._format)),t},isChanged:function(){return this.node.value!==this.node.defaultValue},displayValueFor:function(t){return this._noFormat?t:o(t,this._format)},getNativeValue:function(){return u(this.element.val(),this._format)}};t.addAttachHandler((function(e){l("input.apex-item-number",e).each((function(){let e,a=l(this),n=this.id;a.change(()=>{e._preventChangeHandler?e._preventChangeHandler=!1:e._noFormat||m(e,a.val())}),t.create(n,s),e=t(n),e._format=a.attr("data-format")||null,r.test(e._format)&&(e._noFormat=!0),e._min=a.attr("data-min")||null,e._max=a.attr("data-max")||null,e._preventChangeHandler=!1,e._noFormat||m(e,a.val())}))}))}(apex.item,apex.util,apex.locale,apex.lang,apex.jQuery);
!function(e,t){"use strict";const a=/\s+$/,n=/^\s+/;let i=(e,t)=>("NONE"!==t&&(e=null==e?"":""+e,"UPPER"===t?e=e.toUpperCase():"LOWER"===t&&(e=e.toLowerCase())),e),r=(e,t)=>("NONE"!==t&&(e=null==e?"":""+e,"LEADING"!==t&&"BOTH"!==t||(e=e.replace(n,"")),"TRAILING"!==t&&"BOTH"!==t||(e=e.replace(a,""))),e),s={item_type:"TEXT",setValue:function(e,t,a){e=i(e,this._textCase),e=r(e,this._whitespaceTrim),this.element.val(e),a||(this._preventChangeHandler=!0)},getValue:function(){let e=this.element.val();return e=i(e,this._textCase),e=r(e,this._whitespaceTrim),e}};e.addAttachHandler((function(a){t(".apex-item-text.text_field",a).each((function(){let a,n=t(this),l=this.id,h=n.attr("data-trim-spaces")||"BOTH",c=n.attr("data-text-case")||"NONE";n.change(()=>{if(a._preventChangeHandler)return void(a._preventChangeHandler=!1);let e=n.val();e=i(e,c),e=r(e,h),n.val(e)}),e.create(l,s),a=e(l),a._whitespaceTrim=h,a._textCase=c,a._preventChangeHandler=!1}))}))}(apex.item,apex.jQuery);
!function(e,t,a){"use strict";const r=/\s+$/,s=/^\s+/;let n=(e,t)=>("NONE"!==t&&(e=null==e?"":""+e,"LEADING"!==t&&"BOTH"!==t||(e=e.replace(s,"")),"TRAILING"!==t&&"BOTH"!==t||(e=e.replace(r,""))),e),i={show:function(){this.element.closest(".apex-item-group--textarea").show()},hide:function(){this.element.closest(".apex-item-group--textarea").hide()},setValue:function(e,t,a){e=n(e,this._whitespaceTrim),this.element.val(e),this._charCount&&this._charCount(),a||(this._preventChangeHandler=!0)},getValue:function(){let e=this.element.val();return e=n(e,this._whitespaceTrim),e}},l=void 0!==document.createElement("textarea").style.resize;function o(e){let a,r,s=null,n=null;function i(){t(document).off("mousemove.apex_startResize").off("mouseup.apex_startResize"),e.css("opacity",1)}a=parseInt(e.css("min-width"),10)||20,r=parseInt(e.css("min-height"),10)||20,e.after('<div class="apex_size_bar"><div class="apex_size_grip"></div></div>'),t("div.apex_size_bar, div.apex_size_grip",e.parent()).mousedown((function(l){return s=e.width()-l.pageX,n=e.height()-l.pageY,e.css("opacity",.25),t(document).on("mousemove.apex_startResize",(function(i){return function(t,i){if(e.height(Math.max(r,n+t.pageY)+"px"),i){let r=Math.max(a,s+t.pageX);e.width(r)}return!1}(i,"se-resize"===t(l.currentTarget).css("cursor"))})).on("mouseup.apex_startResize",i),!1})),e.parent().css("display:inline-block")}e.addAttachHandler((function(r){t("textarea.apex-item-textarea",r).each((function(){let c,u,h,p=0,d=0,m=null,x=this,g=t(x),_=x.id,C=g.attr("data-trim-spaces")||"BOTH",f=g.attr("data-resizable")||!1,v=g.attr("data-counter")||!1,b=()=>{m.removeClass("apex-item-textarea-counter--error apex-item-textarea-counter--warning"),h.html(p),p>0?m.show():m.hide(),d>95?m.addClass("apex-item-textarea-counter--error"):d>=90&&m.addClass("apex-item-textarea-counter--warning")},T=a.debounce(b,200);function w(e){let t=g.val();if(p=t.replace(/\n/g,"xx").length,p>u){let e=p-u,a=x.selectionStart,r=x.selectionEnd;g.val(t.substring(0,r-e)+t.substring(r)),r-=e,p=u,a<r&&(a=r),x.setSelectionRange(a,r),g.addClass("has-error")}else g.hasClass("has-error")&&g.removeClass("has-error");d=p/u*100,m&&(e?T():b())}if(l?g.css("resize",f?"both":"none"):f&&o(g),v){let e=g.attr("aria-describedby")||"",s="#"+a.escapeCSS(_);u=parseInt(g.attr("data-max-char")||0,10),e.length>0&&(e=" "+e),e=_+"_CHAR_COUNT"+e,m=t(s+"_CHAR_COUNT",r),h=t(s+"_CHAR_COUNTER",r),g.attr("aria-describedby",e),u<=0&&apex.debug.error("Textarea Character Counter requires Maximum Length")}else u=parseInt(g.attr("maxlength")||0,10);u>0&&(g.on("change input",w),w()),g.closest(".a-GV-columnItem")[0]&&g.addClass("js-uses-enter"),"NONE"!==C&&g.change(()=>{if(c._preventChangeHandler)return void(c._preventChangeHandler=!1);let e,t=x.selectionStart,a=x.selectionEnd,r=g.val();"LEADING"!==C&&"BOTH"!==C||(e=r.match(s),e&&(e=e[0].length,t-=e,t<0&&(t=0),a-=e,a<0&&(a=0))),r=n(r,C),a>r.length&&(a=r.length,t>a&&(t=a)),g.val(r),x.setSelectionRange(t,a),u>0&&w()}),e.create(_,i),c=e(_),u>0&&(c._charCount=w),c._whitespaceTrim=C,c._preventChangeHandler=!1}))}))}(apex.item,apex.jQuery,apex.util);
!function(e,t,a){"use strict";apex.widget.yesNo=function(r,i){var c;c="SWITCH"===i?t(":radio","#"+a.escapeCSS(r),apex.gPageContext$):t("#"+a.escapeCSS(r),apex.gPageContext$),"SWITCH_CB"===i&&c.closest("span.a-Switch").on("click",(function(e){t(e.target).is(":checkbox")||c.is(":disabled")||(c.prop("checked",!c.prop("checked")).trigger("change"),c[0].indeterminate=!1)})),e.create(r,{enable:function(){c.prop("disabled",!1)},disable:function(){c.prop("disabled",!0)},isDisabled:function(){return"SWITCH"===i?!0===c.first().prop("disabled"):!0===c.prop("disabled")},setValue:function(e){"SWITCH"===i?c.prop("checked",!1).filter("[value='"+a.escapeCSS(e)+"']").prop("checked",!0):c.prop("checked",c.prop("value")===e)},getValue:function(){var e;return e=void 0===(e="SWITCH"===i?c.filter(":checked").attr("value"):c.prop("checked")?c.attr("value"):c.attr("data-off-value"))?"":e+""},isChanged:function(){var e,t,a,r,o="";if("SWITCH"===i){for(t=this.getValue(),r=$x_FormItems(this.node,"RADIO"),e=0;e<r.length;e++)if(r[e].defaultChecked){o=r[e].value;break}return t!==o}return a=c.prop("checked"),c[0].defaultChecked!==a},setFocusTo:function(){return"SWITCH"===i?c.first():c},displayValueFor:function(e){var a,r="";return null!=e&&("SWITCH"===i?(a=c.filter("[value='"+apex.util.escapeCSS(e+"")+"']").prop("id"))&&(r=t("[for='"+apex.util.escapeCSS(a)+"']").html()||""):e===c.attr("value")?r=c.attr("data-on-label"):e===c.attr("data-off-value")&&(r=c.attr("data-off-label"))),r}})}}(apex.item,apex.jQuery,apex.util);
!function(e,n,t,a){"use strict";var i=null,s=null,o=!1,l=null,r=!1,u=!1,c=[],d=!1,h=!1,f=null,m=null,p=0,b=0,g=0,M=0,v=null,C=null,k=null,w=null,y=null,x=!1,_=".a-Menu",S="a-Menu-scrollBtn--up",T="a-Menu-scrollBtn--down",I="a-Menu-item",B=".a-Menu-item, .a-MenuBar-item",A=".a-Menu-item, .a-MenuBar-item, .a-Menu-content",E="a-MenuBar-item",L=".a-Menu-label,.a-MenuBar-label",O="is-disabled",q="is-focused",D="a, button, .a-Menu-label, .a-MenuBar-label",K="aria-expanded",F="aria-haspopup",N=a.ui.keyCode;function P(e,n,t,a){e.markup("<span").attr("class",n+" "+t).optionalAttr("style",a).markup("></span>")}var H=null;function X(e){return H&&e.match(/^#\S*$/)?H+e:e}function R(){var e,n,t,i,s;for(l?(i=a(l),s=null):(i=f,s=m),j({$menu:c[0],subMenu:!1,x:i,y:s,slide:!1}),e=1;e<c.length;e++)t=(n=c[e]).parents(B).eq(0),j({$menu:n,subMenu:!0,x:t,slide:!1})}function U(){a(window).off(".menuTracking"),a("html").off(".menuTracking"),clearTimeout(C),C=null,d=!1,apex.tooltipManager&&x&&(apex.tooltipManager.enableTooltips(),x=!1)}function $(e){return e.children(".a-Menu-content").children(".a-Menu-scroll")}function W(){if(l){let e=a(l);e.is(B)?e.find(D).focus():e.focus()}}function j(n){var t,i,s,l,r,u,c,d,h,p,b=0,g="u-callout--top",M="left",v="right",C=n.$menu,k={collision:"flipfit flipfit"},w="none"!==C.css("display");w||C.css({display:"block",position:"absolute",top:-99999,left:0}),n.minWidth&&C.css("min-width",n.minWidth),"true"!==C.attr("data-custom")&&(l=C.find("li").first().outerHeight(),i=a(window).height(),n.$menuBar&&(i-=n.$menuBar.position().top+n.$menuBar.height()),s=i>1e3?.6:i>500?.75:1,i=Math.floor(i*s/l)*l-l,C.height()>i?(0===$(C).length&&((t=e.htmlBuilder()).markup("<div").attr("class","a-Menu-scrollBtn  "+S).markup(">"),P(t,"a-Icon","icon-menu-scroll-up"),t.markup("</div>"),C.children(".a-Menu-content").first().addClass("a-Menu--scrollable").prepend(t.toString()).append(t.toString().replace("icon-menu-scroll-up","icon-menu-scroll-down").replace(S,T)).children("ul").first().wrap("<div class='a-Menu-scroll'></div>")),$(C).height(i)[0].scrollTop=0,C.find(".a-Menu-scrollBtn."+S).addClass(O)):$(C).length>0&&(C.children(".a-Menu-content").first().removeClass("a-Menu--scrollable").children(".a-Menu-scrollBtn").remove(),C.find("ul").first().unwrap())),"number"==typeof n.x&&"number"==typeof n.y?(f=n.x,m=n.y,k.of=a.Event("click",{pageX:f,pageY:m}),g=null):(f=m=null,k.of=n.x),u=C.children(".u-callout"),o&&(M="right",v="left"),C.removeClass("has-callout"),n.subMenu?(r=parseInt(C.find(".a-Menu-content").css("padding-top"),10),k.my=M+" top-"+r,k.at=v+" top"):(u.length&&(C.addClass("has-callout"),b=parseInt(C.css("margin-top"),10)),k.my=M+" top+"+b,k.at=M+" bottom"),C.position(k),C.css("display",w?"block":"none"),u.removeClass("u-callout--top u-callout--bottom"),g&&u.length&&(c=parseInt(C.css("top"),10),d=parseInt(C.css("left"),10),h="fixed"===n.x.offsetParent().css("position")?n.x.position():n.x.offset(),p=n.x.outerWidth(),c<h.top&&(g="u-callout--bottom"),u.addClass(g),u.css("left",p/2+(h.left-d-b))),w||(n.slide?C.slideDown(200):C.show(),n.focus&&C.find(D).eq(0).focus())}a("base").length&&(H=window.location.pathname+window.location.search),a((function(){a(window).on("apexwindowresized",(function(){a(".a-MenuBar").each((function(){a(this).menu("resize")})),d&&R()}))}));var G={openMenu:function(e,n,t,f,m,p){var b=0;this.closeAll(),i=e[0],s=n?n[0]:null,o=a(s||i).hasClass("u-RTL"),l="object"==typeof t&&t.get?t[0]:null,r=!1,u=!1,h=!0,0===c.length&&(d||(d=!0,a(window).on("blur.menuTracking",(function(){G.closeAll(!0)})),a("html").on("mousedown.menuTracking",(function(e){var n=a(e.target);0!==n.closest(_).length||l&&0!==n.closest(l).length||G.closeAll(!0)})).on("mousemove.menuTracking",(function(e){var n,t;g===e.pageX&&M===e.pageY||(g=e.pageX,M=e.pageY,!(t=(n=a(e.target)).parents(_)[0])&&s&&(t=n.parent(".a-MenuBar")[0]),!t&&w&&w!==t&&a(w).focus(),w=t)})),apex.tooltipManager&&(apex.tooltipManager.disableTooltips(),x=!0))),c.push(e),h=!1,n&&(t.addClass("is-expanded").children(L).attr(K,"true"),b=t.outerWidth()),j({$menu:e,$menuBar:n,subMenu:!1,x:t,y:f,slide:m,focus:p,minWidth:b})},isCurrentMenu:function(e){return i&&i===e},isCurrentMenuBar:function(e){return s&&s===e},isMenuOpen:function(e){var n;for(n=0;n<c.length;n++)if(c[n]===e)return!0;return!1},openSubMenu:function(e,n,t,a,i){this.closeOpenSiblings(e,t),c.push(n),j({$menu:n,subMenu:!0,x:e,slide:a,focus:i}),e.addClass("is-expanded").children(".a-Menu-inner").find(L).attr(K,"true")},closeOpenSiblings:function(e,n){var t=e.parent().find(".is-expanded");for(n&&(h=!0);t.length>0&&d;)this.closeLast(!1),t=e.parent().find(".is-expanded");h=!1},closeLast:function(e){var n,t,o;c.length>0?((t=(n=c.pop()).parents(B).eq(0)).length>0&&(o=ne(t),t.removeClass("is-expanded").children(".a-Menu-inner"),o.attr(K,"false"),e&&t.find(D).eq(0).focus()),n.hide(),0===c.length&&(!l||r||h||setTimeout((function(){W()}),10),s&&(o=ne(a(i).find(".is-expanded")),a(i).find(".is-expanded").removeClass("is-expanded"),o.attr(K,"false")),(s||i)&&a(s||i).data("apex-menu")._trigger("afterClose",{},{actionTookFocus:r,actionTaken:u,launcher:l}),i=null,h||(s=null,U()))):(i=null,s=null,U())},closeAll:function(e){for(;c.length>0;)this.closeLast(!1);e&&(i=null,s=null,U())}};function z(e){return e.parent().parent().hasClass("a-MenuBar")}function Y(e){var n=null,t=e.search(/_c[0-9]+$/);return t>=0&&(n=1*e.substring(t+2)),n}function Q(e,t,i,s,o,c){var d,h=!1,f=o||e.type;function m(){var i;a(document.body).on("dialogopen.menu",(function(e){var n=a(e.target);i=!0,n.dialog("option","modal")&&n.on("dialogclose.menu",(function(){n.off("dialogclose.menu"),W()}))})),setTimeout((function(){a(document.body).off("dialogopen.menu")}),150),"string"==typeof e.action&&t?(n.info("Invoke action menu item '"+(e.label||t.lookup(e.action).label)+"'"),r=t.invoke(e.action,{},l)||!1):(n.info("Invoke action menu item '"+e.label+"'"),e.action?r=e.action(s,l)||!1:e.href&&(e.target?apex.navigation.openInNewWindow(e.href,e.target,{favorTabbedBrowsing:!0,noopener:!0}):apex.navigation.redirect(e.href),r=!0)),i&&(r=!0)}try{if("toggle"===f)"string"==typeof e.action&&t&&(e=t.lookup(e.action),h=!0),d=!e.get(),n.info("Invoke toggle menu item '"+(e.label||(d?e.onLabel:e.offLabel))+"' value now "+d),e.set(d),h&&t.update(e.name),u=!0;else if("radioGroup"===f)"string"==typeof e.action&&t&&(e=t.lookup(e.action),h=!0),d=e.choices[i].value,n.info("Invoke choice menu item '"+e.choices[i].label+"' value now "+d),e.set(d),h&&t.update(e.name),u=!0;else if("action"===f)c?setTimeout((function(){m()}),210):m(),u=!0;else if("subMenu"===f)return!1}catch(e){n.error("Error in menu action.",e)}return!0}function V(e,n){var t,a;if(e.menu&&e.menu.items)for(t=0;t<e.menu.items.length;t++)if((a=e.menu.items[t]).current||V(a,n))return n&&a.current&&delete a.current,!0;return!1}function J(e){e.labelKey&&(e.label=t.getMessage(e.labelKey)),e.onLabelKey&&(e.onLabel=t.getMessage(e.onLabelKey)),e.offLabelKey&&(e.offLabel=t.getMessage(e.offLabelKey))}function Z(e){e.is(D)?e.focus():e.find(D).first().focus()}function ee(e){var n;return n=e.closest(".a-Menu-item")[0],e.find(".a-Menu-item").not((function(e,t){return a(t).parent().closest(".a-Menu-item")[0]!==n}))}function ne(e){var n=e.children(L);return 0===n.length&&(n=e.children(".a-Menu-inner").find(L)),n}function te(){v&&(clearTimeout(v),v=null)}a.widget("apex.menu",{version:"19.1",widgetEventPrefix:"menu",options:{menubar:!1,callout:!1,menubarShowSubMenuIcon:null,menubarOverflow:!1,iconType:"a-Icon",behaveLikeTabs:!1,tabBehavior:"EXIT",useLinks:!0,slide:!1,firstItemIsDefault:!1,actionsContext:null,items:null,idPrefix:null,customContent:!1,asyncFetchMenu:null,beforeOpen:null,afterClose:null},isActive:!1,scrollTimerId:null,forwardKey:N.RIGHT,backwardKey:N.LEFT,actionsContext:null,_create:function(){var e,t,i=this.options,s=this.element;if(i.menubar&&i.customContent)throw new Error("Menubar cannot have custom content");if(apex.actions&&(this.actionsContext=i.actionsContext||apex.actions),i.items||!0===i.customContent||(i.items=this._parseMenuMarkup(s,i.menubar).items),!i.menubar&&(i.customContent||i.asyncFetchMenu)||i.items&&0!==i.items.length||n.error("Menu has no menu items"),"rtl"===s.css("direction")&&(s.addClass("u-RTL"),i.menubar||s.attr("dir","rtl"),this.forwardKey=N.LEFT,this.backwardKey=N.RIGHT),s.attr("role",i.menubar?"menubar":"menu").addClass(i.menubar?"a-MenuBar":"a-Menu"),i.menubar){if(i.menubarOverflow&&s.addClass("a-MenuBar--overflow"),null===i.menubarShowSubMenuIcon)for(i.menubarShowSubMenuIcon=!1,e=0;e<i.items.length;e++)if("subMenu"!==i.items[e].type){i.menubarShowSubMenuIcon=!0;break}this.refresh(),i.behaveLikeTabs&&s.addClass("a-MenuBar--tabs"),i.firstItemIsDefault&&n.warn("Invalid options for menu bar ignored")}else a("body").append(s),s.hide(),(i.menubarOverflow||i.menubarShowSubMenuIcon||i.behaveLikeTabs)&&n.warn("Invalid options for popup menu ignored");!("onwheel"in s[0])&&this._eventHandlers.wheel&&(t=void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",this._eventHandlers[t]=this._eventHandlers.wheel,delete this._eventHandlers.wheel),this._on(this._eventHandlers)},_eventHandlers:{mousedown:function(e){var n,t,i;1!==e.which||e.shiftKey||e.ctrlKey||(i=a(e.target).closest(".a-Menu-item, .a-MenuBar-item, .a-Menu-content, .a-Menu-scrollBtn"),e.preventDefault(),i.length>0&&!i.hasClass("a-Menu-content")&&!i.hasClass(O)&&(i.is(".a-Menu-scrollBtn")?(i.addClass("is-active"),this._startScrolling(i.closest(_),i.hasClass(S))):z(i)&&(t=i[0].id,"subMenu"===(n=this._getMenuItemFromId(t)).type&&(0!==a(e.target).closest(".a-Menu-subMenuCol").length||!n.action&&!n.href)&&this.toggle(i))))},mouseup:function(e){var n,t,i,s,o,l;1!==e.which||e.shiftKey||e.ctrlKey||(l=a(e.target).closest(A),e.preventDefault(),l.length>0&&!l.hasClass("a-Menu-content")&&(i=l[0].id,o=(n=this._getMenuItemFromId(i)).type,s=z(l),"subMenu"===o&&s&&(0!==a(e.target).closest(".a-Menu-subMenuCol").length||!n.action&&!n.href||(o="action",G.closeOpenSiblings(l,s))),"subMenu"===o&&s||!l.is(B)||l.hasClass(O)||"display"===o||(t=Y(i),Q(n,this.actionsContext,t,this.options,o)&&G.closeAll())))},click:function(e){if("A"!==e.target.nodeName||1===e.which&&!e.shiftKey&&!e.ctrlKey){if(v){let n=a(e.target).closest(".a-Menu-content,"+B).not(".a-Menu-content");!n.hasClass(O)&&n.find(_).length>0&&(te(),G.openSubMenu(n,n.children(_).first(),!1,this.options.slide,!0))}if(e.preventDefault(),this.keyboardActivate){let n,t,i,s;this.keyboardActivate=!1,n=a(e.target).closest(A),n.length>0&&!n.hasClass("a-Menu-content")&&(t=n[0].id,i=this._getMenuItemFromId(t),n.is(B)&&!n.hasClass(O)&&(s=Y(t),Q(i,this.actionsContext,s,this.options,"subMenu"===i.type?"action":i.type)&&G.closeAll()))}}else this.keyboardActivate=!1},mousemove:function(e){var n,t,i,s,o,l=this.options;function r(){var e=i.parent().find(".is-expanded").eq(0);e.length>0&&!C&&(e.removeClass("is-expanded"),k=e.find(_)[0],C=setTimeout(()=>{e.addClass("is-expanded"),C=null,k=null,G.closeOpenSiblings(i,n)},300))}if(p!==e.pageX||b!==e.pageY){if(p=e.pageX,b=e.pageY,s=(t=a(e.target)).closest(".a-Menu-content,"+B).not(".a-Menu-content"),!C||t.closest(_)[0]!==k&&"true"!==ne(s).attr(K)||(a(k).parent().addClass("is-expanded"),k=null,clearTimeout(C),C=null),(i=t.closest(".a-Menu-itemSep")).length>0&&i[0]!==y)return te(),n=z(i),r(),y=i[0],void((o=t.closest(_).eq(0)).length>0&&!o.hasClass(q)&&o.focus());if((i=s).length>0){if(i[0]!==y){if(y=i[0],te(),(n=z(i))&&d?(clearTimeout(C),C=null,G.closeOpenSiblings(i,n)):r(),l.menubar&&!G.isCurrentMenuBar(this.element[0])&&!this.isActive)return this.element.find(".is-focused").removeClass(q),void i.addClass(q);Z(i),!i.hasClass(O)&&i.find(_).length>0&&("true"===ne(i).attr(K)?n||(o=i.find(_).eq(0),G.closeOpenSiblings(o.find(B).eq(0),n),o.find(D).eq(0).focus()):n?G.isCurrentMenuBar(this.element[0])&&this.open(i):v=setTimeout(()=>{v=null,G.openSubMenu(i,i.children(_).first(),n,l.slide,!0)},400))}}else t.closest(_).first().focus(),y=null}},mouseleave:function(){te(),this.options.menubar&&(G.isCurrentMenuBar(this.element[0])||this.isActive||this.element.find(".is-focused").removeClass(q)),y=null},wheel:function(e){var n,t=a(e.target).closest(_),i=e.originalEvent.deltaY||e.originalEvent.detail||-1/40*e.originalEvent.wheelDelta;if(t.length&&!this.options.customContent){if(e.preventDefault(),!(n=$(t)[0]))return;void 0!==e.originalEvent.deltaMode&&1!==e.originalEvent.deltaMode||(i*=30),n.scrollTop+=i,this._checkScrollBounds(t,n)}},keydown:function(e){var n,t,i,s,o,u,c,d,h,f,m,p,b,g,M,v=this.options,C=this,k=e.which;function w(e,a){var i;if(n.hasClass("a-Menu"))s=n.find(".a-Menu-content").first().find(B).first();else{if(i=t.index(n),(i+=1)>=t.length){if(e)return!1;i=0}s=t.eq(i)}return Z(s),a&&(n.find(D).attr("tabindex","-1"),s.find(D).attr("tabindex","0")),n=s,c&&C._checkScrollBounds(d,c),!0}function y(e,a){var i;if(n.hasClass("a-Menu"))s=n.find(".a-Menu-content").first().find(B).last();else{if(i=t.index(n),(i-=1)<0){if(e)return!1;i=t.length-1}s=t.eq(i)}return Z(s),a&&(n.find(D).attr("tabindex","-1"),s.find(D).attr("tabindex","0")),n=s,c&&C._checkScrollBounds(d,c),!0}function x(e){C.toggle(n),!n.hasClass("a-Menu--split")||e?Z(s=n.find(".a-Menu-content").first().find(B).first()):n.find(D).eq(0).focus()}if(!e.altKey)if(o=this.element,this.keyboardActivate=!1,o.hasClass(q)?(n=o,o.find(".is-expanded").first().each((function(){n=a(this)}))):n=o.find(".is-focused"),d=n.closest(_+",.a-MenuBar"),c=$(d)[0],u=n.is(".a-MenuBar")||z(n),t=u?o.find("."+E):ee(d),k===N.UP||k===N.DOWN)u?n.children(_).length>0&&!n.hasClass(O)&&(n.hasClass("a-Menu--split")&&G.isCurrentMenu(n.children(_)[0])?(s=n.find("ul").first().children(B).first()).find(D).focus():x(!0)):k===N.UP?y():w(),e.preventDefault();else if(k===this.forwardKey)u?(w(!1,!0),G.closeOpenSiblings(n,!0),G.isCurrentMenuBar(o[0])&&n.children(_).length>0&&!n.hasClass(O)&&x()):(s=n.children(_)).length>0&&!n.hasClass(O)?(G.openSubMenu(n,s,!1,v.slide,!1),Z(s=s.find("ul").first().children(B).first())):v.menubar&&(n=o.find(".is-expanded").eq(0),t=o.find("."+E),w(),G.closeOpenSiblings(n,z(n)),n.children(_).length>0&&!n.hasClass(O)&&x()),e.preventDefault();else if(k===C.backwardKey)u?(y(!1,!0),G.closeOpenSiblings(n,!0),G.isCurrentMenuBar(C.element[0])&&n.children(_).length>0&&!n.hasClass(O)&&x()):(s=n.parents(B).eq(0)).length>0&&!z(s)?G.closeLast(!0):v.menubar&&(n=o.find(".is-expanded").eq(0),t=o.find("."+E),y(),G.closeOpenSiblings(n,z(n)),n.children(_).length>0&&!n.hasClass(O)&&x()),e.preventDefault();else if(k===N.TAB)u?("EXIT"===v.tabBehavior||e.shiftKey)&&(r=!0,G.closeAll()):("NEXT"===(M=v.tabBehavior)&&(e.shiftKey?y(!0)||(M="EXIT"):w(!0)||(M="EXIT")),"EXIT"===M&&l&&(r=!0,G.closeAll(),f=a(":tabbable"),v.menubar?(h=f.index(a(l).find(":tabbable")))<0&&(h=f.index(this.element.find(":tabbable"))):h=f.index(l),h>0&&h<f.length?h+=e.shiftKey?-1:1:f.length>0&&(h=0),h>=0&&f[h].focus()),e.preventDefault());else if(k===N.ESCAPE)G.closeLast(!0),e.preventDefault();else if(k===N.ENTER||k===N.SPACE){if((n=o.hasClass(q)?o:o.find(".is-focused")).hasClass(O)||!n.is(B))return void e.preventDefault();if(m=n[0].id,b=(p=this._getMenuItemFromId(m)).type,u=z(n),"subMenu"===b&&u&&(p.action||p.href)&&(b="action",G.closeOpenSiblings(n,u)),"subMenu"===b)u?(C.toggle(n),Z(s=n.find(".a-Menu-content").first().find(B).first())):(i=n.children(_)).length>0&&(G.openSubMenu(n,i,!1,v.slide,!1),Z(s=i.find("ul").first().children(B).first()));else{if(("A"!==e.target.nodeName||k!==N.SPACE)&&("action"===b||k===N.SPACE&&"BUTTON"===e.target.nodeName))return void(this.keyboardActivate=!0);"display"!==b&&(g=Y(m),Q(p,this.actionsContext,g,v,b,k===N.SPACE)&&(r=!0,G.closeAll()))}e.preventDefault()}},keypress:function(e){var n,t,a,i,s,o,l,r,u=-1;if(0!==e.which&&((s=this.element).hasClass(q)?(i=s.find(".a-Menu-content").first().find(B).first(),u=0):i=s.find(".is-focused"),0!==(o=i.closest(_)).length))for(l=ee(o),u<0&&(u=l.index(i)+1)>=l.length&&(u=0),a=l.eq(u),n=String.fromCharCode(e.which).toLowerCase();;){if(0===(r=a.filter(".a-Menu-label")).length&&(r=a.find(".a-Menu-label")),r.text().trim().charAt(0).toLowerCase()===n){Z(a),(t=$(o)[0])&&this._checkScrollBounds(o,t);break}if((u+=1)>=l.length&&(u=0),(a=l.eq(u))[0]===i[0])break}},focusin:function(e){var n=a(e.target);this.isActive||this.element.find(".is-focused").removeClass(q),n.is(_)?n.addClass(q):n.closest(B).addClass(q),this.isActive=!0},focusout:function(e){var n=a(e.target);n.is(_)?n.removeClass(q):n.closest(B).removeClass(q),this.isActive=!1}},_destroy:function(){var e=this.options,t=this.element;d&&G.isMenuOpen(this.element)&&(n.warn("Menu destroyed while still tracking menus."),G.closeAll(!0)),t.empty().removeClass((e.menubar?"a-MenuBar a-MenuBar--tabs":"a-Menu")+" u-RTL a-MenuBar--overflow").removeAttr("role")},_setOption:function(e,t){var a,i,s,o,l=this.options;if("menubar"===e)throw new Error("The menubar option cannot be set");if(l.menubar?"customContent"!==e&&"firstItemIsDefault"!==e||n.warn("Option "+e+" ignored when menubar is true"):"menubarOverflow"!==e&&"menubarShowSubMenuIcon"!==e&&"behaveLikeTabs"!==e||n.warn("Option "+e+" ignored when menubar is false"),this._super(e,t),"menubarOverflow"===e&&l.menubar){if(this.element.toggleClass("a-MenuBar--overflow",t),!t&&(a=(i=l.items)[i.length-1])&&a._overflow){for(o=a.menu.items;o.length>0;)"subMenu"===(s=o.shift()).type&&(s.action||s.href)&&s.menu.items.shift(),i.splice(i.length-1,0,s);i.pop()}}else"actionsContext"===e&&(this.actionsContext=t||apex.actions)},refresh:function(){var n=this.element,t=this.options,a=t.idPrefix||n[0].id||"menu",i=e.htmlBuilder();return t.menubar&&(this._renderMenubar(i,a,t),n.html(i.toString()),this._processMenuCustomMarkup(),this.resize()),this},resize:function(){var n=this.element,t=this.options,a=t.idPrefix||n[0].id||"menu",i=e.htmlBuilder();return t.menubar&&t.menubarOverflow&&this._adjustMenubarForSize(a,t)&&(this._renderMenubar(i,a,t),n.html(i.toString()),this._processMenuCustomMarkup()),this},toggle:function(e,n){var t=this.element;if(this.options.menubar&&(t=null,"number"==typeof e?(e=this.element.children("ul").children("li").eq(e)).length>0&&(t=e.children(_)):e.is(B)&&(t=e.children(_)),!t||1!==t.length))throw new Error("Invalid menu bar menu");return G.isCurrentMenu(t[0])?G.closeAll():this.open(e,n),this},open:function(i,s){var o,l,r,u,c,h,f,m=!1,p=this,b=this.options,g=e.htmlBuilder();function M(){p._trigger("beforeOpen",{},h),l.customContent?("string"==typeof l.customContent&&(r.empty().append(a("#"+e.escapeCSS(l.customContent)).show()),l.customContent=!0),p._parseCustomMarkup(r,c,l)):(g.clear(),p._renderMenu(g,c,l,f,!0),r.html(g.toString()))}if(b.menubar){if(u=this.element,r=null,"number"==typeof i?(i=this.element.children("ul").children("li").eq(i)).length>0&&(r=i.children(_)):i.is(B)&&(r=i.children(_)),!r||1!==r.length)throw new Error("Invalid menu bar menu");if(c=i[0].id,!(l=this._getMenuItemFromId(c))||"subMenu"!==l.type||!l.menu)throw new Error("Can't open menu "+i);h=l,l=l.menu,f=!1}else u=null,h={menu:l=b},r=this.element,c=b.idPrefix||this.element[0].id||"menu",f=!0;if(a.isFunction(b.asyncFetchMenu)){if(!d&&b.menubar)for(o=0;o<b.items.length;o++)b.items[o]._fetched=!1;b.menubar&&!0===h._fetched?M():(p._renderMenu(g,c,{items:[{type:"action",disabled:!0,label:t.getMessage("APEX.MENU.PROCESSING")}]},f,!0),r.html(g.toString()),m=!0,b.asyncFetchMenu(l,(function(e){var n;if(G.isCurrentMenu(r[0])){if(!1===e)return void G.closeAll(!0);n=r.find(".is-focused").first(),M(),R(),n.length?Z(r.find(B).first()):r.focus()}})),b.menubar&&(h._fetched=!0))}else M();return m||0!==l.items.length?G.openMenu(r,u,i,s,b.slide,b.menubar||!1!==s):(n.error("Menu has no items"),p._trigger("afterClose",{},{actionTookFocus:!1,actionTaken:!1,launcher:null})),this},find:function(e){return function e(n,t){var i=null;return a.each(n.items,(function(n,a){return a.id===t?(i=a,!1):("subMenu"!==a.type||null===(i=e(a.menu,t)))&&void 0})),i}(this.options,e)},setCurrentMenuItem:function(e){var a,i,s=0,o=this.options.items;if(this.options.menubar&&this.options.behaveLikeTabs){if("string"==typeof e&&(e=this.find(e)),e){for(s=0;s<o.length;s++)(a=o[s]).current&&(i=a,delete a.current),V(a,!0);for(e.current=!0,s=0;s<o.length;s++)if(V(a=o[s])){a.current=!0,J(i),this.element.find(".a-Menu--current").removeClass("a-Menu--current").find(".a-MenuBar-label").text(i.label),this.element.children("ul").children("li").eq(s).addClass("a-Menu--current").find(".a-MenuBar-label").append(" <span class='u-vh'>"+t.getMessage("APEX.MENU.CURRENT_MENU")+"</span>");break}}}else n.warn("setCurrentMenuItem ignored")},_parseMenuMarkup:function(e,n){var t=this,i={items:[]};return e.children("ul").children("li").each((function(e){var s,o,l,r,u,c,d,h,f=a(this),m=f.children("a").eq(0),p=f.children("span").eq(0);if(s={type:"action"},m.length>0?(s.label=m.text(),s.href=m.attr("href"),(h=m.attr("target"))&&(s.target=h)):p.length>0?s.label=p.text():s.type="separator","separator"===s.href&&(s.type="separator",delete s.href,delete s.target,delete s.label),(r=f.attr("data-id"))&&(s.id=r),"true"===f.attr("data-hide")&&(s.hide=!0),"true"===f.attr("data-disabled")&&(s.disabled=!0),"true"===f.attr("data-current")&&(s.current=!0),(o=f.attr("data-icon"))&&((l=o.indexOf(" "))>=0?(s.iconType=o.substring(0,l),s.icon=o.substring(l+1)):s.icon=o),"separator"!==s.type&&(f.children("ul").length>0||"true"===f.attr("data-custom")))if(s.type="subMenu","true"!==f.attr("data-custom"))s.menu=t._parseMenuMarkup(f,!1);else{if(!n)throw new Error("Attribute data-custom only allowed at menubar level");(u=(c=f.children(".a-Menu-content").eq(0))[0].id)||(u=c[0].id=(t.options.idPrefix||t.element[0].id||"menu")+"_cm_"+e),a(document.body).append(c),c.hide(),s.menu={customContent:u}}"action"===s.type&&r&&apex.actions&&(d=t.actionsContext.lookup(r))&&(s.action=r,delete s.href,delete s.target,delete s.label,delete s.disabled,delete s.icon,delete s.iconType,d.action||d.href?s.type="action":d.get&&d.set&&!d.choices?s.type="toggle":d.choices&&(s.type="radioGroup")),i.items.push(s)})),i},_parseCustomMarkup:function(e,n,t){var i=this;t.items||(t.items=[]),e.attr("data-custom","true"),0===e.find(".a-Menu-content").length&&e.children().first().addClass("a-Menu-content"),e.find(D).each((function(e){var s,o,l,r,u,c;l=(r=a(this)).closest(".a-Menu-item"),r.attr("role","menuitem"),0===l.length&&(l=a(this)).addClass(I),l.hasClass("a-Menu-label")||0!==l.find(".a-Menu-label").length||r.addClass("a-Menu-label"),l[0].id=n+"_"+e,u=r.attr("href"),"A"===this.nodeName&&u?(o={type:"action",label:r.text(),href:u},(c=r.attr("target"))&&(o.target=c),t.items[e]=o):"BUTTON"===this.nodeName?(o={type:"action",label:r.text(),action:function(){}},t.items[e]=o):(r.attr("tabindex","-1"),t.items[e]||(o={type:"display",label:r.text(),disabled:!0},t.items[e]=o)),(s=l.attr("data-id"))&&(o.id=s,"action"===o.type&&s&&apex.actions&&i.actionsContext.lookup(s)&&(o.action=s,delete o.href,delete o.target,delete o.label,delete o.disabled,delete o.icon,delete o.iconType))}))},_processMenuCustomMarkup:function(){var n=this;this.element.find("."+E).each((function(){var t=a(this).children(_),i=this.id,s=n._getMenuItemFromId(i).menu;s&&s.customContent&&("string"==typeof s.customContent&&(t.empty().append(a("#"+e.escapeCSS(s.customContent)).show()),s.customContent=!0),n._parseCustomMarkup(t,i,s))}))},_getMenuItemFromId:function(e){var n,t,a=this.options,i=e.split("_"),s=[],o=null;for(i[n=i.length-1].match(/^c[0-9]+$/)&&(n-=1);n>0&&i[n].match(/^[0-9]+$/);n--)s.unshift(1*i[n]);for(t=a.items,n=0;n<s.length;n++){if(!(o=t[s[n]])||n<s.length-1&&!o.menu)return null;o.menu&&(t=o.menu.items)}return o},_itemIsHidden:function(e){var n=e.hide,t=this.options;return a.isFunction(n)&&(n=e.hide(t)),n},_itemIsDisabled:function(e){var n=e.disabled,t=this.options;return a.isFunction(n)&&(n=e.disabled(t)),n},_renderMenubar:function(e,i,s){var o=this,l=0,r=this.options,u="NEXT"===r.tabBehavior;r.behaveLikeTabs&&a.each(s.items,(function(e,n){if(V(n)&&(n.current=!0),n.current)return l=e,!1})),this.element.find(".a-Menu--top").filter("[data-custom]").each((function(){var e=a(this).children().eq(0);o._getMenuItemFromId(e.closest(B)[0].id).menu.customContent=e[0].id,a(document.body).append(e)})),e.markup("<ul").attr("role","none").markup(">"),a.each(s.items,(function(a,s){var c,d,h,f,m,p=s.type,b=i+"_"+a,g="subMenu"===p;if("action"===p&&"string"==typeof s.action){if(!apex.actions)throw new Error("Action name requires apex.actions");(f=o.actionsContext.lookup(s.action))?(s.hide=!1,f.label&&!s.label&&(s.label=f.label),void 0!==f.hide&&(s.hide=f.hide),void 0!==f.disabled&&(s.disabled=f.disabled),f.href&&!s.href&&(s.href=f.href,f.target&&(s.target=f.target))):(n.warn("Unknown action name "+s.action+" (item hidden)."),s.hide=!0)}if(!o._itemIsHidden(s)){if(d=E,(h=o._itemIsDisabled(s))&&(d+=" "+O),g&&(s.action||s.href)&&(d+=" a-Menu--split"),r.behaveLikeTabs&&s.current&&(d+=" a-Menu--current",m=" <span class='u-vh'>"+t.getMessage("APEX.MENU.CURRENT_MENU")+"</span>"),s._overflow&&(d+=" a-MenuBar-item--overflow"),"action"!==p&&!g)throw new Error("Menu item type not supported in menubar: "+p);e.markup("<li").attr("id",b).attr("class",d).markup(">"),J(s),c=s.label,(s.icon||s.iconType)&&n.warn("Menu bar items cannot have icons."),s.accelerator&&n.warn("Menu bar items cannot have accelerators."),h?e.markup("<span role='menuitem'").attr("class","a-MenuBar-label").attr("tabindex",u||a===l?"0":"-1").attr("id",b+"i").optionalAttr("aria-disabled",h?"true":null).optionalAttr(F,g?"menu":null).optionalAttr(K,g?"false":null).markup(">").content(c).markup("</span>"):s.href&&r.useLinks?(e.markup("<a role='menuitem'").attr("class","a-MenuBar-label").attr("id",b+"i").attr("href",X(s.href)).optionalAttr("target",s.target?s.target:null).optionalAttr("tabindex",u||a===l?null:"-1").optionalAttr(F,g?"menu":null).optionalAttr(K,g?"false":null).markup(">").content(c),r.behaveLikeTabs&&s.current&&e.markup(m),e.markup("</a>")):(e.markup("<button type='button' role='menuitem'").attr("class","a-MenuBar-label").attr("id",b+"i").optionalAttr("tabindex",u||a===l?null:"-1").optionalAttr(F,g?"menu":null).optionalAttr(K,g?"false":null),s._overflow?e.attr("title",c).markup("><span class='a-Icon icon-down-chevron'></span>"):(e.markup(">").content(c),r.behaveLikeTabs&&s.current&&e.markup(m)),e.markup("</button>")),g&&((s.action||s.href||r.menubarShowSubMenuIcon)&&!s._overflow&&(e.markup("<span class='a-Menu-subMenuCol'>"),P(e,"a-Icon",!r.menubarShowSubMenuIcon||s.action||s.href?"icon-menu-split-drop-down":"icon-menu-drop-down"),e.markup("</span>")),e.markup("<div").attr("id",b+"m").markup(" class='a-Menu a-Menu--top' role='menu' style='display:none;'></div>")),e.markup("</li>")}})),e.markup("</ul>")},_renderMenu:function(t,i,s,o,l){var r=this.options,u=this,c=this.element.hasClass("u-RTL"),d=!1,h=0,f="icon-menu-sub";function m(){d=!1,h>0&&(t.markup("<li class='").markup("a-Menu-itemSep").markup("' role='separator'><div class='a-Menu-inner'><span class='a-Menu-labelContainer'><span class='").markup("a-Menu-statusCol").markup("'></span><span class='").markup("a-Menu-hSeparator").markup("'></span></span><span class='a-Menu-accelContainer'></span></div></li>"),h+=1)}function p(e,n,a){t.markup("<span class='a-Menu-statusCol'>"),(n||""===n)&&P(t,e,n,a),t.markup("</span>")}function b(e,n,a,i,s,o,l,u,c){var d;n?(t.markup("<span tabindex='-1'").optionalAttr("aria-disabled",n?"true":null),d="</span>"):s&&r.useLinks?(t.markup("<a").attr("href",X(s)),d="</a>"):(t.markup("<button type='button'"),d="</button>"),t.attr("id",e).attr("role",l).attr("class","a-Menu-label").optionalAttr("target:",o||null).optionalAttr(F,c?"menu":null).optionalAttr(K,c?"false":null).optionalAttr("aria-checked",null!==u&&u?"true":null).markup(">"),t.content(a),i&&t.markup(" <span class='u-vh'>").content(i).markup("</span>"),t.markup(d).markup("</span><span class='a-Menu-accelContainer'>"),i&&function(e){t.markup("<span").attr("class","a-Menu-accel").markup("> ").content(e).markup("</span>")}(i)}function g(){t.markup("<span class='a-Menu-subMenuCol'></span>")}c&&(f="icon-menu-sub-rtl"),r.callout&&l&&t.markup("<div class='u-callout'></div>"),t.markup("<div class='a-Menu-content'><ul role='none'>"),a.each(s.items,(function(s,l){var c,M,v,C,k,w,y,x,_,S,T,B,A=null,E=l.type,L=i+"_"+s;if(J(l),C=l.icon,k=l.iconType,M=l.label,T=l.href,B=l.target,x=l.accelerator,("action"===l.type||"toggle"===l.type||"radioGroup"===l.type)&&"string"==typeof l.action){if(!apex.actions)throw new Error("Action name requires apex.actions");(A=u.actionsContext.lookup(l.action))?(l.hide=!1,A.icon&&!l.icon&&(C=A.icon),A.iconType&&!l.iconType&&(k=A.iconType),A.label&&!l.label&&(M=A.label),A.shortcut&&!l.accelerator&&(x=apex.actions.shortcutDisplay(A.shortcut)),void 0!==A.hide&&(l.hide=A.hide),void 0!==A.disabled&&(l.disabled=A.disabled),void 0!==A.href&&(T=A.href),void 0!==A.target&&(B=A.target),A.choices&&(l.choices=A.choices)):(n.warn("Unknown action name "+l.action+" (item hidden)."),l.hide=!0)}u._itemIsHidden(l)||(v="separator"===E?"a-Menu-itemSep":I,(w=u._itemIsDisabled(l))&&(v+=" "+O),0===s&&o&&r.firstItemIsDefault&&(v+=" a-Menu-item--default"),"radioGroup"===E?(d=!0,A&&(l=A),c=l.get(),a.each(l.choices,(function(e,i){var s=L+"_c"+e,o=c===i.value;x=i.accelerator||null,i.shortcut&&!x&&(x=i.shortcut),v=I,w=i.disabled,a.isFunction(w)&&(w=i.disabled(r)),w&&(v+=" "+O),i.icon&&!A&&n.warn("Radio menu items cannot have icons."),d&&m(),t.markup("<li").attr("id",s).attr("class",v).markup("><div class='a-Menu-inner'><span class='a-Menu-labelContainer'>"),p("a-Icon",o?"icon-menu-radio":""),J(i),b(_=s+"i",w,i.label,x,null,null,"menuitemradio",o),g(),t.markup("</span></div></li>"),h+=1})),d=!0):"separator"===E?d=!0:(y="toggle"===E?"menuitemcheckbox":"menuitem",d&&m(),_=L+"i",t.markup("<li id='").attr(L).markup("' class='").attr(v).markup("'><div class='a-Menu-inner'><span class='a-Menu-labelContainer'>"),"action"===E||"display"===E?(p(k||r.iconType,C,l.iconStyle),b(_,w,M,x,T||"",B,y,null),g(),t.markup("</span></div>")):"toggle"===E?(A&&(l=A),c=l.get(),l.icon&&!A&&n.warn("Toggle menu items cannot have icons."),l.label&&(l.onLabel||l.offLabel)&&n.warn("Toggle menu items should not have both label and on/offLabel properties."),M=l.label,C=c?"icon-menu-check":"",M||(C=null,M=c?l.onLabel:l.offLabel,y="menuitem",c=null),p("a-Icon",C),b(_,w,M,x,null,null,y,c),g(),t.markup("</span></div>")):"subMenu"===E&&(p(l.iconType||r.iconType,l.icon,l.iconStyle),b(_,w,l.label,null,"",null,y,null,!0),l.accelerator&&n.warn("Sub menu items cannot have accelerators."),t.markup("<span class='a-Menu-subMenuCol'>"),P(t,"a-Icon",f),t.markup("</span></span></div>"),S=e.htmlBuilder(),u._renderMenu(S,L,l.menu,!1,!1),t.markup("<div class='a-Menu' role='menu'").attr("id",_+"m").markup(">"+S.toString()),t.markup("</div>")),t.markup("</li>"),h+=1))})),t.markup("</ul></div>")},_checkScrollBounds:function(e,n){return e.find(".a-Menu-scrollBtn").removeClass(O),n.scrollTop<=0?(e.find(".a-Menu-scrollBtn."+S).addClass(O),n.scrollTop=0,!0):n.scrollTop>=n.scrollHeight-n.clientHeight&&(e.find(".a-Menu-scrollBtn."+T).addClass(O),n.scrollTop=n.scrollHeight-n.clientHeight,!0)},_startScrolling:function(e,n){var t=this,i=0,s=[100,99,96,91,84,75,64,51,36,19],o=$(e)[0];this.scrollTimerId&&this._stopScrolling(),a(document).on("mouseup.menuScrolling",(function(){t._stopScrolling()})).on("mousemove.menuScrolling",(function(e){0===a(e.target).closest(".a-Menu-scrollBtn").length&&t._stopScrolling()})),function a(){o.scrollTop+=n?-10:10,t._checkScrollBounds(e,o)?t._stopScrolling():(t.scrollTimerId=setTimeout((function(){a()}),s[i]),i<s.length-1&&(i+=1))}()},_stopScrolling:function(){clearTimeout(this.scrollTimerId),this.scrollTimerId=null,this.element.find(".a-Menu-scrollBtn").removeClass("is-active"),a(document).off(".menuScrolling")},_adjustMenubarForSize:function(n,i){var s,o,l,r,u,c,d,h=!1,f=0,m=this.element.width()-2,p=i.items;for((u=p[p.length-1])&&u._overflow||(u=null),s=0;s<p.length;s++)(l=p[s]).hide?l._width=0:l._width=a("#"+e.escapeCSS(n+"_"+s)).outerWidth(!0),f+=l._width;if(f>m)for(u||(u={type:"subMenu",_overflow:!0,label:t.getMessage("APEX.MENU.OVERFLOW_LABEL"),menu:{items:[]}},p.push(u)),o=u.menu.items,s=p.length-2;s>=0&&f>m;)l=p[s],p.splice(s,1),"subMenu"===l.type&&(l.action||l.href)&&l.menu.items.unshift({type:"action",label:l.label,labelKey:l.labelKey,href:l.href,target:l.target,action:l.action,disabled:l.disabled}),"subMenu"===l.type&&l.menu.customContent&&((c=(d=a("#"+e.escapeCSS(n+"_"+s))).children(_).children().eq(0)).hide(),l.menu.customContent=c[0].id,a(document.body).append(c),d.children(_).attr("data-custom",null)),o.unshift(l),f-=void 0!==l._width?l._width:0,h=!0,s-=1;else if(u){for(o=u.menu.items,r=0,s=0;s<o.length&&r<3;s++)o[s]._width>0&&(r+=1);for(1===r&&(f-=this.element.find(".a-MenuBar-item--overflow").outerWidth(!0)),delete u.current;o.length>0&&!((f+=void 0!==(l=o[0])._width?l._width:0)>m);)o.shift(),"subMenu"===l.type&&(l.action||l.href)&&l.menu.items.shift(),p.splice(p.length-1,0,l),h=!0;0===o.length&&p.pop()}return h}}),a.ui.dialog&&a.widget("ui.dialog",a.ui.dialog,{_allowInteraction:function(e){return a(e.target).closest(_).length>0||this._super(e)}}),a((function(){function t(t,i,s){var o,l=t.attr("data-menu");if(l){if(!(o=a("#"+e.escapeCSS(l))).length)return void n.error("Menu cannot be found "+l);t.addClass("is-active").attr(K,"true"),s&&G.isCurrentMenu(o[0])||o.menu("toggle",t,!1).on("menuafterclose.menubutton",(function(){a(this).off(".menubutton"),t.removeClass("is-active").attr(K,"false")})),i&&Z(o.find(B).first())}}let i=a("body");i.on("click","button.js-menuButton",(function(){t(a(this),!0,!1)})).on("keydown","button.js-menuButton",(function(e){e.which===N.DOWN?(e.preventDefault(),t(a(this),!0,!0)):e.which===N.TAB&&(r=!0,G.closeAll())})),a("button.js-menuButton").attr(F,"menu").attr(K,"false"),i.on("apexafterrefresh",(function(e){a(e.target).find("button.js-menuButton").attr(F,"menu").attr(K,"false")}))}))}(apex.util,apex.debug,apex.lang,apex.jQuery);
!function(t){"use strict";const o="u-callout--top",l="u-callout--bottom",e="u-callout--left",s="u-callout--right";t.widget("apex.popup",t.ui.dialog,{version:"20.2",widgetEventPrefix:"popup",options:{parentElement:null,relativePosition:"below",callout:!1,noOverlay:!1},_create:function(){let o=this.options,l=this.element;const i="blur.popupTracking"+this.uuid,a="mousedown.popupTracking"+this.uuid;o.resizable=!1,o.draggable=!1,o.modal=!o.noOverlay,this._super(),this.calloutBefore=s,this.calloutAfter=e,"rtl"===l.css("direction")&&(this.calloutBefore=e,this.calloutAfter=s),"auto"===o.width&&this.uiDialog.css("display","inline-block").hide(),this.uiDialog.addClass("ui-dialog--popup"),this.uiDialog.children(".ui-dialog-titlebar").hide(),this._setPosition(),l.on("popupopen",()=>{o.noOverlay?(setTimeout(()=>{t(window).on(i,()=>{l.popup("close")}),t("html").on(a,o=>{!t(o.target).closest(".ui-dialog").not(".ui-dialog--popup").length&&this._allowInteraction(o)||(l.data("apex-popup").opener=t(o.target),l.popup("close"))})},0),l.one("popupclose",(function(){t(window).off(i),t("html").off(a)}))):t(".ui-widget-overlay").click((function(){l.popup("close")})),this._updateCallout()})},_destroy:function(){this.callout$&&this.callout$.remove()},_setPosition:function(){let i,a,n,p=0,u=this.options,c=this.element,r=u.relativePosition;u.callout&&u.parentElement?(this.callout$||(this.callout$=t("<div class='u-callout'></div>"),c.after(this.callout$)),p=parseInt(c.parent().css("margin-top"),10)):this.callout$&&(this.callout$.remove(),this.callout$=null),u.parentElement?(a=t(u.parentElement),"above"===r?(i=l,n={my:"left bottom",at:"left top-"+p,of:a,collision:"fit flipfit"}):"below"===r?(i=o,n={my:"left top",at:"left bottom+"+p,of:a,collision:"fit flipfit"}):"before"===r?(i=s,n={my:"right top",at:"left-"+p+" top",of:a,collision:"flipfit fit"}):"after"===r?(i=e,n={my:"left top",at:"right+"+p+" top",of:a,collision:"flipfit fit"}):"inside"===r&&(i=o,n={my:"left top",at:"left+"+p+" top+"+p,of:a}),this.callout$&&this.callout$.removeClass(o+" "+l+" "+s+" "+e).addClass(i)):n={my:"center",at:"center",of:window},this.options.position=n},_updateCallout:function(){let i,a,n,p,u,c;this.callout$&&(c=this.callout$,p=this.element.offset(),u=t(this.options.parentElement).offset(),c.hasClass(o)?p.top<u.top&&c.removeClass(o).addClass(l):c.hasClass(l)?p.top>u.top&&c.removeClass(l).addClass(o):c.hasClass(this.calloutAfter)?p.left<u.left&&c.removeClass(this.calloutAfter).addClass(this.calloutBefore):c.hasClass(this.calloutBefore)&&p.left>u.left&&c.removeClass(this.calloutBefore).addClass(this.calloutAfter),c.css("left",""),c.css("top",""),c.hasClass(o)||c.hasClass(l)?(i=parseInt(c.css("left"),10),n=u.left-p.left,n>0&&c.css("left",n+i)):(c.hasClass(e)||c.hasClass(s))&&(a=parseInt(c.css("top"),10),n=u.top-p.top,n>0&&c.css("top",n+a)))},_setOption:function(t,o){if("draggable"===t||"resizable"===t||"modal"===t)throw new Error("Popup "+t+" cannot be set.");this._super(t,o),"parentElement"!==t&&"callout"!==t&&"relativePosition"!==t||this._setPosition()}})}(apex.jQuery);
var ToggleCore=function(e){return function(n){var o=(e=n.extend({},{useSessionStorage:!0,defaultExpandedPreference:!1,onClick:function(){},onResize:function(){},onInitialize:function(){S?m():z()},onCollapse:function(){},onExpand:function(){},isPreferenceGlobal:!1},e)).key,l=e.defaultExpandedPreference,t=e.onExpand,a=e.onCollapse,c=e.onResize,r=e.onClick,i=e.onInitialize,s=e.content,f=e.contentClassExpanded,u=e.contentClassCollapsed,d=e.controllingElement,p=e.controllingElementSelector,x=e.useSessionStorage,g=e.isPreferenceGlobal,C=apex.storage.getScopedSessionStorage({prefix:o,usePageId:!g,useAppId:!0}),E=!1,S=l;if(x){var v=C.getItem("preferenceForExpanded");v&&(S="true"===v)}(!d||d.length<1)&&(d=n(p)),d&&d.click((function(e){r.call(b),y(),d.focus(),e.preventDefault()}));var P=function(e){S=e,x&&C.setItem("preferenceForExpanded",S)},m=function(){E=!1,I.call(b)},z=function(){E=!0,k.call(b)},I=function(e){E||(E=!0,e&&P(E),s.removeClass(u).addClass(f),t())},k=function(e){E&&(E=!1,e&&P(E),s.addClass(u).removeClass(f),a())},y=function(){E?k.call(b,!0):I.call(b,!0)},b={key:o,setUserPreference:P,doesUserPreferExpanded:function(){return S},isExpanded:function(){return E},toggle:function(){y.call(b)},expand:function(){I.call(b)},collapse:function(){k.call(b)},forceExpand:m,forceCollapse:z,resize:function(){c.call(b)},initialize:function(){i.call(b)}};return b}(apex.jQuery)};
!function(e,t,n){"use strict";e.widget("apex.collapsible",{version:"5.0",widgetEventPrefix:"collapsible",baseId:null,heading$:null,controllingElement$:null,content$:null,isContentIdSetByWidget:!1,isHeadingIdSetByWidget:!1,isControllingElementALink:!1,core:null,expandedClass:"is-expanded",collapsedClass:"is-collapsed",options:{heading:"h1,h2,h3,h4,h5,h6",controllingElement:"button,a",content:null,collapsed:!0,doCollapse:!0,universalTheme:!1,expandedClass:null,collapsedClass:null,rememberState:!1,renderIcon:!0},_create:function(){var t,l,i=this,s=this.options,a=e(".a-Collapsible").length;if(this.baseId="a_Collapsible"+(a+1)+"_"+this.element.attr("id"),this.element.addClass("a-Collapsible"),s.expandedClass&&(this.expandedClass+=" "+s.expandedClass),s.collapsedClass&&(this.collapsedClass+=" "+s.collapsedClass),this.heading$=this.element.find(s.heading).first(),this.heading$.addClass("a-Collapsible-heading"),this.controllingElement$=this.element.find(s.controllingElement).first(),this.controllingElement$.text()||((l=this.heading$[0].id)||(l=this.baseId+"_heading",this.heading$[0].id=l,this.isHeadingIdSetByWidget=!0),this.controllingElement$.attr("aria-labelledby",l)),s.universalTheme?this.content$=s.content:s.content?this.content$=this.element.find(s.content).first():this.content$=this.heading$.next(),this.content$.addClass("a-Collapsible-content"),(t=this.content$[0].id)||(t=this.baseId+"_content",this.content$[0].id=t,this.isContentIdSetByWidget=!0),this.controllingElement$.attr("aria-controls",t).attr("aria-expanded",!s.collapsed),this.controllingElement$.is("a")&&(this.isControllingElementALink=!0),s.renderIcon){let e=n.htmlBuilder();e.markup("<span").attr("class","a-Icon a-Collapsible-icon").attr("aria-hidden",!0).markup(">").markup("</span>"),this.controllingElement$.prepend(e.toString())}this.isControllingElementALink&&(this.controllingElement$.attr("role","button"),this._on(this.controllingElement$,{keypress:function(t){t.which===e.ui.keyCode.SPACE&&(i.core.toggle(),t.preventDefault())}})),this.core=ToggleCore({key:i.baseId,controllingElement:this.controllingElement$,content:i.element,contentClassExpanded:this.expandedClass,contentClassCollapsed:this.collapsedClass,defaultExpandedPreference:!s.collapsed,useSessionStorage:s.rememberState,onExpand:function(){i.content$.attr("aria-hidden","false"),s.doCollapse&&i.content$.show(),i.controllingElement$.attr("aria-expanded","true"),i._trigger("expand")},onCollapse:function(){i.content$.attr("aria-hidden","true"),s.doCollapse&&i.content$.hide(),i.controllingElement$.attr("aria-expanded","false"),i._trigger("collapse")}}),this.core.initialize()},_destroy:function(){this.element.removeClass("a-Collapsible "+this.collapsedClass+" "+this.expandedClass),this.controllingElement$.removeAttr("aria-expanded").removeAttr("aria-controls"),this._off(this.controllingElement$),this.isContentIdSetByWidget&&this.content$.removeAttr("id"),this.isHeadingIdSetByWidget&&this.heading$.removeAttr("id"),this.heading$.removeClass("a-Collapsible-heading"),this.content$.removeAttr("aria-hidden").removeClass("a-Collapsible-content"),this.options.doCollapse&&this.content$.show()},expand:function(){this.core.expand()},collapse:function(){this.core.collapse()},toggle:function(){this.core.toggle()},getCore:function(){return this.core}}),apex.message&&apex.message.addVisibilityCheck((function(t){e("#"+t).parents(".a-Collapsible").collapsible("expand")})),apex.widget.util.visibilityChange&&e(document.body).on("collapsibleexpand",(function(e){apex.widget.util.visibilityChange(e.target,!0)})).on("collapsiblecollapse",(function(e){apex.widget.util.visibilityChange(e.target,!1)}))}(apex.jQuery,apex.lang,apex.util);
!function(t,o){"use strict";let n=null,i=0;function e(){let t,i;n&&(t=n.target,i=o.Event(n),i.target=i.currentTarget=n.originalEvent.target,o(t).data("ui-tooltip")&&o(t).tooltip("close",i))}t.tooltipManager={closeTooltip:e,tooltipsDisabled:function(){return i>0},disableTooltips:function(){0===i&&(this.closeTooltip(),o(document).find(":data(ui-tooltip)").tooltip("disable")),i+=1},enableTooltips:function(){i-=1,i<=0&&(o(document).find(":data(ui-tooltip)").tooltip("enable"),i=0)},defaultShowOption:function(){return{delay:1e3,effect:"show",duration:500}}},o((function(){o(document.body).on("tooltipopen",(function(t){e(),n=t,t.originalEvent||(n.originalEvent={target:t.target})})).on("tooltipclose",(function(t){n&&t.originalEvent&&n.originalEvent.target===t.originalEvent.target&&(n=null)})).on("tooltipcreate",(function(t){o(t.target).tooltip("option","disabled",i>0)}))}))}(apex,apex.jQuery);
apex.theme={},function(e,i,t,o,a,n,s){"use strict";var l,p=null,r={};const d=a.hasOwnProperty;function c(e,i){var o,a,n=!1,s="string"==typeof e?t("#"+e):e,l=s.data();function p(e){return"function"==typeof e}if(l)for(o in l)if(d(l,o)&&(a=l[o]).widgetFullName&&(p(a.open)&&p(a.close)||p(a.expand)&&p(a.collapse))){n=!0,a.open||(i="open"===i?"expand":"collapse"),a[i]();break}if(!n)throw new Error("Error: Region does not support being opened and closed.");return s}e.popupFieldHelp=function(e,i,n){var s;function l(e){var i=t("<span></span>");return e.replace(/&#?\w+;/g,(function(e){return i.html(e),i.text()}))}function d(e){var i=a.getTopApex().jQuery("#apex_popup_field_help"),n=a.getTopApex().jQuery("#apex_popup_help_area");0===i.length?(0===n.length&&a.getTopApex().jQuery("#wwvFlowForm").after("<div id='apex_popup_help_area'></div>"),(i=a.getTopApex().jQuery("<div id='apex_popup_field_help' tabindex='0'>"+e.helpText+"</div>")).dialog({closeText:o.getMessage("APEX.DIALOG.CLOSE"),title:l(e.title),appendTo:"#apex_popup_help_area",dialogClass:"ui-dialog--helpDialog",width:500,minHeight:96,create:function(){i.closest(".ui-dialog").css("position","fixed")},resize:function(){i.closest(".ui-dialog").css("position","fixed")},close:function(){p&&t(p).focus()}}).keydown((function(e){117===e.which&&e.altKey&&p&&t(p).focus()}))):i.html(e.helpText).dialog("option","title",l(e.title)).dialog("open"),i.focus()}p=document.activeElement||null,s=n||"wwv_flow_item_help.show_help?p_item_id="+e+"&p_session="+i,t.isPlainObject(e)?(e.helpText.indexOf("apex-help-dialog")<0&&(e.helpText="<div class='apex-help-dialog'>"+e.helpText+"</div>"),d(e)):r[e]?d(r[e]):t.getJSON(s+"&p_output_format=JSON",(function(i){i.title&&i.helpText&&(d(i),e&&(r[e]=i))}))},t((function(){t(document.body).on("click",".js-itemHelp",(function(){var i=t(this).attr("data-itemhelp");i&&e.popupFieldHelp(i,s.APP_SESSION)})).on("keydown",(function(i){112===i.which&&i.altKey&&t(i.target).parents().each((function(){var i,o;if(this.id&&/_CONTAINER$/.test(this.id)||"TD"===this.nodeName){if((i=t(this).find(".js-itemHelp")).length&&(o=i.attr("data-itemhelp")))return e.popupFieldHelp(o,s.APP_SESSION),!1;if("TD"!==this.nodeName)return!1}}))})),t(document.body).on("dialogopen dialogclose popupopen popupclose",(function(e){var i=t("#apex_popup_field_help"),o=t(e.target);i[0]&&i.dialog("isOpen")&&o[0]!==i[0]&&(o.is(":data(apexPopup)")||o.dialog("option","modal"))&&(p=null,i.data("ui-dialog").opener=t(t.ui.safeActiveElement(document)),i.dialog("close"))})),t(document.body).on("click","label",(function(e){var i,o=t(this).attr("for");o&&((i=t("#"+a.escapeCSS(o))).is("input,textarea,select")&&!i.prop("disabled")&&i.is(":visible")||0!==t(this).find("a").length||(apex.item(o).setFocus(),e.preventDefault()))})),t(".js-regionDialog,.js-regionPopup").each((function(){var e=t(this),o=e.hasClass("js-regionPopup"),s=/js-dialog-size(\d+)x(\d+)/.exec(this.className),l=/js-dialog-width-(\d+)/.exec(this.className),p=/js-dialog-height-(\d+)/.exec(this.className),r=/js-popup-pos-(\w+)/.exec(this.className),d=e.attr("data-parent-element"),c={autoOpen:!1,noOverlay:e.hasClass("js-popup-noOverlay"),appendTo:"form[name='wwv_flow']",closeText:apex.lang.getMessage("APEX.DIALOG.CLOSE"),modal:o||e.hasClass("js-modal"),resizable:!o&&e.hasClass("js-resizable"),draggable:!o&&e.hasClass("js-draggable"),dialogClass:"ui-dialog--inline",create:function(){t(this).closest(".ui-dialog").css("position","fixed").attr("aria-modal",c.modal)}},u=o?"popup":"dialog";s&&(c.width=s[1],c.height=s[2]),l&&(c.width=l[1]),p&&(c.height=p[1]),d&&o&&(c.parentElement=d,e.hasClass("js-popup-callout")&&(c.callout=!0),r&&(c.relativePosition=r[1])),t.each(["width","height","minWidth","minHeight","maxWidth","maxHeight"],(function(i,t){var o=parseInt(e.attr("data-"+t.toLowerCase()),10);isNaN(o)||(c[t]=o)})),t.each(["appendTo","dialogClass"],(function(i,t){var o=e.attr("data-"+t.toLowerCase());o&&(c[t]=o)})),this.className.split(" ").forEach(e=>{let i=/js-dialog-class-(.+)/.exec(e);i&&(c.dialogClass+=" "+i[1])}),c.appendTo&&"#"===c.appendTo.substring(0,1)&&0===t(c.appendTo).length&&t("#wwvFlowForm").after('<div id="'+a.escapeHTML(c.appendTo.substring(1))+'"></div>'),e[u](c).on(u+"open",(function(){c.modal&&i.beginFreezeScroll(),n.visibilityChange(e[0],!0)})).on(u+"resize",(function(){t(this).closest(".ui-dialog").css("position","fixed")})).on(u+"beforeclose",(function(){t(this).closest(".ui-dialog").addClass("is-closing")})).on(u+"close",(function(){c.modal&&i.endFreezeScroll(),n.visibilityChange(e[0],!1),setTimeout(()=>{t(this).closest(".ui-dialog").removeClass("is-closing")},a.cssDurationToMilliseconds(t(this).css("--js-dialog-close-timing")||"0ms"))}))}))})),e.openRegion=function(e){return c(e,"open")},e.closeRegion=function(e){return c(e,"close")},e.mq=function(e){var i=matchMedia(e);return i&&i.matches||!1},e.pageResizeInit=function(){t("#wwvFlowForm").addClass("resize"),t("body > link").hide(),t("body").css("overflow","hidden"),t(".resize").each((function(){"flex"===t(this).css("display")&&t(this).css("display","block")})),t("body").on("resize",(function(e){var i,o,n,s,l,p=t(e.target);"BODY"===e.target.nodeName?(l=window.getComputedStyle(document.body),i=document.documentElement.clientHeight-parseFloat(l.paddingTop)-parseFloat(l.paddingBottom),o=document.documentElement.clientWidth-parseFloat(l.paddingLeft)-parseFloat(l.paddingRight)):(i=p.height(),o=p.width()),(n=p.children(".resize").filter(":visible")).length>0&&(p.children(":not(.resize)").filter(":visible").each((function(){"fixed"!==(s=t(this).css("position"))&&"absolute"!==s&&(i-=t(this).outerHeight(!0))})),i=Math.floor(i/n.length),n.each((function(){var e=t(this);a.setOuterHeight(e,i),a.setOuterWidth(e,o),e.filter(":visible").trigger("resize")}))),e.stopPropagation()})),t(".ui-accordion.resize").on("resize",(function(e){e.target===this&&(t(this).accordion("refresh"),e.stopPropagation())})),t(".ui-tabs.resize").on("resize",(function(e){e.target===this&&(t(this).tabs("refresh").children(".ui-tabs-panel.resize").trigger("resize"),e.stopPropagation())})),t(window).on("apexwindowresized",(function(){t("body").trigger("resize")})),t("body").trigger("resize")},e.defaultStickyTop=function(){return 0},e.initWizardProgressBar=function(e){var i="."+(e||"t-WizardSteps");t(i).find(i+"-step.is-active").find("span"+i+"-labelState").text(o.getMessage("APEX.ACTIVE_STATE")).end().prevAll(i+"-step").addClass("is-complete").find("span"+i+"-labelState").text(o.getMessage("APEX.COMPLETED_STATE"))};var u=function(e){return!!e.hasClass("js-regionPopup")||"center"!==e.dialog("option","position").my};e.initResponsiveDialogs=function(){t("body").on("dialogopen",".ui-dialog-content",(function(){var e,i=t(this),o=i.closest(".ui-dialog");if(!(i.hasClass("non-responsive")||o.find(".utr-container").length>0)){o.css("maxWidth","100%");var a=o.find(".ui-dialog-buttonpane"),n=0;a.length>0&&(n=a.outerHeight()+20);var s=parseInt(i.dialog("option","minHeight"),10);s||(s=0);var l=function(){var e=o.offset(),a=t(window);e.top-=a.scrollTop(),e.left-=a.scrollLeft();var l=a.width(),p=o.outerWidth();e.left+p>l&&o.css("left",l-p);var r=t(window).height(),c=o.height(),h=i.height();i.dialog("option","show")&&(h=parseInt(i.dialog("option","height"),10));var g=t(".ui-dialog--apex .ui-dialog-content:visible"),f=t(".ui-dialog .js-regionDialog:visible"),w={my:"center",at:"center",of:window},m=function(e){var i=t(e);u(i)||i.dialog("option","position",w)};if(d(o,"resizable")&&!o.resizable("option","disabled")&&(o.resizable("option","maxWidth",l),i.css({"max-width":l,width:"100%"})),r<h+n){var v=r-o.find(".ui-dialog-titlebar").outerHeight()-n;i.height(Math.max(v,s)),c=o.height()}else h+n<r&&i.height(h);if(e.top+c>r){var x=0;"absolute"===o.css("position")&&(x=a.scrollTop()),o.css("top",Math.max(r-c+x,0))}g.each((function(){m(this)})),f.each((function(){m(this)}))};e=setTimeout((function(){l()}),250),t(window).on("apexwindowresized",l),i.on("dialogclose",(function(){t(window).off("apexwindowresized",l),clearTimeout(e)}))}})).on("popupopen",".ui-dialog-content",(function(){var e=t(this),i=e.closest(".ui-dialog"),o=t(window).width()-10,a=t(window).height()-10,n=i.outerWidth(),s=i.height();e.hasClass("non-responsive")||(n>o&&e.popup("option","width",o),s>a&&e.popup("option","height",a))}))},e.openCustomizeDialog=function(e,o){apex.jQuery(t("#pFlowStepId")).on("apexafterclosedialog",(function(e,i){var t=document.location.href.replace(/&?success_msg=([^&]$|[^&]*)/i,"")+i.successMessage.urlSuffix;document.location.href=t})),i.dialog("wwv_flow_customize.show?p_flow="+$v("pFlowId")+"&p_page="+$v("pFlowStepId")+"&p_session="+$v("pInstance")+"&p_lang="+o+"&"+a.getContextString(),{title:e,height:450,scroll:"no",width:600,maxWidth:800,modal:!0,resizable:!0},null,t("#pFlowStepId"))};var h=function(e){e.dialog("option","position",{my:"center",at:"center",of:window.parent})},g=e.stretchDialog=function(e,i){var t="95%";i&&(t=i+"%"),e.parent().css({height:t,width:t}).addClass("ui-dialog--stretch"),h(e)},f=e.observeAttrChanges=function(e,i){var o=t(e)[0],n=function(){i(e)},s=new MutationObserver((function(){a.debounce(n,50)()}));return s.observe(o,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1,attributeFilter:["class","id","style"]}),s},w=e.modalAutoSize=function(e){var i,o,n,s=t("body"),p=a.getTopApex().jQuery,r=e.observeClass,d=void 0!==apex.builder,c=0!==t(".ui-dialog--stretch").length;return window.parent===window.self?(s.addClass("js-dialogReady"),!1):(i="#"+window.frameElement.parentNode.id,o=p(i)||t(i),c?g(o):(n=function(){var i,a,n=e.sections,s=n.length,l=o.parent().find(".ui-dialog-titlebar").outerHeight(),r=p(parent.window).height()-20,c=parseInt(o.dialog("option","minHeight"),10),u=parseInt(o.dialog("option","maxHeight"),10)||r,h=0,g=0,f=function(e){var i=0,o=parseInt(e.css("padding-top"),10)+parseInt(e.css("padding-bottom"),10);return e.children().each((function(){i+=t(this)[0].offsetHeight})),i+o};for(i=0;i<s;i++)(a=t(n[i]))[0]&&(h+=d?f(a):a.outerHeight());return g=(g=(h+=l)>c?h<u?h:u:c)>r?r:g,d&&(g-=l),g}(),"auto"===o.dialog("option","height")&&n!==l&&(d?o.css("height",n):o.parent().css("height",n),u(o)||h(o),l=n,f(r,(function(){w(e)})))),s.addClass("js-dialogReady"),o.addClass("js-dialogReady"),!0)};e.dialogAutoHeight=function(e){var i,o=t(e),n=function(e,o){var a=t(e),s=o?"popup":"dialog",l=o?"popupresizestart popupclose":"dialogresizestart dialogclose",p=(o?0:a.prev().outerHeight())+t(e+" .t-DialogRegion-body").outerHeight()+a.find(".t-DialogRegion-buttons").outerHeight(),r=t(window).height()-48,d=p>r?r:p;(d||0!==d)&&(a.css("height","auto").parent().css("height",d),u(a)||a[s]("option","position","center"),i||(i=f(e,(function(){n(e,o)}))),a.on(l,(function(){null!==i&&(i.disconnect(),i=null)})))};return o.each((function(){var e=t(this),i="#"+a.escapeCSS(e.attr("id")),o=e.hasClass("js-regionPopup"),s=o?"popup":"dialog";e.on(s+"open",(function(){n(i,o)})),n(i,o)})),o}}(apex.theme,apex.navigation,apex.jQuery,apex.lang,apex.util,apex.widget.util,apex.env);
apex.pwa={},function(e,i,a,n,o,s,t){"use strict";const r=window.navigator.userAgent,l="name",d="fullscreen",w="standalone",c="minimal-ui";let p,g;const v=function(e){let i,a,n,o,s,t,l=0;for(;l<e.length&&!s;){let d=e[l],w=e[l+1];for(i=a=0;i<d.length&&!s;)if(s=d[i].exec(r),i+=1,s)for(n=0;n<w.length;n++)a+=1,t=s[a],o=w[n],"object"==typeof o&&o.length>0?2===o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,t):this[o[0]]=o[1]:3===o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=t?t.replace(o[1],o[2]):void 0:this[o[0]]=t?o[1].call(this,t,o[2]):void 0:4===o.length&&(this[o[0]]=t?o[3].call(this,t.replace(o[1],o[2])):void 0):this[o]=t||void 0;l+=2}},u={browser:[[/\bgsa\/([\w.]+) .*safari\//i],[[l,"GSA"]],[/WebView/i,/(iPhone|iPod|iPad)(?!.*Safari)/i,/Android.*(wv|.0.0.0)/i,/ wv\).+(chrome)\/([\w.]+)/i,/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[l,"WEBVIEW"]],[/version\/([\w.]+) .*(mobile ?safari|safari)/i,/version\/([\w.]+) .*mobile\/\w+ (safari)/i],[[l,"SAFARI"]],[/\b(?:crmo|crios)\/([\w.]+)/i,/(chrome)\/v?([\w.]+)/i],[[l,"CHROME"]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[[l,"EDGE"]],[/(firefox)\/([\w.]+)/i,/fxios\/([-\w.]+)/i],[[l,"FIREFOX"]]],device:[[/\((iphone[\w ]*);/i],[["model","IPHONE"]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[["model","IPAD"]]],os:[[/microsoft (windows) (vista|xp)/i],[[l,"WINDOWS"],"version"],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[["version",/_/g,"."],[l,"IOS"]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"MAC_OS"],["version",/_/g,"."]],[/(android)[-/ ]?([\w.]*)/i],[[l,"ANDROID"],"version"],[/(cros) [\w]+ ([\w.]+\w)/i],[[l,"CHROME_OS"],"version"],[/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i],[[l,"LINUX"],"version"]]},m=()=>{let e={name:void 0,version:void 0};return v.call(e,u.os),e.major="string"==typeof e.version?Number(e.version.replace(/[^\d.]/g,"").split(".")[0]):void 0,e},f=()=>{let e={model:void 0};return v.call(e,u.device),e},h=()=>{let e={name:void 0};return v.call(e,u.browser),e},b=async()=>{await e.isInstallable()?a(".a-pwaInstall").addClass("is-visible"):(a(".a-pwaInstall").removeClass("is-visible"),setTimeout(()=>{g&&n.info(g)},2e3))};e.registerServiceWorker=e=>{"serviceWorker"in navigator?window.addEventListener("load",async()=>{try{await navigator.serviceWorker.register(e),n.info("Service worker registered.")}catch(e){n.warn("Service worker failed to register.",e)}}):"http:"===window.location.protocol?n.warn("Service workers are not supported on HTTP pages."):n.warn("Service workers are not supported.")},e.getDisplayMode=()=>o.mq(`(display-mode: ${d})`)?d:o.mq(`(display-mode: ${w})`)?w:o.mq(`(display-mode: ${c})`)?c:"browser",e.isInstallable=async()=>{if(g=null,"standalone"in navigator&&navigator.standalone)return g="PWA is not installable. Current page view is already in PWA mode",!1;if("getInstalledRelatedApps"in navigator&&window===window.parent){const e=await navigator.getInstalledRelatedApps();if(e&&e.length>0)return g="PWA is not installable due to being already installed on current device.",!1}return[d,w,c].includes(e.getDisplayMode())?(g="PWA is not installable. Current page view is already in PWA mode",!1):!("BeforeInstallPromptEvent"in window&&!p)||(g="PWA is not installable. Browser installation criteria are not met or PWA may already be installed.",!1)},e.getInstallText=async()=>{const e={os:m(),device:f(),browser:h()};let a;const n=e=>{let n="APEX.PWA.INSTRUCTIONS";e.forEach(e=>{e&&(n+="."+String(e))}),i.hasMessage(n)&&(a=i.getMessage(n),a=a.replace(/#IMAGE_PREFIX#/g,t.APEX_FILES))};return await i.loadMessages(["APEX.PWA.%"]),a||n([e.os[l],e.browser[l],e.device.model]),a||n([e.os[l],e.browser[l]]),a||n([e.os[l]]),a||n([]),a},e.openInstallDialog=async()=>{if(p)p.prompt();else{const n=await e.getInstallText();s.showDialog(n,{id:"a-pwaDialog",title:i.getMessage("APEX.PWA.DIALOG.TITLE"),unsafe:!1,width:"auto",okButton:!1,dialogClass:"a-pwaDialog",open:()=>{a(".ui-widget-overlay").click(()=>{a("#a-pwaDialog").dialog("close")})}})}},e.cleanup=()=>{"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(e=>{for(let i of e)i.unregister()}).catch(e=>{n.warn(e)}),"caches"in window&&window.caches.keys().then(e=>Promise.all(e.map(e=>{if(e.startsWith("APEX-"))return window.caches.delete(e)}))).catch(e=>{n.warn(e)})},window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),p=e,b()}),window.addEventListener("appinstalled",()=>{p=null,a(".a-pwaInstall").removeClass("is-visible")}),a(".a-pwaInstall").click(e.openInstallDialog),b()}(apex.pwa,apex.lang,apex.jQuery,apex.debug,apex.theme,apex.message,apex.env);