snipe-it/public/build/assets/js/all-b5250d9fda.js

25 lines
756 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){var e=t.getBoundingClientRect(),i={};for(var n in e)i[n]=e[n];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var o=s(r);i.top+=o.top,i.bottom+=o.top,i.left+=o.left,i.right+=o.left}}return i}function r(t){var e=getComputedStyle(t)||{},i=e.position,n=[];if("fixed"===i)return[t];for(var s=t;(s=s.parentNode)&&s&&1===s.nodeType;){var r=void 0;try{r=getComputedStyle(s)}catch(o){}if("undefined"==typeof r||null===r)return n.push(s),n;var a=r,l=a.overflow,u=a.overflowX,c=a.overflowY;/(auto|scroll)/.test(l+c+u)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(r.position)>=0)&&n.push(s)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function o(){D&&document.body.removeChild(D),D=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,n=s(t),r=A();return n.top-=r.top,n.left-=r.left,"undefined"==typeof n.width&&(n.width=document.body.scrollWidth-n.left-n.right),"undefined"==typeof n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-i.clientTop,n.left=n.left-i.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}function l(t){return t.offsetParent||document.documentElement}function u(){if(E)return E;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;i===n&&(n=e.clientWidth),document.body.removeChild(e);var s=i-n;return E={width:s,height:s}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}),t}function h(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=f(t).replace(i," ");g(t,n)}}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{h(t,e);var i=f(t)+(" "+e);g(t,i)}}function p(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var i=f(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function f(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,i){i.forEach(function(i){e.indexOf(i)===-1&&p(t,i)&&h(t,i)}),e.forEach(function(e){p(t,e)||d(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+i>=e&&e>=t-i}function _(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function b(){for(var t={top:0,left:0},e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.forEach(function(e){var i=e.top,n=e.left;"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof n&&(n=parseFloat(n,10)),t.top+=i,t.left+=n}),t}function w(t,e){return"string"==typeof t.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&t.top.indexOf("%")!==-1&&(t.top=parseFloat(t.top,10)/100*e.height),t}function x(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeof e.nodeType&&!function(){var t=e,i=a(e),n=i,s=getComputedStyle(e);if(e=[n.left,n.top,i.width+n.left,i.height+n.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}K.forEach(function(t,i){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[i]+=parseFloat(s["border"+t+"Width"]):e[i]-=parseFloat(s["border"+t+"Width"])})}(),e}var C=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),k=void 0;"undefined"==typeof k&&(k={modules:[]});var D=null,T=function(){var t=0;return function(){return++t}}(),S={},A=function(){var t=D;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),c(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),D=t);var e=t.getAttribute("data-tether-id");return"undefined"==typeof S[e]&&(S[e]=s(t),O(function(){delete S[e]})),S[e]},E=null,I=[],O=function(t){I.push(t)},$=function(){for(var t=void 0;t=I.pop();)t()},P=function(){function t(){n(this,t)}return C(t,[{key:"on",value:function(t,e,i){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];"undefined"==typeof this.bindings&&(this.bindings={}),"undefined"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if("undefined"!=typeof this.bindings&&"undefined"!=typeof this.bindings[t])if("undefined"==typeof e)delete this.bindings[t];else for(var i=0;i<this.bindings[t].length;)this.bindings[t][i].handler===e?this.bindings[t].splice(i,1):++i}},{key:"trigger",value:function(t){if("undefined"!=typeof this.bindings&&this.bindings[t]){for(var e=0,i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],o=r.handler,a=r.ctx,l=r.once,u=a;"undefined"==typeof u&&(u=this),o.apply(u,n),l?this.bindings[t].splice(e,1):++e}}}}]),t}();k.Utils={getActualBoundingClientRect:s,getScrollParents:r,getBounds:a,getOffsetParent:l,extend:c,addClass:d,removeClass:h,hasClass:p,updateClasses:m,defer:O,flush:$,uniqueId:T,Evented:P,getScrollBarSize:u,removeUtilElements:o};var M=function(){function t(t,e){var i=[],n=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(l){s=!0,r=l}finally{try{!n&&a["return"]&&a["return"]()}finally{if(s)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),N=function(t,e,i){for(var n=!0;n;){var s=t,r=e,o=i;n=!1,null===s&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(o)}var u=Object.getPrototypeOf(s);if(null===u)return;t=u,e=r,i=o,n=!0,a=u=void 0}};if("undefined"==typeof k)throw new Error("You must include the utils.js file before tether.js");var j=k.Utils,r=j.getScrollParents,a=j.getBounds,l=j.getOffsetParent,c=j.extend,d=j.addClass,h=j.removeClass,m=j.updateClasses,O=j.defer,$=j.flush,u=j.getScrollBarSize,o=j.removeUtilElements,F=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}(),H=[],L=function(){H.forEach(function(t){t.position(!1)}),$()};!function(){var t=null,e=null,i=null,n=function s(){return"undefined"!=typeof e&&e>16?(e=Math.min(e-16,250),void(i=setTimeout(s,250))):void("undefined"!=typeof t&&_()-t<10||(null!=i&&(clearTimeout(i),i=null),t=_(),L(),e=_()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,n)})}();var R={center:"center",left:"right",right:"left"},z={middle:"middle",top:"bottom",bottom:"top"},W={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var i=t.left,n=t.top;return"auto"===i&&(i=R[e.left]),"auto"===n&&(n=z[e.top]),{left:i,top:n}},B=function(t){var e=t.left,i=t.top;return"undefined"!=typeof W[t.left]&&(e=W[t.left]),"undefined"!=typeof W[t.top]&&(i=W[t.top]),{left:e,top:i}},q=function(t){var e=t.split(" "),i=M(e,2),n=i[0],s=i[1];return{top:n,left:s}},Y=q,V=function(t){function e(t){var i=this;n(this,e),N(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),H.push(this),this.history=[],this.setOptions(t,!1),k.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(i)}),this.position()}return v(e,t),C(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(n,t);var s=this.options,o=s.element,a=s.target,l=s.targetModifier;if(this.element=o,this.target=a,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),d(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&d(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(i)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,i=this.target;i===document.body?(i=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(i);var n=getComputedStyle(i),s=i.scrollWidth>i.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;s&&(r=15);var o=t.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,e={width:15,height:.975*o*(o/i.scrollHeight),left:t.left+t.width-parseFloat(n.borderLeftWidth)-15},l=0;o<408&&this.target===document.body&&(l=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(i.scrollHeight-o);return e.top=u*(o-e.height-l)+t.top+parseFloat(n.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;h(this.target,this.getClass("enabled")),h(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),H.forEach(function(e,i){e===t&&H.splice(i,1)}),0===H.length&&o()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment;var n=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var s=this._addAttachClasses;t.top&&s.push(this.getClass("element-attached")+"-"+t.top),t.left&&s.push(this.getClass("element-attached")+"-"+t.left),e.top&&s.push(this.getClass("target-attached")+"-"+e.top),e.left&&s.push(this.getClass("target-attached")+"-"+e.left);var r=[];n.forEach(function(t){r.push(i.getClass("element-attached")+"-"+t),r.push(i.getClass("target-attached")+"-"+t)}),O(function(){"undefined"!=typeof i._addAttachClasses&&(m(i.element,i._addAttachClasses,r),i.options.addTargetClasses!==!1&&m(i.target,i._addAttachClasses,r),delete i._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var i=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,i);var n=this.cache("element-bounds",function(){return a(t.element)}),s=n.width,r=n.height;if(0===s&&0===r&&"undefined"!=typeof this.lastSize){var o=this.lastSize;s=o.width,r=o.height}else this.lastSize={width:s,height:r};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),h=c,d=w(B(this.attachment),{width:s,height:r}),p=w(B(i),h),f=w(this.offset,{width:s,height:r}),g=w(this.targetOffset,h);d=b(d,f),p=b(p,g);for(var m=c.left+p.left-d.left,v=c.top+p.top-d.top,y=0;y<k.modules.length;++y){var _=k.modules[y],x=_.position.call(this,{left:m,top:v,targetAttachment:i,targetPos:c,elementPos:n,offset:d,targetOffset:p,manualOffset:f,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(x===!1)return!1;"undefined"!=typeof x&&"object"==typeof x&&(v=x.top,m=x.left)}var C={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-s+innerWidth}},D=this.target.ownerDocument,T=D.defaultView,S=void 0;return T.innerHeight>D.documentElement.clientHeight&&(S=this.cache("scrollbar-size",u),C.viewport.bottom-=S.height),T.innerWidth>D.documentElement.clientWidth&&(S=this.cache("scrollbar-size",u),C.viewport.right-=S.width),["","static"].indexOf(D.body.style.position)!==-1&&["","static"].indexOf(D.body.parentElement.style.position)!==-1||(C.page.bottom=D.body.scrollHeight-v-r,C.page.right=D.body.scrollWidth-m-s),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),i=t.cache("target-offsetparent-bounds",function(){return a(e)}),n=getComputedStyle(e),s=i,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])}),i.right=D.body.scrollWidth-i.left-s.width+r.right,i.bottom=D.body.scrollHeight-i.top-s.height+r.bottom,C.page.top>=i.top+r.top&&C.page.bottom>=i.bottom&&C.page.left>=i.left+r.left&&C.page.right>=i.right){var o=e.scrollTop,u=e.scrollLeft;C.offset={top:C.page.top-i.top+o-r.top,left:C.page.left-i.left+u-r.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),e&&$(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var i={};for(var n in t){i[n]={};for(var s in t[n]){for(var r=!1,o=0;o<this.history.length;++o){var a=this.history[o];if("undefined"!=typeof a[n]&&!y(a[n][s],t[n][s])){r=!0;break}}r||(i[n][s]=!0)}}var u={top:"",left:"",right:"",bottom:""},h=function(t,i){var n="undefined"!=typeof e.options.optimizations,s=n?e.options.optimizations.gpu:null;if(s!==!1){var r=void 0,o=void 0;if(t.top?(u.top=0,r=i.top):(u.bottom=0,r=-i.bottom),t.left?(u.left=0,o=i.left):(u.right=0,o=-i.right),window.matchMedia){var a=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;a||(o=Math.round(o),r=Math.round(r))}u[F]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==F&&(u[F]+=" translateZ(0)")}else t.top?u.top=i.top+"px":u.bottom=i.bottom+"px",t.left?u.left=i.left+"px":u.right=i.right+"px"},d=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(u.position="absolute",h(i.page,t.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(u.position="fixed",h(i.viewport,t.viewport)):"undefined"!=typeof i.offset&&i.offset.top&&i.offset.left?!function(){u.position="absolute";var n=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==n&&O(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),h(i.offset,t.offset),d=!0}():(u.position="absolute",h({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var p=!0,f=this.element.parentNode;f&&1===f.nodeType&&"BODY"!==f.tagName;){if("static"!==getComputedStyle(f).position){p=!1;break}f=f.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var s in u){var v=u[s],_=this.element.style[s];_!==v&&(m=!0,g[s]=v)}m&&O(function(){c(e.element.style,g),e.trigger("repositioned")})}}}]),e}(P);V.modules=[],k.position=L;var X=c(V,k),M=function(){function t(t,e){var i=[],n=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(l){s=!0,r=l}finally{try{!n&&a["return"]&&a["return"]()}finally{if(s)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=k.Utils,a=j.getBounds,c=j.extend,m=j.updateClasses,O=j.defer,K=["left","top","right","bottom"];k.modules.push({position:function(t){var e=this,i=t.top,n=t.left,s=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),o=r.height,l=r.width;if(0===l&&0===o&&"undefined"!=typeof this.lastSize){var u=this.lastSize;l=u.width,o=u.height}var h=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=h.height,p=h.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,i=t.pinnedClass;e&&f.push(e),i&&f.push(i)}),f.forEach(function(t){["left","top","right","bottom"].forEach(function(e){f.push(t+"-"+e)})});var g=[],v=c({},s),y=c({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,u=t.pin;"undefined"==typeof a&&(a="");var c=void 0,h=void 0;if(a.indexOf(" ")>=0){var f=a.split(" "),m=M(f,2);h=m[0],c=m[1]}else c=h=a;var _=x(e,r);"target"!==h&&"both"!==h||(i<_[1]&&"top"===v.top&&(i+=d,v.top="bottom"),i+o>_[3]&&"bottom"===v.top&&(i-=d,v.top="top")),"together"===h&&("top"===v.top&&("bottom"===y.top&&i<_[1]?(i+=d,v.top="bottom",i+=o,y.top="top"):"top"===y.top&&i+o>_[3]&&i-(o-d)>=_[1]&&(i-=o-d,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&i+o>_[3]?(i-=d,v.top="top",i-=o,y.top="bottom"):"bottom"===y.top&&i<_[1]&&i+(2*o-d)<=_[3]&&(i+=o-d,v.top="top",y.top="top")),"middle"===v.top&&(i+o>_[3]&&"top"===y.top?(i-=o,y.top="bottom"):i<_[1]&&"bottom"===y.top&&(i+=o,y.top="top"))),"target"!==c&&"both"!==c||(n<_[0]&&"left"===v.left&&(n+=p,v.left="right"),n+l>_[2]&&"right"===v.left&&(n-=p,v.left="left")),"together"===c&&(n<_[0]&&"left"===v.left?"right"===y.left?(n+=p,v.left="right",n+=l,y.left="left"):"left"===y.left&&(n+=p,v.left="right",n-=l,y.left="right"):n+l>_[2]&&"right"===v.left?"left"===y.left?(n-=p,v.left="left",n-=l,y.left="right"):"right"===y.left&&(n-=p,v.left="left",n+=l,y.left="left"):"center"===v.left&&(n+l>_[2]&&"left"===y.left?(n-=l,y.left="right"):n<_[0]&&"right"===y.left&&(n+=l,y.left="left"))),"element"!==h&&"both"!==h||(i<_[1]&&"bottom"===y.top&&(i+=o,y.top="top"),i+o>_[3]&&"top"===y.top&&(i-=o,y.top="bottom")),"element"!==c&&"both"!==c||(n<_[0]&&("right"===y.left?(n+=l,y.left="left"):"center"===y.left&&(n+=l/2,y.left="left")),n+l>_[2]&&("left"===y.left?(n-=l,y.left="right"):"center"===y.left&&(n-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):u===!0&&(u=["top","left","right","bottom"]),u=u||[];var b=[],w=[];i<_[1]&&(u.indexOf("top")>=0?(i=_[1],b.push("top")):w.push("top")),i+o>_[3]&&(u.indexOf("bottom")>=0?(i=_[3]-o,b.push("bottom")):w.push("bottom")),n<_[0]&&(u.indexOf("left")>=0?(n=_[0],b.push("left")):w.push("left")),n+l>_[2]&&(u.indexOf("right")>=0?(n=_[2]-l,b.push("right")):w.push("right")),b.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),b.forEach(function(e){g.push(t+"-"+e)})}(),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),(b.indexOf("left")>=0||b.indexOf("right")>=0)&&(y.left=v.left=!1),(b.indexOf("top")>=0||b.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===s.top&&v.left===s.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),O(function(){e.options.addTargetClasses!==!1&&m(e.target,g,f),m(e.element,g,f)}),{top:i,left:n}}});var j=k.Utils,a=j.getBounds,m=j.updateClasses,O=j.defer;k.modules.push({position:function(t){var e=this,i=t.top,n=t.left,s=this.cache("element-bounds",function(){return a(e.element)}),r=s.height,o=s.width,l=this.getTargetBounds(),u=i+r,c=n+o,h=[];i<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==n&&e!==c||h.push(t)}),n<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==i&&e!==u||h.push(t)});var d=[],p=[],f=["left","top","right","bottom"];return d.push(this.getClass("abutted")),f.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),h.length&&p.push(this.getClass("abutted")),h.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),O(function(){e.options.addTargetClasses!==!1&&m(e.target,p,d),m(e.element,p,d)}),!0}});var M=function(){function t(t,e){var i=[],n=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(l){s=!0,r=l}finally{try{!n&&a["return"]&&a["return"]()}finally{if(s)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return k.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:i}));var s=void 0,r=void 0;if("string"==typeof n){n=n.split(" "),n[1]=n[1]||n[0];var o=n,a=M(o,2);s=a[0],r=a[1],s=parseFloat(s,10),r=parseFloat(r,10)}else s=n.top,r=n.left;return e+=s,i+=r,{top:e,left:i}}}}),X}),!function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,e,i){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=25)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var i=this[e];i[2]?t.push("@media "+i[2]+"{"+i[1]+"}"):t.push(i[1])}return t.join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},s=0;s<this.length;s++){var r=this[s][0];"number"==typeof r&&(n[r]=!0)}for(s=0;s<e.length;s++){var o=e[s];"number"==typeof o[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),t.push(o))}},t}},function(t,e){function i(t,e){for(var i=0;i<t.length;i++){var n=t[i],s=c[n.id];if(s){s.refs++;for(var r=0;r<s.parts.length;r++)s.parts[r](n.parts[r]);for(;r<n.parts.length;r++)s.parts.push(a(n.parts[r],e))}else{for(var o=[],r=0;r<n.parts.length;r++)o.push(a(n.parts[r],e));c[n.id]={id:n.id,refs:1,parts:o}}}}function n(t){for(var e=[],i={},n=0;n<t.length;n++){var s=t[n],r=s[0],o=s[1],a=s[2],l=s[3],u={css:o,media:a,sourceMap:l};i[r]?i[r].parts.push(u):e.push(i[r]={id:r,parts:[u]})}return e}function s(t,e){var i=p(),n=m[m.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(e)}}function r(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function o(t){var e=document.createElement("style");return e.type="text/css",s(t,e),e}function a(t,e){var i,n,s;if(e.singleton){var a=g++;i=f||(f=o(e)),n=l.bind(null,i,a,!1),s=l.bind(null,i,a,!0)}else i=o(e),n=u.bind(null,i),s=function(){r(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else s()}}function l(t,e,i,n){var s=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=v(e,s);else{var r=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function u(t,e){var i=e.css,n=e.media,s=e.sourceMap;if(n&&t.setAttribute("media",n),s&&(i+="\n/*# sourceURL="+s.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var c={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=h(function(){return document.head||document.getElementsByTagName("head")[0]}),f=null,g=0,m=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},"undefined"==typeof e.singleton&&(e.singleton=d()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var s=n(t);return i(s,e),function(t){for(var r=[],o=0;o<s.length;o++){var a=s[o],l=c[a.id];l.refs--,r.push(l)}if(t){var u=n(t);i(u,e)}for(var o=0;o<r.length;o++){var l=r[o];if(0===l.refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete c[l.id]}}}};var v=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){window._=i(15),window.$=window.jQuery=i(14),i(7),window.Vue=i(23),i(19),Vue.http.interceptors.push(function(t,e){t.headers.set("X-CSRF-TOKEN",Laravel.csrfToken),e()})},function(t,e,i){var n,s;i(21),n=i(8);var r=i(17);s=n=n||{},"object"!=typeof n["default"]&&"function"!=typeof n["default"]||(s=n=n["default"]),"function"==typeof s&&(s=s.options),s.render=r.render,s.staticRenderFns=r.staticRenderFns,s._scopeId="data-v-40bb967b",t.exports=n},function(t,e,i){var n,s;i(20),n=i(9);var r=i(16);s=n=n||{},"object"!=typeof n["default"]&&"function"!=typeof n["default"]||(s=n=n["default"]),"function"==typeof s&&(s=s.options),s.render=r.render,s.staticRenderFns=r.staticRenderFns,s._scopeId="data-v-0c1342d4",t.exports=n},function(t,e,i){var n,s;i(22),n=i(10);var r=i(18);s=n=n||{},"object"!=typeof n["default"]&&"function"!=typeof n["default"]||(s=n=n["default"]),"function"==typeof s&&(s=s.options),s.render=r.render,s.staticRenderFns=r.staticRenderFns,s._scopeId="data-v-50cddfe0",t.exports=n},function(t,e){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,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){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){o.detach().trigger("closed.bs.alert").remove()}var s=t(this),r=s.attr("data-target");r||(r=s.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var o=t("#"===r?[]:r);e&&e.preventDefault(),o.length||(o=s.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),r="object"==typeof e&&e;
s||n.data("bs.button",s=new i(this,r)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target).closest(".btn");e.call(n,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),o="string"==typeof e?e:r.slide;s||n.data("bs.carousel",s=new i(this,r)),"number"==typeof e?s.to(e):o?s[o]():r.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,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))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.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},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),n="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(n&&!this.options.wrap)return e;var s="prev"==t?-1:1,r=(i+s)%this.$items.length;return this.$items.eq(r)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.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},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),r=n||this.getItemForDirection(e,s),o=this.interval,a="next"==e?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var u=r[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.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(r)]);h&&h.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,s.addClass(a),r.addClass(a),s.one("bsTransitionEnd",function(){r.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(d)),o&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),r=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var o=t.extend({},r.data(),s.data()),a=s.attr("data-slide-to");a&&(o.interval=!1),e.call(r,o),a&&r.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),s||i.data("bs.collapse",s=new n(this,r)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][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()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.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 a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[o](this.$element[0][l])}}}},n.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 i=this.dimension();this.$element[i](this.$element[i]())[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 s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var r=e(s),o=r.data("bs.collapse"),a=o?"toggle":s.data();i.call(r,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(s).remove(),t(r).each(function(){var n=t(this),s=e(n),r={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.Event("hide.bs.dropdown",r)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var r=e(s),o=r.hasClass("open");if(i(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(r.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},o.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),o=s.hasClass("open");if(!o&&27!=i.which||o&&27==i.which)return 27==i.which&&s.find(r).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=s.find(".dropdown-menu"+a);if(l.length){var u=l.index(i.target);38==i.which&&u>0&&u--,40==i.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),r=s.data("bs.modal"),o=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);r||s.data("bs.modal",r=new i(this,o)),"string"==typeof e?r[e](n):o.show&&r.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(r)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;r?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){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 n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),r=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),o=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},r.data(),n.data());n.is("a")&&i.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(r,o,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),r="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.tooltip",s=new i(this,r)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),r=s.length;r--;){var o=s[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+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()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.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},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=r[0].offsetWidth,d=r[0].offsetHeight;if(u){var p=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+d>f.bottom?"top":"top"==a&&c.top-d<f.top?"bottom":"right"==a&&c.right+h>f.width?"left":"left"==a&&c.left-h<f.left?"right":a,r.removeClass(p).addClass(a)}var g=this.getCalculatedOffset(a,c,h,d);this.applyPlacement(g,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top+=o,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,u=n[0].offsetHeight;"top"==i&&u!=r&&(e.top=e.top+r-u);var c=this.getViewportAdjustedDelta(i,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var h=/top|bottom/.test(i),d=h?2*c.left-s+l:2*c.top-r+u,p=h?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],h)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&r.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var r=window.SVGElement&&i instanceof window.SVGElement,o=n?{top:0,left:0}:r?null:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,l,o)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var r=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-o.scroll,l=e.top+r-o.scroll+n;a<o.top?s.top=o.top-a:l>o.top+o.height&&(s.top=o.top+o.height-l)}else{var u=e.left-r,c=e.left+r+i;u<o.left?s.left=o.left-u:c>o.right&&(s.left=o.left+o.width-c)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),r="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.popover",s=new i(this,r)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.7",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.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)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),r="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,r)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.7",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=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),r=/^#./.test(s)&&t(s);return r&&r.length&&r.is(":visible")&&[[r[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,r=this.targets,o=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return o!=(t=r[r.length-1])&&this.activate(t);if(o&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)o!=r[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(r),e.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function r(){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),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var o=n.find("> .active"),a=s&&t.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);o.length&&a?o.one("bsTransitionEnd",r).emulateTransitionEnd(i.TRANSITION_DURATION):r(),
o.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),r="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,r)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),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=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),r=this.$element.offset(),o=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=r.top)&&"bottom":!(s+o<=t-n)&&"bottom";var a=null==this.affixed,l=a?s:r.top,u=a?o:e;return null!=i&&s<=i?"top":null!=n&&l+u>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,r=n.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(r=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof r&&(r=n.bottom(this.$element));var a=this.getState(o,e,s,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-e-r})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery)},function(t,e,i){"use strict";e["default"]={data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;this.$http.get("/oauth/tokens").then(function(e){t.tokens=e.data})},revoke:function(t){var e=this;this.$http["delete"]("/oauth/tokens/"+t.id).then(function(t){e.getTokens()})}}}},function(t,e,i){"use strict";e["default"]={data:function(){return{clients:[],createForm:{errors:[],name:"",redirect:""},editForm:{errors:[],name:"",redirect:""}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getClients(),$("#modal-create-client").on("shown.bs.modal",function(){$("#create-client-name").focus()}),$("#modal-edit-client").on("shown.bs.modal",function(){$("#edit-client-name").focus()})},getClients:function(){var t=this;this.$http.get("/oauth/clients").then(function(e){t.clients=e.data})},showCreateClientForm:function(){$("#modal-create-client").modal("show")},store:function(){this.persistClient("post","/oauth/clients",this.createForm,"#modal-create-client")},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.redirect=t.redirect,$("#modal-edit-client").modal("show")},update:function(){this.persistClient("put","/oauth/clients/"+this.editForm.id,this.editForm,"#modal-edit-client")},persistClient:function(t,e,i,n){var s=this;i.errors=[],this.$http[t](e,i).then(function(t){s.getClients(),i.name="",i.redirect="",i.errors=[],$(n).modal("hide")})["catch"](function(t){"object"==typeof t.data?i.errors=_.flatten(_.toArray(t.data)):i.errors=["Something went wrong. Please try again."]})},destroy:function(t){var e=this;this.$http["delete"]("/oauth/clients/"+t.id).then(function(t){e.getClients()})}}}},function(t,e,i){"use strict";e["default"]={data:function(){return{accessToken:null,tokens:[],scopes:[],form:{name:"",scopes:[],errors:[]}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens(),this.getScopes(),$("#modal-create-token").on("shown.bs.modal",function(){$("#create-token-name").focus()})},getTokens:function(){var t=this;this.$http.get("/oauth/personal-access-tokens").then(function(e){t.tokens=e.data})},getScopes:function(){var t=this;this.$http.get("/oauth/scopes").then(function(e){t.scopes=e.data})},showCreateTokenForm:function(){$("#modal-create-token").modal("show")},store:function(){var t=this;this.accessToken=null,this.form.errors=[],this.$http.post("/oauth/personal-access-tokens",this.form).then(function(e){t.form.name="",t.form.scopes=[],t.form.errors=[],t.tokens.push(e.data.token),t.showAccessToken(e.data.accessToken)})["catch"](function(e){"object"==typeof e.data?t.form.errors=_.flatten(_.toArray(e.data)):t.form.errors=["Something went wrong. Please try again."]})},toggleScope:function(t){this.scopeIsAssigned(t)?this.form.scopes=_.reject(this.form.scopes,function(e){return e==t}):this.form.scopes.push(t)},scopeIsAssigned:function(t){return _.indexOf(this.form.scopes,t)>=0},showAccessToken:function(t){$("#modal-create-token").modal("hide"),this.accessToken=t,$("#modal-access-token").modal("show")},revoke:function(t){var e=this;this.$http["delete"]("/oauth/personal-access-tokens/"+t.id).then(function(t){e.getTokens()})}}}},function(t,e,i){e=t.exports=i(0)(),e.push([t.i,"\n.action-link[data-v-0c1342d4] {\n cursor: pointer;\n}\n.m-b-none[data-v-0c1342d4] {\n margin-bottom: 0;\n}\n",""])},function(t,e,i){e=t.exports=i(0)(),e.push([t.i,"\n.action-link[data-v-40bb967b] {\n cursor: pointer;\n}\n.m-b-none[data-v-40bb967b] {\n margin-bottom: 0;\n}\n",""])},function(t,e,i){e=t.exports=i(0)(),e.push([t.i,"\n.action-link[data-v-50cddfe0] {\n cursor: pointer;\n}\n.m-b-none[data-v-50cddfe0] {\n margin-bottom: 0;\n}\n",""])},function(t,e,i){var n,s;!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";function o(t,e){e=e||rt;var i=e.createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function a(t){var e=!!t&&"length"in t&&t.length,i=yt.type(t);return"function"!==i&&!yt.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function l(t,e,i){return yt.isFunction(e)?yt.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?yt.grep(t,function(t){return t===e!==i}):"string"!=typeof e?yt.grep(t,function(t){return ct.call(e,t)>-1!==i}):At.test(e)?yt.filter(e,t,i):(e=yt.filter(e,t),yt.grep(t,function(t){return ct.call(e,t)>-1!==i&&1===t.nodeType}))}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={};return yt.each(t.match(Mt)||[],function(t,i){e[i]=!0}),e}function h(t){return t}function d(t){throw t}function p(t,e,i){var n;try{t&&yt.isFunction(n=t.promise)?n.call(t).done(e).fail(i):t&&yt.isFunction(n=t.then)?n.call(t,e,i):e.call(void 0,t)}catch(t){i.call(void 0,t)}}function f(){rt.removeEventListener("DOMContentLoaded",f),i.removeEventListener("load",f),yt.ready()}function g(){this.expando=yt.expando+g.uid++}function m(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:zt.test(t)?JSON.parse(t):t)}function v(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Wt,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i=m(i)}catch(s){}Rt.set(t,e,i)}else i=void 0;return i}function y(t,e,i,n){var s,r=1,o=20,a=n?function(){return n.cur()}:function(){return yt.css(t,e,"")},l=a(),u=i&&i[3]||(yt.cssNumber[e]?"":"px"),c=(yt.cssNumber[e]||"px"!==u&&+l)&&Bt.exec(yt.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do r=r||".5",c/=r,yt.style(t,e,c+u);while(r!==(r=a()/l)&&1!==r&&--o)}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=s)),s}function _(t){var e,i=t.ownerDocument,n=t.nodeName,s=Xt[n];return s?s:(e=i.body.appendChild(i.createElement(n)),s=yt.css(e,"display"),e.parentNode.removeChild(e),"none"===s&&(s="block"),Xt[n]=s,s)}function b(t,e){for(var i,n,s=[],r=0,o=t.length;r<o;r++)n=t[r],n.style&&(i=n.style.display,e?("none"===i&&(s[r]=Lt.get(n,"display")||null,s[r]||(n.style.display="")),""===n.style.display&&Yt(n)&&(s[r]=_(n))):"none"!==i&&(s[r]="none",Lt.set(n,"display",i)));for(r=0;r<o;r++)null!=s[r]&&(t[r].style.display=s[r]);return t}function w(t,e){var i;return i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&yt.nodeName(t,e)?yt.merge([t],i):i}function x(t,e){for(var i=0,n=t.length;i<n;i++)Lt.set(t[i],"globalEval",!e||Lt.get(e[i],"globalEval"))}function C(t,e,i,n,s){for(var r,o,a,l,u,c,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if(r=t[p],r||0===r)if("object"===yt.type(r))yt.merge(d,r.nodeType?[r]:r);else if(Jt.test(r)){for(o=o||h.appendChild(e.createElement("div")),a=(Gt.exec(r)||["",""])[1].toLowerCase(),l=Zt[a]||Zt._default,o.innerHTML=l[1]+yt.htmlPrefilter(r)+l[2],c=l[0];c--;)o=o.lastChild;yt.merge(d,o.childNodes),o=h.firstChild,o.textContent=""}else d.push(e.createTextNode(r));for(h.textContent="",p=0;r=d[p++];)if(n&&yt.inArray(r,n)>-1)s&&s.push(r);else if(u=yt.contains(r.ownerDocument,r),o=w(h.appendChild(r),"script"),u&&x(o),i)for(c=0;r=o[c++];)Qt.test(r.type||"")&&i.push(r);return h}function k(){return!0}function D(){return!1}function T(){try{return rt.activeElement}catch(t){}}function S(t,e,i,n,s,r){var o,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)S(t,a,i,n,e[a],r);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),s===!1)s=D;else if(!s)return t;return 1===r&&(o=s,s=function(t){return yt().off(t),o.apply(this,arguments)},s.guid=o.guid||(o.guid=yt.guid++)),t.each(function(){yt.event.add(this,e,s,n,i)})}function A(t,e){return yt.nodeName(t,"table")&&yt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function I(t){var e=ae.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function O(t,e){var i,n,s,r,o,a,l,u;if(1===e.nodeType){if(Lt.hasData(t)&&(r=Lt.access(t),o=Lt.set(e,r),u=r.events)){delete o.handle,o.events={};for(s in u)for(i=0,n=u[s].length;i<n;i++)yt.event.add(e,s,u[s][i])}Rt.hasData(t)&&(a=Rt.access(t),l=yt.extend({},a),Rt.set(e,l))}}function $(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Kt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function P(t,e,i,n){e=lt.apply([],e);var s,r,a,l,u,c,h=0,d=t.length,p=d-1,f=e[0],g=yt.isFunction(f);if(g||d>1&&"string"==typeof f&&!mt.checkClone&&oe.test(f))return t.each(function(s){var r=t.eq(s);g&&(e[0]=f.call(this,s,r.html())),P(r,e,i,n)});if(d&&(s=C(e,t[0].ownerDocument,!1,t,n),r=s.firstChild,1===s.childNodes.length&&(s=r),r||n)){for(a=yt.map(w(s,"script"),E),l=a.length;h<d;h++)u=s,h!==p&&(u=yt.clone(u,!0,!0),l&&yt.merge(a,w(u,"script"))),i.call(t[h],u,h);if(l)for(c=a[a.length-1].ownerDocument,yt.map(a,I),h=0;h<l;h++)u=a[h],Qt.test(u.type||"")&&!Lt.access(u,"globalEval")&&yt.contains(c,u)&&(u.src?yt._evalUrl&&yt._evalUrl(u.src):o(u.textContent.replace(le,""),c))}return t}function M(t,e,i){for(var n,s=e?yt.filter(e,t):t,r=0;null!=(n=s[r]);r++)i||1!==n.nodeType||yt.cleanData(w(n)),n.parentNode&&(i&&yt.contains(n.ownerDocument,n)&&x(w(n,"script")),n.parentNode.removeChild(n));return t}function N(t,e,i){var n,s,r,o,a=t.style;return i=i||he(t),i&&(o=i.getPropertyValue(e)||i[e],""!==o||yt.contains(t.ownerDocument,t)||(o=yt.style(t,e)),!mt.pixelMarginRight()&&ce.test(o)&&ue.test(e)&&(n=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=s,a.maxWidth=r)),void 0!==o?o+"":o}function j(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function F(t){if(t in me)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ge.length;i--;)if(t=ge[i]+e,t in me)return t}function H(t,e,i){var n=Bt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function L(t,e,i,n,s){var r,o=0;for(r=i===(n?"border":"content")?4:"width"===e?1:0;r<4;r+=2)"margin"===i&&(o+=yt.css(t,i+qt[r],!0,s)),n?("content"===i&&(o-=yt.css(t,"padding"+qt[r],!0,s)),"margin"!==i&&(o-=yt.css(t,"border"+qt[r]+"Width",!0,s))):(o+=yt.css(t,"padding"+qt[r],!0,s),"padding"!==i&&(o+=yt.css(t,"border"+qt[r]+"Width",!0,s)));return o}function R(t,e,i){var n,s=!0,r=he(t),o="border-box"===yt.css(t,"boxSizing",!1,r);if(t.getClientRects().length&&(n=t.getBoundingClientRect()[e]),n<=0||null==n){if(n=N(t,e,r),(n<0||null==n)&&(n=t.style[e]),ce.test(n))return n;s=o&&(mt.boxSizingReliable()||n===t.style[e]),n=parseFloat(n)||0}return n+L(t,e,i||(o?"border":"content"),s,r)+"px"}function z(t,e,i,n,s){return new z.prototype.init(t,e,i,n,s)}function W(){ye&&(i.requestAnimationFrame(W),yt.fx.tick())}function U(){return i.setTimeout(function(){ve=void 0}),ve=yt.now()}function B(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)i=qt[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function q(t,e,i){for(var n,s=(X.tweeners[e]||[]).concat(X.tweeners["*"]),r=0,o=s.length;r<o;r++)if(n=s[r].call(i,e,t))return n}function Y(t,e,i){var n,s,r,o,a,l,u,c,h="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&Yt(t),m=Lt.get(t,"fxshow");i.queue||(o=yt._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,yt.queue(t,"fx").length||o.empty.fire()})}));for(n in e)if(s=e[n],_e.test(s)){if(delete e[n],r=r||"toggle"===s,s===(g?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||yt.style(t,n)}if(l=!yt.isEmptyObject(e),l||!yt.isEmptyObject(p)){h&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],u=m&&m.display,null==u&&(u=Lt.get(t,"display")),c=yt.css(t,"display"),"none"===c&&(u?c=u:(b([t],!0),u=t.style.display||u,c=yt.css(t,"display"),b([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===yt.css(t,"float")&&(l||(d.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1;for(n in p)l||(m?"hidden"in m&&(g=m.hidden):m=Lt.access(t,"fxshow",{display:u}),r&&(m.hidden=!g),g&&b([t],!0),d.done(function(){g||b([t]),Lt.remove(t,"fxshow");for(n in p)yt.style(t,n,p[n])})),l=q(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}}function V(t,e){var i,n,s,r,o;for(i in t)if(n=yt.camelCase(i),s=e[n],r=t[i],yt.isArray(r)&&(s=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),o=yt.cssHooks[n],o&&"expand"in o){r=o.expand(r),delete t[n];for(i in r)i in t||(t[i]=r[i],e[i]=s)}else e[n]=s}function X(t,e,i){var n,s,r=0,o=X.prefilters.length,a=yt.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=ve||U(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,r=1-n,o=0,l=u.tweens.length;o<l;o++)u.tweens[o].run(r);return a.notifyWith(t,[u,r,i]),r<1&&l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:yt.extend({},e),opts:yt.extend(!0,{specialEasing:{},easing:yt.easing._default},i),originalProperties:e,originalOptions:i,startTime:ve||U(),duration:i.duration,tweens:[],createTween:function(e,i){var n=yt.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)u.tweens[i].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(V(c,u.opts.specialEasing);r<o;r++)if(n=X.prefilters[r].call(u,t,c,u.opts))return yt.isFunction(n.stop)&&(yt._queueHooks(u.elem,u.opts.queue).stop=yt.proxy(n.stop,n)),n;return yt.map(c,q,u),yt.isFunction(u.opts.start)&&u.opts.start.call(t,u),yt.fx.timer(yt.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function K(t){var e=t.match(Mt)||[];return e.join(" ")}function G(t){return t.getAttribute&&t.getAttribute("class")||""}function Q(t,e,i,n){var s;if(yt.isArray(e))yt.each(e,function(e,s){i||Ie.test(t)?n(t,s):Q(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)});else if(i||"object"!==yt.type(e))n(t,e);else for(s in e)Q(t+"["+s+"]",e[s],i,n)}function Z(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,r=e.toLowerCase().match(Mt)||[];if(yt.isFunction(i))for(;n=r[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function J(t,e,i,n){function s(a){var l;return r[a]=!0,yt.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)}),l}var r={},o=t===We;return s(e.dataTypes[0])||!r["*"]&&s("*")}function tt(t,e){var i,n,s=yt.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&yt.extend(!0,t,n),t}function et(t,e,i){for(var n,s,r,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)r=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),i[r]}function it(t,e,i,n){var s,r,o,a,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(r=c.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(o=u[l+" "+r]||u["* "+r],!o)for(s in u)if(a=s.split(" "),a[1]===r&&(o=u[l+" "+a[0]]||u["* "+a[0]])){o===!0?o=u[s]:u[s]!==!0&&(r=a[0],c.unshift(a[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}function nt(t){return yt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var st=[],rt=i.document,ot=Object.getPrototypeOf,at=st.slice,lt=st.concat,ut=st.push,ct=st.indexOf,ht={},dt=ht.toString,pt=ht.hasOwnProperty,ft=pt.toString,gt=ft.call(Object),mt={},vt="3.1.1",yt=function(t,e){return new yt.fn.init(t,e)},_t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bt=/^-ms-/,wt=/-([a-z])/g,xt=function(t,e){return e.toUpperCase()};yt.fn=yt.prototype={jquery:vt,constructor:yt,length:0,toArray:function(){return at.call(this)},get:function(t){return null==t?at.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=yt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return yt.each(this,t)},map:function(t){return this.pushStack(yt.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(at.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ut,sort:st.sort,splice:st.splice},yt.extend=yt.fn.extend=function(){var t,e,i,n,s,r,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||yt.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],n=t[e],o!==n&&(u&&n&&(yt.isPlainObject(n)||(s=yt.isArray(n)))?(s?(s=!1,r=i&&yt.isArray(i)?i:[]):r=i&&yt.isPlainObject(i)?i:{},o[e]=yt.extend(u,r,n)):void 0!==n&&(o[e]=n));return o},yt.extend({expando:"jQuery"+(vt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===yt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=yt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==dt.call(t)||(e=ot(t))&&(i=pt.call(e,"constructor")&&e.constructor,"function"!=typeof i||ft.call(i)!==gt))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ht[dt.call(t)]||"object":typeof t},globalEval:function(t){o(t)},camelCase:function(t){return t.replace(bt,"ms-").replace(wt,xt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(a(t))for(i=t.length;n<i&&e.call(t[n],n,t[n])!==!1;n++);else for(n in t)if(e.call(t[n],n,t[n])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(_t,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(a(Object(t))?yt.merge(i,"string"==typeof t?[t]:t):ut.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:ct.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n,s=[],r=0,o=t.length,a=!i;r<o;r++)n=!e(t[r],r),n!==a&&s.push(t[r]);return s},map:function(t,e,i){var n,s,r=0,o=[];if(a(t))for(n=t.length;r<n;r++)s=e(t[r],r,i),null!=s&&o.push(s);else for(r in t)s=e(t[r],r,i),null!=s&&o.push(s);return lt.apply([],o)},guid:1,proxy:function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),yt.isFunction(t))return n=at.call(arguments,2),s=function(){return t.apply(e||this,n.concat(at.call(arguments)))},s.guid=t.guid=t.guid||yt.guid++,s},now:Date.now,support:mt}),"function"==typeof Symbol&&(yt.fn[Symbol.iterator]=st[Symbol.iterator]),yt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ht["[object "+e+"]"]=e.toLowerCase()});var Ct=function(t){function e(t,e,i,n){var s,r,o,a,l,u,c,d=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!n&&((e?e.ownerDocument||e:z)!==P&&$(e),e=e||P,N)){if(11!==f&&(l=vt.exec(t)))if(s=l[1]){if(9===f){if(!(o=e.getElementById(s)))return i;if(o.id===s)return i.push(o),i}else if(d&&(o=d.getElementById(s))&&L(e,o)&&o.id===s)return i.push(o),i}else{if(l[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&x.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(s)),i}if(x.qsa&&!Y[t+" "]&&(!j||!j.test(t))){if(1!==f)d=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(wt,xt):e.setAttribute("id",a=R),u=T(t),r=u.length;r--;)u[r]="#"+a+" "+p(u[r]);c=u.join(","),d=yt.test(t)&&h(e.parentNode)||e}if(c)try{return Z.apply(i,d.querySelectorAll(c)),i}catch(g){}finally{a===R&&e.removeAttribute("id")}}}return A(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>C.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[R]=!0,t}function s(t){var e=P.createElement("fieldset");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var i=t.split("|"),n=i.length;n--;)C.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function u(t){return function(e){return"form"in e?e.parentNode&&e.disabled===!1?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&kt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function c(t){return n(function(e){return e=+e,n(function(i,n){for(var s,r=t([],i.length,e),o=r.length;o--;)i[s=r[o]]&&(i[s]=!(n[s]=i[s]))})})}function h(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function p(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,s=e.next,r=s||n,o=i&&"parentNode"===r,a=U++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,s);return!1}:function(e,i,l){var u,c,h,d=[W,a];if(l){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||o)if(h=e[R]||(e[R]={}),c=h[e.uniqueID]||(h[e.uniqueID]={}),s&&s===e.nodeName.toLowerCase())e=e[n]||e;else{if((u=c[r])&&u[0]===W&&u[1]===a)return d[2]=u[2];if(c[r]=d,d[2]=t(e,i,l))return!0}return!1}}function g(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var s=0,r=i.length;s<r;s++)e(t,i[s],n);return n}function v(t,e,i,n,s){for(var r,o=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(i&&!i(r,n,s)||(o.push(r),u&&e.push(a)));return o}function y(t,e,i,s,r,o){return s&&!s[R]&&(s=y(s)),r&&!r[R]&&(r=y(r,o)),n(function(n,o,a,l){var u,c,h,d=[],p=[],f=o.length,g=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?g:v(g,d,t,a,l),_=i?r||(n?t:f||s)?[]:o:y;if(i&&i(y,_,a,l),s)for(u=v(_,p),s(u,[],a,l),c=u.length;c--;)(h=u[c])&&(_[p[c]]=!(y[p[c]]=h));if(n){if(r||t){if(r){for(u=[],c=_.length;c--;)(h=_[c])&&u.push(y[c]=h);r(null,_=[],u,l)}for(c=_.length;c--;)(h=_[c])&&(u=r?tt(n,h):d[c])>-1&&(n[u]=!(o[u]=h))}}else _=v(_===o?_.splice(f,_.length):_),r?r(null,o,_,l):Z.apply(o,_)})}function _(t){for(var e,i,n,s=t.length,r=C.relative[t[0].type],o=r||C.relative[" "],a=r?1:0,l=f(function(t){return t===e},o,!0),u=f(function(t){return tt(e,t)>-1},o,!0),c=[function(t,i,n){var s=!r&&(n||i!==E)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,s}];a<s;a++)if(i=C.relative[t[a].type])c=[f(g(c),i)];else{if(i=C.filter[t[a].type].apply(null,t[a].matches),i[R]){for(n=++a;n<s&&!C.relative[t[n].type];n++);return y(a>1&&g(c),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),i,a<n&&_(t.slice(a,n)),n<s&&_(t=t.slice(n)),n<s&&p(t))}c.push(i)}return g(c)}function b(t,i){var s=i.length>0,r=t.length>0,o=function(n,o,a,l,u){var c,h,d,p=0,f="0",g=n&&[],m=[],y=E,_=n||r&&C.find.TAG("*",u),b=W+=null==y?1:Math.random()||.1,w=_.length;for(u&&(E=o===P||o||u);f!==w&&null!=(c=_[f]);f++){if(r&&c){for(h=0,o||c.ownerDocument===P||($(c),a=!N);d=t[h++];)if(d(c,o||P,a)){l.push(c);break}u&&(W=b)}s&&((c=!d&&c)&&p--,n&&g.push(c))}if(p+=f,s&&f!==p){for(h=0;d=i[h++];)d(g,m,o,a);if(n){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=G.call(l));m=v(m)}Z.apply(l,m),u&&!n&&m.length>0&&p+i.length>1&&e.uniqueSort(l)}return u&&(W=b,E=y),g};return s?n(o):o}var w,x,C,k,D,T,S,A,E,I,O,$,P,M,N,j,F,H,L,R="sizzle"+1*new Date,z=t.document,W=0,U=0,B=i(),q=i(),Y=i(),V=function(t,e){return t===e&&(O=!0),0},X={}.hasOwnProperty,K=[],G=K.pop,Q=K.push,Z=K.push,J=K.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",rt=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",ot=new RegExp(it+"+","g"),at=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(rt),dt=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),bt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},wt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,xt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Ct=function(){$()},kt=f(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Z.apply(K=J.call(z.childNodes),z.childNodes),K[z.childNodes.length].nodeType}catch(Dt){Z={apply:K.length?function(t,e){Q.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}x=e.support={},D=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},$=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:z;return n!==P&&9===n.nodeType&&n.documentElement?(P=n,M=P.documentElement,N=!D(P),z!==P&&(i=P.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",Ct,!1):i.attachEvent&&i.attachEvent("onunload",Ct)),x.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=s(function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=mt.test(P.getElementsByClassName),x.getById=s(function(t){return M.appendChild(t).id=R,!P.getElementsByName||!P.getElementsByName(R).length}),x.getById?(C.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){return t.getAttribute("id")===e}},C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var i=e.getElementById(t);return i?[i]:[]}}):(C.filter.ID=function(t){var e=t.replace(_t,bt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&N){var i,n,s,r=e.getElementById(t);if(r){if(i=r.getAttributeNode("id"),i&&i.value===t)return[r];for(s=e.getElementsByName(t),n=0;r=s[n++];)if(i=r.getAttributeNode("id"),i&&i.value===t)return[r]}return[]}}),C.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[s++];)1===i.nodeType&&n.push(i);return n}return r},C.find.CLASS=x.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&N)return e.getElementsByClassName(t)},F=[],j=[],(x.qsa=mt.test(P.querySelectorAll))&&(s(function(t){M.appendChild(t).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||j.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+R+"-]").length||j.push("~="),t.querySelectorAll(":checked").length||j.push(":checked"),
t.querySelectorAll("a#"+R+"+*").length||j.push(".#.+[+~]")}),s(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=P.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&j.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&j.push(":enabled",":disabled"),M.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&j.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),j.push(",.*:")})),(x.matchesSelector=mt.test(H=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&s(function(t){x.disconnectedMatch=H.call(t,"*"),H.call(t,"[s!='']:x"),F.push("!=",rt)}),j=j.length&&new RegExp(j.join("|")),F=F.length&&new RegExp(F.join("|")),e=mt.test(M.compareDocumentPosition),L=e||mt.test(M.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}: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 O=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!x.sortDetached&&e.compareDocumentPosition(t)===i?t===P||t.ownerDocument===z&&L(z,t)?-1:e===P||e.ownerDocument===z&&L(z,e)?1:I?tt(I,t)-tt(I,e):0:4&i?-1:1)}:function(t,e){if(t===e)return O=!0,0;var i,n=0,s=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!s||!r)return t===P?-1:e===P?1:s?-1:r?1:I?tt(I,t)-tt(I,e):0;if(s===r)return o(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?o(a[n],l[n]):a[n]===z?-1:l[n]===z?1:0},P):P},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==P&&$(t),i=i.replace(ct,"='$1']"),x.matchesSelector&&N&&!Y[i+" "]&&(!F||!F.test(i))&&(!j||!j.test(i)))try{var n=H.call(t,i);if(n||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(s){}return e(i,P,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==P&&$(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&$(t);var i=C.attrHandle[e.toLowerCase()],n=i&&X.call(C.attrHandle,e.toLowerCase())?i(t,e,!N):void 0;return void 0!==n?n:x.attributes||!N?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.escape=function(t){return(t+"").replace(wt,xt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(O=!x.detectDuplicates,I=!x.sortStable&&t.slice(0),t.sort(V),O){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return I=null,t},k=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},C=e.selectors={cacheLength:50,createPseudo:n,match:pt,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(_t,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=T(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var r=e.attr(s,t);return null==r?"!="===i:!i||(r+="","="===i?r===n:"!="===i?r!==n:"^="===i?n&&0===r.indexOf(n):"*="===i?n&&r.indexOf(n)>-1:"$="===i?n&&r.slice(-n.length)===n:"~="===i?(" "+r.replace(ot," ")+" ").indexOf(n)>-1:"|="===i&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var r="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,d,p,f,g=r!==o?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(m){if(r){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(d=m,h=d[R]||(d[R]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===W&&u[1],_=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(_=p=0)||f.pop();)if(1===d.nodeType&&++_&&d===e){c[t]=[W,p,_];break}}else if(y&&(d=e,h=d[R]||(d[R]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===W&&u[1],_=p),_===!1)for(;(d=++p&&d&&d[g]||(_=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++_||(y&&(h=d[R]||(d[R]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[t]=[W,_]),d!==e)););return _-=s,_===n||_%n===0&&_/n>=0}}},PSEUDO:function(t,i){var s,r=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[R]?r(i):r.length>1?(s=[t,t,"",i],C.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=r(t,i),o=s.length;o--;)n=tt(t,s[o]),t[n]=!(e[n]=s[o])}):function(t){return r(t,0,s)}):r}},pseudos:{not:n(function(t){var e=[],i=[],s=S(t.replace(at,"$1"));return s[R]?n(function(t,e,i,n){for(var r,o=s(t,null,n,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,n,r){return e[0]=t,s(e,null,r,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(_t,bt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_t,bt).toLowerCase(),function(e){var i;do if(i=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:u(!1),disabled:u(!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!C.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.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,i){return[i<0?i+e:i]}),even:c(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:c(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:c(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:c(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,T=e.tokenize=function(t,i){var n,s,r,o,a,l,u,c=q[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],u=C.preFilter;a;){n&&!(s=lt.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),n=!1,(s=ut.exec(a))&&(n=s.shift(),r.push({value:n,type:s[0].replace(at," ")}),a=a.slice(n.length));for(o in C.filter)!(s=pt[o].exec(a))||u[o]&&!(s=u[o](s))||(n=s.shift(),r.push({value:n,type:o,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):q(t,l).slice(0)},S=e.compile=function(t,e){var i,n=[],s=[],r=Y[t+" "];if(!r){for(e||(e=T(t)),i=e.length;i--;)r=_(e[i]),r[R]?n.push(r):s.push(r);r=Y(t,b(s,n)),r.selector=t}return r},A=e.select=function(t,e,i,n){var s,r,o,a,l,u="function"==typeof t&&t,c=!n&&T(t=u.selector||t);if(i=i||[],1===c.length){if(r=c[0]=c[0].slice(0),r.length>2&&"ID"===(o=r[0]).type&&9===e.nodeType&&N&&C.relative[r[1].type]){if(e=(C.find.ID(o.matches[0].replace(_t,bt),e)||[])[0],!e)return i;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(s=pt.needsContext.test(t)?0:r.length;s--&&(o=r[s],!C.relative[a=o.type]);)if((l=C.find[a])&&(n=l(o.matches[0].replace(_t,bt),yt.test(r[0].type)&&h(e.parentNode)||e))){if(r.splice(s,1),t=n.length&&p(r),!t)return Z.apply(i,n),i;break}}return(u||S(t,c))(n,e,!N,i,!e||yt.test(t)&&h(e.parentNode)||e),i},x.sortStable=R.split("").sort(V).join("")===R,x.detectDuplicates=!!O,$(),x.sortDetached=s(function(t){return 1&t.compareDocumentPosition(P.createElement("fieldset"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||r(et,function(t,e,i){var n;if(!i)return t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(i);yt.find=Ct,yt.expr=Ct.selectors,yt.expr[":"]=yt.expr.pseudos,yt.uniqueSort=yt.unique=Ct.uniqueSort,yt.text=Ct.getText,yt.isXMLDoc=Ct.isXML,yt.contains=Ct.contains,yt.escapeSelector=Ct.escape;var kt=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&yt(t).is(i))break;n.push(t)}return n},Dt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},Tt=yt.expr.match.needsContext,St=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,At=/^.[^:#\[\.,]*$/;yt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?yt.find.matchesSelector(n,t)?[n]:[]:yt.find.matches(t,yt.grep(e,function(t){return 1===t.nodeType}))},yt.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(yt(t).filter(function(){for(e=0;e<n;e++)if(yt.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)yt.find(t,s[e],i);return n>1?yt.uniqueSort(i):i},filter:function(t){return this.pushStack(l(this,t||[],!1))},not:function(t){return this.pushStack(l(this,t||[],!0))},is:function(t){return!!l(this,"string"==typeof t&&Tt.test(t)?yt(t):t||[],!1).length}});var Et,It=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ot=yt.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||Et,"string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:It.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof yt?e[0]:e,yt.merge(this,yt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:rt,!0)),St.test(n[1])&&yt.isPlainObject(e))for(n in e)yt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return s=rt.getElementById(n[2]),s&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):yt.isFunction(t)?void 0!==i.ready?i.ready(t):t(yt):yt.makeArray(t,this)};Ot.prototype=yt.fn,Et=yt(rt);var $t=/^(?:parents|prev(?:Until|All))/,Pt={children:!0,contents:!0,next:!0,prev:!0};yt.fn.extend({has:function(t){var e=yt(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(yt.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,r=[],o="string"!=typeof t&&yt(t);if(!Tt.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&yt.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?yt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?ct.call(yt(t),this[0]):ct.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(yt.uniqueSort(yt.merge(this.get(),yt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),yt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return kt(t,"parentNode")},parentsUntil:function(t,e,i){return kt(t,"parentNode",i)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return kt(t,"nextSibling")},prevAll:function(t){return kt(t,"previousSibling")},nextUntil:function(t,e,i){return kt(t,"nextSibling",i)},prevUntil:function(t,e,i){return kt(t,"previousSibling",i)},siblings:function(t){return Dt((t.parentNode||{}).firstChild,t)},children:function(t){return Dt(t.firstChild)},contents:function(t){return t.contentDocument||yt.merge([],t.childNodes)}},function(t,e){yt.fn[t]=function(i,n){var s=yt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=yt.filter(n,s)),this.length>1&&(Pt[t]||yt.uniqueSort(s),$t.test(t)&&s.reverse()),this.pushStack(s)}});var Mt=/[^\x20\t\r\n\f]+/g;yt.Callbacks=function(t){t="string"==typeof t?c(t):yt.extend({},t);var e,i,n,s,r=[],o=[],a=-1,l=function(){for(s=t.once,n=e=!0;o.length;a=-1)for(i=o.shift();++a<r.length;)r[a].apply(i[0],i[1])===!1&&t.stopOnFalse&&(a=r.length,i=!1);t.memory||(i=!1),e=!1,s&&(r=i?[]:"")},u={add:function(){return r&&(i&&!e&&(a=r.length-1,o.push(i)),function n(e){yt.each(e,function(e,i){yt.isFunction(i)?t.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==yt.type(i)&&n(i)})}(arguments),i&&!e&&l()),this},remove:function(){return yt.each(arguments,function(t,e){for(var i;(i=yt.inArray(e,r,i))>-1;)r.splice(i,1),i<=a&&a--}),this},has:function(t){return t?yt.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=i="",this},disabled:function(){return!r},lock:function(){return s=o=[],i||e||(r=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=i||[],i=[t,i.slice?i.slice():i],o.push(i),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},yt.extend({Deferred:function(t){var e=[["notify","progress",yt.Callbacks("memory"),yt.Callbacks("memory"),2],["resolve","done",yt.Callbacks("once memory"),yt.Callbacks("once memory"),0,"resolved"],["reject","fail",yt.Callbacks("once memory"),yt.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(t){return s.then(null,t)},pipe:function(){var t=arguments;return yt.Deferred(function(i){yt.each(e,function(e,n){var s=yt.isFunction(t[n[4]])&&t[n[4]];r[n[1]](function(){var t=s&&s.apply(this,arguments);t&&yt.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[t]:arguments)})}),t=null}).promise()},then:function(t,n,s){function r(t,e,n,s){return function(){var a=this,l=arguments,u=function(){var i,u;if(!(t<o)){if(i=n.apply(a,l),i===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,yt.isFunction(u)?s?u.call(i,r(o,e,h,s),r(o,e,d,s)):(o++,u.call(i,r(o,e,h,s),r(o,e,d,s),r(o,e,h,e.notifyWith))):(n!==h&&(a=void 0,l=[i]),(s||e.resolveWith)(a,l))}},c=s?u:function(){try{u()}catch(i){yt.Deferred.exceptionHook&&yt.Deferred.exceptionHook(i,c.stackTrace),t+1>=o&&(n!==d&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?c():(yt.Deferred.getStackHook&&(c.stackTrace=yt.Deferred.getStackHook()),i.setTimeout(c))}}var o=0;return yt.Deferred(function(i){e[0][3].add(r(0,i,yt.isFunction(s)?s:h,i.notifyWith)),e[1][3].add(r(0,i,yt.isFunction(t)?t:h)),e[2][3].add(r(0,i,yt.isFunction(n)?n:d))}).promise()},promise:function(t){return null!=t?yt.extend(t,s):s}},r={};return yt.each(e,function(t,i){var o=i[2],a=i[5];s[i[1]]=o.add,a&&o.add(function(){n=a},e[3-t][2].disable,e[0][2].lock),o.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=o.fireWith}),s.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,i=e,n=Array(i),s=at.call(arguments),r=yt.Deferred(),o=function(t){return function(i){n[t]=this,s[t]=arguments.length>1?at.call(arguments):i,--e||r.resolveWith(n,s)}};if(e<=1&&(p(t,r.done(o(i)).resolve,r.reject),"pending"===r.state()||yt.isFunction(s[i]&&s[i].then)))return r.then();for(;i--;)p(s[i],o(i),r.reject);return r.promise()}});var Nt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;yt.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Nt.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},yt.readyException=function(t){i.setTimeout(function(){throw t})};var jt=yt.Deferred();yt.fn.ready=function(t){return jt.then(t)["catch"](function(t){yt.readyException(t)}),this},yt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?yt.readyWait++:yt.ready(!0)},ready:function(t){(t===!0?--yt.readyWait:yt.isReady)||(yt.isReady=!0,t!==!0&&--yt.readyWait>0||jt.resolveWith(rt,[yt]))}}),yt.ready.then=jt.then,"complete"===rt.readyState||"loading"!==rt.readyState&&!rt.documentElement.doScroll?i.setTimeout(yt.ready):(rt.addEventListener("DOMContentLoaded",f),i.addEventListener("load",f));var Ft=function(t,e,i,n,s,r,o){var a=0,l=t.length,u=null==i;if("object"===yt.type(i)){s=!0;for(a in i)Ft(t,e,a,i[a],!0,r,o)}else if(void 0!==n&&(s=!0,yt.isFunction(n)||(o=!0),u&&(o?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(yt(t),i)})),e))for(;a<l;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return s?t:u?e.call(t):l?e(t[0],i):r},Ht=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Ht(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[yt.camelCase(e)]=i;else for(n in e)s[yt.camelCase(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][yt.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){yt.isArray(e)?e=e.map(yt.camelCase):(e=yt.camelCase(e),e=e in n?[e]:e.match(Mt)||[]),i=e.length;for(;i--;)delete n[e[i]]}(void 0===e||yt.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!yt.isEmptyObject(e)}};var Lt=new g,Rt=new g,zt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Wt=/[A-Z]/g;yt.extend({hasData:function(t){return Rt.hasData(t)||Lt.hasData(t)},data:function(t,e,i){return Rt.access(t,e,i)},removeData:function(t,e){Rt.remove(t,e)},_data:function(t,e,i){return Lt.access(t,e,i)},_removeData:function(t,e){Lt.remove(t,e)}}),yt.fn.extend({data:function(t,e){var i,n,s,r=this[0],o=r&&r.attributes;if(void 0===t){if(this.length&&(s=Rt.get(r),1===r.nodeType&&!Lt.get(r,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=yt.camelCase(n.slice(5)),v(r,n,s[n])));Lt.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){Rt.set(this,t)}):Ft(this,function(e){var i;if(r&&void 0===e){if(i=Rt.get(r,t),void 0!==i)return i;if(i=v(r,t),void 0!==i)return i}else this.each(function(){Rt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Rt.remove(this,t)})}}),yt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Lt.get(t,e),i&&(!n||yt.isArray(i)?n=Lt.access(t,e,yt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=yt.queue(t,e),n=i.length,s=i.shift(),r=yt._queueHooks(t,e),o=function(){yt.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete r.stop,s.call(t,o,r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Lt.get(t,i)||Lt.access(t,i,{empty:yt.Callbacks("once memory").add(function(){Lt.remove(t,[e+"queue",i])})})}}),yt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?yt.queue(this[0],t):void 0===e?this:this.each(function(){var i=yt.queue(this,t,e);yt._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&yt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){yt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=yt.Deferred(),r=this,o=this.length,a=function(){--n||s.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)i=Lt.get(r[o],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var Ut=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Bt=new RegExp("^(?:([+-])=|)("+Ut+")([a-z%]*)$","i"),qt=["Top","Right","Bottom","Left"],Yt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&yt.contains(t.ownerDocument,t)&&"none"===yt.css(t,"display")},Vt=function(t,e,i,n){var s,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];s=i.apply(t,n||[]);for(r in e)t.style[r]=o[r];return s},Xt={};yt.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Yt(this)?yt(this).show():yt(this).hide()})}});var Kt=/^(?:checkbox|radio)$/i,Gt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Qt=/^$|\/(?:java|ecma)script/i,Zt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Zt.optgroup=Zt.option,Zt.tbody=Zt.tfoot=Zt.colgroup=Zt.caption=Zt.thead,Zt.th=Zt.td;var Jt=/<|&#?\w+;/;!function(){var t=rt.createDocumentFragment(),e=t.appendChild(rt.createElement("div")),i=rt.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),mt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",mt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var te=rt.documentElement,ee=/^key/,ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ne=/^([^.]*)(?:\.(.+)|)/;yt.event={global:{},add:function(t,e,i,n,s){var r,o,a,l,u,c,h,d,p,f,g,m=Lt.get(t);if(m)for(i.handler&&(r=i,i=r.handler,s=r.selector),s&&yt.find.matchesSelector(te,s),i.guid||(i.guid=yt.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return"undefined"!=typeof yt&&yt.event.triggered!==e.type?yt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Mt)||[""],u=e.length;u--;)a=ne.exec(e[u])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p&&(h=yt.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=yt.event.special[p]||{},c=yt.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&yt.expr.match.needsContext.test(s),namespace:f.join(".")},r),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&h.setup.call(t,n,f,o)!==!1||t.addEventListener&&t.addEventListener(p,o)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,c):d.push(c),yt.event.global[p]=!0)},remove:function(t,e,i,n,s){var r,o,a,l,u,c,h,d,p,f,g,m=Lt.hasData(t)&&Lt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(Mt)||[""],u=e.length;u--;)if(a=ne.exec(e[u])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p){for(h=yt.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,d=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=d.length;r--;)c=d[r],!s&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));o&&!d.length&&(h.teardown&&h.teardown.call(t,f,m.handle)!==!1||yt.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)yt.event.remove(t,p+e[u],i,n,!0);yt.isEmptyObject(l)&&Lt.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,r,o,a=yt.event.fix(t),l=new Array(arguments.length),u=(Lt.get(this,"events")||{})[a.type]||[],c=yt.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,a)!==!1){for(o=yt.event.handlers.call(this,a,u),e=0;(s=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(r=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,n=((yt.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,l),void 0!==n&&(a.result=n)===!1&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,r,o,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||u.disabled!==!0)){for(r=[],o={},i=0;i<l;i++)n=e[i],s=n.selector+" ",void 0===o[s]&&(o[s]=n.needsContext?yt(s,this).index(u)>-1:yt.find(s,this,null,[u]).length),o[s]&&r.push(n);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(yt.Event.prototype,t,{enumerable:!0,configurable:!0,get:yt.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[yt.expando]?t:new yt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==T()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===T()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&yt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return yt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},yt.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},yt.Event=function(t,e){return this instanceof yt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?k:D,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&yt.extend(this,e),this.timeStamp=t&&t.timeStamp||yt.now(),void(this[yt.expando]=!0)):new yt.Event(t,e)},yt.Event.prototype={constructor:yt.Event,isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},yt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ee.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&ie.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},yt.event.addProp),yt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){yt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,r=t.handleObj;return s&&(s===n||yt.contains(n,s))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),yt.fn.extend({on:function(t,e,i,n){return S(this,t,e,i,n)},one:function(t,e,i,n){return S(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,yt(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=D),this.each(function(){yt.event.remove(this,t,i,e)})}});var se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,re=/<script|<style|<link/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,ae=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;yt.extend({htmlPrefilter:function(t){return t.replace(se,"<$1></$2>")},clone:function(t,e,i){var n,s,r,o,a=t.cloneNode(!0),l=yt.contains(t.ownerDocument,t);if(!(mt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||yt.isXMLDoc(t)))for(o=w(a),r=w(t),n=0,s=r.length;n<s;n++)$(r[n],o[n]);if(e)if(i)for(r=r||w(t),o=o||w(a),n=0,s=r.length;n<s;n++)O(r[n],o[n]);else O(t,a);return o=w(a,"script"),o.length>0&&x(o,!l&&w(t,"script")),a},cleanData:function(t){for(var e,i,n,s=yt.event.special,r=0;void 0!==(i=t[r]);r++)if(Ht(i)){if(e=i[Lt.expando]){if(e.events)for(n in e.events)s[n]?yt.event.remove(i,n):yt.removeEvent(i,n,e.handle);i[Lt.expando]=void 0}i[Rt.expando]&&(i[Rt.expando]=void 0)}}}),yt.fn.extend({detach:function(t){return M(this,t,!0)},remove:function(t){return M(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?yt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return P(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=A(this,t);e.appendChild(t)}})},prepend:function(){return P(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=A(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return P(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return P(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(yt.cleanData(w(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return yt.clone(this,t,e)})},html:function(t){return Ft(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!re.test(t)&&!Zt[(Gt.exec(t)||["",""])[1].toLowerCase()]){t=yt.htmlPrefilter(t);try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&(yt.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return P(this,arguments,function(e){var i=this.parentNode;yt.inArray(this,t)<0&&(yt.cleanData(w(this)),
i&&i.replaceChild(e,this))},t)}}),yt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){yt.fn[t]=function(t){for(var i,n=[],s=yt(t),r=s.length-1,o=0;o<=r;o++)i=o===r?this:this.clone(!0),yt(s[o])[e](i),ut.apply(n,i.get());return this.pushStack(n)}});var ue=/^margin/,ce=new RegExp("^("+Ut+")(?!px)[a-z%]+$","i"),he=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",te.appendChild(o);var t=i.getComputedStyle(a);e="1%"!==t.top,r="2px"===t.marginLeft,n="4px"===t.width,a.style.marginRight="50%",s="4px"===t.marginRight,te.removeChild(o),a=null}}var e,n,s,r,o=rt.createElement("div"),a=rt.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",mt.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),yt.extend(mt,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return t(),n},pixelMarginRight:function(){return t(),s},reliableMarginLeft:function(){return t(),r}}))}();var de=/^(none|table(?!-c[ea]).+)/,pe={position:"absolute",visibility:"hidden",display:"block"},fe={letterSpacing:"0",fontWeight:"400"},ge=["Webkit","Moz","ms"],me=rt.createElement("div").style;yt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=N(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,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":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,r,o,a=yt.camelCase(e),l=t.style;return e=yt.cssProps[a]||(yt.cssProps[a]=F(a)||a),o=yt.cssHooks[e]||yt.cssHooks[a],void 0===i?o&&"get"in o&&void 0!==(s=o.get(t,!1,n))?s:l[e]:(r=typeof i,"string"===r&&(s=Bt.exec(i))&&s[1]&&(i=y(t,e,s),r="number"),void(null!=i&&i===i&&("number"===r&&(i+=s&&s[3]||(yt.cssNumber[a]?"":"px")),mt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l[e]=i))))}},css:function(t,e,i,n){var s,r,o,a=yt.camelCase(e);return e=yt.cssProps[a]||(yt.cssProps[a]=F(a)||a),o=yt.cssHooks[e]||yt.cssHooks[a],o&&"get"in o&&(s=o.get(t,!0,i)),void 0===s&&(s=N(t,e,n)),"normal"===s&&e in fe&&(s=fe[e]),""===i||i?(r=parseFloat(s),i===!0||isFinite(r)?r||0:s):s}}),yt.each(["height","width"],function(t,e){yt.cssHooks[e]={get:function(t,i,n){if(i)return!de.test(yt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?R(t,e,n):Vt(t,pe,function(){return R(t,e,n)})},set:function(t,i,n){var s,r=n&&he(t),o=n&&L(t,e,n,"border-box"===yt.css(t,"boxSizing",!1,r),r);return o&&(s=Bt.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=yt.css(t,e)),H(t,i,o)}}}),yt.cssHooks.marginLeft=j(mt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(N(t,"marginLeft"))||t.getBoundingClientRect().left-Vt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),yt.each({margin:"",padding:"",border:"Width"},function(t,e){yt.cssHooks[t+e]={expand:function(i){for(var n=0,s={},r="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+qt[n]+e]=r[n]||r[n-2]||r[0];return s}},ue.test(t)||(yt.cssHooks[t+e].set=H)}),yt.fn.extend({css:function(t,e){return Ft(this,function(t,e,i){var n,s,r={},o=0;if(yt.isArray(e)){for(n=he(t),s=e.length;o<s;o++)r[e[o]]=yt.css(t,e[o],!1,n);return r}return void 0!==i?yt.style(t,e,i):yt.css(t,e)},t,e,arguments.length>1)}}),yt.Tween=z,z.prototype={constructor:z,init:function(t,e,i,n,s,r){this.elem=t,this.prop=i,this.easing=s||yt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(yt.cssNumber[i]?"":"px")},cur:function(){var t=z.propHooks[this.prop];return t&&t.get?t.get(this):z.propHooks._default.get(this)},run:function(t){var e,i=z.propHooks[this.prop];return this.options.duration?this.pos=e=yt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=yt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){yt.fx.step[t.prop]?yt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[yt.cssProps[t.prop]]&&!yt.cssHooks[t.prop]?t.elem[t.prop]=t.now:yt.style(t.elem,t.prop,t.now+t.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},yt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},yt.fx=z.prototype.init,yt.fx.step={};var ve,ye,_e=/^(?:toggle|show|hide)$/,be=/queueHooks$/;yt.Animation=yt.extend(X,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return y(i.elem,t,Bt.exec(e),i),i}]},tweener:function(t,e){yt.isFunction(t)?(e=t,t=["*"]):t=t.match(Mt);for(var i,n=0,s=t.length;n<s;n++)i=t[n],X.tweeners[i]=X.tweeners[i]||[],X.tweeners[i].unshift(e)},prefilters:[Y],prefilter:function(t,e){e?X.prefilters.unshift(t):X.prefilters.push(t)}}),yt.speed=function(t,e,i){var n=t&&"object"==typeof t?yt.extend({},t):{complete:i||!i&&e||yt.isFunction(t)&&t,duration:t,easing:i&&e||e&&!yt.isFunction(e)&&e};return yt.fx.off||rt.hidden?n.duration=0:"number"!=typeof n.duration&&(n.duration in yt.fx.speeds?n.duration=yt.fx.speeds[n.duration]:n.duration=yt.fx.speeds._default),null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){yt.isFunction(n.old)&&n.old.call(this),n.queue&&yt.dequeue(this,n.queue)},n},yt.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Yt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=yt.isEmptyObject(t),r=yt.speed(e,i,n),o=function(){var e=X(this,yt.extend({},t),r);(s||Lt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,s||r.queue===!1?this.each(o):this.queue(r.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",r=yt.timers,o=Lt.get(this);if(s)o[s]&&o[s].stop&&n(o[s]);else for(s in o)o[s]&&o[s].stop&&be.test(s)&&n(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=t&&r[s].queue!==t||(r[s].anim.stop(i),e=!1,r.splice(s,1));!e&&i||yt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=Lt.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],r=yt.timers,o=n?n.length:0;for(i.finish=!0,yt.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),yt.each(["toggle","show","hide"],function(t,e){var i=yt.fn[e];yt.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(B(e,!0),t,n,s)}}),yt.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){yt.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),yt.timers=[],yt.fx.tick=function(){var t,e=0,i=yt.timers;for(ve=yt.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||yt.fx.stop(),ve=void 0},yt.fx.timer=function(t){yt.timers.push(t),t()?yt.fx.start():yt.timers.pop()},yt.fx.interval=13,yt.fx.start=function(){ye||(ye=i.requestAnimationFrame?i.requestAnimationFrame(W):i.setInterval(yt.fx.tick,yt.fx.interval))},yt.fx.stop=function(){i.cancelAnimationFrame?i.cancelAnimationFrame(ye):i.clearInterval(ye),ye=null},yt.fx.speeds={slow:600,fast:200,_default:400},yt.fn.delay=function(t,e){return t=yt.fx?yt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var s=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(s)}})},function(){var t=rt.createElement("input"),e=rt.createElement("select"),i=e.appendChild(rt.createElement("option"));t.type="checkbox",mt.checkOn=""!==t.value,mt.optSelected=i.selected,t=rt.createElement("input"),t.value="t",t.type="radio",mt.radioValue="t"===t.value}();var we,xe=yt.expr.attrHandle;yt.fn.extend({attr:function(t,e){return Ft(this,yt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){yt.removeAttr(this,t)})}}),yt.extend({attr:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof t.getAttribute?yt.prop(t,e,i):(1===r&&yt.isXMLDoc(t)||(s=yt.attrHooks[e.toLowerCase()]||(yt.expr.match.bool.test(e)?we:void 0)),void 0!==i?null===i?void yt.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:(n=yt.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!mt.radioValue&&"radio"===e&&yt.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(Mt);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),we={set:function(t,e,i){return e===!1?yt.removeAttr(t,i):t.setAttribute(i,i),i}},yt.each(yt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=xe[e]||yt.find.attr;xe[e]=function(t,e,n){var s,r,o=e.toLowerCase();return n||(r=xe[o],xe[o]=s,s=null!=i(t,e,n)?o:null,xe[o]=r),s}});var Ce=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;yt.fn.extend({prop:function(t,e){return Ft(this,yt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[yt.propFix[t]||t]})}}),yt.extend({prop:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&yt.isXMLDoc(t)||(e=yt.propFix[e]||e,s=yt.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=yt.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),mt.optSelected||(yt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),yt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){yt.propFix[this.toLowerCase()]=this}),yt.fn.extend({addClass:function(t){var e,i,n,s,r,o,a,l=0;if(yt.isFunction(t))return this.each(function(e){yt(this).addClass(t.call(this,e,G(this)))});if("string"==typeof t&&t)for(e=t.match(Mt)||[];i=this[l++];)if(s=G(i),n=1===i.nodeType&&" "+K(s)+" "){for(o=0;r=e[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=K(n),s!==a&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,r,o,a,l=0;if(yt.isFunction(t))return this.each(function(e){yt(this).removeClass(t.call(this,e,G(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Mt)||[];i=this[l++];)if(s=G(i),n=1===i.nodeType&&" "+K(s)+" "){for(o=0;r=e[o++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=K(n),s!==a&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):yt.isFunction(t)?this.each(function(i){yt(this).toggleClass(t.call(this,i,G(this),e),e)}):this.each(function(){var e,n,s,r;if("string"===i)for(n=0,s=yt(this),r=t.match(Mt)||[];e=r[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||(e=G(this),e&&Lt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Lt.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+K(G(i))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;yt.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=yt.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,yt(this).val()):t,null==s?s="":"number"==typeof s?s+="":yt.isArray(s)&&(s=yt.map(s,function(t){return null==t?"":t+""})),e=yt.valHooks[this.type]||yt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=yt.valHooks[s.type]||yt.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(De,""):null==i?"":i)):void 0}}),yt.extend({valHooks:{option:{get:function(t){var e=yt.find.attr(t,"value");return null!=e?e:K(yt.text(t))}},select:{get:function(t){var e,i,n,s=t.options,r=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?r+1:s.length;for(n=r<0?l:o?r:0;n<l;n++)if(i=s[n],(i.selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!yt.nodeName(i.parentNode,"optgroup"))){if(e=yt(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,n,s=t.options,r=yt.makeArray(e),o=s.length;o--;)n=s[o],(n.selected=yt.inArray(yt.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),yt.each(["radio","checkbox"],function(){yt.valHooks[this]={set:function(t,e){if(yt.isArray(e))return t.checked=yt.inArray(yt(t).val(),e)>-1}},mt.checkOn||(yt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Te=/^(?:focusinfocus|focusoutblur)$/;yt.extend(yt.event,{trigger:function(t,e,n,s){var r,o,a,l,u,c,h,d=[n||rt],p=pt.call(t,"type")?t.type:t,f=pt.call(t,"namespace")?t.namespace.split("."):[];if(o=a=n=n||rt,3!==n.nodeType&&8!==n.nodeType&&!Te.test(p+yt.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),u=p.indexOf(":")<0&&"on"+p,t=t[yt.expando]?t:new yt.Event(p,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:yt.makeArray(e,[t]),h=yt.event.special[p]||{},s||!h.trigger||h.trigger.apply(n,e)!==!1)){if(!s&&!h.noBubble&&!yt.isWindow(n)){for(l=h.delegateType||p,Te.test(l+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(n.ownerDocument||rt)&&d.push(a.defaultView||a.parentWindow||i)}for(r=0;(o=d[r++])&&!t.isPropagationStopped();)t.type=r>1?l:h.bindType||p,c=(Lt.get(o,"events")||{})[t.type]&&Lt.get(o,"handle"),c&&c.apply(o,e),c=u&&o[u],c&&c.apply&&Ht(o)&&(t.result=c.apply(o,e),t.result===!1&&t.preventDefault());return t.type=p,s||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),e)!==!1||!Ht(n)||u&&yt.isFunction(n[p])&&!yt.isWindow(n)&&(a=n[u],a&&(n[u]=null),yt.event.triggered=p,n[p](),yt.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,i){var n=yt.extend(new yt.Event,i,{type:t,isSimulated:!0});yt.event.trigger(n,null,e)}}),yt.fn.extend({trigger:function(t,e){return this.each(function(){yt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return yt.event.trigger(t,e,i,!0)}}),yt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){yt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),yt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),mt.focusin="onfocusin"in i,mt.focusin||yt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){yt.event.simulate(e,t.target,yt.event.fix(t))};yt.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=Lt.access(n,e);s||n.addEventListener(t,i,!0),Lt.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=Lt.access(n,e)-1;s?Lt.access(n,e,s):(n.removeEventListener(t,i,!0),Lt.remove(n,e))}}});var Se=i.location,Ae=yt.now(),Ee=/\?/;yt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||yt.error("Invalid XML: "+t),e};var Ie=/\[\]$/,Oe=/\r?\n/g,$e=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;yt.param=function(t,e){var i,n=[],s=function(t,e){var i=yt.isFunction(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(yt.isArray(t)||t.jquery&&!yt.isPlainObject(t))yt.each(t,function(){s(this.name,this.value)});else for(i in t)Q(i,t[i],e,s);return n.join("&")},yt.fn.extend({serialize:function(){return yt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=yt.prop(this,"elements");return t?yt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!yt(this).is(":disabled")&&Pe.test(this.nodeName)&&!$e.test(t)&&(this.checked||!Kt.test(t))}).map(function(t,e){var i=yt(this).val();return null==i?null:yt.isArray(i)?yt.map(i,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:i.replace(Oe,"\r\n")}}).get()}});var Me=/%20/g,Ne=/#.*$/,je=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Le=/^(?:GET|HEAD)$/,Re=/^\/\//,ze={},We={},Ue="*/".concat("*"),Be=rt.createElement("a");Be.href=Se.href,yt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:He.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":yt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?tt(tt(t,yt.ajaxSettings),e):tt(yt.ajaxSettings,t)},ajaxPrefilter:Z(ze),ajaxTransport:Z(We),ajax:function(t,e){function n(t,e,n,a){var u,d,p,b,w,x=e;c||(c=!0,l&&i.clearTimeout(l),s=void 0,o=a||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(b=et(f,C,n)),b=it(f,b,C,u),u?(f.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(yt.lastModified[r]=w),w=C.getResponseHeader("etag"),w&&(yt.etag[r]=w)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=b.state,d=b.data,p=b.error,u=!p)):(p=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",u?v.resolveWith(g,[d,x,C]):v.rejectWith(g,[C,x,p]),C.statusCode(_),_=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?d:p]),y.fireWith(g,[C,x]),h&&(m.trigger("ajaxComplete",[C,f]),--yt.active||yt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var s,r,o,a,l,u,c,h,d,p,f=yt.ajaxSetup({},e),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?yt(g):yt.event,v=yt.Deferred(),y=yt.Callbacks("once memory"),_=f.statusCode||{},b={},w={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Fe.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||x;return s&&s.abort(e),n(0,e),this}};if(v.promise(C),f.url=((t||f.url||Se.href)+"").replace(Re,Se.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Mt)||[""],null==f.crossDomain){u=rt.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Be.protocol+"//"+Be.host!=u.protocol+"//"+u.host}catch(k){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=yt.param(f.data,f.traditional)),J(ze,f,e,C),c)return C;h=yt.event&&f.global,h&&0===yt.active++&&yt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),r=f.url.replace(Ne,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Me,"+")):(p=f.url.slice(r.length),f.data&&(r+=(Ee.test(r)?"&":"?")+f.data,delete f.data),f.cache===!1&&(r=r.replace(je,"$1"),p=(Ee.test(r)?"&":"?")+"_="+Ae++ +p),f.url=r+p),f.ifModified&&(yt.lastModified[r]&&C.setRequestHeader("If-Modified-Since",yt.lastModified[r]),yt.etag[r]&&C.setRequestHeader("If-None-Match",yt.etag[r])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ue+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(f.beforeSend.call(g,C,f)===!1||c))return C.abort();if(x="abort",y.add(f.complete),C.done(f.success),C.fail(f.error),s=J(We,f,e,C)){if(C.readyState=1,h&&m.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(l=i.setTimeout(function(){C.abort("timeout")},f.timeout));try{c=!1,s.send(b,n)}catch(k){if(c)throw k;n(-1,k)}}else n(-1,"No Transport");return C},getJSON:function(t,e,i){return yt.get(t,e,i,"json")},getScript:function(t,e){return yt.get(t,void 0,e,"script")}}),yt.each(["get","post"],function(t,e){yt[e]=function(t,i,n,s){return yt.isFunction(i)&&(s=s||n,n=i,i=void 0),yt.ajax(yt.extend({url:t,type:e,dataType:s,data:i,success:n},yt.isPlainObject(t)&&t))}}),yt._evalUrl=function(t){return yt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},yt.fn.extend({wrapAll:function(t){var e;return this[0]&&(yt.isFunction(t)&&(t=t.call(this[0])),e=yt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return yt.isFunction(t)?this.each(function(e){yt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=yt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=yt.isFunction(t);return this.each(function(i){yt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){yt(this).replaceWith(this.childNodes)}),this}}),yt.expr.pseudos.hidden=function(t){return!yt.expr.pseudos.visible(t)},yt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},yt.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},Ye=yt.ajaxSettings.xhr();mt.cors=!!Ye&&"withCredentials"in Ye,mt.ajax=Ye=!!Ye,yt.ajaxTransport(function(t){var e,n;if(mt.cors||Ye&&!t.crossDomain)return{send:function(s,r){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");for(o in s)a.setRequestHeader(o,s[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(qe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}}),yt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),yt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return yt.globalEval(t),t}}}),yt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),yt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=yt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),rt.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Ve=[],Xe=/(=)\?(?=&|$)|\?\?/;yt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||yt.expando+"_"+Ae++;return this[t]=!0,t}}),yt.ajaxPrefilter("json jsonp",function(t,e,n){var s,r,o,a=t.jsonp!==!1&&(Xe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=yt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xe,"$1"+s):t.jsonp!==!1&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return o||yt.error(s+" was not called"),o[0]},t.dataTypes[0]="json",r=i[s],i[s]=function(){o=arguments},n.always(function(){void 0===r?yt(i).removeProp(s):i[s]=r,t[s]&&(t.jsonpCallback=e.jsonpCallback,Ve.push(s)),o&&yt.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),mt.createHTMLDocument=function(){var t=rt.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),yt.parseHTML=function(t,e,i){if("string"!=typeof t)return[];"boolean"==typeof e&&(i=e,e=!1);var n,s,r;return e||(mt.createHTMLDocument?(e=rt.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=rt.location.href,e.head.appendChild(n)):e=rt),s=St.exec(t),r=!i&&[],s?[e.createElement(s[1])]:(s=C([t],e,r),r&&r.length&&yt(r).remove(),yt.merge([],s.childNodes))},yt.fn.load=function(t,e,i){var n,s,r,o=this,a=t.indexOf(" ");return a>-1&&(n=K(t.slice(a)),t=t.slice(0,a)),yt.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),o.length>0&&yt.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){r=arguments,o.html(n?yt("<div>").append(yt.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},yt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){yt.fn[e]=function(t){return this.on(e,t)}}),yt.expr.pseudos.animated=function(t){return yt.grep(yt.timers,function(e){return t===e.elem}).length},yt.offset={setOffset:function(t,e,i){var n,s,r,o,a,l,u,c=yt.css(t,"position"),h=yt(t),d={};"static"===c&&(t.style.position="relative"),a=h.offset(),r=yt.css(t,"top"),l=yt.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1,u?(n=h.position(),o=n.top,s=n.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),yt.isFunction(e)&&(e=e.call(t,i,yt.extend({},a))),null!=e.top&&(d.top=e.top-a.top+o),null!=e.left&&(d.left=e.left-a.left+s),"using"in e?e.using.call(t,d):h.css(d)}},yt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){yt.offset.setOffset(this,t,e)});var e,i,n,s,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),n.width||n.height?(s=r.ownerDocument,i=nt(s),e=s.documentElement,{top:n.top+i.pageYOffset-e.clientTop,left:n.left+i.pageXOffset-e.clientLeft}):n):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===yt.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),yt.nodeName(t[0],"html")||(n=t.offset()),n={top:n.top+yt.css(t[0],"borderTopWidth",!0),left:n.left+yt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-yt.css(i,"marginTop",!0),left:e.left-n.left-yt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===yt.css(t,"position");)t=t.offsetParent;return t||te})}}),yt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;yt.fn[t]=function(n){return Ft(this,function(t,n,s){var r=nt(t);return void 0===s?r?r[e]:t[n]:void(r?r.scrollTo(i?r.pageXOffset:s,i?s:r.pageYOffset):t[n]=s)},t,n,arguments.length)}}),yt.each(["top","left"],function(t,e){yt.cssHooks[e]=j(mt.pixelPosition,function(t,i){if(i)return i=N(t,e),ce.test(i)?yt(t).position()[e]+"px":i})}),yt.each({Height:"height",Width:"width"},function(t,e){yt.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){yt.fn[n]=function(s,r){var o=arguments.length&&(i||"boolean"!=typeof s),a=i||(s===!0||r===!0?"margin":"border");return Ft(this,function(e,i,s){var r;return yt.isWindow(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===s?yt.css(e,i,a):yt.style(e,i,s,a)},e,o?s:void 0,o)}})}),yt.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),yt.parseJSON=JSON.parse,n=[],s=function(){return yt}.apply(e,n),!(void 0!==s&&(t.exports=s));var Ke=i.jQuery,Ge=i.$;return yt.noConflict=function(t){return i.$===yt&&(i.$=Ge),t&&i.jQuery===yt&&(i.jQuery=Ke),yt},r||(i.jQuery=i.$=yt),yt})},function(t,e,i){(function(t,n){var s;(function(){function r(t,e){return t.set(e[0],e[1]),t}function o(t,e){return t.add(e),t}function a(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function l(t,e,i,n){for(var s=-1,r=null==t?0:t.length;++s<r;){var o=t[s];e(n,o,i(o),t)}return n}function u(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&e(t[i],i,t)!==!1;);return t}function c(t,e){for(var i=null==t?0:t.length;i--&&e(t[i],i,t)!==!1;);return t}function h(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(!e(t[i],i,t))return!1;return!0}function d(t,e){for(var i=-1,n=null==t?0:t.length,s=0,r=[];++i<n;){var o=t[i];e(o,i,t)&&(r[s++]=o)}return r}function p(t,e){var i=null==t?0:t.length;return!!i&&k(t,e,0)>-1}function f(t,e,i){for(var n=-1,s=null==t?0:t.length;++n<s;)if(i(e,t[n]))return!0;return!1}function g(t,e){for(var i=-1,n=null==t?0:t.length,s=Array(n);++i<n;)s[i]=e(t[i],i,t);return s}function m(t,e){for(var i=-1,n=e.length,s=t.length;++i<n;)t[s+i]=e[i];return t}function v(t,e,i,n){var s=-1,r=null==t?0:t.length;for(n&&r&&(i=t[++s]);++s<r;)i=e(i,t[s],s,t);return i}function y(t,e,i,n){var s=null==t?0:t.length;for(n&&s&&(i=t[--s]);s--;)i=e(i,t[s],s,t);return i}function _(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}function b(t){return t.split("")}function w(t){return t.match(Ue)||[]}function x(t,e,i){var n;return i(t,function(t,i,s){if(e(t,i,s))return n=i,!1}),n}function C(t,e,i,n){for(var s=t.length,r=i+(n?1:-1);n?r--:++r<s;)if(e(t[r],r,t))return r;return-1}function k(t,e,i){return e===e?Q(t,e,i):C(t,T,i)}function D(t,e,i,n){for(var s=i-1,r=t.length;++s<r;)if(n(t[s],e))return s;return-1}function T(t){return t!==t}function S(t,e){var i=null==t?0:t.length;return i?$(t,e)/i:Ft}function A(t){return function(e){return null==e?st:e[t]}}function E(t){return function(e){return null==t?st:t[e]}}function I(t,e,i,n,s){return s(t,function(t,s,r){i=n?(n=!1,t):e(i,t,s,r)}),i}function O(t,e){var i=t.length;for(t.sort(e);i--;)t[i]=t[i].value;return t}function $(t,e){for(var i,n=-1,s=t.length;++n<s;){var r=e(t[n]);r!==st&&(i=i===st?r:i+r);
}return i}function P(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}function M(t,e){return g(e,function(e){return[e,t[e]]})}function N(t){return function(e){return t(e)}}function j(t,e){return g(e,function(e){return t[e]})}function F(t,e){return t.has(e)}function H(t,e){for(var i=-1,n=t.length;++i<n&&k(e,t[i],0)>-1;);return i}function L(t,e){for(var i=t.length;i--&&k(e,t[i],0)>-1;);return i}function R(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}function z(t){return"\\"+en[t]}function W(t,e){return null==t?st:t[e]}function U(t){return Yi.test(t)}function B(t){return Vi.test(t)}function q(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}function Y(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}function V(t,e){return function(i){return t(e(i))}}function X(t,e){for(var i=-1,n=t.length,s=0,r=[];++i<n;){var o=t[i];o!==e&&o!==ht||(t[i]=ht,r[s++]=i)}return r}function K(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}function G(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=[t,t]}),i}function Q(t,e,i){for(var n=i-1,s=t.length;++n<s;)if(t[n]===e)return n;return-1}function Z(t,e,i){for(var n=i+1;n--;)if(t[n]===e)return n;return n}function J(t){return U(t)?et(t):_n(t)}function tt(t){return U(t)?it(t):b(t)}function et(t){for(var e=Bi.lastIndex=0;Bi.test(t);)++e;return e}function it(t){return t.match(Bi)||[]}function nt(t){return t.match(qi)||[]}var st,rt="4.17.2",ot=200,at="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",lt="Expected a function",ut="__lodash_hash_undefined__",ct=500,ht="__lodash_placeholder__",dt=1,pt=2,ft=4,gt=1,mt=2,vt=1,yt=2,_t=4,bt=8,wt=16,xt=32,Ct=64,kt=128,Dt=256,Tt=512,St=30,At="...",Et=800,It=16,Ot=1,$t=2,Pt=3,Mt=1/0,Nt=9007199254740991,jt=1.7976931348623157e308,Ft=NaN,Ht=4294967295,Lt=Ht-1,Rt=Ht>>>1,zt=[["ary",kt],["bind",vt],["bindKey",yt],["curry",bt],["curryRight",wt],["flip",Tt],["partial",xt],["partialRight",Ct],["rearg",Dt]],Wt="[object Arguments]",Ut="[object Array]",Bt="[object AsyncFunction]",qt="[object Boolean]",Yt="[object Date]",Vt="[object DOMException]",Xt="[object Error]",Kt="[object Function]",Gt="[object GeneratorFunction]",Qt="[object Map]",Zt="[object Number]",Jt="[object Null]",te="[object Object]",ee="[object Promise]",ie="[object Proxy]",ne="[object RegExp]",se="[object Set]",re="[object String]",oe="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",ue="[object WeakSet]",ce="[object ArrayBuffer]",he="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",fe="[object Int8Array]",ge="[object Int16Array]",me="[object Int32Array]",ve="[object Uint8Array]",ye="[object Uint8ClampedArray]",_e="[object Uint16Array]",be="[object Uint32Array]",we=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Te=RegExp(ke.source),Se=RegExp(De.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$e=/^\w*$/,Pe=/^\./,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,je=RegExp(Ne.source),Fe=/^\s+|\s+$/g,He=/^\s+/,Le=/\s+$/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,ti=/['\n\r\u2028\u2029\\]/g,ei="\\ud800-\\udfff",ii="\\u0300-\\u036f",ni="\\ufe20-\\ufe2f",si="\\u20d0-\\u20ff",ri=ii+ni+si,oi="\\u2700-\\u27bf",ai="a-z\\xdf-\\xf6\\xf8-\\xff",li="\\xac\\xb1\\xd7\\xf7",ui="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ci="\\u2000-\\u206f",hi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",di="A-Z\\xc0-\\xd6\\xd8-\\xde",pi="\\ufe0e\\ufe0f",fi=li+ui+ci+hi,gi="[']",mi="["+ei+"]",vi="["+fi+"]",yi="["+ri+"]",_i="\\d+",bi="["+oi+"]",wi="["+ai+"]",xi="[^"+ei+fi+_i+oi+ai+di+"]",Ci="\\ud83c[\\udffb-\\udfff]",ki="(?:"+yi+"|"+Ci+")",Di="[^"+ei+"]",Ti="(?:\\ud83c[\\udde6-\\uddff]){2}",Si="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+di+"]",Ei="\\u200d",Ii="(?:"+wi+"|"+xi+")",Oi="(?:"+Ai+"|"+xi+")",$i="(?:"+gi+"(?:d|ll|m|re|s|t|ve))?",Pi="(?:"+gi+"(?:D|LL|M|RE|S|T|VE))?",Mi=ki+"?",Ni="["+pi+"]?",ji="(?:"+Ei+"(?:"+[Di,Ti,Si].join("|")+")"+Ni+Mi+")*",Fi="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Hi="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Li=Ni+Mi+ji,Ri="(?:"+[bi,Ti,Si].join("|")+")"+Li,zi="(?:"+[Di+yi+"?",yi,Ti,Si,mi].join("|")+")",Wi=RegExp(gi,"g"),Ui=RegExp(yi,"g"),Bi=RegExp(Ci+"(?="+Ci+")|"+zi+Li,"g"),qi=RegExp([Ai+"?"+wi+"+"+$i+"(?="+[vi,Ai,"$"].join("|")+")",Oi+"+"+Pi+"(?="+[vi,Ai+Ii,"$"].join("|")+")",Ai+"?"+Ii+"+"+$i,Ai+"+"+Pi,Hi,Fi,_i,Ri].join("|"),"g"),Yi=RegExp("["+Ei+ei+ri+pi+"]"),Vi=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ki=-1,Gi={};Gi[de]=Gi[pe]=Gi[fe]=Gi[ge]=Gi[me]=Gi[ve]=Gi[ye]=Gi[_e]=Gi[be]=!0,Gi[Wt]=Gi[Ut]=Gi[ce]=Gi[qt]=Gi[he]=Gi[Yt]=Gi[Xt]=Gi[Kt]=Gi[Qt]=Gi[Zt]=Gi[te]=Gi[ne]=Gi[se]=Gi[re]=Gi[le]=!1;var Qi={};Qi[Wt]=Qi[Ut]=Qi[ce]=Qi[he]=Qi[qt]=Qi[Yt]=Qi[de]=Qi[pe]=Qi[fe]=Qi[ge]=Qi[me]=Qi[Qt]=Qi[Zt]=Qi[te]=Qi[ne]=Qi[se]=Qi[re]=Qi[oe]=Qi[ve]=Qi[ye]=Qi[_e]=Qi[be]=!0,Qi[Xt]=Qi[Kt]=Qi[le]=!1;var Zi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ji={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,sn=parseInt,rn="object"==typeof t&&t&&t.Object===Object&&t,on="object"==typeof self&&self&&self.Object===Object&&self,an=rn||on||Function("return this")(),ln="object"==typeof e&&e&&!e.nodeType&&e,un=ln&&"object"==typeof n&&n&&!n.nodeType&&n,cn=un&&un.exports===ln,hn=cn&&rn.process,dn=function(){try{return hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,fn=dn&&dn.isDate,gn=dn&&dn.isMap,mn=dn&&dn.isRegExp,vn=dn&&dn.isSet,yn=dn&&dn.isTypedArray,_n=A("length"),bn=E(Zi),wn=E(Ji),xn=E(tn),Cn=function Dn(t){function e(t){if(ll(t)&&!_d(t)&&!(t instanceof s)){if(t instanceof n)return t;if(_c.call(t,"__wrapped__"))return so(t)}return new n(t)}function i(){}function n(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=st}function s(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ht,this.__views__=[]}function b(){var t=new s(this.__wrapped__);return t.__actions__=zs(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zs(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zs(this.__views__),t}function E(){if(this.__filtered__){var t=new s(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Q(){var t=this.__wrapped__.value(),e=this.__dir__,i=_d(t),n=e<0,s=i?t.length:0,r=Sr(0,s,this.__views__),o=r.start,a=r.end,l=a-o,u=n?a:o-1,c=this.__iteratees__,h=c.length,d=0,p=Kc(l,this.__takeCount__);if(!i||s<ot||s==l&&p==l)return xs(t,this.__actions__);var f=[];t:for(;l--&&d<p;){u+=e;for(var g=-1,m=t[u];++g<h;){var v=c[g],y=v.iteratee,_=v.type,b=y(m);if(_==$t)m=b;else if(!b){if(_==Ot)continue t;break t}}f[d++]=m}return f}function et(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function it(){this.__data__=rh?rh(null):{},this.size=0}function Ue(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function ei(t){var e=this.__data__;if(rh){var i=e[t];return i===ut?st:i}return _c.call(e,t)?e[t]:st}function ii(t){var e=this.__data__;return rh?e[t]!==st:_c.call(e,t)}function ni(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=rh&&e===st?ut:e,this}function si(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function ri(){this.__data__=[],this.size=0}function oi(t){var e=this.__data__,i=$i(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():Pc.call(e,i,1),--this.size,!0}function ai(t){var e=this.__data__,i=$i(e,t);return i<0?st:e[i][1]}function li(t){return $i(this.__data__,t)>-1}function ui(t,e){var i=this.__data__,n=$i(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function ci(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function hi(){this.size=0,this.__data__={hash:new et,map:new(eh||si),string:new et}}function di(t){var e=Cr(this,t)["delete"](t);return this.size-=e?1:0,e}function pi(t){return Cr(this,t).get(t)}function fi(t){return Cr(this,t).has(t)}function gi(t,e){var i=Cr(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this}function mi(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new ci;++e<i;)this.add(t[e])}function vi(t){return this.__data__.set(t,ut),this}function yi(t){return this.__data__.has(t)}function _i(t){var e=this.__data__=new si(t);this.size=e.size}function bi(){this.__data__=new si,this.size=0}function wi(t){var e=this.__data__,i=e["delete"](t);return this.size=e.size,i}function xi(t){return this.__data__.get(t)}function Ci(t){return this.__data__.has(t)}function ki(t,e){var i=this.__data__;if(i instanceof si){var n=i.__data__;if(!eh||n.length<ot-1)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new ci(n)}return i.set(t,e),this.size=i.size,this}function Di(t,e){var i=_d(t),n=!i&&yd(t),s=!i&&!n&&wd(t),r=!i&&!n&&!s&&Td(t),o=i||n||s||r,a=o?P(t.length,dc):[],l=a.length;for(var u in t)!e&&!_c.call(t,u)||o&&("length"==u||s&&("offset"==u||"parent"==u)||r&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Nr(u,l))||a.push(u);return a}function Ti(t){var e=t.length;return e?t[ns(0,e-1)]:st}function Si(t,e){return to(zs(t),Hi(e,0,t.length))}function Ai(t){return to(zs(t))}function Ei(t,e,i,n){return t===st||Xa(t,mc[i])&&!_c.call(n,i)?e:t}function Ii(t,e,i){(i===st||Xa(t[e],i))&&(i!==st||e in t)||ji(t,e,i)}function Oi(t,e,i){var n=t[e];_c.call(t,e)&&Xa(n,i)&&(i!==st||e in t)||ji(t,e,i)}function $i(t,e){for(var i=t.length;i--;)if(Xa(t[i][0],e))return i;return-1}function Pi(t,e,i,n){return vh(t,function(t,s,r){e(n,t,i(t),r)}),n}function Mi(t,e){return t&&Ws(e,Ul(e),t)}function Ni(t,e){return t&&Ws(e,Bl(e),t)}function ji(t,e,i){"__proto__"==e&&Fc?Fc(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Fi(t,e){for(var i=-1,n=e.length,s=rc(n),r=null==t;++i<n;)s[i]=r?st:Rl(t,e[i]);return s}function Hi(t,e,i){return t===t&&(i!==st&&(t=t<=i?t:i),e!==st&&(t=t>=e?t:e)),t}function Li(t,e,i,n,s,r){var o,a=e&dt,l=e&pt,c=e&ft;if(i&&(o=s?i(t,n,s,r):i(t)),o!==st)return o;if(!al(t))return t;var h=_d(t);if(h){if(o=Ir(t),!a)return zs(t,o)}else{var d=Eh(t),p=d==Kt||d==Gt;if(wd(t))return Es(t,a);if(d==te||d==Wt||p&&!s){if(o=l||p?{}:Or(t),!a)return l?Bs(t,Ni(o,t)):Us(t,Mi(o,t))}else{if(!Qi[d])return s?t:{};o=$r(t,d,Li,a)}}r||(r=new _i);var f=r.get(t);if(f)return f;r.set(t,o);var g=c?l?_r:yr:l?Bl:Ul,m=h?st:g(t);return u(m||t,function(n,s){m&&(s=n,n=t[s]),Oi(o,s,Li(n,e,i,s,t,r))}),o}function Ri(t){var e=Ul(t);return function(i){return zi(i,t,e)}}function zi(t,e,i){var n=i.length;if(null==t)return!n;for(t=cc(t);n--;){var s=i[n],r=e[s],o=t[s];if(o===st&&!(s in t)||!r(o))return!1}return!0}function Bi(t,e,i){if("function"!=typeof t)throw new pc(lt);return $h(function(){t.apply(st,i)},e)}function qi(t,e,i,n){var s=-1,r=p,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;i&&(e=g(e,N(i))),n?(r=f,o=!1):e.length>=ot&&(r=F,o=!1,e=new mi(e));t:for(;++s<a;){var c=t[s],h=null==i?c:i(c);if(c=n||0!==c?c:0,o&&h===h){for(var d=u;d--;)if(e[d]===h)continue t;l.push(c)}else r(e,h,n)||l.push(c)}return l}function Yi(t,e){var i=!0;return vh(t,function(t,n,s){return i=!!e(t,n,s)}),i}function Vi(t,e,i){for(var n=-1,s=t.length;++n<s;){var r=t[n],o=e(r);if(null!=o&&(a===st?o===o&&!_l(o):i(o,a)))var a=o,l=r}return l}function Zi(t,e,i,n){var s=t.length;for(i=Dl(i),i<0&&(i=-i>s?0:s+i),n=n===st||n>s?s:Dl(n),n<0&&(n+=s),n=i>n?0:Tl(n);i<n;)t[i++]=e;return t}function Ji(t,e){var i=[];return vh(t,function(t,n,s){e(t,n,s)&&i.push(t)}),i}function tn(t,e,i,n,s){var r=-1,o=t.length;for(i||(i=Mr),s||(s=[]);++r<o;){var a=t[r];e>0&&i(a)?e>1?tn(a,e-1,i,n,s):m(s,a):n||(s[s.length]=a)}return s}function en(t,e){return t&&_h(t,e,Ul)}function rn(t,e){return t&&bh(t,e,Ul)}function on(t,e){return d(e,function(e){return sl(t[e])})}function ln(t,e){e=Ss(e,t);for(var i=0,n=e.length;null!=t&&i<n;)t=t[eo(e[i++])];return i&&i==n?t:st}function un(t,e,i){var n=e(t);return _d(t)?n:m(n,i(t))}function hn(t){return null==t?t===st?ae:Jt:(t=cc(t),jc&&jc in t?Tr(t):Xr(t))}function dn(t,e){return t>e}function _n(t,e){return null!=t&&_c.call(t,e)}function Cn(t,e){return null!=t&&e in cc(t)}function Tn(t,e,i){return t>=Kc(e,i)&&t<Xc(e,i)}function Sn(t,e,i){for(var n=i?f:p,s=t[0].length,r=t.length,o=r,a=rc(r),l=1/0,u=[];o--;){var c=t[o];o&&e&&(c=g(c,N(e))),l=Kc(c.length,l),a[o]=!i&&(e||s>=120&&c.length>=120)?new mi(o&&c):st}c=t[0];var h=-1,d=a[0];t:for(;++h<s&&u.length<l;){var m=c[h],v=e?e(m):m;if(m=i||0!==m?m:0,!(d?F(d,v):n(u,v,i))){for(o=r;--o;){var y=a[o];if(!(y?F(y,v):n(t[o],v,i)))continue t}d&&d.push(v),u.push(m)}}return u}function An(t,e,i,n){return en(t,function(t,s,r){e(n,i(t),s,r)}),n}function En(t,e,i){e=Ss(e,t),t=Gr(t,e);var n=null==t?t:t[eo(ko(e))];return null==n?st:a(n,t,i)}function In(t){return ll(t)&&hn(t)==Wt}function On(t){return ll(t)&&hn(t)==ce}function $n(t){return ll(t)&&hn(t)==Yt}function Pn(t,e,i,n,s){return t===e||(null==t||null==e||!al(t)&&!ll(e)?t!==t&&e!==e:Mn(t,e,i,n,Pn,s))}function Mn(t,e,i,n,s,r){var o=_d(t),a=_d(e),l=Ut,u=Ut;o||(l=Eh(t),l=l==Wt?te:l),a||(u=Eh(e),u=u==Wt?te:u);var c=l==te,h=u==te,d=l==u;if(d&&wd(t)){if(!wd(e))return!1;o=!0,c=!1}if(d&&!c)return r||(r=new _i),o||Td(t)?fr(t,e,i,n,s,r):gr(t,e,l,i,n,s,r);if(!(i&gt)){var p=c&&_c.call(t,"__wrapped__"),f=h&&_c.call(e,"__wrapped__");if(p||f){var g=p?t.value():t,m=f?e.value():e;return r||(r=new _i),s(g,m,i,n,r)}}return!!d&&(r||(r=new _i),mr(t,e,i,n,s,r))}function Nn(t){return ll(t)&&Eh(t)==Qt}function jn(t,e,i,n){var s=i.length,r=s,o=!n;if(null==t)return!r;for(t=cc(t);s--;){var a=i[s];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++s<r;){a=i[s];var l=a[0],u=t[l],c=a[1];if(o&&a[2]){if(u===st&&!(l in t))return!1}else{var h=new _i;if(n)var d=n(u,c,l,t,e,h);if(!(d===st?Pn(c,u,gt|mt,n,h):d))return!1}}return!0}function Fn(t){if(!al(t)||Rr(t))return!1;var e=sl(t)?Dc:Ke;return e.test(io(t))}function Hn(t){return ll(t)&&hn(t)==ne}function Ln(t){return ll(t)&&Eh(t)==se}function Rn(t){return ll(t)&&ol(t.length)&&!!Gi[hn(t)]}function zn(t){return"function"==typeof t?t:null==t?Pu:"object"==typeof t?_d(t)?Vn(t[0],t[1]):Yn(t):zu(t)}function Wn(t){if(!zr(t))return Vc(t);var e=[];for(var i in cc(t))_c.call(t,i)&&"constructor"!=i&&e.push(i);return e}function Un(t){if(!al(t))return Vr(t);var e=zr(t),i=[];for(var n in t)("constructor"!=n||!e&&_c.call(t,n))&&i.push(n);return i}function Bn(t,e){return t<e}function qn(t,e){var i=-1,n=Ka(t)?rc(t.length):[];return vh(t,function(t,s,r){n[++i]=e(t,s,r)}),n}function Yn(t){var e=kr(t);return 1==e.length&&e[0][2]?Ur(e[0][0],e[0][1]):function(i){return i===t||jn(i,t,e)}}function Vn(t,e){return Fr(t)&&Wr(e)?Ur(eo(t),e):function(i){var n=Rl(i,t);return n===st&&n===e?Wl(i,t):Pn(e,n,gt|mt)}}function Xn(t,e,i,n,s){t!==e&&_h(e,function(r,o){if(al(r))s||(s=new _i),Kn(t,e,o,i,Xn,n,s);else{var a=n?n(t[o],r,o+"",t,e,s):st;a===st&&(a=r),Ii(t,o,a)}},Bl)}function Kn(t,e,i,n,s,r,o){var a=t[i],l=e[i],u=o.get(l);if(u)return void Ii(t,i,u);var c=r?r(a,l,i+"",t,e,o):st,h=c===st;if(h){var d=_d(l),p=!d&&wd(l),f=!d&&!p&&Td(l);c=l,d||p||f?_d(a)?c=a:Ga(a)?c=zs(a):p?(h=!1,c=Es(l,!0)):f?(h=!1,c=js(l,!0)):c=[]:ml(l)||yd(l)?(c=a,yd(a)?c=Al(a):(!al(a)||n&&sl(a))&&(c=Or(l))):h=!1}h&&(o.set(l,c),s(c,l,n,r,o),o["delete"](l)),Ii(t,i,c)}function Gn(t,e){var i=t.length;if(i)return e+=e<0?i:0,Nr(e,i)?t[e]:st}function Qn(t,e,i){var n=-1;e=g(e.length?e:[Pu],N(xr()));var s=qn(t,function(t,i,s){var r=g(e,function(e){return e(t)});return{criteria:r,index:++n,value:t}});return O(s,function(t,e){return Hs(t,e,i)})}function Zn(t,e){return t=cc(t),Jn(t,e,function(e,i){return Wl(t,i)})}function Jn(t,e,i){for(var n=-1,s=e.length,r={};++n<s;){var o=e[n],a=ln(t,o);i(a,o)&&us(r,Ss(o,t),a)}return r}function ts(t){return function(e){return ln(e,t)}}function es(t,e,i,n){var s=n?D:k,r=-1,o=e.length,a=t;for(t===e&&(e=zs(e)),i&&(a=g(t,N(i)));++r<o;)for(var l=0,u=e[r],c=i?i(u):u;(l=s(a,c,l,n))>-1;)a!==t&&Pc.call(a,l,1),Pc.call(t,l,1);return t}function is(t,e){for(var i=t?e.length:0,n=i-1;i--;){var s=e[i];if(i==n||s!==r){var r=s;Nr(s)?Pc.call(t,s,1):_s(t,s)}}return t}function ns(t,e){return t+Wc(Zc()*(e-t+1))}function ss(t,e,i,n){for(var s=-1,r=Xc(zc((e-t)/(i||1)),0),o=rc(r);r--;)o[n?r:++s]=t,t+=i;return o}function rs(t,e){var i="";if(!t||e<1||e>Nt)return i;do e%2&&(i+=t),e=Wc(e/2),e&&(t+=t);while(e);return i}function os(t,e){return Ph(Kr(t,e,Pu),t+"")}function as(t){return Ti(iu(t))}function ls(t,e){var i=iu(t);return to(i,Hi(e,0,i.length))}function us(t,e,i,n){if(!al(t))return t;e=Ss(e,t);for(var s=-1,r=e.length,o=r-1,a=t;null!=a&&++s<r;){var l=eo(e[s]),u=i;if(s!=o){var c=a[l];u=n?n(c,l,a):st,u===st&&(u=al(c)?c:Nr(e[s+1])?[]:{})}Oi(a,l,u),a=a[l]}return t}function cs(t){return to(iu(t))}function hs(t,e,i){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),i=i>s?s:i,i<0&&(i+=s),s=e>i?0:i-e>>>0,e>>>=0;for(var r=rc(s);++n<s;)r[n]=t[n+e];return r}function ds(t,e){var i;return vh(t,function(t,n,s){return i=e(t,n,s),!i}),!!i}function ps(t,e,i){var n=0,s=null==t?n:t.length;if("number"==typeof e&&e===e&&s<=Rt){for(;n<s;){var r=n+s>>>1,o=t[r];null!==o&&!_l(o)&&(i?o<=e:o<e)?n=r+1:s=r}return s}return fs(t,e,Pu,i)}function fs(t,e,i,n){e=i(e);for(var s=0,r=null==t?0:t.length,o=e!==e,a=null===e,l=_l(e),u=e===st;s<r;){var c=Wc((s+r)/2),h=i(t[c]),d=h!==st,p=null===h,f=h===h,g=_l(h);if(o)var m=n||f;else m=u?f&&(n||d):a?f&&d&&(n||!p):l?f&&d&&!p&&(n||!g):!p&&!g&&(n?h<=e:h<e);m?s=c+1:r=c}return Kc(r,Lt)}function gs(t,e){for(var i=-1,n=t.length,s=0,r=[];++i<n;){var o=t[i],a=e?e(o):o;if(!i||!Xa(a,l)){var l=a;r[s++]=0===o?0:o}}return r}function ms(t){return"number"==typeof t?t:_l(t)?Ft:+t}function vs(t){if("string"==typeof t)return t;if(_d(t))return g(t,vs)+"";if(_l(t))return gh?gh.call(t):"";var e=t+"";return"0"==e&&1/t==-Mt?"-0":e}function ys(t,e,i){var n=-1,s=p,r=t.length,o=!0,a=[],l=a;if(i)o=!1,s=f;else if(r>=ot){var u=e?null:Dh(t);if(u)return K(u);o=!1,s=F,l=new mi}else l=e?[]:a;t:for(;++n<r;){var c=t[n],h=e?e(c):c;if(c=i||0!==c?c:0,o&&h===h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),a.push(c)}else s(l,h,i)||(l!==a&&l.push(h),a.push(c))}return a}function _s(t,e){return e=Ss(e,t),t=Gr(t,e),null==t||delete t[eo(ko(e))]}function bs(t,e,i,n){return us(t,e,i(ln(t,e)),n)}function ws(t,e,i,n){for(var s=t.length,r=n?s:-1;(n?r--:++r<s)&&e(t[r],r,t););return i?hs(t,n?0:r,n?r+1:s):hs(t,n?r+1:0,n?s:r)}function xs(t,e){var i=t;return i instanceof s&&(i=i.value()),v(e,function(t,e){return e.func.apply(e.thisArg,m([t],e.args))},i)}function Cs(t,e,i){var n=t.length;if(n<2)return n?ys(t[0]):[];for(var s=-1,r=rc(n);++s<n;)for(var o=t[s],a=-1;++a<n;)a!=s&&(r[s]=qi(r[s]||o,t[a],e,i));return ys(tn(r,1),e,i)}function ks(t,e,i){for(var n=-1,s=t.length,r=e.length,o={};++n<s;){var a=n<r?e[n]:st;i(o,t[n],a)}return o}function Ds(t){return Ga(t)?t:[]}function Ts(t){return"function"==typeof t?t:Pu}function Ss(t,e){return _d(t)?t:Fr(t,e)?[t]:Mh(Il(t))}function As(t,e,i){var n=t.length;return i=i===st?n:i,!e&&i>=n?t:hs(t,e,i)}function Es(t,e){if(e)return t.slice();var i=t.length,n=Ec?Ec(i):new t.constructor(i);return t.copy(n),n}function Is(t){var e=new t.constructor(t.byteLength);return new Ac(e).set(new Ac(t)),e}function Os(t,e){var i=e?Is(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}function $s(t,e,i){var n=e?i(Y(t),dt):Y(t);return v(n,r,new t.constructor)}function Ps(t){var e=new t.constructor(t.source,Ye.exec(t));return e.lastIndex=t.lastIndex,e}function Ms(t,e,i){var n=e?i(K(t),dt):K(t);return v(n,o,new t.constructor)}function Ns(t){return fh?cc(fh.call(t)):{}}function js(t,e){var i=e?Is(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function Fs(t,e){if(t!==e){var i=t!==st,n=null===t,s=t===t,r=_l(t),o=e!==st,a=null===e,l=e===e,u=_l(e);if(!a&&!u&&!r&&t>e||r&&o&&l&&!a&&!u||n&&o&&l||!i&&l||!s)return 1;if(!n&&!r&&!u&&t<e||u&&i&&s&&!n&&!r||a&&i&&s||!o&&s||!l)return-1}return 0}function Hs(t,e,i){for(var n=-1,s=t.criteria,r=e.criteria,o=s.length,a=i.length;++n<o;){var l=Fs(s[n],r[n]);if(l){if(n>=a)return l;var u=i[n];return l*("desc"==u?-1:1)}}return t.index-e.index}function Ls(t,e,i,n){for(var s=-1,r=t.length,o=i.length,a=-1,l=e.length,u=Xc(r-o,0),c=rc(l+u),h=!n;++a<l;)c[a]=e[a];for(;++s<o;)(h||s<r)&&(c[i[s]]=t[s]);for(;u--;)c[a++]=t[s++];return c}function Rs(t,e,i,n){for(var s=-1,r=t.length,o=-1,a=i.length,l=-1,u=e.length,c=Xc(r-a,0),h=rc(c+u),d=!n;++s<c;)h[s]=t[s];for(var p=s;++l<u;)h[p+l]=e[l];for(;++o<a;)(d||s<r)&&(h[p+i[o]]=t[s++]);return h}function zs(t,e){var i=-1,n=t.length;for(e||(e=rc(n));++i<n;)e[i]=t[i];return e}function Ws(t,e,i,n){var s=!i;i||(i={});for(var r=-1,o=e.length;++r<o;){var a=e[r],l=n?n(i[a],t[a],a,i,t):st;l===st&&(l=t[a]),s?ji(i,a,l):Oi(i,a,l)}return i}function Us(t,e){return Ws(t,Sh(t),e)}function Bs(t,e){return Ws(t,Ah(t),e)}function qs(t,e){return function(i,n){var s=_d(i)?l:Pi,r=e?e():{};return s(i,t,xr(n,2),r)}}function Ys(t){return os(function(e,i){var n=-1,s=i.length,r=s>1?i[s-1]:st,o=s>2?i[2]:st;for(r=t.length>3&&"function"==typeof r?(s--,r):st,o&&jr(i[0],i[1],o)&&(r=s<3?st:r,s=1),e=cc(e);++n<s;){var a=i[n];a&&t(e,a,n,r)}return e})}function Vs(t,e){return function(i,n){if(null==i)return i;if(!Ka(i))return t(i,n);for(var s=i.length,r=e?s:-1,o=cc(i);(e?r--:++r<s)&&n(o[r],r,o)!==!1;);return i}}function Xs(t){return function(e,i,n){for(var s=-1,r=cc(e),o=n(e),a=o.length;a--;){var l=o[t?a:++s];if(i(r[l],l,r)===!1)break}return e}}function Ks(t,e,i){function n(){var e=this&&this!==an&&this instanceof n?r:t;return e.apply(s?i:this,arguments)}var s=e&vt,r=Zs(t);return n}function Gs(t){return function(e){e=Il(e);var i=U(e)?tt(e):st,n=i?i[0]:e.charAt(0),s=i?As(i,1).join(""):e.slice(1);return n[t]()+s}}function Qs(t){return function(e){return v(Au(lu(e).replace(Wi,"")),t,"")}}function Zs(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=mh(t.prototype),n=t.apply(i,e);return al(n)?n:i}}function Js(t,e,i){function n(){for(var r=arguments.length,o=rc(r),l=r,u=wr(n);l--;)o[l]=arguments[l];var c=r<3&&o[0]!==u&&o[r-1]!==u?[]:X(o,u);if(r-=c.length,r<i)return cr(t,e,ir,n.placeholder,st,o,c,st,st,i-r);var h=this&&this!==an&&this instanceof n?s:t;return a(h,this,o)}var s=Zs(t);return n}function tr(t){return function(e,i,n){var s=cc(e);if(!Ka(e)){var r=xr(i,3);e=Ul(e),i=function(t){return r(s[t],t,s)}}var o=t(e,i,n);return o>-1?s[r?e[o]:o]:st}}function er(t){return vr(function(e){var i=e.length,s=i,r=n.prototype.thru;for(t&&e.reverse();s--;){var o=e[s];if("function"!=typeof o)throw new pc(lt);if(r&&!a&&"wrapper"==br(o))var a=new n([],(!0))}for(s=a?s:i;++s<i;){o=e[s];var l=br(o),u="wrapper"==l?Th(o):st;a=u&&Lr(u[0])&&u[1]==(kt|bt|xt|Dt)&&!u[4].length&&1==u[9]?a[br(u[0])].apply(a,u[3]):1==o.length&&Lr(o)?a[l]():a.thru(o)}return function(){var t=arguments,n=t[0];if(a&&1==t.length&&_d(n)&&n.length>=ot)return a.plant(n).value();for(var s=0,r=i?e[s].apply(this,t):n;++s<i;)r=e[s].call(this,r);return r}})}function ir(t,e,i,n,s,r,o,a,l,u){function c(){for(var v=arguments.length,y=rc(v),_=v;_--;)y[_]=arguments[_];if(f)var b=wr(c),w=R(y,b);if(n&&(y=Ls(y,n,s,f)),r&&(y=Rs(y,r,o,f)),v-=w,f&&v<u){var x=X(y,b);return cr(t,e,ir,c.placeholder,i,y,x,a,l,u-v)}var C=d?i:this,k=p?C[t]:t;return v=y.length,a?y=Qr(y,a):g&&v>1&&y.reverse(),h&&l<v&&(y.length=l),this&&this!==an&&this instanceof c&&(k=m||Zs(k)),k.apply(C,y)}var h=e&kt,d=e&vt,p=e&yt,f=e&(bt|wt),g=e&Tt,m=p?st:Zs(t);return c}function nr(t,e){return function(i,n){return An(i,t,e(n),{})}}function sr(t,e){return function(i,n){var s;if(i===st&&n===st)return e;if(i!==st&&(s=i),n!==st){if(s===st)return n;"string"==typeof i||"string"==typeof n?(i=vs(i),n=vs(n)):(i=ms(i),n=ms(n)),s=t(i,n)}return s}}function rr(t){return vr(function(e){return e=g(e,N(xr())),os(function(i){var n=this;return t(e,function(t){return a(t,n,i)})})})}function or(t,e){e=e===st?" ":vs(e);var i=e.length;if(i<2)return i?rs(e,t):e;var n=rs(e,zc(t/J(e)));return U(e)?As(tt(n),0,t).join(""):n.slice(0,t)}function ar(t,e,i,n){function s(){for(var e=-1,l=arguments.length,u=-1,c=n.length,h=rc(c+l),d=this&&this!==an&&this instanceof s?o:t;++u<c;)h[u]=n[u];for(;l--;)h[u++]=arguments[++e];return a(d,r?i:this,h)}var r=e&vt,o=Zs(t);return s}function lr(t){return function(e,i,n){return n&&"number"!=typeof n&&jr(e,i,n)&&(i=n=st),e=kl(e),i===st?(i=e,e=0):i=kl(i),n=n===st?e<i?1:-1:kl(n),ss(e,i,n,t)}}function ur(t){return function(e,i){return"string"==typeof e&&"string"==typeof i||(e=Sl(e),i=Sl(i)),t(e,i)}}function cr(t,e,i,n,s,r,o,a,l,u){var c=e&bt,h=c?o:st,d=c?st:o,p=c?r:st,f=c?st:r;e|=c?xt:Ct,e&=~(c?Ct:xt),e&_t||(e&=~(vt|yt));var g=[t,e,s,p,h,f,d,a,l,u],m=i.apply(st,g);return Lr(t)&&Oh(m,g),m.placeholder=n,Zr(m,t,e)}function hr(t){var e=uc[t];return function(t,i){if(t=Sl(t),i=Kc(Dl(i),292)){var n=(Il(t)+"e").split("e"),s=e(n[0]+"e"+(+n[1]+i));return n=(Il(s)+"e").split("e"),+(n[0]+"e"+(+n[1]-i))}return e(t)}}function dr(t){return function(e){var i=Eh(e);return i==Qt?Y(e):i==se?G(e):M(e,t(e))}}function pr(t,e,i,n,s,r,o,a){var l=e&yt;if(!l&&"function"!=typeof t)throw new pc(lt);var u=n?n.length:0;if(u||(e&=~(xt|Ct),n=s=st),o=o===st?o:Xc(Dl(o),0),a=a===st?a:Dl(a),u-=s?s.length:0,e&Ct){var c=n,h=s;n=s=st}var d=l?st:Th(t),p=[t,e,i,n,s,c,h,r,o,a];if(d&&qr(p,d),t=p[0],e=p[1],i=p[2],n=p[3],s=p[4],a=p[9]=null==p[9]?l?0:t.length:Xc(p[9]-u,0),!a&&e&(bt|wt)&&(e&=~(bt|wt)),e&&e!=vt)f=e==bt||e==wt?Js(t,e,a):e!=xt&&e!=(vt|xt)||s.length?ir.apply(st,p):ar(t,e,i,n);else var f=Ks(t,e,i);var g=d?wh:Oh;return Zr(g(f,p),t,e)}function fr(t,e,i,n,s,r){var o=i&gt,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=r.get(t);if(u&&r.get(e))return u==e;var c=-1,h=!0,d=i&mt?new mi:st;for(r.set(t,e),r.set(e,t);++c<a;){var p=t[c],f=e[c];if(n)var g=o?n(f,p,c,e,t,r):n(p,f,c,t,e,r);if(g!==st){if(g)continue;h=!1;break}if(d){if(!_(e,function(t,e){if(!F(d,e)&&(p===t||s(p,t,i,n,r)))return d.push(e)})){h=!1;break}}else if(p!==f&&!s(p,f,i,n,r)){h=!1;break}}return r["delete"](t),r["delete"](e),h}function gr(t,e,i,n,s,r,o){switch(i){case he:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ce:return!(t.byteLength!=e.byteLength||!r(new Ac(t),new Ac(e)));case qt:case Yt:case Zt:return Xa(+t,+e);case Xt:return t.name==e.name&&t.message==e.message;case ne:case re:return t==e+"";case Qt:var a=Y;case se:var l=n&gt;if(a||(a=K),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;n|=mt,o.set(t,e);var c=fr(a(t),a(e),n,s,r,o);return o["delete"](t),c;case oe:if(fh)return fh.call(t)==fh.call(e)}return!1}function mr(t,e,i,n,s,r){var o=i&gt,a=Ul(t),l=a.length,u=Ul(e),c=u.length;if(l!=c&&!o)return!1;for(var h=l;h--;){var d=a[h];if(!(o?d in e:_c.call(e,d)))return!1}var p=r.get(t);if(p&&r.get(e))return p==e;var f=!0;r.set(t,e),r.set(e,t);for(var g=o;++h<l;){d=a[h];var m=t[d],v=e[d];if(n)var y=o?n(v,m,d,e,t,r):n(m,v,d,t,e,r);if(!(y===st?m===v||s(m,v,i,n,r):y)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(f=!1)}return r["delete"](t),r["delete"](e),f}function vr(t){return Ph(Kr(t,st,mo),t+"")}function yr(t){return un(t,Ul,Sh)}function _r(t){return un(t,Bl,Ah)}function br(t){for(var e=t.name+"",i=ah[e],n=_c.call(ah,e)?i.length:0;n--;){var s=i[n],r=s.func;if(null==r||r==t)return s.name}return e}function wr(t){var i=_c.call(e,"placeholder")?e:t;return i.placeholder}function xr(){var t=e.iteratee||Mu;return t=t===Mu?zn:t,arguments.length?t(arguments[0],arguments[1]):t}function Cr(t,e){var i=t.__data__;return Hr(e)?i["string"==typeof e?"string":"hash"]:i.map}function kr(t){for(var e=Ul(t),i=e.length;i--;){var n=e[i],s=t[n];e[i]=[n,s,Wr(s)]}return e}function Dr(t,e){var i=W(t,e);return Fn(i)?i:st}function Tr(t){var e=_c.call(t,jc),i=t[jc];try{t[jc]=st;var n=!0}catch(s){}var r=xc.call(t);return n&&(e?t[jc]=i:delete t[jc]),r}function Sr(t,e,i){for(var n=-1,s=i.length;++n<s;){var r=i[n],o=r.size;switch(r.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=Kc(e,t+o);break;case"takeRight":t=Xc(t,e-o)}}return{start:t,end:e}}function Ar(t){var e=t.match(ze);return e?e[1].split(We):[]}function Er(t,e,i){e=Ss(e,t);for(var n=-1,s=e.length,r=!1;++n<s;){var o=eo(e[n]);if(!(r=null!=t&&i(t,o)))break;t=t[o]}return r||++n!=s?r:(s=null==t?0:t.length,!!s&&ol(s)&&Nr(o,s)&&(_d(t)||yd(t)))}function Ir(t){var e=t.length,i=t.constructor(e);return e&&"string"==typeof t[0]&&_c.call(t,"index")&&(i.index=t.index,i.input=t.input),i}function Or(t){return"function"!=typeof t.constructor||zr(t)?{}:mh(Ic(t))}function $r(t,e,i,n){var s=t.constructor;switch(e){case ce:return Is(t);case qt:case Yt:return new s((+t));case he:return Os(t,n);case de:case pe:case fe:case ge:case me:case ve:case ye:case _e:case be:return js(t,n);case Qt:return $s(t,n,i);case Zt:case re:return new s(t);case ne:return Ps(t);case se:return Ms(t,n,i);case oe:return Ns(t)}}function Pr(t,e){var i=e.length;if(!i)return t;var n=i-1;return e[n]=(i>1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(Re,"{\n/* [wrapped with "+e+"] */\n")}function Mr(t){return _d(t)||yd(t)||!!(Mc&&t&&t[Mc])}function Nr(t,e){return e=null==e?Nt:e,
!!e&&("number"==typeof t||Qe.test(t))&&t>-1&&t%1==0&&t<e}function jr(t,e,i){if(!al(i))return!1;var n=typeof e;return!!("number"==n?Ka(i)&&Nr(e,i.length):"string"==n&&e in i)&&Xa(i[e],t)}function Fr(t,e){if(_d(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!_l(t))||$e.test(t)||!Oe.test(t)||null!=e&&t in cc(e)}function Hr(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Lr(t){var i=br(t),n=e[i];if("function"!=typeof n||!(i in s.prototype))return!1;if(t===n)return!0;var r=Th(n);return!!r&&t===r[0]}function Rr(t){return!!wc&&wc in t}function zr(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||mc;return t===i}function Wr(t){return t===t&&!al(t)}function Ur(t,e){return function(i){return null!=i&&i[t]===e&&(e!==st||t in cc(i))}}function Br(t){var e=Ma(t,function(t){return i.size===ct&&i.clear(),t}),i=e.cache;return e}function qr(t,e){var i=t[1],n=e[1],s=i|n,r=s<(vt|yt|kt),o=n==kt&&i==bt||n==kt&&i==Dt&&t[7].length<=e[8]||n==(kt|Dt)&&e[7].length<=e[8]&&i==bt;if(!r&&!o)return t;n&vt&&(t[2]=e[2],s|=i&vt?0:_t);var a=e[3];if(a){var l=t[3];t[3]=l?Ls(l,a,e[4]):a,t[4]=l?X(t[3],ht):e[4]}return a=e[5],a&&(l=t[5],t[5]=l?Rs(l,a,e[6]):a,t[6]=l?X(t[5],ht):e[6]),a=e[7],a&&(t[7]=a),n&kt&&(t[8]=null==t[8]?e[8]:Kc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=s,t}function Yr(t,e,i,n,s,r){return al(t)&&al(e)&&(r.set(e,t),Xn(t,e,st,Yr,r),r["delete"](e)),t}function Vr(t){var e=[];if(null!=t)for(var i in cc(t))e.push(i);return e}function Xr(t){return xc.call(t)}function Kr(t,e,i){return e=Xc(e===st?t.length-1:e,0),function(){for(var n=arguments,s=-1,r=Xc(n.length-e,0),o=rc(r);++s<r;)o[s]=n[e+s];s=-1;for(var l=rc(e+1);++s<e;)l[s]=n[s];return l[e]=i(o),a(t,this,l)}}function Gr(t,e){return e.length<2?t:ln(t,hs(e,0,-1))}function Qr(t,e){for(var i=t.length,n=Kc(e.length,i),s=zs(t);n--;){var r=e[n];t[n]=Nr(r,i)?s[r]:st}return t}function Zr(t,e,i){var n=e+"";return Ph(t,Pr(n,no(Ar(n),i)))}function Jr(t){var e=0,i=0;return function(){var n=Gc(),s=It-(n-i);if(i=n,s>0){if(++e>=Et)return arguments[0]}else e=0;return t.apply(st,arguments)}}function to(t,e){var i=-1,n=t.length,s=n-1;for(e=e===st?n:e;++i<e;){var r=ns(i,s),o=t[r];t[r]=t[i],t[i]=o}return t.length=e,t}function eo(t){if("string"==typeof t||_l(t))return t;var e=t+"";return"0"==e&&1/t==-Mt?"-0":e}function io(t){if(null!=t){try{return yc.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function no(t,e){return u(zt,function(i){var n="_."+i[0];e&i[1]&&!p(t,n)&&t.push(n)}),t.sort()}function so(t){if(t instanceof s)return t.clone();var e=new n(t.__wrapped__,t.__chain__);return e.__actions__=zs(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ro(t,e,i){e=(i?jr(t,e,i):e===st)?1:Xc(Dl(e),0);var n=null==t?0:t.length;if(!n||e<1)return[];for(var s=0,r=0,o=rc(zc(n/e));s<n;)o[r++]=hs(t,s,s+=e);return o}function oo(t){for(var e=-1,i=null==t?0:t.length,n=0,s=[];++e<i;){var r=t[e];r&&(s[n++]=r)}return s}function ao(){var t=arguments.length;if(!t)return[];for(var e=rc(t-1),i=arguments[0],n=t;n--;)e[n-1]=arguments[n];return m(_d(i)?zs(i):[i],tn(e,1))}function lo(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===st?1:Dl(e),hs(t,e<0?0:e,n)):[]}function uo(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===st?1:Dl(e),e=n-e,hs(t,0,e<0?0:e)):[]}function co(t,e){return t&&t.length?ws(t,xr(e,3),!0,!0):[]}function ho(t,e){return t&&t.length?ws(t,xr(e,3),!0):[]}function po(t,e,i,n){var s=null==t?0:t.length;return s?(i&&"number"!=typeof i&&jr(t,e,i)&&(i=0,n=s),Zi(t,e,i,n)):[]}function fo(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var s=null==i?0:Dl(i);return s<0&&(s=Xc(n+s,0)),C(t,xr(e,3),s)}function go(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var s=n-1;return i!==st&&(s=Dl(i),s=i<0?Xc(n+s,0):Kc(s,n-1)),C(t,xr(e,3),s,!0)}function mo(t){var e=null==t?0:t.length;return e?tn(t,1):[]}function vo(t){var e=null==t?0:t.length;return e?tn(t,Mt):[]}function yo(t,e){var i=null==t?0:t.length;return i?(e=e===st?1:Dl(e),tn(t,e)):[]}function _o(t){for(var e=-1,i=null==t?0:t.length,n={};++e<i;){var s=t[e];n[s[0]]=s[1]}return n}function bo(t){return t&&t.length?t[0]:st}function wo(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var s=null==i?0:Dl(i);return s<0&&(s=Xc(n+s,0)),k(t,e,s)}function xo(t){var e=null==t?0:t.length;return e?hs(t,0,-1):[]}function Co(t,e){return null==t?"":Yc.call(t,e)}function ko(t){var e=null==t?0:t.length;return e?t[e-1]:st}function Do(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var s=n;return i!==st&&(s=Dl(i),s=s<0?Xc(n+s,0):Kc(s,n-1)),e===e?Z(t,e,s):C(t,T,s,!0)}function To(t,e){return t&&t.length?Gn(t,Dl(e)):st}function So(t,e){return t&&t.length&&e&&e.length?es(t,e):t}function Ao(t,e,i){return t&&t.length&&e&&e.length?es(t,e,xr(i,2)):t}function Eo(t,e,i){return t&&t.length&&e&&e.length?es(t,e,st,i):t}function Io(t,e){var i=[];if(!t||!t.length)return i;var n=-1,s=[],r=t.length;for(e=xr(e,3);++n<r;){var o=t[n];e(o,n,t)&&(i.push(o),s.push(n))}return is(t,s),i}function Oo(t){return null==t?t:Jc.call(t)}function $o(t,e,i){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&jr(t,e,i)?(e=0,i=n):(e=null==e?0:Dl(e),i=i===st?n:Dl(i)),hs(t,e,i)):[]}function Po(t,e){return ps(t,e)}function Mo(t,e,i){return fs(t,e,xr(i,2))}function No(t,e){var i=null==t?0:t.length;if(i){var n=ps(t,e);if(n<i&&Xa(t[n],e))return n}return-1}function jo(t,e){return ps(t,e,!0)}function Fo(t,e,i){return fs(t,e,xr(i,2),!0)}function Ho(t,e){var i=null==t?0:t.length;if(i){var n=ps(t,e,!0)-1;if(Xa(t[n],e))return n}return-1}function Lo(t){return t&&t.length?gs(t):[]}function Ro(t,e){return t&&t.length?gs(t,xr(e,2)):[]}function zo(t){var e=null==t?0:t.length;return e?hs(t,1,e):[]}function Wo(t,e,i){return t&&t.length?(e=i||e===st?1:Dl(e),hs(t,0,e<0?0:e)):[]}function Uo(t,e,i){var n=null==t?0:t.length;return n?(e=i||e===st?1:Dl(e),e=n-e,hs(t,e<0?0:e,n)):[]}function Bo(t,e){return t&&t.length?ws(t,xr(e,3),!1,!0):[]}function qo(t,e){return t&&t.length?ws(t,xr(e,3)):[]}function Yo(t){return t&&t.length?ys(t):[]}function Vo(t,e){return t&&t.length?ys(t,xr(e,2)):[]}function Xo(t,e){return e="function"==typeof e?e:st,t&&t.length?ys(t,st,e):[]}function Ko(t){if(!t||!t.length)return[];var e=0;return t=d(t,function(t){if(Ga(t))return e=Xc(t.length,e),!0}),P(e,function(e){return g(t,A(e))})}function Go(t,e){if(!t||!t.length)return[];var i=Ko(t);return null==e?i:g(i,function(t){return a(e,st,t)})}function Qo(t,e){return ks(t||[],e||[],Oi)}function Zo(t,e){return ks(t||[],e||[],us)}function Jo(t){var i=e(t);return i.__chain__=!0,i}function ta(t,e){return e(t),t}function ea(t,e){return e(t)}function ia(){return Jo(this)}function na(){return new n(this.value(),this.__chain__)}function sa(){this.__values__===st&&(this.__values__=Cl(this.value()));var t=this.__index__>=this.__values__.length,e=t?st:this.__values__[this.__index__++];return{done:t,value:e}}function ra(){return this}function oa(t){for(var e,n=this;n instanceof i;){var s=so(n);s.__index__=0,s.__values__=st,e?r.__wrapped__=s:e=s;var r=s;n=n.__wrapped__}return r.__wrapped__=t,e}function aa(){var t=this.__wrapped__;if(t instanceof s){var e=t;return this.__actions__.length&&(e=new s(this)),e=e.reverse(),e.__actions__.push({func:ea,args:[Oo],thisArg:st}),new n(e,this.__chain__)}return this.thru(Oo)}function la(){return xs(this.__wrapped__,this.__actions__)}function ua(t,e,i){var n=_d(t)?h:Yi;return i&&jr(t,e,i)&&(e=st),n(t,xr(e,3))}function ca(t,e){var i=_d(t)?d:Ji;return i(t,xr(e,3))}function ha(t,e){return tn(va(t,e),1)}function da(t,e){return tn(va(t,e),Mt)}function pa(t,e,i){return i=i===st?1:Dl(i),tn(va(t,e),i)}function fa(t,e){var i=_d(t)?u:vh;return i(t,xr(e,3))}function ga(t,e){var i=_d(t)?c:yh;return i(t,xr(e,3))}function ma(t,e,i,n){t=Ka(t)?t:iu(t),i=i&&!n?Dl(i):0;var s=t.length;return i<0&&(i=Xc(s+i,0)),yl(t)?i<=s&&t.indexOf(e,i)>-1:!!s&&k(t,e,i)>-1}function va(t,e){var i=_d(t)?g:qn;return i(t,xr(e,3))}function ya(t,e,i,n){return null==t?[]:(_d(e)||(e=null==e?[]:[e]),i=n?st:i,_d(i)||(i=null==i?[]:[i]),Qn(t,e,i))}function _a(t,e,i){var n=_d(t)?v:I,s=arguments.length<3;return n(t,xr(e,4),i,s,vh)}function ba(t,e,i){var n=_d(t)?y:I,s=arguments.length<3;return n(t,xr(e,4),i,s,yh)}function wa(t,e){var i=_d(t)?d:Ji;return i(t,Na(xr(e,3)))}function xa(t){var e=_d(t)?Ti:as;return e(t)}function Ca(t,e,i){e=(i?jr(t,e,i):e===st)?1:Dl(e);var n=_d(t)?Si:ls;return n(t,e)}function ka(t){var e=_d(t)?Ai:cs;return e(t)}function Da(t){if(null==t)return 0;if(Ka(t))return yl(t)?J(t):t.length;var e=Eh(t);return e==Qt||e==se?t.size:Wn(t).length}function Ta(t,e,i){var n=_d(t)?_:ds;return i&&jr(t,e,i)&&(e=st),n(t,xr(e,3))}function Sa(t,e){if("function"!=typeof e)throw new pc(lt);return t=Dl(t),function(){if(--t<1)return e.apply(this,arguments)}}function Aa(t,e,i){return e=i?st:e,e=t&&null==e?t.length:e,pr(t,kt,st,st,st,st,e)}function Ea(t,e){var i;if("function"!=typeof e)throw new pc(lt);return t=Dl(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=st),i}}function Ia(t,e,i){e=i?st:e;var n=pr(t,bt,st,st,st,st,st,e);return n.placeholder=Ia.placeholder,n}function Oa(t,e,i){e=i?st:e;var n=pr(t,wt,st,st,st,st,st,e);return n.placeholder=Oa.placeholder,n}function $a(t,e,i){function n(e){var i=d,n=p;return d=p=st,y=e,g=t.apply(n,i)}function s(t){return y=t,m=$h(a,e),_?n(t):g}function r(t){var i=t-v,n=t-y,s=e-i;return b?Kc(s,f-n):s}function o(t){var i=t-v,n=t-y;return v===st||i>=e||i<0||b&&n>=f}function a(){var t=ad();return o(t)?l(t):void(m=$h(a,r(t)))}function l(t){return m=st,w&&d?n(t):(d=p=st,g)}function u(){m!==st&&kh(m),y=0,d=v=p=m=st}function c(){return m===st?g:l(ad())}function h(){var t=ad(),i=o(t);if(d=arguments,p=this,v=t,i){if(m===st)return s(v);if(b)return m=$h(a,e),n(v)}return m===st&&(m=$h(a,e)),g}var d,p,f,g,m,v,y=0,_=!1,b=!1,w=!0;if("function"!=typeof t)throw new pc(lt);return e=Sl(e)||0,al(i)&&(_=!!i.leading,b="maxWait"in i,f=b?Xc(Sl(i.maxWait)||0,e):f,w="trailing"in i?!!i.trailing:w),h.cancel=u,h.flush=c,h}function Pa(t){return pr(t,Tt)}function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pc(lt);var i=function(){var n=arguments,s=e?e.apply(this,n):n[0],r=i.cache;if(r.has(s))return r.get(s);var o=t.apply(this,n);return i.cache=r.set(s,o)||r,o};return i.cache=new(Ma.Cache||ci),i}function Na(t){if("function"!=typeof t)throw new pc(lt);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function ja(t){return Ea(2,t)}function Fa(t,e){if("function"!=typeof t)throw new pc(lt);return e=e===st?e:Dl(e),os(t,e)}function Ha(t,e){if("function"!=typeof t)throw new pc(lt);return e=e===st?0:Xc(Dl(e),0),os(function(i){var n=i[e],s=As(i,0,e);return n&&m(s,n),a(t,this,s)})}function La(t,e,i){var n=!0,s=!0;if("function"!=typeof t)throw new pc(lt);return al(i)&&(n="leading"in i?!!i.leading:n,s="trailing"in i?!!i.trailing:s),$a(t,e,{leading:n,maxWait:e,trailing:s})}function Ra(t){return Aa(t,1)}function za(t,e){return pd(Ts(e),t)}function Wa(){if(!arguments.length)return[];var t=arguments[0];return _d(t)?t:[t]}function Ua(t){return Li(t,ft)}function Ba(t,e){return e="function"==typeof e?e:st,Li(t,ft,e)}function qa(t){return Li(t,dt|ft)}function Ya(t,e){return e="function"==typeof e?e:st,Li(t,dt|ft,e)}function Va(t,e){return null==e||zi(t,e,Ul(e))}function Xa(t,e){return t===e||t!==t&&e!==e}function Ka(t){return null!=t&&ol(t.length)&&!sl(t)}function Ga(t){return ll(t)&&Ka(t)}function Qa(t){return t===!0||t===!1||ll(t)&&hn(t)==qt}function Za(t){return ll(t)&&1===t.nodeType&&!ml(t)}function Ja(t){if(null==t)return!0;if(Ka(t)&&(_d(t)||"string"==typeof t||"function"==typeof t.splice||wd(t)||Td(t)||yd(t)))return!t.length;var e=Eh(t);if(e==Qt||e==se)return!t.size;if(zr(t))return!Wn(t).length;for(var i in t)if(_c.call(t,i))return!1;return!0}function tl(t,e){return Pn(t,e)}function el(t,e,i){i="function"==typeof i?i:st;var n=i?i(t,e):st;return n===st?Pn(t,e,st,i):!!n}function il(t){if(!ll(t))return!1;var e=hn(t);return e==Xt||e==Vt||"string"==typeof t.message&&"string"==typeof t.name&&!ml(t)}function nl(t){return"number"==typeof t&&qc(t)}function sl(t){if(!al(t))return!1;var e=hn(t);return e==Kt||e==Gt||e==Bt||e==ie}function rl(t){return"number"==typeof t&&t==Dl(t)}function ol(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Nt}function al(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ll(t){return null!=t&&"object"==typeof t}function ul(t,e){return t===e||jn(t,e,kr(e))}function cl(t,e,i){return i="function"==typeof i?i:st,jn(t,e,kr(e),i)}function hl(t){return gl(t)&&t!=+t}function dl(t){if(Ih(t))throw new ac(at);return Fn(t)}function pl(t){return null===t}function fl(t){return null==t}function gl(t){return"number"==typeof t||ll(t)&&hn(t)==Zt}function ml(t){if(!ll(t)||hn(t)!=te)return!1;var e=Ic(t);if(null===e)return!0;var i=_c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&yc.call(i)==Cc}function vl(t){return rl(t)&&t>=-Nt&&t<=Nt}function yl(t){return"string"==typeof t||!_d(t)&&ll(t)&&hn(t)==re}function _l(t){return"symbol"==typeof t||ll(t)&&hn(t)==oe}function bl(t){return t===st}function wl(t){return ll(t)&&Eh(t)==le}function xl(t){return ll(t)&&hn(t)==ue}function Cl(t){if(!t)return[];if(Ka(t))return yl(t)?tt(t):zs(t);if(Nc&&t[Nc])return q(t[Nc]());var e=Eh(t),i=e==Qt?Y:e==se?K:iu;return i(t)}function kl(t){if(!t)return 0===t?t:0;if(t=Sl(t),t===Mt||t===-Mt){var e=t<0?-1:1;return e*jt}return t===t?t:0}function Dl(t){var e=kl(t),i=e%1;return e===e?i?e-i:e:0}function Tl(t){return t?Hi(Dl(t),0,Ht):0}function Sl(t){if("number"==typeof t)return t;if(_l(t))return Ft;if(al(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=al(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Fe,"");var i=Xe.test(t);return i||Ge.test(t)?sn(t.slice(2),i?2:8):Ve.test(t)?Ft:+t}function Al(t){return Ws(t,Bl(t))}function El(t){return Hi(Dl(t),-Nt,Nt)}function Il(t){return null==t?"":vs(t)}function Ol(t,e){var i=mh(t);return null==e?i:Mi(i,e)}function $l(t,e){return x(t,xr(e,3),en)}function Pl(t,e){return x(t,xr(e,3),rn)}function Ml(t,e){return null==t?t:_h(t,xr(e,3),Bl)}function Nl(t,e){return null==t?t:bh(t,xr(e,3),Bl)}function jl(t,e){return t&&en(t,xr(e,3))}function Fl(t,e){return t&&rn(t,xr(e,3))}function Hl(t){return null==t?[]:on(t,Ul(t))}function Ll(t){return null==t?[]:on(t,Bl(t))}function Rl(t,e,i){var n=null==t?st:ln(t,e);return n===st?i:n}function zl(t,e){return null!=t&&Er(t,e,_n)}function Wl(t,e){return null!=t&&Er(t,e,Cn)}function Ul(t){return Ka(t)?Di(t):Wn(t)}function Bl(t){return Ka(t)?Di(t,!0):Un(t)}function ql(t,e){var i={};return e=xr(e,3),en(t,function(t,n,s){ji(i,e(t,n,s),t)}),i}function Yl(t,e){var i={};return e=xr(e,3),en(t,function(t,n,s){ji(i,n,e(t,n,s))}),i}function Vl(t,e){return Xl(t,Na(xr(e)))}function Xl(t,e){if(null==t)return{};var i=g(_r(t),function(t){return[t]});return e=xr(e),Jn(t,i,function(t,i){return e(t,i[0])})}function Kl(t,e,i){e=Ss(e,t);var n=-1,s=e.length;for(s||(s=1,t=st);++n<s;){var r=null==t?st:t[eo(e[n])];r===st&&(n=s,r=i),t=sl(r)?r.call(t):r}return t}function Gl(t,e,i){return null==t?t:us(t,e,i)}function Ql(t,e,i,n){return n="function"==typeof n?n:st,null==t?t:us(t,e,i,n)}function Zl(t,e,i){var n=_d(t),s=n||wd(t)||Td(t);if(e=xr(e,4),null==i){var r=t&&t.constructor;i=s?n?new r:[]:al(t)&&sl(r)?mh(Ic(t)):{}}return(s?u:en)(t,function(t,n,s){return e(i,t,n,s)}),i}function Jl(t,e){return null==t||_s(t,e)}function tu(t,e,i){return null==t?t:bs(t,e,Ts(i))}function eu(t,e,i,n){return n="function"==typeof n?n:st,null==t?t:bs(t,e,Ts(i),n)}function iu(t){return null==t?[]:j(t,Ul(t))}function nu(t){return null==t?[]:j(t,Bl(t))}function su(t,e,i){return i===st&&(i=e,e=st),i!==st&&(i=Sl(i),i=i===i?i:0),e!==st&&(e=Sl(e),e=e===e?e:0),Hi(Sl(t),e,i)}function ru(t,e,i){return e=kl(e),i===st?(i=e,e=0):i=kl(i),t=Sl(t),Tn(t,e,i)}function ou(t,e,i){if(i&&"boolean"!=typeof i&&jr(t,e,i)&&(e=i=st),i===st&&("boolean"==typeof e?(i=e,e=st):"boolean"==typeof t&&(i=t,t=st)),t===st&&e===st?(t=0,e=1):(t=kl(t),e===st?(e=t,t=0):e=kl(e)),t>e){var n=t;t=e,e=n}if(i||t%1||e%1){var s=Zc();return Kc(t+s*(e-t+nn("1e-"+((s+"").length-1))),e)}return ns(t,e)}function au(t){return Zd(Il(t).toLowerCase())}function lu(t){return t=Il(t),t&&t.replace(Ze,bn).replace(Ui,"")}function uu(t,e,i){t=Il(t),e=vs(e);var n=t.length;i=i===st?n:Hi(Dl(i),0,n);var s=i;return i-=e.length,i>=0&&t.slice(i,s)==e}function cu(t){return t=Il(t),t&&Se.test(t)?t.replace(De,wn):t}function hu(t){return t=Il(t),t&&je.test(t)?t.replace(Ne,"\\$&"):t}function du(t,e,i){t=Il(t),e=Dl(e);var n=e?J(t):0;if(!e||n>=e)return t;var s=(e-n)/2;return or(Wc(s),i)+t+or(zc(s),i)}function pu(t,e,i){t=Il(t),e=Dl(e);var n=e?J(t):0;return e&&n<e?t+or(e-n,i):t}function fu(t,e,i){t=Il(t),e=Dl(e);var n=e?J(t):0;return e&&n<e?or(e-n,i)+t:t}function gu(t,e,i){return i||null==e?e=0:e&&(e=+e),Qc(Il(t).replace(He,""),e||0)}function mu(t,e,i){return e=(i?jr(t,e,i):e===st)?1:Dl(e),rs(Il(t),e)}function vu(){var t=arguments,e=Il(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function yu(t,e,i){return i&&"number"!=typeof i&&jr(t,e,i)&&(e=i=st),(i=i===st?Ht:i>>>0)?(t=Il(t),t&&("string"==typeof e||null!=e&&!kd(e))&&(e=vs(e),!e&&U(t))?As(tt(t),0,i):t.split(e,i)):[]}function _u(t,e,i){return t=Il(t),i=Hi(Dl(i),0,t.length),e=vs(e),t.slice(i,i+e.length)==e}function bu(t,i,n){var s=e.templateSettings;n&&jr(t,i,n)&&(i=st),t=Il(t),i=Od({},i,s,Ei);var r,o,a=Od({},i.imports,s.imports,Ei),l=Ul(a),u=j(a,l),c=0,h=i.interpolate||Je,d="__p += '",p=hc((i.escape||Je).source+"|"+h.source+"|"+(h===Ie?qe:Je).source+"|"+(i.evaluate||Je).source+"|$","g"),f="//# sourceURL="+("sourceURL"in i?i.sourceURL:"lodash.templateSources["+ ++Ki+"]")+"\n";t.replace(p,function(e,i,n,s,a,l){return n||(n=s),d+=t.slice(c,l).replace(ti,z),i&&(r=!0,d+="' +\n__e("+i+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),d+="';\n";var g=i.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(we,""):d).replace(xe,"$1").replace(Ce,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Jd(function(){return lc(l,f+"return "+d).apply(st,u)});if(m.source=d,il(m))throw m;return m}function wu(t){return Il(t).toLowerCase()}function xu(t){return Il(t).toUpperCase()}function Cu(t,e,i){if(t=Il(t),t&&(i||e===st))return t.replace(Fe,"");if(!t||!(e=vs(e)))return t;var n=tt(t),s=tt(e),r=H(n,s),o=L(n,s)+1;return As(n,r,o).join("")}function ku(t,e,i){if(t=Il(t),t&&(i||e===st))return t.replace(Le,"");if(!t||!(e=vs(e)))return t;var n=tt(t),s=L(n,tt(e))+1;return As(n,0,s).join("")}function Du(t,e,i){if(t=Il(t),t&&(i||e===st))return t.replace(He,"");if(!t||!(e=vs(e)))return t;var n=tt(t),s=H(n,tt(e));return As(n,s).join("")}function Tu(t,e){var i=St,n=At;if(al(e)){var s="separator"in e?e.separator:s;i="length"in e?Dl(e.length):i,n="omission"in e?vs(e.omission):n}t=Il(t);var r=t.length;if(U(t)){var o=tt(t);r=o.length}if(i>=r)return t;var a=i-J(n);if(a<1)return n;var l=o?As(o,0,a).join(""):t.slice(0,a);if(s===st)return l+n;if(o&&(a+=l.length-a),kd(s)){if(t.slice(a).search(s)){var u,c=l;for(s.global||(s=hc(s.source,Il(Ye.exec(s))+"g")),s.lastIndex=0;u=s.exec(c);)var h=u.index;l=l.slice(0,h===st?a:h)}}else if(t.indexOf(vs(s),a)!=a){var d=l.lastIndexOf(s);d>-1&&(l=l.slice(0,d))}return l+n}function Su(t){return t=Il(t),t&&Te.test(t)?t.replace(ke,xn):t}function Au(t,e,i){return t=Il(t),e=i?st:e,e===st?B(t)?nt(t):w(t):t.match(e)||[]}function Eu(t){var e=null==t?0:t.length,i=xr();return t=e?g(t,function(t){if("function"!=typeof t[1])throw new pc(lt);return[i(t[0]),t[1]]}):[],os(function(i){for(var n=-1;++n<e;){var s=t[n];if(a(s[0],this,i))return a(s[1],this,i)}})}function Iu(t){return Ri(Li(t,dt))}function Ou(t){return function(){return t}}function $u(t,e){return null==t||t!==t?e:t}function Pu(t){return t}function Mu(t){return zn("function"==typeof t?t:Li(t,dt))}function Nu(t){return Yn(Li(t,dt))}function ju(t,e){return Vn(t,Li(e,dt))}function Fu(t,e,i){var n=Ul(e),s=on(e,n);null!=i||al(e)&&(s.length||!n.length)||(i=e,e=t,t=this,s=on(e,Ul(e)));var r=!(al(i)&&"chain"in i&&!i.chain),o=sl(t);return u(s,function(i){var n=e[i];t[i]=n,o&&(t.prototype[i]=function(){var e=this.__chain__;if(r||e){var i=t(this.__wrapped__),s=i.__actions__=zs(this.__actions__);return s.push({func:n,args:arguments,thisArg:t}),i.__chain__=e,i}return n.apply(t,m([this.value()],arguments))})}),t}function Hu(){return an._===this&&(an._=kc),this}function Lu(){}function Ru(t){return t=Dl(t),os(function(e){return Gn(e,t)})}function zu(t){return Fr(t)?A(eo(t)):ts(t)}function Wu(t){return function(e){return null==t?st:ln(t,e)}}function Uu(){return[]}function Bu(){return!1}function qu(){return{}}function Yu(){return""}function Vu(){return!0}function Xu(t,e){if(t=Dl(t),t<1||t>Nt)return[];var i=Ht,n=Kc(t,Ht);e=xr(e),t-=Ht;for(var s=P(n,e);++i<t;)e(i);return s}function Ku(t){return _d(t)?g(t,eo):_l(t)?[t]:zs(Mh(Il(t)))}function Gu(t){var e=++bc;return Il(t)+e}function Qu(t){return t&&t.length?Vi(t,Pu,dn):st}function Zu(t,e){return t&&t.length?Vi(t,xr(e,2),dn):st}function Ju(t){return S(t,Pu)}function tc(t,e){return S(t,xr(e,2))}function ec(t){return t&&t.length?Vi(t,Pu,Bn):st}function ic(t,e){return t&&t.length?Vi(t,xr(e,2),Bn):st}function nc(t){return t&&t.length?$(t,Pu):0}function sc(t,e){return t&&t.length?$(t,xr(e,2)):0}t=null==t?an:kn.defaults(an.Object(),t,kn.pick(an,Xi));var rc=t.Array,oc=t.Date,ac=t.Error,lc=t.Function,uc=t.Math,cc=t.Object,hc=t.RegExp,dc=t.String,pc=t.TypeError,fc=rc.prototype,gc=lc.prototype,mc=cc.prototype,vc=t["__core-js_shared__"],yc=gc.toString,_c=mc.hasOwnProperty,bc=0,wc=function(){var t=/[^.]+$/.exec(vc&&vc.keys&&vc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xc=mc.toString,Cc=yc.call(cc),kc=an._,Dc=hc("^"+yc.call(_c).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tc=cn?t.Buffer:st,Sc=t.Symbol,Ac=t.Uint8Array,Ec=Tc?Tc.allocUnsafe:st,Ic=V(cc.getPrototypeOf,cc),Oc=cc.create,$c=mc.propertyIsEnumerable,Pc=fc.splice,Mc=Sc?Sc.isConcatSpreadable:st,Nc=Sc?Sc.iterator:st,jc=Sc?Sc.toStringTag:st,Fc=function(){try{var t=Dr(cc,"defineProperty");return t({},"",{}),t}catch(e){}}(),Hc=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Lc=oc&&oc.now!==an.Date.now&&oc.now,Rc=t.setTimeout!==an.setTimeout&&t.setTimeout,zc=uc.ceil,Wc=uc.floor,Uc=cc.getOwnPropertySymbols,Bc=Tc?Tc.isBuffer:st,qc=t.isFinite,Yc=fc.join,Vc=V(cc.keys,cc),Xc=uc.max,Kc=uc.min,Gc=oc.now,Qc=t.parseInt,Zc=uc.random,Jc=fc.reverse,th=Dr(t,"DataView"),eh=Dr(t,"Map"),ih=Dr(t,"Promise"),nh=Dr(t,"Set"),sh=Dr(t,"WeakMap"),rh=Dr(cc,"create"),oh=sh&&new sh,ah={},lh=io(th),uh=io(eh),ch=io(ih),hh=io(nh),dh=io(sh),ph=Sc?Sc.prototype:st,fh=ph?ph.valueOf:st,gh=ph?ph.toString:st,mh=function(){function t(){}return function(e){if(!al(e))return{};if(Oc)return Oc(e);t.prototype=e;var i=new t;return t.prototype=st,i}}();e.templateSettings={escape:Ae,evaluate:Ee,interpolate:Ie,variable:"",imports:{_:e}},e.prototype=i.prototype,e.prototype.constructor=e,n.prototype=mh(i.prototype),n.prototype.constructor=n,s.prototype=mh(i.prototype),s.prototype.constructor=s,et.prototype.clear=it,et.prototype["delete"]=Ue,et.prototype.get=ei,et.prototype.has=ii,et.prototype.set=ni,si.prototype.clear=ri,si.prototype["delete"]=oi,si.prototype.get=ai,si.prototype.has=li,si.prototype.set=ui,ci.prototype.clear=hi,ci.prototype["delete"]=di,ci.prototype.get=pi,ci.prototype.has=fi,ci.prototype.set=gi,mi.prototype.add=mi.prototype.push=vi,mi.prototype.has=yi,_i.prototype.clear=bi,_i.prototype["delete"]=wi,_i.prototype.get=xi,_i.prototype.has=Ci,_i.prototype.set=ki;var vh=Vs(en),yh=Vs(rn,!0),_h=Xs(),bh=Xs(!0),wh=oh?function(t,e){return oh.set(t,e),t}:Pu,xh=Fc?function(t,e){return Fc(t,"toString",{configurable:!0,enumerable:!1,value:Ou(e),writable:!0})}:Pu,Ch=os,kh=Hc||function(t){return an.clearTimeout(t)},Dh=nh&&1/K(new nh([,-0]))[1]==Mt?function(t){return new nh(t)}:Lu,Th=oh?function(t){return oh.get(t)}:Lu,Sh=Uc?V(Uc,cc):Uu,Ah=Uc?function(t){for(var e=[];t;)m(e,Sh(t)),t=Ic(t);return e}:Uu,Eh=hn;(th&&Eh(new th(new ArrayBuffer(1)))!=he||eh&&Eh(new eh)!=Qt||ih&&Eh(ih.resolve())!=ee||nh&&Eh(new nh)!=se||sh&&Eh(new sh)!=le)&&(Eh=function(t){var e=hn(t),i=e==te?t.constructor:st,n=i?io(i):"";if(n)switch(n){case lh:return he;case uh:return Qt;case ch:return ee;case hh:return se;case dh:return le}return e});var Ih=vc?sl:Bu,Oh=Jr(wh),$h=Rc||function(t,e){return an.setTimeout(t,e)},Ph=Jr(xh),Mh=Br(function(t){var e=[];return Pe.test(t)&&e.push(""),t.replace(Me,function(t,i,n,s){e.push(n?s.replace(Be,"$1"):i||t)}),e}),Nh=os(function(t,e){return Ga(t)?qi(t,tn(e,1,Ga,!0)):[]}),jh=os(function(t,e){var i=ko(e);return Ga(i)&&(i=st),Ga(t)?qi(t,tn(e,1,Ga,!0),xr(i,2)):[]}),Fh=os(function(t,e){var i=ko(e);return Ga(i)&&(i=st),Ga(t)?qi(t,tn(e,1,Ga,!0),st,i):[]}),Hh=os(function(t){var e=g(t,Ds);return e.length&&e[0]===t[0]?Sn(e):[]}),Lh=os(function(t){var e=ko(t),i=g(t,Ds);return e===ko(i)?e=st:i.pop(),i.length&&i[0]===t[0]?Sn(i,xr(e,2)):[]}),Rh=os(function(t){var e=ko(t),i=g(t,Ds);return e="function"==typeof e?e:st,e&&i.pop(),i.length&&i[0]===t[0]?Sn(i,st,e):[]}),zh=os(So),Wh=vr(function(t,e){var i=null==t?0:t.length,n=Fi(t,e);return is(t,g(e,function(t){return Nr(t,i)?+t:t}).sort(Fs)),n}),Uh=os(function(t){return ys(tn(t,1,Ga,!0))}),Bh=os(function(t){var e=ko(t);return Ga(e)&&(e=st),ys(tn(t,1,Ga,!0),xr(e,2))}),qh=os(function(t){var e=ko(t);return e="function"==typeof e?e:st,ys(tn(t,1,Ga,!0),st,e)}),Yh=os(function(t,e){return Ga(t)?qi(t,e):[]}),Vh=os(function(t){return Cs(d(t,Ga))}),Xh=os(function(t){var e=ko(t);return Ga(e)&&(e=st),Cs(d(t,Ga),xr(e,2))}),Kh=os(function(t){var e=ko(t);return e="function"==typeof e?e:st,Cs(d(t,Ga),st,e)}),Gh=os(Ko),Qh=os(function(t){var e=t.length,i=e>1?t[e-1]:st;return i="function"==typeof i?(t.pop(),i):st,Go(t,i)}),Zh=vr(function(t){var e=t.length,i=e?t[0]:0,r=this.__wrapped__,o=function(e){return Fi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof s&&Nr(i)?(r=r.slice(i,+i+(e?1:0)),r.__actions__.push({func:ea,args:[o],thisArg:st}),new n(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(st),t})):this.thru(o)}),Jh=qs(function(t,e,i){_c.call(t,i)?++t[i]:ji(t,i,1)}),td=tr(fo),ed=tr(go),id=qs(function(t,e,i){_c.call(t,i)?t[i].push(e):ji(t,i,[e])}),nd=os(function(t,e,i){var n=-1,s="function"==typeof e,r=Ka(t)?rc(t.length):[];return vh(t,function(t){r[++n]=s?a(e,t,i):En(t,e,i)}),r}),sd=qs(function(t,e,i){ji(t,i,e)}),rd=qs(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]}),od=os(function(t,e){if(null==t)return[];var i=e.length;return i>1&&jr(t,e[0],e[1])?e=[]:i>2&&jr(e[0],e[1],e[2])&&(e=[e[0]]),Qn(t,tn(e,1),[])}),ad=Lc||function(){return an.Date.now()},ld=os(function(t,e,i){var n=vt;if(i.length){var s=X(i,wr(ld));n|=xt}return pr(t,n,e,i,s)}),ud=os(function(t,e,i){var n=vt|yt;if(i.length){var s=X(i,wr(ud));n|=xt}return pr(e,n,t,i,s)}),cd=os(function(t,e){return Bi(t,1,e)}),hd=os(function(t,e,i){return Bi(t,Sl(e)||0,i)});Ma.Cache=ci;var dd=Ch(function(t,e){e=1==e.length&&_d(e[0])?g(e[0],N(xr())):g(tn(e,1),N(xr()));var i=e.length;return os(function(n){for(var s=-1,r=Kc(n.length,i);++s<r;)n[s]=e[s].call(this,n[s]);return a(t,this,n)})}),pd=os(function(t,e){var i=X(e,wr(pd));return pr(t,xt,st,e,i)}),fd=os(function(t,e){var i=X(e,wr(fd));return pr(t,Ct,st,e,i)}),gd=vr(function(t,e){return pr(t,Dt,st,st,st,e)}),md=ur(dn),vd=ur(function(t,e){return t>=e}),yd=In(function(){return arguments}())?In:function(t){return ll(t)&&_c.call(t,"callee")&&!$c.call(t,"callee")},_d=rc.isArray,bd=pn?N(pn):On,wd=Bc||Bu,xd=fn?N(fn):$n,Cd=gn?N(gn):Nn,kd=mn?N(mn):Hn,Dd=vn?N(vn):Ln,Td=yn?N(yn):Rn,Sd=ur(Bn),Ad=ur(function(t,e){return t<=e}),Ed=Ys(function(t,e){if(zr(e)||Ka(e))return void Ws(e,Ul(e),t);for(var i in e)_c.call(e,i)&&Oi(t,i,e[i])}),Id=Ys(function(t,e){Ws(e,Bl(e),t)}),Od=Ys(function(t,e,i,n){Ws(e,Bl(e),t,n)}),$d=Ys(function(t,e,i,n){Ws(e,Ul(e),t,n)}),Pd=vr(Fi),Md=os(function(t){return t.push(st,Ei),a(Od,st,t)}),Nd=os(function(t){return t.push(st,Yr),a(Rd,st,t)}),jd=nr(function(t,e,i){t[e]=i},Ou(Pu)),Fd=nr(function(t,e,i){_c.call(t,e)?t[e].push(i):t[e]=[i]},xr),Hd=os(En),Ld=Ys(function(t,e,i){Xn(t,e,i)}),Rd=Ys(function(t,e,i,n){Xn(t,e,i,n)}),zd=vr(function(t,e){var i={};if(null==t)return i;var n=!1;e=g(e,function(e){return e=Ss(e,t),n||(n=e.length>1),e}),Ws(t,_r(t),i),n&&(i=Li(i,dt|pt|ft));for(var s=e.length;s--;)_s(i,e[s]);return i}),Wd=vr(function(t,e){return null==t?{}:Zn(t,e)}),Ud=dr(Ul),Bd=dr(Bl),qd=Qs(function(t,e,i){return e=e.toLowerCase(),t+(i?au(e):e)}),Yd=Qs(function(t,e,i){return t+(i?"-":"")+e.toLowerCase()}),Vd=Qs(function(t,e,i){return t+(i?" ":"")+e.toLowerCase()}),Xd=Gs("toLowerCase"),Kd=Qs(function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}),Gd=Qs(function(t,e,i){return t+(i?" ":"")+Zd(e)}),Qd=Qs(function(t,e,i){return t+(i?" ":"")+e.toUpperCase()}),Zd=Gs("toUpperCase"),Jd=os(function(t,e){try{return a(t,st,e)}catch(i){return il(i)?i:new ac(i)}}),tp=vr(function(t,e){return u(e,function(e){e=eo(e),ji(t,e,ld(t[e],t))}),t}),ep=er(),ip=er(!0),np=os(function(t,e){return function(i){return En(i,t,e)}}),sp=os(function(t,e){return function(i){return En(t,i,e)}}),rp=rr(g),op=rr(h),ap=rr(_),lp=lr(),up=lr(!0),cp=sr(function(t,e){return t+e},0),hp=hr("ceil"),dp=sr(function(t,e){return t/e},1),pp=hr("floor"),fp=sr(function(t,e){return t*e},1),gp=hr("round"),mp=sr(function(t,e){return t-e},0);return e.after=Sa,e.ary=Aa,e.assign=Ed,e.assignIn=Id,e.assignInWith=Od,e.assignWith=$d,e.at=Pd,e.before=Ea,e.bind=ld,e.bindAll=tp,e.bindKey=ud,e.castArray=Wa,e.chain=Jo,e.chunk=ro,e.compact=oo,e.concat=ao,e.cond=Eu,e.conforms=Iu,e.constant=Ou,e.countBy=Jh,e.create=Ol,e.curry=Ia,e.curryRight=Oa,e.debounce=$a,e.defaults=Md,e.defaultsDeep=Nd,e.defer=cd,e.delay=hd,e.difference=Nh,e.differenceBy=jh,e.differenceWith=Fh,e.drop=lo,e.dropRight=uo,e.dropRightWhile=co,e.dropWhile=ho,e.fill=po,e.filter=ca,e.flatMap=ha,e.flatMapDeep=da,e.flatMapDepth=pa,e.flatten=mo,e.flattenDeep=vo,e.flattenDepth=yo,e.flip=Pa,e.flow=ep,e.flowRight=ip,e.fromPairs=_o,e.functions=Hl,e.functionsIn=Ll,e.groupBy=id,e.initial=xo,e.intersection=Hh,e.intersectionBy=Lh,e.intersectionWith=Rh,e.invert=jd,e.invertBy=Fd,e.invokeMap=nd,e.iteratee=Mu,e.keyBy=sd,e.keys=Ul,e.keysIn=Bl,e.map=va,e.mapKeys=ql,e.mapValues=Yl,e.matches=Nu,e.matchesProperty=ju,e.memoize=Ma,e.merge=Ld,e.mergeWith=Rd,e.method=np,e.methodOf=sp,e.mixin=Fu,e.negate=Na,e.nthArg=Ru,e.omit=zd,e.omitBy=Vl,e.once=ja,e.orderBy=ya,e.over=rp,e.overArgs=dd,e.overEvery=op,e.overSome=ap,e.partial=pd,e.partialRight=fd,e.partition=rd,e.pick=Wd,e.pickBy=Xl,e.property=zu,e.propertyOf=Wu,e.pull=zh,e.pullAll=So,e.pullAllBy=Ao,e.pullAllWith=Eo,e.pullAt=Wh,e.range=lp,e.rangeRight=up,e.rearg=gd,e.reject=wa,e.remove=Io,e.rest=Fa,e.reverse=Oo,e.sampleSize=Ca,e.set=Gl,e.setWith=Ql,e.shuffle=ka,e.slice=$o,e.sortBy=od,e.sortedUniq=Lo,e.sortedUniqBy=Ro,e.split=yu,e.spread=Ha,e.tail=zo,e.take=Wo,e.takeRight=Uo,e.takeRightWhile=Bo,e.takeWhile=qo,e.tap=ta,e.throttle=La,e.thru=ea,e.toArray=Cl,e.toPairs=Ud,e.toPairsIn=Bd,e.toPath=Ku,e.toPlainObject=Al,e.transform=Zl,e.unary=Ra,e.union=Uh,e.unionBy=Bh,e.unionWith=qh,e.uniq=Yo,e.uniqBy=Vo,e.uniqWith=Xo,e.unset=Jl,e.unzip=Ko,e.unzipWith=Go,e.update=tu,e.updateWith=eu,e.values=iu,e.valuesIn=nu,e.without=Yh,e.words=Au,e.wrap=za,e.xor=Vh,e.xorBy=Xh,e.xorWith=Kh,e.zip=Gh,e.zipObject=Qo,e.zipObjectDeep=Zo,e.zipWith=Qh,e.entries=Ud,e.entriesIn=Bd,e.extend=Id,e.extendWith=Od,Fu(e,e),e.add=cp,e.attempt=Jd,e.camelCase=qd,e.capitalize=au,e.ceil=hp,e.clamp=su,e.clone=Ua,e.cloneDeep=qa,e.cloneDeepWith=Ya,e.cloneWith=Ba,e.conformsTo=Va,e.deburr=lu,e.defaultTo=$u,e.divide=dp,e.endsWith=uu,e.eq=Xa,e.escape=cu,e.escapeRegExp=hu,e.every=ua,e.find=td,e.findIndex=fo,e.findKey=$l,e.findLast=ed,e.findLastIndex=go,
e.findLastKey=Pl,e.floor=pp,e.forEach=fa,e.forEachRight=ga,e.forIn=Ml,e.forInRight=Nl,e.forOwn=jl,e.forOwnRight=Fl,e.get=Rl,e.gt=md,e.gte=vd,e.has=zl,e.hasIn=Wl,e.head=bo,e.identity=Pu,e.includes=ma,e.indexOf=wo,e.inRange=ru,e.invoke=Hd,e.isArguments=yd,e.isArray=_d,e.isArrayBuffer=bd,e.isArrayLike=Ka,e.isArrayLikeObject=Ga,e.isBoolean=Qa,e.isBuffer=wd,e.isDate=xd,e.isElement=Za,e.isEmpty=Ja,e.isEqual=tl,e.isEqualWith=el,e.isError=il,e.isFinite=nl,e.isFunction=sl,e.isInteger=rl,e.isLength=ol,e.isMap=Cd,e.isMatch=ul,e.isMatchWith=cl,e.isNaN=hl,e.isNative=dl,e.isNil=fl,e.isNull=pl,e.isNumber=gl,e.isObject=al,e.isObjectLike=ll,e.isPlainObject=ml,e.isRegExp=kd,e.isSafeInteger=vl,e.isSet=Dd,e.isString=yl,e.isSymbol=_l,e.isTypedArray=Td,e.isUndefined=bl,e.isWeakMap=wl,e.isWeakSet=xl,e.join=Co,e.kebabCase=Yd,e.last=ko,e.lastIndexOf=Do,e.lowerCase=Vd,e.lowerFirst=Xd,e.lt=Sd,e.lte=Ad,e.max=Qu,e.maxBy=Zu,e.mean=Ju,e.meanBy=tc,e.min=ec,e.minBy=ic,e.stubArray=Uu,e.stubFalse=Bu,e.stubObject=qu,e.stubString=Yu,e.stubTrue=Vu,e.multiply=fp,e.nth=To,e.noConflict=Hu,e.noop=Lu,e.now=ad,e.pad=du,e.padEnd=pu,e.padStart=fu,e.parseInt=gu,e.random=ou,e.reduce=_a,e.reduceRight=ba,e.repeat=mu,e.replace=vu,e.result=Kl,e.round=gp,e.runInContext=Dn,e.sample=xa,e.size=Da,e.snakeCase=Kd,e.some=Ta,e.sortedIndex=Po,e.sortedIndexBy=Mo,e.sortedIndexOf=No,e.sortedLastIndex=jo,e.sortedLastIndexBy=Fo,e.sortedLastIndexOf=Ho,e.startCase=Gd,e.startsWith=_u,e.subtract=mp,e.sum=nc,e.sumBy=sc,e.template=bu,e.times=Xu,e.toFinite=kl,e.toInteger=Dl,e.toLength=Tl,e.toLower=wu,e.toNumber=Sl,e.toSafeInteger=El,e.toString=Il,e.toUpper=xu,e.trim=Cu,e.trimEnd=ku,e.trimStart=Du,e.truncate=Tu,e.unescape=Su,e.uniqueId=Gu,e.upperCase=Qd,e.upperFirst=Zd,e.each=fa,e.eachRight=ga,e.first=bo,Fu(e,function(){var t={};return en(e,function(i,n){_c.call(e.prototype,n)||(t[n]=i)}),t}(),{chain:!1}),e.VERSION=rt,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),u(["drop","take"],function(t,e){s.prototype[t]=function(i){var n=this.__filtered__;if(n&&!e)return new s(this);i=i===st?1:Xc(Dl(i),0);var r=this.clone();return n?r.__takeCount__=Kc(i,r.__takeCount__):r.__views__.push({size:Kc(i,Ht),type:t+(r.__dir__<0?"Right":"")}),r},s.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),u(["filter","map","takeWhile"],function(t,e){var i=e+1,n=i==Ot||i==Pt;s.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:xr(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}}),u(["head","last"],function(t,e){var i="take"+(e?"Right":"");s.prototype[t]=function(){return this[i](1).value()[0]}}),u(["initial","tail"],function(t,e){var i="drop"+(e?"":"Right");s.prototype[t]=function(){return this.__filtered__?new s(this):this[i](1)}}),s.prototype.compact=function(){return this.filter(Pu)},s.prototype.find=function(t){return this.filter(t).head()},s.prototype.findLast=function(t){return this.reverse().find(t)},s.prototype.invokeMap=os(function(t,e){return"function"==typeof t?new s(this):this.map(function(i){return En(i,t,e)})}),s.prototype.reject=function(t){return this.filter(Na(xr(t)))},s.prototype.slice=function(t,e){t=Dl(t);var i=this;return i.__filtered__&&(t>0||e<0)?new s(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==st&&(e=Dl(e),i=e<0?i.dropRight(-e):i.take(e-t)),i)},s.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},s.prototype.toArray=function(){return this.take(Ht)},en(s.prototype,function(t,i){var r=/^(?:filter|find|map|reject)|While$/.test(i),o=/^(?:head|last)$/.test(i),a=e[o?"take"+("last"==i?"Right":""):i],l=o||/^find/.test(i);a&&(e.prototype[i]=function(){var i=this.__wrapped__,u=o?[1]:arguments,c=i instanceof s,h=u[0],d=c||_d(i),p=function(t){var i=a.apply(e,m([t],u));return o&&f?i[0]:i};d&&r&&"function"==typeof h&&1!=h.length&&(c=d=!1);var f=this.__chain__,g=!!this.__actions__.length,v=l&&!f,y=c&&!g;if(!l&&d){i=y?i:new s(this);var _=t.apply(i,u);return _.__actions__.push({func:ea,args:[p],thisArg:st}),new n(_,f)}return v&&y?t.apply(this,u):(_=this.thru(p),v?o?_.value()[0]:_.value():_)})}),u(["pop","push","shift","sort","splice","unshift"],function(t){var i=fc[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",s=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(s&&!this.__chain__){var e=this.value();return i.apply(_d(e)?e:[],t)}return this[n](function(e){return i.apply(_d(e)?e:[],t)})}}),en(s.prototype,function(t,i){var n=e[i];if(n){var s=n.name+"",r=ah[s]||(ah[s]=[]);r.push({name:i,func:n})}}),ah[ir(st,yt).name]=[{name:"wrapper",func:st}],s.prototype.clone=b,s.prototype.reverse=E,s.prototype.value=Q,e.prototype.at=Zh,e.prototype.chain=ia,e.prototype.commit=na,e.prototype.next=sa,e.prototype.plant=oa,e.prototype.reverse=aa,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=la,e.prototype.first=e.prototype.head,Nc&&(e.prototype[Nc]=ra),e},kn=Cn();an._=kn,s=function(){return kn}.call(e,i,e,n),!(s!==st&&(n.exports=s))}).call(this)}).call(e,i(2),i(24)(t))},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("span",[t._v("\n OAuth Clients\n ")]),t._v(" "),i("a",{staticClass:"action-link",on:{click:t.showCreateClientForm}},[t._v("\n Create New Client\n ")])])]),t._v(" "),i("div",{staticClass:"panel-body"},[0===t.clients.length?i("p",{staticClass:"m-b-none"},[t._v("\n You have not created any OAuth clients.\n ")]):t._e(),t._v(" "),t.clients.length>0?i("table",{staticClass:"table table-borderless m-b-none"},[t._m(0),t._v(" "),i("tbody",t._l(t.clients,function(e){return i("tr",[i("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.id)+"\n ")]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("code",[t._v(t._s(e.secret))])]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("a",{staticClass:"action-link",on:{click:function(i){t.edit(e)}}},[t._v("\n Edit\n ")])]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("a",{staticClass:"action-link text-danger",on:{click:function(i){t.destroy(e)}}},[t._v("\n Delete\n ")])])])}))]):t._e()])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal fade",attrs:{id:"modal-create-client",tabindex:"-1",role:"dialog"}},[i("div",{staticClass:"modal-dialog"},[i("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),i("div",{staticClass:"modal-body"},[t.createForm.errors.length>0?i("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),i("br"),t._v(" "),i("ul",t._l(t.createForm.errors,function(e){return i("li",[t._v("\n "+t._s(e)+"\n ")])}))]):t._e(),t._v(" "),t._v(" "),i("form",{staticClass:"form-horizontal",attrs:{role:"form"}},[i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-3 control-label"},[t._v("Name")]),t._v(" "),i("div",{staticClass:"col-md-7"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.name,expression:"createForm.name"}],staticClass:"form-control",attrs:{id:"create-client-name",type:"text"},domProps:{value:t._s(t.createForm.name)},on:{keyup:function(e){t._k(e.keyCode,"enter",13)||t.store(e)},input:function(e){e.target.composing||(t.createForm.name=e.target.value)}}}),t._v(" "),i("span",{staticClass:"help-block"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-3 control-label"},[t._v("Redirect URL")]),t._v(" "),i("div",{staticClass:"col-md-7"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.redirect,expression:"createForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t._s(t.createForm.redirect)},on:{keyup:function(e){t._k(e.keyCode,"enter",13)||t.store(e)},input:function(e){e.target.composing||(t.createForm.redirect=e.target.value)}}}),t._v(" "),i("span",{staticClass:"help-block"},[t._v("\n Your application's authorization callback URL.\n ")])])])])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal-footer"},[i("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal fade",attrs:{id:"modal-edit-client",tabindex:"-1",role:"dialog"}},[i("div",{staticClass:"modal-dialog"},[i("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),i("div",{staticClass:"modal-body"},[t.editForm.errors.length>0?i("div",{staticClass:"alert alert-danger"},[t._m(4),t._v(" "),i("br"),t._v(" "),i("ul",t._l(t.editForm.errors,function(e){return i("li",[t._v("\n "+t._s(e)+"\n ")])}))]):t._e(),t._v(" "),t._v(" "),i("form",{staticClass:"form-horizontal",attrs:{role:"form"}},[i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-3 control-label"},[t._v("Name")]),t._v(" "),i("div",{staticClass:"col-md-7"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.name,expression:"editForm.name"}],staticClass:"form-control",attrs:{id:"edit-client-name",type:"text"},domProps:{value:t._s(t.editForm.name)},on:{keyup:function(e){t._k(e.keyCode,"enter",13)||t.update(e)},input:function(e){e.target.composing||(t.editForm.name=e.target.value)}}}),t._v(" "),i("span",{staticClass:"help-block"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),t._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-3 control-label"},[t._v("Redirect URL")]),t._v(" "),i("div",{staticClass:"col-md-7"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.redirect,expression:"editForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t._s(t.editForm.redirect)},on:{keyup:function(e){t._k(e.keyCode,"enter",13)||t.update(e)},input:function(e){e.target.composing||(t.editForm.redirect=e.target.value)}}}),t._v(" "),i("span",{staticClass:"help-block"},[t._v("\n Your application's authorization callback URL.\n ")])])])])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal-footer"},[i("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("\n Save Changes\n ")])])])])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("thead",[i("tr",[i("th",[t._v("Client ID")]),t._v(" "),i("th",[t._v("Name")]),t._v(" "),i("th",[t._v("Secret")]),t._v(" "),i("th"),t._v(" "),i("th")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal-header"},[i("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")]),t._v(" "),i("h4",{staticClass:"modal-title"},[t._v("\n Create Client\n ")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("p",[i("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal-header"},[i("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")]),t._v(" "),i("h4",{staticClass:"modal-title"},[t._v("\n Edit Client\n ")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("p",[i("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.tokens.length>0?i("div",[i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading"},[t._v("Authorized Applications")]),t._v(" "),i("div",{staticClass:"panel-body"},[i("table",{staticClass:"table table-borderless m-b-none"},[t._m(0),t._v(" "),i("tbody",t._l(t.tokens,function(e){return i("tr",[i("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.client.name)+"\n ")]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[e.scopes.length>0?i("span",[t._v("\n "+t._s(e.scopes.join(", "))+"\n ")]):t._e()]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("a",{staticClass:"action-link text-danger",on:{click:function(i){t.revoke(e)}}},[t._v("\n Revoke\n ")])])])}))])])])]):t._e()])},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("thead",[i("tr",[i("th",[t._v("Name")]),t._v(" "),i("th",[t._v("Scopes")]),t._v(" "),i("th")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("span",[t._v("\n Personal Access Tokens\n ")]),t._v(" "),i("a",{staticClass:"action-link",on:{click:t.showCreateTokenForm}},[t._v("\n Create New Token\n ")])])]),t._v(" "),i("div",{staticClass:"panel-body"},[0===t.tokens.length?i("p",{staticClass:"m-b-none"},[t._v("\n You have not created any personal access tokens.\n ")]):t._e(),t._v(" "),t._v(" "),t.tokens.length>0?i("table",{staticClass:"table table-borderless m-b-none"},[t._m(0),t._v(" "),i("tbody",t._l(t.tokens,function(e){return i("tr",[i("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),t._v(" "),i("td",{staticStyle:{"vertical-align":"middle"}},[i("a",{staticClass:"action-link text-danger",on:{click:function(i){t.revoke(e)}}},[t._v("\n Delete\n ")])])])}))]):t._e()])])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal fade",attrs:{id:"modal-create-token",tabindex:"-1",role:"dialog"}},[i("div",{staticClass:"modal-dialog"},[i("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),i("div",{staticClass:"modal-body"},[t.form.errors.length>0?i("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),i("br"),t._v(" "),i("ul",t._l(t.form.errors,function(e){return i("li",[t._v("\n "+t._s(e)+"\n ")])}))]):t._e(),t._v(" "),t._v(" "),i("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(e){e.preventDefault(),t.store(e)}}},[i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-4 control-label"},[t._v("Name")]),t._v(" "),i("div",{staticClass:"col-md-6"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"create-token-name",type:"text",name:"name"},domProps:{value:t._s(t.form.name)},on:{input:function(e){e.target.composing||(t.form.name=e.target.value)}}})])]),t._v(" "),t._v(" "),t.scopes.length>0?i("div",{staticClass:"form-group"},[i("label",{staticClass:"col-md-4 control-label"},[t._v("Scopes")]),t._v(" "),i("div",{staticClass:"col-md-6"},t._l(t.scopes,function(e){return i("div",[i("div",{staticClass:"checkbox"},[i("label",[i("input",{attrs:{type:"checkbox"},domProps:{checked:t.scopeIsAssigned(e.id)},on:{click:function(i){t.toggleScope(e.id)}}}),t._v("\n\n "+t._s(e.id)+"\n ")])])])}))]):t._e()])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal-footer"},[i("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),t._v(" "),i("div",{staticClass:"modal fade",attrs:{id:"modal-access-token",tabindex:"-1",role:"dialog"}},[i("div",{staticClass:"modal-dialog"},[i("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),i("div",{staticClass:"modal-body"},[i("p",[t._v("\n Here is your new personal access token. This is the only time it will be shown so don't lose it!\n You may now use this token to make API requests.\n ")]),t._v(" "),i("pre",[i("code",[t._v(t._s(t.accessToken))])])]),t._v(" "),t._v(" "),t._m(4)])])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("thead",[i("tr",[i("th",[t._v("Name")]),t._v(" "),i("th")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal-header"},[i("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")]),t._v(" "),i("h4",{staticClass:"modal-title"},[t._v("\n Create Token\n ")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("p",[i("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal-header"},[i("button",{staticClass:"close",attrs:{type:"button ","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")]),t._v(" "),i("h4",{staticClass:"modal-title"},[t._v("\n Personal Access Token\n ")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"modal-footer"},[i("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}]}},function(t,e){"use strict";function i(t){this.state=at,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(i){e.reject(i)}}function n(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function s(t){ht=t.util,ct=t.config.debug||!t.config.silent}function r(t){"undefined"!=typeof console&&ct}function o(t){"undefined"!=typeof console}function a(t,e){return ht.nextTick(t,e)}function l(t){return t.replace(/^\s*|\s*$/g,"")}function u(t){return t?t.toLowerCase():""}function c(t){return t?t.toUpperCase():""}function h(t){return"string"==typeof t}function d(t){return t===!0||t===!1}function p(t){return"function"==typeof t}function f(t){return null!==t&&"object"==typeof t}function g(t){return f(t)&&Object.getPrototypeOf(t)==Object.prototype}function m(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}function y(t,e,i){var s=n.resolve(t);return arguments.length<2?s:s.then(e,i)}function _(t,e,i){return i=i||{},p(i)&&(i=i.call(e)),w(t.bind({$vm:e,$options:i}),t,{$options:i})}function b(t,e){var i,n;if(t&&"number"==typeof t.length)for(i=0;i<t.length;i++)e.call(t[i],t[i],i);else if(f(t))for(n in t)t.hasOwnProperty(n)&&e.call(t[n],t[n],n);return t}function w(t){var e=dt.call(arguments,1);return e.forEach(function(e){k(t,e,!0)}),t}function x(t){var e=dt.call(arguments,1);return e.forEach(function(e){for(var i in e)void 0===t[i]&&(t[i]=e[i])}),t}function C(t){var e=dt.call(arguments,1);return e.forEach(function(e){k(t,e)}),t}function k(t,e,i){for(var n in e)i&&(g(e[n])||pt(e[n]))?(g(e[n])&&!g(t[n])&&(t[n]={}),pt(e[n])&&!pt(t[n])&&(t[n]=[]),k(t[n],e[n],i)):void 0!==e[n]&&(t[n]=e[n])}function D(t,e){var i=e(t);return h(t.root)&&!i.match(/^(https?:)?\//)&&(i=t.root+"/"+i),i}function T(t,e){var i=Object.keys(N.options.params),n={},s=e(t);return b(t.params,function(t,e){i.indexOf(e)===-1&&(n[e]=t)}),n=N.params(n),n&&(s+=(s.indexOf("?")==-1?"?":"&")+n),s}function S(t,e,i){var n=A(t),s=n.expand(e);return i&&i.push.apply(i,n.vars),s}function A(t){var e=["+","#",".","/",";","?","&"],i=[];return{vars:i,expand:function(n){return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(t,s,r){if(s){var o=null,a=[];if(e.indexOf(s.charAt(0))!==-1&&(o=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(t){var e=/([^:\*]*)(?::(\d+)|(\*))?/.exec(t);a.push.apply(a,E(n,o,e[1],e[2]||e[3])),i.push(e[1])}),o&&"+"!==o){var l=",";return"?"===o?l="&":"#"!==o&&(l=o),(0!==a.length?o:"")+a.join(l)}return a.join(",")}return P(r)})}}}function E(t,e,i,n){var s=t[i],r=[];if(I(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),n&&"*"!==n&&(s=s.substring(0,parseInt(n,10))),r.push($(e,s,O(e)?i:null));else if("*"===n)Array.isArray(s)?s.filter(I).forEach(function(t){r.push($(e,t,O(e)?i:null))}):Object.keys(s).forEach(function(t){I(s[t])&&r.push($(e,s[t],t))});else{var o=[];Array.isArray(s)?s.filter(I).forEach(function(t){o.push($(e,t))}):Object.keys(s).forEach(function(t){I(s[t])&&(o.push(encodeURIComponent(t)),o.push($(e,s[t].toString())))}),O(e)?r.push(encodeURIComponent(i)+"="+o.join(",")):0!==o.length&&r.push(o.join(","))}else";"===e?r.push(encodeURIComponent(i)):""!==s||"&"!==e&&"?"!==e?""===s&&r.push(""):r.push(encodeURIComponent(i)+"=");return r}function I(t){return void 0!==t&&null!==t}function O(t){return";"===t||"&"===t||"?"===t}function $(t,e,i){return e="+"===t||"#"===t?P(e):encodeURIComponent(e),i?encodeURIComponent(i)+"="+e:e}function P(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}function M(t){var e=[],i=S(t.url,t.params,e);return e.forEach(function(e){delete t.params[e]}),i}function N(t,e){var i,n=this||{},s=t;return h(t)&&(s={url:t,params:e}),s=w({},N.options,n.$options,s),N.transforms.forEach(function(t){i=j(t,i,n.$vm)}),i(s)}function j(t,e,i){return function(n){return t.call(i,n,e)}}function F(t,e,i){var n,s=pt(e),r=g(e);b(e,function(e,o){n=f(e)||pt(e),i&&(o=i+"["+(r||n?o:"")+"]"),!i&&s?t.add(e.name,e.value):n?F(t,e,o):t.add(o,e)})}function H(t){return new n(function(e){var i=new XDomainRequest,n=function(n){var s=n.type,r=0;"load"===s?r=200:"error"===s&&(r=500),e(t.respondWith(i.responseText,{status:r}))};t.abort=function(){return i.abort()},i.open(t.method,t.getUrl()),i.timeout=0,i.onload=n,i.onerror=n,i.ontimeout=n,i.onprogress=function(){},i.send(t.getBody())})}function L(t,e){!d(t.crossOrigin)&&R(t)&&(t.crossOrigin=!0),t.crossOrigin&&(yt||(t.client=H),delete t.emulateHTTP),e()}function R(t){var e=N.parse(N(t));return e.protocol!==vt.protocol||e.host!==vt.host}function z(t,e){v(t.body)?t.headers["delete"]("Content-Type"):(f(t.body)||pt(t.body))&&(t.emulateJSON?(t.body=N.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded")):t.body=JSON.stringify(t.body)),e(function(t){return Object.defineProperty(t,"data",{get:function(){return this.body},set:function(t){this.body=t}}),t.bodyText?y(t.text(),function(e){var i=t.headers.get("Content-Type");if(h(i)&&0===i.indexOf("application/json"))try{t.body=JSON.parse(e)}catch(n){t.body=null}else t.body=e;return t}):t})}function W(t){return new n(function(e){var i,n,s=t.jsonp||"callback",r="_jsonp"+Math.random().toString(36).substr(2),o=null;i=function(i){var s=i.type,a=0;"load"===s&&null!==o?a=200:"error"===s&&(a=500),e(t.respondWith(o,{status:a})),delete window[r],document.body.removeChild(n)},t.params[s]=r,window[r]=function(t){o=JSON.stringify(t)},n=document.createElement("script"),n.src=t.getUrl(),n.type="text/javascript",n.async=!0,n.onload=i,n.onerror=i,document.body.appendChild(n)})}function U(t,e){"JSONP"==t.method&&(t.client=W),e(function(e){if("JSONP"==t.method)return y(e.json(),function(t){return e.body=t,e})})}function B(t,e){p(t.before)&&t.before.call(this,t),e()}function q(t,e){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST"),e()}function Y(t,e){var i=ft({},et.headers.common,t.crossOrigin?{}:et.headers.custom,et.headers[u(t.method)]);b(i,function(e,i){t.headers.has(i)||t.headers.set(i,e)}),e()}function V(t,e){var i;t.timeout&&(i=setTimeout(function(){t.abort()},t.timeout)),e(function(t){clearTimeout(i)})}function X(t){return new n(function(e){var i=new XMLHttpRequest,n=function(n){var s=t.respondWith("response"in i?i.response:i.responseText,{status:1223===i.status?204:i.status,statusText:1223===i.status?"No Content":l(i.statusText)});b(l(i.getAllResponseHeaders()).split("\n"),function(t){s.headers.append(t.slice(0,t.indexOf(":")),t.slice(t.indexOf(":")+1))}),e(s)};t.abort=function(){return i.abort()},t.progress&&("GET"===t.method?i.addEventListener("progress",t.progress):/^(POST|PUT)$/i.test(t.method)&&i.upload.addEventListener("progress",t.progress)),i.open(t.method,t.getUrl(),!0),"responseType"in i&&(i.responseType="blob"),t.credentials===!0&&(i.withCredentials=!0),t.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.timeout=0,i.onload=n,i.onerror=n,i.send(t.getBody())})}function K(t){function e(e){return new n(function(n){function a(){i=s.pop(),p(i)?i.call(t,e,l):(r("Invalid interceptor of type "+typeof i+", must be a function"),l())}function l(e){if(p(e))o.unshift(e);else if(f(e))return o.forEach(function(i){e=y(e,function(e){return i.call(t,e)||e})}),void y(e,n);a()}a()},t)}var i,s=[G],o=[];return f(t)||(t=null),e.use=function(t){s.push(t)},e}function G(t,e){var i=t.client||X;e(i(t))}function Q(t,e){return Object.keys(t).reduce(function(t,i){return u(e)===u(i)?i:t},null)}function Z(t){if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return l(t)}function J(t){return new n(function(e){var i=new FileReader;i.readAsText(t),i.onload=function(){e(i.result)}})}function tt(t){return 0===t.type.indexOf("text")||t.type.indexOf("json")!==-1}function et(t){var e=this||{},i=K(e.$vm);return x(t||{},e.$options,et.options),et.interceptors.forEach(function(t){i.use(t)}),i(new xt(t)).then(function(t){return t.ok?t:n.reject(t)},function(t){return t instanceof Error&&o(t),n.reject(t)})}function it(t,e,i,n){var s=this||{},r={};return i=ft({},it.actions,i),b(i,function(i,o){i=w({url:t,params:ft({},e)},n,i),r[o]=function(){return(s.$http||et)(nt(i,arguments))}}),r}function nt(t,e){var i,n=ft({},t),s={};switch(e.length){case 2:s=e[0],i=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(n.method)?i=e[0]:s=e[0];break;case 0:break;default:throw"Expected up to 4 arguments [params, body], got "+e.length+" arguments"}return n.body=i,n.params=ft({},n.params,s),n}function st(t){st.installed||(s(t),t.url=N,t.http=et,t.resource=it,t.Promise=n,Object.defineProperties(t.prototype,{$url:{get:function(){return _(t.url,this,this.$options.url)}},$http:{get:function(){return _(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(i){return new t.Promise(i,e)}}}}))}var rt=0,ot=1,at=2;i.reject=function(t){return new i(function(e,i){i(t)})},i.resolve=function(t){return new i(function(e,i){e(t)})},i.all=function(t){return new i(function(e,n){function s(i){return function(n){o[i]=n,r+=1,r===t.length&&e(o)}}var r=0,o=[];0===t.length&&e(o);for(var a=0;a<t.length;a+=1)i.resolve(t[a]).then(s(a),n)})},i.race=function(t){return new i(function(e,n){for(var s=0;s<t.length;s+=1)i.resolve(t[s]).then(e,n)})};var lt=i.prototype;lt.resolve=function(t){var e=this;if(e.state===at){if(t===e)throw new TypeError("Promise settled with itself.");var i=!1;try{var n=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof n)return void n.call(t,function(t){i||e.resolve(t),i=!0},function(t){i||e.reject(t),i=!0})}catch(s){return void(i||e.reject(s))}e.state=rt,e.value=t,e.notify()}},lt.reject=function(t){var e=this;if(e.state===at){if(t===e)throw new TypeError("Promise settled with itself.");e.state=ot,e.value=t,e.notify()}},lt.notify=function(){var t=this;a(function(){if(t.state!==at)for(;t.deferred.length;){var e=t.deferred.shift(),i=e[0],n=e[1],s=e[2],r=e[3];try{t.state===rt?s("function"==typeof i?i.call(void 0,t.value):t.value):t.state===ot&&("function"==typeof n?s(n.call(void 0,t.value)):r(t.value))}catch(o){r(o)}}})},lt.then=function(t,e){var n=this;return new i(function(i,s){n.deferred.push([t,e,i,s]),n.notify()})},lt["catch"]=function(t){return this.then(void 0,t)},"undefined"==typeof Promise&&(window.Promise=i),n.all=function(t,e){return new n(Promise.all(t),e)},n.resolve=function(t,e){return new n(Promise.resolve(t),e)},n.reject=function(t,e){return new n(Promise.reject(t),e)},n.race=function(t,e){return new n(Promise.race(t),e)};var ut=n.prototype;ut.bind=function(t){return this.context=t,this},ut.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),new n(this.promise.then(t,e),this.context)},ut["catch"]=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),new n(this.promise["catch"](t),this.context)},ut["finally"]=function(t){return this.then(function(e){return t.call(this),e},function(e){return t.call(this),Promise.reject(e)})};var ct=!1,ht={},dt=[].slice,pt=Array.isArray,ft=Object.assign||C,gt=document.documentMode,mt=document.createElement("a");N.options={url:"",root:null,params:{}},N.transforms=[M,T,D],N.params=function(t){var e=[],i=encodeURIComponent;return e.add=function(t,e){p(e)&&(e=e()),null===e&&(e=""),this.push(i(t)+"="+i(e))},F(e,t),e.join("&").replace(/%20/g,"+")},N.parse=function(t){return gt&&(mt.href=t,t=mt.href),mt.href=t,{href:mt.href,protocol:mt.protocol?mt.protocol.replace(/:$/,""):"",port:mt.port,host:mt.host,hostname:mt.hostname,pathname:"/"===mt.pathname.charAt(0)?mt.pathname:"/"+mt.pathname,search:mt.search?mt.search.replace(/^\?/,""):"",hash:mt.hash?mt.hash.replace(/^#/,""):""}};var vt=N.parse(location.href),yt="withCredentials"in new XMLHttpRequest,_t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},bt=function(){function t(e){var i=this;_t(this,t),this.map={},b(e,function(t,e){return i.append(e,t)})}return t.prototype.has=function(t){return null!==Q(this.map,t)},t.prototype.get=function(t){var e=this.map[Q(this.map,t)];return e?e[0]:null},t.prototype.getAll=function(t){return this.map[Q(this.map,t)]||[]},t.prototype.set=function(t,e){this.map[Z(Q(this.map,t)||t)]=[l(e)]},t.prototype.append=function(t,e){var i=this.getAll(t);i.length?i.push(l(e)):this.set(t,e)},t.prototype["delete"]=function(t){delete this.map[Q(this.map,t)]},t.prototype.forEach=function(t,e){var i=this;b(this.map,function(n,s){b(n,function(n){return t.call(e,n,s,i)})})},t}(),wt=function(){function t(e,i){var n=i.url,s=i.headers,r=i.status,o=i.statusText;_t(this,t),this.url=n,this.ok=r>=200&&r<300,this.status=r||0,this.statusText=o||"",this.headers=new bt(s),this.body=e,h(e)?this.bodyText=e:m(e)&&(this.bodyBlob=e,tt(e)&&(this.bodyText=J(e)))}return t.prototype.blob=function(){return y(this.bodyBlob)},t.prototype.text=function(){return y(this.bodyText)},t.prototype.json=function(){return y(this.text(),function(t){
return JSON.parse(t)})},t}(),xt=function(){function t(e){_t(this,t),this.body=null,this.params={},ft(this,e,{method:c(e.method||"GET")}),this.headers instanceof bt||(this.headers=new bt(this.headers))}return t.prototype.getUrl=function(){return N(this)},t.prototype.getBody=function(){return this.body},t.prototype.respondWith=function(t,e){return new wt(t,ft(e||{},{url:this.getUrl()}))},t}(),Ct={"X-Requested-With":"XMLHttpRequest"},kt={Accept:"application/json, text/plain, */*"},Dt={"Content-Type":"application/json;charset=utf-8"};et.options={},et.headers={put:Dt,post:Dt,patch:Dt,"delete":Dt,custom:Ct,common:kt},et.interceptors=[B,V,q,z,U,Y,L],["get","delete","head","jsonp"].forEach(function(t){et[t]=function(e,i){return this(ft(i||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){et[t]=function(e,i,n){return this(ft(n||{},{url:e,method:t,body:i}))}}),it.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},"delete":{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(st),t.exports=st},function(t,e,i){var n=i(11);"string"==typeof n&&(n=[[t.i,n,""]]),i(1)(n,{}),n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(12);"string"==typeof n&&(n=[[t.i,n,""]]),i(1)(n,{}),n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(13);"string"==typeof n&&(n=[[t.i,n,""]]),i(1)(n,{}),n.locals&&(t.exports=n.locals)},function(t,e,i){(function(e){!function(e,i){t.exports=i()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function i(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var i=Object.create(null),n=t.split(","),s=0;s<n.length;s++)i[n[s]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}function s(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}function r(t,e){return rs.call(t,e)}function o(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}function l(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i}function u(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function c(t,e){for(var i in e)t[i]=e[i];return t}function h(t){return null!==t&&"object"==typeof t}function d(t){return hs.call(t)===ds}function p(t){for(var e={},i=0;i<t.length;i++)t[i]&&c(e,t[i]);return e}function f(){}function g(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function m(t,e){return t==e||!(!h(t)||!h(e))&&JSON.stringify(t)===JSON.stringify(e)}function v(t,e){for(var i=0;i<t.length;i++)if(m(t[i],e))return i;return-1}function y(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function b(t){if(!ms.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}function w(t){return/native code/.test(t.toString())}function x(t){$s.target&&Ps.push($s.target),$s.target=t}function C(){$s.target=Ps.pop()}function k(t,e){t.__proto__=e}function D(t,e,i){for(var n=0,s=i.length;n<s;n++){var r=i[n];_(t,r,e[r])}}function T(t){if(h(t)){var e;return r(t,"__ob__")&&t.__ob__ instanceof Hs?e=t.__ob__:Fs.shouldConvert&&!Ds()&&(Array.isArray(t)||d(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new Hs(t)),e}}function S(t,e,i,n){var s=new $s,r=Object.getOwnPropertyDescriptor(t,e);if(!r||r.configurable!==!1){var o=r&&r.get,a=r&&r.set,l=T(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):i;return $s.target&&(s.depend(),l&&l.dep.depend(),Array.isArray(e)&&I(e)),e},set:function(e){var r=o?o.call(t):i;e===r||e!==e&&r!==r||(n&&n(),a?a.call(t,e):i=e,l=T(e),s.notify())}})}}function A(t,e,i){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,i),i;if(r(t,e))return void(t[e]=i);var n=t.__ob__;return t._isVue||n&&n.vmCount?void Es("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."):n?(S(n.value,e,i),n.dep.notify(),i):void(t[e]=i)}function E(t,e){var i=t.__ob__;return t._isVue||i&&i.vmCount?void Es("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):void(r(t,e)&&(delete t[e],i&&i.dep.notify()))}function I(t){for(var e=void 0,i=0,n=t.length;i<n;i++)e=t[i],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&I(e)}function O(t,e){if(!e)return t;for(var i,n,s,o=Object.keys(e),a=0;a<o.length;a++)i=o[a],n=t[i],s=e[i],r(t,i)?d(n)&&d(s)&&O(n,s):A(t,i,s);return t}function $(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function P(t,e){var i=Object.create(t||null);return e?c(i,e):i}function M(t){for(var e in t.components){var i=e.toLowerCase();(ss(i)||gs.isReservedTag(i))&&Es("Do not use built-in or reserved HTML elements as component id: "+e)}}function N(t){var e=t.props;if(e){var i,n,s,r={};if(Array.isArray(e))for(i=e.length;i--;)n=e[i],"string"==typeof n?(s=as(n),r[s]={type:null}):Es("props must be strings when using array syntax.");else if(d(e))for(var o in e)n=e[o],s=as(o),r[s]=d(n)?n:{type:n};t.props=r}}function j(t){var e=t.directives;if(e)for(var i in e){var n=e[i];"function"==typeof n&&(e[i]={bind:n,update:n})}}function F(t,e,i){function n(n){var s=Ls[n]||zs;c[n]=s(t[n],e[n],i,n)}M(e),N(e),j(e);var s=e["extends"];if(s&&(t="function"==typeof s?F(t,s.options,i):F(t,s,i)),e.mixins)for(var o=0,a=e.mixins.length;o<a;o++){var l=e.mixins[o];l.prototype instanceof Wt&&(l=l.options),t=F(t,l,i)}var u,c={};for(u in t)n(u);for(u in e)r(t,u)||n(u);return c}function H(t,e,i,n){if("string"==typeof i){var s=t[e];if(r(s,i))return s[i];var o=as(i);if(r(s,o))return s[o];var a=ls(o);if(r(s,a))return s[a];var l=s[i]||s[o]||s[a];return n&&!l&&Es("Failed to resolve "+e.slice(0,-1)+": "+i,t),l}}function L(t,e,i,n){var s=e[t],o=!r(i,t),a=i[t];if(B(s.type)&&(o&&!r(s,"default")?a=!1:""!==a&&a!==cs(t)||(a=!0)),void 0===a){a=R(n,s,t);var l=Fs.shouldConvert;Fs.shouldConvert=!0,T(a),Fs.shouldConvert=l}return z(s,t,a,n,o),a}function R(t,e,i){if(r(e,"default")){var n=e["default"];return h(n)&&Es('Invalid default value for prop "'+i+'": Props with type Object/Array must use a factory function to return the default value.',t),t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t[i]?t[i]:"function"==typeof n&&e.type!==Function?n.call(t):n}}function z(t,e,i,n,s){if(t.required&&s)return void Es('Missing required prop: "'+e+'"',n);if(null!=i||t.required){var r=t.type,o=!r||r===!0,a=[];if(r){Array.isArray(r)||(r=[r]);for(var l=0;l<r.length&&!o;l++){var u=W(i,r[l]);a.push(u.expectedType),o=u.valid}}if(!o)return void Es('Invalid prop: type check failed for prop "'+e+'". Expected '+a.map(ls).join(", ")+", got "+Object.prototype.toString.call(i).slice(8,-1)+".",n);var c=t.validator;c&&(c(i)||Es('Invalid prop: custom validator check failed for prop "'+e+'".',n))}}function W(t,e){var i,n=U(e);return i="String"===n?typeof t==(n="string"):"Number"===n?typeof t==(n="number"):"Boolean"===n?typeof t==(n="boolean"):"Function"===n?typeof t==(n="function"):"Object"===n?d(t):"Array"===n?Array.isArray(t):t instanceof e,{valid:i,expectedType:n}}function U(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e&&e[1]}function B(t){if(!Array.isArray(t))return"Boolean"===U(t);for(var e=0,i=t.length;e<i;e++)if("Boolean"===U(t[e]))return!0;return!1}function q(){Ks.length=0,Gs={},Qs={},Zs=Js=!1}function Y(){for(Js=!0,Ks.sort(function(t,e){return t.id-e.id}),tr=0;tr<Ks.length;tr++){var t=Ks[tr],e=t.id;if(Gs[e]=null,t.run(),null!=Gs[e]&&(Qs[e]=(Qs[e]||0)+1,Qs[e]>gs._maxUpdateCount)){Es("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}}Ts&&gs.devtools&&Ts.emit("flush"),q()}function V(t){var e=t.id;if(null==Gs[e]){if(Gs[e]=!0,Js){for(var i=Ks.length-1;i>=0&&Ks[i].id>t.id;)i--;Ks.splice(Math.max(i,tr)+1,0,t)}else Ks.push(t);Zs||(Zs=!0,Ss(Y))}}function X(t){nr.clear(),K(t,nr)}function K(t,e){var i,n,s=Array.isArray(t);if((s||h(t))&&Object.isExtensible(t)){if(t.__ob__){var r=t.__ob__.dep.id;if(e.has(r))return;e.add(r)}if(s)for(i=t.length;i--;)K(t[i],e);else for(n=Object.keys(t),i=n.length;i--;)K(t[n[i]],e)}}function G(t){t._watchers=[],Q(t),et(t),Z(t),J(t),it(t)}function Q(t){var e=t.$options.props;if(e){var i=t.$options.propsData||{},n=t.$options._propKeys=Object.keys(e),s=!t.$parent;Fs.shouldConvert=s;for(var r=function(s){var r=n[s];sr[r]&&Es('"'+r+'" is a reserved attribute and cannot be used as component prop.',t),S(t,r,L(r,e,i,t),function(){t.$parent&&!Fs.isSettingProps&&Es("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+r+'"',t)})},o=0;o<n.length;o++)r(o);Fs.shouldConvert=!0}}function Z(t){var e=t.$options.data;e=t._data="function"==typeof e?e.call(t):e||{},d(e)||(e={},Es("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var i=Object.keys(e),n=t.$options.props,s=i.length;s--;)n&&r(n,i[s])?Es('The data property "'+i[s]+'" is already declared as a prop. Use prop default value instead.',t):rt(t,i[s]);T(e),e.__ob__&&e.__ob__.vmCount++}function J(t){var e=t.$options.computed;if(e)for(var i in e){var n=e[i];"function"==typeof n?(rr.get=tt(n,t),rr.set=f):(rr.get=n.get?n.cache!==!1?tt(n.get,t):l(n.get,t):f,rr.set=n.set?l(n.set,t):f),Object.defineProperty(t,i,rr)}}function tt(t,e){var i=new ir(e,t,f,{lazy:!0});return function(){return i.dirty&&i.evaluate(),$s.target&&i.depend(),i.value}}function et(t){var e=t.$options.methods;if(e)for(var i in e)t[i]=null==e[i]?f:l(e[i],t),null==e[i]&&Es('method "'+i+'" has an undefined value in the component definition. Did you reference the function correctly?',t)}function it(t){var e=t.$options.watch;if(e)for(var i in e){var n=e[i];if(Array.isArray(n))for(var s=0;s<n.length;s++)nt(t,i,n[s]);else nt(t,i,n)}}function nt(t,e,i){var n;d(i)&&(n=i,i=i.handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,n)}function st(t){var e={};e.get=function(){return this._data},e.set=function(t){Es("Avoid replacing instance root $data. Use nested data properties instead.",this)},Object.defineProperty(t.prototype,"$data",e),t.prototype.$set=A,t.prototype.$delete=E,t.prototype.$watch=function(t,e,i){var n=this;i=i||{},i.user=!0;var s=new ir(n,t,e,i);return i.immediate&&e.call(n,s.value),function(){s.teardown()}}}function rt(t,e){y(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(i){t._data[e]=i}})}function ot(t){return new or((void 0),(void 0),(void 0),String(t))}function at(t){var e=new or(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isCloned=!0,e}function lt(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=at(t[i]);return e}function ut(t){var e=t.$options,i=e.parent;if(i&&!e["abstract"]){for(;i.$options["abstract"]&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function ct(t){t.prototype._mount=function(t,e){var i=this;return i.$el=t,i.$options.render||(i.$options.render=ar,i.$options.template&&"#"!==i.$options.template.charAt(0)?Es("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",i):Es("Failed to mount component: template or render function not defined.",i)),ht(i,"beforeMount"),i._watcher=new ir(i,function(){i._update(i._render(),e)},f),e=!1,null==i.$vnode&&(i._isMounted=!0,ht(i,"mounted")),i},t.prototype._update=function(t,e){var i=this;i._isMounted&&ht(i,"beforeUpdate");var n=i.$el,s=i._vnode,r=lr;lr=i,i._vnode=t,s?i.$el=i.__patch__(s,t):i.$el=i.__patch__(i.$el,t,e,!1,i.$options._parentElm,i.$options._refElm),lr=r,n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el),i._isMounted&&ht(i,"updated")},t.prototype._updateFromParent=function(t,e,i,n){var s=this,r=!(!s.$options._renderChildren&&!n);if(s.$options._parentVnode=i,s.$vnode=i,s._vnode&&(s._vnode.parent=i),s.$options._renderChildren=n,t&&s.$options.props){Fs.shouldConvert=!1,Fs.isSettingProps=!0;for(var o=s.$options._propKeys||[],a=0;a<o.length;a++){var l=o[a];s[l]=L(l,s.$options.props,t,s)}Fs.shouldConvert=!0,Fs.isSettingProps=!1,s.$options.propsData=t}if(e){var u=s.$options._parentListeners;s.$options._parentListeners=e,s._updateListeners(e,u)}r&&(s.$slots=jt(n,i.context),s.$forceUpdate())},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){ht(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options["abstract"]||s(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,ht(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.__patch__(t._vnode,null)}}}function ht(t,e){var i=t.$options[e];if(i)for(var n=0,s=i.length;n<s;n++)i[n].call(t);t.$emit("hook:"+e)}function dt(t,e,i,n,s){if(t){var r=i.$options._base;if(h(t)&&(t=r.extend(t)),"function"!=typeof t)return void Es("Invalid Component definition: "+String(t),i);if(!t.cid)if(t.resolved)t=t.resolved;else if(t=_t(t,r,function(){i.$forceUpdate()}),!t)return;zt(t),e=e||{};var o=bt(e,t);if(t.options.functional)return pt(t,o,e,i,n);var a=e.on;e.on=e.nativeOn,t.options["abstract"]&&(e={}),xt(e);var l=t.options.name||s,u=new or("vue-component-"+t.cid+(l?"-"+l:""),e,(void 0),(void 0),(void 0),i,{Ctor:t,propsData:o,listeners:a,tag:s,children:n});return u}}function pt(t,e,i,n,s){var r={},o=t.options.props;if(o)for(var a in o)r[a]=L(a,o,e);var l=Object.create(n),u=function(t,e,i,n){return Ot(l,t,e,i,n,!0)},c=t.options.render.call(null,u,{props:r,data:i,parent:n,children:s,slots:function(){return jt(s,n)}});return c instanceof or&&(c.functionalContext=n,i.slot&&((c.data||(c.data={})).slot=i.slot)),c}function ft(t,e,i,n){var s=t.componentOptions,r={_isComponent:!0,parent:e,propsData:s.propsData,_componentTag:s.tag,_parentVnode:t,_parentListeners:s.listeners,_renderChildren:s.children,_parentElm:i||null,_refElm:n||null},o=t.data.inlineTemplate;return o&&(r.render=o.render,r.staticRenderFns=o.staticRenderFns),new s.Ctor(r)}function gt(t,e,i,n){if(!t.child||t.child._isDestroyed){var s=t.child=ft(t,lr,i,n);s.$mount(e?t.elm:void 0,e)}else if(t.data.keepAlive){var r=t;mt(r,r)}}function mt(t,e){var i=e.componentOptions,n=e.child=t.child;n._updateFromParent(i.propsData,i.listeners,e,i.children)}function vt(t){t.child._isMounted||(t.child._isMounted=!0,ht(t.child,"mounted")),t.data.keepAlive&&(t.child._inactive=!1,ht(t.child,"activated"))}function yt(t){t.child._isDestroyed||(t.data.keepAlive?(t.child._inactive=!0,ht(t.child,"deactivated")):t.child.$destroy())}function _t(t,e,i){if(!t.requested){t.requested=!0;var n=t.pendingCallbacks=[i],s=!0,r=function(i){if(h(i)&&(i=e.extend(i)),t.resolved=i,!s)for(var r=0,o=n.length;r<o;r++)n[r](i)},o=function(e){Es("Failed to resolve async component: "+String(t)+(e?"\nReason: "+e:""))},a=t(r,o);return a&&"function"==typeof a.then&&!t.resolved&&a.then(r,o),s=!1,t.resolved}t.pendingCallbacks.push(i)}function bt(t,e){var i=e.options.props;if(i){var n={},s=t.attrs,r=t.props,o=t.domProps;if(s||r||o)for(var a in i){var l=cs(a);wt(n,r,a,l,!0)||wt(n,s,a,l)||wt(n,o,a,l)}return n}}function wt(t,e,i,n,s){if(e){if(r(e,i))return t[i]=e[i],s||delete e[i],!0;if(r(e,n))return t[i]=e[n],s||delete e[n],!0}return!1}function xt(t){t.hook||(t.hook={});for(var e=0;e<cr.length;e++){var i=cr[e],n=t.hook[i],s=ur[i];t.hook[i]=n?Ct(s,n):s}}function Ct(t,e){return function(i,n,s,r){t(i,n,s,r),e(i,n,s,r)}}function kt(t,e,i,n){n+=e;var s=t.__injected||(t.__injected={});if(!s[n]){s[n]=!0;var r=t[e];r?t[e]=function(){r.apply(this,arguments),i.apply(this,arguments)}:t[e]=i}}function Dt(t,e,i,n,s){var r,o,a,l,u,c,h;for(r in t)if(o=t[r],a=e[r],o)if(a){if(o!==a)if(Array.isArray(a)){a.length=o.length;for(var d=0;d<a.length;d++)a[d]=o[d];t[r]=a}else a.fn=o,t[r]=a}else h="~"===r.charAt(0),u=h?r.slice(1):r,c="!"===u.charAt(0),u=c?u.slice(1):u,Array.isArray(o)?i(u,o.invoker=Tt(o),h,c):(o.invoker||(l=o,o=t[r]={},o.fn=l,o.invoker=St(o)),i(u,o.invoker,h,c));else Es('Invalid handler for event "'+r+'": got '+String(o),s);for(r in e)t[r]||(h="~"===r.charAt(0),u=h?r.slice(1):r,c="!"===u.charAt(0),u=c?u.slice(1):u,n(u,e[r].invoker,c))}function Tt(t){return function(e){for(var i=arguments,n=1===arguments.length,s=0;s<t.length;s++)n?t[s](e):t[s].apply(null,i)}}function St(t){return function(e){var i=1===arguments.length;i?t.fn(e):t.fn.apply(null,arguments)}}function At(t){return o(t)?[ot(t)]:Array.isArray(t)?Et(t):void 0}function Et(t,e){var i,n,s,r=[];for(i=0;i<t.length;i++)n=t[i],null!=n&&"boolean"!=typeof n&&(s=r[r.length-1],Array.isArray(n)?r.push.apply(r,Et(n,(e||"")+"_"+i)):o(n)?s&&s.text?s.text+=String(n):""!==n&&r.push(ot(n)):n.text&&s&&s.text?r[r.length-1]=ot(s.text+n.text):(n.tag&&null==n.key&&null!=e&&(n.key="__vlist"+e+"_"+i+"__"),r.push(n)));return r}function It(t){return t&&t.filter(function(t){return t&&t.componentOptions})[0]}function Ot(t,e,i,n,s,r){return(Array.isArray(i)||o(i))&&(s=n,n=i,i=void 0),r&&(s=!0),$t(t,e,i,n,s)}function $t(t,e,i,n,s){if(i&&i.__ob__)return Es("Avoid using observed data object as vnode data: "+JSON.stringify(i)+"\nAlways create fresh vnode data objects in each render!",t),ar();if(!e)return ar();Array.isArray(n)&&"function"==typeof n[0]&&(i=i||{},i.scopedSlots={"default":n[0]},n.length=0),s&&(n=At(n));var r,o;if("string"==typeof e){var a;o=gs.getTagNamespace(e),gs.isReservedTag(e)?r=new or(gs.parsePlatformTagName(e),i,n,(void 0),(void 0),t):(a=H(t.$options,"components",e))?r=dt(a,i,t,n,e):(o="foreignObject"===e?"xhtml":o,r=new or(e,i,n,(void 0),(void 0),t))}else r=dt(e,i,t,n);return r?(o&&Pt(r,o),r):ar()}function Pt(t,e){if(t.ns=e,t.children)for(var i=0,n=t.children.length;i<n;i++){var s=t.children[i];s.tag&&!s.ns&&Pt(s,e)}}function Mt(t){t.$vnode=null,t._vnode=null,t._staticTrees=null;var e=t.$options._parentVnode,i=e&&e.context;t.$slots=jt(t.$options._renderChildren,i),t.$scopedSlots={},t._c=function(e,i,n,s){return Ot(t,e,i,n,s,!1)},t.$createElement=function(e,i,n,s){return Ot(t,e,i,n,s,!0)},t.$options.el&&t.$mount(t.$options.el)}function Nt(e){function n(t,e,i){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!=typeof t[n]&&s(t[n],e+"_"+n,i);else s(t,e,i)}function s(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}e.prototype.$nextTick=function(t){return Ss(t,this)},e.prototype._render=function(){var t=this,e=t.$options,i=e.render,n=e.staticRenderFns,s=e._parentVnode;if(t._isMounted)for(var r in t.$slots)t.$slots[r]=lt(t.$slots[r]);s&&s.data.scopedSlots&&(t.$scopedSlots=s.data.scopedSlots),n&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=s;var o;try{o=i.call(t._renderProxy,t.$createElement)}catch(a){if(!gs.errorHandler)throw Es("Error when rendering "+As(t)+":"),a;gs.errorHandler.call(null,a,t),o=t._vnode}return o instanceof or||(Array.isArray(o)&&Es("Multiple root nodes returned from render function. Render function should return a single root node.",t),o=ar()),o.parent=s,o},e.prototype._s=t,e.prototype._v=ot,e.prototype._n=i,e.prototype._e=ar,e.prototype._q=m,e.prototype._i=v,e.prototype._m=function(t,e){var i=this._staticTrees[t];return i&&!e?Array.isArray(i)?lt(i):at(i):(i=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),n(i,"__static__"+t,!1),i)},e.prototype._o=function(t,e,i){return n(t,"__once__"+e+(i?"_"+i:""),!0),t},e.prototype._f=function(t){return H(this.$options,"filters",t,!0)||fs},e.prototype._l=function(t,e){var i,n,s,r,o;if(Array.isArray(t))for(i=new Array(t.length),n=0,s=t.length;n<s;n++)i[n]=e(t[n],n);else if("number"==typeof t)for(i=new Array(t),n=0;n<t;n++)i[n]=e(n+1,n);else if(h(t))for(r=Object.keys(t),i=new Array(r.length),n=0,s=r.length;n<s;n++)o=r[n],i[n]=e(t[o],o,n);return i},e.prototype._t=function(t,e,i){var n=this.$scopedSlots[t];if(n)return n(i||{})||e;var s=this.$slots[t];return s&&(s._rendered&&Es('Duplicate presence of slot "'+t+'" found in the same render tree - this will likely cause render errors.',this),s._rendered=!0),s||e},e.prototype._b=function(t,e,i,n){if(i)if(h(i)){Array.isArray(i)&&(i=p(i));for(var s in i)if("class"===s||"style"===s)t[s]=i[s];else{var r=n||gs.mustUseProp(e,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={});r[s]=i[s]}}else Es("v-bind without argument expects an Object or Array value",this);return t},e.prototype._k=function(t,e,i){var n=gs.keyCodes[e]||i;return Array.isArray(n)?n.indexOf(t)===-1:n!==t}}function jt(t,e){var i={};if(!t)return i;for(var n,s,r=[],o=0,a=t.length;o<a;o++)if(s=t[o],(s.context===e||s.functionalContext===e)&&s.data&&(n=s.data.slot)){var l=i[n]||(i[n]=[]);"template"===s.tag?l.push.apply(l,s.children):l.push(s)}else r.push(s);return r.length&&(1!==r.length||" "!==r[0].text&&!r[0].isComment)&&(i["default"]=r),i}function Ft(t){t._events=Object.create(null);var e=t.$options._parentListeners,i=function(e,i,n){n?t.$once(e,i):t.$on(e,i)},n=l(t.$off,t);t._updateListeners=function(e,s){Dt(e,s||{},i,n,t)},e&&t._updateListeners(e)}function Ht(t){t.prototype.$on=function(t,e){var i=this;return(i._events[t]||(i._events[t]=[])).push(e),i},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(n,arguments)}var n=this;return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var i=this;if(!arguments.length)return i._events=Object.create(null),i;var n=i._events[t];if(!n)return i;if(1===arguments.length)return i._events[t]=null,i;for(var s,r=n.length;r--;)if(s=n[r],s===e||s.fn===e){n.splice(r,1);break}return i},t.prototype.$emit=function(t){var e=this,i=e._events[t];if(i){i=i.length>1?u(i):i;for(var n=u(arguments,1),s=0,r=i.length;s<r;s++)i[s].apply(e,n)}return e}}function Lt(t){t.prototype._init=function(t){var e=this;e._uid=hr++,e._isVue=!0,t&&t._isComponent?Rt(e,t):e.$options=F(zt(e.constructor),t||{},e),Rs(e),e._self=e,ut(e),Ft(e),ht(e,"beforeCreate"),G(e),ht(e,"created"),Mt(e)}}function Rt(t,e){var i=t.$options=Object.create(t.constructor.options);i.parent=e.parent,i.propsData=e.propsData,i._parentVnode=e._parentVnode,i._parentListeners=e._parentListeners,i._renderChildren=e._renderChildren,i._componentTag=e._componentTag,i._parentElm=e._parentElm,i._refElm=e._refElm,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}function zt(t){var e=t.options;if(t["super"]){var i=t["super"].options,n=t.superOptions,s=t.extendOptions;i!==n&&(t.superOptions=i,s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._scopeId=e._scopeId,e=t.options=F(i,s),e.name&&(e.components[e.name]=t))}return e}function Wt(t){this instanceof Wt||Es("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function Ut(t){t.use=function(t){if(!t.installed){var e=u(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}function Bt(t){t.mixin=function(t){this.options=F(this.options,t)}}function qt(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,s=t._Ctor||(t._Ctor={});if(s[n])return s[n];var r=t.name||i.options.name;/^[a-zA-Z][\w-]*$/.test(r)||Es('Invalid component name: "'+r+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.');var o=function(t){this._init(t)};return o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.cid=e++,o.options=F(i.options,t),o["super"]=i,o.extend=i.extend,o.mixin=i.mixin,o.use=i.use,gs._assetTypes.forEach(function(t){o[t]=i[t]}),r&&(o.options.components[r]=o),o.superOptions=i.options,o.extendOptions=t,s[n]=o,o}}function Yt(t){gs._assetTypes.forEach(function(e){t[e]=function(t,i){return i?("component"===e&&gs.isReservedTag(t)&&Es("Do not use built-in or reserved HTML elements as component id: "+t),"component"===e&&d(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}function Vt(t,e){return"string"==typeof t?t.split(",").indexOf(e)>-1:t.test(e)}function Xt(t){var e={};e.get=function(){return gs},e.set=function(){Es("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util=Ws,t.set=A,t["delete"]=E,t.nextTick=Ss,t.options=Object.create(null),gs._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,c(t.options.components,fr),Ut(t),Bt(t),qt(t),Yt(t)}function Kt(t){for(var e=t.data,i=t,n=t;n.child;)n=n.child._vnode,n.data&&(e=Gt(n.data,e));for(;i=i.parent;)i.data&&(e=Gt(e,i.data));return Qt(e)}function Gt(t,e){return{staticClass:Zt(t.staticClass,e.staticClass),"class":t["class"]?[t["class"],e["class"]]:e["class"]}}function Qt(t){var e=t["class"],i=t.staticClass;return i||e?Zt(i,Jt(e)):""}function Zt(t,e){return t?e?t+" "+e:t:e||""}function Jt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var i,n=0,s=t.length;n<s;n++)t[n]&&(i=Jt(t[n]))&&(e+=i+" ");return e.slice(0,-1)}if(h(t)){for(var r in t)t[r]&&(e+=r+" ");return e.slice(0,-1)}return e}function te(t){return Sr(t)?"svg":"math"===t?"math":void 0}function ee(t){if(!ys)return!0;if(Er(t))return!1;if(t=t.toLowerCase(),null!=Ir[t])return Ir[t];var e=document.createElement(t);return t.indexOf("-")>-1?Ir[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ir[t]=/HTMLUnknownElement/.test(e.toString())}function ie(t){if("string"==typeof t){var e=t;if(t=document.querySelector(t),!t)return Es("Cannot find element: "+e),document.createElement("div")}return t}function ne(t,e){var i=document.createElement(t);return"select"!==t?i:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&i.setAttribute("multiple","multiple"),i)}function se(t,e){return document.createElementNS(Dr[t],e)}function re(t){return document.createTextNode(t)}function oe(t){return document.createComment(t)}function ae(t,e,i){t.insertBefore(e,i)}function le(t,e){t.removeChild(e)}function ue(t,e){t.appendChild(e)}function ce(t){return t.parentNode}function he(t){return t.nextSibling}function de(t){return t.tagName}function pe(t,e){t.textContent=e}function fe(t,e,i){t.setAttribute(e,i)}function ge(t,e){var i=t.data.ref;if(i){var n=t.context,r=t.child||t.elm,o=n.$refs;e?Array.isArray(o[i])?s(o[i],r):o[i]===r&&(o[i]=void 0):t.data.refInFor?Array.isArray(o[i])&&o[i].indexOf(r)<0?o[i].push(r):o[i]=[r]:o[i]=r}}function me(t){return null==t}function ve(t){return null!=t}function ye(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function _e(t,e,i){var n,s,r={};for(n=e;n<=i;++n)s=t[n].key,ve(s)&&(r[s]=n);return r}function be(e){function i(t){return new or(E.tagName(t).toLowerCase(),{},[],(void 0),t)}function s(t,e){function i(){0===--i.listeners&&r(t)}return i.listeners=e,i}function r(t){var e=E.parentNode(t);e&&E.removeChild(e,t)}function a(t,e,i,n,s){if(t.isRootInsert=!s,!l(t,e,i,n)){var r=t.data,o=t.children,a=t.tag;ve(a)?(r&&r.pre&&I++,I||t.ns||gs.ignoredElements&&gs.ignoredElements.indexOf(a)>-1||!gs.isUnknownElement(a)||Es("Unknown custom element: <"+a+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?E.createElementNS(t.ns,a):E.createElement(a,t),g(t),h(t,o,e),ve(r)&&p(t,e),c(i,t.elm,n),r&&r.pre&&I--):t.isComment?(t.elm=E.createComment(t.text),c(i,t.elm,n)):(t.elm=E.createTextNode(t.text),c(i,t.elm,n))}}function l(t,e,i,n){var s=t.data;if(ve(s)){var r=ve(t.child)&&s.keepAlive;if(ve(s=s.hook)&&ve(s=s.init)&&s(t,!1,i,n),ve(t.child))return f(t,e),r&&u(t,e,i,n),!0}}function u(t,e,i,n){for(var s,r=t;r.child;)if(r=r.child._vnode,ve(s=r.data)&&ve(s=s.transition)){for(s=0;s<S.activate.length;++s)S.activate[s](Pr,r);e.push(r);break}c(i,t.elm,n)}function c(t,e,i){t&&(i?E.insertBefore(t,e,i):E.appendChild(t,e))}function h(t,e,i){if(Array.isArray(e))for(var n=0;n<e.length;++n)a(e[n],i,t.elm,null,!0);else o(t.text)&&E.appendChild(t.elm,E.createTextNode(t.text))}function d(t){for(;t.child;)t=t.child._vnode;return ve(t.tag)}function p(t,e){for(var i=0;i<S.create.length;++i)S.create[i](Pr,t);D=t.data.hook,ve(D)&&(D.create&&D.create(Pr,t),D.insert&&e.push(t))}function f(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.child.$el,d(t)?(p(t,e),g(t)):(ge(t),e.push(t))}function g(t){var e;ve(e=t.context)&&ve(e=e.$options._scopeId)&&E.setAttribute(t.elm,e,""),ve(e=lr)&&e!==t.context&&ve(e=e.$options._scopeId)&&E.setAttribute(t.elm,e,"")}function m(t,e,i,n,s,r){for(;n<=s;++n)a(i[n],r,t,e)}function v(t){var e,i,n=t.data;if(ve(n))for(ve(e=n.hook)&&ve(e=e.destroy)&&e(t),e=0;e<S.destroy.length;++e)S.destroy[e](t);if(ve(e=t.children))for(i=0;i<t.children.length;++i)v(t.children[i])}function y(t,e,i,n){for(;i<=n;++i){var s=e[i];ve(s)&&(ve(s.tag)?(_(s),v(s)):E.removeChild(t,s.elm))}}function _(t,e){if(e||ve(t.data)){var i=S.remove.length+1;for(e?e.listeners+=i:e=s(t.elm,i),ve(D=t.child)&&ve(D=D._vnode)&&ve(D.data)&&_(D,e),D=0;D<S.remove.length;++D)S.remove[D](t,e);ve(D=t.data.hook)&&ve(D=D.remove)?D(t,e):e()}else r(t.elm)}function b(t,e,i,n,s){for(var r,o,l,u,c=0,h=0,d=e.length-1,p=e[0],f=e[d],g=i.length-1,v=i[0],_=i[g],b=!s;c<=d&&h<=g;)me(p)?p=e[++c]:me(f)?f=e[--d]:ye(p,v)?(w(p,v,n),p=e[++c],v=i[++h]):ye(f,_)?(w(f,_,n),f=e[--d],_=i[--g]):ye(p,_)?(w(p,_,n),b&&E.insertBefore(t,p.elm,E.nextSibling(f.elm)),p=e[++c],_=i[--g]):ye(f,v)?(w(f,v,n),b&&E.insertBefore(t,f.elm,p.elm),f=e[--d],v=i[++h]):(me(r)&&(r=_e(e,c,d)),o=ve(v.key)?r[v.key]:null,me(o)?(a(v,n,t,p.elm),v=i[++h]):(l=e[o],l||Es("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),ye(l,v)?(w(l,v,n),e[o]=void 0,b&&E.insertBefore(t,v.elm,p.elm),v=i[++h]):(a(v,n,t,p.elm),v=i[++h])));c>d?(u=me(i[g+1])?null:i[g+1].elm,m(t,u,i,h,g,n)):h>g&&y(t,e,c,d)}function w(t,e,i,n){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.child=t.child);var s,r=e.data,o=ve(r);o&&ve(s=r.hook)&&ve(s=s.prepatch)&&s(t,e);var a=e.elm=t.elm,l=t.children,u=e.children;if(o&&d(e)){for(s=0;s<S.update.length;++s)S.update[s](t,e);ve(s=r.hook)&&ve(s=s.update)&&s(t,e)}me(e.text)?ve(l)&&ve(u)?l!==u&&b(a,l,u,i,n):ve(u)?(ve(t.text)&&E.setTextContent(a,""),m(a,null,u,0,u.length-1,i)):ve(l)?y(a,l,0,l.length-1):ve(t.text)&&E.setTextContent(a,""):t.text!==e.text&&E.setTextContent(a,e.text),o&&ve(s=r.hook)&&ve(s=s.postpatch)&&s(t,e)}}function x(t,e,i){if(i&&t.parent)t.parent.data.pendingInsert=e;else for(var n=0;n<e.length;++n)e[n].data.hook.insert(e[n])}function C(t,e,i){if(!k(t,e))return!1;e.elm=t;var n=e.tag,s=e.data,r=e.children;if(ve(s)&&(ve(D=s.hook)&&ve(D=D.init)&&D(e,!0),ve(D=e.child)))return f(e,i),!0;if(ve(n)){if(ve(r))if(t.hasChildNodes()){for(var o=!0,a=t.firstChild,l=0;l<r.length;l++){if(!a||!C(a,r[l],i)){o=!1;break}a=a.nextSibling}if(!o||a)return"undefined"==typeof console||O||(O=!0),!1}else h(e,r,i);if(ve(s))for(var u in s)if(!$(u)){p(e,i);break}}return!0}function k(e,i){return i.tag?0===i.tag.indexOf("vue-component")||i.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):t(i.text)===e.data}var D,T,S={},A=e.modules,E=e.nodeOps;for(D=0;D<Mr.length;++D)for(S[Mr[D]]=[],T=0;T<A.length;++T)void 0!==A[T][Mr[D]]&&S[Mr[D]].push(A[T][Mr[D]]);var I=0,O=!1,$=n("attrs,style,class,staticClass,staticStyle,key");return function(t,e,n,s,r,o){if(!e)return void(t&&v(t));var l,u,c=!1,h=[];
if(t){var p=ve(t.nodeType);if(!p&&ye(t,e))w(t,e,h,s);else{if(p){if(1===t.nodeType&&t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),n=!0),n){if(C(t,e,h))return x(e,h,!0),t;Es("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}t=i(t)}if(l=t.elm,u=E.parentNode(l),a(e,h,u,E.nextSibling(l)),e.parent){for(var f=e.parent;f;)f.elm=e.elm,f=f.parent;if(d(e))for(var g=0;g<S.create.length;++g)S.create[g](Pr,e.parent)}null!==u?y(u,[t],0,0):ve(t.tag)&&v(t)}}else c=!0,a(e,h,r,o);return x(e,h,c),e.elm}}function we(t,e){(t.data.directives||e.data.directives)&&xe(t,e)}function xe(t,e){var i,n,s,r=t===Pr,o=Ce(t.data.directives,t.context),a=Ce(e.data.directives,e.context),l=[],u=[];for(i in a)n=o[i],s=a[i],n?(s.oldValue=n.value,De(s,"update",e,t),s.def&&s.def.componentUpdated&&u.push(s)):(De(s,"bind",e,t),s.def&&s.def.inserted&&l.push(s));if(l.length){var c=function(){for(var i=0;i<l.length;i++)De(l[i],"inserted",e,t)};r?kt(e.data.hook||(e.data.hook={}),"insert",c,"dir-insert"):c()}if(u.length&&kt(e.data.hook||(e.data.hook={}),"postpatch",function(){for(var i=0;i<u.length;i++)De(u[i],"componentUpdated",e,t)},"dir-postpatch"),!r)for(i in o)a[i]||De(o[i],"unbind",t)}function Ce(t,e){var i=Object.create(null);if(!t)return i;var n,s;for(n=0;n<t.length;n++)s=t[n],s.modifiers||(s.modifiers=jr),i[ke(s)]=s,s.def=H(e.$options,"directives",s.name,!0);return i}function ke(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function De(t,e,i,n){var s=t.def&&t.def[e];s&&s(i.elm,t,i,n)}function Te(t,e){if(t.data.attrs||e.data.attrs){var i,n,s,r=e.elm,o=t.data.attrs||{},a=e.data.attrs||{};a.__ob__&&(a=e.data.attrs=c({},a));for(i in a)n=a[i],s=o[i],s!==n&&Se(r,i,n);ws&&a.value!==o.value&&Se(r,"value",a.value);for(i in o)null==a[i]&&(xr(i)?r.removeAttributeNS(wr,Cr(i)):_r(i)||r.removeAttribute(i))}}function Se(t,e,i){br(e)?kr(i)?t.removeAttribute(e):t.setAttribute(e,e):_r(e)?t.setAttribute(e,kr(i)||"false"===i?"false":"true"):xr(e)?kr(i)?t.removeAttributeNS(wr,Cr(e)):t.setAttributeNS(wr,e,i):kr(i)?t.removeAttribute(e):t.setAttribute(e,i)}function Ae(t,e){var i=e.elm,n=e.data,s=t.data;if(n.staticClass||n["class"]||s&&(s.staticClass||s["class"])){var r=Kt(e),o=i._transitionClasses;o&&(r=Zt(r,Jt(o))),r!==i._prevClass&&(i.setAttribute("class",r),i._prevClass=r)}}function Ee(t,e,i,n){if(i){var s=e;e=function(i){Ie(t,e,n),1===arguments.length?s(i):s.apply(null,arguments)}}gr.addEventListener(t,e,n)}function Ie(t,e,i){gr.removeEventListener(t,e,i)}function Oe(t,e){if(t.data.on||e.data.on){var i=e.data.on||{},n=t.data.on||{};gr=e.elm,Dt(i,n,Ee,Ie,e.context)}}function $e(t,e){if(t.data.domProps||e.data.domProps){var i,n,s=e.elm,r=t.data.domProps||{},o=e.data.domProps||{};o.__ob__&&(o=e.data.domProps=c({},o));for(i in r)null==o[i]&&(s[i]="");for(i in o)if(n=o[i],"textContent"!==i&&"innerHTML"!==i||(e.children&&(e.children.length=0),n!==r[i]))if("value"===i){s._value=n;var a=null==n?"":String(n);!s.composing&&(document.activeElement!==s&&s.value!==a||Pe(e,a))&&(s.value=a)}else s[i]=n}}function Pe(t,e){var n=t.elm.value,s=t.elm._vModifiers;return s&&s.number||"number"===t.elm.type?i(n)!==i(e):s&&s.trim?n.trim()!==e.trim():n!==e}function Me(t){var e=Ne(t.style);return t.staticStyle?c(t.staticStyle,e):e}function Ne(t){return Array.isArray(t)?p(t):"string"==typeof t?Wr(t):t}function je(t,e){var i,n={};if(e)for(var s=t;s.child;)s=s.child._vnode,s.data&&(i=Me(s.data))&&c(n,i);(i=Me(t.data))&&c(n,i);for(var r=t;r=r.parent;)r.data&&(i=Me(r.data))&&c(n,i);return n}function Fe(t,e){var i=e.data,n=t.data;if(i.staticStyle||i.style||n.staticStyle||n.style){var s,r,o=e.elm,a=t.data.staticStyle,l=t.data.style||{},u=a||l,h=Ne(e.data.style)||{};e.data.style=h.__ob__?c({},h):h;var d=je(e,!0);for(r in u)null==d[r]&&qr(o,r,"");for(r in d)s=d[r],s!==u[r]&&qr(o,r,null==s?"":s)}}function He(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+t.getAttribute("class")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Le(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var i=" "+t.getAttribute("class")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");t.setAttribute("class",i.trim())}}function Re(t){io(function(){io(t)})}function ze(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),He(t,e)}function We(t,e){t._transitionClasses&&s(t._transitionClasses,e),Le(t,e)}function Ue(t,e,i){var n=Be(t,e),s=n.type,r=n.timeout,o=n.propCount;if(!s)return i();var a=s===Gr?Jr:eo,l=0,u=function(){t.removeEventListener(a,c),i()},c=function(e){e.target===t&&++l>=o&&u()};setTimeout(function(){l<o&&u()},r+1),t.addEventListener(a,c)}function Be(t,e){var i,n=window.getComputedStyle(t),s=n[Zr+"Delay"].split(", "),r=n[Zr+"Duration"].split(", "),o=qe(s,r),a=n[to+"Delay"].split(", "),l=n[to+"Duration"].split(", "),u=qe(a,l),c=0,h=0;e===Gr?o>0&&(i=Gr,c=o,h=r.length):e===Qr?u>0&&(i=Qr,c=u,h=l.length):(c=Math.max(o,u),i=c>0?o>u?Gr:Qr:null,h=i?i===Gr?r.length:l.length:0);var d=i===Gr&&no.test(n[Zr+"Property"]);return{type:i,timeout:c,propCount:h,hasTransform:d}}function qe(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,i){return Ye(e)+Ye(t[i])}))}function Ye(t){return 1e3*Number(t.slice(0,-1))}function Ve(t,e){var i=t.elm;i._leaveCb&&(i._leaveCb.cancelled=!0,i._leaveCb());var n=Ke(t.data.transition);if(n&&!i._enterCb&&1===i.nodeType){for(var s=n.css,r=n.type,o=n.enterClass,a=n.enterActiveClass,l=n.appearClass,u=n.appearActiveClass,c=n.beforeEnter,h=n.enter,d=n.afterEnter,p=n.enterCancelled,f=n.beforeAppear,g=n.appear,m=n.afterAppear,v=n.appearCancelled,y=lr,_=lr.$vnode;_&&_.parent;)_=_.parent,y=_.context;var b=!y._isMounted||!t.isRootInsert;if(!b||g||""===g){var w=b?l:o,x=b?u:a,C=b?f||c:c,k=b&&"function"==typeof g?g:h,D=b?m||d:d,T=b?v||p:p,S=s!==!1&&!ws,A=k&&(k._length||k.length)>1,E=i._enterCb=Ge(function(){S&&We(i,x),E.cancelled?(S&&We(i,w),T&&T(i)):D&&D(i),i._enterCb=null});t.data.show||kt(t.data.hook||(t.data.hook={}),"insert",function(){var e=i.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.context===t.context&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),k&&k(i,E)},"transition-insert"),C&&C(i),S&&(ze(i,w),ze(i,x),Re(function(){We(i,w),E.cancelled||A||Ue(i,r,E)})),t.data.show&&(e&&e(),k&&k(i,E)),S||A||E()}}}function Xe(t,e){function i(){m.cancelled||(t.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),u&&u(n),f&&(ze(n,a),ze(n,l),Re(function(){We(n,a),m.cancelled||g||Ue(n,o,m)})),c&&c(n,m),f||g||m())}var n=t.elm;n._enterCb&&(n._enterCb.cancelled=!0,n._enterCb());var s=Ke(t.data.transition);if(!s)return e();if(!n._leaveCb&&1===n.nodeType){var r=s.css,o=s.type,a=s.leaveClass,l=s.leaveActiveClass,u=s.beforeLeave,c=s.leave,h=s.afterLeave,d=s.leaveCancelled,p=s.delayLeave,f=r!==!1&&!ws,g=c&&(c._length||c.length)>1,m=n._leaveCb=Ge(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),f&&We(n,l),m.cancelled?(f&&We(n,a),d&&d(n)):(e(),h&&h(n)),n._leaveCb=null});p?p(i):i()}}function Ke(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&c(e,so(t.name||"v")),c(e,t),e}return"string"==typeof t?so(t):void 0}}function Ge(t){var e=!1;return function(){e||(e=!0,t())}}function Qe(t,e){e.data.show||Ve(e)}function Ze(t,e,i){var n=e.value,s=t.multiple;if(s&&!Array.isArray(n))return void Es('<select multiple v-model="'+e.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(n).slice(8,-1),i);for(var r,o,a=0,l=t.options.length;a<l;a++)if(o=t.options[a],s)r=v(n,ti(o))>-1,o.selected!==r&&(o.selected=r);else if(m(ti(o),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));s||(t.selectedIndex=-1)}function Je(t,e){for(var i=0,n=e.length;i<n;i++)if(m(ti(e[i]),t))return!1;return!0}function ti(t){return"_value"in t?t._value:t.value}function ei(t){t.target.composing=!0}function ii(t){t.target.composing=!1,ni(t.target,"input")}function ni(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function si(t){return!t.child||t.data&&t.data.transition?t:si(t.child._vnode)}function ri(t){var e=t&&t.componentOptions;return e&&e.Ctor.options["abstract"]?ri(It(e.children)):t}function oi(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var s=i._parentListeners;for(var r in s)e[as(r)]=s[r].fn;return e}function ai(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function li(t){for(;t=t.parent;)if(t.data.transition)return!0}function ui(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ci(t){t.data.newPos=t.elm.getBoundingClientRect()}function hi(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,s=e.top-i.top;if(n||s){t.data.moved=!0;var r=t.elm.style;r.transform=r.WebkitTransform="translate("+n+"px,"+s+"px)",r.transitionDuration="0s"}}function di(t,e){var i=document.createElement("div");return i.innerHTML='<div a="'+t+'">',i.innerHTML.indexOf(e)>0}function pi(t){return _o=_o||document.createElement("div"),_o.innerHTML=t,_o.textContent}function fi(t,e){return e&&(t=t.replace(pa,"\n")),t.replace(ha,"<").replace(da,">").replace(fa,"&").replace(ga,'"')}function gi(t,e){function i(e){h+=e,t=t.substring(e)}function n(){var e=t.match(Io);if(e){var n={tagName:e[1],attrs:[],start:h};i(e[0].length);for(var s,r;!(s=t.match(Oo))&&(r=t.match(So));)i(r[0].length),n.attrs.push(r);if(s)return n.unarySlash=s[1],i(s[0].length),n.end=h,n}}function s(t){var i=t.tagName,n=t.unarySlash;u&&("p"===a&&Co(i)&&r("",a),xo(i)&&a===i&&r("",i));for(var s=c(i)||"html"===i&&"head"===a||!!n,o=t.attrs.length,h=new Array(o),d=0;d<o;d++){var p=t.attrs[d];jo&&p[0].indexOf('""')===-1&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var f=p[3]||p[4]||p[5]||"";h[d]={name:p[1],value:fi(f,e.shouldDecodeNewlines)}}s||(l.push({tag:i,attrs:h}),a=i,n=""),e.start&&e.start(i,h,s,t.start,t.end)}function r(t,i,n,s){var r;if(null==n&&(n=h),null==s&&(s=h),i){var o=i.toLowerCase();for(r=l.length-1;r>=0&&l[r].tag.toLowerCase()!==o;r--);}else r=0;if(r>=0){for(var u=l.length-1;u>=r;u--)e.end&&e.end(l[u].tag,n,s);l.length=r,a=r&&l[r-1].tag}else"br"===i.toLowerCase()?e.start&&e.start(i,[],!0,n,s):"p"===i.toLowerCase()&&(e.start&&e.start(i,[],!1,n,s),e.end&&e.end(i,n,s))}for(var o,a,l=[],u=e.expectHTML,c=e.isUnaryTag||ps,h=0;t;){if(o=t,a&&ua(a,e.sfc,l)){var d=a.toLowerCase(),p=ca[d]||(ca[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i")),f=0,g=t.replace(p,function(t,i,n){return f=n.length,"script"!==d&&"style"!==d&&"noscript"!==d&&(i=i.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),e.chars&&e.chars(i),""});h+=t.length-g.length,t=g,r("</"+d+">",d,h-f,h)}else{var m=t.indexOf("<");if(0===m){if(Mo.test(t)){var v=t.indexOf("-->");if(v>=0){i(v+3);continue}}if(No.test(t)){var y=t.indexOf("]>");if(y>=0){i(y+2);continue}}var _=t.match(Po);if(_){i(_[0].length);continue}var b=t.match($o);if(b){var w=h;i(b[0].length),r(b[0],b[1],w,h);continue}var x=n();if(x){s(x);continue}}var C=void 0,k=void 0,D=void 0;if(m>0){for(k=t.slice(m);!($o.test(k)||Io.test(k)||Mo.test(k)||No.test(k)||(D=k.indexOf("<",1),D<0));)m+=D,k=t.slice(m);C=t.substring(0,m),i(m)}m<0&&(C=t,t=""),e.chars&&C&&e.chars(C)}if(t===o&&e.chars){e.chars(t);break}}r()}function mi(t){function e(){(o||(o=[])).push(t.slice(f,s).trim()),f=s+1}var i,n,s,r,o,a=!1,l=!1,u=!1,c=!1,h=0,d=0,p=0,f=0;for(s=0;s<t.length;s++)if(n=i,i=t.charCodeAt(s),a)39===i&&92!==n&&(a=!1);else if(l)34===i&&92!==n&&(l=!1);else if(u)96===i&&92!==n&&(u=!1);else if(c)47===i&&92!==n&&(c=!1);else if(124!==i||124===t.charCodeAt(s+1)||124===t.charCodeAt(s-1)||h||d||p){switch(i){case 34:l=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:h++;break;case 125:h--}if(47===i){for(var g=s-1,m=void 0;g>=0&&(m=t.charAt(g)," "===m);g--);m&&/[\w$]/.test(m)||(c=!0)}}else void 0===r?(f=s+1,r=t.slice(0,s).trim()):e();if(void 0===r?r=t.slice(0,s).trim():0!==f&&e(),o)for(s=0;s<o.length;s++)r=vi(r,o[s]);return r}function vi(t,e){var i=e.indexOf("(");if(i<0)return'_f("'+e+'")('+t+")";var n=e.slice(0,i),s=e.slice(i+1);return'_f("'+n+'")('+t+","+s}function yi(t,e){var i=e?ya(e):ma;if(i.test(t)){for(var n,s,r=[],o=i.lastIndex=0;n=i.exec(t);){s=n.index,s>o&&r.push(JSON.stringify(t.slice(o,s)));var a=mi(n[1].trim());r.push("_s("+a+")"),o=s+n[0].length}return o<t.length&&r.push(JSON.stringify(t.slice(o))),r.join("+")}}function _i(t){}function bi(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function wi(t,e,i){(t.props||(t.props=[])).push({name:e,value:i})}function xi(t,e,i){(t.attrs||(t.attrs=[])).push({name:e,value:i})}function Ci(t,e,i,n,s,r){(t.directives||(t.directives=[])).push({name:e,rawName:i,value:n,arg:s,modifiers:r})}function ki(t,e,i,n,s){n&&n.capture&&(delete n.capture,e="!"+e),n&&n.once&&(delete n.once,e="~"+e);var r;n&&n["native"]?(delete n["native"],r=t.nativeEvents||(t.nativeEvents={})):r=t.events||(t.events={});var o={value:i,modifiers:n},a=r[e];Array.isArray(a)?s?a.unshift(o):a.push(o):a?r[e]=s?[o,a]:[a,o]:r[e]=o}function Di(t,e,i){var n=Ti(t,":"+e)||Ti(t,"v-bind:"+e);if(null!=n)return mi(n);if(i!==!1){var s=Ti(t,e);if(null!=s)return JSON.stringify(s)}}function Ti(t,e){var i;if(null!=(i=t.attrsMap[e]))for(var n=t.attrsList,s=0,r=n.length;s<r;s++)if(n[s].name===e){n.splice(s,1);break}return i}function Si(t){if(Ho=t,Fo=Ho.length,Ro=zo=Wo=0,t.indexOf("[")<0||t.lastIndexOf("]")<Fo-1)return{exp:t,idx:null};for(;!Ei();)Lo=Ai(),Ii(Lo)?$i(Lo):91===Lo&&Oi(Lo);return{exp:t.substring(0,zo),idx:t.substring(zo+1,Wo)}}function Ai(){return Ho.charCodeAt(++Ro)}function Ei(){return Ro>=Fo}function Ii(t){return 34===t||39===t}function Oi(t){var e=1;for(zo=Ro;!Ei();)if(t=Ai(),Ii(t))$i(t);else if(91===t&&e++,93===t&&e--,0===e){Wo=Ro;break}}function $i(t){for(var e=t;!Ei()&&(t=Ai(),t!==e););}function Pi(t,e){Uo=e.warn||_i,Bo=e.getTagNamespace||ps,qo=e.mustUseProp||ps,Yo=e.isPreTag||ps,Vo=bi(e.modules,"preTransformNode"),Xo=bi(e.modules,"transformNode"),Ko=bi(e.modules,"postTransformNode"),Go=e.delimiters;var i,n,s=[],r=e.preserveWhitespace!==!1,o=!1,a=!1,l=!1;return gi(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,shouldDecodeNewlines:e.shouldDecodeNewlines,start:function(r,u,c){function h(e){l||("slot"!==e.tag&&"template"!==e.tag||(l=!0,Uo("Cannot use <"+e.tag+"> as component root element because it may contain multiple nodes:\n"+t)),e.attrsMap.hasOwnProperty("v-for")&&(l=!0,Uo("Cannot use v-for on stateful component root element because it renders multiple elements:\n"+t)))}var d=n&&n.ns||Bo(r);bs&&"svg"===d&&(u=Qi(u));var p={type:1,tag:r,attrsList:u,attrsMap:Xi(u),parent:n,children:[]};d&&(p.ns=d),Gi(p)&&!Ds()&&(p.forbidden=!0,Uo("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+r+">."));for(var f=0;f<Vo.length;f++)Vo[f](p,e);if(o||(Mi(p),p.pre&&(o=!0)),Yo(p.tag)&&(a=!0),o)Ni(p);else{Hi(p),Li(p),Wi(p),ji(p),p.plain=!p.key&&!u.length,Fi(p),Ui(p),Bi(p);for(var g=0;g<Xo.length;g++)Xo[g](p,e);qi(p)}if(i?s.length||(i["if"]&&(p.elseif||p["else"])?(h(p),zi(i,{exp:p.elseif,block:p})):l||(l=!0,Uo("Component template should contain exactly one root element:\n\n"+t+"\n\nIf you are using v-if on multiple elements, use v-else-if to chain them instead."))):(i=p,h(i)),n&&!p.forbidden)if(p.elseif||p["else"])Ri(p,n);else if(p.slotScope){n.plain=!1;var m=p.slotTarget||"default";(n.scopedSlots||(n.scopedSlots={}))[m]=p}else n.children.push(p),p.parent=n;c||(n=p,s.push(p));for(var v=0;v<Ko.length;v++)Ko[v](p,e)},end:function(){var t=s[s.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&t.children.pop(),s.length-=1,n=s[s.length-1],t.pre&&(o=!1),Yo(t.tag)&&(a=!1)},chars:function(e){if(!n)return void(l||e!==t||(l=!0,Uo("Component template requires a root element, rather than just text:\n\n"+t)));if((!bs||"textarea"!==n.tag||n.attrsMap.placeholder!==e)&&(e=a||e.trim()?Ta(e):r&&n.children.length?" ":"")){var i;!o&&" "!==e&&(i=yi(e,Go))?n.children.push({type:2,expression:i,text:e}):n.children.push({type:3,text:e})}}}),i}function Mi(t){null!=Ti(t,"v-pre")&&(t.pre=!0)}function Ni(t){var e=t.attrsList.length;if(e)for(var i=t.attrs=new Array(e),n=0;n<e;n++)i[n]={name:t.attrsList[n].name,value:JSON.stringify(t.attrsList[n].value)};else t.pre||(t.plain=!0)}function ji(t){var e=Di(t,"key");e&&("template"===t.tag&&Uo("<template> cannot be keyed. Place the key on real elements instead."),t.key=e)}function Fi(t){var e=Di(t,"ref");e&&(t.ref=e,t.refInFor=Yi(t))}function Hi(t){var e;if(e=Ti(t,"v-for")){var i=e.match(ba);if(!i)return void Uo("Invalid v-for expression: "+e);t["for"]=i[2].trim();var n=i[1].trim(),s=n.match(wa);s?(t.alias=s[1].trim(),t.iterator1=s[2].trim(),s[3]&&(t.iterator2=s[3].trim())):t.alias=n}}function Li(t){var e=Ti(t,"v-if");if(e)t["if"]=e,zi(t,{exp:e,block:t});else{null!=Ti(t,"v-else")&&(t["else"]=!0);var i=Ti(t,"v-else-if");i&&(t.elseif=i)}}function Ri(t,e){var i=Ki(e.children);i&&i["if"]?zi(i,{exp:t.elseif,block:t}):Uo("v-"+(t.elseif?'else-if="'+t.elseif+'"':"else")+" used on element <"+t.tag+"> without corresponding v-if.")}function zi(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Wi(t){var e=Ti(t,"v-once");null!=e&&(t.once=!0)}function Ui(t){if("slot"===t.tag)t.slotName=Di(t,"name"),t.key&&Uo("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.");else{var e=Di(t,"slot");e&&(t.slotTarget='""'===e?'"default"':e),"template"===t.tag&&(t.slotScope=Ti(t,"scope"))}}function Bi(t){var e;(e=Di(t,"is"))&&(t.component=e),null!=Ti(t,"inline-template")&&(t.inlineTemplate=!0)}function qi(t){var e,i,n,s,r,o,a,l,u=t.attrsList;for(e=0,i=u.length;e<i;e++)if(n=s=u[e].name,r=u[e].value,_a.test(n))if(t.hasBindings=!0,a=Vi(n),a&&(n=n.replace(Da,"")),xa.test(n))n=n.replace(xa,""),r=mi(r),l=!1,a&&(a.prop&&(l=!0,n=as(n),"innerHtml"===n&&(n="innerHTML")),a.camel&&(n=as(n))),l||qo(t.tag,n)?wi(t,n,r):xi(t,n,r);else if(Ca.test(n))n=n.replace(Ca,""),ki(t,n,r,a);else{n=n.replace(_a,"");var c=n.match(ka);c&&(o=c[1])&&(n=n.slice(0,-(o.length+1))),Ci(t,n,s,r,o,a),"model"===n&&Zi(t,r)}else{var h=yi(r,Go);h&&Uo(n+'="'+r+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.'),xi(t,n,JSON.stringify(r))}}function Yi(t){for(var e=t;e;){if(void 0!==e["for"])return!0;e=e.parent}return!1}function Vi(t){var e=t.match(Da);if(e){var i={};return e.forEach(function(t){i[t.slice(1)]=!0}),i}}function Xi(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i].name]&&!bs&&Uo("duplicate attribute: "+t[i].name),e[t[i].name]=t[i].value;return e}function Ki(t){for(var e=t.length;e--;)if(t[e].tag)return t[e]}function Gi(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function Qi(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];Sa.test(n.name)||(n.name=n.name.replace(Aa,""),e.push(n))}return e}function Zi(t,e){for(var i=t;i;)i["for"]&&i.alias===e&&Uo("<"+t.tag+' v-model="'+e+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'),i=i.parent}function Ji(t,e){t&&(Qo=Ea(e.staticKeys||""),Zo=e.isReservedTag||ps,en(t),nn(t,!1))}function tn(t){return n("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function en(t){if(t["static"]=rn(t),1===t.type){if(!Zo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,i=t.children.length;e<i;e++){var n=t.children[e];en(n),n["static"]||(t["static"]=!1)}}}function nn(t,e){if(1===t.type){if((t["static"]||t.once)&&(t.staticInFor=e),t["static"]&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,n=t.children.length;i<n;i++)nn(t.children[i],e||!!t["for"]);t.ifConditions&&sn(t.ifConditions,e)}}function sn(t,e){for(var i=1,n=t.length;i<n;i++)nn(t[i].block,e)}function rn(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t["if"]||t["for"]||ss(t.tag)||!Zo(t.tag)||on(t)||!Object.keys(t).every(Qo))))}function on(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t["for"])return!0}return!1}function an(t,e){var i=e?"nativeOn:{":"on:{";for(var n in t)i+='"'+n+'":'+ln(n,t[n])+",";return i.slice(0,-1)+"}"}function ln(t,e){if(e){if(Array.isArray(e))return"["+e.map(function(e){return ln(t,e)}).join(",")+"]";if(e.modifiers){var i="",n=[];for(var s in e.modifiers)Pa[s]?i+=Pa[s]:n.push(s);n.length&&(i=un(n)+i);var r=Oa.test(e.value)?e.value+"($event)":e.value;return"function($event){"+i+r+"}"}return Ia.test(e.value)||Oa.test(e.value)?e.value:"function($event){"+e.value+"}"}return"function(){}"}function un(t){return"if("+t.map(cn).join("&&")+")return;"}function cn(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=$a[t];return"_k($event.keyCode,"+JSON.stringify(t)+(i?","+JSON.stringify(i):"")+")"}function hn(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+(e.modifiers&&e.modifiers.prop?",true":"")+")"}}function dn(t,e){var i=na,n=na=[],s=sa;sa=0,ra=e,Jo=e.warn||_i,ta=bi(e.modules,"transformCode"),ea=bi(e.modules,"genData"),ia=e.directives||{};var r=t?pn(t):'_c("div")';return na=i,sa=s,{render:"with(this){return "+r+"}",staticRenderFns:n}}function pn(t){if(t.staticRoot&&!t.staticProcessed)return fn(t);if(t.once&&!t.onceProcessed)return gn(t);if(t["for"]&&!t.forProcessed)return yn(t);if(t["if"]&&!t.ifProcessed)return mn(t);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return En(t);var e;if(t.component)e=In(t.component,t);else{var i=t.plain?void 0:_n(t),n=t.inlineTemplate?null:kn(t,!0);e="_c('"+t.tag+"'"+(i?","+i:"")+(n?","+n:"")+")"}for(var s=0;s<ta.length;s++)e=ta[s](t,e);return e}return kn(t)||"void 0"}function fn(t){return t.staticProcessed=!0,na.push("with(this){return "+pn(t)+"}"),"_m("+(na.length-1)+(t.staticInFor?",true":"")+")"}function gn(t){if(t.onceProcessed=!0,t["if"]&&!t.ifProcessed)return mn(t);if(t.staticInFor){for(var e="",i=t.parent;i;){if(i["for"]){e=i.key;break}i=i.parent}return e?"_o("+pn(t)+","+sa++ +(e?","+e:"")+")":(Jo("v-once can only be used inside v-for that is keyed. "),pn(t))}return fn(t)}function mn(t){return t.ifProcessed=!0,vn(t.ifConditions.slice())}function vn(t){function e(t){return t.once?gn(t):pn(t)}if(!t.length)return"_e()";var i=t.shift();return i.exp?"("+i.exp+")?"+e(i.block)+":"+vn(t):""+e(i.block)}function yn(t){var e=t["for"],i=t.alias,n=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,"_l(("+e+"),function("+i+n+s+"){return "+pn(t)+"})"}function _n(t){var e="{",i=bn(t);i&&(e+=i+","),t.key&&(e+="key:"+t.key+","),t.ref&&(e+="ref:"+t.ref+","),t.refInFor&&(e+="refInFor:true,"),t.pre&&(e+="pre:true,"),t.component&&(e+='tag:"'+t.tag+'",');for(var n=0;n<ea.length;n++)e+=ea[n](t);if(t.attrs&&(e+="attrs:{"+On(t.attrs)+"},"),t.props&&(e+="domProps:{"+On(t.props)+"},"),t.events&&(e+=an(t.events)+","),t.nativeEvents&&(e+=an(t.nativeEvents,!0)+","),t.slotTarget&&(e+="slot:"+t.slotTarget+","),t.scopedSlots&&(e+=xn(t.scopedSlots)+","),t.inlineTemplate){var s=wn(t);s&&(e+=s+",")}return e=e.replace(/,$/,"")+"}",t.wrapData&&(e=t.wrapData(e)),e}function bn(t){var e=t.directives;if(e){var i,n,s,r,o="directives:[",a=!1;for(i=0,n=e.length;i<n;i++){s=e[i],r=!0;var l=ia[s.name]||Ma[s.name];l&&(r=!!l(t,s,Jo)),r&&(a=!0,o+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?',arg:"'+s.arg+'"':"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},")}return a?o.slice(0,-1)+"]":void 0}}function wn(t){var e=t.children[0];if((t.children.length>1||1!==e.type)&&Jo("Inline-template components must have exactly one child element."),1===e.type){var i=dn(e,ra);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function xn(t){return"scopedSlots:{"+Object.keys(t).map(function(e){return Cn(e,t[e])}).join(",")+"}"}function Cn(t,e){return t+":function("+String(e.attrsMap.scope)+"){return "+("template"===e.tag?kn(e)||"void 0":pn(e))+"}"}function kn(t,e){var i=t.children;if(i.length){var n=i[0];return 1===i.length&&n["for"]&&"template"!==n.tag&&"slot"!==n.tag?pn(n):"["+i.map(Sn).join(",")+"]"+(e?Dn(i)?"":",true":"")}}function Dn(t){for(var e=0;e<t.length;e++){var i=t[e];if(Tn(i)||i["if"]&&i.ifConditions.some(function(t){return Tn(t.block)}))return!1}return!0}function Tn(t){return t["for"]||"template"===t.tag||"slot"===t.tag}function Sn(t){return 1===t.type?pn(t):An(t)}function An(t){return"_v("+(2===t.type?t.expression:$n(JSON.stringify(t.text)))+")"}function En(t){var e=t.slotName||'"default"',i=kn(t);return"_t("+e+(i?","+i:"")+(t.attrs?(i?"":",null")+",{"+t.attrs.map(function(t){return as(t.name)+":"+t.value}).join(",")+"}":"")+")"}function In(t,e){var i=e.inlineTemplate?null:kn(e,!0);return"_c("+t+","+_n(e)+(i?","+i:"")+")"}function On(t){for(var e="",i=0;i<t.length;i++){var n=t[i];e+='"'+n.name+'":'+$n(n.value)+","}return e.slice(0,-1)}function $n(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Pn(t,e){var i=Pi(t.trim(),e);Ji(i,e);var n=dn(i,e);return{ast:i,render:n.render,staticRenderFns:n.staticRenderFns}}function Mn(t){var e=[];return t&&Nn(t,e),e}function Nn(t,e){if(1===t.type){for(var i in t.attrsMap)if(_a.test(i)){var n=t.attrsMap[i];n&&("v-for"===i?jn(t,'v-for="'+n+'"',e):Hn(n,i+'="'+n+'"',e))}if(t.children)for(var s=0;s<t.children.length;s++)Nn(t.children[s],e)}else 2===t.type&&Hn(t.expression,t.text,e)}function jn(t,e,i){Hn(t["for"]||"",e,i),Fn(t.alias,"v-for alias",e,i),Fn(t.iterator1,"v-for iterator",e,i),Fn(t.iterator2,"v-for iterator",e,i)}function Fn(t,e,i,n){"string"!=typeof t||ja.test(t)||n.push("- invalid "+e+' "'+t+'" in expression: '+i)}function Hn(t,e,i){try{new Function("return "+t)}catch(n){var s=t.replace(Fa,"").match(Na);s?i.push('- avoid using JavaScript keyword as property name: "'+s[0]+'" in expression '+e):i.push("- invalid expression: "+e)}}function Ln(t,e){var i=e.warn||_i,n=Ti(t,"class");if(n){var s=yi(n,e.delimiters);s&&i('class="'+n+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')}n&&(t.staticClass=JSON.stringify(n));var r=Di(t,"class",!1);r&&(t.classBinding=r)}function Rn(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function zn(t,e){var i=e.warn||_i,n=Ti(t,"style");if(n){var s=yi(n,e.delimiters);s&&i('style="'+n+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.'),t.staticStyle=JSON.stringify(Wr(n))}var r=Di(t,"style",!1);r&&(t.styleBinding=r)}function Wn(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Un(t,e,i){oa=i;var n=e.value,s=e.modifiers,r=t.tag,o=t.attrsMap.type,a=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];return"input"===r&&a&&oa('<input :type="'+a+'" v-model="'+n+'">:\nv-model does not support dynamic input types. Use v-if branches instead.'),"select"===r?Vn(t,n,s):"input"===r&&"checkbox"===o?Bn(t,n,s):"input"===r&&"radio"===o?qn(t,n,s):Yn(t,n,s),!0}function Bn(t,e,i){null!=t.attrsMap.checked&&oa("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var n=i&&i.number,s=Di(t,"value")||"null",r=Di(t,"true-value")||"true",o=Di(t,"false-value")||"false";wi(t,"checked","Array.isArray("+e+")?_i("+e+","+s+")>-1:_q("+e+","+r+")"),ki(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+o+");if(Array.isArray($$a)){var $$v="+(n?"_n("+s+")":s)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function qn(t,e,i){null!=t.attrsMap.checked&&oa("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var n=i&&i.number,s=Di(t,"value")||"null";s=n?"_n("+s+")":s,wi(t,"checked","_q("+e+","+s+")"),ki(t,"change",Kn(e,s),null,!0)}function Yn(t,e,i){"input"===t.tag&&t.attrsMap.value&&oa("<"+t.tag+' v-model="'+e+'" value="'+t.attrsMap.value+"\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."),"textarea"===t.tag&&t.children.length&&oa('<textarea v-model="'+e+"\">:\ninline content inside <textarea> will be ignored when using v-model. Declare initial values in the component's data option instead.");var n=t.attrsMap.type,s=i||{},r=s.lazy,o=s.number,a=s.trim,l=r||bs&&"range"===n?"change":"input",u=!r&&"range"!==n,c="input"===t.tag||"textarea"===t.tag,h=c?"$event.target.value"+(a?".trim()":""):a?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";h=o||"number"===n?"_n("+h+")":h;var d=Kn(e,h);c&&u&&(d="if($event.target.composing)return;"+d),"file"===n&&oa("<"+t.tag+' v-model="'+e+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'),wi(t,"value",c?"_s("+e+")":"("+e+")"),ki(t,l,d,null,!0),(a||o||"number"===n)&&ki(t,"blur","$forceUpdate()")}function Vn(t,e,i){t.children.some(Xn);var n=i&&i.number,s='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n?"_n(val)":"val")+"})"+(null==t.attrsMap.multiple?"[0]":""),r=Kn(e,s);ki(t,"change",r,null,!0)}function Xn(t){return 1===t.type&&"option"===t.tag&&null!=t.attrsMap.selected&&(oa('<select v-model="'+t.parent.attrsMap["v-model"]+"\">:\ninline selected attributes on <option> will be ignored when using v-model. Declare initial values in the component's data option instead."),!0)}function Kn(t,e){var i=Si(t);return null===i.idx?t+"="+e:"var $$exp = "+i.exp+", $$idx = "+i.idx+";if (!Array.isArray($$exp)){"+t+"="+e+"}else{$$exp.splice($$idx, 1, "+e+")}"}function Gn(t,e){e.value&&wi(t,"textContent","_s("+e.value+")")}function Qn(t,e){e.value&&wi(t,"innerHTML","_s("+e.value+")")}function Zn(t,e){return e=e?c(c({},Ua),e):Ua,Pn(t,e)}function Jn(t,e,i){var n=e&&e.warn||Es;try{new Function("return 1")}catch(s){s.toString().match(/unsafe-eval|CSP/)&&n("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var r=e&&e.delimiters?String(e.delimiters)+t:t;if(Wa[r])return Wa[r];var o={},a=Zn(t,e);o.render=ts(a.render);var l=a.staticRenderFns.length;o.staticRenderFns=new Array(l);for(var u=0;u<l;u++)o.staticRenderFns[u]=ts(a.staticRenderFns[u]);return(o.render===f||o.staticRenderFns.some(function(t){return t===f}))&&n("failed to compile template:\n\n"+t+"\n\n"+Mn(a.ast).join("\n")+"\n\n",i),Wa[r]=o}function ts(t){try{return new Function(t)}catch(e){return f}}function es(t){if(t.outerHTML)return t.outerHTML;
var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var is,ns,ss=n("slot,component",!0),rs=Object.prototype.hasOwnProperty,os=/-(\w)/g,as=a(function(t){return t.replace(os,function(t,e){return e?e.toUpperCase():""})}),ls=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),us=/([^-])([A-Z])/g,cs=a(function(t){return t.replace(us,"$1-$2").replace(us,"$1-$2").toLowerCase()}),hs=Object.prototype.toString,ds="[object Object]",ps=function(){return!1},fs=function(t){return t},gs={optionMergeStrategies:Object.create(null),silent:!1,devtools:!0,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:ps,isUnknownElement:ps,getTagNamespace:f,parsePlatformTagName:fs,mustUseProp:ps,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100},ms=/[^\w.$]/,vs="__proto__"in{},ys="undefined"!=typeof window,_s=ys&&window.navigator.userAgent.toLowerCase(),bs=_s&&/msie|trident/.test(_s),ws=_s&&_s.indexOf("msie 9.0")>0,xs=_s&&_s.indexOf("edge/")>0,Cs=_s&&_s.indexOf("android")>0,ks=_s&&/iphone|ipad|ipod|ios/.test(_s),Ds=function(){return void 0===is&&(is=!ys&&"undefined"!=typeof e&&"server"===e.process.env.VUE_ENV),is},Ts=ys&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ss=function(){function t(){n=!1;var t=i.slice(0);i.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,i=[],n=!1;if("undefined"!=typeof Promise&&w(Promise)){var s=Promise.resolve(),r=function(t){};e=function(){s.then(t)["catch"](r),ks&&setTimeout(f)}}else if("undefined"==typeof MutationObserver||!w(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var o=1,a=new MutationObserver(t),l=document.createTextNode(String(o));a.observe(l,{characterData:!0}),e=function(){o=(o+1)%2,l.data=String(o)}}return function(t,s){var r;if(i.push(function(){t&&t.call(s),r&&r(s)}),n||(n=!0,e()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){r=t})}}();ns="undefined"!=typeof Set&&w(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return this.set[t]===!0},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var As,Es=f,Is="undefined"!=typeof console;Es=function(t,e){Is&&!gs.silent},As=function(t){if(t.$root===t)return"root instance";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(e?"component <"+e+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")};var Os=0,$s=function(){this.id=Os++,this.subs=[]};$s.prototype.addSub=function(t){this.subs.push(t)},$s.prototype.removeSub=function(t){s(this.subs,t)},$s.prototype.depend=function(){$s.target&&$s.target.addDep(this)},$s.prototype.notify=function(){for(var t=this.subs.slice(),e=0,i=t.length;e<i;e++)t[e].update()},$s.target=null;var Ps=[],Ms=Array.prototype,Ns=Object.create(Ms);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Ms[t];_(Ns,t,function(){for(var i=arguments,n=arguments.length,s=new Array(n);n--;)s[n]=i[n];var r,o=e.apply(this,s),a=this.__ob__;switch(t){case"push":r=s;break;case"unshift":r=s;break;case"splice":r=s.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var js=Object.getOwnPropertyNames(Ns),Fs={shouldConvert:!0,isSettingProps:!1},Hs=function(t){if(this.value=t,this.dep=new $s,this.vmCount=0,_(t,"__ob__",this),Array.isArray(t)){var e=vs?k:D;e(t,Ns,js),this.observeArray(t)}else this.walk(t)};Hs.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)S(t,e[i],t[e[i]])},Hs.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)T(t[e])};var Ls=gs.optionMergeStrategies;Ls.el=Ls.propsData=function(t,e,i,n){return i||Es('option "'+n+'" can only be used during instance creation with the `new` keyword.'),zs(t,e)},Ls.data=function(t,e,i){return i?t||e?function(){var n="function"==typeof e?e.call(i):e,s="function"==typeof t?t.call(i):void 0;return n?O(n,s):s}:void 0:e?"function"!=typeof e?(Es('The "data" option should be a function that returns a per-instance value in component definitions.',i),t):t?function(){return O(e.call(this),t.call(this))}:e:t},gs._lifecycleHooks.forEach(function(t){Ls[t]=$}),gs._assetTypes.forEach(function(t){Ls[t+"s"]=P}),Ls.watch=function(t,e){if(!e)return t;if(!t)return e;var i={};c(i,t);for(var n in e){var s=i[n],r=e[n];s&&!Array.isArray(s)&&(s=[s]),i[n]=s?s.concat(r):[r]}return i},Ls.props=Ls.methods=Ls.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(null);return c(i,t),c(i,e),i};var Rs,zs=function(t,e){return void 0===e?t:e},Ws=Object.freeze({defineReactive:S,_toString:t,toNumber:i,makeMap:n,isBuiltInTag:ss,remove:s,hasOwn:r,isPrimitive:o,cached:a,camelize:as,capitalize:ls,hyphenate:cs,bind:l,toArray:u,extend:c,isObject:h,isPlainObject:d,toObject:p,noop:f,no:ps,identity:fs,genStaticKeys:g,looseEqual:m,looseIndexOf:v,isReserved:y,def:_,parsePath:b,hasProto:vs,inBrowser:ys,UA:_s,isIE:bs,isIE9:ws,isEdge:xs,isAndroid:Cs,isIOS:ks,isServerRendering:Ds,devtools:Ts,nextTick:Ss,get _Set(){return ns},mergeOptions:F,resolveAsset:H,get warn(){return Es},get formatComponentName(){return As},validateProp:L}),Us=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Bs=function(t,e){Es('Property or method "'+e+'" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.',t)},qs="undefined"!=typeof Proxy&&Proxy.toString().match(/native code/);if(qs){var Ys=n("stop,prevent,self,ctrl,shift,alt,meta");gs.keyCodes=new Proxy(gs.keyCodes,{set:function(t,e,i){return Ys(e)?(Es("Avoid overwriting built-in modifier in config.keyCodes: ."+e),!1):(t[e]=i,!0)}})}var Vs={has:function Ya(t,e){var Ya=e in t,i=Us(e)||"_"===e.charAt(0);return Ya||i||Bs(t,e),Ya||!i}},Xs={get:function(t,e){return"string"!=typeof e||e in t||Bs(t,e),t[e]}};Rs=function(t){if(qs){var e=t.$options,i=e.render&&e.render._withStripped?Xs:Vs;t._renderProxy=new Proxy(t,i)}else t._renderProxy=t};var Ks=[],Gs={},Qs={},Zs=!1,Js=!1,tr=0,er=0,ir=function(t,e,i,n){void 0===n&&(n={}),this.vm=t,t._watchers.push(this),this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.expression=e.toString(),this.cb=i,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ns,this.newDepIds=new ns,"function"==typeof e?this.getter=e:(this.getter=b(e),this.getter||(this.getter=function(){},Es('Failed watching path: "'+e+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};ir.prototype.get=function(){x(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&X(t),C(),this.cleanupDeps(),t},ir.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ir.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var i=t.deps[e];t.newDepIds.has(i.id)||i.removeSub(t)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ir.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():V(this)},ir.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(i){if(!gs.errorHandler)throw Es('Error in watcher "'+this.expression+'"',this.vm),i;gs.errorHandler.call(null,i,this.vm)}else this.cb.call(this.vm,t,e)}}},ir.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ir.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},ir.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||s(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var nr=new ns,sr={key:1,ref:1,slot:1},rr={enumerable:!0,configurable:!0,get:f,set:f},or=function(t,e,i,n,s,r,o){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=s,this.ns=void 0,this.context=r,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=o,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},ar=function(){var t=new or;return t.text="",t.isComment=!0,t},lr=null,ur={init:gt,prepatch:mt,insert:vt,destroy:yt},cr=Object.keys(ur),hr=0;Lt(Wt),st(Wt),Ht(Wt),ct(Wt),Nt(Wt);var dr=[String,RegExp],pr={name:"keep-alive","abstract":!0,props:{include:dr,exclude:dr},created:function(){this.cache=Object.create(null)},render:function(){var t=It(this.$slots["default"]);if(t&&t.componentOptions){var e=t.componentOptions,i=e.Ctor.options.name||e.tag;if(i&&(this.include&&!Vt(this.include,i)||this.exclude&&Vt(this.exclude,i)))return t;var n=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;this.cache[n]?t.child=this.cache[n].child:this.cache[n]=t,t.data.keepAlive=!0}return t},destroyed:function(){var t=this;for(var e in this.cache){var i=t.cache[e];ht(i.child,"deactivated"),i.child.$destroy()}}},fr={KeepAlive:pr};Xt(Wt),Object.defineProperty(Wt.prototype,"$isServer",{get:Ds}),Wt.version="2.1.6";var gr,mr,vr=n("input,textarea,option,select"),yr=function(t,e){return"value"===e&&vr(t)||"selected"===e&&"option"===t||"checked"===e&&"input"===t||"muted"===e&&"video"===t},_r=n("contenteditable,draggable,spellcheck"),br=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),wr="http://www.w3.org/1999/xlink",xr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Cr=function(t){return xr(t)?t.slice(6,t.length):""},kr=function(t){return null==t||t===!1},Dr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",xhtml:"http://www.w3.org/1999/xhtml"},Tr=n("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Sr=n("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ar=function(t){return"pre"===t},Er=function(t){return Tr(t)||Sr(t)},Ir=Object.create(null),Or=Object.freeze({createElement:ne,createElementNS:se,createTextNode:re,createComment:oe,insertBefore:ae,removeChild:le,appendChild:ue,parentNode:ce,nextSibling:he,tagName:de,setTextContent:pe,setAttribute:fe}),$r={create:function(t,e){ge(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ge(t,!0),ge(e))},destroy:function(t){ge(t,!0)}},Pr=new or("",{},[]),Mr=["create","activate","update","remove","destroy"],Nr={create:we,update:we,destroy:function(t){we(t,Pr)}},jr=Object.create(null),Fr=[$r,Nr],Hr={create:Te,update:Te},Lr={create:Ae,update:Ae},Rr={create:Oe,update:Oe},zr={create:$e,update:$e},Wr=a(function(t){var e={},i=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(i).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}),Ur=/^--/,Br=/\s*!important$/,qr=function(t,e,i){Ur.test(e)?t.style.setProperty(e,i):Br.test(i)?t.style.setProperty(e,i.replace(Br,""),"important"):t.style[Vr(e)]=i},Yr=["Webkit","Moz","ms"],Vr=a(function(t){if(mr=mr||document.createElement("div"),t=as(t),"filter"!==t&&t in mr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<Yr.length;i++){var n=Yr[i]+e;if(n in mr.style)return n}}),Xr={create:Fe,update:Fe},Kr=ys&&!ws,Gr="transition",Qr="animation",Zr="transition",Jr="transitionend",to="animation",eo="animationend";Kr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zr="WebkitTransition",Jr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(to="WebkitAnimation",eo="webkitAnimationEnd"));var io=ys&&window.requestAnimationFrame||setTimeout,no=/\b(transform|all)(,|$)/,so=a(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),ro=ys?{create:Qe,activate:Qe,remove:function(t,e){t.data.show?e():Xe(t,e)}}:{},oo=[Hr,Lr,Rr,zr,Xr,ro],ao=oo.concat(Fr),lo=be({nodeOps:Or,modules:ao}),uo=/^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/;ws&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ni(t,"input")});var co={inserted:function(t,e,i){if(uo.test(i.tag)||Es("v-model is not supported on element type: <"+i.tag+">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",i.context),"select"===i.tag){var n=function(){Ze(t,e,i.context)};n(),(bs||xs)&&setTimeout(n,0)}else"textarea"!==i.tag&&"text"!==t.type||(t._vModifiers=e.modifiers,e.modifiers.lazy||(Cs||(t.addEventListener("compositionstart",ei),t.addEventListener("compositionend",ii)),ws&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){Ze(t,e,i.context);var n=t.multiple?e.value.some(function(e){return Je(e,t.options)}):e.value!==e.oldValue&&Je(e.value,t.options);n&&ni(t,"change")}}},ho={bind:function(t,e,i){var n=e.value;i=si(i);var s=i.data&&i.data.transition,r=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&s&&!ws?(i.data.show=!0,Ve(i,function(){t.style.display=r})):t.style.display=n?r:"none"},update:function(t,e,i){var n=e.value,s=e.oldValue;if(n!==s){i=si(i);var r=i.data&&i.data.transition;r&&!ws?(i.data.show=!0,n?Ve(i,function(){t.style.display=t.__vOriginalDisplay}):Xe(i,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none"}}},po={model:co,show:ho},fo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String},go={name:"transition",props:fo,"abstract":!0,render:function(t){var e=this,i=this.$slots["default"];if(i&&(i=i.filter(function(t){return t.tag}),i.length)){i.length>1&&Es("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var n=this.mode;n&&"in-out"!==n&&"out-in"!==n&&Es("invalid <transition> mode: "+n,this.$parent);var s=i[0];if(li(this.$vnode))return s;var r=ri(s);if(!r)return s;if(this._leaving)return ai(t,s);var o=r.key=null==r.key||r.isStatic?"__v"+(r.tag+this._uid)+"__":r.key,a=(r.data||(r.data={})).transition=oi(this),l=this._vnode,u=ri(l);if(r.data.directives&&r.data.directives.some(function(t){return"show"===t.name})&&(r.data.show=!0),u&&u.data&&u.key!==o){var h=u.data.transition=c({},a);if("out-in"===n)return this._leaving=!0,kt(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},o),ai(t,s);if("in-out"===n){var d,p=function(){d()};kt(a,"afterEnter",p,o),kt(a,"enterCancelled",p,o),kt(h,"delayLeave",function(t){d=t},o)}}return s}}},mo=c({tag:String,moveClass:String},fo);delete mo.mode;var vo={props:mo,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,s=this.$slots["default"]||[],r=this.children=[],o=oi(this),a=0;a<s.length;a++){var l=s[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))r.push(l),i[l.key]=l,(l.data||(l.data={})).transition=o;else{var u=l.componentOptions,c=u?u.Ctor.options.name||u.tag:l.tag;Es("<transition-group> children must be keyed: <"+c+">")}}if(n){for(var h=[],d=[],p=0;p<n.length;p++){var f=n[p];f.data.transition=o,f.data.pos=f.elm.getBoundingClientRect(),i[f.key]?h.push(f):d.push(f)}this.kept=t(e,null,h),this.removed=d}return t(e,null,r)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ui),t.forEach(ci),t.forEach(hi),document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var i=t.elm,n=i.style;ze(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(Jr,i._moveCb=function s(t){t&&!/transform$/.test(t.propertyName)||(i.removeEventListener(Jr,s),i._moveCb=null,We(i,e))})}}))},methods:{hasMove:function(t,e){if(!Kr)return!1;if(null!=this._hasMove)return this._hasMove;ze(t,e);var i=Be(t);return We(t,e),this._hasMove=i.hasTransform}}},yo={Transition:go,TransitionGroup:vo};Wt.config.isUnknownElement=ee,Wt.config.isReservedTag=Er,Wt.config.getTagNamespace=te,Wt.config.mustUseProp=yr,c(Wt.options.directives,po),c(Wt.options.components,yo),Wt.prototype.__patch__=ys?lo:f,Wt.prototype.$mount=function(t,e){return t=t&&ys?ie(t):void 0,this._mount(t,e)},setTimeout(function(){gs.devtools&&(Ts?Ts.emit("init",Wt):ys&&!xs&&/Chrome\/\d+/.test(window.navigator.userAgent))},0);var _o,bo=!!ys&&di("\n","&#10;"),wo=n("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),xo=n("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),Co=n("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),ko=/([^\s"'<>\/=]+)/,Do=/(?:=)/,To=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],So=new RegExp("^\\s*"+ko.source+"(?:\\s*("+Do.source+")\\s*(?:"+To.join("|")+"))?"),Ao="[a-zA-Z_][\\w\\-\\.]*",Eo="((?:"+Ao+"\\:)?"+Ao+")",Io=new RegExp("^<"+Eo),Oo=/^\s*(\/?)>/,$o=new RegExp("^<\\/"+Eo+"[^>]*>"),Po=/^<!DOCTYPE [^>]+>/i,Mo=/^<!--/,No=/^<!\[/,jo=!1;"x".replace(/x(.)?/g,function(t,e){jo=""===e});var Fo,Ho,Lo,Ro,zo,Wo,Uo,Bo,qo,Yo,Vo,Xo,Ko,Go,Qo,Zo,Jo,ta,ea,ia,na,sa,ra,oa,aa=n("script,style",!0),la=function(t){return"lang"===t.name&&"html"!==t.value},ua=function(t,e,i){return!(!aa(t)&&(!e||1!==i.length||"template"===t&&!i[0].attrs.some(la)))},ca={},ha=/&lt;/g,da=/&gt;/g,pa=/&#10;/g,fa=/&amp;/g,ga=/&quot;/g,ma=/\{\{((?:.|\n)+?)\}\}/g,va=/[-.*+?^${}()|[\]\/\\]/g,ya=a(function(t){var e=t[0].replace(va,"\\$&"),i=t[1].replace(va,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")}),_a=/^v-|^@|^:/,ba=/(.*?)\s+(?:in|of)\s+(.*)/,wa=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,xa=/^:|^v-bind:/,Ca=/^@|^v-on:/,ka=/:(.*)$/,Da=/\.[^.]+/g,Ta=a(pi),Sa=/^xmlns:NS\d+/,Aa=/^NS\d+:/,Ea=a(tn),Ia=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Oa=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,$a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,"delete":[8,46]},Pa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;",ctrl:"if(!$event.ctrlKey)return;",shift:"if(!$event.shiftKey)return;",alt:"if(!$event.altKey)return;",meta:"if(!$event.metaKey)return;"},Ma={bind:hn,cloak:f},Na=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),ja=/[A-Za-z_$][\w$]*/,Fa=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,Ha={staticKeys:["staticClass"],transformNode:Ln,genData:Rn},La={staticKeys:["staticStyle"],transformNode:zn,genData:Wn},Ra=[Ha,La],za={model:Un,text:Gn,html:Qn},Wa=Object.create(null),Ua={expectHTML:!0,modules:Ra,staticKeys:g(Ra),directives:za,isReservedTag:Er,isUnaryTag:wo,mustUseProp:yr,getTagNamespace:te,isPreTag:Ar},Ba=a(function(t){var e=ie(t);return e&&e.innerHTML}),qa=Wt.prototype.$mount;return Wt.prototype.$mount=function(t,e){if(t=t&&ie(t),t===document.body||t===document.documentElement)return Es("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=Ba(n),n||Es("Template element not found or is empty: "+i.template,this));else{if(!n.nodeType)return Es("invalid template option:"+n,this),this;n=n.innerHTML}else t&&(n=es(t));if(n){var s=Jn(n,{warn:Es,shouldDecodeNewlines:bo,delimiters:i.delimiters},this),r=s.render,o=s.staticRenderFns;i.render=r,i.staticRenderFns=o}}return qa.call(this,t,e)},Wt.compile=Jn,Wt})}).call(e,i(2))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,configurable:!1,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,configurable:!1,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){i(3),Vue.component("passport-clients",i(5)),Vue.component("passport-authorized-clients",i(4)),Vue.component("passport-personal-access-tokens",i(6)),new Vue({el:"#app"})}]),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,r)}function r(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function o(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}function a(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{};var l=(t.ui.version="1.12.1",0),u=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)try{n=t._data(s,"events"),n&&n.remove&&t(s).triggerHandler("remove")}catch(o){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,r,o,a={},l=e.split(".")[0];e=e.split(".")[1];var u=l+"-"+e;return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},s=t[l][e],r=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),o=new i,o.options=t.widget.extend({},o.options),t.each(n,function(e,n){return t.isFunction(n)?void(a[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,r=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=r,e}}()):void(a[e]=n)}),r.prototype=t.widget.extend(o,{widgetEventPrefix:s?o.widgetEventPrefix||e:e},a,{constructor:r,namespace:l,widgetName:e,widgetFullName:u}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,n,s=u.call(arguments,1),r=0,o=s.length;r<o;r++)for(i in s[r])n=s[r][i],s[r].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var r="string"==typeof s,o=u.call(arguments,1),a=this;return r?this.length||"instance"!==s?this.each(function(){var i,r=t.data(this,n);return"instance"===s?(a=r,!1):r?t.isFunction(r[s])&&"_"!==s.charAt(0)?(i=r[s].apply(r,o),i!==r&&void 0!==i?(a=i&&i.jquery?a.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):a=void 0:(o.length&&(s=t.widget.extend.apply(null,[s].concat(o))),this.each(function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))})),a}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,r,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},n=e.split("."),e=n.shift(),n.length){for(s=o[e]=t.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)s[n[r]]=s[n[r]]||{},s=s[n[r]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=i}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(n=t(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,r){var o,a;for(a=0;a<i.length;a++)o=s.classesElementLookup[i[a]]||t(),o=t(e.add?t.unique(o.get().concat(e.element.get())):o.not(e.element).get()),s.classesElementLookup[i[a]]=o,n.push(i[a]),r&&e.classes[i[a]]&&n.push(e.classes[i[a]])}var n=[],s=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,s){t.inArray(e.target,s)!==-1&&(i.classesElementLookup[n]=t(s.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,r={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(e,i,n){var s,r=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,o){function a(){if(e||r.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof o?r[o]:o).apply(r,arguments)}"string"!=typeof o&&(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?s.on(u,c,a):i.on(u,a)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,
e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var s,r,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!(t.isFunction(o)&&o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,r){"string"==typeof s&&(s={effect:s});var o,a=s?s===!0||"number"==typeof s?i:s.effect||i:e;s=s||{},"number"==typeof s&&(s={duration:s}),o=!t.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),o&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,r):n.queue(function(i){t(this)[e](),r&&r.call(n[0]),i()})}});t.widget;!function(){function e(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var s,r=Math.max,o=Math.abs,a=/left|center|right/,l=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,h=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=n.children()[0];return t("body").append(n),e=r.offsetWidth,n.css("overflow","scroll"),i=r.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,r="scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight;return{width:r?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),s=!!i[0]&&9===i[0].nodeType,r=!n&&!s;return{element:i,isWindow:n,isDocument:s,offset:r?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(s){if(!s||!s.of)return d.apply(this,arguments);s=t.extend({},s);var h,p,f,g,m,v,y=t(s.of),_=t.position.getWithinInfo(s.within),b=t.position.getScrollInfo(_),w=(s.collision||"flip").split(" "),x={};return v=n(y),y[0].preventDefault&&(s.at="left top"),p=v.width,f=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(s[this]||"").split(" ");1===i.length&&(i=a.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=a.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),x[this]=[t?t[0]:0,e?e[0]:0],s[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===s.at[0]?m.left+=p:"center"===s.at[0]&&(m.left+=p/2),"bottom"===s.at[1]?m.top+=f:"center"===s.at[1]&&(m.top+=f/2),h=e(x.at,p,f),m.left+=h[0],m.top+=h[1],this.each(function(){var n,a,l=t(this),u=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),v=i(this,"marginTop"),C=u+d+i(this,"marginRight")+b.width,k=c+v+i(this,"marginBottom")+b.height,D=t.extend({},m),T=e(x.my,l.outerWidth(),l.outerHeight());"right"===s.my[0]?D.left-=u:"center"===s.my[0]&&(D.left-=u/2),"bottom"===s.my[1]?D.top-=c:"center"===s.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],n={marginLeft:d,marginTop:v},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:u,elemHeight:c,collisionPosition:n,collisionWidth:C,collisionHeight:k,offset:[h[0]+T[0],h[1]+T[1]],my:s.my,at:s.at,within:_,elem:l})}),s.using&&(a=function(t){var e=g.left-D.left,i=e+p-u,n=g.top-D.top,a=n+f-c,h={target:{element:y,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:u,height:c},horizontal:i<0?"left":e>0?"right":"center",vertical:a<0?"top":n>0?"bottom":"middle"};p<u&&o(e+i)<p&&(h.horizontal="center"),f<c&&o(n+a)<f&&(h.vertical="middle"),r(o(e),o(i))>r(o(n),o(a))?h.important="horizontal":h.important="vertical",s.using.call(this,t,h)}),l.offset(t.extend(D,{using:a}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,u=a+e.collisionWidth-o-s;e.collisionWidth>o?l>0&&u<=0?(i=t.left+l+e.collisionWidth-o-s,t.left+=l-i):u>0&&l<=0?t.left=s:l>u?t.left=s+o-e.collisionWidth:t.left=s:l>0?t.left+=l:u>0?t.left-=u:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,u=a+e.collisionHeight-o-s;e.collisionHeight>o?l>0&&u<=0?(i=t.top+l+e.collisionHeight-o-s,t.top+=l-i):u>0&&l<=0?t.top=s:l>u?t.top=s+o-e.collisionHeight:t.top=s:l>0?t.top+=l:u>0?t.top-=u:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,r=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];c<0?(i=t.left+d+p+f+e.collisionWidth-a-r,(i<0||i<o(c))&&(t.left+=d+p+f)):h>0&&(n=t.left-e.collisionPosition.marginLeft+d+p+f-l,(n>0||o(n)<h)&&(t.left+=d+p+f))},top:function(t,e){var i,n,s=e.within,r=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,h=u+e.collisionHeight-a-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];c<0?(n=t.top+p+f+g+e.collisionHeight-a-r,(n<0||n<o(c))&&(t.top+=p+f+g)):h>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||o(i)<h)&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}();var c=(t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),"ui-effects-"),h="ui-effects-style",d="ui-effects-animated",p=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var n=h[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,s){var r,o=s.re.exec(e),a=o&&s.parse(o),l=s.space||"rgba";if(a)return r=i[l](a),i[c[l].cache]=r[c[l].cache],n=i._rgba=r._rgba,!1}),n.length?("0,0,0,0"===n.join()&&t.extend(n,r.transparent),i):r[e]}function s(t,e,i){return i=(i+1)%1,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var r,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,s){return new t.Color.fn.parse(e,i,n,s)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=u.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(s,o,a,l){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(o),o=e);var h=this,d=t.type(s),p=this._rgba=[];return o!==e&&(s=[s,o,a,l],d="array"),"string"===d?this.parse(n(s)||r._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(s[e.idx],e)}),this):"object"===d?(s instanceof u?f(c,function(t,e){s[e.cache]&&(h[e.cache]=s[e.cache].slice())}):f(c,function(e,n){var r=n.cache;f(n.props,function(t,e){if(!h[r]&&n.to){if("alpha"===t||null==s[t])return;h[r]=n.to(h._rgba)}h[r][e.idx]=i(s[t],e,!0)}),h[r]&&t.inArray(null,h[r].slice(0,3))<0&&(h[r][3]=1,n.from&&(h._rgba=n.from(h[r])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(c,function(t,s){var r,o=e[s.cache];return o&&(r=n[s.cache]||s.to&&s.to(n._rgba)||[],f(s.props,function(t,e){if(null!=o[e.idx])return i=o[e.idx]===r[e.idx]})),i}),i},_space:function(){var t=[],e=this;return f(c,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),s=n._space(),r=c[s],o=0===this.alpha()?u("transparent"):this,a=o[r.cache]||r.to(o._rgba),l=a.slice();return n=n[r.cache],f(r.props,function(t,s){var r=s.idx,o=a[r],u=n[r],c=h[s.type]||{};null!==u&&(null===o?l[r]=u:(c.mod&&(u-o>c.mod/2?o+=c.mod:o-u>c.mod/2&&(o-=c.mod)),l[r]=i((u-o)*e+o,s)))}),this[s](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*s[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,r=t[2]/255,o=t[3],a=Math.max(n,s,r),l=Math.min(n,s,r),u=a-l,c=a+l,h=.5*c;return e=l===a?0:n===a?60*(s-r)/u+360:s===a?60*(r-n)/u+120:60*(n-s)/u+240,i=0===u?0:h<=.5?u/c:u/(2-c),[Math.round(e)%360,i,h,null==o?1:o]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],r=t[3],o=n<=.5?n*(1+i):n+i-n*i,a=2*n-o;return[Math.round(255*s(a,o,e+1/3)),Math.round(255*s(a,o,e)),Math.round(255*s(a,o,e-1/3)),r]},f(c,function(n,s){var r=s.props,o=s.cache,l=s.to,c=s.from;u.fn[n]=function(n){if(l&&!this[o]&&(this[o]=l(this._rgba)),n===e)return this[o].slice();var s,a=t.type(n),h="array"===a||"object"===a?n:arguments,d=this[o].slice();return f(r,function(t,e){var n=h["object"===a?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),c?(s=u(c(d)),s[o]=d,s):u(d)},f(r,function(e,i){u.fn[e]||(u.fn[e]=function(s){var r,o=t.type(s),l="alpha"===e?this._hsla?"hsla":"rgba":n,u=this[l](),c=u[i.idx];return"undefined"===o?c:("function"===o&&(s=s.call(this,c),o=t.type(s)),null==s&&i.empty?this:("string"===o&&(r=a.exec(s),r&&(s=c+parseFloat(r[2])*("+"===r[1]?1:-1))),u[i.idx]=s,this[l](u)))})})}),u.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,s){var r,o,a="";if("transparent"!==s&&("string"!==t.type(s)||(r=n(s)))){if(s=u(r||s),!d.rgba&&1!==s._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&&o&&o.style;)try{a=t.css(o,"backgroundColor"),o=o.parentNode}catch(l){}s=s.blend(a&&"transparent"!==a?a:"_default")}s=s.toRgbaString()}try{e.style[i]=s}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},r=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(p),function(){function e(e){var i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(s&&s.length&&s[0]&&s[s[0]])for(n=s.length;n--;)i=s[n],"string"==typeof s[i]&&(r[t.camelCase(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(r[i]=s[i]);return r}function i(e,i){var n,r,o={};for(n in i)r=i[n],e[n]!==r&&(s[n]||!t.fx.step[n]&&isNaN(parseFloat(r))||(o[n]=r));return o}var n=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(s,r,o,a){var l=t.speed(r,o,a);return this.queue(function(){var r,o=t(this),a=o.attr("class")||"",u=l.children?o.find("*").addBack():o;u=u.map(function(){var i=t(this);return{el:i,start:e(this)}}),r=function(){t.each(n,function(t,e){s[e]&&o[e+"Class"](s[e])})},r(),u=u.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){r(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(i,n,s,r){return n?t.effects.animateClass.call(this,{add:i},n,s,r):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,s,r){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,s,r):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,s,r,o){return"boolean"==typeof n||void 0===n?s?t.effects.animateClass.call(this,n?{add:i}:{remove:i},s,r,o):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,s,r)}}(t.fn.toggleClass),switchClass:function(e,i,n,s,r){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,r)}})}(),function(){function e(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}function n(t,e){var i=e.outerWidth(),n=e.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,r=s.exec(t)||["",0,i,n,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?i:parseFloat(r[2]),bottom:"auto"===r[3]?n:parseFloat(r[3]),left:parseFloat(r[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(d)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(c+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(c+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},r=document.activeElement;try{r.id}catch(o){r=document.body}return e.wrap(n),(e[0]===r||t.contains(e[0],r))&&t(r).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,s="vertical"!==i?(e||100)/100:1;return{height:t.height()*s,width:t.width()*n,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();e>1&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),s=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(c+"placeholder",i)),e.css({position:n,left:s.left,top:s.top}),i},removePlaceholder:function(t){var e=c+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var r=e.cssUnit(i);r[0]>0&&(s[i]=r[0]*n+r[1])}),s}}),t.fn.extend({effect:function(){function i(e){function i(){a.removeData(d),t.effects.cleanUp(a),"hide"===n.mode&&a.hide(),o()}function o(){t.isFunction(l)&&l.call(a[0]),t.isFunction(e)&&e()}var a=t(this);n.mode=c.shift(),t.uiBackCompat===!1||r?"none"===n.mode?(a[u](),o()):s.call(a[0],n,i):(a.is(":hidden")?"hide"===u:"show"===u)?(a[u](),o()):s.call(a[0],n,o)}var n=e.apply(this,arguments),s=t.effects.effect[n.effect],r=s.mode,o=n.queue,a=o||"fx",l=n.complete,u=n.mode,c=[],h=function(e){var i=t(this),n=t.effects.mode(i,u)||r;i.data(d,!0),c.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!s?u?this[u](n.duration,l):this.each(function(){l&&l.call(this)}):o===!1?this.each(h).each(i):this.queue(a,h).queue(a,i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):n(this.css("clip"),this)},transfer:function(e,i){var n=t(this),s=t(e.to),r="fixed"===s.css("position"),o=t("body"),a=r?o.scrollTop():0,l=r?o.scrollLeft():0,u=s.offset(),c={top:u.top-a,left:u.left-l,height:s.innerHeight(),width:s.innerWidth()},h=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=n(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(t*-2+2)/2}})}();var f,f=t.effects;t.effects.define("blind","hide",function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=t(this),r=e.direction||"up",o=s.cssClip(),a={clip:t.extend({},o)},l=t.effects.createPlaceholder(s);a.clip[n[r][0]]=a.clip[n[r][1]],"show"===e.mode&&(s.cssClip(a.clip),l&&l.css(t.effects.clipToBox(a)),a.clip=o),l&&l.animate(t.effects.clipToBox(a),e.duration,e.easing),s.animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var n,s,r,o=t(this),a=e.mode,l="hide"===a,u="show"===a,c=e.direction||"up",h=e.distance,d=e.times||5,p=2*d+(u||l?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,y=0,_=o.queue().length;for(t.effects.createPlaceholder(o),r=o.css(m),h||(h=o["top"===m?"outerHeight":"outerWidth"]()/3),u&&(s={opacity:1},s[m]=r,o.css("opacity",0).css(m,v?2*-h:2*h).animate(s,f,g)),l&&(h/=Math.pow(2,d-1)),s={},s[m]=r;y<d;y++)n={},n[m]=(v?"-=":"+=")+h,o.animate(n,f,g).animate(s,f,g),h=l?2*h:h/2;l&&(n={opacity:0},n[m]=(v?"-=":"+=")+h,o.animate(n,f,g)),o.queue(i),t.effects.unshift(o,_,p+1)}),t.effects.define("clip","hide",function(e,i){var n,s={},r=t(this),o=e.direction||"vertical",a="both"===o,l=a||"horizontal"===o,u=a||"vertical"===o;n=r.cssClip(),s.clip={top:u?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:u?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},t.effects.createPlaceholder(r),"show"===e.mode&&(r.cssClip(s.clip),s.clip=n),r.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var n,s=t(this),r=e.mode,o="show"===r,a=e.direction||"left",l="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a?"-=":"+=",c="+="===u?"-=":"+=",h={opacity:0};t.effects.createPlaceholder(s),n=e.distance||s["top"===l?"outerHeight":"outerWidth"](!0)/2,h[l]=u+n,o&&(s.css(h),h[l]=c+n,h.opacity=1),s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function n(){_.push(this),_.length===h*d&&s()}function s(){p.css({visibility:"visible"}),t(_).remove(),i()}var r,o,a,l,u,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=h,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),y=Math.ceil(p.outerHeight()/h),_=[];for(r=0;r<h;r++)for(l=m.top+r*y,c=r-(h-1)/2,o=0;o<d;o++)a=m.left+o*v,u=o-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*v,top:-r*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:a+(g?u*v:0),top:l+(g?c*y:0),opacity:g?0:1}).animate({left:a+(g?0:u*v),top:l+(g?0:c*y),opacity:g?1:0},e.duration||500,e.easing,n)}),t.effects.define("fade","toggle",function(e,i){var n="show"===e.mode;t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var n=t(this),s=e.mode,r="show"===s,o="hide"===s,a=e.size||15,l=/([0-9]+)%/.exec(a),u=!!e.horizFirst,c=u?["right","bottom"]:["bottom","right"],h=e.duration/2,d=t.effects.createPlaceholder(n),p=n.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)},m=[p[c[0]],p[c[1]]],v=n.queue().length;l&&(a=parseInt(l[1],10)/100*m[o?0:1]),f.clip[c[0]]=a,g.clip[c[0]]=a,g.clip[c[1]]=0,r&&(n.cssClip(g.clip),d&&d.css(t.effects.clipToBox(g)),g.clip=p),n.queue(function(i){d&&d.animate(t.effects.clipToBox(f),h,e.easing).animate(t.effects.clipToBox(g),h,e.easing),i()}).animate(f,h,e.easing).animate(g,h,e.easing).queue(i),t.effects.unshift(n,v,4)}),t.effects.define("highlight","show",function(e,i){var n=t(this),s={backgroundColor:n.css("backgroundColor")};"hide"===e.mode&&(s.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var n,s,r,o=t(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,h="effect"!==c,d=e.scale||"both",p=e.origin||["middle","center"],f=o.css("position"),g=o.position(),m=t.effects.scaledDimensions(o),v=e.from||m,y=e.to||t.effects.scaledDimensions(o,0);t.effects.createPlaceholder(o),"show"===c&&(r=v,v=y,y=r),s={from:{y:v.height/m.height,x:v.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==d&&"both"!==d||(s.from.y!==s.to.y&&(v=t.effects.setTransition(o,l,s.from.y,v),y=t.effects.setTransition(o,l,s.to.y,y)),s.from.x!==s.to.x&&(v=t.effects.setTransition(o,u,s.from.x,v),y=t.effects.setTransition(o,u,s.to.x,y))),"content"!==d&&"both"!==d||s.from.y!==s.to.y&&(v=t.effects.setTransition(o,a,s.from.y,v),y=t.effects.setTransition(o,a,s.to.y,y)),p&&(n=t.effects.getBaseline(p,m),v.top=(m.outerHeight-v.outerHeight)*n.y+g.top,v.left=(m.outerWidth-v.outerWidth)*n.x+g.left,y.top=(m.outerHeight-y.outerHeight)*n.y+g.top,y.left=(m.outerWidth-y.outerWidth)*n.x+g.left),o.css(v),"content"!==d&&"both"!==d||(l=l.concat(["marginTop","marginBottom"]).concat(a),u=u.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var i=t(this),n=t.effects.scaledDimensions(i),r={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},o={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x};s.from.y!==s.to.y&&(r=t.effects.setTransition(i,l,s.from.y,r),o=t.effects.setTransition(i,l,s.to.y,o)),s.from.x!==s.to.x&&(r=t.effects.setTransition(i,u,s.from.x,r),o=t.effects.setTransition(i,u,s.to.x,o)),h&&t.effects.saveStyle(i),i.css(r),i.animate(o,e.duration,e.easing,function(){h&&t.effects.restoreStyle(i)})})),o.animate(y,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=o.offset();0===y.opacity&&o.css("opacity",v.opacity),h||(o.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(o)),i()}})}),t.effects.define("scale",function(e,i){var n=t(this),s=e.mode,r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==s?0:100),o=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,r,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(o.from.opacity=1,o.to.opacity=0),t.effects.effect.size.call(this,o,i)}),t.effects.define("puff","hide",function(e,i){var n=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,n,i)}),t.effects.define("pulsate","show",function(e,i){var n=t(this),s=e.mode,r="show"===s,o="hide"===s,a=r||o,l=2*(e.times||5)+(a?1:0),u=e.duration/l,c=0,h=1,d=n.queue().length;for(!r&&n.is(":visible")||(n.css("opacity",0).show(),c=1);h<l;h++)n.animate({opacity:c},u,e.easing),c=1-c;n.animate({opacity:c},u,e.easing),n.queue(i),t.effects.unshift(n,d,l+1)}),t.effects.define("shake",function(e,i){var n=1,s=t(this),r=e.direction||"left",o=e.distance||20,a=e.times||3,l=2*a+1,u=Math.round(e.duration/l),c="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,d={},p={},f={},g=s.queue().length;for(t.effects.createPlaceholder(s),d[c]=(h?"-=":"+=")+o,p[c]=(h?"+=":"-=")+2*o,f[c]=(h?"-=":"+=")+2*o,s.animate(d,u,e.easing);n<a;n++)s.animate(p,u,e.easing).animate(f,u,e.easing);s.animate(p,u,e.easing).animate(d,u/2,e.easing).queue(i),t.effects.unshift(s,g,l+1)}),t.effects.define("slide","show",function(e,i){var n,s,r=t(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=e.mode,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,h=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(r),
n=r.cssClip(),s=r.position()[u],d[u]=(c?-1:1)*h+s,d.clip=r.cssClip(),d.clip[o[l][1]]=d.clip[o[l][0]],"show"===a&&(r.cssClip(d.clip),r.css(u,d[u]),d.clip=n,d[u]=s),r.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});t.uiBackCompat!==!1&&(f=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)}));t.ui.focusable=function(i,n){var s,r,o,a,l,u=i.nodeName.toLowerCase();return"area"===u?(s=i.parentNode,r=s.name,!(!i.href||!r||"map"!==s.nodeName.toLowerCase())&&(o=t("img[usemap='#"+r+"']"),o.length>0&&o.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(u)?(a=!i.disabled,a&&(l=t(i).closest("fieldset")[0],l&&(a=!l.disabled))):a="a"===u?i.href||n:n,a&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}});t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function n(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===i?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each(function(){t(this).css(r,n(this,e)+"px")})},t.fn["outer"+i]=function(e,s){return"number"!=typeof e?o["outer"+i].call(this,e):this.each(function(){t(this).css(r,n(this,e,!0,s)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,n,s,r;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),n=this.attr("id"),n&&(e=this.eq(0).parents().last(),r=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(n)+"']",s=s.add(r.find(i).addBack(i))),this.pushStack(s))},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),n=null!=i;return(!n||i>=0)&&t.ui.focusable(e,n)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,n=this.options.icons;n&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+n.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),r=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:r=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[n-1]}r&&(t(e.target).attr("tabIndex",-1),t(r).attr("tabIndex",0),t(r).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),s=n.uniqueId().attr("id");e.attr("aria-controls",s),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,n,s=this.options,r=this.active,o=t(e.currentTarget),a=o[0]===r[0],l=a&&s.collapsible,u=l?t():o.next(),c=r.next(),h={oldHeader:r,oldPanel:c,newHeader:l?t():o,newPanel:u};e.preventDefault(),a&&!s.collapsible||this._trigger("beforeActivate",e,h)===!1||(s.active=!l&&this.headers.index(o),this.active=a?t():o,this._toggle(h),this._removeClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=r.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.activeHeader)._addClass(i,null,s.icons.header)),a||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=o.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.header)._addClass(n,null,s.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,s,r,o=this,a=0,l=t.css("box-sizing"),u=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},h=u&&c.down||c,d=function(){o._toggleComplete(i)};return"number"==typeof h&&(r=h),"string"==typeof h&&(s=h),s=s||h.easing||c.easing,r=r||h.duration||c.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:r,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:r,easing:s,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(a+=i.now):"content"!==o.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-a),a=0)}})):e.animate(this.hideProps,r,s,d):t.animate(this.showProps,r,s,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,s,r,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,n=this.previousFilter||"",r=!1,s=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),s===n?r=!0:s=n+s,i=this._filterMenuItems(s),i=r&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i,i.length||(s=String.fromCharCode(e.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(e,i),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,s,r,o=this,a=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+a),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),s=i.not(".ui-menu-item, .ui-menu-divider"),r=s.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(r,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s,r,o,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,r=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.outerHeight(),s<0?this.activeMenu.scrollTop(r+s):s+a>o&&this.activeMenu.scrollTop(r+s-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-s<0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+s>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}});t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,s=this.element[0].nodeName.toLowerCase(),r="textarea"===s,o="input"===s;this.isMultiLine=r||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[r||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var r=t.ui.keyCode;switch(s.keyCode){case r.PAGE_UP:e=!0,this._move("previousPage",s);break;case r.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case r.UP:e=!0,this._keyEvent("previous",s);break;case r.DOWN:e=!0,this._keyEvent("next",s);break;case r.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case r.TAB:this.menu.active&&this.menu.select(s);break;case r.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var n,s;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),n=i.item.attr("aria-label")||s.value,void(n&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}});var g=(t.ui.autocomplete,/ui-corner-([a-z]){2,6}/g);t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,s){var r,o={};if(s)return"controlgroupLabel"===n?(r=e.element.find(s),r.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(r,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(r.get()))):void(t.fn[n]&&(o=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(s).each(function(){var s=t(this),r=s[n]("instance"),a=t.widget.extend({},o);if("button"!==n||!s.parent(".ui-spinner").length){r||(r=s[n]()[n]("instance")),r&&(a.classes=e._resolveClassesValues(a.classes,r)),s[n](a);var l=s[n]("widget");t.data(l[0],"ui-controlgroup-data",r?r:s[n]("instance")),i.push(l[0])}})))}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),n=i.data("ui-controlgroup-data");n&&n[e]&&n[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",n=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,n)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={
classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var n={};return t.each(e,function(s){var r=i.options.classes[s]||"";r=t.trim(r.replace(g,"")),n[s]=(r+" "+e[s]).replace(/\s+/g," ")}),n},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var s=e[n]().data("ui-controlgroup-data");if(s&&i["_"+s.widgetName+"Options"]){var r=i["_"+s.widgetName+"Options"](1===e.length?"only":n);r.classes=i._resolveClassesValues(r.classes,s),s.element[s.widgetName](r)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}});t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,n=this,s=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){n.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(s.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(s.disabled=e),s},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,n="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(n):t(n).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e)return this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);t.ui.checkboxradio;t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var n="iconPosition"!==e,s=n?this.options.iconPosition:i,r="top"===s||"bottom"===s;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(s),r?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});t.ui.button;t.extend(t.ui,{datepicker:{version:"1.12.1"}});var m;t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,r;n=e.nodeName.toLowerCase(),s="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),r=this._newInst(t(e),s),r.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):s&&this._inlineDatepicker(e,r)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,r,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=t("<span class='"+this._appendClass+"'>"+o+"</span>"),e[a?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),"focus"!==n&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(r?t("<img/>").attr({src:r,alt:s,title:s}):s)),e[a?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,r=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},r.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,r){var a,l,u,c,h,d=this._dialogInst;return d||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),o(d.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),m===s&&(m=null))},_enableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,r.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||(n=s.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,r.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||(n=s.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,r,a,l,u=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):u?"all"===i?t.extend({},u.settings):this._get(u,i):null:(s=i||{},"string"==typeof i&&(s={},s[i]=n),void(u&&(this._curInst===u&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),o(u.settings,s),null!==a&&void 0!==s.dateFormat&&void 0===s.minDate&&(u.settings.minDate=this._formatDate(u,a)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,r),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,r=t.datepicker._getInst(e.target),o=!0,a=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",r.dpDiv),s[0]&&t.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,s[0]),i=t.datepicker._get(r,"onSelect"),i?(n=t.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(s){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,s,r,a,l,u,c;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),s=t.datepicker._get(n,"beforeShow"),r=s?s.apply(e,[e,n]):{},r!==!1&&(o(n.settings,r),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),a=!1,t(e).parents().each(function(){return a|="fixed"===t(this).css("position"),!a}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,a),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(u=t.datepicker._get(n,"showAnim"),c=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[u]?n.dpDiv.show(u,t.datepicker._get(n,"showOptions"),c):n.dpDiv[u||"show"](u?c:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),s=n[1],o=17,a=e.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&r.apply(a.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",o*s+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-o:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+r>u&&u>r?Math.abs(r+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,s,r,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),n=this._get(o,"duration"),s=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),n,s):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,r=this._get(o,"onClose"),r&&r.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i+("M"===n?this._get(r,"showCurrentAtPos"):0),n),this._updateDatepicker(r))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(s)},_selectDay:function(e,i,n,s){var r,o=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(r=this._getInst(o[0]),r.selectedDay=r.currentDay=t("a",s).html(),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),n=this._get(r,"onSelect"),n?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,r=this._get(e,"altField");r&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(r).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var s,r,o,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,_=!1,b=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s="y"===t?n:1,r=new RegExp("^\\d{"+s+","+n+"}"),o=i.substring(l).match(r);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},x=function(e,n,s){var r=-1,o=t.map(b(e)?s:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return r=e[0],l+=n.length,!1}),r!==-1)return r+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(_)"'"!==e.charAt(s)||b("'")?C():_=!1;else switch(e.charAt(s)){case"d":v=w("d");break;case"D":x("D",h,d);break;case"o":y=w("o");break;case"m":m=w("m");break;case"M":m=x("M",p,f);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"'":b("'")?C():_=!0;break;default:C()}if(l<i.length&&(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(g===-1?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=c?0:-100)),y>-1)for(m=1,v=y;;){if(r=this._getDaysInMonth(g,m-1),v<=r)break;m++,v-=r}if(a=this._daylightSavingAdjust(new Date(g,m-1,v)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},c=function(t,e,i,n){return l(t)?n[e]:i[e]},h="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?h+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":h+=u("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),s,r);break;case"o":h+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=u("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),o,a);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),r=s,o=this._getFormatConfig(t);try{r=this.parseDate(i,n,o)||s}catch(a){n=e?"":n}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=n?r.getDate():0,t.currentMonth=n?r.getMonth():0,t.currentYear=n?r.getFullYear():0,this._adjustInstDate(t)}},
_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},r=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var s=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,r=s.getFullYear(),o=s.getMonth(),a=s.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o))}u=l.exec(i)}return new Date(r,o,a)},o=null==i||""===i?n:"string"==typeof i?r(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return o=o&&"Invalid Date"===o.toString()?n:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,r=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),s===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,r,o,a,l,u,c,h,d,p,f,g,m,v,y,_,b,w,x,C,k,D,T,S,A,E,I,O,$,P,M,N,j,F,H,L,R=new Date,z=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),W=this._get(t,"isRTL"),U=this._get(t,"showButtonPanel"),B=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),Y=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),K=1!==Y[0]||1!==Y[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),J=t.drawMonth-V,tt=t.drawYear;if(J<0&&(J+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-Y[0]*Y[1]+1,Z.getDate())),e=Q&&e<Q?Q:e;this._daylightSavingAdjust(new Date(tt,J,1))>e;)J--,J<0&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-X,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>":B?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>",s=this._get(t,"nextText"),s=q?this.formatDate(s,this._daylightSavingAdjust(new Date(tt,J+X,1)),this._getFormatConfig(t)):s,r=this._canAdjustMonth(t,1,tt,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+s+"</span></a>":B?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+s+"</span></a>",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?G:z,o=q?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",u=U?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?l:"")+(this._isInRange(t,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(W?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",x=0;x<Y[0];x++){for(C="",this.maxRows=4,k=0;k<Y[1];k++){if(D=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),T=" ui-corner-all",S="",K){if(S+="<div class='ui-datepicker-group",Y[1]>1)switch(k){case 0:S+=" ui-datepicker-group-first",T=" ui-corner-"+(W?"right":"left");break;case Y[1]-1:S+=" ui-datepicker-group-last",T=" ui-corner-"+(W?"left":"right");break;default:S+=" ui-datepicker-group-middle",T=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===x?W?r:n:"")+(/all|right/.test(T)&&0===x?W?n:r:"")+this._generateMonthYearHeader(t,J,tt,Q,Z,x>0||k>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)E=(w+c)%7,A+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[E]+"'>"+p[E]+"</span></th>";for(S+=A+"</tr></thead><tbody>",I=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),O=(this._getFirstDayOfMonth(tt,J)-c+7)%7,$=Math.ceil((O+I)/7),P=K&&this.maxRows>$?this.maxRows:$,this.maxRows=P,M=this._daylightSavingAdjust(new Date(tt,J,1-O)),N=0;N<P;N++){for(S+="<tr>",j=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(M)+"</td>":"",w=0;w<7;w++)F=m?m.apply(t.input?t.input[0]:null,[M]):[!0,""],H=M.getMonth()!==J,L=H&&!y||!F[0]||Q&&M<Q||Z&&M>Z,j+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(M.getTime()===D.getTime()&&J===t.selectedMonth&&t._keyEvent||_.getTime()===M.getTime()&&_.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!v?"":" "+F[1]+(M.getTime()===G.getTime()?" "+this._currentClass:"")+(M.getTime()===z.getTime()?" ui-datepicker-today":""))+"'"+(H&&!v||!F[2]?"":" title='"+F[2].replace(/'/g,"&#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(H&&!v?"&#xa0;":L?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===z.getTime()?" ui-state-highlight":"")+(M.getTime()===G.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);S+=j+"</tr>"}J++,J>11&&(J=0,tt++),S+="</tbody></table>"+(K?"</div>"+(Y[0]>0&&k===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),C+=S}b+=C}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,s,r,o,a){var l,u,c,h,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(r||!m)b+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=n&&n.getFullYear()===i,u=s&&s.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=n.getMonth())&&(!u||c<=s.getMonth())&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");b+="</select>"}if(y||(_+=b+(!r&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",r||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(h[0]),g=Math.max(f,p(h[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!r&&m&&v?"":"&#xa0;")+b),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,r)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return n&&s>n?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||e.getTime()>=s.getTime())&&(!r||e.getTime()<=r.getTime())&&(!o||e.getFullYear()>=o)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1";var v=(t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);t(document).on("mouseup",function(){v=!1});t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!v){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),v=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,v=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,n){var s,r=t.ui[e].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,r=t.plugins[e];if(r&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<r.length;s++)t.options[r[s][0]]&&r[s][1].apply(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")};t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),n=t(e.target);n.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options,r=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(r).width()-this.helperProportions.width-this.margins.left,(t(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),i=t(s.containment),n=i[0],void(n&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,r,o=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),o.grid&&(s=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-o.grid[1]:s+o.grid[1]:s,r=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-o.grid[0]:r+o.grid[0]:r),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(e,i,n){t.each(n.sortables,function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&t.contains(r.element[0],this.element[0])&&(s=!1),s})),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},e.target=r.currentItem[0],r._mouseCapture(e,!0),r._mouseStart(e,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",e),n.dropped=r.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(e),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",e,r._uiHash(r)),r._mouseStop(e,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,r=!1,o=n.scrollParentNotHidden[0],a=n.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+o.offsetHeight-e.pageY<s.scrollSensitivity?o.scrollTop=r=o.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=r=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+o.offsetWidth-e.pageX<s.scrollSensitivity?o.scrollLeft=r=o.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=r=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(a).scrollTop()<s.scrollSensitivity?r=t(a).scrollTop(t(a).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<s.scrollSensitivity&&(r=t(a).scrollTop(t(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(a).scrollLeft()<s.scrollSensitivity?r=t(a).scrollLeft(t(a).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<s.scrollSensitivity&&(r=t(a).scrollLeft(t(a).scrollLeft()+s.scrollSpeed)))),r!==!1&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var s,r,o,a,l,u,c,h,d,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,_=y+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=n.snapElements[d].left-n.margins.left,u=l+n.snapElements[d].width,c=n.snapElements[d].top-n.margins.top,
h=c+n.snapElements[d].height,v<l-g||m>u+g||_<c-g||y>h+g||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(c-_)<=g,r=Math.abs(h-y)<=g,o=Math.abs(l-v)<=g,a=Math.abs(u-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left)),p=s||r||o||a,"outer"!==f.snapMode&&(s=Math.abs(c-y)<=g,r=Math.abs(h-_)<=g,o=Math.abs(l-m)<=g,a=Math.abs(u-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||r||o||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||r||o||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,r=n.options,o=t.makeArray(t(r.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});o.length&&(s=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each(function(e){t(this).css("zIndex",s+e)}),this.css("zIndex",s+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}});t.ui.draggable;t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,i,n,s,r,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)e=t.trim(n[i]),s="ui-resizable-"+e,r=t("<div>"),this._addClass(r,"ui-resizable-handle "+s),r.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(r);this._renderAxis=function(e){var i,n,s,r;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=r&&r[1]?r[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s,r=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),r.containment&&(i+=t(r.containment).scrollLeft()||0,n+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,s=this.originalMousePosition,r=this.axis,o=e.pageX-s.left||0,a=e.pageY-s.top||0,l=this._change[r];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,s,r,o,a,l,u=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),s=n&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,r=n?0:c.sizeDiff.width,o={width:c.helper.width()-r,height:c.helper.height()-s},a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(t.extend(o,{top:l,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,r,o=this.options;r={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),n>r.minHeight&&(r.minHeight=n),i<r.maxWidth&&(r.maxWidth=i),s<r.maxHeight&&(r.maxHeight=s)),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return r&&(t.width=e.minWidth),o&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),r&&u&&(t.left=a-e.minWidth),n&&u&&(t.left=a-e.maxWidth),o&&c&&(t.top=l-e.minHeight),s&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,s=this.originalPosition;return{top:s.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,r=s.length&&/textarea/i.test(s[0].nodeName),o=r&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=r?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},u=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,s,r,o,a,l=t(this).resizable("instance"),u=l.options,c=l.element,h=u.containment,d=h instanceof t?h.get(0):/parent/.test(h)?c.parent().get(0):h;d&&(l.containerElement=t(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=l._num(e.css("padding"+n))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,r=l.containerSize.width,o=l._hasScroll(d,"left")?d.scrollWidth:r,a=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:n.left,top:n.top,width:o,height:a}))},resize:function(e){var i,n,s,r,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,u=o.position,c=o._aspectRatio||e.shiftKey,h={top:0,left:0},d=o.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),u.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-h.left),c&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=a.helper?l.left:0),u.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),c&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?l.top:0),s=o.containerElement.get(0)===o.element.parent().get(0),r=/relative|absolute/.test(o.containerElement.css("position")),s&&r?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-h.left:o.offset.left-l.left)),n=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-h.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,c&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),n+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-n,c&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.containerPosition,r=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var n=t(this).resizable("instance"),s=n.options,r=n.originalSize,o=n.originalPosition,a={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0};t(s.alsoResize).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},r=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||null)}),e.css(s)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,s=i.size,r=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,u=l[0]||1,c=l[1]||1,h=Math.round((s.width-r.width)/u)*u,d=Math.round((s.height-r.height)/c)*c,p=r.width+h,f=r.height+d,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=u),y&&(f+=c),g&&(p-=u),m&&(f-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=o.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=o.left-h):((f-c<=0||p-u<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=o.top-d):(f=c-e.height,i.size.height=f,i.position.top=o.top+r.height-f),p-u>0?(i.size.width=p,i.position.left=o.left-h):(p=u-e.width,i.size.width=p,i.position.left=o.left+r.width-p))}});t.ui.resizable;t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),r=Math.max.apply(null,s);return r>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",r+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),s=i.filter(":last");e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){s.trigger("focus")}),e.preventDefault()):(this._delay(function(){n.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,function(i,n){var s,r;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),s=n.click,r={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,t("<button></button>",n).button(r).appendTo(e.uiButtonSet).on("click",function(){s.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(s))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(s,r){var o=r.offset.left-i.document.scrollLeft(),a=r.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(a>=0?"+":"")+a,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,e(r))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,s=n.resizable,r=this.uiDialog.css("position"),o="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,s){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(s))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(s,r){var o=i.uiDialog.offset(),a=o.left-i.document.scrollLeft(),l=o.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,e(r))}}).css("position",r)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);i!==-1&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,i){var n,s,r=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(n=r.is(":data(ui-draggable)"),n&&!i&&r.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(s=r.is(":data(ui-resizable)"),s&&!i&&r.resizable("destroy"),s&&"string"==typeof i&&r.resizable("option","handles",i),s||i===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{
mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});t.ui.dialog;t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&y(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return s=!0,!1}),!s&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var y=t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,s){if(!i.offset)return!1;var r=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,a=r+e.helperProportions.width,l=o+e.helperProportions.height,u=i.offset.left,c=i.offset.top,h=u+i.proportions().width,d=c+i.proportions().height;switch(n){case"fit":return u<=r&&a<=h&&c<=o&&l<=d;case"intersect":return u<r+e.helperProportions.width/2&&a-e.helperProportions.width/2<h&&c<o+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return t(s.pageY,c,i.proportions().height)&&t(s.pageX,u,i.proportions().width);case"touch":return(o>=c&&o<=d||l>=c&&l<=d||o<c&&l>d)&&(r>=u&&r<=h||a>=u&&a<=h||r<u&&a>h);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,s,r=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<r.length;n++)if(!(r[n].options.disabled||e&&!r[n].accept.call(r[n].element[0],e.currentItem||e.element))){for(s=0;s<a.length;s++)if(a[s]===r[n].element[0]){r[n].proportions().height=0;continue t}r[n].visible="none"!==r[n].element.css("display"),r[n].visible&&("mousedown"===o&&r[n]._activate.call(r[n],i),r[n].offset=r[n].element.offset(),r[n].proportions({width:r[n].element[0].offsetWidth,height:r[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&y(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,r,o=y(e,this,this.options.tolerance,i),a=!o&&this.isover?"isout":o&&!this.isover?"isover":null;a&&(this.options.greedy&&(s=this.options.scope,r=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===s}),r.length&&(n=t(r[0]).droppable("instance"),n.greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),n=i.offset(),s={left:n.left-e.elementPos.left,top:n.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,s=t.data(this,"selectable-item");if(s)return n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,r=this.opos[0],o=this.opos[1],a=e.pageX,l=e.pageY;return r>a&&(i=a,a=r,r=i),o>l&&(i=l,l=o,o=i),this.helper.css({left:r,top:o,width:a-r,height:l-o}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1,c={};i&&i.element!==n.element[0]&&(c.left=i.left+n.elementPos.left,c.right=i.right+n.elementPos.left,c.top=i.top+n.elementPos.top,c.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?u=!(c.left>a||c.right<r||c.top>l||c.bottom<o):"fit"===s.tolerance&&(u=c.left>r&&c.right<a&&c.top>o&&c.bottom<l),u?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var n=this,s="";t.each(i,function(i,r){var o;r.optgroup!==s&&(o=t("<li>",{text:r.optgroup}),n._addClass(o,"ui-selectmenu-optgroup","ui-menu-divider"+(r.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),o.appendTo(e),s=r.optgroup),n._renderItemData(e,r)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>"),s=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0),n.length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,n=[];e.each(function(e,s){n.push(i._parseOption(t(s),e))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,s=this.element.find(".ui-slider-handle"),r="<span tabindex='0'></span>",o=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;e<i;e++)o.push(r);this.handles=s.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,r,o,a,l,u,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(s>i||s===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(s=i,r=t(this),o=e)}),a=this._start(e,o),a!==!1&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(r,null,"ui-state-active"),r.trigger("focus"),l=r.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-r.width()/2,top:e.pageY-l.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,r;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),r=this._valueMin()+n*s,this._trimAlignValue(r)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s,r=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),r=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(s,i):Math.max(s,i)),o[e]=i),i!==r&&(n=this._trigger("slide",t,this._uiHash(e,i,o)),n!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,s=arguments[0],r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(s[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=s-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,n=Math.round((t-e)/i)*i;t=n+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return i===-1?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,s,r,o=this.options.range,a=this.options,l=this,u=!this._animateOff&&a.animate,c={};this._hasMultipleValues()?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](c,a.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),s=this._valueMin(),r=this._valueMax(),i=r!==s?(n-s)/(r-s)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](c,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var i,n,s,r,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),
i=this._start(e,o),i===!1))return}switch(r=this.options.step,n=s=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;s=this._trimAlignValue(n+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;s=this._trimAlignValue(n-r)}this._slide(e,o,s)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1}),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var s,r,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",o.cursor),this.storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(r)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,r,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-this.document.scrollTop()<o.scrollSensitivity?a=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<o.scrollSensitivity&&(a=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),e.pageX-this.document.scrollLeft()<o.scrollSensitivity?a=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(a=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),a!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],s=n.item[0],r=this._intersectsWithPointer(n),r&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,o={};r&&"x"!==r||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,o=r+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||n+u>a&&n+u<l,d="y"===this.options.axis||e+c>r&&e+c<o,p=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<o&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=n&&s;return!!r&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,s,r,o,a=[],l=[],u=this._connectWith();if(u&&e)for(n=u.length-1;n>=0;n--)for(r=t(u[n],this.document[0]),s=r.length-1;s>=0;s--)o=t.data(r[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,r,o,a,l,u,c=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=t(d[i],this.document[0]),n=s.length-1;n>=0;n--)r=t.data(s[n],this.widgetFullName),r&&r!==this&&!r.options.disabled&&(h.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=h.length-1;i>=0;i--)for(o=h[i][1],a=h[i][0],n=0,u=a.length;n<u;n++)l=t(a[n]),l.data(this.widgetName+"-item",o),c.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,s,r;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,s,r,o,a,l,u,c,h,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,c=d.floating||this._isFloating(this.currentItem),o=c?"left":"top",a=c?"width":"height",h=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[o],u=!1,e[h]-l>this.items[n][a]/2&&(u=!0),Math.abs(e[h]-l)<s&&(s=Math.abs(e[h]-l),r=this.items[n],this.direction=u?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,r=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<s.length;n++)s[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}});t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,n){var s=i.attr(n);null!=s&&s.length&&(e[n]=s)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return this._start(e)!==!1&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&this._trigger("start",t)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return i===-1?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,n,s;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:a(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:a(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:a(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:a(function(t){
this._stepUp((t||1)*this.options.page)}),pageDown:a(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void a(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.uiBackCompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});t.ui.spinner;t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,n;i=e.href.replace(t,""),n=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(s){}try{n=decodeURIComponent(n)}catch(s){}return e.hash.length>1&&i===n}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,s){if(t(s).attr("aria-controls")===n)return e=i,!1}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&e!==-1||(e=!!this.tabs.length&&0)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),e===-1&&(e=!i&&0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>s&&(e=0),e<0&&(e=s),e}for(var s=this.tabs.length-1;t.inArray(n(),this.options.disabled)!==-1;)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,n){var s,r,o,a=t(n).uniqueId().attr("id"),l=t(n).closest("li"),u=l.attr("aria-controls");e._isLocal(n)?(s=n.hash,o=s.substring(1),r=e.element.find(e._sanitizeSelector(s))):(o=l.attr("aria-controls")||t({}).uniqueId()[0].id,s="#"+o,r=e.element.find(s),r.length||(r=e._createPanel(o),r.insertAfter(e.panels[i-1]||e.tablist)),r.attr("aria-live","polite")),r.length&&(e.panels=e.panels.add(r)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":o,"aria-labelledby":a}),r.attr("aria-labelledby",a)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,n,s;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),s=0;n=this.tabs[s];s++)i=t(n),e===!0||t.inArray(s,e)!==-1?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget),r=s.closest("li"),o=r[0]===n[0],a=o&&i.collapsible,l=a?t():this._getPanelForTab(r),u=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:u,newTab:a?t():r,newPanel:l};e.preventDefault(),r.hasClass("ui-state-disabled")||r.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=!a&&this.tabs.index(r),this.active=o?t():r,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(r),e),this._toggle(e,c))},_toggle:function(e,i){function n(){r.running=!1,r._trigger("activate",e,i)}function s(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&r.options.show?r._show(o,r.options.show,n):(o.show(),n())}var r=this,o=i.newPanel,a=i.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),s()),a.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&a.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),t.inArray(e,i)!==-1)return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,s=this.tabs.eq(e),r=s.find(".ui-tabs-anchor"),o=this._getPanelForTab(s),a={tab:s,panel:o},l=function(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),o.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr};this._isLocal(r[0])||(this.xhr=t.ajax(this._ajaxSettings(r,i,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(t,e,s){setTimeout(function(){o.html(t),n._trigger("load",i,a),l(s,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,r){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:r},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});t.ui.tabs;t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,n);s!==-1&&n.splice(s,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var n=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n.element[0],e.close(s,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,s=this,r=e?e.type:null;return"string"==typeof n||n.nodeType||n.jquery?this._open(e,t,n):(i=n.call(t[0],function(i){s._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=r),this._open(e,t,i))})}),void(i&&this._open(e,t,i)))},_open:function(e,i,n){function s(t){u.of=t,o.is(":hidden")||o.position(u)}var r,o,a,l,u=t.extend({},this.options.position);if(n){if(r=this._find(i))return void r.tooltip.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),r=this._tooltip(i),o=r.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),l=t("<div>").html(o.find(".ui-tooltip-content").html()),l.removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:s}),s(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval(function(){o.is(":visible")&&(s(u.of),clearInterval(a))},t.fx.interval)),this._trigger("open",e,{tooltip:o})}},_registerCloseHandlers:function(e,i){var n={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,s=t(e?e.currentTarget:this.element),r=this._find(s);return r?(i=r.tooltip,void(r.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),r.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),r.closing=!0,this._trigger("close",e,{tooltip:i}),r.hiding||(r.closing=!1)))):void s.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),n=t("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur"),r=n.element;s.target=s.currentTarget=r[0],e.close(s,!0),t("#"+i).remove(),r.data("ui-tooltip-title")&&(r.attr("title")||r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});t.ui.tooltip}),function(e){e.fn.extend({slimScroll:function(i){var n={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},s=e.extend(n,i);return this.each(function(){function n(t){if(c){var t=t||window.event,i=0;t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3);var n=t.target||t.srcTarget||t.srcElement;e(n).closest("."+s.wrapperClass).is(w.parent())&&r(i,!0),t.preventDefault&&!b&&t.preventDefault(),b||(t.returnValue=!1)}}function r(t,e,i){b=!1;var n=t,r=w.outerHeight()-S.outerHeight();if(e&&(n=parseInt(S.css("top"))+t*parseInt(s.wheelStep)/100*S.outerHeight(),n=Math.min(Math.max(n,0),r),n=t>0?Math.ceil(n):Math.floor(n),S.css({top:n+"px"})),m=parseInt(S.css("top"))/(w.outerHeight()-S.outerHeight()),n=m*(w[0].scrollHeight-w.outerHeight()),i){n=t;var o=n/w[0].scrollHeight*w.outerHeight();o=Math.min(Math.max(o,0),r),S.css({top:o+"px"})}w.scrollTop(n),w.trigger("slimscrolling",~~n),l(),u()}function o(t){window.addEventListener?(t.addEventListener("DOMMouseScroll",n,!1),t.addEventListener("mousewheel",n,!1)):document.attachEvent("onmousewheel",n)}function a(){g=Math.max(w.outerHeight()/w[0].scrollHeight*w.outerHeight(),_),S.css({height:g+"px"});var t=g==w.outerHeight()?"none":"block";S.css({display:t})}function l(){if(a(),clearTimeout(p),m==~~m){if(b=s.allowPageScroll,v!=m){var t=0==~~m?"top":"bottom";w.trigger("slimscroll",t)}}else b=!1;return v=m,g>=w.outerHeight()?void(b=!0):(S.stop(!0,!0).fadeIn("fast"),void(s.railVisible&&T.stop(!0,!0).fadeIn("fast")))}function u(){s.alwaysVisible||(p=setTimeout(function(){s.disableFadeOut&&c||h||d||(S.fadeOut("slow"),T.fadeOut("slow"))},1e3))}var c,h,d,p,f,g,m,v,y="<div></div>",_=30,b=!1,w=e(this);if(w.parent().hasClass(s.wrapperClass)){var x=w.scrollTop();if(S=w.siblings("."+s.barClass),T=w.siblings("."+s.railClass),a(),e.isPlainObject(i)){if("height"in i&&"auto"==i.height){w.parent().css("height","auto"),w.css("height","auto");var C=w.parent().parent().height();w.parent().css("height",C),w.css("height",C)}else if("height"in i){var k=i.height;w.parent().css("height",k),w.css("height",k)}if("scrollTo"in i)x=parseInt(s.scrollTo);else if("scrollBy"in i)x+=parseInt(s.scrollBy);else if("destroy"in i)return S.remove(),T.remove(),void w.unwrap();r(x,!1,!0)}}else if(!(e.isPlainObject(i)&&"destroy"in i)){s.height="auto"==s.height?w.parent().height():s.height;var D=e(y).addClass(s.wrapperClass).css({position:"relative",overflow:"hidden",width:s.width,height:s.height});w.css({overflow:"hidden",width:s.width,height:s.height});var T=e(y).addClass(s.railClass).css({width:s.size,height:"100%",position:"absolute",top:0,display:s.alwaysVisible&&s.railVisible?"block":"none","border-radius":s.railBorderRadius,background:s.railColor,opacity:s.railOpacity,zIndex:90}),S=e(y).addClass(s.barClass).css({background:s.color,width:s.size,position:"absolute",top:0,opacity:s.opacity,display:s.alwaysVisible?"block":"none","border-radius":s.borderRadius,BorderRadius:s.borderRadius,MozBorderRadius:s.borderRadius,WebkitBorderRadius:s.borderRadius,zIndex:99}),A="right"==s.position?{right:s.distance}:{left:s.distance};T.css(A),S.css(A),w.wrap(D),w.parent().append(S),w.parent().append(T),s.railDraggable&&S.bind("mousedown",function(i){var n=e(document);return d=!0,t=parseFloat(S.css("top")),pageY=i.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,S.css("top",currTop),r(0,S.position().top,!1)}),n.bind("mouseup.slimscroll",function(t){d=!1,u(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),T.hover(function(){l()},function(){u()}),S.hover(function(){h=!0},function(){h=!1}),w.hover(function(){c=!0,l(),u()},function(){c=!1,u()}),w.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageY)}),w.bind("touchmove",function(t){if(b||t.originalEvent.preventDefault(),t.originalEvent.touches.length){var e=(f-t.originalEvent.touches[0].pageY)/s.touchScrollStep;r(e,!0),f=t.originalEvent.touches[0].pageY}}),a(),"bottom"===s.start?(S.css({top:w.outerHeight()-S.outerHeight()}),r(0,!0)):"top"!==s.start&&(r(e(s.start).position().top,null,!0),s.alwaysVisible||S.hide()),o(this)}}),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(t,e){"use strict";t.ajaxPrefilter(function(t,e,i){if(t.iframe)return t.originalURL=t.url,"iframe"}),t.ajaxTransport("iframe",function(e,i,n){function s(){l.each(function(e,i){var n=t(i);n.data("clone").replaceWith(n)}),r.remove(),o.one("load",function(){o.remove()}),o.attr("src","about:blank")}var r=null,o=null,a="iframe-"+t.now(),l=t(e.files).filter(":file:enabled"),u=null,c=null;if(e.dataTypes.shift(),e.data=i.data,l.length)return r=t("<form enctype='multipart/form-data' method='post'></form>").hide().attr({action:e.originalURL,target:a}),"string"==typeof e.data&&e.data.length>0&&t.error("data must not be serialized"),t.each(e.data||{},function(e,i){t.isPlainObject(i)&&(e=i.name,i=i.value),t("<input type='hidden' />").attr({name:e,value:i}).appendTo(r)}),t("<input type='hidden' value='IFrame' name='X-Requested-With' />").appendTo(r),c=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", */*; q=0.01":""):e.accepts["*"],t("<input type='hidden' name='X-HTTP-Accept'>").attr("value",c).appendTo(r),u=l.after(function(e){var i=t(this),n=i.clone().prop("disabled",!0);return i.data("clone",n),n}).next(),l.appendTo(r),{send:function(e,i){o=t("<iframe src='about:blank' name='"+a+"' id='"+a+"' style='display:none'></iframe>"),o.one("load",function(){o.one("load",function(){var t=this.contentWindow?this.contentWindow.document:this.contentDocument?this.contentDocument:this.document,e=t.documentElement?t.documentElement:t.body,n=e.getElementsByTagName("textarea")[0],r=n&&n.getAttribute("data-type")||null,o=n&&n.getAttribute("data-status")||200,a=n&&n.getAttribute("data-statusText")||"OK",l={html:e.innerHTML,text:r?n.value:e?e.textContent||e.innerText:null};s(),i(o,a,l,r?"Content-Type: "+r:null)}),r[0].submit()}),t("body").append(r,o)},abort:function(){null!==o&&(o.unbind("load").attr("src","about:blank"),s())}}})}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery-ui/ui/widget"],t):"object"==typeof exports?t(require("jquery"),require("./vendor/jquery.ui.widget")):t(window.jQuery)}(function(t){"use strict";function e(e){var i="dragover"===e;return function(n){n.dataTransfer=n.originalEvent&&n.originalEvent.dataTransfer;var s=n.dataTransfer;s&&t.inArray("Files",s.types)!==-1&&this._trigger(e,t.Event(e,{delegatedEvent:n}))!==!1&&(n.preventDefault(),i&&(s.dropEffect="copy"))}}t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file">').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,i){return e=this.messages[e]||e.toString(),i&&t.each(i,function(t,i){e=e.replace("{"+t+"}",i)}),e},formData:function(t){return t.serializeArray()},add:function(e,i){return!e.isDefaultPrevented()&&void((i.autoUpload||i.autoUpload!==!1&&t(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,i){var n=t-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(e-this.loaded)*(1e3/n)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var i;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(i=[],t.each(e.formData,function(t,e){i.push({name:t,value:e})}),i):[]},_getTotal:function(e){var i=0;return t.each(e,function(t,e){i+=e.size||1}),i},_initProgressObject:function(e){var i={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,i):e._progress=i},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)t._response.hasOwnProperty(e)&&delete t._response[e];else t._response={}},_onProgress:function(e,i){if(e.lengthComputable){var n,s=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&s-i._time<i.progressInterval&&e.loaded!==e.total)return;i._time=s,n=Math.floor(e.loaded/e.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=n-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(s,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=n,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(s,n,i.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),i),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var i=this,n=e.xhr?e.xhr():t.ajaxSettings.xhr();n.upload&&(t(n.upload).bind("progress",function(t){var n=t.originalEvent;t.lengthComputable=n.lengthComputable,t.loaded=n.loaded,t.total=n.total,i._onProgress(t,e)}),e.xhr=function(){return n})},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_initXHRData:function(e){var i,n=this,s=e.files[0],r=e.multipart||!t.support.xhrFileUpload,o="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),r&&!e.blob&&this._isInstanceOf("File",s)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(s.name)+'"'),r?t.support.xhrFormDataFileUpload&&(e.postMessage?(i=this._getFormData(e),e.blob?i.push({name:o,value:e.blob}):t.each(e.files,function(n,s){i.push({name:"array"===t.type(e.paramName)&&e.paramName[n]||o,value:s})})):(n._isInstanceOf("FormData",e.formData)?i=e.formData:(i=new FormData,t.each(this._getFormData(e),function(t,e){i.append(e.name,e.value)})),e.blob?i.append(o,e.blob,s.name):t.each(e.files,function(s,r){(n._isInstanceOf("File",r)||n._isInstanceOf("Blob",r))&&i.append("array"===t.type(e.paramName)&&e.paramName[s]||o,r,r.uploadName||r.name)})),e.data=i):(e.contentType=s.type||"application/octet-stream",e.data=e.blob||s),e.blob=null},_initIframeSettings:function(e){var i=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&i&&i!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var i=t(e.fileInput),n=e.paramName;return n?t.isArray(n)||(n=[n]):(n=[],i.each(function(){for(var e=t(this),i=e.prop("name")||"files[]",s=(e.prop("files")||[1]).length;s;)n.push(i),s-=1}),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var i=t.extend({},this.options,e);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,i,n){var s=t.Deferred(),r=s.promise();return i=i||this.options.context||r,e===!0?s.resolveWith(i,n):e===!1&&s.rejectWith(i,n),r.abort=s.promise,this._enhancePromise(r)},_addConvenienceMethods:function(e,i){var n=this,s=function(e){return t.Deferred().resolveWith(n,e).promise()};i.process=function(e,r){return(e||r)&&(i._processQueue=this._processQueue=(this._processQueue||s([this])).then(function(){return i.errorThrown?t.Deferred().rejectWith(n,[i]).promise():s(arguments)}).then(e,r)),this._processQueue||s([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=n._trigger("submit",t.Event("submit",{
delegatedEvent:e}),this)!==!1&&n._onSend(e,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),i=e&&e.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(e,i){e.uploadedBytes=e.uploadedBytes||0;var n,s,r=this,o=e.files[0],a=o.size,l=e.uploadedBytes,u=e.maxChunkSize||a,c=this._blobSlice,h=t.Deferred(),d=h.promise();return!(!(this._isXHRUpload(e)&&c&&(l||u<a))||e.data)&&(!!i||(l>=a?(o.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",o.error])):(s=function(){var i=t.extend({},e),d=i._progress.loaded;i.blob=c.call(o,l,l+u,o.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+a,r._initXHRData(i),r._initProgressListener(i),n=(r._trigger("chunksend",null,i)!==!1&&t.ajax(i)||r._getXHRPromise(!1,i.context)).done(function(n,o,u){l=r._getUploadedBytes(u)||l+i.chunkSize,d+i.chunkSize-i._progress.loaded&&r._onProgress(t.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),e.uploadedBytes=i.uploadedBytes=l,i.result=n,i.textStatus=o,i.jqXHR=u,r._trigger("chunkdone",null,i),r._trigger("chunkalways",null,i),l<a?s():h.resolveWith(i.context,[n,o,u])}).fail(function(t,e,n){i.jqXHR=t,i.textStatus=e,i.errorThrown=n,r._trigger("chunkfail",null,i),r._trigger("chunkalways",null,i),h.rejectWith(i.context,[t,e,n])})},this._enhancePromise(d),d.abort=function(){return n.abort()},s(),d)))},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,i,n,s){var r=s._progress.total,o=s._response;s._progress.loaded<r&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:r,total:r}),s),o.result=s.result=e,o.textStatus=s.textStatus=i,o.jqXHR=s.jqXHR=n,this._trigger("done",null,s)},_onFail:function(t,e,i,n){var s=n._response;n.recalculateProgress&&(this._progress.loaded-=n._progress.loaded,this._progress.total-=n._progress.total),s.jqXHR=n.jqXHR=t,s.textStatus=n.textStatus=e,s.errorThrown=n.errorThrown=i,this._trigger("fail",null,n)},_onAlways:function(t,e,i,n){this._trigger("always",null,n)},_onSend:function(e,i){i.submit||this._addConvenienceMethods(e,i);var n,s,r,o,a=this,l=a._getAJAXSettings(i),u=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,n=n||((s||a._trigger("send",t.Event("send",{delegatedEvent:e}),l)===!1)&&a._getXHRPromise(!1,l.context,s)||a._chunkedUpload(l)||t.ajax(l)).done(function(t,e,i){a._onDone(t,e,i,l)}).fail(function(t,e,i){a._onFail(t,e,i,l)}).always(function(t,e,i){if(a._onAlways(t,e,i,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var n=a._slots.shift();n;){if("pending"===a._getDeferredState(n)){n.resolve();break}n=a._slots.shift()}0===a._active&&a._trigger("stop")})};return this._beforeSend(e,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(r=t.Deferred(),this._slots.push(r),o=r.then(u)):(this._sequence=this._sequence.then(u,u),o=this._sequence),o.abort=function(){return s=[void 0,"abort","abort"],n?n.abort():(r&&r.rejectWith(l.context,s),u())},this._enhancePromise(o)):u()},_onAdd:function(e,i){var n,s,r,o,a=this,l=!0,u=t.extend({},this.options,i),c=i.files,h=c.length,d=u.limitMultiFileUploads,p=u.limitMultiFileUploadSize,f=u.limitMultiFileUploadSizeOverhead,g=0,m=this._getParamName(u),v=0;if(!h)return!1;if(p&&void 0===c[0].size&&(p=void 0),(u.singleFileUploads||d||p)&&this._isXHRUpload(u))if(u.singleFileUploads||p||!d)if(!u.singleFileUploads&&p)for(r=[],n=[],o=0;o<h;o+=1)g+=c[o].size+f,(o+1===h||g+c[o+1].size+f>p||d&&o+1-v>=d)&&(r.push(c.slice(v,o+1)),s=m.slice(v,o+1),s.length||(s=m),n.push(s),v=o+1,g=0);else n=m;else for(r=[],n=[],o=0;o<h;o+=d)r.push(c.slice(o,o+d)),s=m.slice(o,o+d),s.length||(s=m),n.push(s);else r=[c],n=[m];return i.originalFiles=c,t.each(r||c,function(s,o){var u=t.extend({},i);return u.files=r?o:[o],u.paramName=n[s],a._initResponseObject(u),a._initProgressObject(u),a._addConvenienceMethods(e,u),l=a._trigger("add",t.Event("add",{delegatedEvent:e}),u)}),l},_replaceFileInput:function(e){var i=e.fileInput,n=i.clone(!0),s=i.is(document.activeElement);e.fileInputClone=n,t("<form></form>").append(n)[0].reset(),i.after(n).detach(),s&&n.focus(),t.cleanData(i.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(t,e){return e===i[0]?n[0]:e}),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(e,i){var n,s=this,r=t.Deferred(),o=[],a=function(t){t&&!t.entry&&(t.entry=e),r.resolve([t])},l=function(t){s._handleFileTreeEntries(t,i+e.name+"/").done(function(t){r.resolve(t)}).fail(a)},u=function(){n.readEntries(function(t){t.length?(o=o.concat(t),u()):l(o)},a)};return i=i||"",e.isFile?e._file?(e._file.relativePath=i,r.resolve(e._file)):e.file(function(t){t.relativePath=i,r.resolve(t)},a):e.isDirectory?(n=e.createReader(),u()):r.resolve([]),r.promise()},_handleFileTreeEntries:function(e,i){var n=this;return t.when.apply(t,t.map(e,function(t){return n._handleFileTreeEntry(t,i)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(e){e=e||{};var i=e.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(t.map(i,function(t){var e;return t.webkitGetAsEntry?(e=t.webkitGetAsEntry(),e&&(e._file=t.getAsFile()),e):t.getAsEntry()})):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){e=t(e);var i,n,s=e.prop("webkitEntries")||e.prop("entries");if(s&&s.length)return this._handleFileTreeEntries(s);if(i=t.makeArray(e.prop("files")),i.length)void 0===i[0].name&&i[0].fileName&&t.each(i,function(t,e){e.name=e.fileName,e.size=e.fileSize});else{if(n=e.prop("value"),!n)return t.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return t.Deferred().resolve(i).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(e)},_onChange:function(e){var i=this,n={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(n.fileInput).always(function(s){n.files=s,i.options.replaceFileInput&&i._replaceFileInput(n),i._trigger("change",t.Event("change",{delegatedEvent:e}),n)!==!1&&i._onAdd(e,n)})},_onPaste:function(e){var i=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,n={files:[]};i&&i.length&&(t.each(i,function(t,e){var i=e.getAsFile&&e.getAsFile();i&&n.files.push(i)}),this._trigger("paste",t.Event("paste",{delegatedEvent:e}),n)!==!1&&this._onAdd(e,n))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var i=this,n=e.dataTransfer,s={};n&&n.files&&n.files.length&&(e.preventDefault(),this._getDroppedFiles(n).always(function(n){s.files=n,i._trigger("drop",t.Event("drop",{delegatedEvent:e}),s)!==!1&&i._onAdd(e,s)}))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(e,i){var n=t.inArray(e,this._specialOptions)!==-1;n&&this._destroyEventHandlers(),this._super(e,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),i=e.pop();return e.shift(),new RegExp(e.join("/"),i)},_isRegExpOption:function(e,i){return"url"!==e&&"string"===t.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var e=this,i=this.options,n=this.element.data();t.each(this.element[0].attributes,function(t,s){var r,o=s.name.toLowerCase();/^data-/.test(o)&&(o=o.slice(5).replace(/-[a-z]/g,function(t){return t.charAt(1).toUpperCase()}),r=n[o],e._isRegExpOption(o,r)&&(r=e._getRegExp(r)),i[o]=r)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var i=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always(function(t){e.files=t,i._onAdd(null,e)}):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var i,n,s=this,r=t.Deferred(),o=r.promise();return o.abort=function(){return n=!0,i?i.abort():(r.reject(null,"abort","abort"),o)},this._getFileInputFiles(e.fileInput).always(function(t){if(!n){if(!t.length)return void r.reject();e.files=t,i=s._onSend(null,e),i.then(function(t,e,i){r.resolve(t,e,i)},function(t,e,i){r.reject(t,e,i)})}}),this._enhancePromise(o)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}})}),function(){"use strict";function t(e,n){function s(t,e){return function(){return t.apply(e,arguments)}}var r;if(n=n||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=n.touchBoundary||10,this.layer=e,this.tapDelay=n.tapDelay||200,this.tapTimeout=n.tapTimeout||700,!t.notNeeded(e)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,l=0,u=o.length;l<u;l++)a[o[l]]=s(a[o[l]],a);i&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,i,n){var s=Node.prototype.removeEventListener;"click"===t?s.call(e,t,i.hijacked||i,n):s.call(e,t,i,n)},e.addEventListener=function(t,i,n){var s=Node.prototype.addEventListener;"click"===t?s.call(e,t,i.hijacked||(i.hijacked=function(t){t.propagationStopped||i(t)}),n):s.call(e,t,i,n)}),"function"==typeof e.onclick&&(r=e.onclick,e.addEventListener("click",function(t){r(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!e,n=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,s=n&&/OS 4_\d(_\d)?/.test(navigator.userAgent),r=n&&/OS [6-7]_\d/.test(navigator.userAgent),o=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(n&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var i,n;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),n=e.changedTouches[0],i=document.createEvent("MouseEvents"),i.initMouseEvent(this.determineEventType(t),!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},t.prototype.determineEventType=function(t){return i&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;n&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,i;if(e=t.fastClickScrollParent,!e||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,i,r;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],n){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!s){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,o,a,l,u,c=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,o=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,r&&(u=t.changedTouches[0],c=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||c,c.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=c.tagName.toLowerCase(),"label"===a){if(e=this.findControl(c)){if(this.focus(c),i)return!1;c=e}}else if(this.needsFocus(c))return t.timeStamp-o>100||n&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(c),this.sendClick(c,t),n&&"select"===a||(this.targetElement=null,t.preventDefault()),!1);return!(!n||s||(l=c.fastClickScrollParent,!l||l.fastClickLastScrollTop===l.scrollTop))||(this.needsClick(c)||(t.preventDefault(),this.sendClick(c,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;i&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,n,s,r;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!i)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(o&&(s=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),s[1]>=10&&s[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(r=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(r>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,i){return new t(e,i)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(),function(t){var e="undefined"==typeof window?this:window;"object"==typeof exports?module.exports=t(e.jQuery,e):"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,e)}):e.jQuery&&!e.jQuery.fn.colorpicker&&t(e.jQuery,e)}(function(t,e){"use strict";var i=t,n=function(t,e,s,r){this.fallbackValue=s?s&&"undefined"!=typeof s.h?s:this.value={h:0,s:0,b:0,a:1}:null,this.fallbackFormat=r?r:"rgba",this.value=this.fallbackValue,this.origFormat=null,this.predefinedColors=e?e:{},this.colors=i.extend({},n.webColors,this.predefinedColors),t&&("undefined"!=typeof t.h?this.value=t:this.setColor(String(t))),this.value||(this.value={h:0,s:0,b:0,a:1})};n.webColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"transparent"},n.prototype={constructor:n,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return"number"==typeof t?t:isNaN(t)||null===t||""===t||void 0===t?1:""===t?0:"undefined"!=typeof t.toLowerCase?(t.match(/^\./)&&(t="0"+t),Math.ceil(100*parseFloat(t))/100):1},isTransparent:function(t){return!(!t||!("string"==typeof t||t instanceof String))&&(t=t.toLowerCase().trim(),"transparent"===t||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return 0===t.r&&0===t.g&&0===t.b&&0===t.a},setColor:function(t){if(t=t.toLowerCase().trim()){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var e=this.parse(t);e?(this.value=this.value={h:e.h,s:e.s,b:e.b,a:e.a},this.origFormat||(this.origFormat=e.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt(100*(1-t),10)/100*100)/100},toRGB:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a),t*=360;var s,r,o,a,l;return t=t%360/60,l=i*e,a=l*(1-Math.abs(t%2-1)),s=r=o=i-l,t=~~t,s+=[l,a,0,0,a,l][t],r+=[a,l,l,a,0,0][t],o+=[0,0,a,l,l,a][t],{r:Math.round(255*s),g:Math.round(255*r),b:Math.round(255*o),a:n}},toHex:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a);var s=this.toRGB(t,e,i,n);return this.rgbaIsTransparent(s)?"transparent":"#"+((1<<24)+(parseInt(s.r)<<16)+(parseInt(s.g)<<8)+parseInt(s.b)).toString(16).slice(1)},toHSL:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a);var s=t,r=(2-e)*i,o=e*i;return o/=r>0&&r<=1?r:2-r,r/=2,o>1&&(o=1),{h:isNaN(s)?0:s,s:isNaN(o)?0:o,l:isNaN(r)?0:r,a:isNaN(n)?0:n}},toAlias:function(t,e,i,n){var s,r=0===arguments.length?this.toHex():this.toHex(t,e,i,n),o="alias"===this.origFormat?r:this.toString(this.origFormat,!1);for(var a in this.colors)if(s=this.colors[a].toLowerCase().trim(),s===r||s===o)return a;return!1},RGBtoHSB:function(t,e,i,n){t/=255,e/=255,i/=255;var s,r,o,a;return o=Math.max(t,e,i),a=o-Math.min(t,e,i),s=0===a?null:o===t?(e-i)/a:o===e?(i-t)/a+2:(t-e)/a+4,s=(s+360)%6*60/360,r=0===a?0:a/o,{h:this._sanitizeNumber(s),s:r,b:o,a:this._sanitizeNumber(n)}},HueToRGB:function(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t},HSLtoRGB:function(t,e,i,n){e<0&&(e=0);var s;s=i<=.5?i*(1+e):i+e-i*e;var r=2*i-s,o=t+1/3,a=t,l=t-1/3,u=Math.round(255*this.HueToRGB(r,s,o)),c=Math.round(255*this.HueToRGB(r,s,a)),h=Math.round(255*this.HueToRGB(r,s,l));return[u,c,h,this._sanitizeNumber(n)]},parse:function(t){if(0===arguments.length)return!1;var e,n,s=this,r=!1,o="undefined"!=typeof this.colors[t];return o&&(t=this.colors[t].toLowerCase().trim()),i.each(this.stringParsers,function(i,a){var l=a.re.exec(t);return e=l&&a.parse.apply(s,[l]),!e||(r={},n=o?"alias":a.format?a.format:s.getValidFallbackFormat(),r=n.match(/hsla?/)?s.RGBtoHSB.apply(s,s.HSLtoRGB.apply(s,e)):s.RGBtoHSB.apply(s,e),r instanceof Object&&(r.format=n),!1)}),r},getValidFallbackFormat:function(){var t=["rgba","rgb","hex","hsla","hsl"];return this.origFormat&&t.indexOf(this.origFormat)!==-1?this.origFormat:this.fallbackFormat&&t.indexOf(this.fallbackFormat)!==-1?this.fallbackFormat:"rgba"},toString:function(t,e){t=t||this.origFormat||this.fallbackFormat,e=e||!1;var i=!1;switch(t){case"rgb":return i=this.toRGB(),this.rgbaIsTransparent(i)?"transparent":"rgb("+i.r+","+i.g+","+i.b+")";case"rgba":return i=this.toRGB(),"rgba("+i.r+","+i.g+","+i.b+","+i.a+")";case"hsl":return i=this.toHSL(),"hsl("+Math.round(360*i.h)+","+Math.round(100*i.s)+"%,"+Math.round(100*i.l)+"%)";case"hsla":return i=this.toHSL(),"hsla("+Math.round(360*i.h)+","+Math.round(100*i.s)+"%,"+Math.round(100*i.l)+"%,"+i.a+")";case"hex":return this.toHex();case"alias":return i=this.toAlias(),i===!1?this.toString(this.getValidFallbackFormat()):e&&!(i in n.webColors)&&i in this.predefinedColors?this.predefinedColors[i]:i;default:return i}},stringParsers:[{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(t){return[t[1],t[2],t[3],1]}},{re:/rgb\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/hsl\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/hsla\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}],colorNameToHex:function(t){return"undefined"!=typeof this.colors[t.toLowerCase()]&&this.colors[t.toLowerCase()]}};var s={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,fallbackFormat:"hex",sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'<div class="colorpicker dropdown-menu"><div class="colorpicker-saturation"><i><b></b></i></div><div class="colorpicker-hue"><i></i></div><div class="colorpicker-alpha"><i></i></div><div class="colorpicker-color"><div /></div><div class="colorpicker-selectors"></div></div>',align:"right",customClass:null,colorSelectors:null},r=function(t,e){this.element=i(t).addClass("colorpicker-element"),this.options=i.extend(!0,{},s,this.element.data(),e),this.component=this.options.component,this.component=this.component!==!1&&this.element.find(this.component),this.component&&0===this.component.length&&(this.component=!1),this.container=this.options.container===!0?this.element:this.options.container,this.container=this.container!==!1&&i(this.container),this.input=this.element.is("input")?this.element:!!this.options.input&&this.element.find(this.options.input),this.input&&0===this.input.length&&(this.input=!1),this.color=this.createColor(this.options.color!==!1?this.options.color:this.getValue()),this.format=this.options.format!==!1?this.options.format:this.color.origFormat,this.options.color!==!1&&(this.updateInput(this.color),this.updateData(this.color));var n=this.picker=i(this.options.template);if(this.options.customClass&&n.addClass(this.options.customClass),this.options.inline?n.addClass("colorpicker-inline colorpicker-visible"):n.addClass("colorpicker-hidden"),this.options.horizontal&&n.addClass("colorpicker-horizontal"),["rgba","hsla","alias"].indexOf(this.format)===-1&&this.options.format!==!1&&"transparent"!==this.getValue()||n.addClass("colorpicker-with-alpha"),"right"===this.options.align&&n.addClass("colorpicker-right"),this.options.inline===!0&&n.addClass("colorpicker-no-arrow"),this.options.colorSelectors){var r=this,o=r.picker.find(".colorpicker-selectors");o.length>0&&(i.each(this.options.colorSelectors,function(t,e){var n=i("<i />").addClass("colorpicker-selectors-color").css("background-color",e).data("class",t).data("alias",t);n.on("click.colorpicker touchend.colorpicker",function(){r.setValue("alias"===r.format?i(this).data("alias"):i(this).css("background-color"))}),o.append(n)}),o.show().addClass("colorpicker-visible"))}n.on("mousedown.colorpicker touchstart.colorpicker",i.proxy(function(t){t.target===t.currentTarget&&t.preventDefault()},this)),n.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker",i.proxy(this.mousedown,this)),n.appendTo(this.container?this.container:i("body")),this.input!==!1&&(this.input.on({"keyup.colorpicker":i.proxy(this.keyup,this)}),this.input.on({"change.colorpicker":i.proxy(this.change,this)}),this.component===!1&&this.element.on({"focus.colorpicker":i.proxy(this.show,this)}),this.options.inline===!1&&this.element.on({"focusout.colorpicker":i.proxy(this.hide,this)})),this.component!==!1&&this.component.on({"click.colorpicker":i.proxy(this.show,this)}),this.input===!1&&this.component===!1&&this.element.on({"click.colorpicker":i.proxy(this.show,this)}),this.input!==!1&&this.component!==!1&&"color"===this.input.attr("type")&&this.input.on({"click.colorpicker":i.proxy(this.show,this),"focus.colorpicker":i.proxy(this.show,this)}),this.update(),i(i.proxy(function(){this.element.trigger("create")},this))};r.Color=n,r.prototype={constructor:r,destroy:function(){this.picker.remove(),this.element.removeData("colorpicker","color").off(".colorpicker"),this.input!==!1&&this.input.off(".colorpicker"),this.component!==!1&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})},reposition:function(){if(this.options.inline!==!1||this.options.container)return!1;var t=this.container&&this.container[0]!==e.document.body?"position":"offset",i=this.component||this.element,n=i[t]();"right"===this.options.align&&(n.left-=this.picker.outerWidth()-i.outerWidth()),this.picker.css({top:n.top+i.outerHeight(),
left:n.left})},show:function(t){this.isDisabled()||(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),i(e).on("resize.colorpicker",i.proxy(this.reposition,this)),!t||this.hasInput()&&"color"!==this.input.attr("type")||t.stopPropagation&&t.preventDefault&&(t.stopPropagation(),t.preventDefault()),!this.component&&this.input||this.options.inline!==!1||i(e.document).on({"mousedown.colorpicker":i.proxy(this.hide,this)}),this.element.trigger({type:"showPicker",color:this.color}))},hide:function(t){return("undefined"==typeof t||!t.target||!(i(t.currentTarget).parents(".colorpicker").length>0||i(t.target).parents(".colorpicker").length>0))&&(this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),i(e).off("resize.colorpicker",this.reposition),i(e.document).off({"mousedown.colorpicker":this.hide}),this.update(),void this.element.trigger({type:"hidePicker",color:this.color}))},updateData:function(t){return t=t||this.color.toString(this.format,!1),this.element.data("color",t),t},updateInput:function(t){return t=t||this.color.toString(this.format,!1),this.input!==!1&&this.input.prop("value",t),t},updatePicker:function(t){"undefined"!=typeof t&&(this.color=this.createColor(t));var e=this.options.horizontal===!1?this.options.sliders:this.options.slidersHorz,i=this.picker.find("i");if(0!==i.length)return this.options.horizontal===!1?(e=this.options.sliders,i.eq(1).css("top",e.hue.maxTop*(1-this.color.value.h)).end().eq(2).css("top",e.alpha.maxTop*(1-this.color.value.a))):(e=this.options.slidersHorz,i.eq(1).css("left",e.hue.maxLeft*(1-this.color.value.h)).end().eq(2).css("left",e.alpha.maxLeft*(1-this.color.value.a))),i.eq(0).css({top:e.saturation.maxTop-this.color.value.b*e.saturation.maxTop,left:this.color.value.s*e.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.toHex(this.color.value.h,1,1,1)),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toHex()),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toString(this.format,!0)),t},updateComponent:function(t){var e;if(e="undefined"!=typeof t?this.createColor(t):this.color,this.component!==!1){var i=this.component.find("i").eq(0);i.length>0?i.css({backgroundColor:e.toString(this.format,!0)}):this.component.css({backgroundColor:e.toString(this.format,!0)})}return e.toString(this.format,!1)},update:function(t){var e;return this.getValue(!1)===!1&&t!==!0||(e=this.updateComponent(),this.updateInput(e),this.updateData(e),this.updatePicker()),e},setValue:function(t){this.color=this.createColor(t),this.update(!0),this.element.trigger({type:"changeColor",color:this.color,value:t})},createColor:function(t){return new n(t?t:null,this.options.colorSelectors,this.options.fallbackColor?this.options.fallbackColor:this.color,this.options.fallbackFormat)},getValue:function(t){t="undefined"==typeof t?this.options.fallbackColor:t;var e;return e=this.hasInput()?this.input.val():this.element.data("color"),void 0!==e&&""!==e&&null!==e||(e=t),e},hasInput:function(){return this.input!==!1},isDisabled:function(){return!!this.hasInput()&&this.input.prop("disabled")===!0},disable:function(){return!!this.hasInput()&&(this.input.prop("disabled",!0),this.element.trigger({type:"disable",color:this.color,value:this.getValue()}),!0)},enable:function(){return!!this.hasInput()&&(this.input.prop("disabled",!1),this.element.trigger({type:"enable",color:this.color,value:this.getValue()}),!0)},currentSlider:null,mousePointer:{left:0,top:0},mousedown:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var n=i(t.target),s=n.closest("div"),r=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!s.is(".colorpicker")){if(s.is(".colorpicker-saturation"))this.currentSlider=i.extend({},r.saturation);else if(s.is(".colorpicker-hue"))this.currentSlider=i.extend({},r.hue);else{if(!s.is(".colorpicker-alpha"))return!1;this.currentSlider=i.extend({},r.alpha)}var o=s.offset();this.currentSlider.guide=s.find("i")[0].style,this.currentSlider.left=t.pageX-o.left,this.currentSlider.top=t.pageY-o.top,this.mousePointer={left:t.pageX,top:t.pageY},i(e.document).on({"mousemove.colorpicker":i.proxy(this.mousemove,this),"touchmove.colorpicker":i.proxy(this.mousemove,this),"mouseup.colorpicker":i.proxy(this.mouseup,this),"touchend.colorpicker":i.proxy(this.mouseup,this)}).trigger("mousemove")}return!1},mousemove:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var e=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),i=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=e+"px",this.currentSlider.guide.top=i+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,e/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,i/this.currentSlider.maxTop),this.options.format!==!1||"setAlpha"!==this.currentSlider.callTop&&"setAlpha"!==this.currentSlider.callLeft||(1!==this.color.value.a?(this.format="rgba",this.color.origFormat="rgba"):(this.format="hex",this.color.origFormat="hex")),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1},mouseup:function(t){return t.stopPropagation(),t.preventDefault(),i(e.document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1},change:function(t){this.keyup(t)},keyup:function(t){38===t.keyCode?(this.color.value.a<1&&(this.color.value.a=Math.round(100*(this.color.value.a+.01))/100),this.update(!0)):40===t.keyCode?(this.color.value.a>0&&(this.color.value.a=Math.round(100*(this.color.value.a-.01))/100),this.update(!0)):(this.color=this.createColor(this.input.val()),this.color.origFormat&&this.options.format===!1&&(this.format=this.color.origFormat),this.getValue(!1)!==!1&&(this.updateData(),this.updateComponent(),this.updatePicker())),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})}},i.colorpicker=r,i.fn.colorpicker=function(t){var e=Array.prototype.slice.call(arguments,1),n=1===this.length,s=null,o=this.each(function(){var n=i(this),o=n.data("colorpicker"),a="object"==typeof t?t:{};o||(o=new r(this,a),n.data("colorpicker",o)),"string"==typeof t?i.isFunction(o[t])?s=o[t].apply(o,e):(e.length&&(o[t]=e[0]),s=o[t]):s=n});return n?s:o},i.fn.colorpicker.constructor=r}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function r(t){return function(){return this[t].apply(this,arguments)}}function o(t){return t&&!isNaN(t.getTime())}function a(e,i){function n(t,e){return e.toLowerCase()}var s,r=t(e).data(),o={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in r)i.test(l)&&(s=l.replace(a,n),o[s]=r[l]);return o}function l(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var n=m[e];return t.each(g,function(t,e){e in n&&(i[e]=n[e])}),i}}var u=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(this[i].valueOf()===e)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new u;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),c=function(e,i){t(e).data("datepicker",this),this._process_options(i),this.dates=new u,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.inputField.length,this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(t,i){return 0===t||"days"===t||"month"===t?0:1===t||"months"===t||"year"===t?1:2===t||"years"===t||"decade"===t?2:3===t||"decades"===t||"century"===t?3:4===t||"centuries"===t||"millennium"===t?4:i!==e&&i},_check_template:function(i){try{if(i===e||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var n=t(i);return n.length>0}catch(s){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),r=s.language;m[r]||(r=r.split("-")[0],m[r]||(r=f.language)),s.language=r,s.startView=this._resolveViewName(s.startView,0),s.minViewMode=this._resolveViewName(s.minViewMode,0),s.maxViewMode=this._resolveViewName(s.maxViewMode,4),s.startView=Math.min(s.startView,s.maxViewMode),s.startView=Math.max(s.startView,s.minViewMode),s.multidate!==!0&&(s.multidate=Number(s.multidate)||!1,s.multidate!==!1&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var o=v.parseFormat(s.format);s.startDate!==-(1/0)&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=v.parseDate(s.startDate,o,s.language,s.assumeNearbyYear):s.startDate=-(1/0)),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=v.parseDate(s.endDate,o,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=s.daysOfWeekDisabled||[],t.isArray(s.daysOfWeekDisabled)||(s.daysOfWeekDisabled=s.daysOfWeekDisabled.split(/[,\s]*/)),s.daysOfWeekDisabled=t.map(s.daysOfWeekDisabled,function(t){return parseInt(t,10)}),s.daysOfWeekHighlighted=s.daysOfWeekHighlighted||[],t.isArray(s.daysOfWeekHighlighted)||(s.daysOfWeekHighlighted=s.daysOfWeekHighlighted.split(/[,\s]*/)),s.daysOfWeekHighlighted=t.map(s.daysOfWeekHighlighted,function(t){return parseInt(t,10)}),s.datesDisabled=s.datesDisabled||[],t.isArray(s.datesDisabled)||(s.datesDisabled=[s.datesDisabled]),s.datesDisabled=t.map(s.datesDisabled,function(t){return v.parseDate(t,o,s.language,s.assumeNearbyYear)});var a=String(s.orientation).toLowerCase().split(/\s+/g),l=s.orientation.toLowerCase();if(a=t.grep(a,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":s.orientation.y=a[0];break;case"left":case"right":s.orientation.x=a[0]}else l=t.grep(a,function(t){return/^left|right$/.test(t)}),s.orientation.x=l[0]||"auto",l=t.grep(a,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=l[0]||"auto";else;if(s.defaultViewDate){var u=s.defaultViewDate.year||(new Date).getFullYear(),c=s.defaultViewDate.month||0,h=s.defaultViewDate.day||1;s.defaultViewDate=i(u,c,h)}else s.defaultViewDate=n()},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var i,n,s,r=0;r<t.length;r++)i=t[r][0],2===t[r].length?(n=e,s=t[r][1]):3===t[r].length&&(n=t[r][1],s=t[r][2]),i.on(s,n)},_unapplyEvents:function(t){for(var i,n,s,r=0;r<t.length;r++)i=t[r][0],2===t[r].length?(s=e,n=t[r][1]):3===t[r].length&&(s=t[r][1],n=t[r][2]),i.off(n,s)},_buildEvents:function(){var e={keyup:t.proxy(function(e){t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};this.o.showOnFocus===!0&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.hasInput?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.dates.get(-1),s=this._utc_to_local(n);this.element.trigger({type:e,date:s,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return v.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&t.inArray("text/plain",e.originalEvent.clipboardData.types)!==-1)i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return"undefined"!=typeof t?new Date(t):null},clearDates:function(){this.inputField&&this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t.map(e,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:r("setDates"),setUTCDate:r("setUTCDates"),remove:r("destroy"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,function(t){return v.formatDate(t,i,n)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){this._process_options({datesDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=10,s=t(this.o.container),r=s.width(),o="body"===this.o.container?t(document).scrollTop():s.scrollTop(),a=s.offset(),l=[];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==e&&l.push(parseInt(e))});var u=Math.max.apply(Math,l)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),h=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),p=c.left-a.left,f=c.top-a.top;"body"!==this.o.container&&(f+=o),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(p-=e-d)):c.left<0?(this.picker.addClass("datepicker-orient-left"),p-=c.left-n):p+e>r?(this.picker.addClass("datepicker-orient-right"),p+=d-e):this.picker.addClass("datepicker-orient-left");var g,m=this.o.orientation.y;if("auto"===m&&(g=-o+f-i,m=g<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?f-=i+parseInt(this.picker.css("padding-top")):f+=h,this.o.rtl){var v=r-(p+d);this.picker.css({top:f,right:v,zIndex:u})}else this.picker.css({top:f,left:p,zIndex:u});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],n=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,n?this.setValue():i.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(t,e){return parseInt(e)+1}),i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',t.inArray(e,this.o.daysOfWeekDisabled)>-1&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;){var n=t&&t.getMonth()===i?" focused":"";e+='<span class="month'+n+'">'+m[this.o.language].monthsShort[i++]+"</span>"}this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),r=new Date;return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<s?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>s)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===r.getFullYear()&&e.getUTCMonth()===r.getMonth()&&e.getUTCDate()===r.getDate()&&i.push("today"),this.dates.contains(e)!==-1&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),t.inArray(e.valueOf(),this.range)!==-1&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,n,s,r,o,a,l,u){var c,h,d,p,f,g,m,v,y,_,b;for(c="",h=this.picker.find(i),d=parseInt(o/s,10)*s,f=parseInt(a/r,10)*r,g=parseInt(l/r,10)*r,p=t.map(this.dates,function(t){return parseInt(t.getUTCFullYear()/r,10)*r}),h.find(".datepicker-switch").text(d+"-"+(d+9*r)),m=d-r,v=-1;v<11;v+=1)y=[n],_=null,v===-1?y.push("old"):10===v&&y.push("new"),t.inArray(m,p)!==-1&&y.push("active"),(m<f||m>g)&&y.push("disabled"),m===this.viewDate.getFullYear()&&y.push("focused"),u!==t.noop&&(b=u(new Date(m,0,1)),b===e?b={}:"boolean"==typeof b?b={enabled:b}:"string"==typeof b&&(b={classes:b}),b.enabled===!1&&y.push("disabled"),b.classes&&(y=y.concat(b.classes.split(/\s+/))),b.tooltip&&(_=b.tooltip)),c+='<span class="'+y.join(" ")+'"'+(_?' title="'+_+'"':"")+">"+m+"</span>",m+=r;h.find("td").html(c)},fill:function(){var n,s,r=new Date(this.viewDate),o=r.getUTCFullYear(),a=r.getUTCMonth(),l=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),u=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;if(!isNaN(o)&&!isNaN(a)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(r,f,this.o.language)),this.picker.find("tfoot .today").text(d).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(p).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var g=i(o,a-1,28),y=v.getDaysInMonth(g.getUTCFullYear(),g.getUTCMonth());g.setUTCDate(y),g.setUTCDate(y-(g.getUTCDay()-this.o.weekStart+7)%7);var _=new Date(g);g.getUTCFullYear()<100&&_.setUTCFullYear(g.getUTCFullYear()),_.setUTCDate(_.getUTCDate()+42),_=_.valueOf();for(var b,w=[];g.valueOf()<_;){if(g.getUTCDay()===this.o.weekStart&&(w.push("<tr>"),this.o.calendarWeeks)){var x=new Date(+g+(this.o.weekStart-g.getUTCDay()-7)%7*864e5),C=new Date(Number(x)+(11-x.getUTCDay())%7*864e5),k=new Date(Number(k=i(C.getUTCFullYear(),0,1))+(11-k.getUTCDay())%7*864e5),D=(C-k)/864e5/7+1;w.push('<td class="cw">'+D+"</td>")}b=this.getClassNames(g),b.push("day"),this.o.beforeShowDay!==t.noop&&(s=this.o.beforeShowDay(this._utc_to_local(g)),s===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),s.enabled===!1&&b.push("disabled"),s.classes&&(b=b.concat(s.classes.split(/\s+/))),s.tooltip&&(n=s.tooltip)),b=t.isFunction(t.uniqueSort)?t.uniqueSort(b):t.unique(b),w.push('<td class="'+b.join(" ")+'"'+(n?' title="'+n+'"':"")+">"+g.getUTCDate()+"</td>"),n=null,g.getUTCDay()===this.o.weekEnd&&w.push("</tr>"),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(w.join(""));var T=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",S=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?T:o).end().find("span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===o&&S.eq(e.getUTCMonth()).addClass("active")}),(o<l||o>c)&&S.addClass("disabled"),o===l&&S.slice(0,u).addClass("disabled"),o===c&&S.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var A=this;t.each(S,function(i,n){var s=new Date(o,i,1),r=A.o.beforeShowMonth(s);r===e?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),r.enabled!==!1||t(n).hasClass("disabled")||t(n).addClass("disabled"),r.classes&&t(n).addClass(r.classes),r.tooltip&&t(n).prop("title",r.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,1,o,l,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,o,l,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,o,l,c,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:case 3:case 4:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){e.preventDefault(),e.stopPropagation();var s,r,o,a,l,u,c;s=t(e.target),s.hasClass("datepicker-switch")&&this.showMode(1);var h=s.closest(".prev, .next");h.length>0&&(r=v.modes[this.viewMode].navStep*(h.hasClass("prev")?-1:1),0===this.viewMode?(this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate)):(this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)),this.fill()),s.hasClass("today")&&!s.hasClass("day")&&(this.showMode(-2),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("day")&&(o=parseInt(s.text(),10)||1,a=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),s.hasClass("old")&&(0===l?(l=11,a-=1,u=!0,c=!0):(l-=1,u=!0)),s.hasClass("new")&&(11===l?(l=0,a+=1,u=!0,c=!0):(l+=1,u=!0)),this._setDate(i(a,l,o)),c&&this._trigger("changeYear",this.viewDate),u&&this._trigger("changeMonth",this.viewDate)),s.hasClass("month")&&(this.viewDate.setUTCDate(1),o=1,l=s.parent().find("span").index(s),a=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(l),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(i(a,l,o)),this.showMode()):this.showMode(-1),this.fill()),(s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,l=0,a=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(a),s.hasClass("year")&&(this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(i(a,l,o))),s.hasClass("decade")&&(this._trigger("changeDecade",this.viewDate),3===this.o.minViewMode&&this._setDate(i(a,l,o))),s.hasClass("century")&&(this._trigger("changeCentury",this.viewDate),4===this.o.minViewMode&&this._setDate(i(a,l,o))),this.showMode(-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&t(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),e!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):this.o.multidate===!1?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField&&this.inputField.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!o(t))return this.o.defaultViewDate;if(!e)return t;var i,n,s=new Date(t.valueOf()),r=s.getUTCDate(),a=s.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)n=e===-1?function(){return s.getUTCMonth()===a}:function(){return s.getUTCMonth()!==i},i=a+e,s.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var u=0;u<l;u++)s=this.moveMonth(s,e);i=s.getUTCMonth(),s.setUTCDate(r),n=function(){return i!==s.getUTCMonth()}}for(;n();)s.setUTCDate(--r),s.setUTCMonth(i);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return s(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void(40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation()));var e,i,n=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(s,e,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveAvailableDate(s,e,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e=4*e),i=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e=4*e),
i=this.moveAvailableDate(s,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField&&this.inputField.change())},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+v.modes[this.viewMode].clsName).show(),this.updateNavArrows()}};var h=function(e,i){t(e).data("datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,p.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};h.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var i=t(e.target).data("datepicker");if("undefined"!=typeof i){var n=i.getUTCDate(),s=t.inArray(e.target,this.inputs),r=s-1,o=s+1,a=this.inputs.length;if(s!==-1){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(n)}),n<this.dates[r])for(;r>=0&&n<this.dates[r];)this.pickers[r--].setUTCDate(n);else if(n>this.dates[o])for(;o<a&&n>this.dates[o];)this.pickers[o++].setUTCDate(n);this.updateDates(),delete this.updating}}}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var d=t.fn.datepicker,p=function(i){var n=Array.apply(null,arguments);n.shift();var s;if(this.each(function(){var e=t(this),r=e.data("datepicker"),o="object"==typeof i&&i;if(!r){var u=a(this,"date"),d=t.extend({},f,u,o),p=l(d.language),g=t.extend({},f,p,u,o);e.hasClass("input-daterange")||g.inputs?(t.extend(g,{inputs:g.inputs||e.find("input").toArray()}),r=new h(this,g)):r=new c(this,g),e.data("datepicker",r)}"string"==typeof i&&"function"==typeof r[i]&&(s=r[i].apply(r,n))}),s===e||s instanceof c||s instanceof h)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return s};t.fn.datepicker=p;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&laquo;",rightArrow:"&raquo;"}},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10},{clsName:"decades",navFnc:"FullDecade",navStep:100},{clsName:"centuries",navFnc:"FullCentury",navStep:1e3}],isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getDaysInMonth:function(t,e){return[31,v.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(s,r,o,a){function l(t,e){return e===!0&&(e=10),t<100&&(t+=2e3,t>(new Date).getFullYear()+e&&(t-=100)),t}function u(){var t=this.slice(0,y[p].length),e=y[p].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!s)return e;if(s instanceof Date)return s;if("string"==typeof r&&(r=v.parseFormat(r)),r.toValue)return r.toValue(s,r,o);var h,d,p,f,g=/([\-+]\d+)([dmwy])/,y=s.match(/([\-+]\d+)([dmwy])/g),_={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},b={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(s)){for(s=new Date,p=0;p<y.length;p++)h=g.exec(y[p]),d=parseInt(h[1]),f=_[h[2]],s=c.prototype[f](s,d);return i(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())}if("undefined"!=typeof b[s]&&(s=b[s],y=s.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(s))){for(s=new Date,p=0;p<y.length;p++)h=g.exec(y[p]),d=parseInt(h[1]),f=_[h[2]],s=c.prototype[f](s,d);return i(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())}y=s&&s.match(this.nonpunctuation)||[],s=new Date;var w,x,C={},k=["yyyy","yy","M","MM","m","mm","d","dd"],D={yyyy:function(t,e){return t.setUTCFullYear(a?l(e,a):e)},yy:function(t,e){return t.setUTCFullYear(a?l(e,a):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};D.M=D.MM=D.mm=D.m,D.dd=D.d,s=n();var T=r.parts.slice();if(y.length!==T.length&&(T=t(T).filter(function(e,i){return t.inArray(i,k)!==-1}).toArray()),y.length===T.length){var S;for(p=0,S=T.length;p<S;p++){if(w=parseInt(y[p],10),h=T[p],isNaN(w))switch(h){case"MM":x=t(m[o].months).filter(u),w=t.inArray(x[0],m[o].months)+1;break;case"M":x=t(m[o].monthsShort).filter(u),w=t.inArray(x[0],m[o].monthsShort)+1}C[h]=w}var A,E;for(p=0;p<k.length;p++)E=k[p],E in C&&!isNaN(C[E])&&(A=new Date(s),D[E](A,C[E]),isNaN(A)||(s=A))}return s},formatDate:function(e,i,n){if(!e)return"";if("string"==typeof i&&(i=v.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,n);var s={d:e.getUTCDate(),D:m[n].daysShort[e.getUTCDay()],DD:m[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[n].monthsShort[e.getUTCMonth()],MM:m[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var r=t.extend([],i.separators),o=0,a=i.parts.length;o<=a;o++)r.length&&e.push(r.shift()),e.push(s[i.parts[o]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">&laquo;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.6.4",t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),p.call(i,"show"))}),t(function(){p.call(t('[data-provide="datepicker-inline"]'))})}),function(t){function e(t,e,s){var r=t[0],o=/er/.test(s)?_indeterminate:/bl/.test(s)?f:d,a=s==_update?{checked:r[d],disabled:r[f],indeterminate:"true"==t.attr(_indeterminate)||"false"==t.attr(_determinate)}:r[o];if(/^(ch|di|in)/.test(s)&&!a)i(t,o);else if(/^(un|en|de)/.test(s)&&a)n(t,o);else if(s==_update)for(var l in a)a[l]?i(t,l,!0):n(t,l,!0);else e&&"toggle"!=s||(e||t[_callback]("ifClicked"),a?r[_type]!==h&&n(t,o):i(t,o))}function i(e,i,s){var c=e[0],g=e.parent(),m=i==d,v=i==_indeterminate,y=i==f,_=v?_determinate:m?p:"enabled",b=r(e,_+o(c[_type])),w=r(e,i+o(c[_type]));if(c[i]!==!0){if(!s&&i==d&&c[_type]==h&&c.name){var x=e.closest("form"),C='input[name="'+c.name+'"]';C=x.length?x.find(C):t(C),C.each(function(){this!==c&&t(this).data(l)&&n(t(this),i)})}v?(c[i]=!0,c[d]&&n(e,d,"force")):(s||(c[i]=!0),m&&c[_indeterminate]&&n(e,_indeterminate,!1)),a(e,m,i,s)}c[f]&&r(e,_cursor,!0)&&g.find("."+u).css(_cursor,"default"),g[_add](w||r(e,i)||""),g.attr("role")&&!v&&g.attr("aria-"+(y?f:d),"true"),g[_remove](b||r(e,_)||"")}function n(t,e,i){var n=t[0],s=t.parent(),l=e==d,c=e==_indeterminate,h=e==f,g=c?_determinate:l?p:"enabled",m=r(t,g+o(n[_type])),v=r(t,e+o(n[_type]));n[e]!==!1&&(!c&&i&&"force"!=i||(n[e]=!1),a(t,l,g,i)),!n[f]&&r(t,_cursor,!0)&&s.find("."+u).css(_cursor,"pointer"),s[_remove](v||r(t,e)||""),s.attr("role")&&!c&&s.attr("aria-"+(h?f:d),"false"),s[_add](m||r(t,g)||"")}function s(e,i){e.data(l)&&(e.parent().html(e.attr("style",e.data(l).s||"")),i&&e[_callback](i),e.off(".i").unwrap(),t(_label+'[for="'+e[0].id+'"]').add(e.closest(_label)).off(".i"))}function r(t,e,i){if(t.data(l))return t.data(l).o[e+(i?"":"Class")]}function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function a(t,e,i,n){n||(e&&t[_callback]("ifToggled"),t[_callback]("ifChanged")[_callback]("if"+o(i)))}var l="iCheck",u=l+"-helper",c="checkbox",h="radio",d="checked",p="un"+d,f="disabled";_determinate="determinate",_indeterminate="in"+_determinate,_update="update",_type="type",_click="click",_touch="touchbegin.i touchend.i",_add="addClass",_remove="removeClass",_callback="trigger",_label="label",_cursor="cursor",_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent),t.fn[l]=function(r,o){var a='input[type="'+c+'"], input[type="'+h+'"]',p=t(),g=function(e){e.each(function(){var e=t(this);p=e.is(a)?p.add(e):p.add(e.find(a))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(r))return r=r.toLowerCase(),g(this),p.each(function(){var i=t(this);"destroy"==r?s(i,"ifDestroyed"):e(i,!0,r),t.isFunction(o)&&o()});if("object"!=typeof r&&r)return this;var m=t.extend({checkedClass:d,disabledClass:f,indeterminateClass:_indeterminate,labelHover:!0},r),v=m.handle,y=m.hoverClass||"hover",_=m.focusClass||"focus",b=m.activeClass||"active",w=!!m.labelHover,x=m.labelHoverClass||"hover",C=0|(""+m.increaseArea).replace("%","");return v!=c&&v!=h||(a='input[type="'+v+'"]'),C<-50&&(C=-50),g(this),p.each(function(){var r=t(this);s(r);var o,a=this,p=a.id,g=-C+"%",v=100+2*C+"%",k={position:"absolute",top:g,left:g,display:"block",width:v,height:v,margin:0,padding:0,background:"#fff",border:0,opacity:0},D=_mobile?{position:"absolute",visibility:"hidden"}:C?k:{position:"absolute",opacity:0},T=a[_type]==c?m.checkboxClass||"i"+c:m.radioClass||"i"+h,S=t(_label+'[for="'+p+'"]').add(r.closest(_label)),A=!!m.aria,E=l+"-"+Math.random().toString(36).substr(2,6),I='<div class="'+T+'" '+(A?'role="'+a[_type]+'" ':"");A&&S.each(function(){I+='aria-labelledby="',this.id?I+=this.id:(this.id=E,I+=E),I+='"'}),I=r.wrap(I+"/>")[_callback]("ifCreated").parent().append(m.insert),o=t('<ins class="'+u+'"/>').css(k).appendTo(I),r.data(l,{o:m,s:r.attr("style")}).css(D),!!m.inheritClass&&I[_add](a.className||""),!!m.inheritID&&p&&I.attr("id",l+"-"+p),"static"==I.css("position")&&I.css("position","relative"),e(r,!0,_update),S.length&&S.on(_click+".i mouseover.i mouseout.i "+_touch,function(i){var n=i[_type],s=t(this);if(!a[f]){if(n==_click){if(t(i.target).is("a"))return;e(r,!1,!0)}else w&&(/ut|nd/.test(n)?(I[_remove](y),s[_remove](x)):(I[_add](y),s[_add](x)));if(!_mobile)return!1;i.stopPropagation()}}),r.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[_type],s=t.keyCode;return e!=_click&&("keydown"==e&&32==s?(a[_type]==h&&a[d]||(a[d]?n(r,d):i(r,d)),!1):void("keyup"==e&&a[_type]==h?!a[d]&&i(r,d):/us|ur/.test(e)&&I["blur"==e?_remove:_add](_)))}),o.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(t){var i=t[_type],n=/wn|up/.test(i)?b:y;if(!a[f]){if(i==_click?e(r,!1,!0):(/wn|er|in/.test(i)?I[_add](n):I[_remove](n+" "+b),S.length&&w&&n==y&&S[/ut|nd/.test(i)?_remove:_add](x)),!_mobile)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?i=e:e={};var t,i,n;!function(e){function s(t,e){return b.call(t,e)}function r(t,e){var i,n,s,r,o,a,l,u,c,h,d,p=e&&e.split("/"),f=y.map,g=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),o=t.length-1,y.nodeIdCompat&&x.test(t[o])&&(t[o]=t[o].replace(x,"")),t=p.slice(0,p.length-1).concat(t),c=0;c<t.length;c+=1)if(d=t[c],"."===d)t.splice(c,1),c-=1;else if(".."===d){if(1===c&&(".."===t[2]||".."===t[0]))break;c>0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((p||g)&&f){for(i=t.split("/"),c=i.length;c>0;c-=1){if(n=i.slice(0,c).join("/"),p)for(h=p.length;h>0;h-=1)if(s=f[p.slice(0,h).join("/")],s&&(s=s[n])){r=s,a=c;break}if(r)break;!l&&g&&g[n]&&(l=g[n],u=c)}!r&&l&&(r=l,a=u),r&&(i.splice(0,a,r),t=i.join("/"))}return t}function o(t,i){return function(){var n=w.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(e,n.concat([t,i]))}}function a(t){return function(e){return r(e,t)}}function l(t){return function(e){m[t]=e}}function u(t){if(s(v,t)){var i=v[t];delete v[t],_[t]=!0,d.apply(e,i)}if(!s(m,t)&&!s(_,t))throw new Error("No "+t);return m[t]}function c(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function h(t){return function(){return y&&y.config&&y.config[t]||{}}}var d,p,f,g,m={},v={},y={},_={},b=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;f=function(t,e){var i,n=c(t),s=n[0];return t=n[1],s&&(s=r(s,e),i=u(s)),s?t=i&&i.normalize?i.normalize(t,a(e)):r(t,e):(t=r(t,e),n=c(t),s=n[0],t=n[1],s&&(i=u(s))),{f:s?s+"!"+t:t,n:t,pr:s,p:i}},g={require:function(t){return o(t)},exports:function(t){var e=m[t];return"undefined"!=typeof e?e:m[t]={}},module:function(t){return{id:t,uri:"",exports:m[t],config:h(t)}}},d=function(t,i,n,r){var a,c,h,d,p,y,b=[],w=typeof n;if(r=r||t,"undefined"===w||"function"===w){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if(d=f(i[p],r),c=d.f,"require"===c)b[p]=g.require(t);else if("exports"===c)b[p]=g.exports(t),y=!0;else if("module"===c)a=b[p]=g.module(t);else if(s(m,c)||s(v,c)||s(_,c))b[p]=u(c);else{if(!d.p)throw new Error(t+" missing "+c);d.p.load(d.n,o(r,!0),l(c),{}),b[p]=m[c]}h=n?n.apply(m[t],b):void 0,t&&(a&&a.exports!==e&&a.exports!==m[t]?m[t]=a.exports:h===e&&y||(m[t]=h))}else t&&(m[t]=n)},t=i=p=function(t,i,n,s,r){if("string"==typeof t)return g[t]?g[t](i):u(f(t,i).f);if(!t.splice){if(y=t,y.deps&&p(y.deps,y.callback),!i)return;i.splice?(t=i,i=n,n=null):t=e}return i=i||function(){},"function"==typeof n&&(n=s,s=r),s?d(e,t,i,n):setTimeout(function(){d(e,t,i,n)},4),p},p.config=function(t){return p(t)},t._defined=m,n=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),s(m,t)||s(v,t)||(v[t]=[t,e,i])},n.amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=n}}(),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error,e}),e.define("select2/utils",["jquery"],function(t){function e(t){var e=t.prototype,i=[];for(var n in e){var s=e[n];"function"==typeof s&&"constructor"!==n&&i.push(n)}return i}var i={};i.Extend=function(t,e){function i(){this.constructor=t}var n={}.hasOwnProperty;for(var s in e)n.call(e,s)&&(t[s]=e[s]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},i.Decorate=function(t,i){function n(){var e=Array.prototype.unshift,n=i.prototype.constructor.length,s=t.prototype.constructor;n>0&&(e.call(arguments,t.prototype.constructor),s=i.prototype.constructor),s.apply(this,arguments)}function s(){this.constructor=n}var r=e(i),o=e(t);i.displayName=t.displayName,n.prototype=new s;for(var a=0;a<o.length;a++){var l=o[a];n.prototype[l]=t.prototype[l]}for(var u=(function(t){var e=function(){};t in n.prototype&&(e=n.prototype[t]);var s=i.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,e),s.apply(this,arguments)}}),c=0;c<r.length;c++){var h=r[c];n.prototype[h]=u(h)}return n};var n=function(){this.listeners={}};return n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},i.Observable=n,i.generateChars=function(t){for(var e="",i=0;i<t;i++){var n=Math.floor(36*Math.random());e+=n.toString(36)}return e},i.bind=function(t,e){return function(){t.apply(e,arguments)}},i._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var s=0;s<i.length;s++){var r=i[s];r=r.substring(0,1).toLowerCase()+r.substring(1),r in n||(n[r]={}),s==i.length-1&&(n[r]=t[e]),n=n[r]}delete t[e]}}return t},i.hasScroll=function(e,i){var n=t(i),s=i.style.overflowX,r=i.style.overflowY;return(s!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===s||"scroll"===r||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},i.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,function(t){n=n.add(t)}),i=n}e.append(i)},i}),e.define("select2/results",["jquery","./utils"],function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(i(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],s=this.option(n);e.push(s)}this.$results.append(e)},i.prototype.position=function(t,e){var i=e.find(".select2-results");i.append(t)},i.prototype.sort=function(t){var e=this.options.get("sorter");return e(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var e=this;this.data.current(function(i){var n=t.map(i,function(t){return t.id.toString()}),s=e.$results.find(".select2-results__option[aria-selected]");s.each(function(){var e=t(this),i=t.data(this,"data"),s=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(s,n)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),i={disabled:!0,loading:!0,text:e(t)},n=this.option(i);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(i.id=e._resultId),e.title&&(i.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]);for(var s in n){var r=n[s];i.setAttribute(s,r)}if(e.children){var o=t(i),a=document.createElement("strong");a.className="select2-results__group";t(a);this.template(e,a);for(var l=[],u=0;u<e.children.length;u++){var c=e.children[u],h=this.option(c);l.push(h)}var d=t("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});d.append(l),o.append(a),o.append(d)}else this.template(e,i);return t.data(i,"data",e),i},i.prototype.bind=function(e,i){var n=this,s=e.id+"-results";this.$results.attr("id",s),e.on("results:all",function(t){n.clear(),n.append(t.data),e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("results:append",function(t){n.append(t.data),e.isOpen()&&n.setClasses()}),e.on("query",function(t){n.hideMessages(),n.showLoading(t)}),e.on("select",function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),e.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),e.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=n.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=n.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t);if(0!==i){var s=i-1;0===t.length&&(s=0);var r=e.eq(s);r.trigger("mouseenter");var o=n.$results.offset().top,a=r.offset().top,l=n.$results.scrollTop()+(a-o);0===s?n.$results.scrollTop(0):a-o<0&&n.$results.scrollTop(l)}}),e.on("results:next",function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t),s=i+1;if(!(s>=e.length)){var r=e.eq(s);r.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),l=n.$results.scrollTop()+a-o;0===s?n.$results.scrollTop(0):a>o&&n.$results.scrollTop(l)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){n.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-e+t.deltaY,s=t.deltaY>0&&e-t.deltaY<=0,r=t.deltaY<0&&i<=n.$results.height();s?(n.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):r&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var i=t(this),s=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:s}):n.trigger("close",{})):void n.trigger("select",{originalEvent:e,data:s})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var i=t(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:t(this)})})},i.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),i=e.index(t),n=this.$results.offset().top,s=t.offset().top,r=this.$results.scrollTop()+(s-n),o=s-n;r-=2*t.outerHeight(!1),i<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),r=n(e,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=s(r):t(i).append(r)},i}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},n.prototype.bind=function(t,e){var n=this,s=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){n.trigger("focus",t)}),this.$selection.on("blur",function(t){n._handleBlur(t)}),this.$selection.on("keydown",function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){n.update(t.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),t.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(e){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)},1)},n.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var i=t(e.target),n=i.closest(".select2"),s=t(".select2.select2-container--open");s.each(function(){var e=t(this);if(this!=n[0]){var i=e.data("element");i.select2("close")}})})},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){var i=e.find(".selection");i.append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,i,n){function s(){s.__super__.constructor.apply(this,arguments)}return i.Extend(s,e),s.prototype.render=function(){var t=s.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},s.prototype.bind=function(t,e){var i=this;s.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||i.$selection.focus()}),t.on("selection:update",function(t){i.update(t.data)})},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(t,e){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(t,e))},s.prototype.selectionContainer=function(){return t("<span></span>")},s.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n),i.prop("title",e.title||e.text)},s}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,i){var s=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){s.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!s.options.get("disabled")){var i=t(this),n=i.parent(),r=n.data("data");s.trigger("unselect",{originalEvent:e,data:r})}})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(t,e){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(t,e))},n.prototype.selectionContainer=function(){var e=t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return e},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var s=t[n],r=this.selectionContainer(),o=this.display(s,r);r.append(o),r.prop("title",s.title||s.text),r.data("data",s),e.push(r)}var a=this.$selection.find(".select2-selection__rendered");i.appendMany(a,e)}},n}),e.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),
i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id,n=e.length>1;if(n||i)return t.call(this,e);this.clear();var s=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(s)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function i(){}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error,this.$selection.on("mousedown",".select2-selection__clear",function(t){n._handleClear(t)}),e.on("keypress",function(t){n._handleKeyboardClear(t,e)})},i.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();for(var n=i.data("data"),s=0;s<n.length;s++){var r={data:n[s]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=t('<span class="select2-selection__clear">&times;</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,e,n){var s=this;t.call(this,e,n),e.on("open",function(){s.$search.trigger("focus")}),e.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),e.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),e.on("disable",function(){s.$search.prop("disabled",!0)}),e.on("focus",function(t){s.$search.trigger("focus")}),e.on("results:focus",function(t){s.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){s.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){s._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===i.BACKSPACE&&""===s.$search.val()){var n=s.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var r=n.data("data");s.searchRemoveChoice(r),t.preventDefault()}}});var r=document.documentMode,o=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return o?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(o&&"input"===t.type)return void s.$selection.off("input.search input.searchcheck");var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&s.handleSearch(t)})},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},n}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,i,n){var s=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,i,n),i.on("*",function(e,i){if(t.inArray(e,r)!==-1){i=i||{};var n=t.Event("select2:"+e,{params:i});s.$element.trigger(n),t.inArray(e,o)!==-1&&(i.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","":"x","ẋ":"x","ẍ":"x","ⓨ":"y","":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),n+=null!=i.id?"-"+i.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each(function(){var t=i(this),s=n.item(t);e.push(s)}),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var s=[];t=[t],t.push.apply(t,n);for(var r=0;r<t.length;r++){var o=t[r].id;i.inArray(o,s)===-1&&s.push(o)}e.$element.val(s),e.$element.trigger("change")});else{var n=t.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple"))return t.selected=!1,i(t.element).is("option")?(t.element.selected=!1,void this.$element.trigger("change")):void this.current(function(n){for(var s=[],r=0;r<n.length;r++){var o=n[r].id;o!==t.id&&i.inArray(o,s)===-1&&s.push(o)}e.$element.val(s),e.$element.trigger("change")})},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",function(t){i.select(t.data)}),t.on("unselect",function(t){i.unselect(t.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},n.prototype.query=function(t,e){var n=[],s=this,r=this.$element.children();r.each(function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var r=s.item(e),o=s.matches(t,r);null!==o&&n.push(o)}}),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup"),e.label=t.text):(e=document.createElement("option"),void 0!==e.textContent?e.textContent=t.text:e.innerText=t.text),t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=i(e),s=this._normalizeItem(t);return s.element=e,i.data(e,"data",s),n},n.prototype.item=function(t){var e={};if(e=i.data(t[0],"data"),null!=e)return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),s=[],r=0;r<n.length;r++){var o=i(n[r]),a=this.item(o);s.push(a)}e.children=s}return e=this._normalizeItem(e),e.element=t[0],i.data(t[0],"data",e),e},n.prototype._normalizeItem=function(t){i.isPlainObject(t)||(t={id:t,text:t}),t=i.extend({},{text:""},t);var e={selected:!1,disabled:!1};return null!=t.id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},e,t)},n.prototype.matches=function(t,e){var i=this.options.get("matcher");return i(t,e)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(t,e,i){function n(t,e){var i=e.get("data")||[];n.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(i))}return e.Extend(n,t),n.prototype.select=function(t){var e=this.$element.find("option").filter(function(e,i){return i.value==t.id.toString()});0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){function n(t){return function(){return i(this).val()==t.id}}for(var s=this,r=this.$element.find("option"),o=r.map(function(){return s.item(i(this)).id}).get(),a=[],l=0;l<t.length;l++){var u=this._normalizeItem(t[l]);if(i.inArray(u.id,o)>=0){var c=r.filter(n(u)),h=this.item(c),d=i.extend(!0,{},u,h),p=this.option(d);c.replaceWith(p)}else{var f=this.option(u);if(u.children){var g=this.convertToOptions(u.children);e.appendMany(f,g)}a.push(f)}}return a},n}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var s=i.ajax(t);return s.then(e),s.fail(n),s}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){function n(){var n=r.transport(r,function(n){var r=s.processResults(n,t);s.options.get("debug")&&window.console&&console.error&&(!r||!r.results||!i.isArray(r.results)),e(r)},function(){n.status&&"0"===n.status||s.trigger("results:message",{message:"errorLoading"})});s._request=n}var s=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),e.define("select2/data/tags",["jquery"],function(t){function e(e,i,n){var s=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,i,n),t.isArray(s))for(var a=0;a<s.length;a++){var l=s[a],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return e.prototype.query=function(t,e,i){function n(t,r){for(var o=t.results,a=0;a<o.length;a++){var l=o[a],u=null!=l.children&&!n({results:l.children},!0),c=l.text===e.term;if(c||u)return!r&&(t.data=o,void i(t))}if(r)return!0;var h=s.createTag(e);if(null!=h){var d=s.option(h);d.attr("data-select2-tag",!0),s.addOptions([d]),s.insertTag(o,h)}t.results=o,i(t)}var s=this;return this._removeOldTags(),null==e.term||null!=e.page?void t.call(this,e,i):void t.call(this,e,n)},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){var i=(this._lastTag,this.$element.find("option[data-select2-tag]"));i.each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){function s(e){var i=o._normalizeItem(e),n=o.$element.find("option").filter(function(){return t(this).val()===i.id});if(!n.length){var s=o.option(i);s.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([s])}r(i)}function r(t){o.trigger("select",{data:t})}var o=this;i.term=i.term||"";var a=this.tokenizer(i,this.options,s);a.term!==i.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),i.term=a.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,s){for(var r=n.get("tokenSeparators")||[],o=i.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<o.length;){var u=o[a];if(t.inArray(u,r)!==-1){var c=o.substr(0,a),h=t.extend({},i,{term:c}),d=l(h);null!=d?(s(d),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",e.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t}),e.define("select2/data/maximumInputLength",[],function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){var n=this;this.current(function(s){var r=null!=s?s.length:0;return n.maximumSelectionLength>0&&r>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void t.call(n,e,i)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function i(){}return i.prototype.render=function(e){var i=e.call(this),n=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var s=this;e.call(this,i,n),this.$search.on("keydown",function(t){s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){s.handleSearch(t)}),i.on("open",function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout(function(){s.$search.focus()},0)}),i.on("close",function(){s.$search.attr("tabindex",-1),s.$search.val("")}),i.on("focus",function(){i.isOpen()&&s.$search.focus()}),i.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=s.showSearch(t);e?s.$searchContainer.removeClass("select2-search--hide"):s.$searchContainer.addClass("select2-search--hide")}})},i.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.showSearch=function(t,e){return!0},i}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var s=e[n];this.placeholder.id===s.id&&i.splice(n,1)}return i},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,i,n){var s=this;e.call(this,i,n),i.on("query",function(t){s.lastParams=t,s.loading=!0}),i.on("query:append",function(t){s.lastParams=t,s.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,s.$loadingMore[0]);if(!s.loading&&e){var i=s.$results.offset().top+s.$results.outerHeight(!1),n=s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1);i+50>=n&&s.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function i(e,i,n){this.$dropdownParent=n.get("dropdownParent")||t(document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this,s=!1;t.call(this,e,i),e.on("open",function(){n._showDropdown(),n._attachPositioningHandler(e),s||(s=!0,e.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),e.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var s=this,r="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),l.on(r,function(e){var i=t(this).data("select2-scroll-position");t(this).scrollTop(i.y)}),t(window).on(r+" "+o+" "+a,function(t){s._positionDropdown(),s._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,n){var s="scroll.select2."+n.id,r="resize.select2."+n.id,o="orientationchange.select2."+n.id,a=this.$container.parents().filter(e.hasScroll);a.off(s),t(window).off(s+" "+r+" "+o)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),s=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},u=l.top<r.top-a.height,c=l.bottom>r.bottom+a.height,h={left:r.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();h.top-=p.top,h.left-=p.left,i||n||(s="below"),c||!u||i?!u&&c&&i&&(s="below"):s="above",("above"==s||i&&"below"!==s)&&(h.top=o.top-p.top-a.height),null!=s&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+s),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+s)),this.$dropdownContainer.css(h)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var i=0,n=0;n<e.length;n++){var s=e[n];s.children?i+=t(s.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",function(t){n._handleSelectOnClose(t)})},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var i=e.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var s=n.data("data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t}),e.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",function(t){n._selectTriggered(t)}),e.on("unselect",function(t){n._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){var e=t.minimum-t.input.length,i="Please enter "+e+" or more characters";return i},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,i,n,s,r,o,a,l,u,c,h,d,p,f,g,m,v,y,_,b,w,x,C,k,D,T,S,A){function E(){this.reset()}E.prototype.apply=function(h){if(h=t.extend(!0,{},this.defaults,h),null==h.dataAdapter){if(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=d,h.minimumInputLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,v)),h.maximumInputLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,y)),h.maximumSelectionLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,_)),h.tags&&(h.dataAdapter=u.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=u.Decorate(h.dataAdapter,m)),null!=h.query){var A=e(h.amdBase+"compat/query");h.dataAdapter=u.Decorate(h.dataAdapter,A)}if(null!=h.initSelection){var E=e(h.amdBase+"compat/initSelection");h.dataAdapter=u.Decorate(h.dataAdapter,E)}}if(null==h.resultsAdapter&&(h.resultsAdapter=i,null!=h.ajax&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,C)),null!=h.placeholder&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,x)),h.selectOnClose&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,T))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=b;else{var I=u.Decorate(b,w);h.dropdownAdapter=I;
}if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=u.Decorate(h.dropdownAdapter,D)),h.closeOnSelect&&(h.dropdownAdapter=u.Decorate(h.dropdownAdapter,S)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass){var O=e(h.amdBase+"compat/dropdownCss");h.dropdownAdapter=u.Decorate(h.dropdownAdapter,O)}h.dropdownAdapter=u.Decorate(h.dropdownAdapter,k)}if(null==h.selectionAdapter){if(h.multiple?h.selectionAdapter=s:h.selectionAdapter=n,null!=h.placeholder&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,r)),h.allowClear&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,o)),h.multiple&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,a)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass){var $=e(h.amdBase+"compat/containerCss");h.selectionAdapter=u.Decorate(h.selectionAdapter,$)}h.selectionAdapter=u.Decorate(h.selectionAdapter,l)}if("string"==typeof h.language)if(h.language.indexOf("-")>0){var P=h.language.split("-"),M=P[0];h.language=[h.language,M]}else h.language=[h.language];if(t.isArray(h.language)){var N=new c;h.language.push("en");for(var j=h.language,F=0;F<j.length;F++){var H=j[F],L={};try{L=c.loadPath(H)}catch(R){try{H=this.defaults.amdLanguageBase+H,L=c.loadPath(H)}catch(z){h.debug&&window.console&&console.warn;continue}}N.extend(L)}h.translations=N}else{var W=c.loadPath(this.defaults.amdLanguageBase+"en"),U=new c(h.language);U.extend(W),h.translations=U}return h},E.prototype.reset=function(){function e(t){function e(t){return h[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function i(n,s){if(""===t.trim(n.term))return s;if(s.children&&s.children.length>0){for(var r=t.extend(!0,{},s),o=s.children.length-1;o>=0;o--){var a=s.children[o],l=i(n,a);null==l&&r.children.splice(o,1)}return r.children.length>0?r:i(n,r)}var u=e(s.text).toUpperCase(),c=e(n.term).toUpperCase();return u.indexOf(c)>-1?s:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:A,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},E.prototype.set=function(e,i){var n=t.camelCase(e),s={};s[n]=i;var r=u._convertData(s);t.extend(this.defaults,r)};var I=new E;return I}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,i,n){function s(e,s){if(this.options=e,null!=s&&this.fromElement(s),this.options=i.apply(this.options),s&&s.is("input")){var r=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,r)}}return s.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn,t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn,t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var s={};s=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var r=e.extend(!0,{},s);r=n._convertData(r);for(var o in r)e.inArray(o,i)>-1||(e.isPlainObject(this.options[o])?e.extend(this.options[o],r[o]):this.options[o]=r[o]);return this},s.prototype.get=function(t){return this.options[t]},s.prototype.set=function(t,e){this.options[t]=e},s}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,i,n){var s=function(t,i){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),s.__super__.constructor.call(this);var n=t.attr("tabindex")||0;t.data("old-tabindex",n),t.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(t,this.options);var o=this.render();this._placeContainer(o);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){c.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return i.Extend(s,i.Observable),s.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},s.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},s.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var s=t.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"==e){var r=t.attr("style");if("string"!=typeof r)return null;for(var o=r.split(";"),a=0,l=o.length;a<l;a+=1){var u=o[a].replace(/\s/g,""),c=u.match(i);if(null!==c&&c.length>=1)return c[1]}return null}return e},s.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},s.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){t.each(i,e._syncA),t.each(i,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},s.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,i){t.trigger(e,i)})},s.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(n,s){t.inArray(n,i)===-1&&e.trigger(n,s)})},s.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,i){t.trigger(e,i)})},s.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,i){t.trigger(e,i)})},s.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(i){t.trigger("results:all",{data:i,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(i){t.trigger("results:append",{data:i,query:e})})}),this.on("keypress",function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},s.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},s.prototype._syncSubtree=function(t,e){var i=!1,n=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var s=0;s<e.addedNodes.length;s++){var r=e.addedNodes[s];r.selected&&(i=!0)}else e.removedNodes&&e.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(t){n.trigger("selection:update",{data:t})})}},s.prototype.trigger=function(t,e){var i=s.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in n){var r=n[t],o={prevented:!1,name:t,args:e};if(i.call(this,r,o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},s.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.trigger("query",{})},s.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},s.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},s.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},s.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},s.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn,null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},s.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn;var t=[];return this.dataAdapter.current(function(e){t=e}),t},s.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn,null==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,function(t){return t.toString()})),this.$element.val(i).trigger("change")},s.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},s.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},s}),e.define("select2/compat/utils",["jquery"],function(t){function e(e,i,n){var s,r,o=[];s=t.trim(e.attr("class")),s&&(s=""+s,t(s.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)})),s=t.trim(i.attr("class")),s&&(s=""+s,t(s.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(r=n(this),null!=r&&o.push(r))})),e.attr("class",o.join(" "))}return{syncCssClasses:e}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var s=n.call(this),r=this.options.get("containerCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var o=this.options.get("adaptContainerCssClass");if(o=o||i,r.indexOf(":all:")!==-1){r=r.replace(":all:","");var a=o;o=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("containerCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(s,this.$element,o),s.css(l),s.addClass(r),s},n}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var s=n.call(this),r=this.options.get("dropdownCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var o=this.options.get("adaptDropdownCssClass");if(o=o||i,r.indexOf(":all:")!==-1){r=r.replace(":all:","");var a=o;o=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("dropdownCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(s,this.$element,o),s.css(l),s.addClass(r),s},n}),e.define("select2/compat/initSelection",["jquery"],function(t){function e(t,e,i){i.get("debug")&&window.console&&console.warn,this.initSelection=i.get("initSelection"),this._isInitialized=!1,t.call(this,e,i)}return e.prototype.current=function(e,i){var n=this;return this._isInitialized?void e.call(this,i):void this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,t.isArray(e)||(e=[e]),i(e)})},e}),e.define("select2/compat/inputData",["jquery"],function(t){function e(t,e,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===e.prop("type")&&i.get("debug")&&console&&console.warn,t.call(this,e,i)}return e.prototype.current=function(e,i){function n(e,i){var s=[];return e.selected||t.inArray(e.id,i)!==-1?(e.selected=!0,s.push(e)):e.selected=!1,e.children&&s.push.apply(s,n(e.children,i)),s}for(var s=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];s.push.apply(s,n(o,this.$element.val().split(this._valueSeparator)))}i(s)},e.prototype.select=function(e,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(e){t.map(e,function(t){t.selected=!1})}),this.$element.val(i.id),this.$element.trigger("change")},e.prototype.unselect=function(t,e){var i=this;e.selected=!1,this.current(function(t){for(var n=[],s=0;s<t.length;s++){var r=t[s];e.id!=r.id&&n.push(r.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("change")})},e.prototype.query=function(t,e,i){for(var n=[],s=0;s<this._currentData.length;s++){var r=this._currentData[s],o=this.matches(e,r);null!==o&&n.push(o)}i({results:n})},e.prototype.addOptions=function(e,i){var n=t.map(i,function(e){return t.data(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(t){function e(e){function i(i,n){var s=t.extend(!0,{},n);if(null==i.term||""===t.trim(i.term))return s;if(n.children){for(var r=n.children.length-1;r>=0;r--){var o=n.children[r],a=e(i.term,o.text,o);a||s.children.splice(r,1)}if(s.children.length>0)return s}return e(i.term,n.text,n)?s:null}return i}return e}),e.define("select2/compat/query",[],function(){function t(t,e,i){i.get("debug")&&window.console&&console.warn,t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.callback=i;var n=this.options.get("query");n.call(null,e)},t}),e.define("select2/dropdown/attachContainer",[],function(){function t(t,e,i){t.call(this,e,i)}return t.prototype.position=function(t,e,i){var n=i.find(".dropdown-wrapper");n.append(e),e.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},t}),e.define("select2/dropdown/stopPropagation",[],function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(n.join(" "),function(t){t.stopPropagation()})},t}),e.define("select2/selection/stopPropagation",[],function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(n.join(" "),function(t){t.stopPropagation()})},t}),function(i){"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t)}(function(t){function e(e){var o=e||window.event,a=l.call(arguments,1),u=0,h=0,d=0,p=0,f=0,g=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&&(d=o.detail*-1),"wheelDelta"in o&&(d=o.wheelDelta),"wheelDeltaY"in o&&(d=o.wheelDeltaY),"wheelDeltaX"in o&&(h=o.wheelDeltaX*-1),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(h=d*-1,d=0),u=0===d?h:d,"deltaY"in o&&(d=o.deltaY*-1,u=d),"deltaX"in o&&(h=o.deltaX,0===d&&(u=h*-1)),0!==d||0!==h){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");u*=m,d*=m,h*=m}else if(2===o.deltaMode){var v=t.data(this,"mousewheel-page-height");u*=v,d*=v,h*=v}if(p=Math.max(Math.abs(d),Math.abs(h)),(!r||p<r)&&(r=p,n(o,p)&&(r/=40)),n(o,p)&&(u/=40,h/=40,d/=40),u=Math[u>=1?"floor":"ceil"](u/r),h=Math[h>=1?"floor":"ceil"](h/r),d=Math[d>=1?"floor":"ceil"](d/r),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,g=e.clientY-y.top}return e.deltaX=h,e.deltaY=d,e.deltaFactor=r,e.offsetX=f,e.offsetY=g,e.deltaMode=0,a.unshift(e,u,h,d),s&&clearTimeout(s),s=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){r=null}function n(t,e){return c.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var s,r,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=o.length;u;)t.event.fixHooks[o[--u]]=t.event.mouseHooks;var c=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",c.getLineHeight(this)),t.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.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)}})}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,i,n){if(null==t.fn.select2){var s=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var n=t.extend(!0,{},e);new i(t(this),n)}),this;if("string"==typeof e){var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this).data("select2");null==i&&window.console&&console.error,n=i[e].apply(i,r)}),t.inArray(e,s)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i}),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i}),+function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();(function(t){var n="ekkoLightbox",s=t.fn[n],r={title:"",footer:"",showArrows:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div></div><div></div></div></div>',leftArrow:"<span>&#10094;</span>",rightArrow:"<span>&#10095;</span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},o=function(){function n(i,s){var o=this;e(this,n),this._config=t.extend({},r,s),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=i instanceof jQuery?i:t(i);var a='<div class="modal-header"'+(this._config.title||this._config.alwaysShowClose?"":' style="display:none"')+'><button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">'+(this._config.title||"&nbsp;")+"</h4></div>",l='<div class="modal-footer"'+(this._config.footer?"":' style="display:none"')+">"+(this._config.footer||"&nbsp;")+"</div>",u='<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in"></div><div class="ekko-lightbox-item fade"></div></div></div>',c='<div class="modal-dialog" role="document"><div class="modal-content">'+a+u+l+"</div></div>";t(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+c+"</div>"),this._$modal=t("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=t(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),t(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'</a><a href="#">'+this._config.rightArrow+"</a></div>"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",function(t){return t.preventDefault(),o.navigateLeft()}),this._$lightboxContainer.on("click","a:last-child",function(t){return t.preventDefault(),o.navigateRight()}))),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return o._toggleLoading(!0),o._handle(),o._config.onShown.call(o)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return o._galleryName&&(t(document).off("keydown.ekkoLightbox"),t(window).off("resize.ekkoLightbox")),o._$modal.remove(),o._config.onHidden.call(o)}).modal(this._config),t(window).on("resize.ekkoLightbox",function(){o._resize(o._wantedWidth,o._wantedHeight)})}return i(n,null,[{key:"Default",get:function(){return r}}]),i(n,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(e){return e<0||e>this._$galleryItems.length-1?this:(this._galleryIndex=e,this._$element=t(this._$galleryItems.get(this._galleryIndex)),void this._handle())}},{key:"navigateLeft",value:function(){if(1!==this._$galleryItems.length)return 0===this._galleryIndex?this._galleryIndex=this._$galleryItems.length-1:this._galleryIndex--,this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"navigateRight",value:function(){if(1!==this._$galleryItems.length)return this._galleryIndex===this._$galleryItems.length-1?this._galleryIndex=0:this._galleryIndex++,this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(t){return t=t||window.event,39===t.keyCode?this.navigateRight():37===t.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(t,e){return e=e||!1,!e&&this._isImage(t)&&(e="image"),!e&&this._getYoutubeId(t)&&(e="youtube"),!e&&this._getVimeoId(t)&&(e="vimeo"),!e&&this._getInstagramId(t)&&(e="instagram"),(!e||["image","youtube","vimeo","instagram","video","url"].indexOf(e)<0)&&(e="url"),e}},{key:"_isImage",value:function(t){return t&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var t=this,e=this._$lightboxBodyTwo,i=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(e=this._$lightboxBodyOne,i=this._$lightboxBodyTwo),i.removeClass("in"),setTimeout(function(){t._$lightboxBodyTwo.hasClass("in")||t._$lightboxBodyTwo.empty(),t._$lightboxBodyOne.hasClass("in")||t._$lightboxBodyOne.empty()},500),e.addClass("in"),e}},{key:"_handle",value:function(){var t=this._containerToUse();this._updateTitleAndFooter();var e=this._$element.attr("data-remote")||this._$element.attr("href"),i=this._detectRemoteType(e,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","video","url"].indexOf(i)<0)return this._error(this._config.strings.type);switch(i){case"image":this._preloadImage(e,t),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(e,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(e),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(e),t);break;case"video":this._showHtml5Video(e,t);break;default:this._loadRemoteContent(e,t)}return this}},{key:"_getYoutubeId",value:function(t){if(!t)return!1;var e=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!e||11!==e[2].length)&&e[2]}},{key:"_getVimeoId",value:function(t){return!!(t&&t.indexOf("vimeo")>0)&&t}},{key:"_getInstagramId",value:function(t){return!!(t&&t.indexOf("instagram")>0)&&t}},{key:"_toggleLoading",value:function(e){return e=e||!1,e?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in"),t(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in"),t(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(t){return parseInt(this._$modalDialog.css(t),10)+parseInt(this._$modalContent.css(t),10)+parseInt(this._$modalBody.css(t),10)}},{key:"_updateTitleAndFooter",value:function(){var t=this._$element.data("title")||"",e=this._$element.data("footer")||"";return this._titleIsShown=!1,t||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(t||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,e?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(e)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(t,e){var i=this._getYoutubeId(t),n=t.indexOf("&")>0?t.substr(t.indexOf("&")):"",s=this._$element.data("width")||560,r=this._$element.data("height")||s/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+i+"?badge=0&autoplay=1&html5=1"+n,s,r,e)}},{key:"_showVimeoVideo",value:function(t,e){var i=500,n=this._$element.data("height")||i/(560/315);return this._showVideoIframe(t+"?autoplay=1",i,n,e)}},{key:"_showInstagramVideo",value:function(t,e){var i=this._$element.data("width")||612,n=i+80;return t="/"!==t.substr(-1)?t+"/":t,e.html('<iframe width="'+i+'" height="'+n+'" src="'+t+'embed/" frameborder="0" allowfullscreen></iframe>'),this._resize(i,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(t,e,i,n){return i=i||e,n.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+e+'" height="'+i+'" src="'+t+'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>'),this._resize(e,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(t,e){var i=this._$element.data("width")||560,n=this._$element.data("height")||i/(560/315);return e.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+n+'" src="'+t+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(i,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,i){var n=this,s=this._$element.data("width")||560,r=this._$element.data("height")||560,o=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),o||this._isExternal(e)?(i.html('<iframe src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):i.load(e,t.proxy(function(){return n._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(s,r),this}},{key:"_isExternal",value:function(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+{
"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(t){return this._containerToUse().html(t),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(e,i){if(this._$galleryItems){var n=t(this._$galleryItems.get(e),!1);if("undefined"!=typeof n){var s=n.attr("data-remote")||n.attr("href");return("image"===n.attr("data-type")||this._isImage(s))&&this._preloadImage(s,!1),i>0?this._preloadImageByIndex(e+1,i-1):void 0}}}},{key:"_preloadImage",value:function(e,i){var n=this;i=i||!1;var s=new Image;return i&&!function(){var r=setTimeout(function(){i.append(n._config.loadingMessage)},200);s.onload=function(){r&&clearTimeout(r),r=null;var e=t("<img />");return e.attr("src",s.src),e.addClass("img-fluid"),i.html(e),n._$modalArrows&&n._$modalArrows.css("display",""),n._resize(s.width,s.height),n._toggleLoading(!1),n._config.onContentLoaded.call(n)},s.onerror=function(){return n._toggleLoading(!1),n._error(n._config.strings.fail+(" "+e))}}(),s.src=e,s}},{key:"_resize",value:function(e,i){i=i||e,this._wantedWidth=e,this._wantedHeight=i;var n=this._padding.left+this._padding.right+this._border.left+this._border.right,s=Math.min(e+n,this._config.doc.body.clientWidth);e+n>s?(i=(s-n)/e*i,e=s):e+=n;var r=0,o=0;this._footerIsShown&&(o=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(r=this._$modalHeader.outerHeight(!0)||67);var a=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,l=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),u=Math.min(i,t(window).height()-a-l-r-o);if(i>u){var c=Math.min(u/i,1);e=Math.ceil(c*e)}return this._$lightboxContainer.css("height",u),this._$modalDialog.css("width","auto").css("maxWidth",e),this._$modal.modal("_handleUpdate"),this}}],[{key:"_jQueryInterface",value:function(e){var i=this;return e=e||{},this.each(function(){var s=t(i),r=t.extend({},n.Default,s.data(),"object"==typeof e&&e);new n(i,r)})}}]),n}();return t.fn[n]=o._jQueryInterface,t.fn[n].Constructor=o,t.fn[n].noConflict=function(){return t.fn[n]=s,o._jQueryInterface},o})(jQuery)}(jQuery);var pieOptions={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:1,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,responsive:!0,maintainAspectRatio:!1,legendTemplate:"<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><i class='fa fa-circle-o' style='color: <%=segments[i].fillColor%>'></i><%if(segments[i].label){%><%=segments[i].label%><%}%> foo</li><%}%></ul>",tooltipTemplate:"<%=value %> <%=label%> "};!function(t,e){var i={};i.modals={},i.modals.confirmDelete=function(){var e=t("table"),i={click:function(e){var i=t(this),n=t("#dataConfirmModal"),s=i.attr("href"),r=i.attr("data-content"),o=i.attr("data-title");return t("#myModalLabel").text(o),n.find(".modal-body").text(r),t("#deleteForm").attr("action",s),n.modal({show:!0}),!1}},n=function(){e.on("click",".delete-asset",i.click)};return{render:n}},t(function(){(new i.modals.confirmDelete).render()})}(jQuery,window.snipeit.settings),$(document).ready(function(){$(".slideout-menu-toggle").on("click",function(t){t.preventDefault();var e=$(".slideout-menu"),i=$(".slideout-menu").width();e.toggleClass("open"),e.hasClass("open")?(e.show(),e.animate({right:"0px"})):(e.animate({right:-i},"-350px"),e.fadeOut())}),$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({checkboxClass:"icheckbox_minimal-blue",radioClass:"iradio_minimal-blue"});var t=/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream;t||$(".select2").select2(),$(".datepicker").datepicker()});