')\r\n .addClass('text-content')\r\n .attr('title', obj.title);\r\n\r\n var moduleConfig = {\r\n name: obj.href, // template name\r\n position: newSlideContent,\r\n functions: {\r\n after: function(){\r\n // element inserted -> load complete\r\n callback({\r\n type: 'complete',\r\n target: newSlideContent[0]\r\n });\r\n }\r\n }\r\n };\r\n\r\n // render HTML file (template)\r\n var moduleData = {\r\n id: config.headHeaderMapId,\r\n bgId: config.headMapBgId,\r\n neocomId: config.mapNeocomId,\r\n browserId: config.mapBrowserId,\r\n mapBgImageId: config.mapBgImageId\r\n };\r\n\r\n Render.showModule(moduleConfig, moduleData);\r\n\r\n return newSlideContent[0];\r\n };\r\n\r\n // initialize carousel ------------------------------------------\r\n var carousel = Gallery([\r\n {\r\n title: '',\r\n href: 'ui/map',\r\n type: 'text/html'\r\n },\r\n {\r\n href: 'public/img/landing/responsive.jpg',\r\n title: 'Responsive layout',\r\n type: 'image/jpg',\r\n thumbnail: ''\r\n },\r\n {\r\n href: 'public/img/landing/pathfinder_1.jpg',\r\n title: 'Map view',\r\n type: 'image/jpg',\r\n thumbnail: ''\r\n },\r\n {\r\n href: 'public/img/landing/pathfinder_2.jpg',\r\n title: 'System information',\r\n type: 'image/jpg',\r\n thumbnail: ''\r\n }\r\n ], {\r\n container: '#' + config.galleryCarouselId,\r\n carousel: true,\r\n startSlideshow: false,\r\n titleProperty: 'title',\r\n transitionSpeed: 600,\r\n slideshowInterval: 5000,\r\n onopened: function () {\r\n // Callback function executed when the Gallery has been initialized\r\n // and the initialization transition has been completed.\r\n // -> show \"demo\" map\r\n\r\n $('#' + config.headHeaderMapId).drawDemoMap(function(){\r\n\r\n // zoom map SVGs\r\n $('#' + config.headHeaderMapId + ' svg').velocity({\r\n scaleX: 0.66,\r\n scaleY: 0.66\r\n }, {\r\n duration: 360\r\n });\r\n\r\n // position map container\r\n $('#' + config.headHeaderMapId).velocity({\r\n marginTop: '130px',\r\n marginLeft: '-50px'\r\n }, {\r\n duration: 360,\r\n complete: function(){\r\n // show browser\r\n $('#' + config.mapBrowserId).velocity('transition.slideUpBigIn', {\r\n duration: 360,\r\n complete: function(){\r\n // show neocom\r\n $('#' + config.mapNeocomId).velocity('transition.slideLeftIn', {\r\n duration: 180\r\n });\r\n\r\n // show background\r\n $('#' + config.mapBgImageId).velocity('transition.shrinkIn', {\r\n duration: 360\r\n });\r\n\r\n // when map is shown -> start carousel looping\r\n carousel.play();\r\n }\r\n });\r\n }\r\n });\r\n });\r\n\r\n }\r\n });\r\n };\r\n\r\n /**\r\n * init image gallery\r\n */\r\n var initGallery = function(){\r\n\r\n requirejs(['blueImpGalleryBootstrap'], function() {\r\n // thumb links\r\n var thumbLinks = $('a[data-gallery=\"#pf-gallery\"]');\r\n\r\n var borderless = false;\r\n\r\n var galleryElement = $('#' + config.galleryId);\r\n galleryElement.data('useBootstrapModal', !borderless);\r\n galleryElement.toggleClass('blueimp-gallery-controls', borderless);\r\n\r\n // init gallery on click\r\n thumbLinks.on('click', function(e){\r\n e.preventDefault();\r\n\r\n e = e || window.event;\r\n var target = e.target || e.srcElement;\r\n var link = target.src ? target.parentNode : target;\r\n\r\n var options = {\r\n index: link,\r\n event: e,\r\n container: '#' + config.galleryId,\r\n titleProperty: 'description'\r\n };\r\n\r\n Gallery(thumbLinks, options);\r\n });\r\n });\r\n };\r\n\r\n\r\n /**\r\n * init scrollspy for navigation bar\r\n */\r\n var initScrollspy = function(){\r\n // init scrollspy\r\n\r\n // show elements that are currently in the viewport\r\n var showVisibleElements = function(){\r\n // find all elements that should be animated\r\n var visibleElements = $('.' + config.animateElementClass).isInViewport();\r\n\r\n $(visibleElements).removeClass( config.animateElementClass );\r\n\r\n $(visibleElements).velocity('transition.flipXIn', {\r\n duration: 600,\r\n stagger: 60,\r\n delay: 500,\r\n complete: function(element){\r\n $(element).find('.fade').addClass('in');\r\n },\r\n visibility: 'visible'\r\n });\r\n };\r\n\r\n $( window ).scroll(function() {\r\n // check for new visible elements\r\n showVisibleElements();\r\n });\r\n\r\n // initial check for visible elements\r\n showVisibleElements();\r\n\r\n // event listener for navigation links\r\n $('.page-scroll').on('click', function(){\r\n // get element to scroll\r\n var anchorTag = $(this).attr('data-anchor');\r\n\r\n // scroll to container\r\n $(anchorTag).velocity('scroll', {\r\n duration: 300,\r\n easing: 'swing'\r\n });\r\n });\r\n };\r\n\r\n /**\r\n * main init landing page\r\n */\r\n $(function(){\r\n\r\n // show app information in browser console\r\n Util.showVersionInfo();\r\n\r\n // show log off message\r\n var isLogOut = location.search.split('logout')[1];\r\n if(isLogOut !== undefined){\r\n // show logout dialog\r\n var options = {\r\n buttons: {\r\n close: {\r\n label: 'close',\r\n className: ['btn-default'].join(' ')\r\n }\r\n },\r\n content: {\r\n icon: 'fa-sign-out',\r\n class: 'txt-color-warning',\r\n title: 'Logout',\r\n headline: 'Logout',\r\n text: [\r\n 'For security reasons, you were logged out automatically',\r\n 'Please log in again'\r\n ]\r\n }\r\n };\r\n\r\n $.fn.showNotificationDialog(options);\r\n\r\n // change url (remove logout parameter)\r\n if (history.pushState) {\r\n history.pushState({}, '', location.protocol + '//' + location.host + location.pathname);\r\n }\r\n }\r\n\r\n // init scrollspy\r\n initScrollspy();\r\n\r\n // hide splash loading animation\r\n $('.' + config.splashOverlayClass).hideSplashOverlay();\r\n\r\n // init carousel\r\n initCarousel();\r\n\r\n // init gallery\r\n initGallery();\r\n\r\n // show logo -> hide animation in IGB\r\n if( !CCP.isInGameBrowser() ){\r\n $('#' + config.logoContainerId).drawLogo(function(){\r\n\r\n // init header animation\r\n $('#' + config.headerContainerId).initHeader(function(){\r\n\r\n });\r\n }, false);\r\n }\r\n\r\n\r\n setPageObserver();\r\n\r\n });\r\n\r\n\r\n});\n","/**\r\n * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.\r\n * Available via the MIT or new BSD license.\r\n * see: http://github.com/requirejs/text for details\r\n */\r\n/*jslint regexp: true */\r\n/*global require, XMLHttpRequest, ActiveXObject,\r\n define, window, process, Packages,\r\n java, location, Components, FileUtils */\r\n\r\ndefine('text',['module'], function (module) {\r\n 'use strict';\r\n\r\n var text, fs, Cc, Ci, xpcIsWindows,\r\n progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],\r\n xmlRegExp = /^\\s*<\\?xml(\\s)+version=[\\'\\\"](\\d)*.(\\d)*[\\'\\\"](\\s)*\\?>/im,\r\n bodyRegExp = /]*>\\s*([\\s\\S]+)\\s*<\\/body>/im,\r\n hasLocation = typeof location !== 'undefined' && location.href,\r\n defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\\:/, ''),\r\n defaultHostName = hasLocation && location.hostname,\r\n defaultPort = hasLocation && (location.port || undefined),\r\n buildMap = {},\r\n masterConfig = (module.config && module.config()) || {};\r\n\r\n text = {\r\n version: '2.0.12',\r\n\r\n strip: function (content) {\r\n //Strips declarations so that external SVG and XML\r\n //documents can be added to a document without worry. Also, if the string\r\n //is an HTML document, only the part inside the body tag is returned.\r\n if (content) {\r\n content = content.replace(xmlRegExp, \"\");\r\n var matches = content.match(bodyRegExp);\r\n if (matches) {\r\n content = matches[1];\r\n }\r\n } else {\r\n content = \"\";\r\n }\r\n return content;\r\n },\r\n\r\n jsEscape: function (content) {\r\n return content.replace(/(['\\\\])/g, '\\\\$1')\r\n .replace(/[\\f]/g, \"\\\\f\")\r\n .replace(/[\\b]/g, \"\\\\b\")\r\n .replace(/[\\n]/g, \"\\\\n\")\r\n .replace(/[\\t]/g, \"\\\\t\")\r\n .replace(/[\\r]/g, \"\\\\r\")\r\n .replace(/[\\u2028]/g, \"\\\\u2028\")\r\n .replace(/[\\u2029]/g, \"\\\\u2029\");\r\n },\r\n\r\n createXhr: masterConfig.createXhr || function () {\r\n //Would love to dump the ActiveX crap in here. Need IE 6 to die first.\r\n var xhr, i, progId;\r\n if (typeof XMLHttpRequest !== \"undefined\") {\r\n return new XMLHttpRequest();\r\n } else if (typeof ActiveXObject !== \"undefined\") {\r\n for (i = 0; i < 3; i += 1) {\r\n progId = progIds[i];\r\n try {\r\n xhr = new ActiveXObject(progId);\r\n } catch (e) {}\r\n\r\n if (xhr) {\r\n progIds = [progId]; // so faster next time\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return xhr;\r\n },\r\n\r\n /**\r\n * Parses a resource name into its component parts. Resource names\r\n * look like: module/name.ext!strip, where the !strip part is\r\n * optional.\r\n * @param {String} name the resource name\r\n * @returns {Object} with properties \"moduleName\", \"ext\" and \"strip\"\r\n * where strip is a boolean.\r\n */\r\n parseName: function (name) {\r\n var modName, ext, temp,\r\n strip = false,\r\n index = name.indexOf(\".\"),\r\n isRelative = name.indexOf('./') === 0 ||\r\n name.indexOf('../') === 0;\r\n\r\n if (index !== -1 && (!isRelative || index > 1)) {\r\n modName = name.substring(0, index);\r\n ext = name.substring(index + 1, name.length);\r\n } else {\r\n modName = name;\r\n }\r\n\r\n temp = ext || modName;\r\n index = temp.indexOf(\"!\");\r\n if (index !== -1) {\r\n //Pull off the strip arg.\r\n strip = temp.substring(index + 1) === \"strip\";\r\n temp = temp.substring(0, index);\r\n if (ext) {\r\n ext = temp;\r\n } else {\r\n modName = temp;\r\n }\r\n }\r\n\r\n return {\r\n moduleName: modName,\r\n ext: ext,\r\n strip: strip\r\n };\r\n },\r\n\r\n xdRegExp: /^((\\w+)\\:)?\\/\\/([^\\/\\\\]+)/,\r\n\r\n /**\r\n * Is an URL on another domain. Only works for browser use, returns\r\n * false in non-browser environments. Only used to know if an\r\n * optimized .js version of a text resource should be loaded\r\n * instead.\r\n * @param {String} url\r\n * @returns Boolean\r\n */\r\n useXhr: function (url, protocol, hostname, port) {\r\n var uProtocol, uHostName, uPort,\r\n match = text.xdRegExp.exec(url);\r\n if (!match) {\r\n return true;\r\n }\r\n uProtocol = match[2];\r\n uHostName = match[3];\r\n\r\n uHostName = uHostName.split(':');\r\n uPort = uHostName[1];\r\n uHostName = uHostName[0];\r\n\r\n return (!uProtocol || uProtocol === protocol) &&\r\n (!uHostName || uHostName.toLowerCase() === hostname.toLowerCase()) &&\r\n ((!uPort && !uHostName) || uPort === port);\r\n },\r\n\r\n finishLoad: function (name, strip, content, onLoad) {\r\n content = strip ? text.strip(content) : content;\r\n if (masterConfig.isBuild) {\r\n buildMap[name] = content;\r\n }\r\n onLoad(content);\r\n },\r\n\r\n load: function (name, req, onLoad, config) {\r\n //Name has format: some.module.filext!strip\r\n //The strip part is optional.\r\n //if strip is present, then that means only get the string contents\r\n //inside a body tag in an HTML string. For XML/SVG content it means\r\n //removing the declarations so the content can be inserted\r\n //into the current doc without problems.\r\n\r\n // Do not bother with the work if a build and text will\r\n // not be inlined.\r\n if (config && config.isBuild && !config.inlineText) {\r\n onLoad();\r\n return;\r\n }\r\n\r\n masterConfig.isBuild = config && config.isBuild;\r\n\r\n var parsed = text.parseName(name),\r\n nonStripName = parsed.moduleName +\r\n (parsed.ext ? '.' + parsed.ext : ''),\r\n url = req.toUrl(nonStripName),\r\n useXhr = (masterConfig.useXhr) ||\r\n text.useXhr;\r\n\r\n // Do not load if it is an empty: url\r\n if (url.indexOf('empty:') === 0) {\r\n onLoad();\r\n return;\r\n }\r\n\r\n //Load the text. Use XHR if possible and in a browser.\r\n if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {\r\n text.get(url, function (content) {\r\n text.finishLoad(name, parsed.strip, content, onLoad);\r\n }, function (err) {\r\n if (onLoad.error) {\r\n onLoad.error(err);\r\n }\r\n });\r\n } else {\r\n //Need to fetch the resource across domains. Assume\r\n //the resource has been optimized into a JS module. Fetch\r\n //by the module name + extension, but do not include the\r\n //!strip part to avoid file system issues.\r\n req([nonStripName], function (content) {\r\n text.finishLoad(parsed.moduleName + '.' + parsed.ext,\r\n parsed.strip, content, onLoad);\r\n });\r\n }\r\n },\r\n\r\n write: function (pluginName, moduleName, write, config) {\r\n if (buildMap.hasOwnProperty(moduleName)) {\r\n var content = text.jsEscape(buildMap[moduleName]);\r\n write.asModule(pluginName + \"!\" + moduleName,\r\n \"define(function () { return '\" +\r\n content +\r\n \"';});\\n\");\r\n }\r\n },\r\n\r\n writeFile: function (pluginName, moduleName, req, write, config) {\r\n var parsed = text.parseName(moduleName),\r\n extPart = parsed.ext ? '.' + parsed.ext : '',\r\n nonStripName = parsed.moduleName + extPart,\r\n //Use a '.js' file name so that it indicates it is a\r\n //script that can be loaded across domains.\r\n fileName = req.toUrl(parsed.moduleName + extPart) + '.js';\r\n\r\n //Leverage own load() method to load plugin value, but only\r\n //write out values that do not have the strip argument,\r\n //to avoid any potential issues with ! in file names.\r\n text.load(nonStripName, req, function (value) {\r\n //Use own write() method to construct full module value.\r\n //But need to create shell that translates writeFile's\r\n //write() to the right interface.\r\n var textWrite = function (contents) {\r\n return write(fileName, contents);\r\n };\r\n textWrite.asModule = function (moduleName, contents) {\r\n return write.asModule(moduleName, fileName, contents);\r\n };\r\n\r\n text.write(pluginName, nonStripName, textWrite, config);\r\n }, config);\r\n }\r\n };\r\n\r\n if (masterConfig.env === 'node' || (!masterConfig.env &&\r\n typeof process !== \"undefined\" &&\r\n process.versions &&\r\n !!process.versions.node &&\r\n !process.versions['node-webkit'])) {\r\n //Using special require.nodeRequire, something added by r.js.\r\n fs = require.nodeRequire('fs');\r\n\r\n text.get = function (url, callback, errback) {\r\n try {\r\n var file = fs.readFileSync(url, 'utf8');\r\n //Remove BOM (Byte Mark Order) from utf8 files if it is there.\r\n if (file.indexOf('\\uFEFF') === 0) {\r\n file = file.substring(1);\r\n }\r\n callback(file);\r\n } catch (e) {\r\n if (errback) {\r\n errback(e);\r\n }\r\n }\r\n };\r\n } else if (masterConfig.env === 'xhr' || (!masterConfig.env &&\r\n text.createXhr())) {\r\n text.get = function (url, callback, errback, headers) {\r\n var xhr = text.createXhr(), header;\r\n xhr.open('GET', url, true);\r\n\r\n //Allow plugins direct access to xhr headers\r\n if (headers) {\r\n for (header in headers) {\r\n if (headers.hasOwnProperty(header)) {\r\n xhr.setRequestHeader(header.toLowerCase(), headers[header]);\r\n }\r\n }\r\n }\r\n\r\n //Allow overrides specified in config\r\n if (masterConfig.onXhr) {\r\n masterConfig.onXhr(xhr, url);\r\n }\r\n\r\n xhr.onreadystatechange = function (evt) {\r\n var status, err;\r\n //Do not explicitly handle errors, those should be\r\n //visible via console output in the browser.\r\n if (xhr.readyState === 4) {\r\n status = xhr.status || 0;\r\n if (status > 399 && status < 600) {\r\n //An http 4xx or 5xx error. Signal an error.\r\n err = new Error(url + ' HTTP status: ' + status);\r\n err.xhr = xhr;\r\n if (errback) {\r\n errback(err);\r\n }\r\n } else {\r\n callback(xhr.responseText);\r\n }\r\n\r\n if (masterConfig.onXhrComplete) {\r\n masterConfig.onXhrComplete(xhr, url);\r\n }\r\n }\r\n };\r\n xhr.send(null);\r\n };\r\n } else if (masterConfig.env === 'rhino' || (!masterConfig.env &&\r\n typeof Packages !== 'undefined' && typeof java !== 'undefined')) {\r\n //Why Java, why is this so awkward?\r\n text.get = function (url, callback) {\r\n var stringBuffer, line,\r\n encoding = \"utf-8\",\r\n file = new java.io.File(url),\r\n lineSeparator = java.lang.System.getProperty(\"line.separator\"),\r\n input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),\r\n content = '';\r\n try {\r\n stringBuffer = new java.lang.StringBuffer();\r\n line = input.readLine();\r\n\r\n // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324\r\n // http://www.unicode.org/faq/utf_bom.html\r\n\r\n // Note that when we use utf-8, the BOM should appear as \"EF BB BF\", but it doesn't due to this bug in the JDK:\r\n // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058\r\n if (line && line.length() && line.charAt(0) === 0xfeff) {\r\n // Eat the BOM, since we've already found the encoding on this file,\r\n // and we plan to concatenating this buffer with others; the BOM should\r\n // only appear at the top of a file.\r\n line = line.substring(1);\r\n }\r\n\r\n if (line !== null) {\r\n stringBuffer.append(line);\r\n }\r\n\r\n while ((line = input.readLine()) !== null) {\r\n stringBuffer.append(lineSeparator);\r\n stringBuffer.append(line);\r\n }\r\n //Make sure we return a JavaScript string and not a Java string.\r\n content = String(stringBuffer.toString()); //String\r\n } finally {\r\n input.close();\r\n }\r\n callback(content);\r\n };\r\n } else if (masterConfig.env === 'xpconnect' || (!masterConfig.env &&\r\n typeof Components !== 'undefined' && Components.classes &&\r\n Components.interfaces)) {\r\n //Avert your gaze!\r\n Cc = Components.classes;\r\n Ci = Components.interfaces;\r\n Components.utils['import']('resource://gre/modules/FileUtils.jsm');\r\n xpcIsWindows = ('@mozilla.org/windows-registry-key;1' in Cc);\r\n\r\n text.get = function (url, callback) {\r\n var inStream, convertStream, fileObj,\r\n readData = {};\r\n\r\n if (xpcIsWindows) {\r\n url = url.replace(/\\//g, '\\\\');\r\n }\r\n\r\n fileObj = new FileUtils.File(url);\r\n\r\n //XPCOM, you so crazy\r\n try {\r\n inStream = Cc['@mozilla.org/network/file-input-stream;1']\r\n .createInstance(Ci.nsIFileInputStream);\r\n inStream.init(fileObj, 1, 0, false);\r\n\r\n convertStream = Cc['@mozilla.org/intl/converter-input-stream;1']\r\n .createInstance(Ci.nsIConverterInputStream);\r\n convertStream.init(inStream, \"utf-8\", inStream.available(),\r\n Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);\r\n\r\n convertStream.readString(inStream.available(), readData);\r\n convertStream.close();\r\n inStream.close();\r\n callback(readData.value);\r\n } catch (e) {\r\n throw new Error((fileObj && fileObj.path || '') + ': ' + e);\r\n }\r\n };\r\n }\r\n return text;\r\n});\r\n\n"]}
\ No newline at end of file
diff --git a/build_js/app/mappage.js b/build_js/app/mappage.js
deleted file mode 100644
index 5253f854..00000000
--- a/build_js/app/mappage.js
+++ /dev/null
@@ -1,33 +0,0 @@
-!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=ae.type(t);return"function"===n||ae.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){if(ae.isFunction(e))return ae.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ae.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(he.test(e))return ae.filter(e,t,n);e=ae.filter(e,t)}return ae.grep(t,function(t){return ae.inArray(t,e)>=0!==n})}function a(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function s(t){var e=xe[t]={};return ae.each(t.match(be)||[],function(t,n){e[n]=!0}),e}function o(){fe.addEventListener?(fe.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1)):(fe.detachEvent("onreadystatechange",r),t.detachEvent("onload",r))}function r(){(fe.addEventListener||"load"===event.type||"complete"===fe.readyState)&&(o(),ae.ready())}function l(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(_e,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Te.test(n)?ae.parseJSON(n):n}catch(a){}ae.data(t,e,n)}else n=void 0}return n}function c(t){var e;for(e in t)if(("data"!==e||!ae.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,n,i){if(ae.acceptData(t)){var a,s,o=ae.expando,r=t.nodeType,l=r?ae.cache:t,c=r?t[o]:t[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=r?t[o]=X.pop()||ae.guid++:o),l[c]||(l[c]=r?{}:{toJSON:ae.noop}),("object"==typeof e||"function"==typeof e)&&(i?l[c]=ae.extend(l[c],e):l[c].data=ae.extend(l[c].data,e)),s=l[c],i||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[ae.camelCase(e)]=n),"string"==typeof e?(a=s[e],null==a&&(a=s[ae.camelCase(e)])):a=s,a}}function d(t,e,n){if(ae.acceptData(t)){var i,a,s=t.nodeType,o=s?ae.cache:t,r=s?t[ae.expando]:ae.expando;if(o[r]){if(e&&(i=n?o[r]:o[r].data)){ae.isArray(e)?e=e.concat(ae.map(e,ae.camelCase)):e in i?e=[e]:(e=ae.camelCase(e),e=e in i?[e]:e.split(" ")),a=e.length;for(;a--;)delete i[e[a]];if(n?!c(i):!ae.isEmptyObject(i))return}(n||(delete o[r].data,c(o[r])))&&(s?ae.cleanData([t],!0):ne.deleteExpando||o!=o.window?delete o[r]:o[r]=null)}}}function h(){return!0}function p(){return!1}function f(){try{return fe.activeElement}catch(t){}}function m(t){var e=Fe.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function g(t,e){var n,i,a=0,s=typeof t.getElementsByTagName!==Se?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==Se?t.querySelectorAll(e||"*"):void 0;if(!s)for(s=[],n=t.childNodes||t;null!=(i=n[a]);a++)!e||ae.nodeName(i,e)?s.push(i):ae.merge(s,g(i,e));return void 0===e||e&&ae.nodeName(t,e)?ae.merge([t],s):s}function v(t){Ee.test(t.type)&&(t.defaultChecked=t.checked)}function y(t,e){return ae.nodeName(t,"table")&&ae.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==ae.find.attr(t,"type"))+"/"+t.type,t}function x(t){var e=Ye.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function C(t,e){for(var n,i=0;null!=(n=t[i]);i++)ae._data(n,"globalEval",!e||ae._data(e[i],"globalEval"))}function w(t,e){if(1===e.nodeType&&ae.hasData(t)){var n,i,a,s=ae._data(t),o=ae._data(e,s),r=s.events;if(r){delete o.handle,o.events={};for(n in r)for(i=0,a=r[n].length;a>i;i++)ae.event.add(e,n,r[n][i])}o.data&&(o.data=ae.extend({},o.data))}}function S(t,e){var n,i,a;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!ne.noCloneEvent&&e[ae.expando]){a=ae._data(e);for(i in a.events)ae.removeEvent(e,i,a.handle);e.removeAttribute(ae.expando)}"script"===n&&e.text!==t.text?(b(e).text=t.text,x(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),ne.html5Clone&&t.innerHTML&&!ae.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Ee.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}function T(e,n){var i,a=ae(n.createElement(e)).appendTo(n.body),s=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(a[0]))?i.display:ae.css(a[0],"display");return a.detach(),s}function _(t){var e=fe,n=Je[t];return n||(n=T(t,e),"none"!==n&&n||(Ze=(Ze||ae("
")).appendTo(e.documentElement),e=(Ze[0].contentWindow||Ze[0].contentDocument).document,e.write(),e.close(),n=T(t,e),Ze.detach()),Je[t]=n),n}function D(t,e){return{get:function(){var n=t();return null!=n?n?void delete this.get:(this.get=e).apply(this,arguments):void 0}}}function k(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,a=pn.length;a--;)if(e=pn[a]+n,e in t)return e;return i}function P(t,e){for(var n,i,a,s=[],o=0,r=t.length;r>o;o++)i=t[o],i.style&&(s[o]=ae._data(i,"olddisplay"),n=i.style.display,e?(s[o]||"none"!==n||(i.style.display=""),""===i.style.display&&Pe(i)&&(s[o]=ae._data(i,"olddisplay",_(i.nodeName)))):(a=Pe(i),(n&&"none"!==n||!a)&&ae._data(i,"olddisplay",a?n:ae.css(i,"display"))));for(o=0;r>o;o++)i=t[o],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[o]||"":"none"));return t}function I(t,e,n){var i=cn.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function E(t,e,n,i,a){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,o=0;4>s;s+=2)"margin"===n&&(o+=ae.css(t,n+ke[s],!0,a)),i?("content"===n&&(o-=ae.css(t,"padding"+ke[s],!0,a)),"margin"!==n&&(o-=ae.css(t,"border"+ke[s]+"Width",!0,a))):(o+=ae.css(t,"padding"+ke[s],!0,a),"padding"!==n&&(o+=ae.css(t,"border"+ke[s]+"Width",!0,a)));return o}function A(t,e,n){var i=!0,a="width"===e?t.offsetWidth:t.offsetHeight,s=tn(t),o=ne.boxSizing&&"border-box"===ae.css(t,"boxSizing",!1,s);if(0>=a||null==a){if(a=en(t,e,s),(0>a||null==a)&&(a=t.style[e]),an.test(a))return a;i=o&&(ne.boxSizingReliable()||a===t.style[e]),a=parseFloat(a)||0}return a+E(t,e,n||(o?"border":"content"),i,s)+"px"}function j(t,e,n,i,a){return new j.prototype.init(t,e,n,i,a)}function M(){return setTimeout(function(){fn=void 0}),fn=ae.now()}function O(t,e){var n,i={height:t},a=0;for(e=e?1:0;4>a;a+=2-e)n=ke[a],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function L(t,e,n){for(var i,a=(xn[e]||[]).concat(xn["*"]),s=0,o=a.length;o>s;s++)if(i=a[s].call(n,e,t))return i}function F(t,e,n){var i,a,s,o,r,l,c,u,d=this,h={},p=t.style,f=t.nodeType&&Pe(t),m=ae._data(t,"fxshow");n.queue||(r=ae._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,d.always(function(){d.always(function(){r.unqueued--,ae.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=ae.css(t,"display"),u="none"===c?ae._data(t,"olddisplay")||_(t.nodeName):c,"inline"===u&&"none"===ae.css(t,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==_(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ne.shrinkWrapBlocks()||d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in e)if(a=e[i],gn.exec(a)){if(delete e[i],s=s||"toggle"===a,a===(f?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;f=!0}h[i]=m&&m[i]||ae.style(t,i)}else c=void 0;if(ae.isEmptyObject(h))"inline"===("none"===c?_(t.nodeName):c)&&(p.display=c);else{m?"hidden"in m&&(f=m.hidden):m=ae._data(t,"fxshow",{}),s&&(m.hidden=!f),f?ae(t).show():d.done(function(){ae(t).hide()}),d.done(function(){var e;ae._removeData(t,"fxshow");for(e in h)ae.style(t,e,h[e])});for(i in h)o=L(f?m[i]:0,i,d),i in m||(m[i]=o.start,f&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function N(t,e){var n,i,a,s,o;for(n in t)if(i=ae.camelCase(n),a=e[i],s=t[n],ae.isArray(s)&&(a=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),o=ae.cssHooks[i],o&&"expand"in o){s=o.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=a)}else e[i]=a}function R(t,e,n){var i,a,s=0,o=bn.length,r=ae.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=fn||M(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,s=1-i,o=0,l=c.tweens.length;l>o;o++)c.tweens[o].run(s);return r.notifyWith(t,[c,s,n]),1>s&&l?n:(r.resolveWith(t,[c]),!1)},c=r.promise({elem:t,props:ae.extend({},e),opts:ae.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:fn||M(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ae.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(a)return this;for(a=!0;i>n;n++)c.tweens[n].run(1);return e?r.resolveWith(t,[c,e]):r.rejectWith(t,[c,e]),this}}),u=c.props;for(N(u,c.opts.specialEasing);o>s;s++)if(i=bn[s].call(c,t,u,c.opts))return i;return ae.map(u,L,c),ae.isFunction(c.opts.start)&&c.opts.start.call(t,c),ae.fx.timer(ae.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function B(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,a=0,s=e.toLowerCase().match(be)||[];if(ae.isFunction(n))for(;i=s[a++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function $(t,e,n,i){function a(r){var l;return s[r]=!0,ae.each(t[r]||[],function(t,r){var c=r(e,n,i);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),l}var s={},o=t===zn;return a(e.dataTypes[0])||!s["*"]&&a("*")}function H(t,e){var n,i,a=ae.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((a[i]?t:n||(n={}))[i]=e[i]);return n&&ae.extend(!0,t,n),t}function U(t,e,n){for(var i,a,s,o,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=t.mimeType||e.getResponseHeader("Content-Type"));if(a)for(o in r)if(r[o]&&r[o].test(a)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}i||(i=o)}s=s||i}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}function W(t,e,n,i){var a,s,o,r,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];s=u.shift();for(;s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=c[l+" "+s]||c["* "+s],!o)for(a in c)if(r=a.split(" "),r[1]===s&&(o=c[l+" "+r[0]]||c["* "+r[0]])){o===!0?o=c[a]:c[a]!==!0&&(s=r[0],u.unshift(r[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function z(t,e,n,i){var a;if(ae.isArray(e))ae.each(e,function(e,a){n||Xn.test(t)?i(t,a):z(t+"["+("object"==typeof a?e:"")+"]",a,n,i)});else if(n||"object"!==ae.type(e))i(t,e);else for(a in e)z(t+"["+a+"]",e[a],n,i)}function q(){try{return new t.XMLHttpRequest}catch(e){}}function V(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function Y(t){return ae.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var X=[],G=X.slice,K=X.concat,Q=X.push,Z=X.indexOf,J={},te=J.toString,ee=J.hasOwnProperty,ne={},ie="1.11.3",ae=function(t,e){return new ae.fn.init(t,e)},se=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,re=/-([\da-z])/gi,le=function(t,e){return e.toUpperCase()};ae.fn=ae.prototype={jquery:ie,constructor:ae,selector:"",length:0,toArray:function(){return G.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:G.call(this)},pushStack:function(t){var e=ae.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ae.each(this,t,e)},map:function(t){return this.pushStack(ae.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:X.sort,splice:X.splice},ae.extend=ae.fn.extend=function(){var t,e,n,i,a,s,o=arguments[0]||{},r=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[r]||{},r++),"object"==typeof o||ae.isFunction(o)||(o={}),r===l&&(o=this,r--);l>r;r++)if(null!=(a=arguments[r]))for(i in a)t=o[i],n=a[i],o!==n&&(c&&n&&(ae.isPlainObject(n)||(e=ae.isArray(n)))?(e?(e=!1,s=t&&ae.isArray(t)?t:[]):s=t&&ae.isPlainObject(t)?t:{},o[i]=ae.extend(c,s,n)):void 0!==n&&(o[i]=n));return o},ae.extend({expando:"jQuery"+(ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ae.type(t)},isArray:Array.isArray||function(t){return"array"===ae.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!ae.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ae.type(t)||t.nodeType||ae.isWindow(t))return!1;try{if(t.constructor&&!ee.call(t,"constructor")&&!ee.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(ne.ownLast)for(e in t)return ee.call(t,e);for(e in t);return void 0===e||ee.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?J[te.call(t)]||"object":typeof t},globalEval:function(e){e&&ae.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(oe,"ms-").replace(re,le)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var a,s=0,o=t.length,r=n(t);if(i){if(r)for(;o>s&&(a=e.apply(t[s],i),a!==!1);s++);else for(s in t)if(a=e.apply(t[s],i),a===!1)break}else if(r)for(;o>s&&(a=e.call(t[s],s,t[s]),a!==!1);s++);else for(s in t)if(a=e.call(t[s],s,t[s]),a===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(se,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ae.merge(i,"string"==typeof t?[t]:t):Q.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(Z)return Z.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,a=t.length;n>i;)t[a++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[a++]=e[i++];return t.length=a,t},grep:function(t,e,n){for(var i,a=[],s=0,o=t.length,r=!n;o>s;s++)i=!e(t[s],s),i!==r&&a.push(t[s]);return a},map:function(t,e,i){var a,s=0,o=t.length,r=n(t),l=[];if(r)for(;o>s;s++)a=e(t[s],s,i),null!=a&&l.push(a);else for(s in t)a=e(t[s],s,i),null!=a&&l.push(a);return K.apply([],l)},guid:1,proxy:function(t,e){var n,i,a;return"string"==typeof e&&(a=t[e],e=t,t=a),ae.isFunction(t)?(n=G.call(arguments,2),i=function(){return t.apply(e||this,n.concat(G.call(arguments)))},i.guid=t.guid=t.guid||ae.guid++,i):void 0},now:function(){return+new Date},support:ne}),ae.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()});var ce=function(t){function e(t,e,n,i){var a,s,o,r,l,c,d,p,f,m;if((e?e.ownerDocument||e:$)!==j&&A(e),e=e||j,n=n||[],r=e.nodeType,"string"!=typeof t||!t||1!==r&&9!==r&&11!==r)return n;if(!i&&O){if(11!==r&&(a=ye.exec(t)))if(o=a[1]){if(9===r){if(s=e.getElementById(o),!s||!s.parentNode)return n;if(s.id===o)return n.push(s),n}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(o))&&R(e,s)&&s.id===o)return n.push(s),n}else{if(a[2])return Z.apply(n,e.getElementsByTagName(t)),n;if((o=a[3])&&C.getElementsByClassName)return Z.apply(n,e.getElementsByClassName(o)),n}if(C.qsa&&(!L||!L.test(t))){if(p=d=B,f=e,m=1!==r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){c=_(t),(d=e.getAttribute("id"))?p=d.replace(xe,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=c.length;for(;l--;)c[l]=p+h(c[l]);f=be.test(t)&&u(e.parentNode)||e,m=c.join(",")}if(m)try{return Z.apply(n,f.querySelectorAll(m)),n}catch(g){}finally{d||e.removeAttribute("id")}}}return k(t.replace(le,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[B]=!0,t}function a(t){var e=j.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)w.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function r(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var a,s=t([],n.length,e),o=s.length;o--;)n[a=s[o]]&&(n[a]=!(i[a]=n[a]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function h(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function p(t,e,n){var i=e.dir,a=n&&"parentNode"===i,s=U++;return e.first?function(e,n,s){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,s)}:function(e,n,o){var r,l,c=[H,s];if(o){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||a){if(l=e[B]||(e[B]={}),(r=l[i])&&r[0]===H&&r[1]===s)return c[2]=r[2];if(l[i]=c,c[2]=t(e,n,o))return!0}}}function f(t){return t.length>1?function(e,n,i){for(var a=t.length;a--;)if(!t[a](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var a=0,s=n.length;s>a;a++)e(t,n[a],i);return i}function g(t,e,n,i,a){for(var s,o=[],r=0,l=t.length,c=null!=e;l>r;r++)(s=t[r])&&(!n||n(s,i,a))&&(o.push(s),c&&e.push(r));return o}function v(t,e,n,a,s,o){return a&&!a[B]&&(a=v(a)),s&&!s[B]&&(s=v(s,o)),i(function(i,o,r,l){var c,u,d,h=[],p=[],f=o.length,v=i||m(e||"*",r.nodeType?[r]:r,[]),y=!t||!i&&e?v:g(v,h,t,r,l),b=n?s||(i?t:f||a)?[]:o:y;if(n&&n(y,b,r,l),a){c=g(b,p),a(c,[],r,l),u=c.length;for(;u--;)(d=c[u])&&(b[p[u]]=!(y[p[u]]=d))}if(i){if(s||t){if(s){c=[],u=b.length;for(;u--;)(d=b[u])&&c.push(y[u]=d);s(null,b=[],c,l)}u=b.length;for(;u--;)(d=b[u])&&(c=s?te(i,d):h[u])>-1&&(i[c]=!(o[c]=d))}}else b=g(b===o?b.splice(f,b.length):b),s?s(null,o,b,l):Z.apply(o,b)})}function y(t){for(var e,n,i,a=t.length,s=w.relative[t[0].type],o=s||w.relative[" "],r=s?1:0,l=p(function(t){return t===e},o,!0),c=p(function(t){return te(e,t)>-1},o,!0),u=[function(t,n,i){var a=!s&&(i||n!==P)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,a}];a>r;r++)if(n=w.relative[t[r].type])u=[p(f(u),n)];else{if(n=w.filter[t[r].type].apply(null,t[r].matches),n[B]){for(i=++r;a>i&&!w.relative[t[i].type];i++);return v(r>1&&f(u),r>1&&h(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(le,"$1"),n,i>r&&y(t.slice(r,i)),a>i&&y(t=t.slice(i)),a>i&&h(t))}u.push(n)}return f(u)}function b(t,n){var a=n.length>0,s=t.length>0,o=function(i,o,r,l,c){var u,d,h,p=0,f="0",m=i&&[],v=[],y=P,b=i||s&&w.find.TAG("*",c),x=H+=null==y?1:Math.random()||.1,C=b.length;for(c&&(P=o!==j&&o);f!==C&&null!=(u=b[f]);f++){if(s&&u){d=0;for(;h=t[d++];)if(h(u,o,r)){l.push(u);break}c&&(H=x)}a&&((u=!h&&u)&&p--,i&&m.push(u))}if(p+=f,a&&f!==p){d=0;for(;h=n[d++];)h(m,v,o,r);if(i){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=K.call(l));v=g(v)}Z.apply(l,v),c&&!i&&v.length>0&&p+n.length>1&&e.uniqueSort(l)}return c&&(H=x,P=y),m};return a?i(o):o}var x,C,w,S,T,_,D,k,P,I,E,A,j,M,O,L,F,N,R,B="sizzle"+1*new Date,$=t.document,H=0,U=0,W=n(),z=n(),q=n(),V=function(t,e){return t===e&&(E=!0),0},Y=1<<31,X={}.hasOwnProperty,G=[],K=G.pop,Q=G.push,Z=G.push,J=G.slice,te=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ae=ie.replace("w","w#"),se="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ae+"))|)"+ne+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+se+")*)|.*)\\)|)",re=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),he=new RegExp(oe),pe=new RegExp("^"+ae+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie.replace("w","w*")+")"),ATTR:new RegExp("^"+se),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,Ce=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Se=function(){A()};try{Z.apply(G=J.call($.childNodes),$.childNodes),G[$.childNodes.length].nodeType}catch(Te){Z={apply:G.length?function(t,e){Q.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}C=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},A=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:$;return i!==j&&9===i.nodeType&&i.documentElement?(j=i,M=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),O=!T(i),C.attributes=a(function(t){return t.className="i",!t.getAttribute("className")}),C.getElementsByTagName=a(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),C.getElementsByClassName=ve.test(i.getElementsByClassName),C.getById=a(function(t){return M.appendChild(t).id=B,!i.getElementsByName||!i.getElementsByName(B).length}),C.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(Ce,we);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(Ce,we);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=C.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):C.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],a=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[a++];)1===n.nodeType&&i.push(n);return i}return s},w.find.CLASS=C.getElementsByClassName&&function(t,e){return O?e.getElementsByClassName(t):void 0},F=[],L=[],(C.qsa=ve.test(i.querySelectorAll))&&(a(function(t){M.appendChild(t).innerHTML="
",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+ee+")"),t.querySelectorAll("[id~="+B+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||L.push(".#.+[+~]")}),a(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(C.matchesSelector=ve.test(N=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&a(function(t){C.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),F.push("!=",oe)}),L=L.length&&new RegExp(L.join("|")),F=F.length&&new RegExp(F.join("|")),e=ve.test(M.compareDocumentPosition),R=e||ve.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!C.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===$&&R($,t)?-1:e===i||e.ownerDocument===$&&R($,e)?1:I?te(I,t)-te(I,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,a=0,s=t.parentNode,r=e.parentNode,l=[t],c=[e];if(!s||!r)return t===i?-1:e===i?1:s?-1:r?1:I?te(I,t)-te(I,e):0;if(s===r)return o(t,e);n=t;for(;n=n.parentNode;)l.unshift(n);n=e;for(;n=n.parentNode;)c.unshift(n);for(;l[a]===c[a];)a++;return a?o(l[a],c[a]):l[a]===$?-1:c[a]===$?1:0},i):j},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==j&&A(t),n=n.replace(de,"='$1']"),!(!C.matchesSelector||!O||F&&F.test(n)||L&&L.test(n)))try{var i=N.call(t,n);if(i||C.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(a){}return e(n,j,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==j&&A(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==j&&A(t);var n=w.attrHandle[e.toLowerCase()],i=n&&X.call(w.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==i?i:C.attributes||!O?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,a=0;if(E=!C.detectDuplicates,I=!C.sortStable&&t.slice(0),t.sort(V),E){for(;e=t[a++];)e===t[a]&&(i=n.push(a));for(;i--;)t.splice(n[i],1)}return I=null,t},S=e.getText=function(t){var e,n="",i=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=S(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[i++];)n+=S(e);return n},w=e.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Ce,we),t[3]=(t[3]||t[4]||t[5]||"").replace(Ce,we),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return fe.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&he.test(n)&&(e=_(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Ce,we).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+ne+")"+t+"("+ne+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(a){var s=e.attr(a,t);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s.replace(re," ")+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,a){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),r="of-type"===e;return 1===i&&0===a?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f,m=s!==o?"nextSibling":"previousSibling",g=e.parentNode,v=r&&e.nodeName.toLowerCase(),y=!l&&!r;if(g){if(s){for(;m;){d=e;for(;d=d[m];)if(r?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){u=g[B]||(g[B]={}),c=u[t]||[],p=c[0]===H&&c[1],h=c[0]===H&&c[2],d=p&&g.childNodes[p];for(;d=++p&&d&&d[m]||(h=p=0)||f.pop();)if(1===d.nodeType&&++h&&d===e){u[t]=[H,p,h];break}}else if(y&&(c=(e[B]||(e[B]={}))[t])&&c[0]===H)h=c[1];else for(;(d=++p&&d&&d[m]||(h=p=0)||f.pop())&&((r?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++h||(y&&((d[B]||(d[B]={}))[t]=[H,h]),d!==e)););return h-=a,h===i||h%i===0&&h/i>=0}}},PSEUDO:function(t,n){var a,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[B]?s(n):s.length>1?(a=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,a=s(t,n),o=a.length;o--;)i=te(t,a[o]),t[i]=!(e[i]=a[o])}):function(t){return s(t,0,a)}):s}},pseudos:{not:i(function(t){var e=[],n=[],a=D(t.replace(le,"$1"));return a[B]?i(function(t,e,n,i){for(var s,o=a(t,null,i,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,i,s){return e[0]=t,a(e,null,s,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(Ce,we),function(e){return(e.textContent||e.innerText||S(e)).indexOf(t)>-1}}),lang:i(function(t){return pe.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(Ce,we).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return ge.test(t.nodeName)},input:function(t){return me.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=0>n?n+e:n;++i
2&&"ID"===(o=s[0]).type&&C.getById&&9===e.nodeType&&O&&w.relative[s[1].type]){if(e=(w.find.ID(o.matches[0].replace(Ce,we),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}a=fe.needsContext.test(t)?0:s.length;for(;a--&&(o=s[a],!w.relative[r=o.type]);)if((l=w.find[r])&&(i=l(o.matches[0].replace(Ce,we),be.test(s[0].type)&&u(e.parentNode)||e))){if(s.splice(a,1),t=i.length&&h(s),!t)return Z.apply(n,i),n;break}}return(c||D(t,d))(i,e,!O,n,be.test(t)&&u(e.parentNode)||e),n},C.sortStable=B.split("").sort(V).join("")===B,C.detectDuplicates=!!E,A(),C.sortDetached=a(function(t){return 1&t.compareDocumentPosition(j.createElement("div"))}),a(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),C.attributes&&a(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),a(function(t){return null==t.getAttribute("disabled")})||s(ee,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ae.find=ce,ae.expr=ce.selectors,ae.expr[":"]=ae.expr.pseudos,ae.unique=ce.uniqueSort,ae.text=ce.getText,ae.isXMLDoc=ce.isXML,ae.contains=ce.contains;var ue=ae.expr.match.needsContext,de=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,he=/^.[^:#\[\.,]*$/;ae.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ae.find.matchesSelector(i,t)?[i]:[]:ae.find.matches(t,ae.grep(e,function(t){return 1===t.nodeType}))},ae.fn.extend({find:function(t){var e,n=[],i=this,a=i.length;if("string"!=typeof t)return this.pushStack(ae(t).filter(function(){for(e=0;a>e;e++)if(ae.contains(i[e],this))return!0}));for(e=0;a>e;e++)ae.find(t,i[e],n);return n=this.pushStack(a>1?ae.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ue.test(t)?ae(t):t||[],!1).length}});var pe,fe=t.document,me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ge=ae.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:me.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||pe).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ae?e[0]:e,ae.merge(this,ae.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:fe,!0)),de.test(n[1])&&ae.isPlainObject(e))for(n in e)ae.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if(i=fe.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return pe.find(t);this.length=1,this[0]=i}return this.context=fe,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ae.isFunction(t)?"undefined"!=typeof pe.ready?pe.ready(t):t(ae):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ae.makeArray(t,this))};ge.prototype=ae.fn,pe=ae(fe);var ve=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ae.extend({dir:function(t,e,n){for(var i=[],a=t[e];a&&9!==a.nodeType&&(void 0===n||1!==a.nodeType||!ae(a).is(n));)1===a.nodeType&&i.push(a),a=a[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),ae.fn.extend({has:function(t){var e,n=ae(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(ae.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,a=this.length,s=[],o=ue.test(t)||"string"!=typeof t?ae(t,e||this.context):0;a>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ae.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?ae.unique(s):s)},index:function(t){return t?"string"==typeof t?ae.inArray(this[0],ae(t)):ae.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ae.unique(ae.merge(this.get(),ae(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}});ae.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ae.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ae.dir(t,"parentNode",n)},next:function(t){return a(t,"nextSibling")},prev:function(t){return a(t,"previousSibling")},nextAll:function(t){return ae.dir(t,"nextSibling")},prevAll:function(t){return ae.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ae.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ae.dir(t,"previousSibling",n)},siblings:function(t){return ae.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ae.sibling(t.firstChild)},contents:function(t){return ae.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ae.merge([],t.childNodes)}},function(t,e){ae.fn[t]=function(n,i){var a=ae.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=ae.filter(i,a)),this.length>1&&(ye[t]||(a=ae.unique(a)),ve.test(t)&&(a=a.reverse())),this.pushStack(a)}});var be=/\S+/g,xe={};ae.Callbacks=function(t){t="string"==typeof t?xe[t]||s(t):ae.extend({},t);var e,n,i,a,o,r,l=[],c=!t.once&&[],u=function(s){for(n=t.memory&&s,i=!0,o=r||0,r=0,a=l.length,e=!0;l&&a>o;o++)if(l[o].apply(s[0],s[1])===!1&&t.stopOnFalse){n=!1;break}e=!1,l&&(c?c.length&&u(c.shift()):n?l=[]:d.disable())},d={add:function(){if(l){var i=l.length;!function s(e){ae.each(e,function(e,n){var i=ae.type(n);"function"===i?t.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),e?a=l.length:n&&(r=i,u(n))}return this},remove:function(){return l&&ae.each(arguments,function(t,n){for(var i;(i=ae.inArray(n,l,i))>-1;)l.splice(i,1),e&&(a>=i&&a--,o>=i&&o--)}),this},has:function(t){return t?ae.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=c=n=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,n||d.disable(),this},locked:function(){return!c},fireWith:function(t,n){return!l||i&&!c||(n=n||[],n=[t,n.slice?n.slice():n],e?c.push(n):u(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},ae.extend({Deferred:function(t){var e=[["resolve","done",ae.Callbacks("once memory"),"resolved"],["reject","fail",ae.Callbacks("once memory"),"rejected"],["notify","progress",ae.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ae.Deferred(function(n){ae.each(e,function(e,s){var o=ae.isFunction(t[e])&&t[e];a[s[1]](function(){var t=o&&o.apply(this,arguments);t&&ae.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ae.extend(t,i):i}},a={};return i.pipe=i.then,ae.each(e,function(t,s){var o=s[2],r=s[3];i[s[1]]=o.add,r&&o.add(function(){n=r},e[1^t][2].disable,e[2][2].lock),a[s[0]]=function(){return a[s[0]+"With"](this===a?i:this,arguments),this},a[s[0]+"With"]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(t){var e,n,i,a=0,s=G.call(arguments),o=s.length,r=1!==o||t&&ae.isFunction(t.promise)?o:0,l=1===r?t:ae.Deferred(),c=function(t,n,i){return function(a){n[t]=this,i[t]=arguments.length>1?G.call(arguments):a,i===e?l.notifyWith(n,i):--r||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);o>a;a++)s[a]&&ae.isFunction(s[a].promise)?s[a].promise().done(c(a,i,s)).fail(l.reject).progress(c(a,n,e)):--r;return r||l.resolveWith(i,s),l.promise()}});var Ce;ae.fn.ready=function(t){return ae.ready.promise().done(t),this},ae.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ae.readyWait++:ae.ready(!0)},ready:function(t){if(t===!0?!--ae.readyWait:!ae.isReady){if(!fe.body)return setTimeout(ae.ready);ae.isReady=!0,t!==!0&&--ae.readyWait>0||(Ce.resolveWith(fe,[ae]),ae.fn.triggerHandler&&(ae(fe).triggerHandler("ready"),ae(fe).off("ready")))}}});ae.ready.promise=function(e){if(!Ce)if(Ce=ae.Deferred(),"complete"===fe.readyState)setTimeout(ae.ready);else if(fe.addEventListener)fe.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1);else{fe.attachEvent("onreadystatechange",r),t.attachEvent("onload",r);var n=!1;try{n=null==t.frameElement&&fe.documentElement}catch(i){}n&&n.doScroll&&!function a(){if(!ae.isReady){try{n.doScroll("left")}catch(t){return setTimeout(a,50)}o(),ae.ready()}}()}return Ce.promise(e)};var we,Se="undefined";for(we in ae(ne))break;ne.ownLast="0"!==we,ne.inlineBlockNeedsLayout=!1,ae(function(){var t,e,n,i;n=fe.getElementsByTagName("body")[0],n&&n.style&&(e=fe.createElement("div"),i=fe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==Se&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=fe.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}t=null}(),ae.acceptData=function(t){var e=ae.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return 1!==n&&9!==n?!1:!e||e!==!0&&t.getAttribute("classid")===e};var Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;ae.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ae.cache[t[ae.expando]]:t[ae.expando],!!t&&!c(t)},data:function(t,e,n){return u(t,e,n)},removeData:function(t,e){return d(t,e)},_data:function(t,e,n){return u(t,e,n,!0)},_removeData:function(t,e){return d(t,e,!0)}}),ae.fn.extend({data:function(t,e){var n,i,a,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(a=ae.data(s),1===s.nodeType&&!ae._data(s,"parsedAttrs"))){n=o.length;for(;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=ae.camelCase(i.slice(5)),l(s,i,a[i])));ae._data(s,"parsedAttrs",!0)}return a}return"object"==typeof t?this.each(function(){ae.data(this,t)}):arguments.length>1?this.each(function(){ae.data(this,t,e)}):s?l(s,t,ae.data(s,t)):void 0},removeData:function(t){return this.each(function(){ae.removeData(this,t)})}}),ae.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ae._data(t,e),n&&(!i||ae.isArray(n)?i=ae._data(t,e,ae.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ae.queue(t,e),i=n.length,a=n.shift(),s=ae._queueHooks(t,e),o=function(){ae.dequeue(t,e)};"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===e&&n.unshift("inprogress"),delete s.stop,a.call(t,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ae._data(t,n)||ae._data(t,n,{empty:ae.Callbacks("once memory").add(function(){ae._removeData(t,e+"queue"),ae._removeData(t,n)})})}}),ae.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.lengthr;r++)e(t[r],n,o?i:i.call(t[r],r,e(t[r],n)));return a?t:c?e.call(t):l?e(t[0],n):s},Ee=/^(?:checkbox|radio)$/i;!function(){var t=fe.createElement("input"),e=fe.createElement("div"),n=fe.createDocumentFragment();if(e.innerHTML=" a",ne.leadingWhitespace=3===e.firstChild.nodeType,ne.tbody=!e.getElementsByTagName("tbody").length,ne.htmlSerialize=!!e.getElementsByTagName("link").length,ne.html5Clone="<:nav>"!==fe.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),ne.appendChecked=t.checked,e.innerHTML="",ne.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",ne.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){ne.noCloneEvent=!1}),e.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(i){ne.deleteExpando=!1}}}(),function(){var e,n,i=fe.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(ne[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),ne[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Ae=/^(?:input|select|textarea)$/i,je=/^key/,Me=/^(?:mouse|pointer|contextmenu)|click/,Oe=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/;ae.event={global:{},add:function(t,e,n,i,a){var s,o,r,l,c,u,d,h,p,f,m,g=ae._data(t);if(g){n.handler&&(l=n,n=l.handler,a=l.selector),n.guid||(n.guid=ae.guid++),(o=g.events)||(o=g.events={}),(u=g.handle)||(u=g.handle=function(t){return typeof ae===Se||t&&ae.event.triggered===t.type?void 0:ae.event.dispatch.apply(u.elem,arguments)},u.elem=t),e=(e||"").match(be)||[""],r=e.length;for(;r--;)s=Le.exec(e[r])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p&&(c=ae.event.special[p]||{},p=(a?c.delegateType:c.bindType)||p,c=ae.event.special[p]||{},d=ae.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&ae.expr.match.needsContext.test(a),namespace:f.join(".")},l),(h=o[p])||(h=o[p]=[],h.delegateCount=0,c.setup&&c.setup.call(t,i,f,u)!==!1||(t.addEventListener?t.addEventListener(p,u,!1):t.attachEvent&&t.attachEvent("on"+p,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),ae.event.global[p]=!0);t=null}},remove:function(t,e,n,i,a){var s,o,r,l,c,u,d,h,p,f,m,g=ae.hasData(t)&&ae._data(t);if(g&&(u=g.events)){e=(e||"").match(be)||[""],c=e.length;for(;c--;)if(r=Le.exec(e[c])||[],p=m=r[1],f=(r[2]||"").split(".").sort(),p){d=ae.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,h=u[p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;for(;s--;)o=h[s],!a&&m!==o.origType||n&&n.guid!==o.guid||r&&!r.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(h.splice(s,1),o.selector&&h.delegateCount--,d.remove&&d.remove.call(t,o));l&&!h.length&&(d.teardown&&d.teardown.call(t,f,g.handle)!==!1||ae.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)ae.event.remove(t,p+e[c],n,i,!0);ae.isEmptyObject(u)&&(delete g.handle,ae._removeData(t,"events"))}},trigger:function(e,n,i,a){var s,o,r,l,c,u,d,h=[i||fe],p=ee.call(e,"type")?e.type:e,f=ee.call(e,"namespace")?e.namespace.split("."):[];if(r=u=i=i||fe,3!==i.nodeType&&8!==i.nodeType&&!Oe.test(p+ae.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),o=p.indexOf(":")<0&&"on"+p,e=e[ae.expando]?e:new ae.Event(p,"object"==typeof e&&e),e.isTrigger=a?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ae.makeArray(n,[e]),c=ae.event.special[p]||{},a||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!a&&!c.noBubble&&!ae.isWindow(i)){for(l=c.delegateType||p,Oe.test(l+p)||(r=r.parentNode);r;r=r.parentNode)h.push(r),u=r;u===(i.ownerDocument||fe)&&h.push(u.defaultView||u.parentWindow||t)}d=0;for(;(r=h[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||p,s=(ae._data(r,"events")||{})[e.type]&&ae._data(r,"handle"),s&&s.apply(r,n),s=o&&r[o],s&&s.apply&&ae.acceptData(r)&&(e.result=s.apply(r,n),e.result===!1&&e.preventDefault());if(e.type=p,!a&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(h.pop(),n)===!1)&&ae.acceptData(i)&&o&&i[p]&&!ae.isWindow(i)){u=i[o],u&&(i[o]=null),ae.event.triggered=p;try{i[p]()}catch(m){}ae.event.triggered=void 0,u&&(i[o]=u)}return e.result}},dispatch:function(t){t=ae.event.fix(t);var e,n,i,a,s,o=[],r=G.call(arguments),l=(ae._data(this,"events")||{})[t.type]||[],c=ae.event.special[t.type]||{};if(r[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){o=ae.event.handlers.call(this,t,l),e=0;for(;(a=o[e++])&&!t.isPropagationStopped();){t.currentTarget=a.elem,s=0;for(;(i=a.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(i.namespace))&&(t.handleObj=i,t.data=i.data,n=((ae.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,r),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,a,s,o=[],r=e.delegateCount,l=t.target;if(r&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(a=[],s=0;r>s;s++)i=e[s],n=i.selector+" ",void 0===a[n]&&(a[n]=i.needsContext?ae(n,this).index(l)>=0:ae.find(n,this,null,[l]).length),a[n]&&a.push(i);a.length&&o.push({elem:l,handlers:a})}return r]","i"),Be=/^\s+/,$e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,He=/<([\w:]+)/,Ue=/\s*$/g,Ge={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:ne.htmlSerialize?[0,"",""]:[1,"X","
"]},Ke=m(fe),Qe=Ke.appendChild(fe.createElement("div"));Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;ae.extend({clone:function(t,e,n){var i,a,s,o,r,l=ae.contains(t.ownerDocument,t);if(ne.html5Clone||ae.isXMLDoc(t)||!Re.test("<"+t.nodeName+">")?s=t.cloneNode(!0):(Qe.innerHTML=t.outerHTML,Qe.removeChild(s=Qe.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ae.isXMLDoc(t)))for(i=g(s),r=g(t),o=0;null!=(a=r[o]);++o)i[o]&&S(a,i[o]);if(e)if(n)for(r=r||g(t),i=i||g(s),o=0;null!=(a=r[o]);o++)w(a,i[o]);else w(t,s);return i=g(s,"script"),i.length>0&&C(i,!l&&g(t,"script")),i=r=a=null,s},buildFragment:function(t,e,n,i){for(var a,s,o,r,l,c,u,d=t.length,h=m(e),p=[],f=0;d>f;f++)if(s=t[f],s||0===s)if("object"===ae.type(s))ae.merge(p,s.nodeType?[s]:s);else if(We.test(s)){r=r||h.appendChild(e.createElement("div")),l=(He.exec(s)||["",""])[1].toLowerCase(),u=Ge[l]||Ge._default,r.innerHTML=u[1]+s.replace($e,"<$1>$2>")+u[2],a=u[0];for(;a--;)r=r.lastChild;if(!ne.leadingWhitespace&&Be.test(s)&&p.push(e.createTextNode(Be.exec(s)[0])),!ne.tbody){s="table"!==l||Ue.test(s)?""!==u[1]||Ue.test(s)?0:r:r.firstChild,a=s&&s.childNodes.length;for(;a--;)ae.nodeName(c=s.childNodes[a],"tbody")&&!c.childNodes.length&&s.removeChild(c)}ae.merge(p,r.childNodes),r.textContent="";for(;r.firstChild;)r.removeChild(r.firstChild);r=h.lastChild}else p.push(e.createTextNode(s));r&&h.removeChild(r),ne.appendChecked||ae.grep(g(p,"input"),v),f=0;for(;s=p[f++];)if((!i||-1===ae.inArray(s,i))&&(o=ae.contains(s.ownerDocument,s),r=g(h.appendChild(s),"script"),o&&C(r),n)){a=0;for(;s=r[a++];)Ve.test(s.type||"")&&n.push(s)}return r=null,h},cleanData:function(t,e){for(var n,i,a,s,o=0,r=ae.expando,l=ae.cache,c=ne.deleteExpando,u=ae.event.special;null!=(n=t[o]);o++)if((e||ae.acceptData(n))&&(a=n[r],s=a&&l[a])){if(s.events)for(i in s.events)u[i]?ae.event.remove(n,i):ae.removeEvent(n,i,s.handle);l[a]&&(delete l[a],c?delete n[r]:typeof n.removeAttribute!==Se?n.removeAttribute(r):n[r]=null,X.push(a))}}}),ae.fn.extend({text:function(t){return Ie(this,function(t){return void 0===t?ae.text(this):this.empty().append((this[0]&&this[0].ownerDocument||fe).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ae.filter(t,this):this,a=0;null!=(n=i[a]);a++)e||1!==n.nodeType||ae.cleanData(g(n)),n.parentNode&&(e&&ae.contains(n.ownerDocument,n)&&C(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){1===t.nodeType&&ae.cleanData(g(t,!1));for(;t.firstChild;)t.removeChild(t.firstChild);t.options&&ae.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return ae.clone(this,t,e)})},html:function(t){return Ie(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Ne,""):void 0;if(!("string"!=typeof t||ze.test(t)||!ne.htmlSerialize&&Re.test(t)||!ne.leadingWhitespace&&Be.test(t)||Ge[(He.exec(t)||["",""])[1].toLowerCase()])){t=t.replace($e,"<$1>$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(ae.cleanData(g(e,!1)),e.innerHTML=t);e=0}catch(a){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,ae.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=K.apply([],t);var n,i,a,s,o,r,l=0,c=this.length,u=this,d=c-1,h=t[0],p=ae.isFunction(h);if(p||c>1&&"string"==typeof h&&!ne.checkClone&&qe.test(h))return this.each(function(n){var i=u.eq(n);p&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(c&&(r=ae.buildFragment(t,this[0].ownerDocument,!1,this),n=r.firstChild,1===r.childNodes.length&&(r=n),n)){for(s=ae.map(g(r,"script"),b),a=s.length;c>l;l++)i=r,l!==d&&(i=ae.clone(i,!0,!0),a&&ae.merge(s,g(i,"script"))),e.call(this[l],i,l);if(a)for(o=s[s.length-1].ownerDocument,ae.map(s,x),l=0;a>l;l++)i=s[l],Ve.test(i.type||"")&&!ae._data(i,"globalEval")&&ae.contains(o,i)&&(i.src?ae._evalUrl&&ae._evalUrl(i.src):ae.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Xe,"")));r=n=null}return this}}),ae.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ae.fn[t]=function(t){for(var n,i=0,a=[],s=ae(t),o=s.length-1;o>=i;i++)n=i===o?this:this.clone(!0),ae(s[i])[e](n),Q.apply(a,n.get());return this.pushStack(a)}});var Ze,Je={};!function(){var t;ne.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=fe.getElementsByTagName("body")[0],n&&n.style?(e=fe.createElement("div"),i=fe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==Se&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(fe.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var tn,en,nn=/^margin/,an=new RegExp("^("+De+")(?!px)[a-z%]+$","i"),sn=/^(top|right|bottom|left)$/;t.getComputedStyle?(tn=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},en=function(t,e,n){var i,a,s,o,r=t.style;return n=n||tn(t),o=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==o||ae.contains(t.ownerDocument,t)||(o=ae.style(t,e)),an.test(o)&&nn.test(e)&&(i=r.width,a=r.minWidth,s=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=i,r.minWidth=a,r.maxWidth=s)),void 0===o?o:o+""
-}):fe.documentElement.currentStyle&&(tn=function(t){return t.currentStyle},en=function(t,e,n){var i,a,s,o,r=t.style;return n=n||tn(t),o=n?n[e]:void 0,null==o&&r&&r[e]&&(o=r[e]),an.test(o)&&!sn.test(e)&&(i=r.left,a=t.runtimeStyle,s=a&&a.left,s&&(a.left=t.currentStyle.left),r.left="fontSize"===e?"1em":o,o=r.pixelLeft+"px",r.left=i,s&&(a.left=s)),void 0===o?o:o+""||"auto"});!function(){function e(){var e,n,i,a;n=fe.getElementsByTagName("body")[0],n&&n.style&&(e=fe.createElement("div"),i=fe.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s=o=!1,l=!0,t.getComputedStyle&&(s="1%"!==(t.getComputedStyle(e,null)||{}).top,o="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,a=e.appendChild(fe.createElement("div")),a.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",a.style.marginRight=a.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(a,null)||{}).marginRight),e.removeChild(a)),e.innerHTML="",a=e.getElementsByTagName("td"),a[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===a[0].offsetHeight,r&&(a[0].style.display="",a[1].style.display="none",r=0===a[0].offsetHeight),n.removeChild(i))}var n,i,a,s,o,r,l;(n=fe.createElement("div"),n.innerHTML=" a",a=n.getElementsByTagName("a")[0],i=a&&a.style)&&(i.cssText="float:left;opacity:.5",ne.opacity="0.5"===i.opacity,ne.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,ae.extend(ne,{reliableHiddenOffsets:function(){return null==r&&e(),r},boxSizingReliable:function(){return null==o&&e(),o},pixelPosition:function(){return null==s&&e(),s},reliableMarginRight:function(){return null==l&&e(),l}}))}(),ae.swap=function(t,e,n,i){var a,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];a=n.apply(t,i||[]);for(s in e)t.style[s]=o[s];return a};var on=/alpha\([^)]*\)/i,rn=/opacity\s*=\s*([^)]*)/,ln=/^(none|table(?!-c[ea]).+)/,cn=new RegExp("^("+De+")(.*)$","i"),un=new RegExp("^([+-])=("+De+")","i"),dn={position:"absolute",visibility:"hidden",display:"block"},hn={letterSpacing:"0",fontWeight:"400"},pn=["Webkit","O","Moz","ms"];ae.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=en(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ne.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,s,o,r=ae.camelCase(e),l=t.style;if(e=ae.cssProps[r]||(ae.cssProps[r]=k(l,r)),o=ae.cssHooks[e]||ae.cssHooks[r],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(t,!1,i))?a:l[e];if(s=typeof n,"string"===s&&(a=un.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(ae.css(t,e)),s="number"),null!=n&&n===n&&("number"!==s||ae.cssNumber[r]||(n+="px"),ne.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(t,n,i)))))try{l[e]=n}catch(c){}}},css:function(t,e,n,i){var a,s,o,r=ae.camelCase(e);return e=ae.cssProps[r]||(ae.cssProps[r]=k(t.style,r)),o=ae.cssHooks[e]||ae.cssHooks[r],o&&"get"in o&&(s=o.get(t,!0,n)),void 0===s&&(s=en(t,e,i)),"normal"===s&&e in hn&&(s=hn[e]),""===n||n?(a=parseFloat(s),n===!0||ae.isNumeric(a)?a||0:s):s}}),ae.each(["height","width"],function(t,e){ae.cssHooks[e]={get:function(t,n,i){return n?ln.test(ae.css(t,"display"))&&0===t.offsetWidth?ae.swap(t,dn,function(){return A(t,e,i)}):A(t,e,i):void 0},set:function(t,n,i){var a=i&&tn(t);return I(t,n,i?E(t,e,i,ne.boxSizing&&"border-box"===ae.css(t,"boxSizing",!1,a),a):0)}}}),ne.opacity||(ae.cssHooks.opacity={get:function(t,e){return rn.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,a=ae.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ae.trim(s.replace(on,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=on.test(s)?s.replace(on,a):s+" "+a)}}),ae.cssHooks.marginRight=D(ne.reliableMarginRight,function(t,e){return e?ae.swap(t,{display:"inline-block"},en,[t,"marginRight"]):void 0}),ae.each({margin:"",padding:"",border:"Width"},function(t,e){ae.cssHooks[t+e]={expand:function(n){for(var i=0,a={},s="string"==typeof n?n.split(" "):[n];4>i;i++)a[t+ke[i]+e]=s[i]||s[i-2]||s[0];return a}},nn.test(t)||(ae.cssHooks[t+e].set=I)}),ae.fn.extend({css:function(t,e){return Ie(this,function(t,e,n){var i,a,s={},o=0;if(ae.isArray(e)){for(i=tn(t),a=e.length;a>o;o++)s[e[o]]=ae.css(t,e[o],!1,i);return s}return void 0!==n?ae.style(t,e,n):ae.css(t,e)},t,e,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Pe(this)?ae(this).show():ae(this).hide()})}});ae.Tween=j,j.prototype={constructor:j,init:function(t,e,n,i,a,s){this.elem=t,this.prop=n,this.easing=a||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(ae.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.pos=e=this.options.duration?ae.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ae.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ae.fx.step[t.prop]?ae.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ae.cssProps[t.prop]]||ae.cssHooks[t.prop])?ae.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ae.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ae.fx=j.prototype.init,ae.fx.step={};var fn,mn,gn=/^(?:toggle|show|hide)$/,vn=new RegExp("^(?:([+-])=|)("+De+")([a-z%]*)$","i"),yn=/queueHooks$/,bn=[F],xn={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),a=vn.exec(e),s=a&&a[3]||(ae.cssNumber[t]?"":"px"),o=(ae.cssNumber[t]||"px"!==s&&+i)&&vn.exec(ae.css(n.elem,t)),r=1,l=20;if(o&&o[3]!==s){s=s||o[3],a=a||[],o=+i||1;do r=r||".5",o/=r,ae.style(n.elem,t,o+s);while(r!==(r=n.cur()/i)&&1!==r&&--l)}return a&&(o=n.start=+o||+i||0,n.unit=s,n.end=a[1]?o+(a[1]+1)*a[2]:+a[2]),n}]};ae.Animation=ae.extend(R,{tweener:function(t,e){ae.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,a=t.length;a>i;i++)n=t[i],xn[n]=xn[n]||[],xn[n].unshift(e)},prefilter:function(t,e){e?bn.unshift(t):bn.push(t)}}),ae.speed=function(t,e,n){var i=t&&"object"==typeof t?ae.extend({},t):{complete:n||!n&&e||ae.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ae.isFunction(e)&&e};return i.duration=ae.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ae.fx.speeds?ae.fx.speeds[i.duration]:ae.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ae.isFunction(i.old)&&i.old.call(this),i.queue&&ae.dequeue(this,i.queue)},i},ae.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Pe).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var a=ae.isEmptyObject(t),s=ae.speed(e,n,i),o=function(){var e=R(this,ae.extend({},t),s);(a||ae._data(this,"finish"))&&e.stop(!0)};return o.finish=o,a||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,a=null!=t&&t+"queueHooks",s=ae.timers,o=ae._data(this);if(a)o[a]&&o[a].stop&&i(o[a]);else for(a in o)o[a]&&o[a].stop&&yn.test(a)&&i(o[a]);for(a=s.length;a--;)s[a].elem!==this||null!=t&&s[a].queue!==t||(s[a].anim.stop(n),e=!1,s.splice(a,1));(e||!n)&&ae.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ae._data(this),i=n[t+"queue"],a=n[t+"queueHooks"],s=ae.timers,o=i?i.length:0;for(n.finish=!0,ae.queue(this,t,[]),a&&a.stop&&a.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ae.each(["toggle","show","hide"],function(t,e){var n=ae.fn[e];ae.fn[e]=function(t,i,a){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(O(e,!0),t,i,a)}}),ae.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ae.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ae.timers=[],ae.fx.tick=function(){var t,e=ae.timers,n=0;for(fn=ae.now();na",i=e.getElementsByTagName("a")[0],n=fe.createElement("select"),a=n.appendChild(fe.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",ne.getSetAttribute="t"!==e.className,ne.style=/top/.test(i.getAttribute("style")),ne.hrefNormalized="/a"===i.getAttribute("href"),ne.checkOn=!!t.value,ne.optSelected=a.selected,ne.enctype=!!fe.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!a.disabled,t=fe.createElement("input"),t.setAttribute("value",""),ne.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),ne.radioValue="t"===t.value}();var Cn=/\r/g;ae.fn.extend({val:function(t){var e,n,i,a=this[0];return arguments.length?(i=ae.isFunction(t),this.each(function(n){var a;1===this.nodeType&&(a=i?t.call(this,n,ae(this).val()):t,null==a?a="":"number"==typeof a?a+="":ae.isArray(a)&&(a=ae.map(a,function(t){return null==t?"":t+""})),e=ae.valHooks[this.type]||ae.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,a,"value")||(this.value=a))})):a?(e=ae.valHooks[a.type]||ae.valHooks[a.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(a,"value"))?n:(n=a.value,"string"==typeof n?n.replace(Cn,""):null==n?"":n)):void 0}}),ae.extend({valHooks:{option:{get:function(t){var e=ae.find.attr(t,"value");return null!=e?e:ae.trim(ae.text(t))}},select:{get:function(t){for(var e,n,i=t.options,a=t.selectedIndex,s="select-one"===t.type||0>a,o=s?null:[],r=s?a+1:i.length,l=0>a?r:s?a:0;r>l;l++)if(n=i[l],!(!n.selected&&l!==a||(ne.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ae.nodeName(n.parentNode,"optgroup"))){if(e=ae(n).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var n,i,a=t.options,s=ae.makeArray(e),o=a.length;o--;)if(i=a[o],ae.inArray(ae.valHooks.option.get(i),s)>=0)try{i.selected=n=!0}catch(r){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),a}}}}),ae.each(["radio","checkbox"],function(){ae.valHooks[this]={set:function(t,e){return ae.isArray(e)?t.checked=ae.inArray(ae(t).val(),e)>=0:void 0}},ne.checkOn||(ae.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var wn,Sn,Tn=ae.expr.attrHandle,_n=/^(?:checked|selected)$/i,Dn=ne.getSetAttribute,kn=ne.input;ae.fn.extend({attr:function(t,e){return Ie(this,ae.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ae.removeAttr(this,t)})}}),ae.extend({attr:function(t,e,n){var i,a,s=t.nodeType;return t&&3!==s&&8!==s&&2!==s?typeof t.getAttribute===Se?ae.prop(t,e,n):(1===s&&ae.isXMLDoc(t)||(e=e.toLowerCase(),i=ae.attrHooks[e]||(ae.expr.match.bool.test(e)?Sn:wn)),void 0===n?i&&"get"in i&&null!==(a=i.get(t,e))?a:(a=ae.find.attr(t,e),null==a?void 0:a):null!==n?i&&"set"in i&&void 0!==(a=i.set(t,n,e))?a:(t.setAttribute(e,n+""),n):void ae.removeAttr(t,e)):void 0},removeAttr:function(t,e){var n,i,a=0,s=e&&e.match(be);if(s&&1===t.nodeType)for(;n=s[a++];)i=ae.propFix[n]||n,ae.expr.match.bool.test(n)?kn&&Dn||!_n.test(n)?t[i]=!1:t[ae.camelCase("default-"+n)]=t[i]=!1:ae.attr(t,n,""),t.removeAttribute(Dn?n:i)},attrHooks:{type:{set:function(t,e){if(!ne.radioValue&&"radio"===e&&ae.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Sn={set:function(t,e,n){return e===!1?ae.removeAttr(t,n):kn&&Dn||!_n.test(n)?t.setAttribute(!Dn&&ae.propFix[n]||n,n):t[ae.camelCase("default-"+n)]=t[n]=!0,n}},ae.each(ae.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Tn[e]||ae.find.attr;Tn[e]=kn&&Dn||!_n.test(e)?function(t,e,i){var a,s;return i||(s=Tn[e],Tn[e]=a,a=null!=n(t,e,i)?e.toLowerCase():null,Tn[e]=s),a}:function(t,e,n){return n?void 0:t[ae.camelCase("default-"+e)]?e.toLowerCase():null}}),kn&&Dn||(ae.attrHooks.value={set:function(t,e,n){return ae.nodeName(t,"input")?void(t.defaultValue=e):wn&&wn.set(t,e,n)}}),Dn||(wn={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},Tn.id=Tn.name=Tn.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},ae.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:wn.set},ae.attrHooks.contenteditable={set:function(t,e,n){wn.set(t,""===e?!1:e,n)}},ae.each(["width","height"],function(t,e){ae.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),ne.style||(ae.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Pn=/^(?:input|select|textarea|button|object)$/i,In=/^(?:a|area)$/i;ae.fn.extend({prop:function(t,e){return Ie(this,ae.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ae.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),ae.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,a,s,o=t.nodeType;return t&&3!==o&&8!==o&&2!==o?(s=1!==o||!ae.isXMLDoc(t),s&&(e=ae.propFix[e]||e,a=ae.propHooks[e]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:t[e]=n:a&&"get"in a&&null!==(i=a.get(t,e))?i:t[e]):void 0},propHooks:{tabIndex:{get:function(t){var e=ae.find.attr(t,"tabindex");return e?parseInt(e,10):Pn.test(t.nodeName)||In.test(t.nodeName)&&t.href?0:-1}}}}),ne.hrefNormalized||ae.each(["href","src"],function(t,e){ae.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ne.optSelected||(ae.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ae.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ae.propFix[this.toLowerCase()]=this}),ne.enctype||(ae.propFix.enctype="encoding");var En=/[\t\r\n\f]/g;ae.fn.extend({addClass:function(t){var e,n,i,a,s,o,r=0,l=this.length,c="string"==typeof t&&t;if(ae.isFunction(t))return this.each(function(e){ae(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(be)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):" ")){s=0;for(;a=e[s++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");o=ae.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,i,a,s,o,r=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(ae.isFunction(t))return this.each(function(e){ae(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(be)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):"")){s=0;for(;a=e[s++];)for(;i.indexOf(" "+a+" ")>=0;)i=i.replace(" "+a+" "," ");o=t?ae.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(ae.isFunction(t)?function(n){ae(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,a=ae(this),s=t.match(be)||[];e=s[i++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else(n===Se||"boolean"===n)&&(this.className&&ae._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ae._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(En," ").indexOf(e)>=0)return!0;return!1}}),ae.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ae.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ae.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var An=ae.now(),jn=/\?/,Mn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ae.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,a=ae.trim(e+"");return a&&!ae.trim(a.replace(Mn,function(t,e,a,s){return n&&e&&(i=0),0===i?t:(n=a||e,i+=!s-!a,"")}))?Function("return "+a)():ae.error("Invalid JSON: "+e)},ae.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(a){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ae.error("Invalid XML: "+e),n};var On,Ln,Fn=/#.*$/,Nn=/([?&])_=[^&]*/,Rn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$n=/^(?:GET|HEAD)$/,Hn=/^\/\//,Un=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Wn={},zn={},qn="*/".concat("*");try{Ln=location.href}catch(Vn){Ln=fe.createElement("a"),Ln.href="",Ln=Ln.href}On=Un.exec(Ln.toLowerCase())||[];ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ln,type:"GET",isLocal:Bn.test(On[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ae.parseJSON,"text xml":ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?H(H(t,ae.ajaxSettings),e):H(ae.ajaxSettings,t)},ajaxPrefilter:B(Wn),ajaxTransport:B(zn),ajax:function(t,e){function n(t,e,n,i){var a,u,v,y,x,w=e;2!==b&&(b=2,r&&clearTimeout(r),c=void 0,o=i||"",C.readyState=t>0?4:0,a=t>=200&&300>t||304===t,n&&(y=U(d,C,n)),y=W(d,y,C,a),a?(d.ifModified&&(x=C.getResponseHeader("Last-Modified"),x&&(ae.lastModified[s]=x),x=C.getResponseHeader("etag"),x&&(ae.etag[s]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=y.state,u=y.data,v=y.error,a=!v)):(v=w,(t||!w)&&(w="error",0>t&&(t=0))),C.status=t,C.statusText=(e||w)+"",a?f.resolveWith(h,[u,w,C]):f.rejectWith(h,[C,w,v]),C.statusCode(g),g=void 0,l&&p.trigger(a?"ajaxSuccess":"ajaxError",[C,d,a?u:v]),m.fireWith(h,[C,w]),l&&(p.trigger("ajaxComplete",[C,d]),--ae.active||ae.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,a,s,o,r,l,c,u,d=ae.ajaxSetup({},e),h=d.context||d,p=d.context&&(h.nodeType||h.jquery)?ae(h):ae.event,f=ae.Deferred(),m=ae.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!u){u={};for(;e=Rn.exec(o);)u[e[1].toLowerCase()]=e[2]}e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)g[e]=[g[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return c&&c.abort(e),n(0,e),this}};if(f.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,d.url=((t||d.url||Ln)+"").replace(Fn,"").replace(Hn,On[1]+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=ae.trim(d.dataType||"*").toLowerCase().match(be)||[""],null==d.crossDomain&&(i=Un.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===On[1]&&i[2]===On[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(On[3]||("http:"===On[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ae.param(d.data,d.traditional)),$(Wn,d,e,C),2===b)return C;l=ae.event&&d.global,l&&0===ae.active++&&ae.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!$n.test(d.type),s=d.url,d.hasContent||(d.data&&(s=d.url+=(jn.test(s)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Nn.test(s)?s.replace(Nn,"$1_="+An++):s+(jn.test(s)?"&":"?")+"_="+An++)),d.ifModified&&(ae.lastModified[s]&&C.setRequestHeader("If-Modified-Since",ae.lastModified[s]),ae.etag[s]&&C.setRequestHeader("If-None-Match",ae.etag[s])),(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+qn+"; q=0.01":""):d.accepts["*"]);for(a in d.headers)C.setRequestHeader(a,d.headers[a]);if(d.beforeSend&&(d.beforeSend.call(h,C,d)===!1||2===b))return C.abort();x="abort";for(a in{success:1,error:1,complete:1})C[a](d[a]);if(c=$(zn,d,e,C)){C.readyState=1,l&&p.trigger("ajaxSend",[C,d]),d.async&&d.timeout>0&&(r=setTimeout(function(){C.abort("timeout")},d.timeout));try{b=1,c.send(v,n)}catch(w){if(!(2>b))throw w;n(-1,w)}}else n(-1,"No Transport");return C},getJSON:function(t,e,n){return ae.get(t,e,n,"json")},getScript:function(t,e){return ae.get(t,void 0,e,"script")}}),ae.each(["get","post"],function(t,e){ae[e]=function(t,n,i,a){return ae.isFunction(n)&&(a=a||i,i=n,n=void 0),ae.ajax({url:t,type:e,dataType:a,data:n,success:i})}}),ae._evalUrl=function(t){return ae.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ae.fn.extend({wrapAll:function(t){if(ae.isFunction(t))return this.each(function(e){ae(this).wrapAll(t.call(this,e))});if(this[0]){var e=ae(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(ae.isFunction(t)?function(e){ae(this).wrapInner(t.call(this,e))}:function(){var e=ae(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ae.isFunction(t);return this.each(function(n){ae(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ae.nodeName(this,"body")||ae(this).replaceWith(this.childNodes)}).end()}}),ae.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||ae.css(t,"display"))},ae.expr.filters.visible=function(t){return!ae.expr.filters.hidden(t)};var Yn=/%20/g,Xn=/\[\]$/,Gn=/\r?\n/g,Kn=/^(?:submit|button|image|reset|file)$/i,Qn=/^(?:input|select|textarea|keygen)/i;ae.param=function(t,e){var n,i=[],a=function(t,e){e=ae.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ae.ajaxSettings&&ae.ajaxSettings.traditional),ae.isArray(t)||t.jquery&&!ae.isPlainObject(t))ae.each(t,function(){a(this.name,this.value)});else for(n in t)z(n,t[n],e,a);return i.join("&").replace(Yn,"+")},ae.fn.extend({serialize:function(){return ae.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ae.prop(this,"elements");return t?ae.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ae(this).is(":disabled")&&Qn.test(this.nodeName)&&!Kn.test(t)&&(this.checked||!Ee.test(t))}).map(function(t,e){var n=ae(this).val();return null==n?null:ae.isArray(n)?ae.map(n,function(t){return{name:e.name,value:t.replace(Gn,"\r\n")}}):{name:e.name,value:n.replace(Gn,"\r\n")}}).get()}}),ae.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&q()||V()}:q;var Zn=0,Jn={},ti=ae.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Jn)Jn[t](void 0,!0)}),ne.cors=!!ti&&"withCredentials"in ti,ti=ne.ajax=!!ti,ti&&ae.ajaxTransport(function(t){if(!t.crossDomain||ne.cors){var e;return{send:function(n,i){var a,s=t.xhr(),o=++Zn;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(a in n)void 0!==n[a]&&s.setRequestHeader(a,n[a]+"");s.send(t.hasContent&&t.data||null),e=function(n,a){var r,l,c;if(e&&(a||4===s.readyState))if(delete Jn[o],e=void 0,s.onreadystatechange=ae.noop,a)4!==s.readyState&&s.abort();else{c={},r=s.status,"string"==typeof s.responseText&&(c.text=s.responseText);try{l=s.statusText}catch(u){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=c.text?200:404}c&&i(r,l,c,s.getAllResponseHeaders())},t.async?4===s.readyState?setTimeout(e):s.onreadystatechange=Jn[o]=e:e()},abort:function(){e&&e(void 0,!0)}}}});ae.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ae.globalEval(t),t}}}),ae.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ae.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=fe.head||ae("head")[0]||fe.documentElement;return{send:function(i,a){e=fe.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||a(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var ei=[],ni=/(=)\?(?=&|$)|\?\?/;ae.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ei.pop()||ae.expando+"_"+An++;return this[t]=!0,t}}),ae.ajaxPrefilter("json jsonp",function(e,n,i){var a,s,o,r=e.jsonp!==!1&&(ni.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(e.data)&&"data");return r||"jsonp"===e.dataTypes[0]?(a=e.jsonpCallback=ae.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(ni,"$1"+a):e.jsonp!==!1&&(e.url+=(jn.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||ae.error(a+" was not called"),o[0]},e.dataTypes[0]="json",s=t[a],t[a]=function(){o=arguments},i.always(function(){t[a]=s,e[a]&&(e.jsonpCallback=n.jsonpCallback,ei.push(a)),o&&ae.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),ae.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||fe;var i=de.exec(t),a=!n&&[];return i?[e.createElement(i[1])]:(i=ae.buildFragment([t],e,a),a&&a.length&&ae(a).remove(),ae.merge([],i.childNodes))};var ii=ae.fn.load;ae.fn.load=function(t,e,n){if("string"!=typeof t&&ii)return ii.apply(this,arguments);var i,a,s,o=this,r=t.indexOf(" ");return r>=0&&(i=ae.trim(t.slice(r,t.length)),t=t.slice(0,r)),ae.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(s="POST"),o.length>0&&ae.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){a=arguments,o.html(i?ae("").append(ae.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){o.each(n,a||[t.responseText,e,t])}),this},ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ae.fn[e]=function(t){return this.on(e,t)}}),ae.expr.filters.animated=function(t){return ae.grep(ae.timers,function(e){return t===e.elem}).length};var ai=t.document.documentElement;ae.offset={setOffset:function(t,e,n){var i,a,s,o,r,l,c,u=ae.css(t,"position"),d=ae(t),h={};"static"===u&&(t.style.position="relative"),r=d.offset(),s=ae.css(t,"top"),l=ae.css(t,"left"),c=("absolute"===u||"fixed"===u)&&ae.inArray("auto",[s,l])>-1,c?(i=d.position(),o=i.top,a=i.left):(o=parseFloat(s)||0,a=parseFloat(l)||0),ae.isFunction(e)&&(e=e.call(t,n,r)),null!=e.top&&(h.top=e.top-r.top+o),null!=e.left&&(h.left=e.left-r.left+a),"using"in e?e.using.call(t,h):d.css(h)}},ae.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ae.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},a=this[0],s=a&&a.ownerDocument;return s?(e=s.documentElement,ae.contains(e,a)?(typeof a.getBoundingClientRect!==Se&&(i=a.getBoundingClientRect()),n=Y(s),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ae.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ae.nodeName(t[0],"html")||(n=t.offset()),n.top+=ae.css(t[0],"borderTopWidth",!0),n.left+=ae.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ae.css(i,"marginTop",!0),left:e.left-n.left-ae.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ai;t&&!ae.nodeName(t,"html")&&"static"===ae.css(t,"position");)t=t.offsetParent;return t||ai})}}),ae.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ae.fn[t]=function(i){return Ie(this,function(t,i,a){var s=Y(t);return void 0===a?s?e in s?s[e]:s.document.documentElement[i]:t[i]:void(s?s.scrollTo(n?ae(s).scrollLeft():a,n?a:ae(s).scrollTop()):t[i]=a)},t,i,arguments.length,null)}}),ae.each(["top","left"],function(t,e){ae.cssHooks[e]=D(ne.pixelPosition,function(t,n){return n?(n=en(t,e),an.test(n)?ae(t).position()[e]+"px":n):void 0})}),ae.each({Height:"height",Width:"width"},function(t,e){ae.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ae.fn[i]=function(i,a){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||a===!0?"margin":"border");return Ie(this,function(e,n,i){var a;return ae.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===i?ae.css(e,n,o):ae.style(e,n,i,o)
-},e,s?i:void 0,s,null)}})}),ae.fn.size=function(){return this.length},ae.fn.andSelf=ae.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ae});var si=t.jQuery,oi=t.$;return ae.noConflict=function(e){return t.$===ae&&(t.$=oi),e&&t.jQuery===ae&&(t.jQuery=si),ae},typeof e===Se&&(t.jQuery=t.$=ae),ae});define("app/init",["jquery"],function(){var t={path:{img:"public/img/",getCaptcha:"api/user/getCaptcha",logIn:"api/user/logIn",logOut:"api/user/logOut",deleteLog:"api/user/deleteLog",saveUserConfig:"api/user/saveConfig",saveSharingConfig:"api/user/saveSharingConfig",searchAccess:"api/access/search",initMap:"api/map/init",updateMapData:"api/map/updateData",updateUserData:"api/map/updateUserData",saveMap:"api/map/save",deleteMap:"api/map/delete",searchSystem:"api/system/search",saveSystem:"api/system/save",deleteSystem:"api/system/delete",getSystemGraphData:"api/system/graphData",getConstellationData:"api/system/constellationData",saveConnection:"api/connection/save",deleteConnection:"api/connection/delete",getSignatures:"api/signature/getAll",saveSignatureData:"api/signature/save",deleteSignatureData:"api/signature/delete",searchRoute:"api/route/search"},url:{ccpImageServer:"https://image.eveonline.com/",zKillboard:"https://zkillboard.com/api/"},animationSpeed:{splashOverlay:300,headerLink:100,mapOverlay:200,mapMoveSystem:300,mapDeleteSystem:200,mapModule:200,dialogEvents:180},mapIcons:[{"class":"fa-desktop",label:"desktop",unicode:""},{"class":"fa-bookmark",label:"bookmark",unicode:""},{"class":"fa-cube",label:"cube",unicode:""},{"class":"fa-plane",label:"plane",unicode:""},{"class":"fa-globe",label:"globe",unicode:""},{"class":"fa-rocket",label:"rocket",unicode:""},{"class":"fa-life-ring",label:"life ring",unicode:""},{"class":"fa-heart",label:"heart",unicode:""}],classes:{logTypes:{info:{"class":"pf-log-info",label:"info"},warning:{"class":"pf-log-warning",label:"warning"},error:{"class":"pf-log-error",label:"error"}},systemEffects:{effect:{"class":"pf-system-effect",name:"no effect"},magnetar:{"class":"pf-system-effect-magnetar",name:"magnetar"},redGiant:{"class":"pf-system-effect-redgiant",name:"red gaint"},pulsar:{"class":"pf-system-effect-pulsar",name:"pulsar"},wolfRayet:{"class":"pf-system-effect-wolfrayet",name:"wolf rayet"},cataclysmic:{"class":"pf-system-effect-cataclysmic",name:"cytaclysmic"},blackHole:{"class":"pf-system-effect-blackhole",name:"black hole"}},systemSecurity:{security:{"class":"pf-system-sec"},H:{"class":"pf-system-sec-highSec"},L:{"class":"pf-system-sec-lowSec"},"0.0":{"class":"pf-system-sec-nullSec"},C6:{"class":"pf-system-sec-high"},C5:{"class":"pf-system-sec-high"},C4:{"class":"pf-system-sec-mid"},C3:{"class":"pf-system-sec-mid"},C2:{"class":"pf-system-sec-low"},C1:{"class":"pf-system-sec-low"}},trueSec:{"0.0":{"class":"pf-system-security-0-0"},.1:{"class":"pf-system-security-0-1"},.2:{"class":"pf-system-security-0-2"},.3:{"class":"pf-system-security-0-3"},.4:{"class":"pf-system-security-0-4"},.5:{"class":"pf-system-security-0-5"},.6:{"class":"pf-system-security-0-6"},.7:{"class":"pf-system-security-0-7"},.8:{"class":"pf-system-security-0-8"},.9:{"class":"pf-system-security-0-9"},"1.0":{"class":"pf-system-security-1-0"}},systemInfo:{rally:{"class":"pf-system-info-rally",label:"rally point"}},pieChart:{"class":"pf-pie-chart",pieChartMapCounterClass:"pf-pie-chart-map-timer"}},defaultMapScope:"wh",connectionTypes:{jumpbridge:{cssClass:"pf-map-connection-jumpbridge",paintStyle:{dashstyle:"4 2 1 2"}},stargate:{cssClass:"pf-map-connection-stargate",paintStyle:{dashstyle:"0"}},wh_eol:{cssClass:"pf-map-connection-wh-eol",paintStyle:{dashstyle:"0"}},wh_fresh:{cssClass:"pf-map-connection-wh-fresh",paintStyle:{dashstyle:"0"}},wh_reduced:{cssClass:"pf-map-connection-wh-reduced",paintStyle:{dashstyle:"0"}},wh_critical:{cssClass:"pf-map-connection-wh-critical",paintStyle:{dashstyle:"0"}},frigate:{cssClass:"pf-map-connection-frig",paintStyle:{dashstyle:"0.99"},overlays:[["Label",{label:"frig",cssClass:["pf-map-connection-overlay","frig"].join(" ")}]]},preserve_mass:{cssClass:"pf-map-connection-preserve-mass",overlays:[["Label",{label:'
save mass',cssClass:["pf-map-connection-overlay","mass"].join(" "),width:50,length:30,location:.5}]]}},signatureGroups:{1:{name:"combat site",label:"Combat"},2:{name:"relic site",label:"Relic"},3:{name:"data site",label:"Data"},4:{name:"gas site",label:"Gas"},5:{name:"wormhole",label:"Wormhole"},6:{name:"ore site",label:"Ore"},7:{name:"ghost",label:"Ghost"}},frigateWormholes:{1:{},2:{1:"L005 - C2",2:"C008 - C5",3:"Q003 - 0.0"},3:{1:"E004 - C1",2:"L005 - C2",3:"M001 - C4"},4:{1:"L005 - C2",2:"G008 - C6",3:"Q003 - 0.0"},5:{1:"E004 - C1",2:"L005 - C2",3:"Z006 - C3",4:"C008 - C5",5:"Q003 - 0.0"},6:{1:"E004 - C1",2:"Z006 - C3",5:"Q003 - 0.0"}},incomingWormholes:{1:"K162 - C1/2/3 (unknown)",2:"K162 - C4/5 (dangerous)",3:"K162 - C6 (deadly)"}};return t});define("config/system_effect",[],function(){var t={wh:{magnetar:{1:[{effect:"Damage",value:"+30%"},{effect:"Missile explosion radius",value:"+15%"},{effect:"Drone Tracking",value:"-15%"},{effect:"Targeting Range",value:"-15%"},{effect:"Tracking Speed",value:"-15%"},{effect:"Target Painter Strength",value:"-15%"}],2:[{effect:"Damage",value:"+44%"},{effect:"Missile explosion radius",value:"+22%"},{effect:"Drone Tracking",value:"-22%"},{effect:"Targeting Range",value:"-22%"},{effect:"Tracking Speed",value:"-22%"},{effect:"Target Painter Strength",value:"-22%"}],3:[{effect:"Damage",value:"+58%"},{effect:"Missile explosion radius",value:"+29%"},{effect:"Drone Tracking",value:"-29%"},{effect:"Targeting Range",value:"-29%"},{effect:"Tracking Speed",value:"-29%"},{effect:"Target Painter Strength",value:"-29%"}],4:[{effect:"Damage",value:"+72%"},{effect:"Missile explosion radius",value:"+36%"},{effect:"Drone Tracking",value:"-36%"},{effect:"Targeting Range",value:"-36%"},{effect:"Tracking Speed",value:"-36%"},{effect:"Target Painter Strength",value:"-36%"}],5:[{effect:"Damage",value:"+86%"},{effect:"Missile explosion radius",value:"+43%"},{effect:"Drone Tracking",value:"-43%"},{effect:"Targeting Range",value:"-43%"},{effect:"Tracking Speed",value:"-43%"},{effect:"Target Painter Strength",value:"-43%"}],6:[{effect:"Damage",value:"+100%"},{effect:"Missile explosion radius",value:"+50%"},{effect:"Drone Tracking",value:"-50%"},{effect:"Targeting Range",value:"-50%"},{effect:"Tracking Speed",value:"-50%"},{effect:"Target Painter Strength",value:"-50%"}]},redGiant:{1:[{effect:"Heat Damage",value:"+15%"},{effect:"Overload Bonus",value:"+30%"},{effect:"Smart Bomb Range",value:"+30%"},{effect:"Smart Bomb Damage",value:"+30%"},{effect:"Bomb Damage",value:"+30%"}],2:[{effect:"Heat Damage",value:"+22%"},{effect:"Overload Bonus",value:"+44%"},{effect:"Smart Bomb Range",value:"+44%"},{effect:"Smart Bomb Damage",value:"+44%"},{effect:"Bomb Damage",value:"+44%"}],3:[{effect:"Heat Damage",value:"+29%"},{effect:"Overload Bonus",value:"+58%"},{effect:"Smart Bomb Range",value:"+58%"},{effect:"Smart Bomb Damage",value:"+58%"},{effect:"Bomb Damage",value:"+58%"}],4:[{effect:"Heat Damage",value:"+36%"},{effect:"Overload Bonus",value:"+72%"},{effect:"Smart Bomb Range",value:"+72%"},{effect:"Smart Bomb Damage",value:"+72%"},{effect:"Bomb Damage",value:"+72%"}],5:[{effect:"Heat Damage",value:"+43%"},{effect:"Overload Bonus",value:"+86%"},{effect:"Smart Bomb Range",value:"+86%"},{effect:"Smart Bomb Damage",value:"+86%"},{effect:"Bomb Damage",value:"+86%"}],6:[{effect:"Heat Damage",value:"+50%"},{effect:"Overload Bonus",value:"+100%"},{effect:"Smart Bomb Range",value:"+100%"},{effect:"Smart Bomb Damage",value:"+100%"},{effect:"Bomb Damage",value:"+100%"}]},pulsar:{1:[{effect:"Shield HP",value:"+30%"},{effect:"Armor Resists",value:"-15%"},{effect:"Capacitor recharge",value:"-15%"},{effect:"Signature",value:"+30%"},{effect:"NOS / Neut Drain Amount",value:"+30%"}],2:[{effect:"Shield HP",value:"+44%"},{effect:"Armor Resists",value:"-22%"},{effect:"Capacitor recharge",value:"-22%"},{effect:"Signature",value:"+44%"},{effect:"NOS / Neut Drain Amount",value:"+44%"}],3:[{effect:"Shield HP",value:"+58%"},{effect:"Armor Resists",value:"-29%"},{effect:"Capacitor recharge",value:"-29%"},{effect:"Signature",value:"+58%"},{effect:"NOS / Neut Drain Amount",value:"+58%"}],4:[{effect:"Shield HP",value:"+72%"},{effect:"Armor Resists",value:"-36%"},{effect:"Capacitor recharge",value:"-36%"},{effect:"Signature",value:"+72%"},{effect:"NOS / Neut Drain Amount",value:"+72%"}],5:[{effect:"Shield HP",value:"+86%"},{effect:"Armor Resists",value:"-43%"},{effect:"Capacitor recharge",value:"-43%"},{effect:"Signature",value:"+86%"},{effect:"NOS / Neut Drain Amount",value:"+86%"}],6:[{effect:"Shield HP",value:"+100%"},{effect:"Armor Resists",value:"-50%"},{effect:"Capacitor recharge",value:"-50%"},{effect:"Signature",value:"+100%"},{effect:"NOS / Neut Drain Amount",value:"+100%"}]},wolfRayet:{1:[{effect:"Armor HP",value:"+30%"},{effect:"Shield Resist",value:"-15%"},{effect:"Small Weapon Damage",value:"+60%"},{effect:"Signature Size",value:"-15%"}],2:[{effect:"Armor HP",value:"+44%"},{effect:"Shield Resist",value:"-22%"},{effect:"Small Weapon Damage",value:"+88%"},{effect:"Signature Size",value:"-22%"}],3:[{effect:"Armor HP",value:"+58%"},{effect:"Shield Resist",value:"-29%"},{effect:"Small Weapon Damage",value:"+116%"},{effect:"Signature Size",value:"-29%"}],4:[{effect:"Armor HP",value:"+72%"},{effect:"Shield Resist",value:"-36%"},{effect:"Small Weapon Damage",value:"+144%"},{effect:"Signature Size",value:"-36%"}],5:[{effect:"Armor HP",value:"+86%"},{effect:"Shield Resist",value:"-43%"},{effect:"Small Weapon Damage",value:"+172%"},{effect:"Signature Size",value:"-43%"}],6:[{effect:"Armor HP",value:"+100%"},{effect:"Shield Resist",value:"-50%"},{effect:"Small Weapon Damage",value:"+200%"},{effect:"Signature Size",value:"-50%"}]},cataclysmic:{1:[{effect:"Local armor repair amount",value:"-15%"},{effect:"Local shield boost amount",value:"-15%"},{effect:"Shield transfer amount",value:"+30%"},{effect:"Remote repair amount",value:"+30%"},{effect:"Capacitor capacity",value:"+30%"},{effect:"Capacitor recharge time",value:"+15%"},{effect:"Remote Capacitor Transmitter amount",value:"-15%"}],2:[{effect:"Local armor repair amount",value:"-22%"},{effect:"Local shield boost amount",value:"-22%"},{effect:"Shield transfer amount",value:"+44%"},{effect:"Remote repair amount",value:"+44%"},{effect:"Capacitor capacity",value:"+44%"},{effect:"Capacitor recharge time",value:"+22%"},{effect:"Remote Capacitor Transmitter amount",value:"-22%"}],3:[{effect:"Local armor repair amount",value:"-29%"},{effect:"Local shield boost amount",value:"-29%"},{effect:"Shield transfer amount",value:"+58%"},{effect:"Remote repair amount",value:"+58%"},{effect:"Capacitor capacity",value:"+58%"},{effect:"Capacitor recharge time",value:"+29%"},{effect:"Remote Capacitor Transmitter amount",value:"-29%"}],4:[{effect:"Local armor repair amount",value:"-36%"},{effect:"Local shield boost amount",value:"-36%"},{effect:"Shield transfer amount",value:"+72%"},{effect:"Remote repair amount",value:"+72%"},{effect:"Capacitor capacity",value:"+72%"},{effect:"Capacitor recharge time",value:"+36%"},{effect:"Remote Capacitor Transmitter amount",value:"-36%"}],5:[{effect:"Local armor repair amount",value:"-43%"},{effect:"Local shield boost amount",value:"-43%"},{effect:"Shield transfer amount",value:"+86%"},{effect:"Remote repair amount",value:"+86%"},{effect:"Capacitor capacity",value:"+86%"},{effect:"Capacitor recharge time",value:"+43%"},{effect:"Remote Capacitor Transmitter amount",value:"-43%"}],6:[{effect:"Local armor repair amount",value:"-50%"},{effect:"Local shield boost amount",value:"-50%"},{effect:"Shield transfer amount",value:"+100%"},{effect:"Remote repair amount",value:"+100%"},{effect:"Capacitor capacity",value:"+100%"},{effect:"Capacitor recharge time",value:"+50%"},{effect:"Remote Capacitor Transmitter amount",value:"-50%"}]},blackHole:{1:[{effect:"Missile velocity",value:"+15%"},{effect:"Missile Explosion Velocity",value:"+30%"},{effect:"Ship velocity",value:"+30%"},{effect:"Stasis Webifier Strength",value:"-15%"},{effect:"Inertia",value:"+15%"},{effect:"Targeting range",value:"+30%"}],2:[{effect:"Missile velocity",value:"+22%"},{effect:"Missile Explosion Velocity",value:"+44%"},{effect:"Ship velocity",value:"+44%"},{effect:"Stasis Webifier Strength",value:"-22%"},{effect:"Inertia",value:"+22%"},{effect:"Targeting range",value:"+44%"}],3:[{effect:"Missile velocity",value:"+29%"},{effect:"Missile Explosion Velocity",value:"+58%"},{effect:"Ship velocity",value:"+58%"},{effect:"Stasis Webifier Strength",value:"-29%"},{effect:"Inertia",value:"+29%"},{effect:"Targeting range",value:"+58%"}],4:[{effect:"Missile velocity",value:"+36%"},{effect:"Missile Explosion Velocity",value:"+72%"},{effect:"Ship velocity",value:"+72%"},{effect:"Stasis Webifier Strength",value:"-36%"},{effect:"Inertia",value:"+36%"},{effect:"Targeting range",value:"+72%"}],5:[{effect:"Missile velocity",value:"+43%"},{effect:"Missile Explosion Velocity",value:"+86%"},{effect:"Ship velocity",value:"+86%"},{effect:"Stasis Webifier Strength",value:"-43%"},{effect:"Inertia",value:"+43%"},{effect:"Targeting range",value:"+86%"}],6:[{effect:"Missile velocity",value:"+50%"},{effect:"Missile Explosion Velocity",value:"+100%"},{effect:"Ship velocity",value:"+100%"},{effect:"Stasis Webifier Strength",value:"-50%"},{effect:"Inertia",value:"+50%"},{effect:"Targeting range",value:"+100%"}]}}};return t});define("config/signature_type",[],function(){var t={1:{1:{1:{1:"Perimeter Ambush Point",2:"Perimeter Camp",3:"Phase Catalyst Node",4:"The Line"},2:{1:"Forgotten Perimeter Coronation Platform",2:"Forgotten Perimeter Power Array"},3:{1:"Unsecured Perimeter Amplifier",2:"Unsecured Perimeter Information Center "},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{1:"H121 - C1",2:"C125 - C2",3:"O883 - C3",4:"M609 - C4",5:"L614 - C5",6:"S804 - C6"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},2:{1:{1:"Perimeter Checkpoint",2:"Perimeter Hangar",3:"The Ruins of Enclave Cohort 27",4:"Sleeper Data Sanctuary"},2:{1:"Forgotten Perimeter Gateway",2:"Forgotten Perimeter Habitation Coils"},3:{1:"Unsecured Perimeter Comms Relay",2:"Unsecured Perimeter Transponder Farm "},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir"},5:{},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Isolated Core Deposit",6:"Uncommon Core Deposit"},7:{}},3:{1:{1:"Fortification Frontier Stronghold",2:"Outpost Frontier Stronghold",3:"Solar Cell",4:"The Oruze Construct"},2:{1:"Forgotten Frontier Quarantine Outpost",2:"Forgotten Frontier Recursive Depot"},3:{1:"Unsecured Frontier Database",2:"Unsecured Frontier Receiver"},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Bountiful Frontier Reservoir",7:"Vast Frontier Reservoir"},5:{1:"V301 - C1",2:"I182 - C2",3:"N968 - C3",4:"T405 - C4",5:"N770 - C5",6:"A982 - C6"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Infrequent Core Deposit",6:"Unusual Core Deposit"},7:{}},4:{1:{1:"Frontier Barracks",2:"Frontier Command Post",3:"Integrated Terminus",4:"Sleeper Information Sanctum"},2:{1:"Forgotten Frontier Conversion Module",2:"Forgotten Frontier Evacuation Center"},3:{1:"Unsecured Frontier Digital Nexus",2:"Unsecured Frontier Trinary Hub"},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Minor Perimeter Reservoir",4:"Sizeable Perimeter Reservoir",5:"Ordinary Perimeter Reservoir",6:"Vast Frontier Reservoir"},5:{},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Unusual Core Deposit"},7:{}},5:{1:{1:"Core Garrison",2:"Core Stronghold",3:"Oruze Osobnyk",4:"Quarantine Area"},2:{1:"Forgotten Core Data Field",2:"Forgotten Core Information Pen"},3:{1:"Unsecured Frontier Enclave Relay",2:"Unsecured Frontier Server Bank"},4:{1:"Barren Perimeter Reservoir",2:"Token Perimeter Reservoir",3:"Sizeable Perimeter Reservoir",4:"Ordinary Perimeter Reservoir",5:"Bountiful Frontier Reservoir",6:"Instrumental Core Reservoir",7:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C140 - LS",3:"Z142 - 0.0"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Rarified Core Deposit"},7:{}},6:{1:{1:"Core Citadel",2:"Core Bastion",3:"Strange Energy Readings",4:"The Mirror"},2:{1:"Forgotten Core Assembly Hall",2:"Forgotten Core Circuitry Disassembler"},3:{1:"Unsecured Core Backup Array",2:"Unsecured Core Emergence"},4:{1:"Token Perimeter Reservoir",2:"Minor Perimeter Reservoir",3:"Sizeable Perimeter Reservoir",4:"Ordinary Perimeter Reservoir",5:"Bountiful Frontier Reservoir",6:"Vast Frontier Reservoir",7:"Instrumental Core Reservoir",8:"Vital Core Reservoir"},5:{1:"D792 - HS",2:"C391 - LS",3:"Z142 - 0.0"},6:{1:"Ordinary Perimeter Deposit",2:"Common Perimeter Deposit",3:"Unexceptional Frontier Deposit",4:"Average Frontier Deposit",5:"Rarified Core Deposit"},7:{1:"Superior Blood Raider Covert Research Facility"}}},2:{10:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"M555 - C5",5:"B041 - C6",6:"A641 - HS",7:"R051 - LS",8:"V283 - NS"}},11:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - NS"}},12:{5:{1:"Z971 - C1",2:"R943 - C2",3:"X702 - C3",4:"N432 - C5",5:"U319 - C6",6:"B449 - HS",7:"N944 - LS",8:"S199 - NS"}}}};return t});if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var a=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(a,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){function e(e){return this.each(function(){var n=t(this),a=n.data("bs.alert");a||n.data("bs.alert",a=new i(this)),"string"==typeof e&&a[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.0",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){o.detach().trigger("closed.bs.alert").remove()}var a=t(this),s=a.attr("data-target");s||(s=a.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var o=t(s);e&&e.preventDefault(),o.length||(o=a.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var a=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=a,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.button"),s="object"==typeof e&&e;a||i.data("bs.button",a=new n(this,s)),"toggle"==e?a.toggle():e&&a.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.0",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,a=i.is("input")?"val":"html",s=i.data();e+="Text",null==s.resetText&&i.data("resetText",i[a]()),setTimeout(t.proxy(function(){i[a](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus","focus"==e.type)})}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.carousel"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o="string"==typeof e?e:s.slide;a||i.data("bs.carousel",a=new n(this,s)),"number"==typeof e?a.to(e):o?a[o]():s.interval&&a.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.0",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n="prev"==t?-1:1,i=this.getItemIndex(e),a=(i+n)%this.$items.length;return this.$items.eq(a)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var a=this.$element.find(".item.active"),s=i||this.getItemForDirection(e,a),o=this.interval,r="next"==e?"left":"right",l="next"==e?"first":"last",c=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[l]()}if(s.hasClass("active"))return this.sliding=!1;var u=s[0],d=t.Event("slide.bs.carousel",{relatedTarget:u,direction:r});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(s)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:u,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,a.addClass(r),s.addClass(r),a.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),a.removeClass(["active",r].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger(p)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(a.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(p)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var a=function(n){var i,a=t(this),s=t(a.attr("data-target")||(i=a.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var o=t.extend({},s.data(),a.data()),r=a.attr("data-slide-to");r&&(o.interval=!1),e.call(s,o),r&&s.data("bs.carousel").to(r),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",a).on("click.bs.carousel.data-api","[data-slide-to]",a),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),a=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!a&&s.toggle&&"show"==e&&(s.toggle=!1),a||n.data("bs.collapse",a=new i(this,s)),"string"==typeof e&&a[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.0",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,a=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(a&&a.length&&(e=a.data("bs.collapse"),e&&e.transitioning))){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){a&&a.length&&(n.call(a,"hide"),e||a.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION):a.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var a=t(i);this.addAriaAndCollapsedClass(e(a),a)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var a=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=a,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var a=t(this);a.attr("data-target")||i.preventDefault();var s=e(a),o=s.data("bs.collapse"),r=o?"toggle":t.extend({},a.data(),{trigger:this});n.call(s,r)})}(jQuery),+function(t){function e(e){e&&3===e.which||(t(a).remove(),t(s).each(function(){var i=t(this),a=n(i),s={relatedTarget:this};a.hasClass("open")&&(a.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||(i.attr("aria-expanded","false"),a.removeClass("open").trigger("hidden.bs.dropdown",s)))}))}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)})}var a=".dropdown-backdrop",s='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.0",o.prototype.toggle=function(i){var a=t(this);if(!a.is(".disabled, :disabled")){var s=n(a),o=s.hasClass("open");if(e(),!o){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('
').insertAfter(t(this)).on("click",e);var r={relatedTarget:this};if(s.trigger(i=t.Event("show.bs.dropdown",r)),i.isDefaultPrevented())return;a.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger("shown.bs.dropdown",r)}return!1}},o.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var a=n(i),o=a.hasClass("open");if(!o&&27!=e.which||o&&27==e.which)return 27==e.which&&a.find(s).trigger("focus"),i.trigger("click");var r=" li:not(.divider):visible a",l=a.find('[role="menu"]'+r+', [role="listbox"]'+r);if(l.length){var c=l.index(e.target);38==e.which&&c>0&&c--,40==e.which&&c
').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},n.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},n.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),a=i.attr("href"),s=t(i.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),o=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(a)&&a},s.data(),i.data());i.is("a")&&n.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(s,o,this)})}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.tooltip"),s="object"==typeof e&&e,o=s&&s.selector;(a||"destroy"!=e)&&(o?(a||i.data("bs.tooltip",a={}),a[o]||(a[o]=new n(this,s))):a||i.data("bs.tooltip",a=new n(this,s)),"string"==typeof e&&a[e]())})}var n=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};n.VERSION="3.3.0",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var a=this.options.trigger.split(" "),s=a.length;s--;){var o=a[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var a=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(r);c&&(r=r.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var u=this.getPosition(),d=s[0].offsetWidth,h=s[0].offsetHeight;if(c){var p=r,f=this.options.container?t(this.options.container):this.$element.parent(),m=this.getPosition(f);r="bottom"==r&&u.bottom+h>m.bottom?"top":"top"==r&&u.top-h
m.width?"left":"left"==r&&u.left-do.top+o.height&&(a.top=o.top+o.height-l)}else{var c=e.left-s,u=e.left+s+n;co.width&&(a.left=o.left+o.width-u)}return a},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.popover"),s="object"==typeof e&&e,o=s&&s.selector;(a||"destroy"!=e)&&(o?(a||i.data("bs.popover",a={}),a[o]||(a[o]=new n(this,s))):a||i.data("bs.popover",a=new n(this,s)),"string"==typeof e&&a[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.0",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){function e(n,i){var a=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(n).is("body")?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),a=i.data("bs.scrollspy"),s="object"==typeof n&&n;a||i.data("bs.scrollspy",a=new e(this,s)),"string"==typeof n&&a[n]()})}e.VERSION="3.3.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",n=0;t.isWindow(this.$scrollElement[0])||(e="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var i=t(this),a=i.data("target")||i.attr("href"),s=/^#./.test(a)&&t(a);return s&&s.length&&s.is(":visible")&&[[s[e]().top+n,a]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),a=this.offsets,s=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=s[s.length-1])&&this.activate(t);if(o&&e=a[t]&&(!a[t+1]||e<=a[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.tab");a||i.data("bs.tab",a=new n(this)),"string"==typeof e&&a[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.0",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var a=n.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:a[0]});if(a.trigger(s),e.trigger(o),!o.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=t(i);this.activate(e.closest("li"),n),this.activate(r,r.parent(),function(){a.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:a[0]})})}}},n.prototype.activate=function(e,i,a){function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),a&&a()}var o=i.find("> .active"),r=a&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var a=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery),+function(t){function e(e){return this.each(function(){var i=t(this),a=i.data("bs.affix"),s="object"==typeof e&&e;a||i.data("bs.affix",a=new n(this,s)),"string"==typeof e&&a[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.0",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var a=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return n>a?"top":!1;if("bottom"==this.affixed)return null!=n?a+this.unpin<=s.top?!1:"bottom":t-i>=a+o?!1:"bottom";var r=null==this.affixed,l=r?a:s.top,c=r?o:e;return null!=n&&n>=l?"top":null!=i&&l+c>=t-i?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,a=i.top,s=i.bottom,o=t("body").height();"object"!=typeof i&&(s=a=i),"function"==typeof a&&(a=i.top(this.$element)),"function"==typeof s&&(s=i.bottom(this.$element));var r=this.getState(o,e,a,s);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:o-e-s})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery);define("bootstrap",["jquery"],function(){});!function(t,e){"function"==typeof define&&define.amd?define("bootbox",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function t(e,n){function i(t){var e=g[f.locale];return e?e[t]:g.en[t]}function a(t,n,i){t.stopPropagation(),t.preventDefault();var a=e.isFunction(i)&&i.call(n,t)===!1;a||n.modal("hide")}function s(t){var e,n=0;for(e in t)n++;return n}function o(t,n){var i=0;e.each(t,function(t,e){n(t,e,i++)})}function r(t){var n,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},f,t),t.buttons||(t.buttons={}),n=t.buttons,i=s(n),o(n,function(t,a,s){if(e.isFunction(a)&&(a=n[t]={callback:a}),"object"!==e.type(a))throw new Error("button with key "+t+" must be an object");a.label||(a.label=t),a.className||(a.className=2>=i&&s===i-1?"btn-primary":"btn-default")}),t}function l(t,e){var n=t.length,i={};if(1>n||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof t[0]?(i[e[0]]=t[0],i[e[1]]=t[1]):i=t[0],i}function c(t,n,i){return e.extend(!0,{},t,l(n,i))}function u(t,e,n,i){var a={className:"bootbox-"+t,buttons:d.apply(null,e)};return h(c(a,i,n),e)}function d(){for(var t={},e=0,n=arguments.length;n>e;e++){var a=arguments[e],s=a.toLowerCase(),o=a.toUpperCase();t[s]={label:i(o)}}return t}function h(t,e){var i={};return o(e,function(t,e){i[e]=!0}),o(t.buttons,function(t){if(i[t]===n)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t}var p={dialog:"",header:"",footer:"",closeButton:"",form:"",inputs:{text:"",textarea:"",email:"",select:"",checkbox:"",date:"",time:"",number:"",password:""}},f={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},m={};m.alert=function(){var t;if(t=u("alert",["ok"],["message","callback"],arguments),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return e.isFunction(t.callback)?t.callback.call(this):!0},m.dialog(t)},m.confirm=function(){var t;if(t=u("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return m.dialog(t)},m.prompt=function(){var t,i,a,s,r,l,u;if(s=e(p.form),i={className:"bootbox-prompt",buttons:d("cancel","confirm"),value:"",inputType:"text"},t=h(c(i,arguments,["title","callback"]),["cancel","confirm"]),l=t.show===n?!0:t.show,t.message=s,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var n;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=r.val();break;case"checkbox":var i=r.find("input:checked");n=[],o(i,function(t,i){n.push(e(i).val())})}return t.callback.call(this,n)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");if(!p.inputs[t.inputType])throw new Error("invalid prompt type");switch(r=e(p.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":r.val(t.value);break;case"select":var f={};if(u=t.inputOptions||[],!e.isArray(u))throw new Error("Please pass an array of input options");if(!u.length)throw new Error("prompt with select requires options");o(u,function(t,i){var a=r;if(i.value===n||i.text===n)throw new Error("given options in wrong format");i.group&&(f[i.group]||(f[i.group]=e("").attr("label",i.group)),a=f[i.group]),a.append("")}),o(f,function(t,e){r.append(e)}),r.val(t.value);break;case"checkbox":var g=e.isArray(t.value)?t.value:[t.value];if(u=t.inputOptions||[],!u.length)throw new Error("prompt with checkbox requires options");if(!u[0].value||!u[0].text)throw new Error("given options in wrong format");r=e(""),o(u,function(n,i){var a=e(p.inputs[t.inputType]);a.find("input").attr("value",i.value),a.find("label").append(i.text),o(g,function(t,e){e===i.value&&a.find("input").prop("checked",!0)}),r.append(a)})}return t.placeholder&&r.attr("placeholder",t.placeholder),t.pattern&&r.attr("pattern",t.pattern),t.maxlength&&r.attr("maxlength",t.maxlength),s.append(r),s.on("submit",function(t){t.preventDefault(),t.stopPropagation(),a.find(".btn-primary").click()}),a=m.dialog(t),a.off("shown.bs.modal"),a.on("shown.bs.modal",function(){r.focus()}),l===!0&&a.modal("show"),a},m.dialog=function(t){t=r(t);var i=e(p.dialog),s=i.find(".modal-dialog"),l=i.find(".modal-body"),c=t.buttons,u="",d={onEscape:t.onEscape};if(e.fn.modal===n)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(o(c,function(t,e){u+="",d[t]=e.callback}),l.find(".bootbox-body").html(t.message),t.animate===!0&&i.addClass("fade"),t.className&&i.addClass(t.className),"large"===t.size?s.addClass("modal-lg"):"small"===t.size&&s.addClass("modal-sm"),t.title&&l.before(p.header),t.closeButton){var h=e(p.closeButton);t.title?i.find(".modal-header").prepend(h):h.prependTo(l)}return t.title&&i.find(".modal-title").html(t.title),u.length&&(l.after(p.footer),i.find(".modal-footer").html(u)),i.on("hidden.bs.modal",function(t){t.target===this&&i.remove()}),i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&i.on("click.dismiss.bs.modal",function(t){i.children(".modal-backdrop").length&&(t.currentTarget=i.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&i.trigger("escape.close.bb")}),i.on("escape.close.bb",function(t){d.onEscape&&a(t,i,d.onEscape)}),i.on("click",".modal-footer button",function(t){var n=e(this).data("bb-handler");a(t,i,d[n])}),i.on("click",".bootbox-close-button",function(t){a(t,i,d.onEscape)}),i.on("keyup",function(t){27===t.which&&i.trigger("escape.close.bb")}),e(t.container).append(i),i.modal({backdrop:t.backdrop?"static":!1,keyboard:!1,show:!1}),t.show&&i.modal("show"),i},m.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(f,t)},m.hideAll=function(){return e(".bootbox").modal("hide"),m};var g={bg_BG:{OK:"ŠŠŗ",CANCEL:"ŠŃказ",CONFIRM:"ŠŠ¾ŃвŃŃŠ¶Š“авам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"ZruÅ”it",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"ĪνĻάξει",CANCEL:"ĪĪŗĻĻĻĻĪ·",CONFIRM:"ĪĻιβεβαίĻĻĪ·"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"ŁŲØŁŁ",CANCEL:"ŁŲŗŁ",CONFIRM:"ŲŖŲ§ŪŪŲÆ"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"××ש×ר",CANCEL:"×××××",CONFIRM:"××ש×ר"},hu:{OK:"OK",CANCEL:"MĆ©gsem",CONFIRM:"MegerÅsĆt"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"ćć£ć³ć»ć«",CONFIRM:"確čŖ"},lt:{OK:"Gerai",CANCEL:"AtÅ”aukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"ApstiprinÄt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"PotwierdÅŗ"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"ŠŃмена",CONFIRM:"ŠŃимениŃŃ"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ąøąøąø„ąø",CANCEL:"ąø¢ąøą¹ąø„ąø“ąø",CONFIRM:"ąø¢ąø·ąøąø¢ąø±ąø"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"åę¶",CONFIRM:"甮认"},zh_TW:{OK:"OK",CANCEL:"åę¶",CONFIRM:"確čŖ"}};return m.addLocale=function(t,n){return e.each(["OK","CANCEL","CONFIRM"],function(t,e){if(!n[e])throw new Error("Please supply a translation for '"+e+"'")}),g[t]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},m},m.removeLocale=function(t){return delete g[t],m},m.setLocale=function(t){return m.setDefaults("locale",t)},m.init=function(n){return t(n||e)},m});!function(t){function e(t){var e=t.length,i=n.type(t);return"function"===i||n.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t}if(!t.jQuery){var n=function(t,e){return new n.fn.init(t,e)};n.isWindow=function(t){return null!=t&&t==t.window},n.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[o.call(t)]||"object":typeof t},n.isArray=Array.isArray||function(t){return"array"===n.type(t)},n.isPlainObject=function(t){var e;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!s.call(t,"constructor")&&!s.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(e in t);return void 0===e||s.call(t,e)},n.each=function(t,n,i){var a,s=0,o=t.length,r=e(t);if(i){if(r)for(;o>s&&(a=n.apply(t[s],i),a!==!1);s++);else for(s in t)if(a=n.apply(t[s],i),a===!1)break}else if(r)for(;o>s&&(a=n.call(t[s],s,t[s]),a!==!1);s++);else for(s in t)if(a=n.call(t[s],s,t[s]),a===!1)break;return t},n.data=function(t,e,a){if(void 0===a){var s=t[n.expando],o=s&&i[s];if(void 0===e)return o;if(o&&e in o)return o[e]}else if(void 0!==e){var s=t[n.expando]||(t[n.expando]=++n.uuid);return i[s]=i[s]||{},i[s][e]=a,a}},n.removeData=function(t,e){var a=t[n.expando],s=a&&i[a];s&&n.each(e,function(t,e){delete s[e]})},n.extend=function(){var t,e,i,a,s,o,r=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[l]||{},l++),"object"!=typeof r&&"function"!==n.type(r)&&(r={}),l===c&&(r=this,l--);c>l;l++)if(null!=(s=arguments[l]))for(a in s)t=r[a],i=s[a],r!==i&&(u&&i&&(n.isPlainObject(i)||(e=n.isArray(i)))?(e?(e=!1,o=t&&n.isArray(t)?t:[]):o=t&&n.isPlainObject(t)?t:{},r[a]=n.extend(u,o,i)):void 0!==i&&(r[a]=i));return r},n.queue=function(t,i,a){function s(t,n){var i=n||[];return null!=t&&(e(Object(t))?!function(t,e){for(var n=+e.length,i=0,a=t.length;n>i;)t[a++]=e[i++];
-if(n!==n)for(;void 0!==e[i];)t[a++]=e[i++];return t.length=a,t}(i,"string"==typeof t?[t]:t):[].push.call(i,t)),i}if(t){i=(i||"fx")+"queue";var o=n.data(t,i);return a?(!o||n.isArray(a)?o=n.data(t,i,s(a)):o.push(a),o):o||[]}},n.dequeue=function(t,e){n.each(t.nodeType?[t]:t,function(t,i){e=e||"fx";var a=n.queue(i,e),s=a.shift();"inprogress"===s&&(s=a.shift()),s&&("fx"===e&&a.unshift("inprogress"),s.call(i,function(){n.dequeue(i,e)}))})},n.fn=n.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),i=this.offset(),a=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:n(t).offset();return i.top-=parseFloat(e.style.marginTop)||0,i.left-=parseFloat(e.style.marginLeft)||0,t.style&&(a.top+=parseFloat(t.style.borderTopWidth)||0,a.left+=parseFloat(t.style.borderLeftWidth)||0),{top:i.top-a.top,left:i.left-a.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var a={},s=a.hasOwnProperty,o=a.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;la;++a){var s=c(n,t,i);if(0===s)return n;var o=l(n,t,i)-e;n-=o/s}return n}function d(){for(var e=0;b>e;++e)S[e]=l(e*x,t,i)}function h(e,n,a){var s,o,r=0;do o=n+(a-n)/2,s=l(o,t,i)-e,s>0?a=o:n=o;while(Math.abs(s)>v&&++r=g?u(e,r):0==l?r:h(e,n,n+x)}function f(){T=!0,(t!=n||i!=a)&&d()}var m=4,g=.001,v=1e-7,y=10,b=11,x=1/(b-1),C="Float32Array"in e;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;t=Math.min(t,1),i=Math.min(i,1),t=Math.max(t,0),i=Math.max(i,0);var S=C?new Float32Array(b):new Array(b),T=!1,_=function(e){return T||f(),t===n&&i===a?e:0===e?0:1===e?1:l(p(e),n,a)};_.getControlPoints=function(){return[{x:t,y:n},{x:i,y:a}]};var D="generateBezier("+[t,n,i,a]+")";return _.toString=function(){return D},_}function c(t,e){var n=t;return m.isString(t)?b.Easings[t]||(n=!1):n=m.isArray(t)&&1===t.length?r.apply(null,t):m.isArray(t)&&2===t.length?x.apply(null,t.concat([e])):m.isArray(t)&&4===t.length?l.apply(null,t):!1,n===!1&&(n=b.Easings[b.defaults.easing]?b.defaults.easing:y),n}function u(t){if(t){var e=(new Date).getTime(),n=b.State.calls.length;n>1e4&&(b.State.calls=a(b.State.calls));for(var s=0;n>s;s++)if(b.State.calls[s]){var r=b.State.calls[s],l=r[0],c=r[2],p=r[3],f=!!p,g=null;p||(p=b.State.calls[s][3]=e-16);for(var v=Math.min((e-p)/c.duration,1),y=0,x=l.length;x>y;y++){var w=l[y],T=w.element;if(o(T)){var _=!1;if(c.display!==i&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var D=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];h.each(D,function(t,e){C.setPropertyValue(T,"display",e)})}C.setPropertyValue(T,"display",c.display)}c.visibility!==i&&"hidden"!==c.visibility&&C.setPropertyValue(T,"visibility",c.visibility);for(var k in w)if("element"!==k){var P,I=w[k],E=m.isString(I.easing)?b.Easings[I.easing]:I.easing;if(1===v)P=I.endValue;else{var A=I.endValue-I.startValue;if(P=I.startValue+A*E(v,c,A),!f&&P===I.currentValue)continue}if(I.currentValue=P,"tween"===k)g=P;else{if(C.Hooks.registered[k]){var j=C.Hooks.getRoot(k),M=o(T).rootPropertyValueCache[j];M&&(I.rootPropertyValue=M)}var O=C.setPropertyValue(T,k,I.currentValue+(0===parseFloat(P)?"":I.unitType),I.rootPropertyValue,I.scrollData);C.Hooks.registered[k]&&(o(T).rootPropertyValueCache[j]=C.Normalizations.registered[j]?C.Normalizations.registered[j]("extract",null,O[1]):O[1]),"transform"===O[0]&&(_=!0)}}c.mobileHA&&o(T).transformCache.translate3d===i&&(o(T).transformCache.translate3d="(0px, 0px, 0px)",_=!0),_&&C.flushTransformCache(T)}}c.display!==i&&"none"!==c.display&&(b.State.calls[s][2].display=!1),c.visibility!==i&&"hidden"!==c.visibility&&(b.State.calls[s][2].visibility=!1),c.progress&&c.progress.call(r[1],r[1],v,Math.max(0,p+c.duration-e),p,g),1===v&&d(s)}}b.State.isTicking&&S(u)}function d(t,e){if(!b.State.calls[t])return!1;for(var n=b.State.calls[t][0],a=b.State.calls[t][1],s=b.State.calls[t][2],r=b.State.calls[t][4],l=!1,c=0,u=n.length;u>c;c++){var d=n[c].element;if(e||s.loop||("none"===s.display&&C.setPropertyValue(d,"display",s.display),"hidden"===s.visibility&&C.setPropertyValue(d,"visibility",s.visibility)),s.loop!==!0&&(h.queue(d)[1]===i||!/\.velocityQueueEntryFlag/i.test(h.queue(d)[1]))&&o(d)){o(d).isAnimating=!1,o(d).rootPropertyValueCache={};var p=!1;h.each(C.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,a=o(d).transformCache[e];o(d).transformCache[e]!==i&&new RegExp("^\\("+n+"[^.]").test(a)&&(p=!0,delete o(d).transformCache[e])}),s.mobileHA&&(p=!0,delete o(d).transformCache.translate3d),p&&C.flushTransformCache(d),C.Values.removeClass(d,"velocity-animating")}if(!e&&s.complete&&!s.loop&&c===u-1)try{s.complete.call(a,a)}catch(f){setTimeout(function(){throw f},1)}r&&s.loop!==!0&&r(a),o(d)&&s.loop===!0&&!e&&(h.each(o(d).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),b(d,"reverse",{loop:!0,delay:s.delay})),s.queue!==!1&&h.dequeue(d,s.queue)}b.State.calls[t]=!1;for(var m=0,g=b.State.calls.length;g>m;m++)if(b.State.calls[m]!==!1){l=!0;break}l===!1&&(b.State.isTicking=!1,delete b.State.calls,b.State.calls=[])}var h,p=function(){if(n.documentMode)return n.documentMode;for(var t=7;t>4;t--){var e=n.createElement("div");if(e.innerHTML="",e.getElementsByTagName("span").length)return e=null,t}return i}(),f=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),m={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==i&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},g=!1;if(t.fn&&t.fn.jquery?(h=t,g=!0):h=e.Velocity.Utilities,8>=p&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=p)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:h,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:y,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){h.data(t,"velocity",{isSVG:m.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==i?(b.State.scrollAnchor=e,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var x=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,i){var a={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function n(n,i){var a={dx:n.v,dv:t(n)},s=e(n,.5*i,a),o=e(n,.5*i,s),r=e(n,i,o),l=1/6*(a.dx+2*(s.dx+o.dx)+r.dx),c=1/6*(a.dv+2*(s.dv+o.dv)+r.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function i(t,e,a){var s,o,r,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,d=1e-4,h=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,a=a||null,l.tension=t,l.friction=e,s=null!==a,s?(u=i(t,e),o=u/a*h):o=h;r=n(r||l,o),c.push(1+r.x),u+=16,Math.abs(r.x)>d&&Math.abs(r.v)>d;);return s?function(t){return c[t*(c.length-1)|0]}:u}}();b.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},h.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){b.Easings[e[0]]=l.apply(null,e[1])});var C=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t=p)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){9>=p||b.State.isGingerbread||(C.Lists.transformsBase=C.Lists.transformsBase.concat(C.Lists.transforms3D));for(var t=0;ta&&(a=1),s=!/(\d)$/i.test(a);break;case"skew":s=!/(deg|\d)$/i.test(a);break;case"rotate":s=!/(deg|\d)$/i.test(a)}return s||(o(n).transformCache[e]="("+a+")"),o(n).transformCache[e]}}}();for(var t=0;t=p||3!==s.split(" ").length||(s+=" 1"),s;case"inject":return 8>=p?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=p?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(p||b.State.isAndroid&&!b.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(b.State.prefixMatches[t])return[b.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;i>n;n++){var a;if(a=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),m.isString(b.State.prefixElement.style[a]))return b.State.prefixMatches[t]=a,[a,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(n,function(t,e,n,i){return e+e+n+n+i+i}),e=i.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,n,a,s){function r(t,n){function a(){c&&C.setPropertyValue(t,"display","none")}var l=0;if(8>=p)l=h.css(t,n);else{var c=!1;if(/^(width|height)$/.test(n)&&0===C.getPropertyValue(t,"display")&&(c=!0,C.setPropertyValue(t,"display",C.Values.getDisplayType(t))),!s){if("height"===n&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetHeight-(parseFloat(C.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(C.getPropertyValue(t,"paddingBottom"))||0);return a(),u}if("width"===n&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetWidth-(parseFloat(C.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(C.getPropertyValue(t,"paddingRight"))||0);return a(),d}}var f;f=o(t)===i?e.getComputedStyle(t,null):o(t).computedStyle?o(t).computedStyle:o(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===n&&(n="borderTopColor"),l=9===p&&"filter"===n?f.getPropertyValue(n):f[n],(""===l||null===l)&&(l=t.style[n]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(n)){var m=r(t,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(n))&&(l=h(t).position()[n]+"px")}return l}var l;if(C.Hooks.registered[n]){var c=n,u=C.Hooks.getRoot(c);a===i&&(a=C.getPropertyValue(t,C.Names.prefixCheck(u)[0])),C.Normalizations.registered[u]&&(a=C.Normalizations.registered[u]("extract",t,a)),l=C.Hooks.extractValue(c,a)}else if(C.Normalizations.registered[n]){var d,f;d=C.Normalizations.registered[n]("name",t),"transform"!==d&&(f=r(t,C.Names.prefixCheck(d)[0]),C.Values.isCSSNullValue(f)&&C.Hooks.templates[n]&&(f=C.Hooks.templates[n][1])),l=C.Normalizations.registered[n]("extract",t,f)}if(!/^[\d-]/.test(l))if(o(t)&&o(t).isSVG&&C.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=t.getBBox()[n]}catch(m){l=0}else l=t.getAttribute(n);else l=r(t,C.Names.prefixCheck(n)[0]);return C.Values.isCSSNullValue(l)&&(l=0),b.debug>=2&&void 0,l},setPropertyValue:function(t,n,i,a,s){var r=n;if("scroll"===n)s.container?s.container["scroll"+s.direction]=i:"Left"===s.direction?e.scrollTo(i,s.alternateValue):e.scrollTo(s.alternateValue,i);else if(C.Normalizations.registered[n]&&"transform"===C.Normalizations.registered[n]("name",t))C.Normalizations.registered[n]("inject",t,i),r="transform",i=o(t).transformCache[n];else{if(C.Hooks.registered[n]){var l=n,c=C.Hooks.getRoot(n);a=a||C.getPropertyValue(t,c),i=C.Hooks.injectValue(l,i,a),n=c}if(C.Normalizations.registered[n]&&(i=C.Normalizations.registered[n]("inject",t,i),n=C.Normalizations.registered[n]("name",t)),r=C.Names.prefixCheck(n)[0],8>=p)try{t.style[r]=i}catch(u){b.debug&&void 0}else o(t)&&o(t).isSVG&&C.Names.SVGAttribute(n)?t.setAttribute(n,i):t.style[r]=i;b.debug>=2&&void 0}return[r,i]},flushTransformCache:function(t){function e(e){return parseFloat(C.getPropertyValue(t,e))}var n="";if((p||b.State.isAndroid&&!b.State.isChrome)&&o(t).isSVG){var i={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};h.each(o(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),i[t]&&(n+=t+"("+i[t].join(" ")+") ",delete i[t])})}else{var a,s;h.each(o(t).transformCache,function(e){return a=o(t).transformCache[e],"transformPerspective"===e?(s=a,!0):(9===p&&"rotateZ"===e&&(e="rotate"),void(n+=e+a+" "))}),s&&(n="perspective"+s+" "+n)}C.setPropertyValue(t,"transform",n)}};C.Hooks.register(),C.Normalizations.register(),b.hook=function(t,e,n){var a=i;return t=s(t),h.each(t,function(t,s){if(o(s)===i&&b.init(s),n===i)a===i&&(a=b.CSS.getPropertyValue(s,e));else{var r=b.CSS.setPropertyValue(s,e,n);"transform"===r[0]&&b.CSS.flushTransformCache(s),a=r}}),a};var w=function(){function t(){return r?k.promise||null:l}function a(){function t(){function t(t,e){var n=i,a=i,o=i;return m.isArray(t)?(n=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||C.RegEx.isHex.test(t[1])?o=t[1]:(m.isString(t[1])&&!C.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(a=e?t[1]:c(t[1],r.duration),t[2]!==i&&(o=t[2]))):n=t,e||(a=a||r.easing),m.isFunction(n)&&(n=n.call(s,T,S)),m.isFunction(o)&&(o=o.call(s,T,S)),[n||0,a,o]}function d(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=C.Values.getUnitType(t)),[i,n]}function p(){var t={myParent:s.parentNode||n.body,position:C.getPropertyValue(s,"position"),fontSize:C.getPropertyValue(s,"fontSize")},i=t.position===O.lastPosition&&t.myParent===O.lastParent,a=t.fontSize===O.lastFontSize;O.lastParent=t.myParent,O.lastPosition=t.position,O.lastFontSize=t.fontSize;var r=100,l={};if(a&&i)l.emToPx=O.lastEmToPx,l.percentToPxWidth=O.lastPercentToPxWidth,l.percentToPxHeight=O.lastPercentToPxHeight;else{var c=o(s).isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");b.init(c),t.myParent.appendChild(c),h.each(["overflow","overflowX","overflowY"],function(t,e){b.CSS.setPropertyValue(c,e,"hidden")}),b.CSS.setPropertyValue(c,"position",t.position),b.CSS.setPropertyValue(c,"fontSize",t.fontSize),b.CSS.setPropertyValue(c,"boxSizing","content-box"),h.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(c,e,r+"%")}),b.CSS.setPropertyValue(c,"paddingLeft",r+"em"),l.percentToPxWidth=O.lastPercentToPxWidth=(parseFloat(C.getPropertyValue(c,"width",null,!0))||1)/r,l.percentToPxHeight=O.lastPercentToPxHeight=(parseFloat(C.getPropertyValue(c,"height",null,!0))||1)/r,l.emToPx=O.lastEmToPx=(parseFloat(C.getPropertyValue(c,"paddingLeft"))||1)/r,t.myParent.removeChild(c)}return null===O.remToPx&&(O.remToPx=parseFloat(C.getPropertyValue(n.body,"fontSize"))||16),null===O.vwToPx&&(O.vwToPx=parseFloat(e.innerWidth)/100,O.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=O.remToPx,l.vwToPx=O.vwToPx,l.vhToPx=O.vhToPx,b.debug>=1&&void 0,l}if(r.begin&&0===T)try{r.begin.call(f,f)}catch(v){setTimeout(function(){throw v},1)}if("scroll"===P){var x,w,_,D=/^x$/i.test(r.axis)?"Left":"Top",I=parseFloat(r.offset)||0;r.container?m.isWrapped(r.container)||m.isNode(r.container)?(r.container=r.container[0]||r.container,x=r.container["scroll"+D],_=x+h(s).position()[D.toLowerCase()]+I):r.container=null:(x=b.State.scrollAnchor[b.State["scrollProperty"+D]],w=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===D?"Top":"Left")]],_=h(s).offset()[D.toLowerCase()]+I),l={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:_,unitType:"",easing:r.easing,scrollData:{container:r.container,direction:D,alternateValue:w}},element:s},b.debug&&void 0}else if("reverse"===P){if(!o(s).tweensContainer)return void h.dequeue(s,r.queue);"none"===o(s).opts.display&&(o(s).opts.display="auto"),"hidden"===o(s).opts.visibility&&(o(s).opts.visibility="visible"),o(s).opts.loop=!1,o(s).opts.begin=null,o(s).opts.complete=null,y.easing||delete r.easing,y.duration||delete r.duration,r=h.extend({},o(s).opts,r);var E=h.extend(!0,{},o(s).tweensContainer);for(var A in E)if("element"!==A){var j=E[A].startValue;E[A].startValue=E[A].currentValue=E[A].endValue,E[A].endValue=j,m.isEmptyObject(y)||(E[A].easing=r.easing),b.debug&&void 0}l=E}else if("start"===P){var E;o(s).tweensContainer&&o(s).isAnimating===!0&&(E=o(s).tweensContainer),h.each(g,function(e,n){if(RegExp("^"+C.Lists.colors.join("$|^")+"$").test(e)){var a=t(n,!0),s=a[0],o=a[1],r=a[2];if(C.RegEx.isHex.test(s)){for(var l=["Red","Green","Blue"],c=C.Values.hexToRgb(s),u=r?C.Values.hexToRgb(r):i,d=0;dN;N++){var R={delay:E.delay,progress:E.progress};N===F-1&&(R.display=E.display,R.visibility=E.visibility,R.complete=E.complete),w(f,"reverse",R)}return t()}};b=h.extend(w,b),b.animate=w;var S=e.requestAnimationFrame||f;return b.State.isMobile||n.hidden===i||n.addEventListener("visibilitychange",function(){n.hidden?(S=function(t){return setTimeout(function(){t(!0)},16)},u()):S=e.requestAnimationFrame||f}),t.Velocity=b,t!==e&&(t.fn.velocity=w,t.fn.velocity.defaults=b.defaults),h.each(["Down","Up"],function(t,e){b.Redirects["slide"+e]=function(t,n,a,s,o,r){var l=h.extend({},n),c=l.begin,u=l.complete,d={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},p={};l.display===i&&(l.display="Down"===e?"inline"===b.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){c&&c.call(o,o);for(var n in d){p[n]=t.style[n];var i=b.CSS.getPropertyValue(t,n);d[n]="Down"===e?[i,0]:[0,i]}p.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in p)t.style[e]=p[e];u&&u.call(o,o),r&&r.resolver(o)},b(t,d,l)
-}}),h.each(["In","Out"],function(t,e){b.Redirects["fade"+e]=function(t,n,a,s,o,r){var l=h.extend({},n),c={opacity:"In"===e?1:0},u=l.complete;l.complete=a!==s-1?l.begin=null:function(){u&&u.call(o,o),r&&r.resolver(o)},l.display===i&&(l.display="In"===e?"auto":"none"),b(this,c,l)}}),b}(window.jQuery||window.Zepto||window,window,document)});!function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define("velocityUI",["velocity"],t):t()}(function(){return function(t,e,n,i){function a(t,e){var n=[];return t&&e?(o.each([t,e],function(t,e){var i=[];o.each(e,function(t,e){for(;e.toString().length<5;)e="0"+e;i.push(e)}),n.push(i.join(""))}),parseFloat(n[0])>parseFloat(n[1])):!1}if(!t.Velocity||!t.Velocity.Utilities)return void(e.console&&void 0);var s=t.Velocity,o=s.Utilities,r=s.version,l={major:1,minor:1,patch:0};if(a(l,r)){var c="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(c),new Error(c)}s.RegisterEffect=s.RegisterUI=function(t,e){function n(t,e,n,i){var a,r=0;o.each(t.nodeType?[t]:t,function(t,e){i&&(n+=t*i),a=e.parentNode,o.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,n){r+=parseFloat(s.CSS.getPropertyValue(e,n))})}),s.animate(a,{height:("In"===e?"+":"-")+"="+r},{queue:!1,easing:"ease-in-out",duration:n*("In"===e?.6:1)})}return s.Redirects[t]=function(a,r,l,c,u,d){function h(){r.display!==i&&"none"!==r.display||!/Out$/.test(t)||o.each(u.nodeType?[u]:u,function(t,e){s.CSS.setPropertyValue(e,"display","none")}),r.complete&&r.complete.call(u,u),d&&d.resolver(u||a)}var p=l===c-1;e.defaultDuration="function"==typeof e.defaultDuration?e.defaultDuration.call(u,u):parseFloat(e.defaultDuration);for(var f=0;f1&&(o.each(e.reverse(),function(t,n){var i=e[t+1];if(i){var a=n.o||n.options,r=i.o||i.options,l=a&&a.sequenceQueue===!1?"begin":"complete",c=r&&r[l],u={};u[l]=function(){var t=i.e||i.elements,e=t.nodeType?[t]:t;c&&c.call(e,e),s(n)},i.o?i.o=o.extend({},r,u):i.options=o.extend({},r,u)}}),e.reverse()),s(e[0])}}(window.jQuery||window.Zepto||window,window,document)});!function(t){"function"==typeof define&&define.amd?define("customScrollbar",["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var o=e||window.event,r=l.call(arguments,1),c=0,d=0,h=0,p=0,f=0,m=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),c=0===h?d:h,"deltaY"in o&&(h=-1*o.deltaY,c=h),"deltaX"in o&&(d=o.deltaX,0===h&&(c=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var g=t.data(this,"mousewheel-line-height");c*=g,h*=g,d*=g}else if(2===o.deltaMode){var v=t.data(this,"mousewheel-page-height");c*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!s||s>p)&&(s=p,i(o,p)&&(s/=40)),i(o,p)&&(c/=40,d/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/s),d=Math[d>=1?"floor":"ceil"](d/s),h=Math[h>=1?"floor":"ceil"](h/s),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,m=e.clientY-y.top}return e.deltaX=d,e.deltaY=h,e.deltaFactor=s,e.offsetX=f,e.offsetY=m,e.deltaMode=0,r.unshift(e,c,d,h),a&&clearTimeout(a),a=setTimeout(n,200),(t.event.dispatch||t.event.handle).apply(this,r)}}function n(){s=null}function i(t,e){return u.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var a,s,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=o.length;c;)t.event.fixHooks[o[--c]]=t.event.mouseHooks;var u=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=r.length;n;)this.addEventListener(r[--n],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",u.getLineHeight(this)),t.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=r.length;n;)this.removeEventListener(r[--n],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});!function(t){"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var n="function"==typeof define&&define.amd,i="undefined"!=typeof module&&module.exports,a="https:"==document.location.protocol?"https:":"http:",s="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";n||(i?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+a+"//"+s+"%3E%3C/script%3E"))),e()}(function(){var e,n="mCustomScrollbar",i="mCS",a=".mCustomScrollbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},o=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,u=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(e){var e=t.extend(!0,{},s,e),n=h.call(this);if(e.live){var l=e.liveSelector||this.selector||a,c=t(l);if("off"===e.live)return void f(l);r[l]=setTimeout(function(){c.mCustomScrollbar(e),"once"===e.live&&c.length&&f(l)},500)}else f(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=g(e.scrollButtons.scrollType),p(e),t(n).each(function(){var n=t(this);if(!n.data(i)){n.data(i,{idx:++o,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:n.css("direction"),cbOffsets:null,trigger:null});var a=n.data(i),s=a.opt,r=n.data("mcs-axis"),l=n.data("mcs-scrollbar-position"),c=n.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),c&&(s.theme=c,p(s)),v.call(this),t("#mCSB_"+a.idx+"_container img:not(."+u[2]+")").addClass(u[2]),d.update.call(null,n)}})},update:function(e,n){var a=e||h.call(this);return t(a).each(function(){var e=t(this);if(e.data(i)){var a=e.data(i),s=a.opt,o=t("#mCSB_"+a.idx+"_container"),r=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")];if(!o.length)return;a.tweenRunning&&Y(e),e.hasClass(u[3])&&e.removeClass(u[3]),e.hasClass(u[4])&&e.removeClass(u[4]),C.call(this),b.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||o.css("width",y(o.children())),a.overflowed=_.call(this),I.call(this),s.autoDraggerLength&&w.call(this),S.call(this),k.call(this);var l=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)];"x"!==s.axis&&(a.overflowed[0]?r[0].height()>r[0].parent().height()?D.call(this):(X(e,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(D.call(this),"y"===s.axis?P.call(this):"yx"===s.axis&&a.overflowed[1]&&X(e,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(a.overflowed[1]?r[1].width()>r[1].parent().width()?D.call(this):(X(e,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(D.call(this),"x"===s.axis?P.call(this):"yx"===s.axis&&a.overflowed[0]&&X(e,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),n&&a&&(2===n&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===n&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),q.call(this)}})},scrollTo:function(e,n){if("undefined"!=typeof e&&null!=e){var a=h.call(this);return t(a).each(function(){var a=t(this);if(a.data(i)){var s=a.data(i),o=s.opt,r={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},r,n),c=W.call(this,e),u=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=z.call(this,c[0],"y"),c[1]=z.call(this,c[1],"x"),l.moveDragger&&(c[0]*=s.scrollRatio.y,c[1]*=s.scrollRatio.x),l.dur=u,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==o.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",X(a,c[0].toString(),l)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==o.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",X(a,c[1].toString(),l))},l.timeout)}})}},stop:function(){var e=h.call(this);return t(e).each(function(){var e=t(this);e.data(i)&&Y(e)})},disable:function(e){var n=h.call(this);return t(n).each(function(){var n=t(this);if(n.data(i)){n.data(i);q.call(this,"remove"),P.call(this),e&&D.call(this),I.call(this,!0),n.addClass(u[3])}})},destroy:function(){var e=h.call(this);return t(e).each(function(){var a=t(this);if(a.data(i)){var s=a.data(i),o=s.opt,r=t("#mCSB_"+s.idx),l=t("#mCSB_"+s.idx+"_container"),c=t(".mCSB_"+s.idx+"_scrollbar");o.live&&f(o.liveSelector||t(e).selector),q.call(this,"remove"),P.call(this),D.call(this),a.removeData(i),Z(this,"mcs"),c.remove(),l.find("img."+u[2]).removeClass(u[2]),r.replaceWith(l.contents()),a.removeClass(n+" _"+i+"_"+s.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},h=function(){return"object"!=typeof t(this)||t(this).length<1?a:this},p=function(e){var n=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],i=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],a=["minimal","minimal-dark"],s=["minimal","minimal-dark"],o=["minimal","minimal-dark"];e.autoDraggerLength=t.inArray(e.theme,n)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=t.inArray(e.theme,i)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=t.inArray(e.theme,a)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,s)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,o)>-1?"outside":e.scrollbarPosition},f=function(t){r[t]&&(clearTimeout(r[t]),Z(r,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},g=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},v=function(){var e=t(this),a=e.data(i),s=a.opt,o=s.autoExpandScrollbar?" "+u[1]+"_expand":"",r=["",""],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],d="yx"===s.axis?"":"",h=s.autoHideScrollbar?" "+u[6]:"",p="x"!==s.axis&&"rtl"===a.langDir?" "+u[7]:"";s.setWidth&&e.css("width",s.setWidth),s.setHeight&&e.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===a.langDir?"989999px":s.setLeft,e.addClass(n+" _"+i+"_"+a.idx+h+p).wrapInner("");var f=t("#mCSB_"+a.idx),m=t("#mCSB_"+a.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||m.css("width",y(m.children())),"outside"===s.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),f.addClass("mCSB_outside").after(c)):(f.addClass("mCSB_inside").append(c),m.wrap(d)),x.call(this);var g=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(e){return Math.max.apply(Math,e.map(function(){return t(this).outerWidth(!0)}).get())},b=function(){var e=t(this),n=e.data(i),a=n.opt,s=t("#mCSB_"+n.idx+"_container");a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis&&s.css({position:"absolute",width:"auto"}).wrap("").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),position:"relative"}).unwrap()},x=function(){var e=t(this),n=e.data(i),a=n.opt,s=t(".mCSB_"+n.idx+"_scrollbar:first"),o=ee(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",r=["","","",""],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},C=function(){var e=t(this),n=e.data(i),a=t("#mCSB_"+n.idx),s=e.css("max-height")||"none",o=-1!==s.indexOf("%"),r=e.css("box-sizing");if("none"!==s){var l=o?e.parent().height()*parseInt(s)/100:parseInt(s);"border-box"===r&&(l-=e.innerHeight()-e.height()+(e.outerHeight()-e.innerHeight())),a.css("max-height",Math.round(l))}},w=function(){var e=t(this),n=e.data(i),a=t("#mCSB_"+n.idx),s=t("#mCSB_"+n.idx+"_container"),o=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")],r=[a.height()/s.outerHeight(!1),a.width()/s.outerWidth(!1)],c=[parseInt(o[0].css("min-height")),Math.round(r[0]*o[0].parent().height()),parseInt(o[1].css("min-width")),Math.round(r[1]*o[1].parent().width())],u=l&&c[1]a.height(),r>a.width()]},D=function(){var e=t(this),n=e.data(i),a=n.opt,s=t("#mCSB_"+n.idx),o=t("#mCSB_"+n.idx+"_container"),r=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];if(Y(e),("x"!==a.axis&&!n.overflowed[0]||"y"===a.axis&&n.overflowed[0])&&(r[0].add(o).css("top",0),X(e,"_resetY")),"y"!==a.axis&&!n.overflowed[1]||"x"===a.axis&&n.overflowed[1]){var l=dx=0;"rtl"===n.langDir&&(l=s.width()-o.outerWidth(!1),dx=Math.abs(l/n.scrollRatio.x)),o.css("left",l),r[1].css("left",dx),X(e,"_resetX")}},k=function(){function e(){o=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(o),O.call(n[0])):e()},100)}var n=t(this),a=n.data(i),s=a.opt;if(!a.bindEvents){if(A.call(this),s.contentTouchScroll&&j.call(this),M.call(this),s.mouseWheel.enable){var o;e()}N.call(this),B.call(this),s.advanced.autoScrollOnFocus&&R.call(this),s.scrollButtons.enable&&$.call(this),s.keyboard.enable&&H.call(this),a.bindEvents=!0}},P=function(){var e=t(this),n=e.data(i),a=n.opt,s=i+"_"+n.idx,o=".mCSB_"+n.idx+"_scrollbar",r=t("#mCSB_"+n.idx+",#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,"+o+" ."+u[12]+",#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal,"+o+">a"),l=t("#mCSB_"+n.idx+"_container");a.advanced.releaseDraggableSelectors&&r.add(t(a.advanced.releaseDraggableSelectors)),n.bindEvents&&(t(document).unbind("."+s),r.each(function(){t(this).unbind("."+s)}),clearTimeout(e[0]._focusTimeout),Z(e[0],"_focusTimeout"),clearTimeout(n.sequential.step),Z(n.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),Z(l[0],"onCompleteTimeout"),n.bindEvents=!1)},I=function(e){var n=t(this),a=n.data(i),s=a.opt,o=t("#mCSB_"+a.idx+"_container_wrapper"),r=o.length?o:t("#mCSB_"+a.idx+"_container"),l=[t("#mCSB_"+a.idx+"_scrollbar_vertical"),t("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(a.overflowed[0]&&!e?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(u[8]+" "+u[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(u[10])):(l[0].css("display","none"),r.addClass(u[10])),r.addClass(u[8]))),"y"!==s.axis&&(a.overflowed[1]&&!e?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(u[9]+" "+u[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(u[11])):(l[1].css("display","none"),r.addClass(u[11])),r.addClass(u[9]))),a.overflowed[0]||a.overflowed[1]?n.removeClass(u[5]):n.addClass(u[5])},E=function(t){var e=t.type;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return t.target.ownerDocument!==document?[t.originalEvent.screenY,t.originalEvent.screenX,!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],i=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[n.screenY,n.screenX,i>1]:[n.pageY,n.pageX,i>1];default:return[t.pageY,t.pageX,!1]}},A=function(){function e(t){var e=f.find("iframe");if(e.length){var n=t?"auto":"none";e.css("pointer-events",n)}}function n(t,e,n,i){if(f[0].idleTimer=d.scrollInertia<233?250:0,a.attr("id")===p[1])var s="x",o=(a[0].offsetLeft-e+i)*u.scrollRatio.x;else var s="y",o=(a[0].offsetTop-t+n)*u.scrollRatio.y;X(r,o.toString(),{dir:s,drag:!0})}var a,s,o,r=t(this),u=r.data(i),d=u.opt,h=i+"_"+u.idx,p=["mCSB_"+u.idx+"_dragger_vertical","mCSB_"+u.idx+"_dragger_horizontal"],f=t("#mCSB_"+u.idx+"_container"),m=t("#"+p[0]+",#"+p[1]),g=d.advanced.releaseDraggableSelectors?m.add(t(d.advanced.releaseDraggableSelectors)):m;m.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(n){if(n.stopImmediatePropagation(),n.preventDefault(),J(n)){c=!0,l&&(document.onselectstart=function(){return!1
-}),e(!1),Y(r),a=t(this);var i=a.offset(),u=E(n)[0]-i.top,h=E(n)[1]-i.left,p=a.height()+i.top,f=a.width()+i.left;p>u&&u>0&&f>h&&h>0&&(s=u,o=h),T(a,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(t){t.stopImmediatePropagation(),t.preventDefault();var e=a.offset(),i=E(t)[0]-e.top,r=E(t)[1]-e.left;n(s,o,i,r)}),t(document).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(t){if(a){var e=a.offset(),i=E(t)[0]-e.top,r=E(t)[1]-e.left;if(s===i)return;n(s,o,i,r)}}).add(g).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){a&&(T(a,"active",d.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),e(!0)})},j=function(){function n(t){if(!te(t)||c||E(t)[2])return void(e=0);e=1,C=0,w=0,S.removeClass("mCS_touch_action");var n=P.offset();u=E(t)[0]-n.top,d=E(t)[1]-n.left,F=[E(t)[0],E(t)[1]]}function a(t){if(te(t)&&!c&&!E(t)[2]&&(t.stopImmediatePropagation(),!w||C)){m=K();var e=k.offset(),n=E(t)[0]-e.top,i=E(t)[1]-e.left,a="mcsLinearOut";if(A.push(n),j.push(i),F[2]=Math.abs(E(t)[0]-F[0]),F[3]=Math.abs(E(t)[1]-F[1]),T.overflowed[0])var s=I[0].parent().height()-I[0].height(),o=u-n>0&&n-u>-(s*T.scrollRatio.y)&&(2*F[3]0&&i-d>-(r*T.scrollRatio.x)&&(2*F[2]30)){y=1e3/(g-f);var a="mcsEaseOut",s=2.5>y,o=s?[A[A.length-2],j[j.length-2]]:[0,0];v=s?[n-o[0],i-o[1]]:[n-h,i-p];var u=[Math.abs(v[0]),Math.abs(v[1])];y=s?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[y,y];var d=[Math.abs(P[0].offsetTop)-v[0]*r(u[0]/y[0],y[0]),Math.abs(P[0].offsetLeft)-v[1]*r(u[1]/y[1],y[1])];b="yx"===_.axis?[d[0],d[1]]:"x"===_.axis?[null,d[1]]:[d[0],null],x=[4*u[0]+_.scrollInertia,4*u[1]+_.scrollInertia];var S=parseInt(_.contentTouchScroll)||0;b[0]=u[0]>S?b[0]:0,b[1]=u[1]>S?b[1]:0,T.overflowed[0]&&l(b[0],x[0],a,"y",O,!1),T.overflowed[1]&&l(b[1],x[1],a,"x",O,!1)}}}function r(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function l(t,e,n,i,a,s){t&&X(S,t.toString(),{dur:e,scrollEasing:n,dir:i,overwrite:a,drag:s})}var u,d,h,p,f,m,g,v,y,b,x,C,w,S=t(this),T=S.data(i),_=T.opt,D=i+"_"+T.idx,k=t("#mCSB_"+T.idx),P=t("#mCSB_"+T.idx+"_container"),I=[t("#mCSB_"+T.idx+"_dragger_vertical"),t("#mCSB_"+T.idx+"_dragger_horizontal")],A=[],j=[],M=0,O="yx"===_.axis?"none":"all",F=[],N=P.find("iframe"),R=["touchstart."+D+" pointerdown."+D+" MSPointerDown."+D,"touchmove."+D+" pointermove."+D+" MSPointerMove."+D,"touchend."+D+" pointerup."+D+" MSPointerUp."+D];P.bind(R[0],function(t){n(t)}).bind(R[1],function(t){a(t)}),k.bind(R[0],function(t){s(t)}).bind(R[2],function(t){o(t)}),N.length&&N.each(function(){t(this).load(function(){L(this)&&t(this.contentDocument||this.contentWindow.document).bind(R[0],function(t){n(t),s(t)}).bind(R[1],function(t){a(t)}).bind(R[2],function(t){o(t)})})})},M=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(t,e,n){u.type=n&&s?"stepped":"stepless",u.scrollAmount=10,U(o,t,e,"mcsLinearOut",n?60:null)}var s,o=t(this),r=o.data(i),l=r.opt,u=r.sequential,d=i+"_"+r.idx,h=t("#mCSB_"+r.idx+"_container"),p=h.parent();h.bind("mousedown."+d,function(){e||s||(s=1,c=!0)}).add(document).bind("mousemove."+d,function(t){if(!e&&s&&n()){var i=h.offset(),o=E(t)[0]-i.top+h[0].offsetTop,c=E(t)[1]-i.left+h[0].offsetLeft;o>0&&o0&&co?a("on",38):o>p.height()&&a("on",40)),"y"!==l.axis&&r.overflowed[1]&&(0>c?a("on",37):c>p.width()&&a("on",39)))}}).bind("mouseup."+d,function(){e||(s&&(s=0,a("off",null)),c=!1)})},O=function(){function e(e,i){if(Y(n),!F(n,e.target)){var o="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100;if("x"===s.axis||"x"===s.mouseWheel.axis)var u="x",d=[Math.round(o*a.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],h="auto"!==s.mouseWheel.scrollAmount?d[1]:d[0]>=r.width()?.9*r.width():d[0],p=Math.abs(t("#mCSB_"+a.idx+"_container")[0].offsetLeft),f=c[1][0].offsetLeft,m=c[1].parent().width()-c[1].width(),g=e.deltaX||e.deltaY||i;else var u="y",d=[Math.round(o*a.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],h="auto"!==s.mouseWheel.scrollAmount?d[1]:d[0]>=r.height()?.9*r.height():d[0],p=Math.abs(t("#mCSB_"+a.idx+"_container")[0].offsetTop),f=c[0][0].offsetTop,m=c[0].parent().height()-c[0].height(),g=e.deltaY||i;"y"===u&&!a.overflowed[0]||"x"===u&&!a.overflowed[1]||((s.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(g=-g),s.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==f||0>g&&f!==m||s.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),X(n,(p-g*h).toString(),{dir:u}))}}if(t(this).data(i)){var n=t(this),a=n.data(i),s=a.opt,o=i+"_"+a.idx,r=t("#mCSB_"+a.idx),c=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")],u=t("#mCSB_"+a.idx+"_container").find("iframe");u.length&&u.each(function(){t(this).load(function(){L(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,function(t,n){e(t,n)})})}),r.bind("mousewheel."+o,function(t,n){e(t,n)})}},L=function(t){var e=null;try{var n=t.contentDocument||t.contentWindow.document;e=n.body.innerHTML}catch(i){}return null!==e},F=function(e,n){var a=n.nodeName.toLowerCase(),s=e.data(i).opt.mouseWheel.disableOver,o=["select","textarea"];return t.inArray(a,s)>-1&&!(t.inArray(a,o)>-1&&!t(n).is(":focus"))},N=function(){var e=t(this),n=e.data(i),a=i+"_"+n.idx,s=t("#mCSB_"+n.idx+"_container"),o=s.parent(),r=t(".mCSB_"+n.idx+"_scrollbar ."+u[12]);r.bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(){c=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(){c=!1}).bind("click."+a,function(i){if(t(i.target).hasClass(u[12])||t(i.target).hasClass("mCSB_draggerRail")){Y(e);var a=t(this),r=a.find(".mCSB_dragger");if(a.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var l="x",c=i.pageX>r.offset().left?-1:1,d=Math.abs(s[0].offsetLeft)-.9*c*o.width()}else{if(!n.overflowed[0])return;var l="y",c=i.pageY>r.offset().top?-1:1,d=Math.abs(s[0].offsetTop)-.9*c*o.height()}X(e,d.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})}})},R=function(){var e=t(this),n=e.data(i),a=n.opt,s=i+"_"+n.idx,o=t("#mCSB_"+n.idx+"_container"),r=o.parent();o.bind("focusin."+s,function(){var n=t(document.activeElement),i=o.find(".mCustomScrollBox").length,s=0;n.is(a.advanced.autoScrollOnFocus)&&(Y(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=i?(s+17)*i:0,e[0]._focusTimeout=setTimeout(function(){var t=[ne(n)[0],ne(n)[1]],i=[o[0].offsetTop,o[0].offsetLeft],l=[i[0]+t[0]>=0&&i[0]+t[0]=0&&i[0]+t[1]a");l.bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o+" mouseup."+o+" touchend."+o+" pointerup."+o+" MSPointerUp."+o+" mouseout."+o+" pointerout."+o+" MSPointerOut."+o+" click."+o,function(i){function o(t,n){s.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,U(e,t,n)}if(i.preventDefault(),J(i)){var r=t(this).attr("class");switch(s.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,n.tweenRunning=!1,o("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&o("off",r);break;case"click":if("stepped"!==s.type||n.tweenRunning)return;o("on",r)}}})},H=function(){function e(e){function i(t,e){o.type=s.keyboard.scrollType,o.scrollAmount=s.snapAmount||s.keyboard.scrollAmount,"stepped"===o.type&&a.tweenRunning||U(n,t,e)}switch(e.type){case"blur":a.tweenRunning&&o.dir&&i("off",null);break;case"keydown":case"keyup":var r=e.keyCode?e.keyCode:e.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!a.overflowed[0]||(37===r||39===r)&&!a.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(d)||(e.preventDefault(),e.stopImmediatePropagation(),i(l,r))}else if(33===r||34===r){if((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){Y(n);var h=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&a.overflowed[1]&&!a.overflowed[0])var p="x",f=Math.abs(c[0].offsetLeft)-.9*h*u.width();else var p="y",f=Math.abs(c[0].offsetTop)-.9*h*u.height();X(n,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!t(document.activeElement).is(d)&&((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===s.axis||"yx"===s.axis&&a.overflowed[1]&&!a.overflowed[0])var p="x",f=35===r?Math.abs(u.width()-c.outerWidth(!1)):0;else var p="y",f=35===r?Math.abs(u.height()-c.outerHeight(!1)):0;X(n,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var n=t(this),a=n.data(i),s=a.opt,o=a.sequential,r=i+"_"+a.idx,l=t("#mCSB_"+a.idx),c=t("#mCSB_"+a.idx+"_container"),u=c.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",h=c.find("iframe"),p=["blur."+r+" keydown."+r+" keyup."+r];h.length&&h.each(function(){t(this).load(function(){L(this)&&t(this.contentDocument||this.contentWindow.document).bind(p[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(p[0],function(t){e(t)})},U=function(e,n,a,s,o){function r(t){var n="stepped"!==h.type,i=o?o:t?n?m/1.5:g:1e3/60,a=t?n?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],u=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],d="x"===h.dir[0]?l[1]+h.dir[1]*u[1]*a:l[0]+h.dir[1]*u[0]*a,f="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?f:d,y=s?s:t?n?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",b=t?!0:!1;return t&&17>i&&(v="x"===h.dir[0]?l[1]:l[0]),X(e,v.toString(),{dir:h.dir[0],scrollEasing:y,dur:i,onComplete:b}),t?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},i)))}function l(){clearTimeout(h.step),Z(h,"step"),Y(e)}var c=e.data(i),d=c.opt,h=c.sequential,p=t("#mCSB_"+c.idx+"_container"),f="stepped"===h.type?!0:!1,m=d.scrollInertia<26?26:d.scrollInertia,g=d.scrollInertia<1?17:d.scrollInertia;switch(n){case"on":if(h.dir=[a===u[16]||a===u[15]||39===a||37===a?"x":"y",a===u[13]||a===u[15]||38===a||37===a?-1:1],Y(e),ee(a)&&"stepped"===h.type)return;r(f);break;case"off":l(),(f||c.tweenRunning&&h.dir)&&r(!0)}},W=function(e){var n=t(this).data(i).opt,a=[];return"function"==typeof e&&(e=e()),e instanceof Array?a=e.length>1?[e[0],e[1]]:"x"===n.axis?[null,e[0]]:[e[0],null]:(a[0]=e.y?e.y:e.x||"x"===n.axis?null:e,a[1]=e.x?e.x:e.y||"y"===n.axis?null:e),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},z=function(e,n){if(null!=e&&"undefined"!=typeof e){var a=t(this),s=a.data(i),o=s.opt,r=t("#mCSB_"+s.idx+"_container"),l=r.parent(),c=typeof e;n||(n="x"===o.axis?"x":"y");var u="x"===n?r.outerWidth(!1):r.outerHeight(!1),h="x"===n?r[0].offsetLeft:r[0].offsetTop,p="x"===n?"left":"top";switch(c){case"function":return e();case"object":var f=e.jquery?e:t(e);if(!f.length)return;return"x"===n?ne(f)[1]:ne(f)[0];case"string":case"number":if(ee(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(u*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(h-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=h+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&ee(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-r.outerHeight(!1));if("right"===e)return Math.abs(l.width()-r.outerWidth(!1));if("first"===e||"last"===e){var f=r.find(":"+e);return"x"===n?ne(f)[1]:ne(f)[0]}return t(e).length?"x"===n?ne(t(e))[1]:ne(t(e))[0]:(r.css(p,e),void d.update.call(null,a[0]))}}},q=function(e){function n(){return clearTimeout(p[0].autoUpdate),0===l.parents("html").length?void(l=null):void(p[0].autoUpdate=setTimeout(function(){return h.advanced.updateOnSelectorChange&&(f=o(),f!==x)?(r(3),void(x=f)):(h.advanced.updateOnContentResize&&(m=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],(m[0]!==C[0]||m[1]!==C[1]||m[2]!==C[2]||m[3]!==C[3]||m[4]!==C[4]||m[5]!==C[5])&&(r(m[0]!==C[0]||m[1]!==C[1]),C=m)),h.advanced.updateOnImageLoad&&(g=a(),g!==w&&(p.find("img").each(function(){s(this)}),w=g)),void((h.advanced.updateOnSelectorChange||h.advanced.updateOnContentResize||h.advanced.updateOnImageLoad)&&n()))},h.advanced.autoUpdateTimeout))}function a(){var t=0;return h.advanced.updateOnImageLoad&&(t=p.find("img").length),t}function s(e){function n(t,e){return function(){return e.apply(t,arguments)}}function i(){this.onload=null,t(e).addClass(u[2]),r(2)}if(t(e).hasClass(u[2]))return void r();var a=new Image;a.onload=n(a,i),a.src=e.src}function o(){h.advanced.updateOnSelectorChange===!0&&(h.advanced.updateOnSelectorChange="*");var e=0,n=p.find(h.advanced.updateOnSelectorChange);return h.advanced.updateOnSelectorChange&&n.length>0&&n.each(function(){e+=t(this).height()+t(this).width()}),e}function r(t){clearTimeout(p[0].autoUpdate),d.update.call(null,l[0],t)}var l=t(this),c=l.data(i),h=c.opt,p=t("#mCSB_"+c.idx+"_container");if(e)return clearTimeout(p[0].autoUpdate),void Z(p[0],"autoUpdate");var f,m,g,v=p.parent(),y=[t("#mCSB_"+c.idx+"_scrollbar_vertical"),t("#mCSB_"+c.idx+"_scrollbar_horizontal")],b=function(){return[y[0].is(":visible")?y[0].outerHeight(!0):0,y[1].is(":visible")?y[1].outerWidth(!0):0]},x=o(),C=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],w=a();n()},V=function(t,e,n){return Math.round(t/e)*e-n},Y=function(e){var n=e.data(i),a=t("#mCSB_"+n.idx+"_container,#mCSB_"+n.idx+"_container_wrapper,#mCSB_"+n.idx+"_dragger_vertical,#mCSB_"+n.idx+"_dragger_horizontal");a.each(function(){Q.call(this)})},X=function(e,n,a){function s(t){return l&&c.callbacks[t]&&"function"==typeof c.callbacks[t]}function o(){return[c.callbacks.alwaysTriggerOffsets||b>=x[0]+w,c.callbacks.alwaysTriggerOffsets||-S>=b]}function r(){var t=[p[0].offsetTop,p[0].offsetLeft],n=[v[0].offsetTop,v[0].offsetLeft],i=[p.outerHeight(!1),p.outerWidth(!1)],s=[h.height(),h.width()];e[0].mcs={content:p,top:t[0],left:t[1],draggerTop:n[0],draggerLeft:n[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(i[0])-s[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(i[1])-s[1])),direction:a.dir}}var l=e.data(i),c=l.opt,u={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=t.extend(u,a),d=[a.dur,a.drag?0:a.dur],h=t("#mCSB_"+l.idx),p=t("#mCSB_"+l.idx+"_container"),f=p.parent(),m=c.callbacks.onTotalScrollOffset?W.call(e,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?W.call(e,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=a.trigger,(0!==f.scrollTop()||0!==f.scrollLeft())&&(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==n||l.contentReset.y||(s("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==n||l.contentReset.x||(s("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==n&&"_resetX"!==n){switch(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(s("onOverflowY")&&c.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(s("onOverflowX")&&c.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),c.snapAmount&&(n=V(n,c.snapAmount,c.snapOffset)),a.dir){case"x":var v=t("#mCSB_"+l.idx+"_dragger_horizontal"),y="left",b=p[0].offsetLeft,x=[h.width()-p.outerWidth(!1),v.parent().width()-v.width()],C=[n,0===n?0:n/l.scrollRatio.x],w=m[1],S=g[1],_=w>0?w/l.scrollRatio.x:0,D=S>0?S/l.scrollRatio.x:0;break;case"y":var v=t("#mCSB_"+l.idx+"_dragger_vertical"),y="top",b=p[0].offsetTop,x=[h.height()-p.outerHeight(!1),v.parent().height()-v.height()],C=[n,0===n?0:n/l.scrollRatio.y],w=m[0],S=g[0],_=w>0?w/l.scrollRatio.y:0,D=S>0?S/l.scrollRatio.y:0}C[1]<0||0===C[0]&&0===C[1]?C=[0,0]:C[1]>=x[1]?C=[x[0],x[1]]:C[0]=-C[0],e[0].mcs||(r(),s("onInit")&&c.callbacks.onInit.call(e[0])),clearTimeout(p[0].onCompleteTimeout),(l.tweenRunning||!(0===b&&C[0]>=0||b===x[0]&&C[0]<=x[0]))&&(G(v[0],y,Math.round(C[1]),d[1],a.scrollEasing),G(p[0],y,Math.round(C[0]),d[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!l.tweenRunning&&(s("onScrollStart")&&(r(),c.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,T(v),l.cbOffsets=o())},onUpdate:function(){a.callbacks&&a.onUpdate&&s("whileScrolling")&&(r(),c.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===c.axis&&clearTimeout(p[0].onCompleteTimeout);var t=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(r(),c.callbacks.onScroll.call(e[0])),s("onTotalScroll")&&C[1]>=x[1]-_&&l.cbOffsets[0]&&(r(),c.callbacks.onTotalScroll.call(e[0])),s("onTotalScrollBack")&&C[1]<=D&&l.cbOffsets[1]&&(r(),c.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,p[0].idleTimer=0,T(v,"hide")},t)}}}))}},G=function(t,e,n,i,a,s,o){function r(){C.stop||(y||f.call(),y=K()-v,l(),y>=C.time&&(C.time=y>C.time?y+h-(y-C.time):y+h-1,C.time0?(C.currVal=d(C.time,b,w,i,a),x[e]=Math.round(C.currVal)+"px"):x[e]=n+"px",m.call()}function c(){h=1e3/60,C.time=y+h,p=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},C.id=p(r)}function u(){null!=C.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(C.id):clearTimeout(C.id),C.id=null)}function d(t,e,n,i,a){switch(a){case"linear":case"mcsLinear":return n*t/i+e;case"mcsLinearOut":return t/=i,t--,n*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return t/=i/2,1>t?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeInOutStrong":return t/=i/2,1>t?n/2*Math.pow(2,10*(t-1))+e:(t--,n/2*(-Math.pow(2,-10*t)+2)+e);case"easeInOut":case"mcsEaseInOut":return t/=i/2,1>t?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=i,t--,-n*(t*t*t*t-1)+e;case"easeOutStrong":return n*(-Math.pow(2,-10*t/i)+1)+e;case"easeOut":case"mcsEaseOut":default:var s=(t/=i)*t,o=s*t;return e+n*(.499999999999997*o*s+-2.5*s*s+5.5*o+-6.5*s+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var h,p,o=o||{},f=o.onStart||function(){},m=o.onUpdate||function(){},g=o.onComplete||function(){},v=K(),y=0,b=t.offsetTop,x=t.style,C=t._mTween[e];"left"===e&&(b=t.offsetLeft);var w=n-b;C.stop=0,"none"!==s&&u(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Q=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],n=0;n=0&&i[0]+ne(a)[0]=0&&i[1]+ne(a)[1]=e}},n.prototype.validateInput=function(e){var n=t(e.target),i=n.data("bs.validator.errors");if(n.is('[type="radio"]')&&(n=this.$element.find('input[name="'+n.attr("name")+'"]')),this.$element.trigger(e=t.Event("validate.bs.validator",{relatedTarget:n[0]})),!e.isDefaultPrevented()){var a=this;this.runValidators(n).done(function(s){n.data("bs.validator.errors",s),s.length?a.showErrors(n):a.clearErrors(n),i&&s.toString()===i.toString()||(e=s.length?t.Event("invalid.bs.validator",{relatedTarget:n[0],detail:s}):t.Event("valid.bs.validator",{relatedTarget:n[0],detail:i}),a.$element.trigger(e)),a.toggleSubmit(),a.$element.trigger(t.Event("validated.bs.validator",{relatedTarget:n[0]}))})}},n.prototype.runValidators=function(e){function i(t){return e.data(t+"-error")||e.data("error")||"native"==t&&e[0].validationMessage||o.errors[t]}var a=[],s=([n.VALIDATORS["native"]],t.Deferred()),o=this.options;return e.data("bs.validator.deferred")&&e.data("bs.validator.deferred").reject(),e.data("bs.validator.deferred",s),t.each(n.VALIDATORS,t.proxy(function(t,n){if((e.data(t)||"native"==t)&&!n.call(this,e)){var s=i(t);!~a.indexOf(s)&&a.push(s)}},this)),!a.length&&e.val()&&e.data("remote")?this.defer(e,function(){var n={};n[e.attr("name")]=e.val(),t.get(e.data("remote"),n).fail(function(t,e,n){a.push(i("remote")||n)}).always(function(){s.resolve(a)})}):s.resolve(a),s.promise()},n.prototype.validate=function(){var t=this.options.delay;return this.options.delay=0,this.$element.find(":input").trigger("input.bs.validator"),this.options.delay=t,this},n.prototype.showErrors=function(e){var n=this.options.html?"html":"text";this.defer(e,function(){var i=e.closest(".form-group"),a=i.find(".help-block.with-errors"),s=e.data("bs.validator.errors");s.length&&(s=t("").addClass("list-unstyled").append(t.map(s,function(e){return t("")[n](e)})),void 0===a.data("bs.validator.originalContent")&&a.data("bs.validator.originalContent",a.html()),a.empty().append(s),i.addClass("has-error"))})},n.prototype.clearErrors=function(t){var e=t.closest(".form-group"),n=e.find(".help-block.with-errors");n.html(n.data("bs.validator.originalContent")),e.removeClass("has-error")},n.prototype.hasErrors=function(){function e(){return!!(t(this).data("bs.validator.errors")||[]).length}return!!this.$element.find(":input:enabled").filter(e).length},n.prototype.isIncomplete=function(){function e(){return"checkbox"===this.type?!this.checked:"radio"===this.type?!t('[name="'+this.name+'"]:checked').length:""===t.trim(this.value)}return!!this.$element.find(":input[required]:enabled").filter(e).length},n.prototype.onSubmit=function(t){this.validate(),(this.isIncomplete()||this.hasErrors())&&t.preventDefault()},n.prototype.toggleSubmit=function(){if(this.options.disable){var t=this.$element.find('input[type="submit"], button[type="submit"]');t.toggleClass("disabled",this.isIncomplete()||this.hasErrors()).css({"pointer-events":"all",cursor:"pointer"})}},n.prototype.defer=function(t,e){return this.options.delay?(window.clearTimeout(t.data("bs.validator.timeout")),void t.data("bs.validator.timeout",window.setTimeout(e,this.options.delay))):e()},n.prototype.destroy=function(){return this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator"),this.$element.find(":input").off(".bs.validator").removeData(["bs.validator.errors","bs.validator.deferred"]).each(function(){var e=t(this),n=e.data("bs.validator.timeout");window.clearTimeout(n)&&e.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var e=t(this),n=e.data("bs.validator.originalContent");e.removeData("bs.validator.originalContent").html(n)}),this.$element.find('input[type="submit"], button[type="submit"]').removeClass("disabled"),this.$element.find(".has-error").removeClass("has-error"),this};var i=t.fn.validator;t.fn.validator=e,t.fn.validator.Constructor=n,t.fn.validator.noConflict=function(){return t.fn.validator=i,this},t(window).on("load",function(){t('form[data-toggle="validator"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery);define("validator",["jquery","bootstrap"],function(){});!function(t){var e=function(e,n){this.options=t.extend({},t.fn.editableform.defaults,n),this.$div=t(e),this.options.scope||(this.options.scope=this)};e.prototype={constructor:e,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=t(t.fn.editableform.template)},initButtons:function(){var e=this.$form.find(".editable-buttons");e.append(t.fn.editableform.buttons),"bottom"===this.options.showbuttons&&e.addClass("editable-buttons-bottom")},render:function(){this.$loading=t(t.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),t.when(this.input.render()).then(t.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(t.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(t){t.preventDefault()});else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var e=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(e),this.$form.submit(t.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var t,e;this.$form?(t=this.$form.outerWidth(),e=this.$form.outerHeight(),t&&this.$loading.width(t),e&&this.$loading.height(e),this.$form.hide()):(t=this.$loading.parent().width(),t&&this.$loading.width(t)),this.$loading.show()},showForm:function(t){this.$loading.hide(),this.$form.show(),t!==!1&&this.input.activate(),this.$div.triggerHandler("show")},error:function(e){var n,i=this.$form.find(".control-group"),a=this.$form.find(".editable-error-block");if(e===!1)i.removeClass(t.fn.editableform.errorGroupClass),a.removeClass(t.fn.editableform.errorBlockClass).empty().hide();else{if(e){n=(""+e).split("\n");for(var s=0;s").text(n[s]).html();e=n.join("
")}i.addClass(t.fn.editableform.errorGroupClass),a.addClass(t.fn.editableform.errorBlockClass).html(e).show()}},submit:function(e){e.stopPropagation(),e.preventDefault();var n=this.input.input2value(),i=this.validate(n);if("object"===t.type(i)&&void 0!==i.newValue){if(n=i.newValue,this.input.value2input(n),"string"==typeof i.msg)return this.error(i.msg),void this.showForm()}else if(i)return this.error(i),void this.showForm();if(!this.options.savenochange&&this.input.value2str(n)==this.input.value2str(this.value))return void this.$div.triggerHandler("nochange");var a=this.input.value2submit(n);this.isSaving=!0,t.when(this.save(a)).done(t.proxy(function(t){this.isSaving=!1;var e="function"==typeof this.options.success?this.options.success.call(this.options.scope,t,n):null;return e===!1?(this.error(!1),void this.showForm(!1)):"string"==typeof e?(this.error(e),void this.showForm()):(e&&"object"==typeof e&&e.hasOwnProperty("newValue")&&(n=e.newValue),this.error(!1),this.value=n,void this.$div.triggerHandler("save",{newValue:n,submitValue:a,response:t}))},this)).fail(t.proxy(function(t){this.isSaving=!1;var e;e="function"==typeof this.options.error?this.options.error.call(this.options.scope,t,n):"string"==typeof t?t:t.responseText||t.statusText||"Unknown error!",this.error(e),this.showForm()},this))},save:function(e){this.options.pk=t.fn.editableutils.tryParseJson(this.options.pk,!0);var n,i="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk,a=!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!==i&&void 0!==i));return a?(this.showLoading(),n={name:this.options.name||"",value:e,pk:i},"function"==typeof this.options.params?n=this.options.params.call(this.options.scope,n):(this.options.params=t.fn.editableutils.tryParseJson(this.options.params,!0),t.extend(n,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,n):t.ajax(t.extend({url:this.options.url,data:n,type:"POST"},this.options.ajaxOptions))):void 0},validate:function(t){return void 0===t&&(t=this.value),"function"==typeof this.options.validate?this.options.validate.call(this.options.scope,t):void 0},option:function(t,e){t in this.options&&(this.options[t]=e),"value"===t&&this.setValue(e)},setValue:function(t,e){this.value=e?this.input.str2value(t):t,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},t.fn.editableform=function(n){var i=arguments;return this.each(function(){var a=t(this),s=a.data("editableform"),o="object"==typeof n&&n;s||a.data("editableform",s=new e(this,o)),"string"==typeof n&&s[n].apply(s,Array.prototype.slice.call(i,1))
-})},t.fn.editableform.Constructor=e,t.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},t.fn.editableform.template='',t.fn.editableform.loading='',t.fn.editableform.buttons='',t.fn.editableform.errorGroupClass=null,t.fn.editableform.errorBlockClass="editable-error",t.fn.editableform.engine="jquery"}(window.jQuery),function(t){t.fn.editableutils={inherit:function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype},setCursorPosition:function(t,e){if(t.setSelectionRange)t.setSelectionRange(e,e);else if(t.createTextRange){var n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}},tryParseJson:function(t,e){if("string"==typeof t&&t.length&&t.match(/^[\{\[].*[\}\]]$/))if(e)try{t=new Function("return "+t)()}catch(n){}finally{return t}else t=new Function("return "+t)();return t},sliceObj:function(e,n,i){var a,s,o={};if(!t.isArray(n)||!n.length)return o;for(var r=0;r").text(e).html()},itemsByValue:function(e,n,i){if(!n||null===e)return[];if("function"!=typeof i){var a=i||"value";i=function(t){return t[a]}}var s=t.isArray(e),o=[],r=this;return t.each(n,function(n,a){if(a.children)o=o.concat(r.itemsByValue(e,a.children,i));else if(s)t.grep(e,function(t){return t==(a&&"object"==typeof a?i(a):a)}).length&&o.push(a);else{var l=a&&"object"==typeof a?i(a):a;e==l&&o.push(a)}}),o},createInput:function(e){var n,i,a,s=e.type;return"date"===s&&("inline"===e.mode?t.fn.editabletypes.datefield?s="datefield":t.fn.editabletypes.dateuifield&&(s="dateuifield"):t.fn.editabletypes.date?s="date":t.fn.editabletypes.dateui&&(s="dateui"),"date"!==s||t.fn.editabletypes.date||(s="combodate")),"datetime"===s&&"inline"===e.mode&&(s="datetimefield"),"wysihtml5"!==s||t.fn.editabletypes[s]||(s="textarea"),"function"==typeof t.fn.editabletypes[s]?(n=t.fn.editabletypes[s],i=this.sliceObj(e,this.objectKeys(n.defaults)),a=new n(i)):(t.error("Unknown type: "+s),!1)},supportsTransitions:function(){var t=document.body||document.documentElement,e=t.style,n="transition",i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof e[n])return!0;n=n.charAt(0).toUpperCase()+n.substr(1);for(var a=0;a"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(t){if(this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")){if(this.$form.data("editableform").isSaving)return void(this.delayedHide={reason:t});this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",t||"manual")}},innerShow:function(){},innerHide:function(){},toggle:function(t){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(t)},setPosition:function(){},save:function(t,e){this.$element.triggerHandler("save",e),this.hide("save")},option:function(t,e){this.options[t]=e,t in this.containerOptions?(this.containerOptions[t]=e,this.setContainerOption(t,e)):(this.formOptions[t]=e,this.$form&&this.$form.editableform("option",t,e))},setContainerOption:function(t,e){this.call("option",t,e)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(e){t(".editable-open").each(function(n,i){if(i!==e&&!t(i).find(e).length){var a=t(i),s=a.data("editableContainer");s&&("cancel"===s.options.onblur?a.data("editableContainer").hide("onblur"):"submit"===s.options.onblur&&a.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},t.fn.editableContainer=function(i){var a=arguments;return this.each(function(){var s=t(this),o="editableContainer",r=s.data(o),l="object"==typeof i&&i,c="inline"===l.mode?n:e;r||s.data(o,r=new c(this,l)),"string"==typeof i&&r[i].apply(r,Array.prototype.slice.call(a,1))})},t.fn.editableContainer.Popup=e,t.fn.editableContainer.Inline=n,t.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}}(window.jQuery),function(t){t.extend(t.fn.editableContainer.Inline.prototype,t.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=t(""),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,t.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(t){var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.editable.defaults,n,t.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!t.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};e.prototype={constructor:e,init:function(){var e,n=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=t.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(t.trim(this.$element.html())),n=!0):(this.options.value=t.fn.editableutils.tryParseJson(this.options.value,!0),this.value="string"==typeof this.options.value?this.input.str2value(this.options.value):this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",t.proxy(function(t){if(this.options.disabled||t.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var e="click"!==this.options.toggle;this.toggle(e)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":e=!0;break;case"auto":e=!t.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!n;break;default:e=!1}t.when(e?this.render():!0).then(t.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))}},initLive:function(){var e=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",e,t.proxy(function(e){var n=t(e.target);n.data("editable")||(n.hasClass(this.options.emptyclass)&&n.empty(),n.editable(this.options).trigger(e))},this))},render:function(t){return this.options.display!==!1?this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,t):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,t):this.input.value2html(this.value,this.$element[0]):void 0},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(e,n){return e&&"object"==typeof e?void t.each(e,t.proxy(function(e,n){this.option(t.trim(e),n)},this)):(this.options[e]=n,"disabled"===e?n?this.disable():this.enable():("value"===e&&this.setValue(n),this.container&&this.container.option(e,n),void(this.input.option&&this.input.option(e,n))))},handleEmpty:function(e){this.options.display!==!1&&(this.isEmpty=void 0!==e?e:"function"==typeof this.input.isEmpty?this.input.isEmpty(this.$element):""===t.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(e){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var n=t.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(n),this.$element.on("save.internal",t.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(e)}},hide:function(){this.container&&this.container.hide()},toggle:function(t){this.container&&this.container.tip().is(":visible")?this.hide():this.show(t)},save:function(t,e){if(this.options.unsavedclass){var n=!1;n=n||"function"==typeof this.options.url,n=n||this.options.display===!1,n=n||void 0!==e.response,n=n||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(e.newValue),n?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var i=this.$element,a=i.css("background-color");i.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===a&&(a=""),i.css("background-color",a),i.addClass("editable-bg-transition"),setTimeout(function(){i.removeClass("editable-bg-transition")},1700)},10)}this.setValue(e.newValue,!1,e.response)},validate:function(){return"function"==typeof this.options.validate?this.options.validate.call(this,this.value):void 0},setValue:function(e,n,i){this.value=n?this.input.str2value(e):e,this.container&&this.container.option("value",this.value),t.when(this.render(i)).then(t.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},t.fn.editable=function(n){var i={},a=arguments,s="editable";switch(n){case"validate":return this.each(function(){var e,n=t(this),a=n.data(s);a&&(e=a.validate())&&(i[a.options.name]=e)}),i;case"getValue":return 2===arguments.length&&arguments[1]===!0?i=this.eq(0).data(s).value:this.each(function(){var e=t(this),n=e.data(s);n&&void 0!==n.value&&null!==n.value&&(i[n.options.name]=n.input.value2submit(n.value))}),i;case"submit":var o=arguments[1]||{},r=this,l=this.editable("validate");if(t.isEmptyObject(l)){var c={};if(1===r.length){var u=r.data("editable"),d={name:u.options.name||"",value:u.input.value2submit(u.value),pk:"function"==typeof u.options.pk?u.options.pk.call(u.options.scope):u.options.pk};"function"==typeof u.options.params?d=u.options.params.call(u.options.scope,d):(u.options.params=t.fn.editableutils.tryParseJson(u.options.params,!0),t.extend(d,u.options.params)),c={url:u.options.url,data:d,type:"POST"},o.success=o.success||u.options.success,o.error=o.error||u.options.error}else{var h=this.editable("getValue");c={url:o.url,data:h,type:"POST"}}c.success="function"==typeof o.success?function(t){o.success.call(r,t,o)}:t.noop,c.error="function"==typeof o.error?function(){o.error.apply(r,arguments)}:t.noop,o.ajaxOptions&&t.extend(c,o.ajaxOptions),o.data&&t.extend(c.data,o.data),t.ajax(c)}else"function"==typeof o.error&&o.error.call(r,l);return this}return this.each(function(){var i=t(this),o=i.data(s),r="object"==typeof n&&n;return r&&r.selector?void(o=new e(this,r)):(o||i.data(s,o=new e(this,r)),void("string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(a,1))))})},t.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(t){t.fn.editabletypes={};var e=function(){};e.prototype={init:function(e,n,i){this.type=e,this.options=t.extend({},i,n)},prerender:function(){this.$tpl=t(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(e,n){t(n)[this.options.escape?"text":"html"](t.trim(e))},html2value:function(e){return t("").html(e).text()},value2str:function(t){return t},str2value:function(t){return t},value2submit:function(t){return t},value2input:function(t){this.$input.val(t)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(e){return t("
").text(e).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(t){void 0!==this.options[t]&&null!==this.options[t]&&this.$input.attr(t,this.options[t])},option:function(t,e){this.options[t]=e}},e.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},t.extend(t.fn.editabletypes,{abstractinput:e})}(window.jQuery),function(t){var e=function(){};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e=t.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),e.resolve()},function(){this.error=this.options.sourceError,e.resolve()}),e.promise()},html2value:function(){return null},value2html:function(e,n,i,a){var s=t.Deferred(),o=function(){"function"==typeof i?i.call(n,e,this.sourceData,a):this.value2htmlFinal(e,n),s.resolve()};return null===e?o.call(this):this.onSourceReady(o,function(){s.resolve()}),s.promise()},onSourceReady:function(e,n){var i;if(t.isFunction(this.options.source)?(i=this.options.source.call(this.options.scope),this.sourceData=null):i=this.options.source,this.options.sourceCache&&t.isArray(this.sourceData))return void e.call(this);try{i=t.fn.editableutils.tryParseJson(i,!1)}catch(a){return void n.call(this)}if("string"==typeof i){if(this.options.sourceCache){var s,o=i;if(t(document).data(o)||t(document).data(o,{}),s=t(document).data(o),s.loading===!1&&s.sourceData)return this.sourceData=s.sourceData,this.doPrepend(),void e.call(this);if(s.loading===!0)return s.callbacks.push(t.proxy(function(){this.sourceData=s.sourceData,this.doPrepend(),e.call(this)},this)),void s.err_callbacks.push(t.proxy(n,this));s.loading=!0,s.callbacks=[],s.err_callbacks=[]}var r=t.extend({url:i,type:"get",cache:!1,dataType:"json",success:t.proxy(function(i){s&&(s.loading=!1),this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(s&&(s.sourceData=this.sourceData,t.each(s.callbacks,function(){this.call()})),this.doPrepend(),e.call(this)):(n.call(this),s&&t.each(s.err_callbacks,function(){this.call()}))},this),error:t.proxy(function(){n.call(this),s&&(s.loading=!1,t.each(s.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);t.ajax(r)}else this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(this.doPrepend(),e.call(this)):n.call(this)},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(t.isArray(this.prependData)||(t.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=t.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),t.isArray(this.prependData)&&t.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(){},makeArray:function(e){var n,i,a,s,o=[];if(!e||"string"==typeof e)return null;if(t.isArray(e)){s=function(t,e){return i={value:t,text:e},n++>=2?!1:void 0};for(var r=0;r
1&&(a.children&&(a.children=this.makeArray(a.children)),o.push(a))):o.push({value:a,text:a})}else t.each(e,function(t,e){o.push({value:t,text:e})});return o},option:function(t,e){this.options[t]=e,"source"===t&&(this.sourceData=null),"prepend"===t&&(this.prependData=null)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),t.fn.editabletypes.list=e}(window.jQuery),function(t){var e=function(t){this.init("text",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),t.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=t(''),this.$input.after(this.$clear).css("padding-right",24).keyup(t.proxy(function(e){if(!~t.inArray(e.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var n=this;this.t=setTimeout(function(){n.toggleClear(e)},100)}},this)).parent().css("position","relative"),this.$clear.click(t.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(){if(this.$clear){var t=this.$input.val().length,e=this.$clear.is(":visible");t&&!e&&this.$clear.show(),!t&&e&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'',placeholder:null,clear:!0}),t.fn.editabletypes.text=e}(window.jQuery),function(t){var e=function(t){this.init("textarea",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(e){e.ctrlKey&&13===e.which&&t(this).closest("form").submit()})},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:"",inputclass:"input-large",placeholder:null,rows:7}),t.fn.editabletypes.textarea=e}(window.jQuery),function(t){var e=function(t){this.init("select",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){this.$input.empty();var e=function(n,i){var a;if(t.isArray(i))for(var s=0;s",a),i[s].children))):(a.value=i[s].value,i[s].disabled&&(a.disabled=!0),n.append(t("