// removed blockui.js /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ ;(function() { /*jshint eqeqeq:false curly:false latedef:false */ "use strict"; function setup($) { $.fn._fadeIn = $.fn.fadeIn; var noOp = $.noop || function() {}; // this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle // confusing userAgent strings on Vista) var msie = /MSIE/.test(navigator.userAgent); var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent); var mode = document.documentMode || 0; var setExpr = $.isFunction( document.createElement('div').style.setExpression ); // global $ methods for blocking/unblocking the entire page $.blockUI = function(opts) { install(window, opts); }; $.unblockUI = function(opts) { remove(window, opts); }; // convenience method for quick growl-like notifications (http://www.google.com/search?q=growl) $.growlUI = function(title, message, timeout, onClose) { var $m = $('
'); if (title) $m.append('" + a.stack + "
")[0], av, aG = aJ.each; aw.style.cssText = "background-color:rgba(1,1,1,.5)"; aH.rgba = aw.style.backgroundColor.indexOf("rgba") > -1; aG(aE, function(aK, aL) { aL.cache = "_" + aK; aL.props.alpha = { idx: 3, type: "percent", def: 1 } }); function aD(aL, aN, aM) { var aK = aI[aN.type] || {}; if (aL == null) { return (aM || !aN.def) ? null : aN.def } aL = aK.floor ? ~~aL : parseFloat(aL); if (isNaN(aL)) { return aN.def } if (aK.mod) { return (aL + aK.mod) % aK.mod } return 0 > aL ? 0 : aK.max < aL ? aK.max : aL } function aA(aK) { var aM = az() , aL = aM._rgba = []; aK = aK.toLowerCase(); aG(aB, function(aR, aS) { var aP, aQ = aS.re.exec(aK), aO = aQ && aS.parse(aQ), aN = aS.space || "rgba"; if (aO) { aP = aM[aN](aO); aM[aE[aN].cache] = aP[aE[aN].cache]; aL = aM._rgba = aP._rgba; return false } }); if (aL.length) { if (aL.join() === "0,0,0,0") { aJ.extend(aL, av.transparent) } return aM } return av[aK] } az.fn = aJ.extend(az.prototype, { parse: function(aQ, aO, aK, aP) { if (aQ === ay) { this._rgba = [null, null, null, null]; return this } if (aQ.jquery || aQ.nodeType) { aQ = aJ(aQ).css(aO); aO = ay } var aN = this , aM = aJ.type(aQ) , aL = this._rgba = []; if (aO !== ay) { aQ = [aQ, aO, aK, aP]; aM = "array" } if (aM === "string") { return this.parse(aA(aQ) || av._default) } if (aM === "array") { aG(aE.rgba.props, function(aR, aS) { aL[aS.idx] = aD(aQ[aS.idx], aS) }); return this } if (aM === "object") { if (aQ instanceof az) { aG(aE, function(aR, aS) { if (aQ[aS.cache]) { aN[aS.cache] = aQ[aS.cache].slice() } }) } else { aG(aE, function(aS, aT) { var aR = aT.cache; aG(aT.props, function(aU, aV) { if (!aN[aR] && aT.to) { if (aU === "alpha" || aQ[aU] == null) { return } aN[aR] = aT.to(aN._rgba) } aN[aR][aV.idx] = aD(aQ[aU], aV, true) }); if (aN[aR] && aJ.inArray(null, aN[aR].slice(0, 3)) < 0) { aN[aR][3] = 1; if (aT.from) { aN._rgba = aT.from(aN[aR]) } } }) } return this } }, is: function(aM) { var aK = az(aM) , aN = true , aL = this; aG(aE, function(aO, aQ) { var aR, aP = aK[aQ.cache]; if (aP) { aR = aL[aQ.cache] || aQ.to && aQ.to(aL._rgba) || []; aG(aQ.props, function(aS, aT) { if (aP[aT.idx] != null) { aN = (aP[aT.idx] === aR[aT.idx]); return aN } }) } return aN }); return aN }, _space: function() { var aK = [] , aL = this; aG(aE, function(aM, aN) { if (aL[aN.cache]) { aK.push(aM) } }); return aK.pop() }, transition: function(aL, aR) { var aM = az(aL) , aN = aM._space() , aO = aE[aN] , aP = this.alpha() === 0 ? az("transparent") : this , aQ = aP[aO.cache] || aO.to(aP._rgba) , aK = aQ.slice(); aM = aM[aO.cache]; aG(aO.props, function(aV, aX) { var aU = aX.idx , aT = aQ[aU] , aS = aM[aU] , aW = aI[aX.type] || {}; if (aS === null) { return } if (aT === null) { aK[aU] = aS } else { if (aW.mod) { if (aS - aT > aW.mod / 2) { aT += aW.mod } else { if (aT - aS > aW.mod / 2) { aT -= aW.mod } } } aK[aU] = aD((aS - aT) * aR + aT, aX) } }); return this[aN](aK) }, blend: function(aN) { if (this._rgba[3] === 1) { return this } var aM = this._rgba.slice() , aL = aM.pop() , aK = az(aN)._rgba; return az(aJ.map(aM, function(aO, aP) { return (1 - aL) * aK[aP] + aL * aO })) }, toRgbaString: function() { var aL = "rgba(" , aK = aJ.map(this._rgba, function(aM, aN) { return aM == null ? (aN > 2 ? 1 : 0) : aM }); if (aK[3] === 1) { aK.pop(); aL = "rgb(" } return aL + aK.join() + ")" }, toHslaString: function() { var aL = "hsla(" , aK = aJ.map(this.hsla(), function(aM, aN) { if (aM == null) { aM = aN > 2 ? 1 : 0 } if (aN && aN < 3) { aM = Math.round(aM * 100) + "%" } return aM }); if (aK[3] === 1) { aK.pop(); aL = "hsl(" } return aL + aK.join() + ")" }, toHexString: function(aK) { var aL = this._rgba.slice() , aM = aL.pop(); if (aK) { aL.push(~~(aM * 255)) } return "#" + aJ.map(aL, function(aN) { aN = (aN || 0).toString(16); return aN.length === 1 ? "0" + aN : aN }).join("") }, toString: function() { return this._rgba[3] === 0 ? "transparent" : this.toRgbaString() } }); az.fn.parse.prototype = az.fn; function ax(aM, aL, aK) { aK = (aK + 1) % 1; if (aK * 6 < 1) { return aM + (aL - aM) * aK * 6 } if (aK * 2 < 1) { return aL } if (aK * 3 < 2) { return aM + (aL - aM) * ((2 / 3) - aK) * 6 } return aM } aE.hsla.to = function(aM) { if (aM[0] == null || aM[1] == null || aM[2] == null) { return [null, null, null, aM[3]] } var aK = aM[0] / 255, aP = aM[1] / 255, aQ = aM[2] / 255, aS = aM[3], aR = Math.max(aK, aP, aQ), aN = Math.min(aK, aP, aQ), aT = aR - aN, aU = aR + aN, aL = aU * 0.5, aO, aV; if (aN === aR) { aO = 0 } else { if (aK === aR) { aO = (60 * (aP - aQ) / aT) + 360 } else { if (aP === aR) { aO = (60 * (aQ - aK) / aT) + 120 } else { aO = (60 * (aK - aP) / aT) + 240 } } } if (aT === 0) { aV = 0 } else { if (aL <= 0.5) { aV = aT / aU } else { aV = aT / (2 - aU) } } return [Math.round(aO) % 360, aV, aL, aS == null ? 1 : aS] } ; aE.hsla.from = function(aO) { if (aO[0] == null || aO[1] == null || aO[2] == null) { return [null, null, null, aO[3]] } var aN = aO[0] / 360 , aM = aO[1] , aL = aO[2] , aK = aO[3] , aP = aL <= 0.5 ? aL * (1 + aM) : aL + aM - aL * aM , aQ = 2 * aL - aP; return [Math.round(ax(aQ, aP, aN + (1 / 3)) * 255), Math.round(ax(aQ, aP, aN) * 255), Math.round(ax(aQ, aP, aN - (1 / 3)) * 255), aK] } ; aG(aE, function(aL, aN) { var aM = aN.props , aK = aN.cache , aP = aN.to , aO = aN.from; az.fn[aL] = function(aU) { if (aP && !this[aK]) { this[aK] = aP(this._rgba) } if (aU === ay) { return this[aK].slice() } var aR, aT = aJ.type(aU), aQ = (aT === "array" || aT === "object") ? aU : arguments, aS = this[aK].slice(); aG(aM, function(aV, aX) { var aW = aQ[aT === "object" ? aV : aX.idx]; if (aW == null) { aW = aS[aX.idx] } aS[aX.idx] = aD(aW, aX) }); if (aO) { aR = az(aO(aS)); aR[aK] = aS; return aR } else { return az(aS) } } ; aG(aM, function(aQ, aR) { if (az.fn[aQ]) { return } az.fn[aQ] = function(aV) { var aX = aJ.type(aV), aU = (aQ === "alpha" ? (this._hsla ? "hsla" : "rgba") : aL), aT = this[aU](), aW = aT[aR.idx], aS; if (aX === "undefined") { return aW } if (aX === "function") { aV = aV.call(this, aW); aX = aJ.type(aV) } if (aV == null && aR.empty) { return this } if (aX === "string") { aS = aC.exec(aV); if (aS) { aV = aW + parseFloat(aS[2]) * (aS[1] === "+" ? 1 : -1) } } aT[aR.idx] = aV; return this[aU](aT) } }) }); az.hook = function(aL) { var aK = aL.split(" "); aG(aK, function(aM, aN) { aJ.cssHooks[aN] = { set: function(aR, aS) { var aP, aQ, aO = ""; if (aS !== "transparent" && (aJ.type(aS) !== "string" || (aP = aA(aS)))) { aS = az(aP || aS); if (!aH.rgba && aS._rgba[3] !== 1) { aQ = aN === "backgroundColor" ? aR.parentNode : aR; while ((aO === "" || aO === "transparent") && aQ && aQ.style) { try { aO = aJ.css(aQ, "backgroundColor"); aQ = aQ.parentNode } catch (aT) {} } aS = aS.blend(aO && aO !== "transparent" ? aO : "_default") } aS = aS.toRgbaString() } try { aR.style[aN] = aS } catch (aT) {} } }; aJ.fx.step[aN] = function(aO) { if (!aO.colorInit) { aO.start = az(aO.elem, aN); aO.end = az(aO.end); aO.colorInit = true } aJ.cssHooks[aN].set(aO.elem, aO.start.transition(aO.end, aO.pos)) } }) } ; az.hook(aF); aJ.cssHooks.borderColor = { expand: function(aL) { var aK = {}; aG(["Top", "Right", "Bottom", "Left"], function(aN, aM) { aK["border" + aM + "Color"] = aL }); return aK } }; av = aJ.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" } } )(b); (function() { var aw = ["add", "remove", "toggle"] , ax = { border: 1, borderBottom: 1, borderColor: 1, borderLeft: 1, borderRight: 1, borderTop: 1, borderWidth: 1, margin: 1, padding: 1 }; ak.each(["borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle"], function(az, aA) { ak.fx.step[aA] = function(aB) { if (aB.end !== "none" && !aB.setAttr || aB.pos === 1 && !aB.setAttr) { b.style(aB.elem, aA, aB.end); aB.setAttr = true } } }); function ay(aD) { var aA, az, aB = aD.ownerDocument.defaultView ? aD.ownerDocument.defaultView.getComputedStyle(aD, null) : aD.currentStyle, aC = {}; if (aB && aB.length && aB[0] && aB[aB[0]]) { az = aB.length; while (az--) { aA = aB[az]; if (typeof aB[aA] === "string") { aC[ak.camelCase(aA)] = aB[aA] } } } else { for (aA in aB) { if (typeof aB[aA] === "string") { aC[aA] = aB[aA] } } } return aC } function av(az, aB) { var aD = {}, aA, aC; for (aA in aB) { aC = aB[aA]; if (az[aA] !== aC) { if (!ax[aA]) { if (ak.fx.step[aA] || !isNaN(parseFloat(aC))) { aD[aA] = aC } } } } return aD } if (!ak.fn.addBack) { ak.fn.addBack = function(az) { return this.add(az == null ? this.prevObject : this.prevObject.filter(az)) } } ak.effects.animateClass = function(az, aA, aD, aC) { var aB = ak.speed(aA, aD, aC); return this.queue(function() { var aG = ak(this), aE = aG.attr("class") || "", aF, aH = aB.children ? aG.find("*").addBack() : aG; aH = aH.map(function() { var aI = ak(this); return { el: aI, start: ay(this) } }); aF = function() { ak.each(aw, function(aI, aJ) { if (az[aJ]) { aG[aJ + "Class"](az[aJ]) } }) } ; aF(); aH = aH.map(function() { this.end = ay(this.el[0]); this.diff = av(this.start, this.end); return this }); aG.attr("class", aE); aH = aH.map(function() { var aK = this , aI = ak.Deferred() , aJ = ak.extend({}, aB, { queue: false, complete: function() { aI.resolve(aK) } }); this.el.animate(this.diff, aJ); return aI.promise() }); ak.when.apply(ak, aH.get()).done(function() { aF(); ak.each(arguments, function() { var aI = this.el; ak.each(this.diff, function(aJ) { aI.css(aJ, "") }) }); aB.complete.call(aG[0]) }) }) } ; ak.fn.extend({ addClass: (function(az) { return function(aB, aA, aD, aC) { return aA ? ak.effects.animateClass.call(this, { add: aB }, aA, aD, aC) : az.apply(this, arguments) } } )(ak.fn.addClass), removeClass: (function(az) { return function(aB, aA, aD, aC) { return arguments.length > 1 ? ak.effects.animateClass.call(this, { remove: aB }, aA, aD, aC) : az.apply(this, arguments) } } )(ak.fn.removeClass), toggleClass: (function(az) { return function(aC, aB, aA, aE, aD) { if (typeof aB === "boolean" || aB === undefined) { if (!aA) { return az.apply(this, arguments) } else { return ak.effects.animateClass.call(this, (aB ? { add: aC } : { remove: aC }), aA, aE, aD) } } else { return ak.effects.animateClass.call(this, { toggle: aC }, aB, aA, aE) } } } )(ak.fn.toggleClass), switchClass: function(az, aB, aA, aD, aC) { return ak.effects.animateClass.call(this, { add: aB, remove: az }, aA, aD, aC) } }) } )(); (function() { if (ak.expr && ak.expr.filters && ak.expr.filters.animated) { ak.expr.filters.animated = (function(ay) { return function(az) { return !!ak(az).data(ap) || ay(az) } } )(ak.expr.filters.animated) } if (ak.uiBackCompat !== false) { ak.extend(ak.effects, { save: function(az, aB) { var ay = 0 , aA = aB.length; for (; ay < aA; ay++) { if (aB[ay] !== null) { az.data(t + aB[ay], az[0].style[aB[ay]]) } } }, restore: function(az, aC) { var aB, ay = 0, aA = aC.length; for (; ay < aA; ay++) { if (aC[ay] !== null) { aB = az.data(t + aC[ay]); az.css(aC[ay], aB) } } }, setMode: function(ay, az) { if (az === "toggle") { az = ay.is(":hidden") ? "show" : "hide" } return az }, createWrapper: function(az) { if (az.parent().is(".ui-effects-wrapper")) { return az.parent() } var aA = { width: az.outerWidth(true), height: az.outerHeight(true), "float": az.css("float") } , aD = ak("
").addClass("ui-effects-wrapper").css({ fontSize: "100%", background: "transparent", border: "none", margin: 0, padding: 0 }) , ay = { width: az.width(), height: az.height() } , aC = document.activeElement; try { aC.id } catch (aB) { aC = document.body } az.wrap(aD); if (az[0] === aC || ak.contains(az[0], aC)) { ak(aC).trigger("focus") } aD = az.parent(); if (az.css("position") === "static") { aD.css({ position: "relative" }); az.css({ position: "relative" }) } else { ak.extend(aA, { position: az.css("position"), zIndex: az.css("z-index") }); ak.each(["top", "left", "bottom", "right"], function(aE, aF) { aA[aF] = az.css(aF); if (isNaN(parseInt(aA[aF], 10))) { aA[aF] = "auto" } }); az.css({ position: "relative", top: 0, left: 0, right: "auto", bottom: "auto" }) } az.css(ay); return aD.css(aA).show() }, removeWrapper: function(ay) { var az = document.activeElement; if (ay.parent().is(".ui-effects-wrapper")) { ay.parent().replaceWith(ay); if (ay[0] === az || ak.contains(ay[0], az)) { ak(az).trigger("focus") } } return ay } }) } ak.extend(ak.effects, { version: "1.12.1", define: function(ay, aA, az) { if (!az) { az = aA; aA = "effect" } ak.effects.effect[ay] = az; ak.effects.effect[ay].mode = aA; return az }, scaledDimensions: function(az, aA, aB) { if (aA === 0) { return { height: 0, width: 0, outerHeight: 0, outerWidth: 0 } } var ay = aB !== "horizontal" ? ((aA || 100) / 100) : 1 , aC = aB !== "vertical" ? ((aA || 100) / 100) : 1; return { height: az.height() * aC, width: az.width() * ay, outerHeight: az.outerHeight() * aC, outerWidth: az.outerWidth() * ay } }, clipToBox: function(ay) { return { width: ay.clip.right - ay.clip.left, height: ay.clip.bottom - ay.clip.top, left: ay.clip.left, top: ay.clip.top } }, unshift: function(az, aB, aA) { var ay = az.queue(); if (aB > 1) { ay.splice.apply(ay, [1, 0].concat(ay.splice(aB, aA))) } az.dequeue() }, saveStyle: function(ay) { ay.data(ad, ay[0].style.cssText) }, restoreStyle: function(ay) { ay[0].style.cssText = ay.data(ad) || ""; ay.removeData(ad) }, mode: function(ay, aA) { var az = ay.is(":hidden"); if (aA === "toggle") { aA = az ? "show" : "hide" } if (az ? aA === "hide" : aA === "show") { aA = "none" } return aA }, getBaseline: function(az, aA) { var aB, ay; switch (az[0]) { case "top": aB = 0; break; case "middle": aB = 0.5; break; case "bottom": aB = 1; break; default: aB = az[0] / aA.height } switch (az[1]) { case "left": ay = 0; break; case "center": ay = 0.5; break; case "right": ay = 1; break; default: ay = az[1] / aA.width } return { x: ay, y: aB } }, createPlaceholder: function(az) { var aB, aA = az.css("position"), ay = az.position(); az.css({ marginTop: az.css("marginTop"), marginBottom: az.css("marginBottom"), marginLeft: az.css("marginLeft"), marginRight: az.css("marginRight") }).outerWidth(az.outerWidth()).outerHeight(az.outerHeight()); if (/^(static|relative)/.test(aA)) { aA = "absolute"; aB = ak("<" + az[0].nodeName + ">").insertAfter(az).css({ display: /^(inline|ruby)/.test(az.css("display")) ? "inline-block" : "block", visibility: "hidden", marginTop: az.css("marginTop"), marginBottom: az.css("marginBottom"), marginLeft: az.css("marginLeft"), marginRight: az.css("marginRight"), "float": az.css("float") }).outerWidth(az.outerWidth()).outerHeight(az.outerHeight()).addClass("ui-effects-placeholder"); az.data(t + "placeholder", aB) } az.css({ position: aA, left: ay.left, top: ay.top }); return aB }, removePlaceholder: function(ay) { var aA = t + "placeholder" , az = ay.data(aA); if (az) { az.remove(); ay.removeData(aA) } }, cleanUp: function(ay) { ak.effects.restoreStyle(ay); ak.effects.removePlaceholder(ay) }, setTransition: function(az, aB, ay, aA) { aA = aA || {}; ak.each(aB, function(aD, aC) { var aE = az.cssUnit(aC); if (aE[0] > 0) { aA[aC] = aE[0] * ay + aE[1] } }); return aA } }); function aw(az, ay, aA, aB) { if (ak.isPlainObject(az)) { ay = az; az = az.effect } az = { effect: az }; if (ay == null) { ay = {} } if (ak.isFunction(ay)) { aB = ay; aA = null; ay = {} } if (typeof ay === "number" || ak.fx.speeds[ay]) { aB = aA; aA = ay; ay = {} } if (ak.isFunction(aA)) { aB = aA; aA = null } if (ay) { ak.extend(az, ay) } aA = aA || ay.duration; az.duration = ak.fx.off ? 0 : typeof aA === "number" ? aA : aA in ak.fx.speeds ? ak.fx.speeds[aA] : ak.fx.speeds._default; az.complete = aB || ay.complete; return az } function ax(ay) { if (!ay || typeof ay === "number" || ak.fx.speeds[ay]) { return true } if (typeof ay === "string" && !ak.effects.effect[ay]) { return true } if (ak.isFunction(ay)) { return true } if (typeof ay === "object" && !ay.effect) { return true } return false } ak.fn.extend({ effect: function() { var aG = aw.apply(this, arguments) , aF = ak.effects.effect[aG.effect] , aC = aF.mode , aE = aG.queue , aB = aE || "fx" , ay = aG.complete , aD = aG.mode , az = [] , aH = function(aK) { var aJ = ak(this) , aI = ak.effects.mode(aJ, aD) || aC; aJ.data(ap, true); az.push(aI); if (aC && (aI === "show" || (aI === aC && aI === "hide"))) { aJ.show() } if (!aC || aI !== "none") { ak.effects.saveStyle(aJ) } if (ak.isFunction(aK)) { aK() } }; if (ak.fx.off || !aF) { if (aD) { return this[aD](aG.duration, ay) } else { return this.each(function() { if (ay) { ay.call(this) } }) } } function aA(aK) { var aL = ak(this); function aJ() { aL.removeData(ap); ak.effects.cleanUp(aL); if (aG.mode === "hide") { aL.hide() } aI() } function aI() { if (ak.isFunction(ay)) { ay.call(aL[0]) } if (ak.isFunction(aK)) { aK() } } aG.mode = az.shift(); if (ak.uiBackCompat !== false && !aC) { if (aL.is(":hidden") ? aD === "hide" : aD === "show") { aL[aD](); aI() } else { aF.call(aL[0], aG, aI) } } else { if (aG.mode === "none") { aL[aD](); aI() } else { aF.call(aL[0], aG, aJ) } } } return aE === false ? this.each(aH).each(aA) : this.queue(aB, aH).queue(aB, aA) }, show: (function(ay) { return function(aA) { if (ax(aA)) { return ay.apply(this, arguments) } else { var az = aw.apply(this, arguments); az.mode = "show"; return this.effect.call(this, az) } } } )(ak.fn.show), hide: (function(ay) { return function(aA) { if (ax(aA)) { return ay.apply(this, arguments) } else { var az = aw.apply(this, arguments); az.mode = "hide"; return this.effect.call(this, az) } } } )(ak.fn.hide), toggle: (function(ay) { return function(aA) { if (ax(aA) || typeof aA === "boolean") { return ay.apply(this, arguments) } else { var az = aw.apply(this, arguments); az.mode = "toggle"; return this.effect.call(this, az) } } } )(ak.fn.toggle), cssUnit: function(ay) { var az = this.css(ay) , aA = []; ak.each(["em", "px", "%", "pt"], function(aB, aC) { if (az.indexOf(aC) > 0) { aA = [parseFloat(az), aC] } }); return aA }, cssClip: function(ay) { if (ay) { return this.css("clip", "rect(" + ay.top + "px " + ay.right + "px " + ay.bottom + "px " + ay.left + "px)") } return av(this.css("clip"), this) }, transfer: function(aJ, aB) { var aD = ak(this) , aF = ak(aJ.to) , aI = aF.css("position") === "fixed" , aE = ak("body") , aG = aI ? aE.scrollTop() : 0 , aH = aI ? aE.scrollLeft() : 0 , ay = aF.offset() , aA = { top: ay.top - aG, left: ay.left - aH, height: aF.innerHeight(), width: aF.innerWidth() } , aC = aD.offset() , az = ak("").appendTo("body").addClass(aJ.className).css({ top: aC.top - aG, left: aC.left - aH, height: aD.innerHeight(), width: aD.innerWidth(), position: aI ? "fixed" : "absolute" }).animate(aA, aJ.duration, aJ.easing, function() { az.remove(); if (ak.isFunction(aB)) { aB() } }) } }); function av(aD, aA) { var aC = aA.outerWidth() , aB = aA.outerHeight() , az = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/ , ay = az.exec(aD) || ["", 0, aC, aB, 0]; return { top: parseFloat(ay[1]) || 0, right: ay[2] === "auto" ? aC : parseFloat(ay[2]), bottom: ay[3] === "auto" ? aB : parseFloat(ay[3]), left: parseFloat(ay[4]) || 0 } } ak.fx.step.clip = function(ay) { if (!ay.clipInit) { ay.start = ak(ay.elem).cssClip(); if (typeof ay.end === "string") { ay.end = av(ay.end, ay.elem) } ay.clipInit = true } ak(ay.elem).cssClip({ top: ay.pos * (ay.end.top - ay.start.top) + ay.start.top, right: ay.pos * (ay.end.right - ay.start.right) + ay.start.right, bottom: ay.pos * (ay.end.bottom - ay.start.bottom) + ay.start.bottom, left: ay.pos * (ay.end.left - ay.start.left) + ay.start.left }) } } )(); (function() { var av = {}; ak.each(["Quad", "Cubic", "Quart", "Quint", "Expo"], function(ax, aw) { av[aw] = function(ay) { return Math.pow(ay, ax + 2) } }); ak.extend(av, { Sine: function(aw) { return 1 - Math.cos(aw * Math.PI / 2) }, Circ: function(aw) { return 1 - Math.sqrt(1 - aw * aw) }, Elastic: function(aw) { return aw === 0 || aw === 1 ? aw : -Math.pow(2, 8 * (aw - 1)) * Math.sin(((aw - 1) * 80 - 7.5) * Math.PI / 15) }, Back: function(aw) { return aw * aw * (3 * aw - 2) }, Bounce: function(ay) { var aw, ax = 4; while (ay < ((aw = Math.pow(2, --ax)) - 1) / 11) {} return 1 / Math.pow(4, 3 - ax) - 7.5625 * Math.pow((aw * 3 - 2) / 22 - ay, 2) } }); ak.each(av, function(ax, aw) { ak.easing["easeIn" + ax] = aw; ak.easing["easeOut" + ax] = function(ay) { return 1 - aw(1 - ay) } ; ak.easing["easeInOut" + ax] = function(ay) { return ay < 0.5 ? aw(ay * 2) / 2 : 1 - aw(ay * -2 + 2) / 2 } }) } )(); var H = ak.effects; /*! * jQuery UI Effects Blind 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var E = ak.effects.define("blind", "hide", function(ax, av) { var aA = { up: ["bottom", "top"], vertical: ["bottom", "top"], down: ["top", "bottom"], left: ["right", "left"], horizontal: ["right", "left"], right: ["left", "right"] } , ay = ak(this) , az = ax.direction || "up" , aC = ay.cssClip() , aw = { clip: ak.extend({}, aC) } , aB = ak.effects.createPlaceholder(ay); aw.clip[aA[az][0]] = aw.clip[aA[az][1]]; if (ax.mode === "show") { ay.cssClip(aw.clip); if (aB) { aB.css(ak.effects.clipToBox(aw)) } aw.clip = aC } if (aB) { aB.animate(ak.effects.clipToBox(aw), ax.duration, ax.easing) } ay.animate(aw, { queue: false, duration: ax.duration, easing: ax.easing, complete: av }) }); /*! * jQuery UI Effects Bounce 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var z = ak.effects.define("bounce", function(aw, aD) { var az, aH, aK, av = ak(this), aC = aw.mode, aB = aC === "hide", aL = aC === "show", aM = aw.direction || "up", ax = aw.distance, aA = aw.times || 5, aN = aA * 2 + (aL || aB ? 1 : 0), aJ = aw.duration / aN, aF = aw.easing, ay = (aM === "up" || aM === "down") ? "top" : "left", aE = (aM === "up" || aM === "left"), aI = 0, aG = av.queue().length; ak.effects.createPlaceholder(av); aK = av.css(ay); if (!ax) { ax = av[ay === "top" ? "outerHeight" : "outerWidth"]() / 3 } if (aL) { aH = { opacity: 1 }; aH[ay] = aK; av.css("opacity", 0).css(ay, aE ? -ax * 2 : ax * 2).animate(aH, aJ, aF) } if (aB) { ax = ax / Math.pow(2, aA - 1) } aH = {}; aH[ay] = aK; for (; aI < aA; aI++) { az = {}; az[ay] = (aE ? "-=" : "+=") + ax; av.animate(az, aJ, aF).animate(aH, aJ, aF); ax = aB ? ax * 2 : ax / 2 } if (aB) { az = { opacity: 0 }; az[ay] = (aE ? "-=" : "+=") + ax; av.animate(az, aJ, aF) } av.queue(aD); ak.effects.unshift(av, aG, aN + 1) }); /*! * jQuery UI Effects Clip 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var ae = ak.effects.define("clip", "hide", function(aD, az) { var aw, ax = {}, aA = ak(this), aC = aD.direction || "vertical", aB = aC === "both", av = aB || aC === "horizontal", ay = aB || aC === "vertical"; aw = aA.cssClip(); ax.clip = { top: ay ? (aw.bottom - aw.top) / 2 : aw.top, right: av ? (aw.right - aw.left) / 2 : aw.right, bottom: ay ? (aw.bottom - aw.top) / 2 : aw.bottom, left: av ? (aw.right - aw.left) / 2 : aw.left }; ak.effects.createPlaceholder(aA); if (aD.mode === "show") { aA.cssClip(ax.clip); ax.clip = aw } aA.animate(ax, { queue: false, duration: aD.duration, easing: aD.easing, complete: az }) }); /*! * jQuery UI Effects Drop 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var V = ak.effects.define("drop", "hide", function(aF, ay) { var av, az = ak(this), aB = aF.mode, aD = aB === "show", aC = aF.direction || "left", aw = (aC === "up" || aC === "down") ? "top" : "left", aE = (aC === "up" || aC === "left") ? "-=" : "+=", aA = (aE === "+=") ? "-=" : "+=", ax = { opacity: 0 }; ak.effects.createPlaceholder(az); av = aF.distance || az[aw === "top" ? "outerHeight" : "outerWidth"](true) / 2; ax[aw] = aE + av; if (aD) { az.css(ax); ax[aw] = aA + av; ax.opacity = 1 } az.animate(ax, { queue: false, duration: aF.duration, easing: aF.easing, complete: ay }) }); /*! * jQuery UI Effects Explode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var at = ak.effects.define("explode", "hide", function(aw, aI) { var aL, aK, ay, aG, aF, aD, aC = aw.pieces ? Math.round(Math.sqrt(aw.pieces)) : 3, ax = aC, av = ak(this), aE = aw.mode, aM = aE === "show", aA = av.show().css("visibility", "hidden").offset(), aJ = Math.ceil(av.outerWidth() / ax), aH = Math.ceil(av.outerHeight() / aC), aB = []; function aN() { aB.push(this); if (aB.length === aC * ax) { az() } } for (aL = 0; aL < aC; aL++) { aG = aA.top + aL * aH; aD = aL - (aC - 1) / 2; for (aK = 0; aK < ax; aK++) { ay = aA.left + aK * aJ; aF = aK - (ax - 1) / 2; av.clone().appendTo("body").wrap("").css({ position: "absolute", visibility: "visible", left: -aK * aJ, top: -aL * aH }).parent().addClass("ui-effects-explode").css({ position: "absolute", overflow: "hidden", width: aJ, height: aH, left: ay + (aM ? aF * aJ : 0), top: aG + (aM ? aD * aH : 0), opacity: aM ? 0 : 1 }).animate({ left: ay + (aM ? 0 : aF * aJ), top: aG + (aM ? 0 : aD * aH), opacity: aM ? 1 : 0 }, aw.duration || 500, aw.easing, aN) } } function az() { av.css({ visibility: "visible" }); ak(aB).remove(); aI() } }); /*! * jQuery UI Effects Fade 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var au = ak.effects.define("fade", "toggle", function(ax, aw) { var av = ax.mode === "show"; ak(this).css("opacity", av ? 0 : 1).animate({ opacity: av ? 1 : 0 }, { queue: false, duration: ax.duration, easing: ax.easing, complete: aw }) }); /*! * jQuery UI Effects Fold 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var u = ak.effects.define("fold", "hide", function(aL, aA) { var aB = ak(this) , aC = aL.mode , aI = aC === "show" , aD = aC === "hide" , aK = aL.size || 15 , aE = /([0-9]+)%/.exec(aK) , aJ = !!aL.horizFirst , ay = aJ ? ["right", "bottom"] : ["bottom", "right"] , az = aL.duration / 2 , aH = ak.effects.createPlaceholder(aB) , aw = aB.cssClip() , aG = { clip: ak.extend({}, aw) } , aF = { clip: ak.extend({}, aw) } , av = [aw[ay[0]], aw[ay[1]]] , ax = aB.queue().length; if (aE) { aK = parseInt(aE[1], 10) / 100 * av[aD ? 0 : 1] } aG.clip[ay[0]] = aK; aF.clip[ay[0]] = aK; aF.clip[ay[1]] = 0; if (aI) { aB.cssClip(aF.clip); if (aH) { aH.css(ak.effects.clipToBox(aF)) } aF.clip = aw } aB.queue(function(aM) { if (aH) { aH.animate(ak.effects.clipToBox(aG), az, aL.easing).animate(ak.effects.clipToBox(aF), az, aL.easing) } aM() }).animate(aG, az, aL.easing).animate(aF, az, aL.easing).queue(aA); ak.effects.unshift(aB, ax, 4) }); /*! * jQuery UI Effects Highlight 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var J = ak.effects.define("highlight", "show", function(aw, av) { var ax = ak(this) , ay = { backgroundColor: ax.css("backgroundColor") }; if (aw.mode === "hide") { ay.opacity = 0 } ak.effects.saveStyle(ax); ax.css({ backgroundImage: "none", backgroundColor: aw.color || "#ffff99" }).animate(ay, { queue: false, duration: aw.duration, easing: aw.easing, complete: av }) }); /*! * jQuery UI Effects Size 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var S = ak.effects.define("size", function(ay, aE) { var aC, aD, aI, av = ak(this), aA = ["fontSize"], aJ = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"], ax = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"], aB = ay.mode, aH = aB !== "effect", aM = ay.scale || "both", aK = ay.origin || ["middle", "center"], aL = av.css("position"), az = av.position(), aF = ak.effects.scaledDimensions(av), aG = ay.from || aF, aw = ay.to || ak.effects.scaledDimensions(av, 0); ak.effects.createPlaceholder(av); if (aB === "show") { aI = aG; aG = aw; aw = aI } aD = { from: { y: aG.height / aF.height, x: aG.width / aF.width }, to: { y: aw.height / aF.height, x: aw.width / aF.width } }; if (aM === "box" || aM === "both") { if (aD.from.y !== aD.to.y) { aG = ak.effects.setTransition(av, aJ, aD.from.y, aG); aw = ak.effects.setTransition(av, aJ, aD.to.y, aw) } if (aD.from.x !== aD.to.x) { aG = ak.effects.setTransition(av, ax, aD.from.x, aG); aw = ak.effects.setTransition(av, ax, aD.to.x, aw) } } if (aM === "content" || aM === "both") { if (aD.from.y !== aD.to.y) { aG = ak.effects.setTransition(av, aA, aD.from.y, aG); aw = ak.effects.setTransition(av, aA, aD.to.y, aw) } } if (aK) { aC = ak.effects.getBaseline(aK, aF); aG.top = (aF.outerHeight - aG.outerHeight) * aC.y + az.top; aG.left = (aF.outerWidth - aG.outerWidth) * aC.x + az.left; aw.top = (aF.outerHeight - aw.outerHeight) * aC.y + az.top; aw.left = (aF.outerWidth - aw.outerWidth) * aC.x + az.left } av.css(aG); if (aM === "content" || aM === "both") { aJ = aJ.concat(["marginTop", "marginBottom"]).concat(aA); ax = ax.concat(["marginLeft", "marginRight"]); av.find("*[width]").each(function() { var aQ = ak(this) , aN = ak.effects.scaledDimensions(aQ) , aP = { height: aN.height * aD.from.y, width: aN.width * aD.from.x, outerHeight: aN.outerHeight * aD.from.y, outerWidth: aN.outerWidth * aD.from.x } , aO = { height: aN.height * aD.to.y, width: aN.width * aD.to.x, outerHeight: aN.height * aD.to.y, outerWidth: aN.width * aD.to.x }; if (aD.from.y !== aD.to.y) { aP = ak.effects.setTransition(aQ, aJ, aD.from.y, aP); aO = ak.effects.setTransition(aQ, aJ, aD.to.y, aO) } if (aD.from.x !== aD.to.x) { aP = ak.effects.setTransition(aQ, ax, aD.from.x, aP); aO = ak.effects.setTransition(aQ, ax, aD.to.x, aO) } if (aH) { ak.effects.saveStyle(aQ) } aQ.css(aP); aQ.animate(aO, ay.duration, ay.easing, function() { if (aH) { ak.effects.restoreStyle(aQ) } }) }) } av.animate(aw, { queue: false, duration: ay.duration, easing: ay.easing, complete: function() { var aN = av.offset(); if (aw.opacity === 0) { av.css("opacity", aG.opacity) } if (!aH) { av.css("position", aL === "static" ? "relative" : aL).offset(aN); ak.effects.saveStyle(av) } aE() } }) }); /*! * jQuery UI Effects Scale 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var O = ak.effects.define("scale", function(aw, av) { var ax = ak(this) , aA = aw.mode , ay = parseInt(aw.percent, 10) || (parseInt(aw.percent, 10) === 0 ? 0 : (aA !== "effect" ? 0 : 100)) , az = ak.extend(true, { from: ak.effects.scaledDimensions(ax), to: ak.effects.scaledDimensions(ax, ay, aw.direction || "both"), origin: aw.origin || ["middle", "center"] }, aw); if (aw.fade) { az.from.opacity = 1; az.to.opacity = 0 } ak.effects.effect.size.call(this, az, av) }); /*! * jQuery UI Effects Puff 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var A = ak.effects.define("puff", "hide", function(aw, av) { var ax = ak.extend(true, {}, aw, { fade: true, percent: parseInt(aw.percent, 10) || 150 }); ak.effects.effect.scale.call(this, ax, av) }); /*! * jQuery UI Effects Pulsate 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var x = ak.effects.define("pulsate", "show", function(aG, ax) { var az = ak(this) , aA = aG.mode , aE = aA === "show" , aB = aA === "hide" , aF = aE || aB , aC = ((aG.times || 5) * 2) + (aF ? 1 : 0) , aw = aG.duration / aC , aD = 0 , ay = 1 , av = az.queue().length; if (aE || !az.is(":visible")) { az.css("opacity", 0).show(); aD = 1 } for (; ay < aC; ay++) { az.animate({ opacity: aD }, aw, aG.easing); aD = 1 - aD } az.animate({ opacity: aD }, aw, aG.easing); az.queue(ax); ak.effects.unshift(az, av, aC + 1) }); /*! * jQuery UI Effects Shake 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var aj = ak.effects.define("shake", function(aJ, aC) { var aD = 1 , aE = ak(this) , aG = aJ.direction || "left" , av = aJ.distance || 20 , aw = aJ.times || 3 , aH = aw * 2 + 1 , aA = Math.round(aJ.duration / aH) , az = (aG === "up" || aG === "down") ? "top" : "left" , ax = (aG === "up" || aG === "left") , aB = {} , aI = {} , aF = {} , ay = aE.queue().length; ak.effects.createPlaceholder(aE); aB[az] = (ax ? "-=" : "+=") + av; aI[az] = (ax ? "+=" : "-=") + av * 2; aF[az] = (ax ? "-=" : "+=") + av * 2; aE.animate(aB, aA, aJ.easing); for (; aD < aw; aD++) { aE.animate(aI, aA, aJ.easing).animate(aF, aA, aJ.easing) } aE.animate(aI, aA, aJ.easing).animate(aB, aA / 2, aJ.easing).queue(aC); ak.effects.unshift(aE, ay, aH + 1) }); /*! * jQuery UI Effects Slide 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var ai = ak.effects.define("slide", "show", function(aG, aC) { var az, aw, aD = ak(this), ax = { up: ["bottom", "top"], down: ["top", "bottom"], left: ["right", "left"], right: ["left", "right"] }, aE = aG.mode, aF = aG.direction || "left", aA = (aF === "up" || aF === "down") ? "top" : "left", ay = (aF === "up" || aF === "left"), av = aG.distance || aD[aA === "top" ? "outerHeight" : "outerWidth"](true), aB = {}; ak.effects.createPlaceholder(aD); az = aD.cssClip(); aw = aD.position()[aA]; aB[aA] = (ay ? -1 : 1) * av + aw; aB.clip = aD.cssClip(); aB.clip[ax[aF][1]] = aB.clip[ax[aF][0]]; if (aE === "show") { aD.cssClip(aB.clip); aD.css(aA, aB[aA]); aB.clip = az; aB[aA] = aw } aD.animate(aB, { queue: false, duration: aG.duration, easing: aG.easing, complete: aC }) }); /*! * jQuery UI Effects Transfer 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var H; if (ak.uiBackCompat !== false) { H = ak.effects.define("transfer", function(aw, av) { ak(this).transfer(aw, av) }) } var M = H; /*! * jQuery UI Focusable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ ak.ui.focusable = function(ay, aw) { var aB, az, ax, aA, av, aC = ay.nodeName.toLowerCase(); if ("area" === aC) { aB = ay.parentNode; az = aB.name; if (!ay.href || !az || aB.nodeName.toLowerCase() !== "map") { return false } ax = ak("img[usemap='#" + az + "']"); return ax.length > 0 && ax.is(":visible") } if (/^(input|select|textarea|button|object)$/.test(aC)) { aA = !ay.disabled; if (aA) { av = ak(ay).closest("fieldset")[0]; if (av) { aA = !av.disabled } } } else { if ("a" === aC) { aA = ay.href || aw } else { aA = aw } } return aA && ak(ay).is(":visible") && o(ak(ay)) } ; function o(aw) { var av = aw.css("visibility"); while (av === "inherit") { aw = aw.parent(); av = aw.css("visibility") } return av !== "hidden" } ak.extend(ak.expr[":"], { focusable: function(av) { return ak.ui.focusable(av, ak.attr(av, "tabindex") != null) } }); var ar = ak.ui.focusable; var i = ak.fn.form = function() { return typeof this[0].form === "string" ? this.closest("form") : ak(this[0].form) } ; /*! * jQuery UI Form Reset Mixin 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var N = ak.ui.formResetMixin = { _formResetHandler: function() { var av = ak(this); setTimeout(function() { var aw = av.data("ui-form-reset-instances"); ak.each(aw, function() { this.refresh() }) }) }, _bindFormResetHandler: function() { this.form = this.element.form(); if (!this.form.length) { return } var av = this.form.data("ui-form-reset-instances") || []; if (!av.length) { this.form.on("reset.ui-form-reset", this._formResetHandler) } av.push(this); this.form.data("ui-form-reset-instances", av) }, _unbindFormResetHandler: function() { if (!this.form.length) { return } var av = this.form.data("ui-form-reset-instances"); av.splice(ak.inArray(this, av), 1); if (av.length) { this.form.data("ui-form-reset-instances", av) } else { this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset") } } }; /*! * jQuery UI Support for jQuery core 1.7.x 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * */ if (ak.fn.jquery.substring(0, 3) === "1.7") { ak.each(["Width", "Height"], function(ax, av) { var aw = av === "Width" ? ["Left", "Right"] : ["Top", "Bottom"] , ay = av.toLowerCase() , aA = { innerWidth: ak.fn.innerWidth, innerHeight: ak.fn.innerHeight, outerWidth: ak.fn.outerWidth, outerHeight: ak.fn.outerHeight }; function az(aD, aC, aB, aE) { ak.each(aw, function() { aC -= parseFloat(ak.css(aD, "padding" + this)) || 0; if (aB) { aC -= parseFloat(ak.css(aD, "border" + this + "Width")) || 0 } if (aE) { aC -= parseFloat(ak.css(aD, "margin" + this)) || 0 } }); return aC } ak.fn["inner" + av] = function(aB) { if (aB === undefined) { return aA["inner" + av].call(this) } return this.each(function() { ak(this).css(ay, az(this, aB) + "px") }) } ; ak.fn["outer" + av] = function(aB, aC) { if (typeof aB !== "number") { return aA["outer" + av].call(this, aB) } return this.each(function() { ak(this).css(ay, az(this, aB, true, aC) + "px") }) } }); ak.fn.addBack = function(av) { return this.add(av == null ? this.prevObject : this.prevObject.filter(av)) } } /*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var n = ak.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 }; var h = ak.ui.escapeSelector = (function() { var av = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g; return function(aw) { return aw.replace(av, "\\$1") } } )(); /*! * jQuery UI Labels 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var am = ak.fn.labels = function() { var aw, av, az, ay, ax; if (this[0].labels && this[0].labels.length) { return this.pushStack(this[0].labels) } ay = this.eq(0).parents("label"); az = this.attr("id"); if (az) { aw = this.eq(0).parents().last(); ax = aw.add(aw.length ? aw.siblings() : this.siblings()); av = "label[for='" + ak.ui.escapeSelector(az) + "']"; ay = ay.add(ax.find(av).addBack(av)) } return this.pushStack(ay) } ; /*! * jQuery UI Scroll Parent 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var Z = ak.fn.scrollParent = function(ax) { var aw = this.css("position") , av = aw === "absolute" , ay = ax ? /(auto|scroll|hidden)/ : /(auto|scroll)/ , az = this.parents().filter(function() { var aA = ak(this); if (av && aA.css("position") === "static") { return false } return ay.test(aA.css("overflow") + aA.css("overflow-y") + aA.css("overflow-x")) }).eq(0); return aw === "fixed" || !az.length ? ak(this[0].ownerDocument || document) : az } ; /*! * jQuery UI Tabbable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var f = ak.extend(ak.expr[":"], { tabbable: function(ax) { var aw = ak.attr(ax, "tabindex") , av = aw != null; return (!av || aw >= 0) && ak.ui.focusable(ax, av) } }); /*! * jQuery UI Unique ID 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var aa = ak.fn.extend({ uniqueId: (function() { var av = 0; return function() { return this.each(function() { if (!this.id) { this.id = "ui-id-" + (++av) } }) } } )(), removeUniqueId: function() { return this.each(function() { if (/^ui-id-\d+$/.test(this.id)) { ak(this).removeAttr("id") } }) } }); /*! * jQuery UI Accordion 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var d = ak.widget("ui.accordion", { version: "1.12.1", options: { active: 0, animate: {}, classes: { "ui-accordion-header": "ui-corner-top", "ui-accordion-header-collapsed": "ui-corner-all", "ui-accordion-content": "ui-corner-bottom" }, collapsible: false, event: "click", header: "> li > :first-child, > :not(li):even", heightStyle: "auto", icons: { activeHeader: "ui-icon-triangle-1-s", header: "ui-icon-triangle-1-e" }, activate: null, beforeActivate: null }, hideProps: { borderTopWidth: "hide", borderBottomWidth: "hide", paddingTop: "hide", paddingBottom: "hide", height: "hide" }, showProps: { borderTopWidth: "show", borderBottomWidth: "show", paddingTop: "show", paddingBottom: "show", height: "show" }, _create: function() { var av = this.options; this.prevShow = this.prevHide = ak(); this._addClass("ui-accordion", "ui-widget ui-helper-reset"); this.element.attr("role", "tablist"); if (!av.collapsible && (av.active === false || av.active == null)) { av.active = 0 } this._processPanels(); if (av.active < 0) { av.active += this.headers.length } this._refresh() }, _getCreateEventData: function() { return { header: this.active, panel: !this.active.length ? ak() : this.active.next() } }, _createIcons: function() { var ax, aw, av = this.options.icons; if (av) { ax = ak(""); this._addClass(ax, "ui-accordion-header-icon", "ui-icon " + av.header); ax.prependTo(this.headers); aw = this.active.children(".ui-accordion-header-icon"); this._removeClass(aw, av.header)._addClass(aw, null, av.activeHeader)._addClass(this.headers, "ui-accordion-icons") } }, _destroyIcons: function() { this._removeClass(this.headers, "ui-accordion-icons"); this.headers.children(".ui-accordion-header-icon").remove() }, _destroy: function() { var av; this.element.removeAttr("role"); this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(); this._destroyIcons(); av = this.headers.next().css("display", "").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(); if (this.options.heightStyle !== "content") { av.css("height", "") } }, _setOption: function(av, aw) { if (av === "active") { this._activate(aw); return } if (av === "event") { if (this.options.event) { this._off(this.headers, this.options.event) } this._setupEvents(aw) } this._super(av, aw); if (av === "collapsible" && !aw && this.options.active === false) { this._activate(0) } if (av === "icons") { this._destroyIcons(); if (aw) { this._createIcons() } } }, _setOptionDisabled: function(av) { this._super(av); this.element.attr("aria-disabled", av); this._toggleClass(null, "ui-state-disabled", !!av); this._toggleClass(this.headers.add(this.headers.next()), null, "ui-state-disabled", !!av) }, _keydown: function(ay) { if (ay.altKey || ay.ctrlKey) { return } var az = ak.ui.keyCode , ax = this.headers.length , av = this.headers.index(ay.target) , aw = false; switch (ay.keyCode) { case az.RIGHT: case az.DOWN: aw = this.headers[(av + 1) % ax]; break; case az.LEFT: case az.UP: aw = this.headers[(av - 1 + ax) % ax]; break; case az.SPACE: case az.ENTER: this._eventHandler(ay); break; case az.HOME: aw = this.headers[0]; break; case az.END: aw = this.headers[ax - 1]; break } if (aw) { ak(ay.target).attr("tabIndex", -1); ak(aw).attr("tabIndex", 0); ak(aw).trigger("focus"); ay.preventDefault() } }, _panelKeyDown: function(av) { if (av.keyCode === ak.ui.keyCode.UP && av.ctrlKey) { ak(av.currentTarget).prev().trigger("focus") } }, refresh: function() { var av = this.options; this._processPanels(); if ((av.active === false && av.collapsible === true) || !this.headers.length) { av.active = false; this.active = ak() } else { if (av.active === false) { this._activate(0) } else { if (this.active.length && !ak.contains(this.element[0], this.active[0])) { if (this.headers.length === this.headers.find(".ui-state-disabled").length) { av.active = false; this.active = ak() } else { this._activate(Math.max(0, av.active - 1)) } } else { av.active = this.headers.index(this.active) } } } this._destroyIcons(); this._refresh() }, _processPanels: function() { var aw = this.headers , av = this.panels; this.headers = this.element.find(this.options.header); this._addClass(this.headers, "ui-accordion-header ui-accordion-header-collapsed", "ui-state-default"); this.panels = this.headers.next().filter(":not(.ui-accordion-content-active)").hide(); this._addClass(this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content"); if (av) { this._off(aw.not(this.headers)); this._off(av.not(this.panels)) } }, _refresh: function() { var ay, aw = this.options, av = aw.heightStyle, ax = this.element.parent(); this.active = this._findActive(aw.active); this._addClass(this.active, "ui-accordion-header-active", "ui-state-active")._removeClass(this.active, "ui-accordion-header-collapsed"); this._addClass(this.active.next(), "ui-accordion-content-active"); this.active.next().show(); this.headers.attr("role", "tab").each(function() { var aC = ak(this) , aB = aC.uniqueId().attr("id") , az = aC.next() , aA = az.uniqueId().attr("id"); aC.attr("aria-controls", aA); az.attr("aria-labelledby", aB) }).next().attr("role", "tabpanel"); this.headers.not(this.active).attr({ "aria-selected": "false", "aria-expanded": "false", tabIndex: -1 }).next().attr({ "aria-hidden": "true" }).hide(); if (!this.active.length) { this.headers.eq(0).attr("tabIndex", 0) } else { this.active.attr({ "aria-selected": "true", "aria-expanded": "true", tabIndex: 0 }).next().attr({ "aria-hidden": "false" }) } this._createIcons(); this._setupEvents(aw.event); if (av === "fill") { ay = ax.height(); this.element.siblings(":visible").each(function() { var aA = ak(this) , az = aA.css("position"); if (az === "absolute" || az === "fixed") { return } ay -= aA.outerHeight(true) }); this.headers.each(function() { ay -= ak(this).outerHeight(true) }); this.headers.next().each(function() { ak(this).height(Math.max(0, ay - ak(this).innerHeight() + ak(this).height())) }).css("overflow", "auto") } else { if (av === "auto") { ay = 0; this.headers.next().each(function() { var az = ak(this).is(":visible"); if (!az) { ak(this).show() } ay = Math.max(ay, ak(this).css("height", "").height()); if (!az) { ak(this).hide() } }).height(ay) } } }, _activate: function(av) { var aw = this._findActive(av)[0]; if (aw === this.active[0]) { return } aw = aw || this.active[0]; this._eventHandler({ target: aw, currentTarget: aw, preventDefault: ak.noop }) }, _findActive: function(av) { return typeof av === "number" ? this.headers.eq(av) : ak() }, _setupEvents: function(aw) { var av = { keydown: "_keydown" }; if (aw) { ak.each(aw.split(" "), function(ay, ax) { av[ax] = "_eventHandler" }) } this._off(this.headers.add(this.headers.next())); this._on(this.headers, av); this._on(this.headers.next(), { keydown: "_panelKeyDown" }); this._hoverable(this.headers); this._focusable(this.headers) }, _eventHandler: function(aw) { var ax, ay, aF = this.options, aA = this.active, aB = ak(aw.currentTarget), aD = aB[0] === aA[0], az = aD && aF.collapsible, av = az ? ak() : aB.next(), aC = aA.next(), aE = { oldHeader: aA, oldPanel: aC, newHeader: az ? ak() : aB, newPanel: av }; aw.preventDefault(); if ((aD && !aF.collapsible) || (this._trigger("beforeActivate", aw, aE) === false)) { return } aF.active = az ? false : this.headers.index(aB); this.active = aD ? ak() : aB; this._toggle(aE); this._removeClass(aA, "ui-accordion-header-active", "ui-state-active"); if (aF.icons) { ax = aA.children(".ui-accordion-header-icon"); this._removeClass(ax, null, aF.icons.activeHeader)._addClass(ax, null, aF.icons.header) } if (!aD) { this._removeClass(aB, "ui-accordion-header-collapsed")._addClass(aB, "ui-accordion-header-active", "ui-state-active"); if (aF.icons) { ay = aB.children(".ui-accordion-header-icon"); this._removeClass(ay, null, aF.icons.header)._addClass(ay, null, aF.icons.activeHeader) } this._addClass(aB.next(), "ui-accordion-content-active") } }, _toggle: function(ax) { var av = ax.newPanel , aw = this.prevShow.length ? this.prevShow : ax.oldPanel; this.prevShow.add(this.prevHide).stop(true, true); this.prevShow = av; this.prevHide = aw; if (this.options.animate) { this._animate(av, aw, ax) } else { aw.hide(); av.show(); this._toggleComplete(ax) } aw.attr({ "aria-hidden": "true" }); aw.prev().attr({ "aria-selected": "false", "aria-expanded": "false" }); if (av.length && aw.length) { aw.prev().attr({ tabIndex: -1, "aria-expanded": "false" }) } else { if (av.length) { this.headers.filter(function() { return parseInt(ak(this).attr("tabIndex"), 10) === 0 }).attr("tabIndex", -1) } } av.attr("aria-hidden", "false").prev().attr({ "aria-selected": "true", "aria-expanded": "true", tabIndex: 0 }) }, _animate: function(av, aE, aA) { var aD, aC, az, aB = this, aF = 0, ay = av.css("box-sizing"), aG = av.length && (!aE.length || (av.index() < aE.index())), ax = this.options.animate || {}, aH = aG && ax.down || ax, aw = function() { aB._toggleComplete(aA) }; if (typeof aH === "number") { az = aH } if (typeof aH === "string") { aC = aH } aC = aC || aH.easing || ax.easing; az = az || aH.duration || ax.duration; if (!aE.length) { return av.animate(this.showProps, az, aC, aw) } if (!av.length) { return aE.animate(this.hideProps, az, aC, aw) } aD = av.show().outerHeight(); aE.animate(this.hideProps, { duration: az, easing: aC, step: function(aI, aJ) { aJ.now = Math.round(aI) } }); av.hide().animate(this.showProps, { duration: az, easing: aC, complete: aw, step: function(aI, aJ) { aJ.now = Math.round(aI); if (aJ.prop !== "height") { if (ay === "content-box") { aF += aJ.now } } else { if (aB.options.heightStyle !== "content") { aJ.now = Math.round(aD - aE.outerHeight() - aF); aF = 0 } } } }) }, _toggleComplete: function(ax) { var av = ax.oldPanel , aw = av.prev(); this._removeClass(av, "ui-accordion-content-active"); this._removeClass(aw, "ui-accordion-header-active")._addClass(aw, "ui-accordion-header-collapsed"); if (av.length) { av.parent()[0].className = av.parent()[0].className } this._trigger("activate", null, ax) } }); var j = ak.ui.safeActiveElement = function(av) { var ax; try { ax = av.activeElement } catch (aw) { ax = av.body } if (!ax) { ax = av.body } if (!ax.nodeName) { ax = av.body } return ax } ; /*! * jQuery UI Menu 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ var p = ak.widget("ui.menu", { version: "1.12.1", defaultElement: "