ctrlpanel/public/js/app.js
2021-11-06 01:56:57 +01:00

3 lines
321 KiB
JavaScript
Vendored
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.

/*! For license information please see app.js.LICENSE.txt */
(()=>{var t={669:(t,e,n)=>{t.exports=n(609)},448:(t,e,n)=>{"use strict";var i=n(867),o=n(26),r=n(372),a=n(327),s=n(97),l=n(109),u=n(985),c=n(61);t.exports=function(t){return new Promise((function(e,n){var f=t.data,h=t.headers;i.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+g)}var m=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:i,config:t,request:d};o(e,n,r),d=null}},d.onabort=function(){d&&(n(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||u(m))&&t.xsrfCookieName?r.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in d&&i.forEach(h,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),f||(f=null),d.send(f)}))}},609:(t,e,n)=>{"use strict";var i=n(867),o=n(849),r=n(321),a=n(185);function s(t){var e=new r(t),n=o(r.prototype.request,e);return i.extend(n,r.prototype,e),i.extend(n,e),n}var l=s(n(655));l.Axios=r,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n(263),l.CancelToken=n(972),l.isCancel=n(502),l.all=function(t){return Promise.all(t)},l.spread=n(713),l.isAxiosError=n(268),t.exports=l,t.exports.default=l},263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},972:(t,e,n)=>{"use strict";var i=n(263);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var i=n(867),o=n(327),r=n(782),a=n(572),s=n(185);function l(t){this.defaults=t,this.interceptors={request:new r,response:new r}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(s(i||{},{method:t,url:e,data:n}))}})),t.exports=l},782:(t,e,n)=>{"use strict";var i=n(867);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},97:(t,e,n)=>{"use strict";var i=n(793),o=n(303);t.exports=function(t,e){return t&&!i(e)?o(t,e):e}},61:(t,e,n)=>{"use strict";var i=n(481);t.exports=function(t,e,n,o,r){var a=new Error(t);return i(a,e,n,o,r)}},572:(t,e,n)=>{"use strict";var i=n(867),o=n(527),r=n(502),a=n(655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,n,i,o){return t.config=e,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},185:(t,e,n)=>{"use strict";var i=n(867);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],r=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(o){i.isUndefined(e[o])?i.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(t[o],e[o])}i.forEach(o,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(r,u),i.forEach(a,(function(o){i.isUndefined(e[o])?i.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(void 0,e[o])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var c=o.concat(r).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return i.forEach(f,u),n}},26:(t,e,n)=>{"use strict";var i=n(61);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},527:(t,e,n)=>{"use strict";var i=n(867);t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},655:(t,e,n)=>{"use strict";var i=n(155),o=n(867),r=n(16),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(l=n(448)),l),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){u.headers[t]=o.merge(a)})),t.exports=u},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},327:(t,e,n)=>{"use strict";var i=n(867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(i.isURLSearchParams(e))r=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),r=a.join("&")}if(r){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,n)=>{"use strict";var i=n(867);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,o,r,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(o)&&s.push("path="+o),i.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},985:(t,e,n)=>{"use strict";var i=n(867);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=i.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},16:(t,e,n)=>{"use strict";var i=n(867);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},109:(t,e,n)=>{"use strict";var i=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,a={};return t?(i.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},867:(t,e,n)=>{"use strict";var i=n(849),o=Object.prototype.toString;function r(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:r,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,i){l(e[i])&&l(n)?e[i]=t(e[i],n):l(n)?e[i]=t({},n):r(n)?e[i]=n.slice():e[i]=n}for(var i=0,o=arguments.length;i<o;i++)c(arguments[i],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?i(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},580:function(t,e,n){var i,o,r,a;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=function(t,e){"use strict";function n(t){return t&&"object"===s(t)&&"default"in t?t:{default:t}}var i=n(e),o="CardRefresh",r="lte.cardrefresh",a=i.default.fn[o],l="card",u='[data-card-widget="card-refresh"]',c={source:"",sourceSelector:"",params:{},trigger:u,content:".card-body",loadInContent:!0,loadOnInit:!0,responseType:"",overlayTemplate:'<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>',onLoadStart:function(){},onLoadDone:function(t){return t}},f=function(){function t(t,e){if(this._element=t,this._parent=t.parents(".card").first(),this._settings=i.default.extend({},c,e),this._overlay=i.default(this._settings.overlayTemplate),t.hasClass(l)&&(this._parent=t),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.")}var e=t.prototype;return e.load=function(){var t=this;this._addOverlay(),this._settings.onLoadStart.call(i.default(this)),i.default.get(this._settings.source,this._settings.params,(function(e){t._settings.loadInContent&&(""!==t._settings.sourceSelector&&(e=i.default(e).find(t._settings.sourceSelector).html()),t._parent.find(t._settings.content).html(e)),t._settings.onLoadDone.call(i.default(t),e),t._removeOverlay()}),""!==this._settings.responseType&&this._settings.responseType),i.default(this._element).trigger(i.default.Event("loaded.lte.cardrefresh"))},e._addOverlay=function(){this._parent.append(this._overlay),i.default(this._element).trigger(i.default.Event("overlay.added.lte.cardrefresh"))},e._removeOverlay=function(){this._parent.find(this._overlay).remove(),i.default(this._element).trigger(i.default.Event("overlay.removed.lte.cardrefresh"))},e._init=function(){var t=this;i.default(this).find(this._settings.trigger).on("click",(function(){t.load()})),this._settings.loadOnInit&&this.load()},t._jQueryInterface=function(e){var n=i.default(this).data(r),o=i.default.extend({},c,i.default(this).data());n||(n=new t(i.default(this),o),i.default(this).data(r,"string"==typeof e?n:e)),"string"==typeof e&&e.match(/load/)?n[e]():n._init(i.default(this))},t}();i.default(document).on("click",u,(function(t){t&&t.preventDefault(),f._jQueryInterface.call(i.default(this),"load")})),i.default((function(){i.default(u).each((function(){f._jQueryInterface.call(i.default(this))}))})),i.default.fn[o]=f._jQueryInterface,i.default.fn[o].Constructor=f,i.default.fn[o].noConflict=function(){return i.default.fn[o]=a,f._jQueryInterface};var h="CardWidget",d="lte.cardwidget",p=i.default.fn[h],g="card",m="collapsed-card",v="collapsing-card",_="expanding-card",y="was-collapsed",w="maximized-card",b='[data-card-widget="remove"]',x='[data-card-widget="collapse"]',C='[data-card-widget="maximize"]',E={animationSpeed:"normal",collapseTrigger:x,removeTrigger:b,maximizeTrigger:C,collapseIcon:"fa-minus",expandIcon:"fa-plus",maximizeIcon:"fa-expand",minimizeIcon:"fa-compress"},T=function(){function t(t,e){this._element=t,this._parent=t.parents(".card").first(),t.hasClass(g)&&(this._parent=t),this._settings=i.default.extend({},E,e)}var e=t.prototype;return e.collapse=function(){var t=this;this._parent.addClass(v).children(".card-body, .card-footer").slideUp(this._settings.animationSpeed,(function(){t._parent.addClass(m).removeClass(v)})),this._parent.find("> .card-header "+this._settings.collapseTrigger+" ."+this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon),this._element.trigger(i.default.Event("collapsed.lte.cardwidget"),this._parent)},e.expand=function(){var t=this;this._parent.addClass(_).children(".card-body, .card-footer").slideDown(this._settings.animationSpeed,(function(){t._parent.removeClass(m).removeClass(_)})),this._parent.find("> .card-header "+this._settings.collapseTrigger+" ."+this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon),this._element.trigger(i.default.Event("expanded.lte.cardwidget"),this._parent)},e.remove=function(){this._parent.slideUp(),this._element.trigger(i.default.Event("removed.lte.cardwidget"),this._parent)},e.toggle=function(){this._parent.hasClass(m)?this.expand():this.collapse()},e.maximize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon),this._parent.css({height:this._parent.height(),width:this._parent.width(),transition:"all .15s"}).delay(150).queue((function(){var t=i.default(this);t.addClass(w),i.default("html").addClass(w),t.hasClass(m)&&t.addClass(y),t.dequeue()})),this._element.trigger(i.default.Event("maximized.lte.cardwidget"),this._parent)},e.minimize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon),this._parent.css("cssText","height: "+this._parent[0].style.height+" !important; width: "+this._parent[0].style.width+" !important; transition: all .15s;").delay(10).queue((function(){var t=i.default(this);t.removeClass(w),i.default("html").removeClass(w),t.css({height:"inherit",width:"inherit"}),t.hasClass(y)&&t.removeClass(y),t.dequeue()})),this._element.trigger(i.default.Event("minimized.lte.cardwidget"),this._parent)},e.toggleMaximize=function(){this._parent.hasClass(w)?this.minimize():this.maximize()},e._init=function(t){var e=this;this._parent=t,i.default(this).find(this._settings.collapseTrigger).click((function(){e.toggle()})),i.default(this).find(this._settings.maximizeTrigger).click((function(){e.toggleMaximize()})),i.default(this).find(this._settings.removeTrigger).click((function(){e.remove()}))},t._jQueryInterface=function(e){var n=i.default(this).data(d),o=i.default.extend({},E,i.default(this).data());n||(n=new t(i.default(this),o),i.default(this).data(d,"string"==typeof e?n:e)),"string"==typeof e&&e.match(/collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/)?n[e]():"object"===s(e)&&n._init(i.default(this))},t}();i.default(document).on("click",x,(function(t){t&&t.preventDefault(),T._jQueryInterface.call(i.default(this),"toggle")})),i.default(document).on("click",b,(function(t){t&&t.preventDefault(),T._jQueryInterface.call(i.default(this),"remove")})),i.default(document).on("click",C,(function(t){t&&t.preventDefault(),T._jQueryInterface.call(i.default(this),"toggleMaximize")})),i.default.fn[h]=T._jQueryInterface,i.default.fn[h].Constructor=T,i.default.fn[h].noConflict=function(){return i.default.fn[h]=p,T._jQueryInterface};var S="ControlSidebar",k="lte.controlsidebar",D=i.default.fn[S],I=".control-sidebar",A=".main-header",N=".main-footer",L="control-sidebar-animate",O="control-sidebar-open",j="control-sidebar-slide-open",R="layout-fixed",P="layout-footer-fixed",M="layout-sm-footer-fixed",H="layout-md-footer-fixed",q="layout-lg-footer-fixed",F="layout-xl-footer-fixed",z={controlsidebarSlide:!0,scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},B=function(){function t(t,e){this._element=t,this._config=e,this._init()}var e=t.prototype;return e.collapse=function(){var t=i.default("body"),e=i.default("html");this._config.controlsidebarSlide?(e.addClass(L),t.removeClass(j).delay(300).queue((function(){i.default(I).hide(),e.removeClass(L),i.default(this).dequeue()}))):t.removeClass(O),i.default(this._element).trigger(i.default.Event("collapsed.lte.controlsidebar"))},e.show=function(){var t=i.default("body"),e=i.default("html");this._config.controlsidebarSlide?(e.addClass(L),i.default(I).show().delay(10).queue((function(){t.addClass(j).delay(300).queue((function(){e.removeClass(L),i.default(this).dequeue()})),i.default(this).dequeue()}))):t.addClass(O),this._fixHeight(),this._fixScrollHeight(),i.default(this._element).trigger(i.default.Event("expanded.lte.controlsidebar"))},e.toggle=function(){var t=i.default("body");t.hasClass(O)||t.hasClass(j)?this.collapse():this.show()},e._init=function(){var t=this;this._fixHeight(),this._fixScrollHeight(),i.default(window).resize((function(){t._fixHeight(),t._fixScrollHeight()})),i.default(window).scroll((function(){var e=i.default("body");(e.hasClass(O)||e.hasClass(j))&&t._fixScrollHeight()}))},e._fixScrollHeight=function(){var t=i.default("body");if(t.hasClass(R)){var e={scroll:i.default(document).height(),window:i.default(window).height(),header:i.default(A).outerHeight(),footer:i.default(N).outerHeight()},n=Math.abs(e.window+i.default(window).scrollTop()-e.scroll),o=i.default(window).scrollTop(),r=(t.hasClass("layout-navbar-fixed")||t.hasClass("layout-sm-navbar-fixed")||t.hasClass("layout-md-navbar-fixed")||t.hasClass("layout-lg-navbar-fixed")||t.hasClass("layout-xl-navbar-fixed"))&&"fixed"===i.default(A).css("position"),a=(t.hasClass(P)||t.hasClass(M)||t.hasClass(H)||t.hasClass(q)||t.hasClass(F))&&"fixed"===i.default(N).css("position"),s=i.default(I),l=i.default(".control-sidebar, .control-sidebar .control-sidebar-content");if(0===o&&0===n)s.css({bottom:e.footer,top:e.header}),l.css("height",e.window-(e.header+e.footer));else if(n<=e.footer)if(!1===a){var u=e.header-o;s.css("bottom",e.footer-n).css("top",u>=0?u:0),l.css("height",e.window-(e.footer-n))}else s.css("bottom",e.footer);else o<=e.header?!1===r?(s.css("top",e.header-o),l.css("height",e.window-(e.header-o))):s.css("top",e.header):!1===r?(s.css("top",0),l.css("height",e.window)):s.css("top",e.header)}},e._fixHeight=function(){var t=i.default("body");if(t.hasClass(R)){var e=i.default(window).height(),n=i.default(A).outerHeight(),o=i.default(N).outerHeight(),r=e-n;(t.hasClass(P)||t.hasClass(M)||t.hasClass(H)||t.hasClass(q)||t.hasClass(F))&&"fixed"===i.default(N).css("position")&&(r=e-n-o);var a=i.default(".control-sidebar .control-sidebar-content");a.css("height",r),void 0!==i.default.fn.overlayScrollbars&&a.overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}})}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(k),o=i.default.extend({},z,i.default(this).data());if(n||(n=new t(this,o),i.default(this).data(k,n)),"undefined"===n[e])throw new Error(e+" is not a function");n[e]()}))},t}();i.default(document).on("click",'[data-widget="control-sidebar"]',(function(t){t.preventDefault(),B._jQueryInterface.call(i.default(this),"toggle")})),i.default.fn[S]=B._jQueryInterface,i.default.fn[S].Constructor=B,i.default.fn[S].noConflict=function(){return i.default.fn[S]=D,B._jQueryInterface};var U="DirectChat",W="lte.directchat",Q=i.default.fn[U],V=function(){function t(t){this._element=t}return t.prototype.toggle=function(){i.default(this._element).parents(".direct-chat").first().toggleClass("direct-chat-contacts-open"),i.default(this._element).trigger(i.default.Event("toggled.lte.directchat"))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(W);n||(n=new t(i.default(this)),i.default(this).data(W,n)),n[e]()}))},t}();i.default(document).on("click",'[data-widget="chat-pane-toggle"]',(function(t){t&&t.preventDefault(),V._jQueryInterface.call(i.default(this),"toggle")})),i.default.fn[U]=V._jQueryInterface,i.default.fn[U].Constructor=V,i.default.fn[U].noConflict=function(){return i.default.fn[U]=Q,V._jQueryInterface};var $="Dropdown",X="lte.dropdown",G=i.default.fn[$],Y=".dropdown-menu",K={},J=function(){function t(t,e){this._config=e,this._element=t}var e=t.prototype;return e.toggleSubmenu=function(){this._element.siblings().show().toggleClass("show"),this._element.next().hasClass("show")||this._element.parents(Y).first().find(".show").removeClass("show").hide(),this._element.parents("li.nav-item.dropdown.show").on("hidden.bs.dropdown",(function(){i.default(".dropdown-submenu .show").removeClass("show").hide()}))},e.fixPosition=function(){var t=i.default(".dropdown-menu.show");if(0!==t.length){t.hasClass("dropdown-menu-right")?t.css({left:"inherit",right:0}):t.css({left:0,right:"inherit"});var e=t.offset(),n=t.width(),o=i.default(window).width()-e.left;e.left<0?t.css({left:"inherit",right:e.left-5}):o<n&&t.css({left:"inherit",right:0})}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(X),o=i.default.extend({},K,i.default(this).data());n||(n=new t(i.default(this),o),i.default(this).data(X,n)),"toggleSubmenu"!==e&&"fixPosition"!==e||n[e]()}))},t}();i.default('.dropdown-menu [data-toggle="dropdown"]').on("click",(function(t){t.preventDefault(),t.stopPropagation(),J._jQueryInterface.call(i.default(this),"toggleSubmenu")})),i.default('.navbar [data-toggle="dropdown"]').on("click",(function(t){t.preventDefault(),i.default(t.target).parent().hasClass("dropdown-submenu")||setTimeout((function(){J._jQueryInterface.call(i.default(this),"fixPosition")}),1)})),i.default.fn[$]=J._jQueryInterface,i.default.fn[$].Constructor=J,i.default.fn[$].noConflict=function(){return i.default.fn[$]=G,J._jQueryInterface};var Z="ExpandableTable",tt="lte.expandableTable",et=i.default.fn[Z],nt='[data-widget="expandable-table"]',it="aria-expanded",ot=function(){function t(t,e){this._options=e,this._element=t}var e=t.prototype;return e.init=function(){i.default(nt).each((function(t,e){var n=i.default(e).attr(it),o=i.default(e).next().children().first().children();"true"===n?o.show():"false"===n&&(o.hide(),o.parent().parent().addClass("d-none"))}))},e.toggleRow=function(){var t=this._element,e=t.attr(it),n=t.next().children().first().children();n.stop(),"true"===e?(n.slideUp(500,(function(){t.next().addClass("d-none")})),t.attr(it,"false"),t.trigger(i.default.Event("collapsed.lte.expandableTable"))):"false"===e&&(t.next().removeClass("d-none"),n.slideDown(500),t.attr(it,"true"),t.trigger(i.default.Event("expanded.lte.expandableTable")))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(tt);n||(n=new t(i.default(this)),i.default(this).data(tt,n)),"string"==typeof e&&e.match(/init|toggleRow/)&&n[e]()}))},t}();i.default(".expandable-table").ready((function(){ot._jQueryInterface.call(i.default(this),"init")})),i.default(document).on("click",nt,(function(){ot._jQueryInterface.call(i.default(this),"toggleRow")})),i.default.fn[Z]=ot._jQueryInterface,i.default.fn[Z].Constructor=ot,i.default.fn[Z].noConflict=function(){return i.default.fn[Z]=et,ot._jQueryInterface};var rt="Fullscreen",at="lte.fullscreen",st=i.default.fn[rt],lt='[data-widget="fullscreen"]',ut=lt+" i",ct={minimizeIcon:"fa-compress-arrows-alt",maximizeIcon:"fa-expand-arrows-alt"},ft=function(){function t(t,e){this.element=t,this.options=i.default.extend({},ct,e)}var e=t.prototype;return e.toggle=function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?this.windowed():this.fullscreen()},e.fullscreen=function(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen?document.documentElement.webkitRequestFullscreen():document.documentElement.msRequestFullscreen&&document.documentElement.msRequestFullscreen(),i.default(ut).removeClass(this.options.maximizeIcon).addClass(this.options.minimizeIcon)},e.windowed=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),i.default(ut).removeClass(this.options.minimizeIcon).addClass(this.options.maximizeIcon)},t._jQueryInterface=function(e){var n=i.default(this).data(at);n||(n=i.default(this).data());var o=i.default.extend({},ct,"object"===s(e)?e:n),r=new t(i.default(this),o);i.default(this).data(at,"object"===s(e)?e:n),"string"==typeof e&&e.match(/toggle|fullscreen|windowed/)?r[e]():r.init()},t}();i.default(document).on("click",lt,(function(){ft._jQueryInterface.call(i.default(this),"toggle")})),i.default.fn[rt]=ft._jQueryInterface,i.default.fn[rt].Constructor=ft,i.default.fn[rt].noConflict=function(){return i.default.fn[rt]=st,ft._jQueryInterface};var ht="lte.iframe",dt=i.default.fn.IFrame,pt='[data-widget="iframe"]',gt='[data-widget="iframe-fullscreen"]',mt=".content-wrapper",vt=".content-wrapper iframe",_t='[data-widget="iframe"].iframe-mode .navbar-nav',yt=_t+" .nav-item",wt='[data-widget="iframe"].iframe-mode .tab-content',bt=wt+" .tab-empty",xt=wt+" .tab-loading",Ct=".main-sidebar .nav-item > a.nav-link",Et=".main-header .nav-item a.nav-link",Tt=".main-header a.dropdown-item",St="iframe-mode",kt="iframe-mode-fullscreen",Dt={onTabClick:function(t){return t},onTabChanged:function(t){return t},onTabCreated:function(t){return t},autoIframeMode:!0,autoItemActive:!0,autoShowNewTab:!0,loadingScreen:!0,useNavbarItems:!0,scrollOffset:40,scrollBehaviorSwap:!1,iconMaximize:"fa-expand",iconMinimize:"fa-compress"},It=function(){function t(t,e){this._config=e,this._element=t,this._init()}var e=t.prototype;return e.onTabClick=function(t){this._config.onTabClick(t)},e.onTabChanged=function(t){this._config.onTabChanged(t)},e.onTabCreated=function(t){this._config.onTabCreated(t)},e.createTab=function(t,e,n,o){var r=this,a="panel-"+n+"-"+Math.floor(1e3*Math.random()),s="tab-"+n+"-"+Math.floor(1e3*Math.random()),l='<li class="nav-item" role="presentation"><a class="nav-link" data-toggle="row" id="'+s+'" href="#'+a+'" role="tab" aria-controls="'+a+'" aria-selected="false">'+t+"</a></li>";i.default(_t).append(l);var u='<div class="tab-pane fade" id="'+a+'" role="tabpanel" aria-labelledby="'+s+'"><iframe src="'+e+'"></iframe></div>';if(i.default(wt).append(u),o)if(this._config.loadingScreen){var c=i.default(xt);c.fadeIn(),i.default(a+" iframe").ready((function(){"number"==typeof r._config.loadingScreen?(r.switchTab("#"+s,r._config.loadingScreen),setTimeout((function(){c.fadeOut()}),r._config.loadingScreen)):(r.switchTab("#"+s,r._config.loadingScreen),c.fadeOut())}))}else this.switchTab("#"+s);this.onTabCreated(i.default("#"+s))},e.openTabSidebar=function(t,e){void 0===e&&(e=this._config.autoShowNewTab);var n=i.default(t).clone();void 0===n.attr("href")&&(n=i.default(t).parent("a").clone()),n.find(".right").remove();var o=n.find("p").text();""===o&&(o=n.text());var r=n.attr("href");"#"!==r&&""!==r&&void 0!==r&&this.createTab(o,r,r.replace(".html","").replace("./","").replaceAll("/","-"),e)},e.switchTab=function(t){var e=i.default(t),n=e.attr("href");i.default(bt).hide(),i.default(_t+" .active").tab("dispose").removeClass("active"),this._fixHeight(),e.tab("show"),e.parents("li").addClass("active"),this.onTabChanged(e),this._config.autoItemActive&&this._setItemActive(i.default(n+" iframe").attr("src"))},e.removeActiveTab=function(){var t=i.default(yt+".active"),e=t.parent(),n=t.index();if(t.remove(),i.default(".tab-pane.active").remove(),i.default(wt).children().length==i.default(bt+", "+xt).length)i.default(bt).show();else{var o=n-1;this.switchTab(e.children().eq(o).find("a"))}},e.toggleFullscreen=function(){i.default("body").hasClass(kt)?(i.default(gt+" i").removeClass(this._config.iconMinimize).addClass(this._config.iconMaximize),i.default("body").removeClass(kt),i.default(bt+", "+xt).height("auto"),i.default(mt).height("auto"),i.default(vt).height("auto")):(i.default(gt+" i").removeClass(this._config.iconMaximize).addClass(this._config.iconMinimize),i.default("body").addClass(kt)),i.default(window).trigger("resize"),this._fixHeight(!0)},e._init=function(){window.frameElement&&this._config.autoIframeMode?i.default("body").addClass(St):i.default(mt).hasClass(St)&&(this._setupListeners(),this._fixHeight(!0))},e._navScroll=function(t){var e=i.default(_t).scrollLeft();i.default(_t).animate({scrollLeft:e+t},250,"linear")},e._setupListeners=function(){var t=this;i.default(window).on("resize",(function(){setTimeout((function(){t._fixHeight()}),1)})),i.default(document).on("click",Ct,(function(e){e.preventDefault(),t.openTabSidebar(e.target)})),this._config.useNavbarItems&&i.default(document).on("click",Et+", "+Tt,(function(e){e.preventDefault(),t.openTabSidebar(e.target)})),i.default(document).on("click",yt,(function(e){e.preventDefault(),t.onTabClick(e.target),t.switchTab(e.target)})),i.default(document).on("click",'[data-widget="iframe-close"]',(function(e){e.preventDefault(),t.removeActiveTab()})),i.default(document).on("click",gt,(function(e){e.preventDefault(),t.toggleFullscreen()}));var e=!1,n=null;i.default(document).on("mousedown",'[data-widget="iframe-scrollleft"]',(function(i){i.preventDefault(),clearInterval(n);var o=t._config.scrollOffset;t._config.scrollBehaviorSwap||(o=-o),e=!0,t._navScroll(o),n=setInterval((function(){t._navScroll(o)}),250)})),i.default(document).on("mousedown",'[data-widget="iframe-scrollright"]',(function(i){i.preventDefault(),clearInterval(n);var o=t._config.scrollOffset;t._config.scrollBehaviorSwap&&(o=-o),e=!0,t._navScroll(o),n=setInterval((function(){t._navScroll(o)}),250)})),i.default(document).on("mouseup",(function(){e&&(e=!1,clearInterval(n),n=null)}))},e._setItemActive=function(t){i.default(Ct+", "+Tt).removeClass("active"),i.default(Et).parent().removeClass("active");var e=i.default(Et+'[href$="'+t+'"]'),n=i.default('.main-header a.dropdown-item[href$="'+t+'"]'),o=i.default(Ct+'[href$="'+t+'"]');e.each((function(t,e){i.default(e).parent().addClass("active")})),n.each((function(t,e){i.default(e).addClass("active")})),o.each((function(t,e){i.default(e).addClass("active"),i.default(e).parents(".nav-treeview").prevAll(".nav-link").addClass("active")}))},e._fixHeight=function(t){if(void 0===t&&(t=!1),i.default("body").hasClass(kt)){var e=i.default(window).height();i.default(bt+", "+xt).height(e),i.default(mt).height(e),i.default(vt).height(e)}else{var n=parseFloat(i.default(mt).css("min-height")),o=i.default('[data-widget="iframe"].iframe-mode .nav').outerHeight();1==t?setTimeout((function(){i.default(bt+", "+xt).height(n-o)}),50):i.default(vt).height(n-o)}},t._jQueryInterface=function(e){var n=i.default(this).data(ht),o=i.default.extend({},Dt,i.default(this).data());if(n||(n=new t(this,o),i.default(this).data(ht,n)),"string"==typeof e&&e.match(/createTab|openTabSidebar|switchTab|removeActiveTab/)){for(var r,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];(r=n)[e].apply(r,s)}},t}();i.default(window).on("load",(function(){It._jQueryInterface.call(i.default(pt))})),i.default.fn.IFrame=It._jQueryInterface,i.default.fn.IFrame.Constructor=It,i.default.fn.IFrame.noConflict=function(){return i.default.fn.IFrame=dt,It._jQueryInterface};var At="lte.layout",Nt=i.default.fn.Layout,Lt=".main-header",Ot=".main-sidebar",jt=".main-sidebar .sidebar",Rt=".main-footer",Pt="sidebar-focused",Mt={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l",panelAutoHeight:!0,panelAutoHeightMode:"min-height",loginRegisterAutoHeight:!0},Ht=function(){function t(t,e){this._config=e,this._element=t,this._init()}var e=t.prototype;return e.fixLayoutHeight=function(t){void 0===t&&(t=null);var e=i.default("body"),n=0;(e.hasClass("control-sidebar-slide-open")||e.hasClass("control-sidebar-open")||"control_sidebar"===t)&&(n=i.default(".control-sidebar-content").height());var o={window:i.default(window).height(),header:0!==i.default(Lt).length?i.default(Lt).outerHeight():0,footer:0!==i.default(Rt).length?i.default(Rt).outerHeight():0,sidebar:0!==i.default(jt).length?i.default(jt).height():0,controlSidebar:n},r=this._max(o),a=this._config.panelAutoHeight;!0===a&&(a=0);var s=i.default(".content-wrapper");!1!==a&&(r===o.controlSidebar?s.css(this._config.panelAutoHeightMode,r+a):r===o.window?s.css(this._config.panelAutoHeightMode,r+a-o.header-o.footer):s.css(this._config.panelAutoHeightMode,r+a-o.header),this._isFooterFixed()&&s.css(this._config.panelAutoHeightMode,parseFloat(s.css(this._config.panelAutoHeightMode))+o.footer)),e.hasClass("layout-fixed")&&(!1!==a&&s.css(this._config.panelAutoHeightMode,r+a-o.header-o.footer),void 0!==i.default.fn.overlayScrollbars&&i.default(jt).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))},e.fixLoginRegisterHeight=function(){var t=i.default("body"),e=i.default(".login-box, .register-box");if(0===e.length)t.css("height","auto"),i.default("html").css("height","auto");else{var n=e.height();t.css(this._config.panelAutoHeightMode)!==n&&t.css(this._config.panelAutoHeightMode,n)}},e._init=function(){var t=this;this.fixLayoutHeight(),!0===this._config.loginRegisterAutoHeight?this.fixLoginRegisterHeight():this._config.loginRegisterAutoHeight===parseInt(this._config.loginRegisterAutoHeight,10)&&setInterval(this.fixLoginRegisterHeight,this._config.loginRegisterAutoHeight),i.default(jt).on("collapsed.lte.treeview expanded.lte.treeview",(function(){t.fixLayoutHeight()})),i.default('[data-widget="pushmenu"]').on("collapsed.lte.pushmenu shown.lte.pushmenu",(function(){t.fixLayoutHeight()})),i.default('[data-widget="control-sidebar"]').on("collapsed.lte.controlsidebar",(function(){t.fixLayoutHeight()})).on("expanded.lte.controlsidebar",(function(){t.fixLayoutHeight("control_sidebar")})),i.default(window).resize((function(){t.fixLayoutHeight()})),setTimeout((function(){i.default("body.hold-transition").removeClass("hold-transition")}),50)},e._max=function(t){var e=0;return Object.keys(t).forEach((function(n){t[n]>e&&(e=t[n])})),e},e._isFooterFixed=function(){return"fixed"===i.default(Rt).css("position")},t._jQueryInterface=function(e){return void 0===e&&(e=""),this.each((function(){var n=i.default(this).data(At),o=i.default.extend({},Mt,i.default(this).data());n||(n=new t(i.default(this),o),i.default(this).data(At,n)),"init"===e||""===e?n._init():"fixLayoutHeight"!==e&&"fixLoginRegisterHeight"!==e||n[e]()}))},t}();i.default(window).on("load",(function(){Ht._jQueryInterface.call(i.default("body"))})),i.default(jt+" a").on("focusin",(function(){i.default(Ot).addClass(Pt)})),i.default(jt+" a").on("focusout",(function(){i.default(Ot).removeClass(Pt)})),i.default.fn.Layout=Ht._jQueryInterface,i.default.fn.Layout.Constructor=Ht,i.default.fn.Layout.noConflict=function(){return i.default.fn.Layout=Nt,Ht._jQueryInterface};var qt="PushMenu",Ft="lte.pushmenu",zt="."+Ft,Bt=i.default.fn[qt],Ut='[data-widget="pushmenu"]',Wt="body",Qt="sidebar-collapse",Vt="sidebar-open",$t="sidebar-is-opening",Xt="sidebar-closed",Gt={autoCollapseSize:992,enableRemember:!1,noTransitionAfterReload:!0},Yt=function(){function t(t,e){this._element=t,this._options=i.default.extend({},Gt,e),0===i.default("#sidebar-overlay").length&&this._addOverlay(),this._init()}var e=t.prototype;return e.expand=function(){var t=i.default(Wt);this._options.autoCollapseSize&&i.default(window).width()<=this._options.autoCollapseSize&&t.addClass(Vt),t.addClass($t).removeClass("sidebar-collapse sidebar-closed").delay(50).queue((function(){t.removeClass($t),i.default(this).dequeue()})),this._options.enableRemember&&localStorage.setItem("remember"+zt,Vt),i.default(this._element).trigger(i.default.Event("shown.lte.pushmenu"))},e.collapse=function(){var t=i.default(Wt);this._options.autoCollapseSize&&i.default(window).width()<=this._options.autoCollapseSize&&t.removeClass(Vt).addClass(Xt),t.addClass(Qt),this._options.enableRemember&&localStorage.setItem("remember"+zt,Qt),i.default(this._element).trigger(i.default.Event("collapsed.lte.pushmenu"))},e.toggle=function(){i.default(Wt).hasClass(Qt)?this.expand():this.collapse()},e.autoCollapse=function(t){if(void 0===t&&(t=!1),this._options.autoCollapseSize){var e=i.default(Wt);i.default(window).width()<=this._options.autoCollapseSize?e.hasClass(Vt)||this.collapse():!0===t&&(e.hasClass(Vt)?e.removeClass(Vt):e.hasClass(Xt)&&this.expand())}},e.remember=function(){if(this._options.enableRemember){var t=i.default("body");localStorage.getItem("remember"+zt)===Qt?this._options.noTransitionAfterReload?t.addClass("hold-transition").addClass(Qt).delay(50).queue((function(){i.default(this).removeClass("hold-transition"),i.default(this).dequeue()})):t.addClass(Qt):this._options.noTransitionAfterReload?t.addClass("hold-transition").removeClass(Qt).delay(50).queue((function(){i.default(this).removeClass("hold-transition"),i.default(this).dequeue()})):t.removeClass(Qt)}},e._init=function(){var t=this;this.remember(),this.autoCollapse(),i.default(window).resize((function(){t.autoCollapse(!0)}))},e._addOverlay=function(){var t=this,e=i.default("<div />",{id:"sidebar-overlay"});e.on("click",(function(){t.collapse()})),i.default(".wrapper").append(e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Ft),o=i.default.extend({},Gt,i.default(this).data());n||(n=new t(this,o),i.default(this).data(Ft,n)),"string"==typeof e&&e.match(/collapse|expand|toggle/)&&n[e]()}))},t}();i.default(document).on("click",Ut,(function(t){t.preventDefault();var e=t.currentTarget;"pushmenu"!==i.default(e).data("widget")&&(e=i.default(e).closest(Ut)),Yt._jQueryInterface.call(i.default(e),"toggle")})),i.default(window).on("load",(function(){Yt._jQueryInterface.call(i.default(Ut))})),i.default.fn[qt]=Yt._jQueryInterface,i.default.fn[qt].Constructor=Yt,i.default.fn[qt].noConflict=function(){return i.default.fn[qt]=Bt,Yt._jQueryInterface};var Kt="SidebarSearch",Jt="lte.sidebar-search",Zt=i.default.fn[Kt],te="sidebar-search-open",ee="fa-search",ne="fa-times",ie="sidebar-search-results",oe="list-group",re='[data-widget="sidebar-search"]',ae=re+" .form-control",se=re+" .btn",le=se+" i",ue=".sidebar-search-results",ce=".sidebar-search-results .list-group",fe={arrowSign:"->",minLength:3,maxResults:7,highlightName:!0,highlightPath:!1,highlightClass:"text-light",notFoundText:"No element found!"},he=[],de=function(){function t(t,e){this.element=t,this.options=i.default.extend({},fe,e),this.items=[]}var n=t.prototype;return n.init=function(){var t=this;0!=i.default(re).length&&(0==i.default(re).next(ue).length&&i.default(re).after(i.default("<div />",{class:ie})),0==i.default(ue).children(".list-group").length&&i.default(ue).append(i.default("<div />",{class:oe})),this._addNotFound(),i.default(".main-sidebar .nav-sidebar").children().each((function(e,n){t._parseItem(n)})))},n.search=function(){var t=this,e=i.default(ae).val().toLowerCase();if(e.length<this.options.minLength)return i.default(ce).empty(),this._addNotFound(),void this.close();var n=he.filter((function(t){return t.name.toLowerCase().includes(e)})),o=i.default(n.slice(0,this.options.maxResults));i.default(ce).empty(),0===o.length?this._addNotFound():o.each((function(e,n){i.default(ce).append(t._renderItem(n.name,n.link,n.path))})),this.open()},n.open=function(){i.default(re).parent().addClass(te),i.default(le).removeClass(ee).addClass(ne)},n.close=function(){i.default(re).parent().removeClass(te),i.default(le).removeClass(ne).addClass(ee)},n.toggle=function(){i.default(re).parent().hasClass(te)?this.close():this.open()},n._parseItem=function(t,e){var n=this;if(void 0===e&&(e=[]),!i.default(t).hasClass("nav-header")){var o={},r=i.default(t).clone().find("> .nav-link"),a=i.default(t).clone().find("> .nav-treeview"),s=r.attr("href"),l=r.find("p").children().remove().end().text();if(o.name=this._trimText(l),o.link=s,o.path=e,0===a.length)he.push(o);else{var u=o.path.concat([o.name]);a.children().each((function(t,e){n._parseItem(e,u)}))}}},n._trimText=function(t){return e.trim(t.replace(/(\r\n|\n|\r)/gm," "))},n._renderItem=function(t,e,n){var o=this;if(n=n.join(" "+this.options.arrowSign+" "),this.options.highlightName||this.options.highlightPath){var r=i.default(ae).val().toLowerCase(),a=new RegExp(r,"gi");this.options.highlightName&&(t=t.replace(a,(function(t){return'<b class="'+o.options.highlightClass+'">'+t+"</b>"}))),this.options.highlightPath&&(n=n.replace(a,(function(t){return'<b class="'+o.options.highlightClass+'">'+t+"</b>"})))}return'<a href="'+e+'" class="list-group-item">\n <div class="search-title">\n '+t+'\n </div>\n <div class="search-path">\n '+n+"\n </div>\n </a>"},n._addNotFound=function(){i.default(ce).append(this._renderItem(this.options.notFoundText,"#",[]))},t._jQueryInterface=function(e){var n=i.default(this).data(Jt);n||(n=i.default(this).data());var o=i.default.extend({},fe,"object"===s(e)?e:n),r=new t(i.default(this),o);i.default(this).data(Jt,"object"===s(e)?e:n),"string"==typeof e&&e.match(/init|toggle|close|open|search/)?r[e]():r.init()},t}();i.default(document).on("click",se,(function(t){t.preventDefault(),de._jQueryInterface.call(i.default(re),"toggle")})),i.default(document).on("keyup",ae,(function(t){if(38==t.keyCode)return t.preventDefault(),void i.default(ce).children().last().focus();if(40==t.keyCode)return t.preventDefault(),void i.default(ce).children().first().focus();var e=0;clearTimeout(e),e=setTimeout((function(){de._jQueryInterface.call(i.default(re),"search")}),100)})),i.default(document).on("keydown",ce,(function(t){var e=i.default(":focus");38==t.keyCode&&(t.preventDefault(),e.is(":first-child")?e.siblings().last().focus():e.prev().focus()),40==t.keyCode&&(t.preventDefault(),e.is(":last-child")?e.siblings().first().focus():e.next().focus())})),i.default(window).on("load",(function(){de._jQueryInterface.call(i.default(re),"init")})),i.default.fn[Kt]=de._jQueryInterface,i.default.fn[Kt].Constructor=de,i.default.fn[Kt].noConflict=function(){return i.default.fn[Kt]=Zt,de._jQueryInterface};var pe=i.default.fn.Toasts,ge="topRight",me="topLeft",ve="bottomRight",_e="bottomLeft",ye={position:ge,fixed:!0,autohide:!1,autoremove:!0,delay:1e3,fade:!0,icon:null,image:null,imageAlt:null,imageHeight:"25px",title:null,subtitle:null,close:!0,body:null,class:null},we=function(){function t(t,e){this._config=e,this._prepareContainer(),i.default("body").trigger(i.default.Event("init.lte.toasts"))}var e=t.prototype;return e.create=function(){var t=i.default('<div class="toast" role="alert" aria-live="assertive" aria-atomic="true"/>');t.data("autohide",this._config.autohide),t.data("animation",this._config.fade),this._config.class&&t.addClass(this._config.class),this._config.delay&&500!=this._config.delay&&t.data("delay",this._config.delay);var e=i.default('<div class="toast-header">');if(null!=this._config.image){var n=i.default("<img />").addClass("rounded mr-2").attr("src",this._config.image).attr("alt",this._config.imageAlt);null!=this._config.imageHeight&&n.height(this._config.imageHeight).width("auto"),e.append(n)}if(null!=this._config.icon&&e.append(i.default("<i />").addClass("mr-2").addClass(this._config.icon)),null!=this._config.title&&e.append(i.default("<strong />").addClass("mr-auto").html(this._config.title)),null!=this._config.subtitle&&e.append(i.default("<small />").html(this._config.subtitle)),1==this._config.close){var o=i.default('<button data-dismiss="toast" />').attr("type","button").addClass("ml-2 mb-1 close").attr("aria-label","Close").append('<span aria-hidden="true">&times;</span>');null==this._config.title&&o.toggleClass("ml-2 ml-auto"),e.append(o)}t.append(e),null!=this._config.body&&t.append(i.default('<div class="toast-body" />').html(this._config.body)),i.default(this._getContainerId()).prepend(t);var r=i.default("body");r.trigger(i.default.Event("created.lte.toasts")),t.toast("show"),this._config.autoremove&&t.on("hidden.bs.toast",(function(){i.default(this).delay(200).remove(),r.trigger(i.default.Event("removed.lte.toasts"))}))},e._getContainerId=function(){return this._config.position==ge?"#toastsContainerTopRight":this._config.position==me?"#toastsContainerTopLeft":this._config.position==ve?"#toastsContainerBottomRight":this._config.position==_e?"#toastsContainerBottomLeft":void 0},e._prepareContainer=function(){if(0===i.default(this._getContainerId()).length){var t=i.default("<div />").attr("id",this._getContainerId().replace("#",""));this._config.position==ge?t.addClass("toasts-top-right"):this._config.position==me?t.addClass("toasts-top-left"):this._config.position==ve?t.addClass("toasts-bottom-right"):this._config.position==_e&&t.addClass("toasts-bottom-left"),i.default("body").append(t)}this._config.fixed?i.default(this._getContainerId()).addClass("fixed"):i.default(this._getContainerId()).removeClass("fixed")},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default.extend({},ye,n),r=new t(i.default(this),o);"create"===e&&r[e]()}))},t}();i.default.fn.Toasts=we._jQueryInterface,i.default.fn.Toasts.Constructor=we,i.default.fn.Toasts.noConflict=function(){return i.default.fn.Toasts=pe,we._jQueryInterface};var be="TodoList",xe="lte.todolist",Ce=i.default.fn[be],Ee="done",Te={onCheck:function(t){return t},onUnCheck:function(t){return t}},Se=function(){function t(t,e){this._config=e,this._element=t,this._init()}var e=t.prototype;return e.toggle=function(t){t.parents("li").toggleClass(Ee),i.default(t).prop("checked")?this.check(t):this.unCheck(i.default(t))},e.check=function(t){this._config.onCheck.call(t)},e.unCheck=function(t){this._config.onUnCheck.call(t)},e._init=function(){var t=this,e=this._element;e.find("input:checkbox:checked").parents("li").toggleClass(Ee),e.on("change","input:checkbox",(function(e){t.toggle(i.default(e.target))}))},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(xe);n||(n=i.default(this).data());var o=i.default.extend({},Te,"object"===s(e)?e:n),r=new t(i.default(this),o);i.default(this).data(xe,"object"===s(e)?e:n),"init"===e&&r[e]()}))},t}();i.default(window).on("load",(function(){Se._jQueryInterface.call(i.default('[data-widget="todo-list"]'))})),i.default.fn[be]=Se._jQueryInterface,i.default.fn[be].Constructor=Se,i.default.fn[be].noConflict=function(){return i.default.fn[be]=Ce,Se._jQueryInterface};var ke="Treeview",De="lte.treeview",Ie=i.default.fn[ke],Ae=".nav-item",Ne=".nav-treeview",Le=".menu-open",Oe='[data-widget="treeview"]',je="menu-open",Re="menu-is-opening",Pe={trigger:Oe+" .nav-link",animationSpeed:300,accordion:!0,expandSidebar:!1,sidebarButtonSelector:'[data-widget="pushmenu"]'},Me=function(){function t(t,e){this._config=e,this._element=t}var e=t.prototype;return e.init=function(){i.default(".nav-item.menu-open .nav-treeview").css("display","block"),this._setupListeners()},e.expand=function(t,e){var n=this,o=i.default.Event("expanded.lte.treeview");if(this._config.accordion){var r=e.siblings(Le).first(),a=r.find(Ne).first();this.collapse(a,r)}e.addClass(Re),t.stop().slideDown(this._config.animationSpeed,(function(){e.addClass(je),i.default(n._element).trigger(o)})),this._config.expandSidebar&&this._expandSidebar()},e.collapse=function(t,e){var n=this,o=i.default.Event("collapsed.lte.treeview");e.removeClass("menu-is-opening menu-open"),t.stop().slideUp(this._config.animationSpeed,(function(){i.default(n._element).trigger(o),t.find(".menu-open > .nav-treeview").slideUp(),t.find(Le).removeClass(je)}))},e.toggle=function(t){var e=i.default(t.currentTarget),n=e.parent(),o=n.find("> .nav-treeview");if(o.is(Ne)||(n.is(Ae)||(o=n.parent().find("> .nav-treeview")),o.is(Ne))){t.preventDefault();var r=e.parents(Ae).first();r.hasClass(je)?this.collapse(i.default(o),r):this.expand(i.default(o),r)}},e._setupListeners=function(){var t=this,e=void 0!==this._element.attr("id")?"#"+this._element.attr("id"):"";i.default(document).on("click",""+e+this._config.trigger,(function(e){t.toggle(e)}))},e._expandSidebar=function(){i.default("body").hasClass("sidebar-collapse")&&i.default(this._config.sidebarButtonSelector).PushMenu("expand")},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(De),o=i.default.extend({},Pe,i.default(this).data());n||(n=new t(i.default(this),o),i.default(this).data(De,n)),"init"===e&&n[e]()}))},t}();i.default(window).on("load.lte.treeview",(function(){i.default(Oe).each((function(){Me._jQueryInterface.call(i.default(this),"init")}))})),i.default.fn[ke]=Me._jQueryInterface,i.default.fn[ke].Constructor=Me,i.default.fn[ke].noConflict=function(){return i.default.fn[ke]=Ie,Me._jQueryInterface},t.CardRefresh=f,t.CardWidget=T,t.ControlSidebar=B,t.DirectChat=V,t.Dropdown=J,t.ExpandableTable=ot,t.Fullscreen=ft,t.IFrame=It,t.Layout=Ht,t.PushMenu=Yt,t.SidebarSearch=de,t.Toasts=we,t.TodoList=Se,t.Treeview=Me,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)?a(e,n(755)):(o=[e,n(755)],void 0===(r="function"==typeof(i=a)?i.apply(e,o):i)||(t.exports=r))},80:(t,e,n)=>{n(580),n(482),n(689)},689:(t,e,n)=>{try{window.Popper=n(981).default,window.$=window.jQuery=n(755),n(734)}catch(t){}window.axios=n(669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},482:()=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}!function(e,n){function i(){e.Slim.parse(document)}if(e)if(e.Slim=function(){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n,i){if(!(e>=1)){for(var o=t.width,r=t.height,a=Math.max(i.width,Math.min(n.width,Math.round(t.width*e))),s=Math.max(i.height,Math.min(n.height,Math.round(t.height*e))),l=nt(t),u=void 0;o>a&&r>s;)u=document.createElement("canvas"),(o=Math.round(.5*l.width))<a&&(o=a),(r=Math.round(.5*l.height))<s&&(r=s),u.width=o,u.height=r,u.getContext("2d").drawImage(l,0,0,o,r),l=nt(u);t.width=a,t.height=s,t.getContext("2d").drawImage(l,0,0,a,s)}}!function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:n};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}();var o=function t(e,n,i){var o,r,a=document.createElement("img");if(a.onerror=n,a.onload=function(){!r||i&&i.noRevoke||t.revokeObjectURL(r),n&&n(t.scale(a,i))},t.isInstanceOf("Blob",e)||t.isInstanceOf("File",e))o=r=t.createObjectURL(e),a._type=e.type;else{if("string"!=typeof e)return!1;o=e,i&&i.crossOrigin&&(a.crossOrigin=i.crossOrigin)}return o?(a.src=o,a):t.readFile(e,(function(t){var e=t.target;e&&e.result?a.src=e.result:n&&n(t)}))},r=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;o.isInstanceOf=function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},o.transformCoordinates=function(){},o.getTransformedOptions=function(t,e){var n,i,o,r,a=e.aspectRatio;if(!a)return e;for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n.crop=!0,(o=t.naturalWidth||t.width)/(r=t.naturalHeight||t.height)>a?(n.maxWidth=r*a,n.maxHeight=r):(n.maxWidth=o,n.maxHeight=o/a),n},o.renderImageToCanvas=function(t,e,n,i,o,r,a,s,l,u){return t.getContext("2d").drawImage(e,n,i,o,r,a,s,l,u),t},o.hasCanvasOption=function(t){return t.canvas||t.crop||!!t.aspectRatio},o.scale=function(t,e){function i(){var t=Math.max((l||b)/b,(u||x)/x);t>1&&(b*=t,x*=t)}function r(){var t=Math.min((a||b)/b,(s||x)/x);t<1&&(b*=t,x*=t)}e=e||{};var a,s,l,u,c,f,h,d,p,g,m,v=document.createElement("canvas"),_=t.getContext||o.hasCanvasOption(e)&&v.getContext,y=t.naturalWidth||t.width,w=t.naturalHeight||t.height,b=y,x=w;if(_&&(h=(e=o.getTransformedOptions(t,e)).left||0,d=e.top||0,e.sourceWidth?(c=e.sourceWidth,e.right!==n&&e.left===n&&(h=y-c-e.right)):c=y-h-(e.right||0),e.sourceHeight?(f=e.sourceHeight,e.bottom!==n&&e.top===n&&(d=w-f-e.bottom)):f=w-d-(e.bottom||0),b=c,x=f),a=e.maxWidth,s=e.maxHeight,l=e.minWidth,u=e.minHeight,_&&a&&s&&e.crop?(b=a,x=s,(m=c/f-a/s)<0?(f=s*c/a,e.top===n&&e.bottom===n&&(d=(w-f)/2)):m>0&&(c=a*f/s,e.left===n&&e.right===n&&(h=(y-c)/2))):((e.contain||e.cover)&&(l=a=a||l,u=s=s||u),e.cover?(r(),i()):(i(),r())),_){if((p=e.pixelRatio)>1&&(v.style.width=b+"px",v.style.height=x+"px",b*=p,x*=p,v.getContext("2d").scale(p,p)),(g=e.downsamplingRatio)>0&&g<1&&b<c&&x<f)for(;c*g>b;)v.width=c*g,v.height=f*g,o.renderImageToCanvas(v,t,h,d,c,f,0,0,v.width,v.height),c=v.width,f=v.height,(t=document.createElement("canvas")).width=c,t.height=f,o.renderImageToCanvas(t,v,0,0,c,f,0,0,c,f);return v.width=b,v.height=x,o.transformCoordinates(v,e),o.renderImageToCanvas(v,t,h,d,c,f,0,0,b,x)}return t.width=b,t.height=x,t},o.createObjectURL=function(t){return!!r&&r.createObjectURL(t)},o.revokeObjectURL=function(t){return!!r&&r.revokeObjectURL(t)},o.readFile=function(t,e,n){if(window.FileReader){var i=new FileReader;if(i.onload=i.onerror=e,i[n=n||"readAsDataURL"])return i[n](t),i}return!1};var a=o.hasCanvasOption,s=o.transformCoordinates,l=o.getTransformedOptions;o.hasCanvasOption=function(t){return!!t.orientation||a.call(o,t)},o.transformCoordinates=function(t,e){s.call(o,t,e);var n=t.getContext("2d"),i=t.width,r=t.height,a=t.style.width,l=t.style.height,u=e.orientation;if(u&&!(u>8))switch(u>4&&(t.width=r,t.height=i,t.style.width=l,t.style.height=a),u){case 2:n.translate(i,0),n.scale(-1,1);break;case 3:n.translate(i,r),n.rotate(Math.PI);break;case 4:n.translate(0,r),n.scale(1,-1);break;case 5:n.rotate(.5*Math.PI),n.scale(1,-1);break;case 6:n.rotate(.5*Math.PI),n.translate(0,-r);break;case 7:n.rotate(.5*Math.PI),n.translate(i,-r),n.scale(-1,1);break;case 8:n.rotate(-.5*Math.PI),n.translate(-i,0)}},o.getTransformedOptions=function(t,e){var n,i,r=l.call(o,t,e),a=r.orientation;if(!a||a>8||1===a)return r;for(i in n={},r)r.hasOwnProperty(i)&&(n[i]=r[i]);switch(r.orientation){case 2:n.left=r.right,n.right=r.left;break;case 3:n.left=r.right,n.top=r.bottom,n.right=r.left,n.bottom=r.top;break;case 4:n.top=r.bottom,n.bottom=r.top;break;case 5:n.left=r.top,n.top=r.left,n.right=r.bottom,n.bottom=r.right;break;case 6:n.left=r.top,n.top=r.right,n.right=r.bottom,n.bottom=r.left;break;case 7:n.left=r.bottom,n.top=r.right,n.right=r.top,n.bottom=r.left;break;case 8:n.left=r.bottom,n.top=r.left,n.right=r.top,n.bottom=r.right}return r.orientation>4&&(n.maxWidth=r.maxHeight,n.maxHeight=r.maxWidth,n.minWidth=r.minHeight,n.minHeight=r.minWidth,n.sourceWidth=r.sourceHeight,n.sourceHeight=r.sourceWidth),n};var u=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);o.blobSlice=u&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},o.metaDataParsers={jpeg:{65505:[]}},o.parseMetaData=function(t,e,n){var i=this,r=(n=n||{}).maxMetaDataSize||262144,a={};!!(window.DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&o.blobSlice)&&o.readFile(o.blobSlice.call(t,0,r),(function(t){if(t.target.error)e(a);else{var r,s,l,u,c=t.target.result,f=new DataView(c),h=2,d=f.byteLength-4,p=h;if(65496===f.getUint16(0)){for(;h<d&&((r=f.getUint16(h))>=65504&&r<=65519||65534===r)&&!(h+(s=f.getUint16(h+2)+2)>f.byteLength);){if(l=o.metaDataParsers.jpeg[r])for(u=0;u<l.length;u+=1)l[u].call(i,f,h,s,a,n);p=h+=s}!n.disableImageHead&&p>6&&(c.slice?a.imageHead=c.slice(0,p):a.imageHead=new Uint8Array(c).subarray(0,p))}e(a)}}),"readAsArrayBuffer")||e(a)},(o.ExifMap=function(){return this}).prototype.map={Orientation:274},o.ExifMap.prototype.get=function(t){return this[t]||this[this.map[t]]},o.getExifThumbnail=function(t,e,n){var i,o,r;if(n&&!(e+n>t.byteLength)){for(i=[],o=0;o<n;o+=1)r=t.getUint8(e+o),i.push((r<16?"0":"")+r.toString(16));return"data:image/jpeg,%"+i.join("%")}},(o.exifTagTypes={1:{getValue:function(t,e){return t.getUint8(e)},size:1},2:{getValue:function(t,e){return String.fromCharCode(t.getUint8(e))},size:1,ascii:!0},3:{getValue:function(t,e,n){return t.getUint16(e,n)},size:2},4:{getValue:function(t,e,n){return t.getUint32(e,n)},size:4},5:{getValue:function(t,e,n){return t.getUint32(e,n)/t.getUint32(e+4,n)},size:8},9:{getValue:function(t,e,n){return t.getInt32(e,n)},size:4},10:{getValue:function(t,e,n){return t.getInt32(e,n)/t.getInt32(e+4,n)},size:8}})[7]=o.exifTagTypes[1],o.getExifValue=function(t,e,n,i,r,a){var s,l,u,c,f,h,d=o.exifTagTypes[i];if(d&&!((l=(s=d.size*r)>4?e+t.getUint32(n+8,a):n+8)+s>t.byteLength)){if(1===r)return d.getValue(t,l,a);for(u=[],c=0;c<r;c+=1)u[c]=d.getValue(t,l+c*d.size,a);if(d.ascii){for(f="",c=0;c<u.length&&"\0"!==(h=u[c]);c+=1)f+=h;return f}return u}},o.parseExifTag=function(t,e,n,i,r){var a=t.getUint16(n,i);r.exif[a]=o.getExifValue(t,e,n,t.getUint16(n+2,i),t.getUint32(n+4,i),i)},o.parseExifTags=function(t,e,n,i,o){var r,a,s;if(!(n+6>t.byteLength||(r=t.getUint16(n,i),a=n+2+12*r,a+4>t.byteLength))){for(s=0;s<r;s+=1)this.parseExifTag(t,e,n+2+12*s,i,o);return t.getUint32(a,i)}},o.parseExifData=function(t,e,n,i,r){if(!r.disableExif){var a,s,l,u=e+10;if(1165519206===t.getUint32(e+4)&&!(u+8>t.byteLength)&&0===t.getUint16(e+8)){switch(t.getUint16(u)){case 18761:a=!0;break;case 19789:a=!1;break;default:return}42===t.getUint16(u+2,a)&&(s=t.getUint32(u+4,a),i.exif=new o.ExifMap,(s=o.parseExifTags(t,u,u+s,a,i))&&!r.disableExifThumbnail&&(s=o.parseExifTags(t,u,u+s,a,l={exif:{}}),l.exif[513]&&(i.exif.Thumbnail=o.getExifThumbnail(t,u+l.exif[513],l.exif[514]))),i.exif[34665]&&!r.disableExifSub&&o.parseExifTags(t,u,u+i.exif[34665],a,i),i.exif[34853]&&!r.disableExifGps&&o.parseExifTags(t,u,u+i.exif[34853],a,i))}}},o.metaDataParsers.jpeg[65505].push(o.parseExifData);var c=function(){var t=[],e=[],i=[],o="transform",r=window.getComputedStyle(document.documentElement,"");"webkit"===(Array.prototype.slice.call(r).join("").match(/-(moz|webkit|ms)-/)||""===r.OLink&&["","o"])[1]&&(o="webkitTransform");var a=function(t,e,i){var o=t;if(o.length!==n){for(var r={chainers:[],then:function(t){return this.snabbt(t)},snabbt:function(t){var e=this.chainers.length;return this.chainers.forEach((function(n,i){n.snabbt(s(t,i,e))})),r},setValue:function(t){return this.chainers.forEach((function(e){e.setValue(t)})),r},finish:function(){return this.chainers.forEach((function(t){t.finish()})),r},rollback:function(){return this.chainers.forEach((function(t){t.rollback()})),r}},a=0,u=o.length;a<u;++a)"string"==typeof e?r.chainers.push(l(o[a],e,s(i,a,u))):r.chainers.push(l(o[a],s(e,a,u),i));return r}return"string"==typeof e?l(o,e,s(i,0,1)):l(o,s(e,0,1),i)},s=function(t,e,n){if(!t)return t;var i=q(t);H(t.delay)&&(i.delay=t.delay(e,n)),H(t.callback)&&(i.complete=function(){t.callback.call(this,e,n)});var o=H(t.allDone),r=H(t.complete);(r||o)&&(i.complete=function(){r&&t.complete.call(this,e,n),o&&e==n-1&&t.allDone()}),H(t.valueFeeder)&&(i.valueFeeder=function(i,o){return t.valueFeeder(i,o,e,n)}),H(t.easing)&&(i.easing=function(i){return t.easing(i,e,n)});return["position","rotation","skew","rotationPost","scale","width","height","opacity","fromPosition","fromRotation","fromSkew","fromRotationPost","fromScale","fromWidth","fromHeight","fromOpacity","transformOrigin","duration","delay"].forEach((function(o){H(t[o])&&(i[o]=t[o](e,n))})),i},l=function(t,n,i){if("attention"===n)return u(t,i);if("stop"===n)return c(t);if("detach"===n)return h(t);var o=n;g();var r=v(t),a=r;a=_(o,a,!0);var l=q(r);l=_(o,l);var f=y(a,l,o),d=C(f);e.push([t,d]),d.updateElement(t,!0);var p=[],m={snabbt:function(t){return p.unshift(s(t,0,1)),m},then:function(t){return this.snabbt(t)}};return b((function n(i){if(d.tick(i),d.updateElement(t),!d.isStopped())return d.completed()?void(o.loop>1&&!d.isStopped()?(o.loop-=1,d.restart(),b(n)):(o.complete&&o.complete.call(t),p.length&&(o=p.pop(),a=_(o,l,!0),l=_(o,q(l)),o=y(a,l,o),d=C(o),e.push([t,d]),d.tick(i),b(n)))):b(n)})),o.manual?d:m},u=function(t,n){var i=_(n,L({}));n.movement=i;var o=E(n);e.push([t,o]),b((function e(i){o.tick(i),o.updateElement(t),o.completed()?(n.callback&&n.callback(t),n.loop&&n.loop>1&&(n.loop--,o.restart(),b(e))):b(e)}))},c=function(t){for(var n=0,i=e.length;n<i;++n){var o=e[n],r=o[0],a=o[1];r===t&&a.stop()}},f=function(t,e){for(var n=0,i=t.length;n<i;++n)if(t[n][0]===e)return n;return-1},h=function(t){var n,o,r=[],a=e.concat(i),s=a.length;for(o=0;o<s;++o)n=a[o][0],(t.contains(n)||t===n)&&r.push(n);for(s=r.length,o=0;o<s;++o)d(r[o])},d=function(t){c(t);var n=f(e,t);n>=0&&e.splice(n,1),(n=f(i,t))>=0&&i.splice(n,1)},p=function(t,e){for(var n=0,i=t.length;n<i;++n){var o=t[n],r=o[0],a=o[1];if(r===e){var s=a.getCurrentState();return a.stop(),s}}},g=function(){i=i.filter((function(t){return m(t[0]).body}))},m=function(t){for(var e=t;e.parentNode;)e=e.parentNode;return e},v=function(t){var n=p(e,t);return n||p(i,t)},_=function(t,e,n){e||(e=L({position:[0,0,0],rotation:[0,0,0],rotationPost:[0,0,0],scale:[1,1],skew:[0,0]}));var i="position",o="rotation",r="skew",a="rotationPost",s="scale",l="scalePost",u="width",c="height",f="opacity";return n&&(i="fromPosition",o="fromRotation",r="fromSkew",a="fromRotationPost",s="fromScale",l="fromScalePost",u="fromWidth",c="fromHeight",f="fromOpacity"),e.position=R(t[i],e.position),e.rotation=R(t[o],e.rotation),e.rotationPost=R(t[a],e.rotationPost),e.skew=R(t[r],e.skew),e.scale=R(t[s],e.scale),e.scalePost=R(t[l],e.scalePost),e.opacity=t[f],e.width=t[u],e.height=t[c],e},y=function(t,e,n){return n.startState=t,n.endState=e,n},w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)},b=function(e){0===t.length&&w(x),t.push(e)},x=function n(o){for(var r=t.length,a=0;a<r;++a)t[a](o);t.splice(0,r);var s=e.filter((function(t){return t[1].completed()}));i=(i=i.filter((function(t){for(var e=0,n=s.length;e<n;++e)if(t[0]===s[e][0])return!1;return!0}))).concat(s),e=e.filter((function(t){return!t[1].completed()})),0!==t.length&&w(n)},C=function(t){var e=t.startState,i=t.endState,o=R(t.duration,500),r=R(t.delay,0),a=t.perspective,s=k(R(t.easing,"linear"),t),l=0===o?i.clone():e.clone();t.transformOrigin,l.transformOrigin=t.transformOrigin;var u,c,f=0,h=0,d=!1,p=!1,g=t.manual,m=0,v=r/o;return c=t.valueFeeder?j(t.valueFeeder,e,i,l):O(e,i,l),{stop:function(){d=!0},isStopped:function(){return d},finish:function(t){g=!1,f=h-o*m,u=t,s.resetFrom=m},rollback:function(t){g=!1,c.setReverse(),f=h-o*(1-m),u=t,s.resetFrom=m},restart:function(){f=n,s.resetFrom(0)},tick:function(t){if(!d){if(g)return h=t,void this.updateCurrentTransform();if(f||(f=t),t-f>r){p=!0,h=t-r;var e=Math.min(Math.max(0,h-f),o);s.tick(e/o),this.updateCurrentTransform(),this.completed()&&u&&u()}}},getCurrentState:function(){return l},setValue:function(t){p=!0,m=Math.min(Math.max(t,1e-4),1+v)},updateCurrentTransform:function(){var t=s.getValue();if(g){var e=Math.max(1e-5,m-v);s.tick(e),t=s.getValue()}c.tween(t)},completed:function(){return!!d||0!==f&&s.completed()},updateElement:function(t,e){if(p||e){var n=c.asMatrix(),i=c.getProperties();P(t,n,a),M(t,i)}}}},E=function(t){var e=t.movement;t.initialVelocity=.1,t.equilibriumPosition=0;var i=T(t),o=!1,r=e.position,a=e.rotation,s=e.rotationPost,l=e.scale,u=e.skew,c=L({position:r?[0,0,0]:n,rotation:a?[0,0,0]:n,rotationPost:s?[0,0,0]:n,scale:l?[0,0]:n,skew:u?[0,0]:n});return{stop:function(){o=!0},isStopped:function(t){return o},tick:function(t){o||i.equilibrium||(i.tick(),this.updateMovement())},updateMovement:function(){var t=i.getValue();r&&(c.position[0]=e.position[0]*t,c.position[1]=e.position[1]*t,c.position[2]=e.position[2]*t),a&&(c.rotation[0]=e.rotation[0]*t,c.rotation[1]=e.rotation[1]*t,c.rotation[2]=e.rotation[2]*t),s&&(c.rotationPost[0]=e.rotationPost[0]*t,c.rotationPost[1]=e.rotationPost[1]*t,c.rotationPost[2]=e.rotationPost[2]*t),l&&(c.scale[0]=1+e.scale[0]*t,c.scale[1]=1+e.scale[1]*t),u&&(c.skew[0]=e.skew[0]*t,c.skew[1]=e.skew[1]*t)},updateElement:function(t){P(t,c.asMatrix()),M(t,c.getProperties())},getCurrentState:function(){return c},completed:function(){return i.equilibrium||o},restart:function(){i=T(t)}}},T=function(t){var e=R(t.startPosition,0),n=R(t.equilibriumPosition,1),i=R(t.initialVelocity,0),o=R(t.springConstant,.8),r=R(t.springDeceleration,.9),a=R(t.springMass,10),s=!1;return{tick:function(t){0===t||s||(e+=i+=-(e-n)*o/a,i*=r,Math.abs(e-n)<.001&&Math.abs(i)<.001&&(s=!0))},resetFrom:function(t){e=t,i=0},getValue:function(){return s?n:e},completed:function(){return s}}},S={linear:function(t){return t},ease:function(t){return(Math.cos(t*Math.PI+Math.PI)+1)/2},easeIn:function(t){return t*t},easeOut:function(t){return 1-Math.pow(t-1,2)}},k=function(t,e){if("spring"==t)return T(e);var n=t;H(t)||(n=S[t]);var i,o=n,r=0;return{tick:function(t){r=o(t),i=t},resetFrom:function(t){i=0},getValue:function(){return r},completed:function(){return i>=1&&i}}},D=function(t){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1},I=function(t,e){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]},A=function(){var t=new Float32Array(16),e=new Float32Array(16),n=new Float32Array(16);return D(t),{data:t,asCSS:function(){for(var e="matrix3d(",n=0;n<15;++n)e+=Math.abs(t[n])<1e-4?"0,":t[n].toFixed(10)+",";return e+(Math.abs(t[15])<1e-4?"0)":t[15].toFixed(10)+")")},clear:function(){D(t)},translate:function(i,o,r){return I(t,e),function(t,e,n,i){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e,t[13]=n,t[14]=i,t[15]=1}(n,i,o,r),N(e,n,t),this},rotateX:function(i){return I(t,e),function(t,e){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=Math.cos(e),t[6]=-Math.sin(e),t[7]=0,t[8]=0,t[9]=Math.sin(e),t[10]=Math.cos(e),t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(n,i),N(e,n,t),this},rotateY:function(i){return I(t,e),function(t,e){t[0]=Math.cos(e),t[1]=0,t[2]=Math.sin(e),t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=-Math.sin(e),t[9]=0,t[10]=Math.cos(e),t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(n,i),N(e,n,t),this},rotateZ:function(i){return I(t,e),function(t,e){t[0]=Math.cos(e),t[1]=-Math.sin(e),t[2]=0,t[3]=0,t[4]=Math.sin(e),t[5]=Math.cos(e),t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(n,i),N(e,n,t),this},scale:function(i,o){return I(t,e),function(t,e,n){t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(n,i,o),N(e,n,t),this},skew:function(i,o){return I(t,e),function(t,e,n){t[0]=1,t[1]=Math.tan(e),t[2]=0,t[3]=0,t[4]=Math.tan(n),t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1}(n,i,o),N(e,n,t),this}}},N=function(t,e,n){return n[0]=t[0]*e[0]+t[1]*e[4]+t[2]*e[8]+t[3]*e[12],n[1]=t[0]*e[1]+t[1]*e[5]+t[2]*e[9]+t[3]*e[13],n[2]=t[0]*e[2]+t[1]*e[6]+t[2]*e[10]+t[3]*e[14],n[3]=t[0]*e[3]+t[1]*e[7]+t[2]*e[11]+t[3]*e[15],n[4]=t[4]*e[0]+t[5]*e[4]+t[6]*e[8]+t[7]*e[12],n[5]=t[4]*e[1]+t[5]*e[5]+t[6]*e[9]+t[7]*e[13],n[6]=t[4]*e[2]+t[5]*e[6]+t[6]*e[10]+t[7]*e[14],n[7]=t[4]*e[3]+t[5]*e[7]+t[6]*e[11]+t[7]*e[15],n[8]=t[8]*e[0]+t[9]*e[4]+t[10]*e[8]+t[11]*e[12],n[9]=t[8]*e[1]+t[9]*e[5]+t[10]*e[9]+t[11]*e[13],n[10]=t[8]*e[2]+t[9]*e[6]+t[10]*e[10]+t[11]*e[14],n[11]=t[8]*e[3]+t[9]*e[7]+t[10]*e[11]+t[11]*e[15],n[12]=t[12]*e[0]+t[13]*e[4]+t[14]*e[8]+t[15]*e[12],n[13]=t[12]*e[1]+t[13]*e[5]+t[14]*e[9]+t[15]*e[13],n[14]=t[12]*e[2]+t[13]*e[6]+t[14]*e[10]+t[15]*e[14],n[15]=t[12]*e[3]+t[13]*e[7]+t[14]*e[11]+t[15]*e[15],n},L=function t(e){var i=A(),o={opacity:n,width:n,height:n};return{position:e.position,rotation:e.rotation,rotationPost:e.rotationPost,skew:e.skew,scale:e.scale,scalePost:e.scalePost,opacity:e.opacity,width:e.width,height:e.height,clone:function(){return t({position:this.position?this.position.slice(0):n,rotation:this.rotation?this.rotation.slice(0):n,rotationPost:this.rotationPost?this.rotationPost.slice(0):n,skew:this.skew?this.skew.slice(0):n,scale:this.scale?this.scale.slice(0):n,scalePost:this.scalePost?this.scalePost.slice(0):n,height:this.height,width:this.width,opacity:this.opacity})},asMatrix:function(){var t=i;return t.clear(),this.transformOrigin&&t.translate(-this.transformOrigin[0],-this.transformOrigin[1],-this.transformOrigin[2]),this.scale&&t.scale(this.scale[0],this.scale[1]),this.skew&&t.skew(this.skew[0],this.skew[1]),this.rotation&&(t.rotateX(this.rotation[0]),t.rotateY(this.rotation[1]),t.rotateZ(this.rotation[2])),this.position&&t.translate(this.position[0],this.position[1],this.position[2]),this.rotationPost&&(t.rotateX(this.rotationPost[0]),t.rotateY(this.rotationPost[1]),t.rotateZ(this.rotationPost[2])),this.scalePost&&t.scale(this.scalePost[0],this.scalePost[1]),this.transformOrigin&&t.translate(this.transformOrigin[0],this.transformOrigin[1],this.transformOrigin[2]),t},getProperties:function(){return o.opacity=this.opacity,o.width=this.width+"px",o.height=this.height+"px",o}}},O=function(t,e,i){var o=t,r=e,a=i,s=r.position!==n,l=r.rotation!==n,u=r.rotationPost!==n,c=r.scale!==n,f=r.skew!==n,h=r.width!==n,d=r.height!==n,p=r.opacity!==n;return{tween:function(t){if(s){var e=r.position[0]-o.position[0],n=r.position[1]-o.position[1],i=r.position[2]-o.position[2];a.position[0]=o.position[0]+t*e,a.position[1]=o.position[1]+t*n,a.position[2]=o.position[2]+t*i}if(l){var g=r.rotation[0]-o.rotation[0],m=r.rotation[1]-o.rotation[1],v=r.rotation[2]-o.rotation[2];a.rotation[0]=o.rotation[0]+t*g,a.rotation[1]=o.rotation[1]+t*m,a.rotation[2]=o.rotation[2]+t*v}if(u){var _=r.rotationPost[0]-o.rotationPost[0],y=r.rotationPost[1]-o.rotationPost[1],w=r.rotationPost[2]-o.rotationPost[2];a.rotationPost[0]=o.rotationPost[0]+t*_,a.rotationPost[1]=o.rotationPost[1]+t*y,a.rotationPost[2]=o.rotationPost[2]+t*w}if(f){var b=r.scale[0]-o.scale[0],x=r.scale[1]-o.scale[1];a.scale[0]=o.scale[0]+t*b,a.scale[1]=o.scale[1]+t*x}if(c){var C=r.skew[0]-o.skew[0],E=r.skew[1]-o.skew[1];a.skew[0]=o.skew[0]+t*C,a.skew[1]=o.skew[1]+t*E}if(h){var T=r.width-o.width;a.width=o.width+t*T}if(d){var S=r.height-o.height;a.height=o.height+t*S}if(p){var k=r.opacity-o.opacity;a.opacity=o.opacity+t*k}},asMatrix:function(){return a.asMatrix()},getProperties:function(){return a.getProperties()},setReverse:function(){var t=o;o=r,r=t}}},j=function(t,e,i,o){var r=t(0,A()),a=e,s=i,l=o,u=!1;return{tween:function(e){u&&(e=1-e),r.clear(),r=t(e,r);var i=s.width-a.width,o=s.height-a.height,c=s.opacity-a.opacity;s.width!==n&&(l.width=a.width+e*i),s.height!==n&&(l.height=a.height+e*o),s.opacity!==n&&(l.opacity=a.opacity+e*c)},asMatrix:function(){return r},getProperties:function(){return l.getProperties()},setReverse:function(){u=!0}}},R=function(t,e){return void 0===t?e:t},P=function(t,e,n){var i="";n&&(i="perspective("+n+"px) ");var r=e.asCSS();t.style[o]=i+r},M=function(t,e){for(var n in e)t.style[n]=e[n]},H=function(t){return"function"==typeof t},q=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e};return a.createMatrix=A,a.setElementTransform=P,a}(),f=function(){function t(t,o,r,a,s,l){var u,c,f,h,d,p,g,m,v,_,y,w,b,x,C,E,T,S,k,D,I,A,N,L,O=t.data,j=l+l+1,R=a-1,P=s-1,M=l+1,H=M*(M+1)/2,q=new e,F=q;for(f=1;f<j;f++)if(F=F.next=new e,f==M)var z=F;F.next=q;var B=null,U=null;g=p=0;var W=n[l],Q=i[l];for(c=0;c<s;c++){for(E=T=S=k=m=v=_=y=0,w=M*(D=O[p]),b=M*(I=O[p+1]),x=M*(A=O[p+2]),C=M*(N=O[p+3]),m+=H*D,v+=H*I,_+=H*A,y+=H*N,F=q,f=0;f<M;f++)F.r=D,F.g=I,F.b=A,F.a=N,F=F.next;for(f=1;f<M;f++)h=p+((R<f?R:f)<<2),m+=(F.r=D=O[h])*(L=M-f),v+=(F.g=I=O[h+1])*L,_+=(F.b=A=O[h+2])*L,y+=(F.a=N=O[h+3])*L,E+=D,T+=I,S+=A,k+=N,F=F.next;for(B=q,U=z,u=0;u<a;u++)O[p+3]=N=y*W>>Q,0!=N?(N=255/N,O[p]=(m*W>>Q)*N,O[p+1]=(v*W>>Q)*N,O[p+2]=(_*W>>Q)*N):O[p]=O[p+1]=O[p+2]=0,m-=w,v-=b,_-=x,y-=C,w-=B.r,b-=B.g,x-=B.b,C-=B.a,h=g+((h=u+l+1)<R?h:R)<<2,m+=E+=B.r=O[h],v+=T+=B.g=O[h+1],_+=S+=B.b=O[h+2],y+=k+=B.a=O[h+3],B=B.next,w+=D=U.r,b+=I=U.g,x+=A=U.b,C+=N=U.a,E-=D,T-=I,S-=A,k-=N,U=U.next,p+=4;g+=a}for(u=0;u<a;u++){for(T=S=k=E=v=_=y=m=0,w=M*(D=O[p=u<<2]),b=M*(I=O[p+1]),x=M*(A=O[p+2]),C=M*(N=O[p+3]),m+=H*D,v+=H*I,_+=H*A,y+=H*N,F=q,f=0;f<M;f++)F.r=D,F.g=I,F.b=A,F.a=N,F=F.next;for(d=a,f=1;f<=l;f++)p=d+u<<2,m+=(F.r=D=O[p])*(L=M-f),v+=(F.g=I=O[p+1])*L,_+=(F.b=A=O[p+2])*L,y+=(F.a=N=O[p+3])*L,E+=D,T+=I,S+=A,k+=N,F=F.next,f<P&&(d+=a);for(p=u,B=q,U=z,c=0;c<s;c++)O[(h=p<<2)+3]=N=y*W>>Q,N>0?(N=255/N,O[h]=(m*W>>Q)*N,O[h+1]=(v*W>>Q)*N,O[h+2]=(_*W>>Q)*N):O[h]=O[h+1]=O[h+2]=0,m-=w,v-=b,_-=x,y-=C,w-=B.r,b-=B.g,x-=B.b,C-=B.a,h=u+((h=c+M)<P?h:P)*a<<2,m+=E+=B.r=O[h],v+=T+=B.g=O[h+1],_+=S+=B.b=O[h+2],y+=k+=B.a=O[h+3],B=B.next,w+=D=U.r,b+=I=U.g,x+=A=U.b,C+=N=U.a,E-=D,T-=I,S-=A,k-=N,U=U.next,p+=a}return t}function e(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var n=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];return function(e,n,i,o,r,a){if(!(isNaN(a)||a<1)){a|=0;var s=function(t,e,n,i,o){if("string"==typeof t)t=document.getElementById(t);else if(!t instanceof HTMLCanvasElement)return;var r,a=t.getContext("2d");try{try{r=a.getImageData(e,n,i,o)}catch(t){throw new Error("unable to access local image data: "+t)}}catch(t){throw new Error("unable to access image data: "+t)}return r}(e,n,i,o,r);s=t(s,n,i,o,r,a),e.getContext("2d").putImageData(s,n,i)}}}();HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,n){for(var i=atob(this.toDataURL(e,n).split(",")[1]),o=i.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=i.charCodeAt(a);t(new Blob([r],{type:e||"image/png"}))}});var h=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),d="function"==typeof Symbol&&"symbol"==t(Symbol.iterator)?function(e){return t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},p=function(t){if(void 0===t.dataset){var e,n={},i=t.attributes;for(e in i)i.hasOwnProperty(e)&&i[e].name&&/^data-[a-z_\-\d]*$/i.test(i[e].name)&&(n[g(i[e].name.substr(5))]=i[e].value);return n}return t.dataset},g=function(t){return t.replace(/\-./g,(function(t){return t.charAt(1).toUpperCase()}))},m=function(t){for(var e=[],n=Array.prototype.slice.call(t.attributes),i=n.length,o=0;o<i;o++)e.push({name:n[o].name,value:n[o].value});return e},v=function(t){return{x:void 0===t.offsetX?t.layerX:t.offsetX,y:void 0===t.offsetY?t.layerY:t.offsetY}},_=function(t,e){var n,i={},o=e||{};for(n in t)t.hasOwnProperty(n)&&(i[n]=void 0===o[n]?t[n]:o[n]);return i},y=27,w=13,b=["touchstart","pointerdown","mousedown"],x=["touchmove","pointermove","mousemove"],C=["touchend","touchcancel","pointerup","mouseup"],E={jpeg:"image/jpeg",jpg:"image/jpeg",jpe:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp"},T=/(\.png|\.bmp|\.gif|\.jpg|\.jpe|\.jpg|\.jpeg)$/,S=function(t,e){var n=document.createElement(t);return e&&(n.className=e),n},k=function(t,e,n){e.forEach((function(e){t.addEventListener(e,n,!1)}))},D=function(t,e,n){e.forEach((function(e){t.removeEventListener(e,n,!1)}))},I=function(t){var e=function(t){var e=t.changedTouches?t.changedTouches[0]:t;if(e)return{x:e.pageX,y:e.pageY}}(t);return e.x-=window.pageXOffset||document.documentElement.scrollLeft,e.y-=window.pageYOffset||document.documentElement.scrollTop,e},A=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},N=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},L=function(t){return t[t.length-1]},O=function(t,e,n){return Math.max(e,Math.min(n,t))},j=function(t,e){if(!e)return!1;for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},R=function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:"POST",i=arguments[2],o=arguments[3],r=arguments[4],a=arguments[5],s=arguments[6],l=new XMLHttpRequest;r&&l.upload.addEventListener("progress",(function(t){r(t.loaded,t.total)})),l.open(e,t,!0),o&&o(l,i),l.onreadystatechange=function(){if(4===l.readyState&&l.status>=200&&l.status<300){var t=l.responseText;if(!t.length)return void a();if(-1!==t.indexOf("Content-Length"))return void s("file-too-big");var e=void 0;try{e=JSON.parse(l.responseText)}catch(t){}if("object"===(void 0===e?"undefined":d(e))&&"failure"===e.status)return void s(e.message);a(e||t)}else if(4===l.readyState){var n=void 0;try{n=JSON.parse(l.responseText)}catch(t){}if("object"===(void 0===n?"undefined":d(n))&&"failure"===n.status)return void s(n.message);s("fail")}},l.send(i)},P=function(t){t&&(t.style.webkitTransform="",t.style.transform="")},M=function(t){return t/1e6},H=function(t){var e=void 0;for(e in E)if(E.hasOwnProperty(e)&&E[e]===t)return e;return t},q=function(t){return t.split("/").pop().split("?").shift()},F=function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:"";return(e+t).slice(-e.length)},z=function(t){return t.getFullYear()+"-"+F(t.getMonth()+1,"00")+"-"+F(t.getDate(),"00")+"_"+F(t.getHours(),"00")+"-"+F(t.getMinutes(),"00")+"-"+F(t.getSeconds(),"00")},B=function(t){return void 0===t.name?z(new Date)+"."+H(U(t)):t.name},U=function(t){return t.type||"image/jpeg"},W=function(t){return"string"!=typeof t?z(new Date):q(t).split(".").shift()},Q=function(t,e){try{return new File([t],e,{type:t.type,lastModified:Date.now()})}catch(n){return t.lastModified=new Date,t.name=e,t}},V=function(t){return/^data:image/.test(t)},$=function(t,e,n,i,o,r){t=t+(-1!==t.indexOf("?")?"&":"?")+"url="+i;var a=new XMLHttpRequest;a.open("GET",t,!0),e(a),a.responseType="json",a.onload=function(){return"failure"===this.response.status?void o(this.response.message):void X(this.response.body,n,r)},a.send()},X=function(t,e,n,i){var o=new XMLHttpRequest;o.open("GET",t,!0),e(o),o.responseType="blob",o.onload=function(e){if(o.status>=200&&o.status<300){var r=q(t),a=function(t){var e=void 0;for(e in E)if(E.hasOwnProperty(e)&&-1!==t.indexOf(E[e]))return E[e];return null}(this.response.type);T.test(r)||(r+="."+H(a));var s=Q(this.response,r);n(at(s,a))}else i(o.status+": "+o.statusText)},o.onerror=function(){i()},o.send()},G=function(t,e){for(var n=function(t){var e=t.split(",")[1].replace(/\s/g,"");return atob(e)}(t),i=new ArrayBuffer(n.length),o=new Uint8Array(i),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);var a=lt(t);return void 0===e&&(e=z(new Date)+"."+H(a)),Q(Y(i,a),e)},Y=function(t,e){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var i=new n;return i.append(t),i.getBlob(e)}return new Blob([t],{type:e})},K=function(t,e,n){var i="string"!=typeof t||0!==t.indexOf("data:image");o.parseMetaData(t,(function(r){var a={canvas:!0,crossOrigin:i};e&&(a.maxWidth=e.width,a.maxHeight=e.height),r.exif&&(a.orientation=r.exif.get("Orientation")),o(t,(function(t){return"error"===t.type?void n():void n(t,r)}),a)}))},J=function(t,e,n){var i,o,r,a;return e/t<n?(i=.5*(t-(r=(a=e)/n)),o=0):(i=0,o=.5*(e-(a=(r=t)*n))),{x:i,y:o,height:a,width:r}},Z=function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:{},o=arguments[2],r=S("canvas"),a=e.rotation,s=e.crop,l=e.size,u=e.filters,c=e.minSize;if(s){var f=a%180!=0,h={width:f?t.height:t.width,height:f?t.width:t.height};s.x<0&&(s.x=0),s.y<0&&(s.y=0),s.width>h.width&&(s.width=h.width),s.height>h.height&&(s.height=h.height),s.y+s.height>h.height&&(s.y=Math.max(0,h.height-s.height)),s.x+s.width>h.width&&(s.x=Math.max(0,h.width-s.width));var d=s.x/h.width,p=s.y/h.height,g=s.width/h.width,m=s.height/h.height;r.width=s.width,r.height=s.height;var v=r.getContext("2d");90===a?(v.translate(.5*r.width,.5*r.height),v.rotate(-90*Math.PI/180),v.drawImage(t,(1-p)*t.width-t.width*m,s.x,s.height,s.width,.5*-r.height,.5*-r.width,r.height,r.width)):180===a?(v.translate(.5*r.width,.5*r.height),v.rotate(-180*Math.PI/180),v.drawImage(t,(1-(d+g))*h.width,(1-(p+m))*h.height,g*h.width,m*h.height,.5*-r.width,.5*-r.height,r.width,r.height)):270===a?(v.translate(.5*r.width,.5*r.height),v.rotate(-270*Math.PI/180),v.drawImage(t,s.y,(1-d)*t.height-t.height*g,s.height,s.width,.5*-r.height,.5*-r.width,r.height,r.width)):v.drawImage(t,s.x,s.y,s.width,s.height,0,0,r.width,r.height)}if(l){var _=l.width/r.width,y=l.height/r.height,w=Math.min(_,y);i(r,w,l,c),u.sharpen>0&&tt(r,et(u.sharpen))}o(r)},tt=function(t,e){t.getContext("2d").putImageData(e(function(t){return t.getContext("2d").getImageData(0,0,t.width,t.height)}(t),t.width,t.height),0,0)},et=function(t){return function(e,n,i){for(var o=[0,-1,0,-1,5,-1,0,-1,0],r=Math.round(Math.sqrt(o.length)),a=.5*r|0,s=function(t,e,n){var i=document.createElement("canvas");i.width=t,i.height=e;var o=i.getContext("2d").createImageData(i.width,i.height);return n&&o.set(n.data),o}(n,i),l=s.data,u=e.data,c=i,f=void 0;c--;)for(f=n;f--;){for(var h=c,d=f,p=4*(c*n+f),g=0,m=0,v=0,_=0;_<r;_++)for(var y=0;y<r;y++){var w=h+_-a,b=d+y-a;if(w>=0&&w<i&&b>=0&&b<n){var x=4*(w*n+b),C=o[_*r+y];g+=u[x]*C,m+=u[x+1]*C,v+=u[x+2]*C,u[x+3]*C}}l[p]=g*t+u[p]*(1-t),l[p+1]=m*t+u[p+1]*(1-t),l[p+2]=v*t+u[p+2]*(1-t),l[p+3]=u[p+3]}return s}},nt=function(t){return it(t,1)},it=function(t,e){if(!t)return null;var n=document.createElement("canvas"),o=n.getContext("2d");return n.width=t.width,n.height=t.height,o.drawImage(t,0,0),e>0&&1!==e&&i(n,e,{width:Math.round(t.width*e),height:Math.round(t.height*e)},{width:0,height:0}),n},ot=function(t,e){return parseInt(t.width,10)>=e.width&&parseInt(t.height,10)>=e.height},rt=function(t){return"object"===("undefined"==typeof value?"undefined":d(value))&&null!==value?JSON.parse(JSON.stringify(t)):t},at=function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:null;if(!t)return null;var i=t.slice(0,t.size,e||t.type);return i.name=t.name,i.lastModified=new Date(t.lastModified),i},st=function(t,e,i){return t&&e?t.toDataURL(e,function(t){return"image/jpeg"===t}(e)&&"number"==typeof i?i/100:n):null},lt=function(t){if(!t)return null;var e=t.substr(0,16).match(/^.+;/);return e.length?e[0].substring(5,e[0].length-1):null},ut=function(t){return Array.prototype.slice.call(t)},ct=function(t){t.parentNode.removeChild(t)},ft=function(t){var e=S("div");return t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)),e.appendChild(t),e},ht=function(t,e,n,i){var o=(i-90)*Math.PI/180;return{x:t+n*Math.cos(o),y:e+n*Math.sin(o)}},dt=function(t,e,n,i){return function(t,e,n,i,o){var r=ht(t,e,n,o),a=ht(t,e,n,i),s=o-i<=180?"0":"1";return["M",r.x,r.y,"A",n,n,0,s,0,a.x,a.y].join(" ")}(t,e,n,0,360*i)},pt=function(){var t={n:function(t,e,n,i){var o,r,a,s,l,u,c;return(a=t.y+t.height)-(o=O(e.y,0,a))<n.min.height&&(o=a-n.min.height),(l=i?(a-o)/i:t.width)<n.min.width&&(o=a-(l=n.min.width)*i),u=.5*(l-t.width),s=t.x-u,r=t.x+t.width+u,(s<0||Math.round(r)>Math.round(n.width))&&(c=Math.min(t.x,n.width-(t.x+t.width)),s=t.x-c,o=a-(l=(r=t.x+t.width+c)-s)*i),{x:s,y:o,width:r-s,height:a-o}},s:function(t,e,n,i){var o,r,a,s,l,u,c;return o=t.y,(a=O(e.y,o,n.height))-o<n.min.height&&(a=o+n.min.height),(l=i?(a-o)/i:t.width)<n.min.width&&(a=o+(l=n.min.width)*i),u=.5*(l-t.width),s=t.x-u,r=t.x+t.width+u,(s<0||Math.round(r)>Math.round(n.width))&&(c=Math.min(t.x,n.width-(t.x+t.width)),s=t.x-c,a=o+(l=(r=t.x+t.width+c)-s)*i),{x:s,y:o,width:r-s,height:a-o}},e:function(t,e,n,i){var o,r,a,s,l,u,c;return s=t.x,(r=O(e.x,s,n.width))-s<n.min.width&&(r=s+n.min.width),(l=i?(r-s)*i:t.height)<n.min.height&&(r=s+(l=n.min.height)/i),u=.5*(l-t.height),o=t.y-u,a=t.y+t.height+u,(o<0||Math.round(a)>Math.round(n.height))&&(c=Math.min(t.y,n.height-(t.y+t.height)),o=t.y-c,r=s+(l=(a=t.y+t.height+c)-o)/i),{x:s,y:o,width:r-s,height:a-o}},w:function(t,e,n,i){var o,r,a,s,l,u,c,f;return(r=t.x+t.width)-(s=O(e.x,0,r))<n.min.width&&(s=r-n.min.width),(u=i?(r-s)*i:t.height)<n.min.height&&(s=r-(u=n.min.height)/i),c=.5*(u-t.height),o=t.y-c,a=t.y+t.height+c,(o<0||Math.round(a)>Math.round(n.height))&&(f=Math.min(t.y,n.height-(t.y+t.height)),o=t.y-f,l=(u=(a=t.y+t.height+f)-o)/i,s=r-l),{x:s,y:o,width:r-s,height:a-o}},ne:function(t,e,n,i){var o,r,a,s,l,u;return s=t.x,a=t.y+t.height,(r=O(e.x,s,n.width))-s<n.min.width&&(r=s+n.min.width),(l=i?(r-s)*i:O(a-e.y,n.min.height,a))<n.min.height&&(r=s+(l=n.min.height)/i),((o=t.y-(l-t.height))<0||Math.round(a)>Math.round(n.height))&&(u=Math.min(t.y,n.height-(t.y+t.height)),r=s+(l=a-(o=t.y-u))/i),{x:s,y:o,width:r-s,height:a-o}},se:function(t,e,n,i){var o,r,a,s,l,u;return s=t.x,o=t.y,(r=O(e.x,s,n.width))-s<n.min.width&&(r=s+n.min.width),(l=i?(r-s)*i:O(e.y-t.y,n.min.height,n.height-o))<n.min.height&&(r=s+(l=n.min.height)/i),a=t.y+t.height+(l-t.height),(o<0||Math.round(a)>Math.round(n.height))&&(u=Math.min(t.y,n.height-(t.y+t.height)),r=s+(l=(a=t.y+t.height+u)-o)/i),{x:s,y:o,width:r-s,height:a-o}},sw:function(t,e,n,i){var o,r,a,s,l,u;return r=t.x+t.width,o=t.y,r-(s=O(e.x,0,r))<n.min.width&&(s=r-n.min.width),(l=i?(r-s)*i:O(e.y-t.y,n.min.height,n.height-o))<n.min.height&&(s=r-(l=n.min.height)/i),a=t.y+t.height+(l-t.height),(o<0||Math.round(a)>Math.round(n.height))&&(u=Math.min(t.y,n.height-(t.y+t.height)),s=r-(l=(a=t.y+t.height+u)-o)/i),{x:s,y:o,width:r-s,height:a-o}},nw:function(t,e,n,i){var o,r,a,s,l,u;return r=t.x+t.width,a=t.y+t.height,r-(s=O(e.x,0,r))<n.min.width&&(s=r-n.min.width),(l=i?(r-s)*i:O(a-e.y,n.min.height,a))<n.min.height&&(s=r-(l=n.min.height)/i),((o=t.y-(l-t.height))<0||Math.round(a)>Math.round(n.height))&&(u=Math.min(t.y,n.height-(t.y+t.height)),s=r-(l=a-(o=t.y-u))/i),{x:s,y:o,width:r-s,height:a-o}}};return function(){function i(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:document.createElement("div");e(this,i),this._element=t,this._interaction=null,this._minWidth=1,this._minHeight=1,this._ratio=null,this._rect={x:0,y:0,width:0,height:0},this._space={width:0,height:0},this._rectChanged=!1,this._init()}return h(i,[{key:"_init",value:function(){this._element.className="slim-crop-area";var e=S("div","grid");for(var n in this._element.appendChild(e),t)if(t.hasOwnProperty(n)){var i=S("button",n);this._element.appendChild(i)}var o=S("button","c");this._element.appendChild(o),k(document,b,this)}},{key:"reset",value:function(){this._interaction=null,this._rect={x:0,y:0,width:0,height:0},this._rectChanged=!0,this._redraw(),this._element.dispatchEvent(new CustomEvent("change"))}},{key:"rescale",value:function(t){1!==t&&(this._interaction=null,this._rectChanged=!0,this._rect.x*=t,this._rect.y*=t,this._rect.width*=t,this._rect.height*=t,this._redraw(),this._element.dispatchEvent(new CustomEvent("change")))}},{key:"limit",value:function(t,e){this._space.width=t,this._space.height=e}},{key:"offset",value:function(t,e){this._space.x=t,this._space.y=e}},{key:"resize",value:function(t,e,n,i){this._interaction=null,this._rect={x:O(t,0,this._space.width-this._minWidth),y:O(e,0,this._space.height-this._minHeight),width:O(n,this._minWidth,this._space.width),height:O(i,this._minHeight,this._space.height)},this._rectChanged=!0,this._redraw(),this._element.dispatchEvent(new CustomEvent("change"))}},{key:"handleEvent",value:function(t){switch(t.type){case"touchstart":case"pointerdown":case"mousedown":this._onStartDrag(t);break;case"touchmove":case"pointermove":case"mousemove":this._onDrag(t);break;case"touchend":case"touchcancel":case"pointerup":case"mouseup":this._onStopDrag(t)}}},{key:"_onStartDrag",value:function(t){this._element.contains(t.target)&&(t.preventDefault(),k(document,x,this),k(document,C,this),this._interaction={type:t.target.className,offset:I(t)},this._interaction.offset.x-=this._rect.x,this._interaction.offset.y-=this._rect.y,this._element.setAttribute("data-dragging","true"),this._redraw())}},{key:"_onDrag",value:function(e){e.preventDefault();var n=I(e),i=this._interaction.type;"c"===i?(this._rect.x=O(n.x-this._interaction.offset.x,0,this._space.width-this._rect.width),this._rect.y=O(n.y-this._interaction.offset.y,0,this._space.height-this._rect.height)):t[i]&&(this._rect=t[i](this._rect,{x:n.x-this._space.x,y:n.y-this._space.y},{x:0,y:0,width:this._space.width,height:this._space.height,min:{width:this._minWidth,height:this._minHeight}},this._ratio)),this._rectChanged=!0,this._element.dispatchEvent(new CustomEvent("input"))}},{key:"_onStopDrag",value:function(t){t.preventDefault(),D(document,x,this),D(document,C,this),this._interaction=null,this._element.setAttribute("data-dragging","false"),this._element.dispatchEvent(new CustomEvent("change"))}},{key:"_redraw",value:function(){var t=this;if(this._rectChanged){var e="translate("+this._rect.x+"px,"+this._rect.y+"px);";this._element.style.cssText="\n\t\t\t\t\t-webkit-transform: "+e+";\n\t\t\t\t\ttransform: "+e+";\n\t\t\t\t\twidth:"+this._rect.width+"px;\n\t\t\t\t\theight:"+this._rect.height+"px;\n\t\t\t\t",this._rectChanged=!1}this._interaction&&requestAnimationFrame((function(){return t._redraw()}))}},{key:"destroy",value:function(){this._interaction=!1,this._rectChanged=!1,D(document,b,this),D(document,x,this),D(document,C,this),ct(this._element)}},{key:"element",get:function(){return this._element}},{key:"space",get:function(){return this._space}},{key:"area",get:function(){return{x:this._rect.x/this._space.width,y:this._rect.y/this._space.height,width:this._rect.width/this._space.width,height:this._rect.height/this._space.height}}},{key:"dirty",get:function(){return 0!==this._rect.x||0!==this._rect.y||0!==this._rect.width||0!==this._rect.height}},{key:"minWidth",set:function(t){this._minWidth=Math.max(t,1)}},{key:"minHeight",set:function(t){this._minHeight=Math.max(t,1)}},{key:"ratio",set:function(t){this._ratio=t}}]),i}()}(),gt=function(){var t=["input","change"],i=function(){function i(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:document.createElement("div"),o=arguments.length>1&&arguments[1]!==n?arguments[1]:{};e(this,i),this._element=t,this._options=_(i.options(),o),this._ratio=null,this._output=null,this._rotating=!1,this._input=null,this._preview=null,this._previewBlurred=null,this._blurredPreview=!1,this._cropper=null,this._straightCrop=null,this._previewWrapper=null,this._currentWindowSize={},this._btnGroup=null,this._maskFrame=null,this._dirty=!1,this._wrapperRotation=0,this._wrapperScale=1,this._init()}return h(i,[{key:"_init",value:function(){var e=this;this._element.className="slim-image-editor",this._container=S("div","slim-container"),this._wrapper=S("div","slim-wrapper"),this._stage=S("div","slim-stage"),this._container.appendChild(this._stage),this._cropper=new pt,t.forEach((function(t){e._cropper.element.addEventListener(t,e)})),this._stage.appendChild(this._cropper.element),this._previewWrapper=S("div","slim-image-editor-preview slim-crop-preview"),this._previewBlurred=S("canvas","slim-crop-blur"),this._previewWrapper.appendChild(this._previewBlurred),this._wrapper.appendChild(this._previewWrapper),this._previewMask=S("div","slim-crop-mask"),this._preview=S("img"),this._previewMask.appendChild(this._preview),this._cropper.element.appendChild(this._previewMask),this._btnGroup=S("div","slim-editor-btn-group"),i.Buttons.forEach((function(t){var n=N(t),i=e._options["button"+n+"Label"],o=e._options["button"+n+"Title"],r=e._options["button"+n+"ClassName"],a=S("button","slim-editor-btn slim-btn-"+t+(r?" "+r:""));a.innerHTML=i,a.title=o||i,a.type="button",a.setAttribute("data-action",t),a.addEventListener("click",e),e._btnGroup.appendChild(a)})),this._utilsGroup=S("div","slim-editor-utils-group");var n=S("button","slim-editor-utils-btn slim-btn-rotate"+(this._options.buttonRotateClassName?" "+this._options.buttonRotateClassName:""));n.setAttribute("data-action","rotate"),n.addEventListener("click",this),n.title=this._options.buttonRotateTitle,this._utilsGroup.appendChild(n),this._container.appendChild(this._wrapper),this._element.appendChild(this._container),this._element.appendChild(this._utilsGroup),this._element.appendChild(this._btnGroup)}},{key:"dirty",value:function(){this._dirty=!0}},{key:"handleEvent",value:function(t){switch(t.type){case"click":this._onClick(t);break;case"change":this._onGridChange(t);break;case"input":this._onGridInput(t);break;case"keydown":this._onKeyDown(t);break;case"resize":this._onResize(t)}}},{key:"_onKeyDown",value:function(t){switch(t.keyCode){case w:this._confirm();break;case y:this._cancel()}}},{key:"_onClick",value:function(t){t.target.classList.contains("slim-btn-cancel")&&this._cancel(),t.target.classList.contains("slim-btn-confirm")&&this._confirm(),t.target.classList.contains("slim-btn-rotate")&&this._rotate()}},{key:"_onResize",value:function(){this._currentWindowSize={width:window.innerWidth,height:window.innerHeight},this._redraw(),this._redrawCropper(this._cropper.area),this._updateWrapperScale(),this._redrawWrapper()}},{key:"_redrawWrapper",value:function(){var t=c.createMatrix();t.scale(this._wrapperScale,this._wrapperScale),t.rotateZ(this._wrapperRotation*(Math.PI/180)),c.setElementTransform(this._previewWrapper,t)}},{key:"_onGridInput",value:function(){this._redrawCropMask()}},{key:"_onGridChange",value:function(){this._redrawCropMask()}},{key:"_updateWrapperRotation",value:function(){this._options.minSize.width>this._input.height||this._options.minSize.height>this._input.width?this._wrapperRotation+=180:this._wrapperRotation+=90}},{key:"_updateWrapperScale",value:function(){if(this._wrapperRotation%180!=0){var t=this._container.offsetWidth,e=this._container.offsetHeight,n=this._wrapper.offsetHeight,i=this._wrapper.offsetWidth,o=t/n;o*i>e&&(o=e/i),this._wrapperScale=o}else this._wrapperScale=1}},{key:"_cancel",value:function(){this._rotating||this._element.dispatchEvent(new CustomEvent("cancel"))}},{key:"_confirm",value:function(){if(!this._rotating){var t=this._wrapperRotation%180!=0,e=function(t,e,n){return{x:t.x*e,y:t.y*n,width:t.width*e,height:t.height*n}}(this._cropper.area,t?this._input.height:this._input.width,t?this._input.width:this._input.height);this._element.dispatchEvent(new CustomEvent("confirm",{detail:{rotation:this._wrapperRotation%360,crop:e}}))}}},{key:"_rotate",value:function(){var t=this;if(!this._rotating){this._rotating=!0,this._updateWrapperRotation();var e=1===this.ratio||null===this._ratio?this._cropper.area:null;e&&function(t,e){var n=.5,i=.5,o=Math.PI/180*e,r=Math.cos(o),a=Math.sin(o),s=t.x,l=t.y,u=t.x+t.width,c=t.y+t.height,f=r*(s-n)+a*(l-i)+n,h=r*(l-i)-a*(s-n)+i,d=r*(u-n)+a*(c-i)+n,p=r*(c-i)-a*(u-n)+i;f<=d?(t.x=f,t.width=d-f):(t.x=d,t.width=f-d),h<=p?(t.y=h,t.height=p-h):(t.y=p,t.height=h-p)}(e,90),this._updateWrapperScale(),this._hideCropper(),c(this._previewWrapper,{rotation:[0,0,this._wrapperRotation*(Math.PI/180)],scale:[this._wrapperScale,this._wrapperScale],easing:"spring",springConstant:.8,springDeceleration:.65,complete:function(){t._redrawCropper(e),t._showCropper(),t._rotating=!1}})}}},{key:"_showCropper",value:function(){c(this._stage,{easing:"ease",duration:250,fromOpacity:0,opacity:1})}},{key:"_hideCropper",value:function(){c(this._stage,{duration:0,fromOpacity:0,opacity:0})}},{key:"_redrawCropMask",value:function(){var t=this,e=this._wrapperRotation%360,n=this._wrapperScale,i=this._wrapper.offsetWidth,o=this._wrapper.offsetHeight,r=this._cropper.area,a={x:0,y:0};0===e?(a.x=-r.x,a.y=-r.y):90===e?(a.x=-(1-r.y),a.y=-r.x):180===e?(a.x=-(1-r.x),a.y=-(1-r.y)):270===e&&(a.x=-r.y,a.y=-(1-r.x)),a.x*=i,a.y*=o,cancelAnimationFrame(this._maskFrame),this._maskFrame=requestAnimationFrame((function(){var i="scale("+n+") rotate("+-e+"deg) translate("+a.x+"px, "+a.y+"px);";t._preview.style.cssText="\n\t\t\t\t\twidth: "+t._previewSize.width+"px;\n\t\t\t\t\theight: "+t._previewSize.height+"px;\n\t\t\t\t\t-webkit-transform: "+i+";\n\t\t\t\t\ttransform: "+i+";\n\t\t\t\t"}))}},{key:"open",value:function(t,e,n,i,o){var r=this;if(!this._input||this._dirty||this._ratio!==e){this._currentWindowSize={width:window.innerWidth,height:window.innerHeight},this._dirty=!1,this._wrapperRotation=i||0,this._blurredPreview=!1,this._ratio=e,this._previewSize=null,this._element.style.opacity="0",this._input=t;var a=i%180!=0,s=function(t,e,n){return{x:t.x/e,y:t.y/n,width:t.width/e,height:t.height/n}}(n,a?t.height:t.width,a?t.width:t.height);this._preview.onload=function(){r._preview.onload=null,r._cropper.ratio=r.ratio,r._redraw(),r._redrawCropper(s),o(),r._element.style.opacity=""},this._preview.src="",this._preview.src=it(this._input,Math.min(this._container.offsetWidth/this._input.width,this._container.offsetHeight/this._input.height)*this._options.devicePixelRatio).toDataURL()}else o()}},{key:"_redrawCropper",value:function(t){var e=this._wrapperRotation%180!=0,n=e?this._input.height/this._input.width:this._input.width/this._input.height,i=this._wrapper.offsetWidth,o=this._wrapper.offsetHeight,r=this._container.offsetWidth,a=this._container.offsetHeight;this._updateWrapperScale();var s=this._wrapperScale*(e?o:i),l=this._wrapperScale*(e?i:o),u=e?.5*(r-s):this._wrapper.offsetLeft,c=e?.5*(a-l):this._wrapper.offsetTop;this._stage.style.cssText="\n\t\t\t\tleft:"+u+"px;\n\t\t\t\ttop:"+c+"px;\n\t\t\t\twidth:"+s+"px;\n\t\t\t\theight:"+l+"px;\n\t\t\t",this._cropper.limit(s,s/n),this._cropper.offset(u+this._element.offsetLeft,c+this._element.offsetTop),this._cropper.minWidth=this._wrapperScale*this._options.minSize.width*this.scalar,this._cropper.minHeight=this._wrapperScale*this._options.minSize.height*this.scalar;var f;f=t?{x:t.x*s,y:t.y*l,width:t.width*s,height:t.height*l}:J(s,l,this._ratio||l/s),this._cropper.resize(f.x,f.y,f.width,f.height)}},{key:"_redraw",value:function(){var t=this._input.height/this._input.width,e=this._container.clientWidth,n=this._container.clientHeight,i=e,o=i*t;o>n&&(i=(o=n)/t);var r=(e-(i=Math.round(i)))/2,a=(n-(o=Math.round(o)))/2;this._wrapper.style.cssText="\n\t\t\t\tleft:"+r+"px;\n\t\t\t\ttop:"+a+"px;\n\t\t\t\twidth:"+i+"px;\n\t\t\t\theight:"+o+"px;\n\t\t\t",this._previewBlurred.style.cssText="\n\t\t\t\twidth:"+i+"px;\n\t\t\t\theight:"+o+"px;\n\t\t\t",this._preview.style.cssText="\n\t\t\t\twidth:"+i+"px;\n\t\t\t\theight:"+o+"px;\n\t\t\t",this._previewSize={width:i,height:o},this._blurredPreview||(this._previewBlurred.width=300,this._previewBlurred.height=this._previewBlurred.width*t,function(t,e){var n=e.getContext("2d");!function(t){return t.width&&t.height}(e)?(e.width=t.width,e.height=t.height,n.drawImage(t,0,0)):n.drawImage(t,0,0,e.width,e.height)}(this._input,this._previewBlurred),function(t){f(t,0,0,t.width,t.height,3)}(this._previewBlurred),this._blurredPreview=!0)}},{key:"show",value:function(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:function(){};this._currentWindowSize.width===window.innerWidth&&this._currentWindowSize.height===window.innerHeight||(this._redraw(),this._redrawCropper(this._cropper.area)),document.addEventListener("keydown",this),window.addEventListener("resize",this);var e=this._wrapperRotation*(Math.PI/180);c(this._previewWrapper,{fromRotation:[0,0,e],rotation:[0,0,e],fromPosition:[0,0,0],position:[0,0,0],fromOpacity:0,opacity:1,fromScale:[this._wrapperScale-.02,this._wrapperScale-.02],scale:[this._wrapperScale,this._wrapperScale],easing:"spring",springConstant:.3,springDeceleration:.85,delay:450,complete:function(){}}),this._cropper.dirty?c(this._stage,{fromPosition:[0,0,0],position:[0,0,0],fromOpacity:0,opacity:1,duration:250,delay:850,complete:function(){P(this),t()}}):c(this._stage,{fromPosition:[0,0,0],position:[0,0,0],fromOpacity:0,opacity:1,duration:250,delay:1e3,complete:function(){P(this)}}),c(this._btnGroup.childNodes,{fromScale:[.9,.9],scale:[1,1],fromOpacity:0,opacity:1,delay:function(t){return 1e3+100*t},easing:"spring",springConstant:.3,springDeceleration:.85,complete:function(){P(this)}}),c(this._utilsGroup.childNodes,{fromScale:[.9,.9],scale:[1,1],fromOpacity:0,opacity:1,easing:"spring",springConstant:.3,springDeceleration:.85,delay:1250,complete:function(){P(this)}})}},{key:"hide",value:function(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:function(){};document.removeEventListener("keydown",this),window.removeEventListener("resize",this),c(this._utilsGroup.childNodes,{fromOpacity:1,opacity:0,duration:250}),c(this._btnGroup.childNodes,{fromOpacity:1,opacity:0,delay:200,duration:350}),c([this._stage,this._previewWrapper],{fromPosition:[0,0,0],position:[0,-250,0],fromOpacity:1,opacity:0,easing:"spring",springConstant:.3,springDeceleration:.75,delay:250,allDone:function(){t()}})}},{key:"destroy",value:function(){var e=this;ut(this._btnGroup.children).forEach((function(t){t.removeEventListener("click",e)})),t.forEach((function(t){e._cropper.element.removeEventListener(t,e)})),this._cropper.destroy(),this._element.parentNode&&ct(this._element)}},{key:"showRotateButton",set:function(t){t?this._element.classList.remove("slim-rotation-disabled"):this._element.classList.add("slim-rotation-disabled")}},{key:"element",get:function(){return this._element}},{key:"ratio",get:function(){return"input"===this._ratio?this._input.height/this._input.width:this._ratio}},{key:"offset",get:function(){return this._element.getBoundingClientRect()}},{key:"original",get:function(){return this._input}},{key:"scalar",get:function(){return this._previewSize.width/this._input.width}}],[{key:"options",value:function(){return{buttonCancelClassName:null,buttonConfirmClassName:null,buttonCancelLabel:"Cancel",buttonConfirmLabel:"Confirm",buttonCancelTitle:null,buttonConfirmTitle:null,buttonRotateTitle:"Rotate",buttonRotateClassName:null,devicePixelRatio:null,minSize:{width:0,height:0}}}}]),i}();return i.Buttons=["cancel","confirm"],i}(),mt=function(){var t=["dragenter","dragover","dragleave","drop"];return function(){function i(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:document.createElement("div");e(this,i),this._element=t,this._accept=[],this._allowURLs=!1,this._dragPath=null,this._init()}return h(i,[{key:"isValidDataTransfer",value:function(t){return t.files&&t.files.length?this.areValidDataTransferFiles(t.files):t.items&&t.items.length?this.areValidDataTransferItems(t.items):null}},{key:"areValidDataTransferFiles",value:function(t){return!this._accept.length||!t||-1!==this._accept.indexOf(t[0].type)}},{key:"areValidDataTransferItems",value:function(t){return!this._accept.length||!t||(this._allowURLs&&"string"===t[0].kind||t[0].type&&0===t[0].type.indexOf("application")?null:-1!==this._accept.indexOf(t[0].type))}},{key:"reset",value:function(){this._element.files=null}},{key:"_init",value:function(){var e=this;this._element.className="slim-file-hopper",t.forEach((function(t){e._element.addEventListener(t,e)}))}},{key:"handleEvent",value:function(t){switch(t.type){case"dragenter":case"dragover":this._onDragOver(t);break;case"dragleave":this._onDragLeave(t);break;case"drop":this._onDrop(t)}}},{key:"_onDrop",value:function(t){t.preventDefault();var e=null;if(this._allowURLs){var n=void 0,i=void 0;try{n=t.dataTransfer.getData("url"),i=t.dataTransfer.getData("text/html")}catch(t){}if(i&&i.length){var o=i.match(/src\s*=\s*"(.+?)"/);o&&(e=o[1])}else n&&n.length&&(e=n)}if(e)this._element.files=[{remote:e}];else{if(!this.isValidDataTransfer(t.dataTransfer))return this._element.dispatchEvent(new CustomEvent("file-invalid-drop")),void(this._dragPath=null);this._element.files=t.dataTransfer.files}this._element.dispatchEvent(new CustomEvent("file-drop",{detail:v(t)})),this._element.dispatchEvent(new CustomEvent("change")),this._dragPath=null}},{key:"_onDragOver",value:function(t){t.preventDefault(),t.dataTransfer.dropEffect="copy";var e=this.isValidDataTransfer(t.dataTransfer);return null===e||e?(this._dragPath||(this._dragPath=[]),this._dragPath.push(v(t)),void this._element.dispatchEvent(new CustomEvent("file-over",{detail:{x:L(this._dragPath).x,y:L(this._dragPath).y}}))):(t.dataTransfer.dropEffect="none",void this._element.dispatchEvent(new CustomEvent("file-invalid")))}},{key:"_onDragLeave",value:function(t){this._element.dispatchEvent(new CustomEvent("file-out",{detail:v(t)})),this._dragPath=null}},{key:"destroy",value:function(){var e=this;t.forEach((function(t){e._element.removeEventListener(t,e)})),ct(this._element),this._element=null,this._dragPath=null,this._accept=null}},{key:"element",get:function(){return this._element}},{key:"dragPath",get:function(){return this._dragPath}},{key:"enabled",get:function(){return""===this._element.style.display},set:function(t){this._element.style.display=t?"":"none"}},{key:"allowURLs",set:function(t){this._allowURLs=t}},{key:"accept",set:function(t){this._accept=t},get:function(){return this._accept}}]),i}()}(),vt=function(){function t(){e(this,t),this._element=null,this._inner=null,this._init()}return h(t,[{key:"_init",value:function(){this._element=S("div","slim-popover"),this._element.setAttribute("data-state","off"),document.body.appendChild(this._element),this._element.addEventListener("touchmove",(function(t){t.preventDefault()}),!0)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==n?arguments[0]:function(){};this._element.setAttribute("data-state","on"),c(this._element,{fromOpacity:0,opacity:1,duration:350,complete:function(){P(t._element),e()}})}},{key:"hide",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==n?arguments[0]:function(){};c(this._element,{fromOpacity:1,opacity:0,duration:500,complete:function(){P(t._element),t._element.setAttribute("data-state","off"),e()}})}},{key:"destroy",value:function(){this._element.parentNode&&(this._element.parentNode.removeChild(this._element),this._element=null,this._inner=null)}},{key:"inner",set:function(t){this._inner=t,this._element.firstChild&&this._element.removeChild(this._element.firstChild),this._element.appendChild(this._inner)}},{key:"className",set:function(t){this._element.className="slim-popover"+(null===t?"":" "+t)}}]),t}(),_t=function(t,e){return t.split(e).map((function(t){return parseInt(t,10)}))},yt=function(t){return"DIV"===t.nodeName||"SPAN"===t.nodeName},wt="auto",bt="initial",xt="manual",Ct=["x","y","width","height"],Et=["file-invalid-drop","file-invalid","file-drop","file-over","file-out","click"],Tt=["cancel","confirm"],St=["remove","edit","download","upload"],kt=null,Dt=0,It='\n<div class="slim-loader">\n\t<svg>\n\t\t<path class="slim-loader-background" fill="none" stroke-width="3" />\n\t\t<path class="slim-loader-foreground" fill="none" stroke-width="3" />\n\t</svg>\n</div>\n',At='\n<div class="slim-upload-status"></div>\n',Nt=function(t){var e=t.split(",");return{width:parseInt(e[0],10),height:parseInt(e[1],10)}},Lt=function(){function t(i){var o=arguments.length>1&&arguments[1]!==n?arguments[1]:{};e(this,t),kt||(kt=new vt),this._uid=Dt++,this._options=_(t.options(),o),this._options.forceSize&&("string"==typeof this._options.forceSize&&(this._options.forceSize=Nt(this._options.forceSize)),this._options.ratio=this._options.forceSize.width+":"+this._options.forceSize.height,this._options.size=rt(this._options.forceSize)),"string"==typeof this._options.size&&(this._options.size=Nt(this._options.size)),"string"==typeof this._options.minSize&&(this._options.minSize=Nt(this._options.minSize)),"string"==typeof this._options.post&&(this._options.post=this._options.post.split(",").map((function(t){return t.trim()}))),this._originalElement=i,this._originalElementInner=i.innerHTML,this._originalElementAttributes=m(i),yt(i)?this._element=i:(this._element=ft(i),this._element.className=i.className,i.className="",this._element.setAttribute("data-ratio",this._options.ratio)),this._element.classList.add("slim"),this._element.setAttribute("data-state","init"),this._state=[],this._timers=[],this._input=null,this._inputReference=null,this._output=null,this._ratio=null,this._isRequired=!1,this._imageHopper=null,this._imageEditor=null,this._progressEnabled=!0,this._data={},this._resetData(),this._drip=null,this._hasInitialImage=!1,this._initialCrop=this._options.crop,this._initialRotation=this._options.rotation&&this._options.rotation%90==0?this._options.rotation:null,this._isBeingDestroyed=!1,t.supported?this._init():this._fallback()}return h(t,[{key:"setRotation",value:function(t,e){if("number"==typeof t||t%90==0){this._data.actions.rotation=t;var n=this._data.actions.rotation%180!=0;if(this._data.input.image){var i=n?this._data.input.image.height:this._data.input.image.width,o=n?this._data.input.image.width:this._data.input.image.height;this._data.actions.crop=J(i,o,this._ratio),this._data.actions.crop.type=wt}this._data.input.image&&e&&this._manualTransform(e)}}},{key:"setSize",value:function(t,e){"string"==typeof t&&(t=Nt(t)),t&&t.width&&t.height&&(this._options.size=rt(t),this._data.actions.size=rt(t),this._data.input.image&&e&&this._manualTransform(e))}},{key:"setForceSize",value:function(t,e){"string"==typeof t&&(t=Nt(t)),t&&t.width&&t.height&&(this._options.size=rt(t),this._options.forceSize=rt(t),this._data.actions.size=rt(t),this.setRatio(this._options.forceSize.width+":"+this._options.forceSize.height,e))}},{key:"setRatio",value:function(t,e){var n=this;if(t&&"string"==typeof t&&(this._options.ratio=t,this._isFixedRatio())){var i=_t(this._options.ratio,":");this._ratio=i[1]/i[0],this._data.input.image&&e?this._cropAuto((function(t){n._scaleDropArea(n._ratio),e&&e(t)})):(this._data.input.image&&(this._data.actions.crop=J(this._data.input.image.width,this._data.input.image.height,this._ratio),this._data.actions.crop.type=wt),this._scaleDropArea(this._ratio),e&&e(null))}}},{key:"isAttachedTo",value:function(t){return this._element===t||this._originalElement===t}},{key:"isDetached",value:function(){return null===this._element.parentNode}},{key:"load",value:function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:{},i=arguments[2];"function"==typeof e?i=e:(this._options.crop=e.crop,this._options.rotation=e.rotation,this._initialRotation=e.rotation&&e.rotation%90==0?e.rotation:null,this._initialCrop=this._options.crop),this._load(t,i,{blockPush:e.blockPush})}},{key:"upload",value:function(t){this._doUpload(t)}},{key:"download",value:function(){this._doDownload()}},{key:"remove",value:function(){return this._doRemove()}},{key:"destroy",value:function(){this._doDestroy()}},{key:"edit",value:function(){this._doEdit()}},{key:"crop",value:function(t,e){this._crop(t.x,t.y,t.width,t.height,e)}},{key:"containsImage",value:function(){return null!==this._data.input.name}},{key:"_canInstantEdit",value:function(){return this._options.instantEdit&&!this._isInitialising}},{key:"_getFileInput",value:function(){return this._element.querySelector("input[type=file]")}},{key:"_getInitialImage",value:function(){return this._element.querySelector("img")}},{key:"_getInputElement",value:function(){return this._getFileInput()||this._getInitialImage()}},{key:"_getRatioSpacerElement",value:function(){return this._element.children[0]}},{key:"_isImageOnly",value:function(){return"INPUT"!==this._input.nodeName}},{key:"_isFixedRatio",value:function(){return-1!==this._options.ratio.indexOf(":")}},{key:"_isAutoCrop",value:function(){return this._data.actions.crop.type===wt}},{key:"_toggleButton",value:function(t,e){!function(t,e,n){var i=n.querySelector(t);i&&(i.style.display=e?"":"none")}('.slim-btn[data-action="'+t+'"]',e,this._element)}},{key:"_clearState",value:function(){this._state=[],this._updateState()}},{key:"_removeState",value:function(t){this._state=this._state.filter((function(e){return e!==t})),this._updateState()}},{key:"_addState",value:function(t){j(t,this._state)||(this._state.push(t),this._updateState())}},{key:"_updateState",value:function(){this._element&&this._element.setAttribute("data-state",this._state.join(","))}},{key:"_resetData",value:function(){this._data={server:null,meta:rt(this._options.meta),input:{field:this._inputReference,name:null,type:null,width:0,height:0,file:null},output:{image:null,width:0,height:0},actions:{rotation:null,crop:null,size:null}},this._output&&(this._output.value=""),function(t){if(t&&""!==t.value){try{t.value=""}catch(t){}if(t.value){var e=document.createElement("form"),n=t.parentNode,i=t.nextSibling;e.appendChild(t),e.reset(),i?n.insertBefore(t,i):n.appendChild(t)}}}(this._getFileInput())}},{key:"_init",value:function(){var t=this;if(this._isInitialising=!0,this._addState("empty"),j("input",this._options.post)&&(this._inputReference="slim_input_"+this._uid),this._input=this._getInputElement(),this._input||(this._input=S("input"),this._input.type="file",this._element.appendChild(this._input)),this._isRequired=!0===this._input.required,this._output=this._element.querySelector("input[type=hidden]"),this._output){var e=null;try{e=JSON.parse(this._output.value)}catch(t){}if(e){var n=new Image;n.src=e.output.image,n.setAttribute("data-filename",e.output.name),this._element.insertBefore(n,this._element.firstChild)}}else this._output=S("input"),this._output.type="hidden",this._output.name=this._input.name||this._options.defaultInputName,this._element.appendChild(this._output);this._input.removeAttribute("name");var i=S("div","slim-area"),o=this._getInitialImage(),r=(o||{}).src,a=o?o.getAttribute("data-filename"):null;r?this._hasInitialImage=!0:(this._initialCrop=null,this._initialRotation=null);var s='\n\t\t<div class="slim-result">\n\t\t\t<img class="in" style="opacity:0" '+(r?'src="'+r+'"':"")+'><img><img style="opacity:0">\n\t\t</div>';if(this._isImageOnly())i.innerHTML="\n\t\t\t\t"+It+"\n\t\t\t\t"+At+"\n\t\t\t\t"+s+'\n\t\t\t\t<div class="slim-status"><div class="slim-label-loading">'+(this._options.labelLoading||"")+"</div></div>\n\t\t\t";else{j("input",this._options.post)&&(this._data.input.field=this._inputReference,this._options.service||(this._input.name=this._inputReference));var l=void 0;this._input.hasAttribute("accept")&&"image/*"!==this._input.getAttribute("accept")?l=this._input.accept.split(",").map((function(t){return t.trim()})).filter((function(t){return t.length>0})):(l=function(){var t=[],e=void 0,n=void 0;for(e in E)E.hasOwnProperty(e)&&(n=E[e],-1==t.indexOf(n)&&t.push(n));return t}(),this._input.setAttribute("accept",l.join(","))),this._imageHopper=new mt,this._imageHopper.accept=l,this._imageHopper.allowURLs="string"==typeof this._options.fetcher,this._element.appendChild(this._imageHopper.element),Et.forEach((function(e){t._imageHopper.element.addEventListener(e,t)})),i.innerHTML="\n\t\t\t\t"+It+"\n\t\t\t\t"+At+'\n\t\t\t\t<div class="slim-drip"><span><span></span></span></div>\n\t\t\t\t<div class="slim-status"><div class="slim-label">'+(this._options.label||"")+'</div><div class="slim-label-loading">'+(this._options.labelLoading||"")+"</div></div>\n\t\t\t\t"+s+"\n\t\t\t",this._input.addEventListener("change",this)}if(this._element.appendChild(i),this._btnGroup=S("div","slim-btn-group"),this._btnGroup.style.display="none",this._element.appendChild(this._btnGroup),St.filter((function(e){return t._isButtonAllowed(e)})).forEach((function(e){var n=N(e),i=t._options["button"+n+"Label"],o=t._options["button"+n+"Title"]||i,r=t._options["button"+n+"ClassName"],a=S("button","slim-btn slim-btn-"+e+(r?" "+r:""));a.innerHTML=i,a.title=o,a.type="button",a.addEventListener("click",t),a.setAttribute("data-action",e),t._btnGroup.appendChild(a)})),this._isFixedRatio()){var u=_t(this._options.ratio,":");this._ratio=u[1]/u[0],this._scaleDropArea(this._ratio)}this._updateProgress(.5),r?this._load(r,(function(){t._onInit()}),{name:a}):this._onInit()}},{key:"_onInit",value:function(){var t=this;this._isInitialising=!1;var e=function(){var e=setTimeout((function(){t._options.didInit.apply(t,[t.data,t])}),0);t._timers.push(e)};this._options.saveInitialImage&&this.containsImage()?this._options.service||this._save((function(){e()}),!1):(this._options.service&&this.containsImage()&&this._toggleButton("upload",!1),e())}},{key:"_updateProgress",value:function(t){if(t=Math.min(.99999,t),this._element&&this._progressEnabled){var e=this._element.querySelector(".slim-loader");if(e){var n=e.offsetWidth,i=e.querySelectorAll("path"),o=parseInt(i[0].getAttribute("stroke-width"),10);i[0].setAttribute("d",dt(.5*n,.5*n,.5*n-o,.9999)),i[1].setAttribute("d",dt(.5*n,.5*n,.5*n-o,t))}}}},{key:"_startProgress",value:function(t){var e=this;if(this._element){this._progressEnabled=!1;var n=this._element.querySelector(".slim-loader");if(n){var i=n.children[0];this._stopProgressLoop((function(){n.removeAttribute("style"),i.removeAttribute("style"),e._progressEnabled=!0,e._updateProgress(0),e._progressEnabled=!1,c(i,{fromOpacity:0,opacity:1,duration:250,complete:function(){e._progressEnabled=!0,t&&t()}})}))}}}},{key:"_stopProgress",value:function(){var t=this;if(this._element){var e=this._element.querySelector(".slim-loader");if(e){var n=e.children[0];this._updateProgress(1),c(n,{fromOpacity:1,opacity:0,duration:250,complete:function(){e.removeAttribute("style"),n.removeAttribute("style"),t._updateProgress(.5),t._progressEnabled=!1}})}}}},{key:"_startProgressLoop",value:function(){if(this._element){var t=this._element.querySelector(".slim-loader");if(t){var e=t.children[0];t.removeAttribute("style"),e.removeAttribute("style"),this._updateProgress(.5);c(t,"stop"),c(t,{rotation:[0,0,-2*Math.PI*1e3],easing:"linear",duration:1e6}),c(e,{fromOpacity:0,opacity:1,duration:250})}}}},{key:"_stopProgressLoop",value:function(t){if(this._element){var e=this._element.querySelector(".slim-loader");if(e){var n=e.children[0];c(n,{fromOpacity:parseFloat(n.style.opacity),opacity:0,duration:250,complete:function(){c(e,"stop"),e.removeAttribute("style"),n.removeAttribute("style"),t&&t()}})}}}},{key:"_isButtonAllowed",value:function(t){return"edit"===t?this._options.edit:"download"===t?this._options.download:"upload"===t?!!this._options.service&&!this._options.push:"remove"!==t||!this._isImageOnly()}},{key:"_fallback",value:function(){var t=S("div","slim-area");t.innerHTML='\n\t\t\t<div class="slim-status"><div class="slim-label">'+(this._options.label||"")+"</div></div>\n\t\t",this._element.appendChild(t),this._throwError(this._options.statusNoSupport)}},{key:"handleEvent",value:function(t){switch(t.type){case"click":this._onClick(t);break;case"change":this._onChange(t);break;case"cancel":this._onCancel(t);break;case"confirm":this._onConfirm(t);break;case"file-over":this._onFileOver(t);break;case"file-out":this._onFileOut(t);break;case"file-drop":this._onDropFile(t);break;case"file-invalid":this._onInvalidFile(t);break;case"file-invalid-drop":this._onInvalidFileDrop(t)}}},{key:"_getIntro",value:function(){return this._element.querySelector(".slim-result .in")}},{key:"_getOutro",value:function(){return this._element.querySelector(".slim-result .out")}},{key:"_getInOut",value:function(){return this._element.querySelectorAll(".slim-result img")}},{key:"_getDrip",value:function(){return this._drip||(this._drip=this._element.querySelector(".slim-drip > span")),this._drip}},{key:"_throwError",value:function(t){this._addState("error"),this._element.querySelector(".slim-label").style.display="none";var e=this._element.querySelector(".slim-error");e||(e=S("div","slim-error"),this._element.querySelector(".slim-status").appendChild(e)),e.innerHTML=t,this._options.didThrowError.apply(this,[t])}},{key:"_removeError",value:function(){this._removeState("error"),this._element.querySelector(".slim-label").style.display="";var t=this._element.querySelector(".slim-error");t&&t.parentNode.removeChild(t)}},{key:"_openFileDialog",value:function(){this._removeError(),this._input.click()}},{key:"_onClick",value:function(t){var e=this,n=t.target.classList,i=t.target;if(n.contains("slim-file-hopper"))return t.preventDefault(),void this._openFileDialog();switch(i.getAttribute("data-action")){case"remove":this._options.willRemove.apply(this,[this.data,function(){e._doRemove()}]);break;case"edit":this._doEdit();break;case"download":this._doDownload();break;case"upload":this._doUpload()}}},{key:"_onInvalidFileDrop",value:function(){this._onInvalidFile(),this._removeState("file-over");var t=this._getDrip();c(t.firstChild,{fromScale:[.5,.5],scale:[0,0],fromOpacity:.5,opacity:0,duration:150,complete:function(){P(t.firstChild)}})}},{key:"_onInvalidFile",value:function(){var t=this._imageHopper.accept.map(H),e=this._options.statusFileType.replace("$0",t.join(", "));this._throwError(e)}},{key:"_onImageTooSmall",value:function(){var t=this._options.statusImageTooSmall.replace("$0",this._options.minSize.width+" × "+this._options.minSize.height);this._throwError(t)}},{key:"_onOverWeightFile",value:function(){var t=this._options.statusFileSize.replace("$0",this._options.maxFileSize);this._throwError(t)}},{key:"_onLocalURLProblem",value:function(t){this._throwError(this._options.statusLocalUrlProblem||t)}},{key:"_onRemoteURLProblem",value:function(t){this._throwError(t)}},{key:"_onFileOver",value:function(t){this._addState("file-over"),this._removeError();var e=this._getDrip(),n=c.createMatrix();n.translate(t.detail.x,t.detail.y,0),c.setElementTransform(e,n),1==this._imageHopper.dragPath.length&&(e.style.opacity=1,c(e.firstChild,{fromOpacity:0,opacity:.5,fromScale:[0,0],scale:[.5,.5],duration:150}))}},{key:"_onFileOut",value:function(t){this._removeState("file-over"),this._removeState("file-invalid"),this._removeError();var e=this._getDrip(),n=c.createMatrix();n.translate(t.detail.x,t.detail.y,0),c.setElementTransform(e,n),c(e.firstChild,{fromScale:[.5,.5],scale:[0,0],fromOpacity:.5,opacity:0,duration:150,complete:function(){P(e.firstChild)}})}},{key:"_onDropFile",value:function(t){var e=this;this._removeState("file-over");var n=this._getDrip(),i=c.createMatrix();i.translate(t.detail.x,t.detail.y,0),c.setElementTransform(n,i);var o=this._imageHopper.dragPath.length,r=this._imageHopper.dragPath[o-Math.min(10,o)],a=t.detail.x-r.x,s=t.detail.y-r.y;c(n,{fromPosition:[t.detail.x,t.detail.y,0],position:[t.detail.x+a,t.detail.y+s,0],duration:200}),c(n.firstChild,{fromScale:[.5,.5],scale:[2,2],fromOpacity:1,opacity:0,duration:200,complete:function(){P(n.firstChild),e._load(t.target.files[0])}})}},{key:"_onChange",value:function(t){t.target.files.length&&this._load(t.target.files[0])}},{key:"_load",value:function(t,e){var i=this,o=arguments.length>2&&arguments[2]!==n?arguments[2]:{};if(!this._isBeingDestroyed){if(this.containsImage())return clearTimeout(this._replaceTimeout),void this._doRemove((function(){i._replaceTimeout=setTimeout((function(){i._load(t,e,o)}),100)}));this._removeState("empty"),this._addState("busy"),this._startProgressLoop(),this._imageHopper&&(this._imageHopper.enabled=!1),clearTimeout(this._loadTimeout);var r=function(){clearTimeout(i._loadTimeout),i._loadTimeout=setTimeout((function(){i._isBeingDestroyed||(i._addState("loading"),c(i._element.querySelector(".slim-label-loading"),{fromOpacity:0,opacity:1,duration:250}))}),500)},a=function(){i._imageHopper&&(i._imageHopper.enabled=!0),i._removeState("loading"),i._removeState("busy"),i._addState("empty"),i._stopProgressLoop()};if("string"==typeof t)return void(V(t)?this._load(G(t),e,o):(r(),X(t,this._options.willLoad,(function(t){i._load(t,e,o)}),(function(t){setTimeout((function(){a(),i._onLocalURLProblem("<p>"+t+"</p>"),e&&e.apply(i,["local-url-problem"])}),500)}))));if(void 0!==t.remote)return V(t.remote)?void this._load(G(t.remote),e,o):void(this._options.fetcher&&$(this._options.fetcher,this._options.willFetch,this._options.willLoad,t.remote,(function(t){a(),i._onRemoteURLProblem("<p>"+t+"</p>"),e&&e.apply(i,["remote-url-problem"])}),(function(t){i._load(t,e,o)})));var s=t;if(this._imageHopper&&-1===this._imageHopper.accept.indexOf(s.type))return a(),this._onInvalidFile(),void(e&&e.apply(this,["file-invalid"]));if(s.size&&this._options.maxFileSize&&M(s.size)>this._options.maxFileSize)return a(),this._onOverWeightFile(),void(e&&e.apply(this,["file-too-big"]));this._imageEditor&&this._imageEditor.dirty(),this._data.input.name=o&&o.name?o.name:B(s),this._data.input.type=U(s),this._data.input.size=s.size,this._data.input.file=s,K(s,this._options.internalCanvasSize,(function(t,n){var r=function(){i._imageHopper&&(i._imageHopper.enabled=!0),i._removeState("loading"),i._removeState("busy"),i._addState("empty"),i._stopProgressLoop(),i._resetData()};if(!t)return r(),void(e&&e.apply(i,["file-not-found"]));if(!ot(t,i._options.minSize))return r(),i._onImageTooSmall(),void(e&&e.apply(i,["image-too-small"]));var a=i._options.didLoad.apply(i,[s,t,n,i]);if(!0!==a)return r(),!1!==a&&i._throwError(a),void(e&&e.apply(i,[a]));i._removeState("loading");i._loadCanvas(t,(function(t){i._addState("preview"),function(t){i._imageHopper&&i._options.dropReplace&&(i._imageHopper.enabled=!0);var e=i._getIntro(),n={fromScale:[1.25,1.25],scale:[1,1],fromOpacity:0,opacity:1,complete:function(){P(e),e.style.opacity=1,t()}};i.isDetached()?n.duration=1:(n.easing="spring",n.springConstant=.3,n.springDeceleration=.7),i._canInstantEdit()&&(n.delay=500,n.duration=1,i._doEdit()),c(e,n)}((function(){i._canInstantEdit()||t||i._showButtons(),t||(i._stopProgressLoop(),i._removeState("busy")),e&&e.apply(i,[null,i.data])}))}),(function(){i._canInstantEdit()||i._showButtons(),i._removeState("busy")}),{blockPush:o.blockPush})}))}}},{key:"_loadCanvas",value:function(t,e,n,i){var o=this;if(i||(i={}),!this._isBeingDestroyed){this._data.input.image=t,this._data.input.width=t.width,this._data.input.height=t.height,this._initialRotation&&(this._data.actions.rotation=this._initialRotation,this._initialRotation=null);var r=this._data.actions.rotation%180!=0;this._isFixedRatio()||(this._initialCrop?this._ratio=this._initialCrop.height/this._initialCrop.width:this._ratio=r?t.width/t.height:t.height/t.width,this._scaleDropArea(this._ratio));var a=function(){o._options.size&&(o._data.actions.size={width:o._options.size.width,height:o._options.size.height}),o._applyTransforms(t,(function(t){var r=o._getIntro(),a=r.offsetWidth/t.width,s=!1;o._options.service&&o._options.push&&!i.blockPush&&(o._hasInitialImage||o._canInstantEdit()||(s=!0,o._stopProgressLoop((function(){o._startProgress((function(){o._updateProgress(.1)}))})))),o._canInstantEdit()||o._save((function(){o._isBeingDestroyed||s&&(o._stopProgress(),n())}),s);var l="auto"===o._options.devicePixelRatio?window.devicePixelRatio:o._options.devicePixelRatio;r.src="",r.src=it(t,a*l).toDataURL(),r.onload=function(){r.onload=null,o._isBeingDestroyed||e&&e(s)}}))};this._initialCrop?(this._data.actions.crop=rt(this._initialCrop),this._data.actions.crop.type=bt,this._initialCrop=null,a()):this._options.willCropInitial.apply(this,[this.data,function(e){e?(o._data.actions.crop=e,o._data.actions.crop.type=bt):(o._data.actions.crop=J(r?t.height:t.width,r?t.width:t.height,o._ratio),o._data.actions.crop.type=wt),a()},this])}}},{key:"_applyTransforms",value:function(t,e){var n=this,i=rt(this._data.actions);i.filters={sharpen:this._options.filterSharpen/100},this._options.forceMinSize?i.minSize=this._options.minSize:i.minSize={width:0,height:0},Z(t,i,(function(t){var i=t;(n._options.forceSize||n._options.size&&1==function(t,e){var n=Math.abs(t.width-e.width),i=Math.abs(t.height-e.height);return Math.max(n,i)}(n._options.size,t))&&((i=S("canvas")).width=n._options.size.width,i.height=n._options.size.height,i.getContext("2d").drawImage(t,0,0,n._options.size.width,n._options.size.height));if(n._options.forceMinSize&&n._options.size&&n._options.minSize.width===n._options.size.width&&n._options.minSize.height===n._options.size.height&&(i.width<n._options.minSize.width||i.height<n._options.minSize.height)){var o=Math.max(i.width,n._options.minSize.width),r=Math.max(i.height,n._options.minSize.height);(i=S("canvas")).width=o,i.height=r,i.getContext("2d").drawImage(t,0,0,o,r)}n._options.forceMinSize&&1===n._ratio&&(i.width<n._options.minSize.width||i.height<n._options.minSize.height)&&((i=S("canvas")).width=n._options.minSize.width,i.height=n._options.minSize.height,i.getContext("2d").drawImage(t,0,0,i.width,i.height));n._data.output.width=i.width,n._data.output.height=i.height,n._data.output.image=i,n._onTransformCanvas((function(t){n._data=t,n._options.didTransform.apply(n,[n.data,n]),e(n._data.output.image)}))}))}},{key:"_onTransformCanvas",value:function(t){this._options.willTransform.apply(this,[this.data,t,this])}},{key:"_appendEditor",value:function(){var t=this;this._imageEditor||(this._imageEditor=new gt(S("div"),{minSize:this._options.minSize,devicePixelRatio:this._options.devicePixelRatio,buttonConfirmClassName:this._options.buttonConfirmClassName,buttonCancelClassName:this._options.buttonCancelClassName,buttonRotateClassName:this._options.buttonRotateClassName,buttonConfirmLabel:this._options.buttonConfirmLabel,buttonCancelLabel:this._options.buttonCancelLabel,buttonRotateLabel:this._options.buttonRotateLabel,buttonConfirmTitle:this._options.buttonConfirmTitle,buttonCancelTitle:this._options.buttonCancelTitle,buttonRotateTitle:this._options.buttonRotateTitle}),Tt.forEach((function(e){t._imageEditor.element.addEventListener(e,t)})))}},{key:"_scaleDropArea",value:function(t){var e=this._getRatioSpacerElement();e&&this._element&&(e.style.marginBottom=100*t+"%",this._element.setAttribute("data-ratio","1:"+t))}},{key:"_onCancel",value:function(t){this._removeState("editor"),this._options.didCancel.apply(this,[this]),this._showButtons(),this._hideEditor(),this._options.instantEdit&&!this._hasInitialImage&&this._isAutoCrop()&&this._doRemove()}},{key:"_onConfirm",value:function(t){var e=this,n=this._options.service&&this._options.push;n?this._startProgress((function(){e._updateProgress(.1)})):this._startProgressLoop(),this._removeState("editor"),this._addState("busy"),this._output.value="",this._data.actions.rotation=t.detail.rotation,this._data.actions.crop=t.detail.crop,this._data.actions.crop.type=xt,this._applyTransforms(this._data.input.image,(function(t){e._options.didConfirm.apply(e,[e.data,e]);var i=e._getInOut(),o="out"===i[0].className?i[0]:i[1],r=o===i[0]?i[1]:i[0];o.className="in",o.style.opacity="0",o.style.zIndex="2",r.className="out",r.style.zIndex="1";var a="auto"===e._options.devicePixelRatio?window.devicePixelRatio:e._options.devicePixelRatio;o.src="",o.src=it(t,o.offsetWidth/t.width*a).toDataURL(),o.onload=function(){o.onload=null,"free"===e._options.ratio&&(e._ratio=o.naturalHeight/o.naturalWidth,e._scaleDropArea(e._ratio)),e._hideEditor();var t=setTimeout((function(){e._showPreview(o,(function(){e._save((function(t,i,o){e._toggleButton("upload",!0),n?e._stopProgress():e._stopProgressLoop(),e._removeState("busy"),e._showButtons()}),n)}))}),250);e._timers.push(t)}}))}},{key:"_cropAuto",value:function(){var t=arguments.length>0&&arguments[0]!==n?arguments[0]:function(t){},e=this._data.actions.rotation%180!=0,i=J(e?this._data.input.image.height:this._data.input.image.width,e?this._data.input.image.width:this._data.input.image.height,this._ratio);this._crop(i.x,i.y,i.width,i.height,t,wt)}},{key:"_crop",value:function(t,e,i,o){var r=arguments.length>4&&arguments[4]!==n?arguments[4]:function(t){},a=arguments.length>5&&arguments[5]!==n?arguments[5]:xt;this._output.value="",this._data.actions.crop={x:t,y:e,width:i,height:o},this._data.actions.crop.type=a,this._manualTransform(r)}},{key:"_manualTransform",value:function(t){var e=this;this._startProgressLoop(),this._addState("busy"),this._applyTransforms(this._data.input.image,(function(n){var i=e._getInOut(),o="out"===i[0].className?i[0]:i[1],r=o===i[0]?i[1]:i[0];o.className="in",o.style.opacity="1",o.style.zIndex="2",r.className="out",r.style.zIndex="0";var a="auto"===e._options.devicePixelRatio?window.devicePixelRatio:e._options.devicePixelRatio;o.src="",o.src=it(n,o.offsetWidth/n.width*a).toDataURL(),o.onload=function(){o.onload=null,"free"===e._options.ratio&&(e._ratio=o.naturalHeight/o.naturalWidth,e._scaleDropArea(e._ratio));var n=e._options.service&&e._options.push,i=function(){e._save((function(i,o,r){n||e._stopProgressLoop(),e._removeState("busy"),t.apply(e,[e.data])}),n)};n?e._startProgress(i):i()}}))}},{key:"_save",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==n?arguments[0]:function(){},i=!(arguments.length>1&&arguments[1]!==n)||arguments[1];if(!this._isBeingDestroyed){var o=this.dataBase64;this._options.service||this._isInitialising&&!this._isImageOnly()||this._options.willSave.apply(this,[o,function(e){t._store(e),t._options.didSave.apply(t,[e,t])},this]),this._isBeingDestroyed||(this._options.service&&i&&this._options.willSave.apply(this,[o,function(n){t._addState("upload"),t._imageHopper&&t._options.dropReplace&&(t._imageHopper.enabled=!1),t._upload(n,(function(i,o){t._imageHopper&&t._options.dropReplace&&(t._imageHopper.enabled=!0),i||t._storeServerResponse(o),t._options.didUpload.apply(t,[i,n,o,t]),t._removeState("upload"),e(i,n,o)}))},this]),this._options.service&&i||e())}}},{key:"_storeServerResponse",value:function(t){this._isRequired&&(this._input.required=!1),this._data.server=t,this._output.value="object"===(void 0===t?"undefined":d(t))?JSON.stringify(this._data.server):t}},{key:"_store",value:function(t){this._isRequired&&(this._input.required=!1),this._output.value=JSON.stringify(t)}},{key:"_upload",value:function(t,e){var n=this;this.requestOutput((function(t,i){var o=n._element.querySelector(".slim-upload-status"),r=n._options.willRequest,a=function(t,e){n._updateProgress(Math.max(.1,t/e))},s=function(t){var i=setTimeout((function(){if(!n._isBeingDestroyed){o.innerHTML=n._options.statusUploadSuccess,o.setAttribute("data-state","success"),o.style.opacity=1;var t=setTimeout((function(){o.style.opacity=0}),2e3);n._timers.push(t)}}),250);n._timers.push(i),e(null,t)},l=function(t){var i;i="file-too-big"===t?n._options.statusContentLength:n._options.didReceiveServerError.apply(n,[t,n._options.statusUnknownResponse,n]);var r=setTimeout((function(){o.innerHTML=i,o.setAttribute("data-state","error"),o.style.opacity=1}),250);n._timers.push(r),e(t)};"string"==typeof n._options.service?R(n._options.service,n._options.uploadMethod,i,r,a,s,l):"function"==typeof n._options.service&&n._options.service.apply(n,["file"===n._options.serviceFormat?t:i,a,s,l,n])}),t)}},{key:"requestOutput",value:function(t,e){var n=this;return this._data.input.file?(e||(e=this.dataBase64),void o.parseMetaData(this._data.input.file,(function(i){var r=[],a=new FormData;if(j("input",n._options.post)&&(r.push(n._data.input.file),a.append(n._inputReference,n._data.input.file,n._data.input.file.name)),j("output",n._options.post)&&null!==n._data.output.image&&!1===n._options.uploadBase64){var s=G(e.output.image,e.output.name);if(i.imageHead&&n._options.copyImageHead)try{s=new Blob([i.imageHead,o.blobSlice.call(s,20)],{type:lt(e.output.image)}),s=Q(s,e.output.name)}catch(t){}r.push(s);var l="slim_output_"+n._uid;e.output.image=null,e.output.field=l,a.append(l,s,e.output.name)}a.append(n._output.name,JSON.stringify(e)),t(r,a)}),{maxMetaDataSize:262144,disableImageHead:!1})):void t(null,null)}},{key:"_showEditor",value:function(){kt.className=this._options.popoverClassName,kt.show(),this._imageEditor.show()}},{key:"_hideEditor",value:function(){this._imageEditor.hide();var t=setTimeout((function(){kt.hide()}),250);this._timers.push(t)}},{key:"_showPreview",value:function(t,e){c(t,{fromPosition:[0,50,0],position:[0,0,0],fromScale:[1.5,1.5],scale:[1,1],fromOpacity:0,opacity:1,easing:"spring",springConstant:.3,springDeceleration:.7,complete:function(){P(t),e&&e()}})}},{key:"_hideResult",value:function(t){var e=this._getIntro();e&&c(e,{fromScale:[1,1],scale:[.5,.5],fromOpacity:1,opacity:0,easing:"spring",springConstant:.3,springDeceleration:.75,complete:function(){P(e),t&&t()}})}},{key:"_showButtons",value:function(t){if(this._btnGroup){this._btnGroup.style.display="";var e={fromScale:[.5,.5],scale:[1,1],fromPosition:[0,10,0],position:[0,0,0],fromOpacity:0,opacity:1,complete:function(){P(this)},allDone:function(){t&&t()}};this.isDetached()?e.duration=1:(e.delay=function(t){return 250+50*t},e.easing="spring",e.springConstant=.3,e.springDeceleration=.85),c(this._btnGroup.childNodes,e)}}},{key:"_hideButtons",value:function(t){var e=this;if(this._btnGroup){var n={fromScale:[1,1],scale:[.85,.85],fromOpacity:1,opacity:0,allDone:function(){e._btnGroup.style.display="none",t&&t()}};this.isDetached()?n.duration=1:(n.easing="spring",n.springConstant=.3,n.springDeceleration=.75),c(this._btnGroup.childNodes,n)}}},{key:"_hideStatus",value:function(){this._element.querySelector(".slim-upload-status").style.opacity=0}},{key:"_doEdit",value:function(){var t=this;this._data.input.image&&(this._addState("editor"),this._imageEditor||this._appendEditor(),this._imageEditor.showRotateButton=this._options.rotateButton,kt.inner=this._imageEditor.element,this._imageEditor.open(nt(this._data.input.image),"free"===this._options.ratio?null:this._ratio,this._data.actions.crop,this._data.actions.rotation,(function(){t._showEditor(),t._hideButtons(),t._hideStatus()})))}},{key:"_doRemove",value:function(t){var e=this;if(!this._isImageOnly()){this._clearState(),this._addState("empty"),this._hasInitialImage=!1,this._imageHopper&&(this._imageHopper.enabled=!0),this._isRequired&&(this._input.required=!0);var n=this._getOutro();n&&(n.style.opacity="0");var i=this.data;this._resetData();var o=setTimeout((function(){e._isBeingDestroyed||(e._hideButtons((function(){e._toggleButton("upload",!0)})),e._hideStatus(),e._hideResult(),e._options.didRemove.apply(e,[i,e]),t&&t())}),this.isDetached()?0:250);return this._timers.push(o),i}}},{key:"_doUpload",value:function(t){var e=this;this._data.input.image&&(this._addState("upload"),this._startProgress(),this._hideButtons((function(){e._toggleButton("upload",!1),e._save((function(n,i,o){e._removeState("upload"),e._stopProgress(),t&&t.apply(e,[n,i,o]),n&&e._toggleButton("upload",!0),e._showButtons()}))})))}},{key:"_doDownload",value:function(){this._data.output.image&&function(t,e,i){var o=t.output.image,r=i?W(t.input.name)+"."+i:t.input.name,a=E[i]||t.input.type;"image/png"===a&&(r=W(t.input.name)+".png"),o.toBlob((function(t){if("msSaveBlob"in window.navigator)window.navigator.msSaveBlob(t,r);else{var e=(window.URL||window.webkitURL).createObjectURL(t),n=S("a");n.style.display="none",n.download=r,n.href=e,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),(window.URL||window.webkitURL).revokeObjectURL(e)}),0)}}),a,"number"==typeof e?e/100:n)}(this._data,this._options.jpegCompression,this._options.forceType)}},{key:"_doDestroy",value:function(){function t(t,e){return 0!==e.filter((function(e){return t.name===e.name&&t.value===e.value})).length}var e=this;this._isBeingDestroyed=!0,this._timers.forEach((function(t){clearTimeout(t)})),this._timers=[],c(this._element,"detach"),this._imageHopper&&(Et.forEach((function(t){e._imageHopper.element.removeEventListener(t,e)})),this._imageHopper.destroy(),this._imageHopper=null),this._imageEditor&&(Tt.forEach((function(t){e._imageEditor.element.removeEventListener(t,e)})),this._imageEditor.destroy(),this._imageEditor=null),ut(this._btnGroup.children).forEach((function(t){t.removeEventListener("click",e)})),this._input.removeEventListener("change",this),this._element!==this._originalElement&&this._element.parentNode&&this._element.parentNode.replaceChild(this._originalElement,this._element),this._originalElement.innerHTML=this._originalElementInner;var n=m(this._originalElement);n.forEach((function(n){t(n,e._originalElementAttributes)||e._originalElement.removeAttribute(n.name)})),this._originalElementAttributes.forEach((function(i){t(i,n)||e._originalElement.setAttribute(i.name,i.value)})),Dt=Math.max(0,Dt-1),kt&&0===Dt&&(kt.destroy(),kt=null),this._originalElement=null,this._element=null,this._input=null,this._output=null,this._btnGroup=null,this._options=null}},{key:"dataBase64",get:function(){return function(t){var e=arguments.length>1&&arguments[1]!==n?arguments[1]:[],i=arguments[2],o=arguments[3],r=arguments[4],a={server:rt(t.server),meta:rt(t.meta),input:{name:t.input.name,type:t.input.type,size:t.input.size,width:t.input.width,height:t.input.height,field:t.input.field}};return j("input",e)&&!r&&(a.input.image=st(t.input.image,t.input.type)),j("output",e)&&(a.output={name:o?W(t.input.name)+"."+o:t.input.name,type:E[o]||t.input.type,width:t.output.width,height:t.output.height},a.output.image=st(t.output.image,a.output.type,i),a.output.type=lt(a.output.image),"image/png"===a.output.type&&(a.output.name=W(a.input.name)+".png")),j("actions",e)&&(a.actions=rt(t.actions)),a}(this._data,this._options.post,this._options.jpegCompression,this._options.forceType,null!==this._options.service)}},{key:"data",get:function(){return function(t){var e=rt(t);return e.input.file=at(t.input.file),e.output.image=nt(t.output.image),e}(this._data)}},{key:"element",get:function(){return this._element}},{key:"service",set:function(t){this._options.service=t}},{key:"size",set:function(t){this.setSize(t,null)}},{key:"rotation",set:function(t){this.setRotation(t,null)}},{key:"forceSize",set:function(t){this.setForceSize(t,null)}},{key:"ratio",set:function(t){this.setRatio(t,null)}}],[{key:"options",value:function(){var t={edit:!0,instantEdit:!1,uploadBase64:!1,meta:{},ratio:"free",devicePixelRatio:1,size:null,rotation:null,crop:null,post:["output","actions"],service:null,serviceFormat:null,filterSharpen:0,push:!1,defaultInputName:"slim[]",minSize:{width:0,height:0},maxFileSize:null,jpegCompression:null,uploadMethod:"POST",download:!1,saveInitialImage:!1,forceType:!1,forceSize:null,forceMinSize:!0,dropReplace:!0,fetcher:null,internalCanvasSize:{width:4096,height:4096},copyImageHead:!1,rotateButton:!0,popoverClassName:null,label:"<p>Drop your image here</p>",labelLoading:"<p>Loading image...</p>",statusFileType:"<p>Invalid file type, expects: $0.</p>",statusFileSize:"<p>File is too big, maximum file size: $0 MB.</p>",statusNoSupport:"<p>Your browser does not support image cropping.</p>",statusImageTooSmall:"<p>Image is too small, minimum size is: $0 pixels.</p>",statusContentLength:'<span class="slim-upload-status-icon"></span> The file is probably too big',statusUnknownResponse:'<span class="slim-upload-status-icon"></span> An unknown error occurred',statusUploadSuccess:'<span class="slim-upload-status-icon"></span> Saved',statusLocalUrlProblem:null,didInit:function(t){},didLoad:function(t,e,n){return!0},didSave:function(t){},didUpload:function(t,e,n){},didReceiveServerError:function(t,e){return e},didRemove:function(t){},didTransform:function(t){},didConfirm:function(t){},didCancel:function(){},didThrowError:function(){},willCropInitial:function(t,e){e(null)},willTransform:function(t,e){e(t)},willSave:function(t,e){e(t)},willRemove:function(t,e){e()},willRequest:function(t,e){},willFetch:function(t){},willLoad:function(t){}};return St.concat(gt.Buttons).concat("rotate").forEach((function(e){var n=N(e);t["button"+n+"ClassName"]=null,t["button"+n+"Label"]=n,t["button"+n+"Title"]=n})),t}}]),t}();return function(){function t(t){var e=window,n=t.split(".");return n.forEach((function(t,i){e[n[i]]&&(e=e[n[i]])})),e!==window?e:null}var e=[],n=function(t){return t},i=function(t){return"true"===t},o=function(t){return!t||"true"===t},r=function(t){return function(t){return t?"<p>"+t+"</p>":null}(t)},a=function(e){return e?t(e):null},s=function(t){if(!t)return null;var e=_t(t,",");return{width:e[0],height:e[1]}},l=function(t){return t?parseInt(t,10):null},u={download:i,edit:o,instantEdit:i,minSize:s,size:s,forceSize:s,forceMinSize:o,internalCanvasSize:s,service:function(e){if(void 0===e)return null;var n=t(e);return n||e},serviceFormat:function(t){return void 0===t?null:t},fetcher:function(t){return void 0===t?null:t},push:i,rotation:function(t){return void 0===t?null:parseInt(t,10)},crop:function(t){if(!t)return null;var e={};return t.split(",").map((function(t){return parseInt(t,10)})).forEach((function(t,n){e[Ct[n]]=t})),e},post:function(t){return t?t.split(",").map((function(t){return t.trim()})):null},defaultInputName:n,ratio:function(t){return t||null},maxFileSize:function(t){return t?parseFloat(t):null},filterSharpen:l,jpegCompression:l,uploadBase64:i,forceType:n,dropReplace:o,saveInitialImage:i,copyImageHead:i,rotateButton:o,label:r,labelLoading:r,popoverClassName:n,devicePixelRatio:n,uploadMethod:n};["FileSize","FileType","NoSupport","ImageTooSmall"].forEach((function(t){u["status"+t]=r})),["ContentLength","UnknownResponse","UploadSuccess","localUrlProblem"].forEach((function(t){u["status"+t]=n})),["Init","Load","Save","Upload","Remove","Transform","ReceiveServerError","Confirm","Cancel","ThrowError"].forEach((function(t){u["did"+t]=a})),["CropInitial","Transform","Save","Remove","Request","Load","Fetch"].forEach((function(t){u["will"+t]=a}));var c=["ClassName","Label","Title"];St.concat(gt.Buttons).concat("rotate").forEach((function(t){var e=N(t);c.forEach((function(t){u["button"+e+t]=n}))})),Lt.supported=!("[object OperaMini]"===Object.prototype.toString.call(window.operamini)||void 0===window.addEventListener||void 0===window.FileReader||!("slice"in Blob.prototype)||void 0===window.URL||void 0===window.URL.createObjectURL),Lt.parse=function(t){var e,n,i,o=[];for(i=(e=t.querySelectorAll(".slim:not([data-state])")).length;i--;)n=e[i],o.push(Lt.create(n,Lt.getOptionsFromAttributes(n)));return o},Lt.getOptionsFromAttributes=function(t){var e=p(t),n={meta:{}};for(var i in e){var o=u[i],r=e[i];o?(r=null===(r=o(r))?rt(Lt.options()[i]):r,n[i]=r):0===i.indexOf("meta")&&(n.meta[A(i.substr(4))]=r)}return n},Lt.find=function(t){var n=e.filter((function(e){return e.isAttachedTo(t)}));return n?n[0]:null},Lt.create=function(t,n){if(!Lt.find(t)){n||(n=Lt.getOptionsFromAttributes(t));var i=new Lt(t,n);return e.push(i),i}},Lt.destroy=function(t){var n=function(t){for(var n=0,i=e.length;n<i;n++)if(e[n].isAttachedTo(t))return n;return-1}(t);return!(n<0||(e[n].destroy(),e.splice(n,1),0))}}(),Lt}(),e.Slim.supported)"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i);else{var o=e.getElementsByClassName("slim"),r=0,a=o.length;for(r=0;r<a;r++)o[r].className=""}}(window)},734:function(t,e,n){!function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),r=i(n);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c="transitionend",f=1e6,h=1e3;function d(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function p(){return{bindType:c,delegateType:c,handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function g(t){var e=this,n=!1;return o.default(this).one(v.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||v.triggerTransitionEnd(e)}),t),this}function m(){o.default.fn.emulateTransitionEnd=g,o.default.event.special[v.TRANSITION_END]=p()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*f)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),r=parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*h):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger(c)},supportsTransitionEnd:function(){return Boolean(c)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],a=r&&v.isElement(r)?"element":d(r);if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?v.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,i=9,r=1,a=4;if(t[0]<n&&t[1]<i||t[0]===e&&t[1]===i&&t[2]<r||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};v.jQueryDetection(),m();var _="alert",y="4.6.0",w="bs.alert",b="."+w,x=".data-api",C=o.default.fn[_],E='[data-dismiss="alert"]',T="close"+b,S="closed"+b,k="click"+b+x,D="alert",I="fade",A="show",N=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,w),this._element=null},e._getRootElement=function(t){var e=v.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest("."+D)[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event(T);return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass(A),o.default(t).hasClass(I)){var n=v.getTransitionDurationFromElement(t);o.default(t).one(v.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger(S).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(w);i||(i=new t(this),n.data(w,i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return y}}]),t}();o.default(document).on(k,E,N._handleDismiss(new N)),o.default.fn[_]=N._jQueryInterface,o.default.fn[_].Constructor=N,o.default.fn[_].noConflict=function(){return o.default.fn[_]=C,N._jQueryInterface};var L="button",O="4.6.0",j="bs.button",R="."+j,P=".data-api",M=o.default.fn[L],H="active",q="btn",F="focus",z='[data-toggle^="button"]',B='[data-toggle="buttons"]',U='[data-toggle="button"]',W='[data-toggle="buttons"] .btn',Q='input:not([type="hidden"])',V=".active",$=".btn",X="click"+R+P,G="focus"+R+P+" blur"+R+P,Y="load"+R+P,K=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest(B)[0];if(n){var i=this._element.querySelector(Q);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(H))t=!1;else{var r=n.querySelector(V);r&&o.default(r).removeClass(H)}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(H)),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(H)),t&&o.default(this._element).toggleClass(H))},e.dispose=function(){o.default.removeData(this._element,j),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),r=i.data(j);r||(r=new t(this),i.data(j,r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]()}))},s(t,null,[{key:"VERSION",get:function(){return O}}]),t}();o.default(document).on(X,z,(function(t){var e=t.target,n=e;if(o.default(e).hasClass(q)||(e=o.default(e).closest($)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(Q);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||K._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}})).on(G,z,(function(t){var e=o.default(t.target).closest($)[0];o.default(e).toggleClass(F,/^focus(in)?$/.test(t.type))})),o.default(window).on(Y,(function(){for(var t=[].slice.call(document.querySelectorAll(W)),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(Q);o.checked||o.hasAttribute("checked")?i.classList.add(H):i.classList.remove(H)}for(var r=0,a=(t=[].slice.call(document.querySelectorAll(U))).length;r<a;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add(H):s.classList.remove(H)}})),o.default.fn[L]=K._jQueryInterface,o.default.fn[L].Constructor=K,o.default.fn[L].noConflict=function(){return o.default.fn[L]=M,K._jQueryInterface};var J="carousel",Z="4.6.0",tt="bs.carousel",et="."+tt,nt=".data-api",it=o.default.fn[J],ot=37,rt=39,at=500,st=40,lt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ut={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ct="next",ft="prev",ht="left",dt="right",pt="slide"+et,gt="slid"+et,mt="keydown"+et,vt="mouseenter"+et,_t="mouseleave"+et,yt="touchstart"+et,wt="touchmove"+et,bt="touchend"+et,xt="pointerdown"+et,Ct="pointerup"+et,Et="dragstart"+et,Tt="load"+et+nt,St="click"+et+nt,kt="carousel",Dt="active",It="slide",At="carousel-item-right",Nt="carousel-item-left",Lt="carousel-item-next",Ot="carousel-item-prev",jt="pointer-event",Rt=".active",Pt=".active.carousel-item",Mt=".carousel-item",Ht=".carousel-item img",qt=".carousel-item-next, .carousel-item-prev",Ft=".carousel-indicators",zt="[data-slide], [data-slide-to]",Bt='[data-ride="carousel"]',Ut={TOUCH:"touch",PEN:"pen"},Wt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Ft),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(ct)},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(ft)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(qt)&&(v.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Pt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one(gt,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?ct:ft;this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(et),o.default.removeData(this._element,tt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},lt,t),v.typeCheckConfig(J,t,ut),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=st)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on(mt,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&o.default(this._element).on(vt,(function(e){return t.pause(e)})).on(_t,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},i=function(e){t._pointerEvent&&Ut[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),at+t._config.interval))};o.default(this._element.querySelectorAll(Ht)).on(Et,(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on(xt,(function(t){return e(t)})),o.default(this._element).on(Ct,(function(t){return i(t)})),this._element.classList.add(jt)):(o.default(this._element).on(yt,(function(t){return e(t)})),o.default(this._element).on(wt,(function(t){return n(t)})),o.default(this._element).on(bt,(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case ot:t.preventDefault(),this.prev();break;case rt:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Mt)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===ct,i=t===ft,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+(t===ft?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(Pt)),r=o.default.Event(pt,{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Rt));o.default(e).removeClass(Dt);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass(Dt)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Pt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,r,a=this,s=this._element.querySelector(Pt),l=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(u),f=Boolean(this._interval);if(t===ct?(n=Nt,i=Lt,r=ht):(n=At,i=Ot,r=dt),u&&o.default(u).hasClass(Dt))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=o.default.Event(gt,{relatedTarget:u,direction:r,from:l,to:c});if(o.default(this._element).hasClass(It)){o.default(u).addClass(i),v.reflow(u),o.default(s).addClass(n),o.default(u).addClass(n);var d=v.getTransitionDurationFromElement(s);o.default(s).one(v.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass(Dt),o.default(s).removeClass(Dt+" "+i+" "+n),a._isSliding=!1,setTimeout((function(){return o.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(d)}else o.default(s).removeClass(Dt),o.default(u).addClass(Dt),this._isSliding=!1,o.default(this._element).trigger(h);f&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(tt),i=l({},lt,o.default(this).data());"object"==typeof e&&(i=l({},i,e));var r="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data(tt,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=v.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass(kt)){var r=l({},o.default(i).data(),o.default(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(o.default(i),r),a&&o.default(i).data(tt).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return Z}},{key:"Default",get:function(){return lt}}]),t}();o.default(document).on(St,zt,Wt._dataApiClickHandler),o.default(window).on(Tt,(function(){for(var t=[].slice.call(document.querySelectorAll(Bt)),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);Wt._jQueryInterface.call(i,i.data())}})),o.default.fn[J]=Wt._jQueryInterface,o.default.fn[J].Constructor=Wt,o.default.fn[J].noConflict=function(){return o.default.fn[J]=it,Wt._jQueryInterface};var Qt="collapse",Vt="4.6.0",$t="bs.collapse",Xt="."+$t,Gt=".data-api",Yt=o.default.fn[Qt],Kt={toggle:!0,parent:""},Jt={toggle:"boolean",parent:"(string|element)"},Zt="show"+Xt,te="shown"+Xt,ee="hide"+Xt,ne="hidden"+Xt,ie="click"+Xt+Gt,oe="show",re="collapse",ae="collapsing",se="collapsed",le="width",ue="height",ce=".show, .collapsing",fe='[data-toggle="collapse"]',he=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(fe)),i=0,o=n.length;i<o;i++){var r=n[i],a=v.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass(oe)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||o.default(this._element).hasClass(oe)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ce)).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(re)}))).length&&(e=null),e&&(n=o.default(e).not(this._selector).data($t))&&n._isTransitioning))){var r=o.default.Event(Zt);if(o.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data($t,null));var a=this._getDimension();o.default(this._element).removeClass(re).addClass(ae),this._element.style[a]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass(se).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){o.default(i._element).removeClass(ae).addClass(re+" "+oe),i._element.style[a]="",i.setTransitioning(!1),o.default(i._element).trigger(te)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),u=v.getTransitionDurationFromElement(this._element);o.default(this._element).one(v.TRANSITION_END,s).emulateTransitionEnd(u),this._element.style[a]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass(oe)){var e=o.default.Event(ee);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",v.reflow(this._element),o.default(this._element).addClass(ae).removeClass(re+" "+oe);var i=this._triggerArray.length;if(i>0)for(var r=0;r<i;r++){var a=this._triggerArray[r],s=v.getSelectorFromElement(a);null!==s&&(o.default([].slice.call(document.querySelectorAll(s))).hasClass(oe)||o.default(a).addClass(se).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),o.default(t._element).removeClass(ae).addClass(re).trigger(ne)};this._element.style[n]="";var u=v.getTransitionDurationFromElement(this._element);o.default(this._element).one(v.TRANSITION_END,l).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,$t),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},Kt,t)).toggle=Boolean(t.toggle),v.typeCheckConfig(Qt,t,Jt),t},e._getDimension=function(){return o.default(this._element).hasClass(le)?le:ue},e._getParent=function(){var e,n=this;v.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(i));return o.default(r).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass(oe);e.length&&o.default(e).toggleClass(se,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=v.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data($t),r=l({},Kt,n.data(),"object"==typeof e&&e?e:{});if(!i&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),i||(i=new t(this,r),n.data($t,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Vt}},{key:"Default",get:function(){return Kt}}]),t}();o.default(document).on(ie,fe,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=v.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data($t)?"toggle":e.data();he._jQueryInterface.call(t,n)}))})),o.default.fn[Qt]=he._jQueryInterface,o.default.fn[Qt].Constructor=he,o.default.fn[Qt].noConflict=function(){return o.default.fn[Qt]=Yt,he._jQueryInterface};var de="dropdown",pe="4.6.0",ge="bs.dropdown",me="."+ge,ve=".data-api",_e=o.default.fn[de],ye=27,we=32,be=9,xe=38,Ce=40,Ee=3,Te=new RegExp(xe+"|"+Ce+"|"+ye),Se="hide"+me,ke="hidden"+me,De="show"+me,Ie="shown"+me,Ae="click"+me,Ne="click"+me+ve,Le="keydown"+me+ve,Oe="keyup"+me+ve,je="disabled",Re="show",Pe="dropup",Me="dropright",He="dropleft",qe="dropdown-menu-right",Fe="position-static",ze='[data-toggle="dropdown"]',Be=".dropdown form",Ue=".dropdown-menu",We=".navbar-nav",Qe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ve="top-start",$e="top-end",Xe="bottom-start",Ge="bottom-end",Ye="right-start",Ke="left-start",Je={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Ze={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tn=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(je)){var e=o.default(this._menu).hasClass(Re);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass(je)||o.default(this._menu).hasClass(Re))){var n={relatedTarget:this._element},i=o.default.Event(De,n),a=t._getParentFromElement(this._element);if(o.default(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===r.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:v.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(a).addClass(Fe),this._popper=new r.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(a).closest(We).length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass(Re),o.default(a).toggleClass(Re).trigger(o.default.Event(Ie,n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(je)&&o.default(this._menu).hasClass(Re)){var e={relatedTarget:this._element},n=o.default.Event(Se,e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass(Re),o.default(i).toggleClass(Re).trigger(o.default.Event(ke,e)))}},e.dispose=function(){o.default.removeData(this._element,ge),o.default(this._element).off(me),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on(Ae,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,o.default(this._element).data(),t),v.typeCheckConfig(de,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Ue))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e=Xe;return t.hasClass(Pe)?e=o.default(this._menu).hasClass(qe)?$e:Ve:t.hasClass(Me)?e=Ye:t.hasClass(He)?e=Ke:o.default(this._menu).hasClass(qe)&&(e=Ge),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(ge);if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data(ge,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Ee&&("keyup"!==e.type||e.which===be))for(var n=[].slice.call(document.querySelectorAll(ze)),i=0,r=n.length;i<r;i++){var a=t._getParentFromElement(n[i]),s=o.default(n[i]).data(ge),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(o.default(a).hasClass(Re)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===be)&&o.default.contains(a,e.target))){var c=o.default.Event(Se,l);o.default(a).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),o.default(u).removeClass(Re),o.default(a).removeClass(Re).trigger(o.default.Event(ke,l)))}}}},t._getParentFromElement=function(t){var e,n=v.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===we||e.which!==ye&&(e.which!==Ce&&e.which!==xe||o.default(e.target).closest(Ue).length):!Te.test(e.which))&&!this.disabled&&!o.default(this).hasClass(je)){var n=t._getParentFromElement(this),i=o.default(n).hasClass(Re);if(i||e.which!==ye){if(e.preventDefault(),e.stopPropagation(),!i||e.which===ye||e.which===we)return e.which===ye&&o.default(n.querySelector(ze)).trigger("focus"),void o.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(Qe)).filter((function(t){return o.default(t).is(":visible")}));if(0!==r.length){var a=r.indexOf(e.target);e.which===xe&&a>0&&a--,e.which===Ce&&a<r.length-1&&a++,a<0&&(a=0),r[a].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return pe}},{key:"Default",get:function(){return Je}},{key:"DefaultType",get:function(){return Ze}}]),t}();o.default(document).on(Le,ze,tn._dataApiKeydownHandler).on(Le,Ue,tn._dataApiKeydownHandler).on(Ne+" "+Oe,tn._clearMenus).on(Ne,ze,(function(t){t.preventDefault(),t.stopPropagation(),tn._jQueryInterface.call(o.default(this),"toggle")})).on(Ne,Be,(function(t){t.stopPropagation()})),o.default.fn[de]=tn._jQueryInterface,o.default.fn[de].Constructor=tn,o.default.fn[de].noConflict=function(){return o.default.fn[de]=_e,tn._jQueryInterface};var en="modal",nn="4.6.0",on="bs.modal",rn="."+on,an=".data-api",sn=o.default.fn[en],ln=27,un={backdrop:!0,keyboard:!0,focus:!0,show:!0},cn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fn="hide"+rn,hn="hidePrevented"+rn,dn="hidden"+rn,pn="show"+rn,gn="shown"+rn,mn="focusin"+rn,vn="resize"+rn,_n="click.dismiss"+rn,yn="keydown.dismiss"+rn,wn="mouseup.dismiss"+rn,bn="mousedown.dismiss"+rn,xn="click"+rn+an,Cn="modal-dialog-scrollable",En="modal-scrollbar-measure",Tn="modal-backdrop",Sn="modal-open",kn="fade",Dn="show",In="modal-static",An=".modal-dialog",Nn=".modal-body",Ln='[data-toggle="modal"]',On='[data-dismiss="modal"]',jn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rn=".sticky-top",Pn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(An),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){o.default(this._element).hasClass(kn)&&(this._isTransitioning=!0);var n=o.default.Event(pn,{relatedTarget:t});o.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on(_n,On,(function(t){return e.hide(t)})),o.default(this._dialog).on(bn,(function(){o.default(e._element).one(wn,(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event(fn);if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass(kn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off(mn),o.default(this._element).removeClass(Dn),o.default(this._element).off(_n),o.default(this._dialog).off(bn),i){var r=v.getTransitionDurationFromElement(this._element);o.default(this._element).one(v.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(rn)})),o.default(document).off(mn),o.default.removeData(this._element,on),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},un,t),v.typeCheckConfig(en,t,cn),t},e._triggerBackdropTransition=function(){var t=this,e=o.default.Event(hn);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(In);var i=v.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(v.TRANSITION_END),o.default(this._element).one(v.TRANSITION_END,(function(){t._element.classList.remove(In),n||o.default(t._element).one(v.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass(kn),i=this._dialog?this._dialog.querySelector(Nn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass(Cn)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&v.reflow(this._element),o.default(this._element).addClass(Dn),this._config.focus&&this._enforceFocus();var r=o.default.Event(gn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(r)};if(n){var s=v.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(v.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;o.default(document).off(mn).on(mn,(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on(yn,(function(e){t._config.keyboard&&e.which===ln?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==ln||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off(yn)},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on(vn,(function(e){return t.handleUpdate(e)})):o.default(window).off(vn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass(Sn),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger(dn)}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass(kn)?kn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Tn,n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on(_n,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&v.reflow(this._backdrop),o.default(this._backdrop).addClass(Dn),!t)return;if(!n)return void t();var i=v.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(v.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass(Dn);var r=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass(kn)){var a=v.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(v.TRANSITION_END,r).emulateTransitionEnd(a)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(jn)),n=[].slice.call(document.querySelectorAll(Rn));o.default(e).each((function(e,n){var i=n.style.paddingRight,r=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")})),o.default(n).each((function(e,n){var i=n.style.marginRight,r=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,r=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}o.default(document.body).addClass(Sn)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(jn));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+Rn));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");void 0!==n&&o.default(e).css("margin-right",n).removeData("margin-right")}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=En,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data(on),r=l({},un,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,r),o.default(this).data(on,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else r.show&&i.show(n)}))},s(t,null,[{key:"VERSION",get:function(){return nn}},{key:"Default",get:function(){return un}}]),t}();o.default(document).on(xn,Ln,(function(t){var e,n=this,i=v.getSelectorFromElement(this);i&&(e=document.querySelector(i));var r=o.default(e).data(on)?"toggle":l({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=o.default(e).one(pn,(function(t){t.isDefaultPrevented()||a.one(dn,(function(){o.default(n).is(":visible")&&n.focus()}))}));Pn._jQueryInterface.call(o.default(e),r,this)})),o.default.fn[en]=Pn._jQueryInterface,o.default.fn[en].Constructor=Pn,o.default.fn[en].noConflict=function(){return o.default.fn[en]=sn,Pn._jQueryInterface};var Mn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Hn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},qn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Fn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function zn(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Mn.indexOf(n)||Boolean(t.nodeValue.match(qn)||t.nodeValue.match(Fn));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1}function Bn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=r[t],a=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){zn(t,l)||i.removeAttribute(t.nodeName)}))},s=0,l=r.length;s<l;s++)a(s);return i.body.innerHTML}var Un="tooltip",Wn="4.6.0",Qn="bs.tooltip",Vn="."+Qn,$n=o.default.fn[Un],Xn="bs-tooltip",Gn=new RegExp("(^|\\s)"+Xn+"\\S+","g"),Yn=["sanitize","whiteList","sanitizeFn"],Kn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Jn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Zn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Hn,popperConfig:null},ti="show",ei="out",ni={HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn,INSERTED:"inserted"+Vn,CLICK:"click"+Vn,FOCUSIN:"focusin"+Vn,FOCUSOUT:"focusout"+Vn,MOUSEENTER:"mouseenter"+Vn,MOUSELEAVE:"mouseleave"+Vn},ii="fade",oi="show",ri=".tooltip-inner",ai=".arrow",si="hover",li="focus",ui="click",ci="manual",fi=function(){function t(t,e){if(void 0===r.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass(oi))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=v.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=v.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&o.default(a).addClass(ii);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var c=this._getContainer();o.default(a).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(a).appendTo(c),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r.default(this.element,a,this._getPopperConfig(u)),o.default(a).addClass(oi),o.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),e===ei&&t._leave(null,t)};if(o.default(this.tip).hasClass(ii)){var h=v.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(v.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==ti&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass(oi),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger[ui]=!1,this._activeTrigger[li]=!1,this._activeTrigger[si]=!1,o.default(this.tip).hasClass(ii)){var a=v.getTransitionDurationFromElement(n);o.default(n).one(v.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(Xn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(ri)),this.getTitle()),o.default(t).removeClass(ii+" "+oi)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Bn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ai},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:v.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return Jn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==ci){var n=e===si?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===si?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?li:si]=!0),o.default(e.getTipElement()).hasClass(oi)||e._hoverState===ti?e._hoverState=ti:(clearTimeout(e._timeout),e._hoverState=ti,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===ti&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?li:si]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ei,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===ei&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Yn.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),v.typeCheckConfig(Un,t,this.constructor.DefaultType),t.sanitize&&(t.template=Bn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(Gn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass(ii),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(Qn),r="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,r),n.data(Qn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Wn}},{key:"Default",get:function(){return Zn}},{key:"NAME",get:function(){return Un}},{key:"DATA_KEY",get:function(){return Qn}},{key:"Event",get:function(){return ni}},{key:"EVENT_KEY",get:function(){return Vn}},{key:"DefaultType",get:function(){return Kn}}]),t}();o.default.fn[Un]=fi._jQueryInterface,o.default.fn[Un].Constructor=fi,o.default.fn[Un].noConflict=function(){return o.default.fn[Un]=$n,fi._jQueryInterface};var hi="popover",di="4.6.0",pi="bs.popover",gi="."+pi,mi=o.default.fn[hi],vi="bs-popover",_i=new RegExp("(^|\\s)"+vi+"\\S+","g"),yi=l({},fi.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),wi=l({},fi.DefaultType,{content:"(string|element|function)"}),bi="fade",xi="show",Ci=".popover-header",Ei=".popover-body",Ti={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Si=function(t){function e(){return t.apply(this,arguments)||this}u(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(vi+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},n.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(Ci),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Ei),e),t.removeClass(bi+" "+xi)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(_i);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=o.default(this).data(pi),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),o.default(this).data(pi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return di}},{key:"Default",get:function(){return yi}},{key:"NAME",get:function(){return hi}},{key:"DATA_KEY",get:function(){return pi}},{key:"Event",get:function(){return Ti}},{key:"EVENT_KEY",get:function(){return gi}},{key:"DefaultType",get:function(){return wi}}]),e}(fi);o.default.fn[hi]=Si._jQueryInterface,o.default.fn[hi].Constructor=Si,o.default.fn[hi].noConflict=function(){return o.default.fn[hi]=mi,Si._jQueryInterface};var ki="scrollspy",Di="4.6.0",Ii="bs.scrollspy",Ai="."+Ii,Ni=".data-api",Li=o.default.fn[ki],Oi={offset:10,method:"auto",target:""},ji={offset:"number",method:"string",target:"(string|element)"},Ri="activate"+Ai,Pi="scroll"+Ai,Mi="load"+Ai+Ni,Hi="dropdown-item",qi="active",Fi='[data-spy="scroll"]',zi=".nav, .list-group",Bi=".nav-link",Ui=".nav-item",Wi=".list-group-item",Qi=".dropdown",Vi=".dropdown-item",$i=".dropdown-toggle",Xi="offset",Gi="position",Yi=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Bi+","+this._config.target+" "+Wi+","+this._config.target+" "+Vi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on(Pi,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Xi:Gi,n="auto"===this._config.method?e:this._config.method,i=n===Gi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=v.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[o.default(e)[n]().top+i,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,Ii),o.default(this._scrollElement).off(Ai),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},Oi,"object"==typeof t&&t?t:{})).target&&v.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=v.getUID(ki),o.default(t.target).attr("id",e)),t.target="#"+e}return v.typeCheckConfig(ki,t,ji),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Hi)?(n.closest(Qi).find($i).addClass(qi),n.addClass(qi)):(n.addClass(qi),n.parents(zi).prev(Bi+", "+Wi).addClass(qi),n.parents(zi).prev(Ui).children(Bi).addClass(qi)),o.default(this._scrollElement).trigger(Ri,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(qi)})).forEach((function(t){return t.classList.remove(qi)}))},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(Ii);if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data(Ii,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Di}},{key:"Default",get:function(){return Oi}}]),t}();o.default(window).on(Mi,(function(){for(var t=[].slice.call(document.querySelectorAll(Fi)),e=t.length;e--;){var n=o.default(t[e]);Yi._jQueryInterface.call(n,n.data())}})),o.default.fn[ki]=Yi._jQueryInterface,o.default.fn[ki].Constructor=Yi,o.default.fn[ki].noConflict=function(){return o.default.fn[ki]=Li,Yi._jQueryInterface};var Ki="tab",Ji="4.6.0",Zi="bs.tab",to="."+Zi,eo=".data-api",no=o.default.fn[Ki],io="hide"+to,oo="hidden"+to,ro="show"+to,ao="shown"+to,so="click"+to+eo,lo="dropdown-menu",uo="active",co="disabled",fo="fade",ho="show",po=".dropdown",go=".nav, .list-group",mo=".active",vo="> li > .active",_o='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yo=".dropdown-toggle",wo="> .dropdown-menu .active",bo=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass(uo)||o.default(this._element).hasClass(co))){var e,n,i=o.default(this._element).closest(go)[0],r=v.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?vo:mo;n=(n=o.default.makeArray(o.default(i).find(a)))[n.length-1]}var s=o.default.Event(io,{relatedTarget:this._element}),l=o.default.Event(ro,{relatedTarget:n});if(n&&o.default(n).trigger(s),o.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,i);var u=function(){var e=o.default.Event(oo,{relatedTarget:t._element}),i=o.default.Event(ao,{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,Zi),this._element=null},e._activate=function(t,e,n){var i=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(mo):o.default(e).find(vo))[0],a=n&&r&&o.default(r).hasClass(fo),s=function(){return i._transitionComplete(t,r,n)};if(r&&a){var l=v.getTransitionDurationFromElement(r);o.default(r).removeClass(ho).one(v.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass(uo);var i=o.default(e.parentNode).find(wo)[0];i&&o.default(i).removeClass(uo),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(o.default(t).addClass(uo),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),v.reflow(t),t.classList.contains(fo)&&t.classList.add(ho),t.parentNode&&o.default(t.parentNode).hasClass(lo)){var r=o.default(t).closest(po)[0];if(r){var a=[].slice.call(r.querySelectorAll(yo));o.default(a).addClass(uo)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(Zi);if(i||(i=new t(this),n.data(Zi,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Ji}}]),t}();o.default(document).on(so,_o,(function(t){t.preventDefault(),bo._jQueryInterface.call(o.default(this),"show")})),o.default.fn[Ki]=bo._jQueryInterface,o.default.fn[Ki].Constructor=bo,o.default.fn[Ki].noConflict=function(){return o.default.fn[Ki]=no,bo._jQueryInterface};var xo="toast",Co="4.6.0",Eo="bs.toast",To="."+Eo,So=o.default.fn[xo],ko="click.dismiss"+To,Do="hide"+To,Io="hidden"+To,Ao="show"+To,No="shown"+To,Lo="fade",Oo="hide",jo="show",Ro="showing",Po={animation:"boolean",autohide:"boolean",delay:"number"},Mo={animation:!0,autohide:!0,delay:500},Ho='[data-dismiss="toast"]',qo=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event(Ao);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Lo);var n=function(){t._element.classList.remove(Ro),t._element.classList.add(jo),o.default(t._element).trigger(No),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Oo),v.reflow(this._element),this._element.classList.add(Ro),this._config.animation){var i=v.getTransitionDurationFromElement(this._element);o.default(this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(jo)){var t=o.default.Event(Do);o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(jo)&&this._element.classList.remove(jo),o.default(this._element).off(ko),o.default.removeData(this._element,Eo),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},Mo,o.default(this._element).data(),"object"==typeof t&&t?t:{}),v.typeCheckConfig(xo,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on(ko,Ho,(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(Oo),o.default(t._element).trigger(Io)};if(this._element.classList.remove(jo),this._config.animation){var n=v.getTransitionDurationFromElement(this._element);o.default(this._element).one(v.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(Eo);if(i||(i=new t(this,"object"==typeof e&&e),n.data(Eo,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return Co}},{key:"DefaultType",get:function(){return Po}},{key:"Default",get:function(){return Mo}}]),t}();o.default.fn[xo]=qo._jQueryInterface,o.default.fn[xo].Constructor=qo,o.default.fn[xo].noConflict=function(){return o.default.fn[xo]=So,qo._jQueryInterface},t.Alert=N,t.Button=K,t.Carousel=Wt,t.Collapse=he,t.Dropdown=tn,t.Modal=Pn,t.Popover=Si,t.Scrollspy=Yi,t.Tab=bo,t.Toast=qo,t.Tooltip=fi,t.Util=v,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(755),n(981))},755:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";var r=[],a=Object.getPrototypeOf,s=r.slice,l=r.flat?function(t){return r.flat.call(t)}:function(t){return r.concat.apply([],t)},u=r.push,c=r.indexOf,f={},h=f.toString,d=f.hasOwnProperty,p=d.toString,g=p.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},_=function(t){return null!=t&&t===t.window},y=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,o,r=(n=n||y).createElement("script");if(r.text=t,e)for(i in w)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var C="3.5.1",E=function(t,e){return new E.fn.init(t,e)};function T(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!_(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}E.fn=E.prototype={jquery:C,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},E.extend=E.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(E.isPlainObject(i)||(o=Array.isArray(i)))?(n=a[e],r=o&&!Array.isArray(n)?[]:o||E.isPlainObject(n)?n:{},o=!1,a[e]=E.extend(u,r,i)):void 0!==i&&(a[e]=i));return a},E.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=d.call(e,"constructor")&&e.constructor)&&p.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(T(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?E.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,a=[];if(T(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&a.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&a.push(o);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=r[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var S=function(t){var e,n,i,o,r,a,s,l,u,c,f,h,d,p,g,m,v,_,y,w="sizzle"+1*new Date,b=t.document,x=0,C=0,E=lt(),T=lt(),S=lt(),k=lt(),D=function(t,e){return t===e&&(f=!0),0},I={}.hasOwnProperty,A=[],N=A.pop,L=A.push,O=A.push,j=A.slice,R=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",H="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",q="\\[[\\x20\\t\\r\\n\\f]*("+H+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+M+"*\\]",F=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp(M+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),Q=new RegExp(M+"|>"),V=new RegExp(F),$=new RegExp("^"+H+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},at=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(A=j.call(b.childNodes),b.childNodes),A[b.childNodes.length].nodeType}catch(t){O={apply:A.length?function(t,e){L.apply(t,j.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,o){var r,s,u,c,f,p,v,_=e&&e.ownerDocument,b=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==b&&9!==b&&11!==b)return i;if(!o&&(h(e),e=e||d,g)){if(11!==b&&(f=Z.exec(t)))if(r=f[1]){if(9===b){if(!(u=e.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(_&&(u=_.getElementById(r))&&y(e,u)&&u.id===r)return i.push(u),i}else{if(f[2])return O.apply(i,e.getElementsByTagName(t)),i;if((r=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(r)),i}if(n.qsa&&!k[t+" "]&&(!m||!m.test(t))&&(1!==b||"object"!==e.nodeName.toLowerCase())){if(v=t,_=e,1===b&&(Q.test(t)||W.test(t))){for((_=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(it,ot):e.setAttribute("id",c=w)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+yt(p[s]);v=p.join(",")}try{return O.apply(i,_.querySelectorAll(v)),i}catch(e){k(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(B,"$1"),e,i,o)}function lt(){var t=[];return function e(n,o){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function ut(t){return t[w]=!0,t}function ct(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ut((function(e){return e=+e,ut((function(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},r=st.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!G.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,o,a=t?t.ownerDocument||t:b;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!r(d),b!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),n.scope=ct((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(d.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=w,!d.getElementsByName||!d.getElementsByName(w).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=J.test(d.querySelectorAll))&&(ct((function(t){var e;p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(e=d.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(_=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=_.call(t,"*"),_.call(t,"[s!='']:x"),v.push("!=",F)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(p.compareDocumentPosition),y=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return f=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==d||t.ownerDocument==b&&y(b,t)?-1:e==d||e.ownerDocument==b&&y(b,e)?1:c?R(c,t)-R(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!o||!r)return t==d?-1:e==d?1:o?-1:r?1:c?R(c,t)-R(c,e):0;if(o===r)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==b?-1:s[i]==b?1:0},d):d},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&g&&!k[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var i=_.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){k(e,!0)}return st(e,d,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=d&&h(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=d&&h(t);var o=i.attrHandle[e.toLowerCase()],r=o&&I.call(i.attrHandle,e.toLowerCase())?o(t,e,!g):void 0;return void 0!==r?r:n.attributes||!g?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},st.escape=function(t){return(t+"").replace(it,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],o=0,r=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(D),f){for(;e=t[r++];)e===t[r]&&(o=i.push(r));for(;o--;)t.splice(i[o],1)}return c=null,t},o=st.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(i=st.selectors={cacheLength:50,createPseudo:ut,match:X,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(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===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]||st.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]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+M+"|$)"))&&E(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var o=st.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,f,h,d,p,g=r!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),_=!l&&!s,y=!1;if(m){if(r){for(;g;){for(h=e;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&_){for(y=(d=(u=(c=(f=(h=m)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&u[1])&&u[2],h=d&&m.childNodes[d];h=++d&&h&&h[g]||(y=d=0)||p.pop();)if(1===h.nodeType&&++y&&h===e){c[t]=[x,d,y];break}}else if(_&&(y=d=(u=(c=(f=(h=e)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&u[1]),!1===y)for(;(h=++d&&h&&h[g]||(y=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++y||(_&&((c=(f=h[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[x,y]),h!==e)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,e){var n,o=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return o[w]?o(e):o.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ut((function(t,n){for(var i,r=o(t,e),a=r.length;a--;)t[i=R(t,r[a])]=!(n[i]=r[a])})):function(t){return o(t,0,n)}):o}},pseudos:{not:ut((function(t){var e=[],n=[],i=s(t.replace(B,"$1"));return i[w]?ut((function(t,e,n,o){for(var r,a=i(t,null,o,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))})):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}})),has:ut((function(t){return function(e){return st(t,e).length>0}})),contains:ut((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||o(e)).indexOf(t)>-1}})),lang:ut((function(t){return $.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!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,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Y.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:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,n){return[n<0?n+e:n]})),even:mt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:mt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:mt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:mt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function _t(){}function yt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function wt(t,e,n){var i=e.dir,o=e.next,r=o||i,a=n&&"parentNode"===r,s=C++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var u,c,f,h=[x,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=(f=e[w]||(e[w]={}))[e.uniqueID]||(f[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[r])&&u[0]===x&&u[1]===s)return h[2]=u[2];if(c[r]=h,h[2]=t(e,n,l))return!0}return!1}}function bt(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),u&&e.push(s)));return a}function Ct(t,e,n,i,o,r){return i&&!i[w]&&(i=Ct(i)),o&&!o[w]&&(o=Ct(o,r)),ut((function(r,a,s,l){var u,c,f,h=[],d=[],p=a.length,g=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!r&&e?g:xt(g,h,t,s,l),v=n?o||(r?t:p||i)?[]:a:m;if(n&&n(m,v,s,l),i)for(u=xt(v,d),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[d[c]]=!(m[d[c]]=f));if(r){if(o||t){if(o){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(m[c]=f);o(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&(u=o?R(r,f):h[c])>-1&&(r[u]=!(a[u]=f))}}else v=xt(v===a?v.splice(p,v.length):v),o?o(null,a,v,l):O.apply(a,v)}))}function Et(t){for(var e,n,o,r=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=wt((function(t){return t===e}),s,!0),f=wt((function(t){return R(e,t)>-1}),s,!0),h=[function(t,n,i){var o=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):f(t,n,i));return e=null,o}];l<r;l++)if(n=i.relative[t[l].type])h=[wt(bt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[w]){for(o=++l;o<r&&!i.relative[t[o].type];o++);return Ct(l>1&&bt(h),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(B,"$1"),n,l<o&&Et(t.slice(l,o)),o<r&&Et(t=t.slice(o)),o<r&&yt(t))}h.push(n)}return bt(h)}return _t.prototype=i.filters=i.pseudos,i.setFilters=new _t,a=st.tokenize=function(t,e){var n,o,r,a,s,l,u,c=T[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(a in n&&!(o=U.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),n=!1,(o=W.exec(s))&&(n=o.shift(),r.push({value:n,type:o[0].replace(B," ")}),s=s.slice(n.length)),i.filter)!(o=X[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),r.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):T(t,l).slice(0)},s=st.compile=function(t,e){var n,o=[],r=[],s=S[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=Et(e[n]))[w]?o.push(s):r.push(s);(s=S(t,function(t,e){var n=e.length>0,o=t.length>0,r=function(r,a,s,l,c){var f,p,m,v=0,_="0",y=r&&[],w=[],b=u,C=r||o&&i.find.TAG("*",c),E=x+=null==b?1:Math.random()||.1,T=C.length;for(c&&(u=a==d||a||c);_!==T&&null!=(f=C[_]);_++){if(o&&f){for(p=0,a||f.ownerDocument==d||(h(f),s=!g);m=t[p++];)if(m(f,a||d,s)){l.push(f);break}c&&(x=E)}n&&((f=!m&&f)&&v--,r&&y.push(f))}if(v+=_,n&&_!==v){for(p=0;m=e[p++];)m(y,w,a,s);if(r){if(v>0)for(;_--;)y[_]||w[_]||(w[_]=N.call(l));w=xt(w)}O.apply(l,w),c&&!r&&w.length>0&&v+e.length>1&&st.uniqueSort(l)}return c&&(x=E,u=b),y};return n?ut(r):r}(r,o))).selector=t}return s},l=st.select=function(t,e,n,o){var r,l,u,c,f,h="function"==typeof t&&t,d=!o&&a(t=h.selector||t);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&g&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=X.needsContext.test(t)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((f=i.find[c])&&(o=f(u.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(r,1),!(t=o.length&&yt(l)))return O.apply(n,o),n;break}}return(h||s(t,d))(o,e,!g,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=w.split("").sort(D).join("")===w,n.detectDuplicates=!!f,h(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(P,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(i);E.find=S,E.expr=S.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=S.uniqueSort,E.text=S.getText,E.isXMLDoc=S.isXML,E.contains=S.contains,E.escapeSelector=S.escape;var k=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&E(t).is(n))break;i.push(t)}return i},D=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},I=E.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,n){return v(e)?E.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?E.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?E.grep(t,(function(t){return c.call(e,t)>-1!==n})):E.filter(e,t,n)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,(function(t){return 1===t.nodeType})))},E.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(E(t).filter((function(){for(e=0;e<i;e++)if(E.contains(o[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,o[e],n);return i>1?E.uniqueSort(n):n},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&&I.test(t)?E(t):t||[],!1).length}});var O,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||O,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),N.test(i[1])&&E.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=y.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,O=E(y);var R=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,o=this.length,r=[],a="string"!=typeof t&&E(t);if(!I.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?E.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?c.call(E(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,e,n){return k(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,e,n){return k(t,"nextSibling",n)},prevUntil:function(t,e,n){return k(t,"previousSibling",n)},siblings:function(t){return D((t.parentNode||{}).firstChild,t)},children:function(t){return D(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},(function(t,e){E.fn[t]=function(n,i){var o=E.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=E.filter(i,o)),this.length>1&&(P[t]||E.uniqueSort(o),R.test(t)&&o.reverse()),this.pushStack(o)}}));var H=/[^\x20\t\r\n\f]+/g;function q(t){return t}function F(t){throw t}function z(t,e,n,i){var o;try{t&&v(o=t.promise)?o.call(t).done(e).fail(n):t&&v(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(H)||[],(function(t,n){e[n]=!0})),e}(t):E.extend({},t);var e,n,i,o,r=[],a=[],s=-1,l=function(){for(o=o||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!e&&(s=r.length-1,a.push(n)),function e(n){E.each(n,(function(n,i){v(i)?t.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return E.each(arguments,(function(t,e){for(var n;(n=E.inArray(e,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(t){return t?E.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return E.Deferred((function(n){E.each(e,(function(e,i){var o=v(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var r=0;function a(t,e,n,o){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(t<r)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(u)?o?u.call(i,a(r,e,q,o),a(r,e,F,o)):(r++,u.call(i,a(r,e,q,o),a(r,e,F,o),a(r,e,q,e.notifyWith))):(n!==q&&(s=void 0,l=[i]),(o||e.resolveWith)(s,l))}},c=o?u:function(){try{u()}catch(i){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(i,c.stackTrace),t+1>=r&&(n!==F&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?c():(E.Deferred.getStackHook&&(c.stackTrace=E.Deferred.getStackHook()),i.setTimeout(c))}}return E.Deferred((function(i){e[0][3].add(a(0,i,v(o)?o:q,i.notifyWith)),e[1][3].add(a(0,i,v(t)?t:q)),e[2][3].add(a(0,i,v(n)?n:F))})).promise()},promise:function(t){return null!=t?E.extend(t,o):o}},r={};return E.each(e,(function(t,i){var a=i[2],s=i[5];o[i[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=a.fireWith})),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),o=s.call(arguments),r=E.Deferred(),a=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?s.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(z(t,r.done(a(n)).resolve,r.reject,!e),"pending"===r.state()||v(o[n]&&o[n].then)))return r.then();for(;n--;)z(o[n],a(n),r.reject);return r.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&B.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){i.setTimeout((function(){throw t}))};var U=E.Deferred();function W(){y.removeEventListener("DOMContentLoaded",W),i.removeEventListener("load",W),E.ready()}E.fn.ready=function(t){return U.then(t).catch((function(t){E.readyException(t)})),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||U.resolveWith(y,[E]))}}),E.ready.then=U.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",W),i.addEventListener("load",W));var Q=function(t,e,n,i,o,r,a){var s=0,l=t.length,u=null==n;if("object"===x(n))for(s in o=!0,n)Q(t,e,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,v(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(E(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:u?e.call(t):l?e(t[0],n):r},V=/^-ms-/,$=/-([a-z])/g;function X(t,e){return e.toUpperCase()}function G(t){return t.replace(V,"ms-").replace($,X)}var Y=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=E.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[G(e)]=n;else for(i in e)o[G(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][G(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(G):(e=G(e))in i?[e]:e.match(H)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||E.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var J=new K,Z=new K,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}Z.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return Z.hasData(t)||J.hasData(t)},data:function(t,e,n){return Z.access(t,e,n)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),E.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=Z.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=G(i.slice(5)),nt(r,i,o[i]));J.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){Z.set(this,t)})):Q(this,(function(e){var n;if(r&&void 0===e)return void 0!==(n=Z.get(r,t))||void 0!==(n=nt(r,t))?n:void 0;this.each((function(){Z.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=J.get(t,e),n&&(!i||Array.isArray(n)?i=J.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,o=n.shift(),r=E._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,(function(){E.dequeue(t,e)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:E.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",n])}))})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each((function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){E.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=E.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=J.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ot=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),rt=["Top","Right","Bottom","Left"],at=y.documentElement,st=function(t){return E.contains(t.ownerDocument,t)},lt={composed:!0};at.getRootNode&&(st=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===E.css(t,"display")};function ct(t,e,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=s(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),c=t.nodeType&&(E.cssNumber[e]||"px"!==u&&+l)&&ot.exec(E.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)E.style(t,e,c+u),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),c/=r;c*=2,E.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var ft={};function ht(t){var e,n=t.ownerDocument,i=t.nodeName,o=ft[i];return o||(e=n.body.appendChild(n.createElement(i)),o=E.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),ft[i]=o,o)}function dt(t,e){for(var n,i,o=[],r=0,a=t.length;r<a;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=J.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ut(i)&&(o[r]=ht(i))):"none"!==n&&(o[r]="none",J.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}E.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?E(this).show():E(this).hide()}))}});var pt,gt,mt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;pt=y.createDocumentFragment().appendChild(y.createElement("div")),(gt=y.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),m.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",m.option=!!pt.lastChild;var yt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function wt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?E.merge([t],n):n}function bt(t,e){for(var n=0,i=t.length;n<i;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,m.option||(yt.optgroup=yt.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function Ct(t,e,n,i,o){for(var r,a,s,l,u,c,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((r=t[d])||0===r)if("object"===x(r))E.merge(h,r.nodeType?[r]:r);else if(xt.test(r)){for(a=a||f.appendChild(e.createElement("div")),s=(vt.exec(r)||["",""])[1].toLowerCase(),l=yt[s]||yt._default,a.innerHTML=l[1]+E.htmlPrefilter(r)+l[2],c=l[0];c--;)a=a.lastChild;E.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(e.createTextNode(r));for(f.textContent="",d=0;r=h[d++];)if(i&&E.inArray(r,i)>-1)o&&o.push(r);else if(u=st(r),a=wt(f.appendChild(r),"script"),u&&bt(a),n)for(c=0;r=a[c++];)_t.test(r.type||"")&&n.push(r);return f}var Et=/^key/,Tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,St=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Dt(){return!1}function It(t,e){return t===function(){try{return y.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,n,i,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)At(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Dt;else if(!o)return t;return 1===r&&(a=o,(o=function(t){return E().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),t.each((function(){E.event.add(this,e,o,i,n)}))}function Nt(t,e,n){n?(J.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var i,o,r=J.get(this,e);if(1&t.isTrigger&&this[e]){if(r.length)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=s.call(arguments),J.set(this,e,r),i=n(this,e),this[e](),r!==(o=J.get(this,e))||i?J.set(this,e,!1):o={},r!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else r.length&&(J.set(this,e,{value:E.event.trigger(E.extend(r[0],E.Event.prototype),r.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&E.event.add(t,e,kt)}E.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,u,c,f,h,d,p,g,m=J.get(t);if(Y(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&E.find.matchesSelector(at,o),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(H)||[""]).length;u--;)d=g=(s=St.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:p.join(".")},r),(h=l[d])||((h=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[d]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,u,c,f,h,d,p,g,m=J.hasData(t)&&J.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(H)||[""]).length;u--;)if(d=g=(s=St.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=E.event.special[d]||{},h=l[d=(i?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)c=h[r],!o&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||E.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)E.event.remove(t,d+e[u],n,i,!0);E.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,a,s=new Array(arguments.length),l=E.event.fix(t),u=(J.get(this,"events")||Object.create(null))[l.type]||[],c=E.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=E.event.handlers.call(this,l,u),e=0;(o=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((E.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,a,s=[],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||!0!==u.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=e[n]).selector+" "]&&(a[o]=i.needsContext?E(o,this).index(u)>-1:E.find(o,this,null,[u]).length),a[o]&&r.push(i);r.length&&s.push({elem:u,handlers:r})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(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[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Nt(e,"click",kt),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Nt(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&A(e,"input")&&J.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:Dt,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&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Dt,isPropagationStopped:Dt,isImmediatePropagationStopped:Dt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Et.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Tt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(t,e){E.event.special[t]={setup:function(){return Nt(this,t,It),!1},trigger:function(){return Nt(this,t),!0},delegateType:e}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||E.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),E.fn.extend({on:function(t,e,n,i){return At(this,t,e,n,i)},one:function(t,e,n,i){return At(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Dt),this.each((function(){E.event.remove(this,t,n,e)}))}});var Lt=/<script|<style|<link/i,Ot=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Rt(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,e){var n,i,o,r,a,s;if(1===e.nodeType){if(J.hasData(t)&&(s=J.get(t).events))for(o in J.remove(e,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)E.event.add(e,o,s[o][n]);Z.hasData(t)&&(r=Z.access(t),a=E.extend({},r),Z.set(e,a))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,i){e=l(e);var o,r,a,s,u,c,f=0,h=t.length,d=h-1,p=e[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&Ot.test(p))return t.each((function(o){var r=t.eq(o);g&&(e[0]=p.call(this,o,r.html())),Ft(r,e,n,i)}));if(h&&(r=(o=Ct(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(s=(a=E.map(wt(o,"script"),Pt)).length;f<h;f++)u=o,f!==d&&(u=E.clone(u,!0,!0),s&&E.merge(a,wt(u,"script"))),n.call(t[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,E.map(a,Mt),f=0;f<s;f++)u=a[f],_t.test(u.type||"")&&!J.access(u,"globalEval")&&E.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):b(u.textContent.replace(jt,""),u,c))}return t}function zt(t,e,n){for(var i,o=e?E.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||E.cleanData(wt(i)),i.parentNode&&(n&&st(i)&&bt(wt(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,a,s=t.cloneNode(!0),l=st(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=wt(s),i=0,o=(r=wt(t)).length;i<o;i++)qt(r[i],a[i]);if(e)if(n)for(r=r||wt(t),a=a||wt(s),i=0,o=r.length;i<o;i++)Ht(r[i],a[i]);else Ht(t,s);return(a=wt(s,"script")).length>0&&bt(a,!l&&wt(t,"script")),s},cleanData:function(t){for(var e,n,i,o=E.event.special,r=0;void 0!==(n=t[r]);r++)if(Y(n)){if(e=n[J.expando]){if(e.events)for(i in e.events)o[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),E.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return Q(this,(function(t){return void 0===t?E.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 Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Rt(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Rt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(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&&(E.cleanData(wt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return E.clone(this,t,e)}))},html:function(t){return Q(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Lt.test(t)&&!yt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(wt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(e){var n=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(wt(this)),n&&n.replaceChild(e,this))}),t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){E.fn[t]=function(t){for(var n,i=[],o=E(t),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),E(o[a])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Bt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Ut=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Wt=function(t,e,n){var i,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.call(t),e)t.style[o]=r[o];return i},Qt=new RegExp(rt.join("|"),"i");function Vt(t,e,n){var i,o,r,a,s=t.style;return(n=n||Ut(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||st(t)||(a=E.style(t,e)),!m.pixelBoxStyles()&&Bt.test(a)&&Qt.test(e)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function $t(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),o=36===e(t.width),c.style.position="absolute",r=12===e(c.offsetWidth/3),at.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,o,r,a,s,l,u=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,o;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),n=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",n.style.height="9px",at.appendChild(t).appendChild(e).appendChild(n),o=i.getComputedStyle(e),s=parseInt(o.height)>3,at.removeChild(t)),s}}))}();var Xt=["Webkit","Moz","ms"],Gt=y.createElement("div").style,Yt={};function Kt(t){var e=E.cssProps[t]||Yt[t];return e||(t in Gt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Xt.length;n--;)if((t=Xt[n]+e)in Gt)return t}(t)||t)}var Jt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"};function ne(t,e,n){var i=ot.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ie(t,e,n,i,o,r){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=E.css(t,n+rt[a],!0,o)),i?("content"===n&&(l-=E.css(t,"padding"+rt[a],!0,o)),"margin"!==n&&(l-=E.css(t,"border"+rt[a]+"Width",!0,o))):(l+=E.css(t,"padding"+rt[a],!0,o),"padding"!==n?l+=E.css(t,"border"+rt[a]+"Width",!0,o):s+=E.css(t,"border"+rt[a]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))||0),l}function oe(t,e,n){var i=Ut(t),o=(!m.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),r=o,a=Vt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Bt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&A(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===E.css(t,"boxSizing",!1,i),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ie(t,e,n||(o?"border":"content"),r,i,a)+"px"}function re(t,e,n,i,o){return new re.prototype.init(t,e,n,i,o)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Vt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=G(e),l=Zt.test(e),u=t.style;if(l||(e=Kt(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:u[e];"string"===(r=typeof n)&&(o=ot.exec(n))&&o[1]&&(n=ct(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(E.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r,a,s=G(e);return Zt.test(e)||(e=Kt(s)),(a=E.cssHooks[e]||E.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Vt(t,e,i)),"normal"===o&&e in ee&&(o=ee[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),E.each(["height","width"],(function(t,e){E.cssHooks[e]={get:function(t,n,i){if(n)return!Jt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,e,i):Wt(t,te,(function(){return oe(t,e,i)}))},set:function(t,n,i){var o,r=Ut(t),a=!m.scrollboxSize()&&"absolute"===r.position,s=(a||i)&&"border-box"===E.css(t,"boxSizing",!1,r),l=i?ie(t,e,i,s,r):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-ie(t,e,"border",!1,r)-.5)),l&&(o=ot.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),ne(0,n,l)}}})),E.cssHooks.marginLeft=$t(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,e){E.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+rt[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(E.cssHooks[t+e].set=ne)})),E.fn.extend({css:function(t,e){return Q(this,(function(t,e,n){var i,o,r={},a=0;if(Array.isArray(e)){for(i=Ut(t),o=e.length;a<o;a++)r[e[a]]=E.css(t,e[a],!1,i);return r}return void 0!==n?E.style(t,e,n):E.css(t,e)}),t,e,arguments.length>1)}}),E.Tween=re,re.prototype={constructor:re,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(E.cssNumber[n]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,n=re.propHooks[this.prop];return this.options.duration?this.pos=e=E.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),n&&n.set?n.set(this):re.propHooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.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=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=re.prototype.init,E.fx.step={};var ae,se,le=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function ce(){se&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ce):i.setTimeout(ce,E.fx.interval),E.fx.tick())}function fe(){return i.setTimeout((function(){ae=void 0})),ae=Date.now()}function he(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=rt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function de(t,e,n){for(var i,o=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function pe(t,e,n){var i,o,r=0,a=pe.prefilters.length,s=E.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=ae||fe(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),r=0,a=u.tweens.length;r<a;r++)u.tweens[r].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:ae||fe(),duration:n.duration,tweens:[],createTween:function(e,n){var i=E.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,o,r,a;for(n in t)if(o=e[i=G(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=E.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);r<a;r++)if(i=pe.prefilters[r].call(u,t,c,u.opts))return v(i.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return E.map(c,de,u),v(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(pe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ct(n.elem,t,ot.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(H);for(var n,i=0,o=t.length;i<o;i++)n=t[i],pe.tweeners[n]=pe.tweeners[n]||[],pe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,a,s,l,u,c,f="width"in e||"height"in e,h=this,d={},p=t.style,g=t.nodeType&&ut(t),m=J.get(t,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()}))}))),e)if(o=e[i],le.test(o)){if(delete e[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}d[i]=m&&m[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(d))for(i in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=J.get(t,"display")),"none"===(c=E.css(t,"display"))&&(u?c=u:(dt([t],!0),u=t.style.display||u,c=E.css(t,"display"),dt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(t,"float")&&(l||(h.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,d)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(t,"fxshow",{display:u}),r&&(m.hidden=!g),g&&dt([t],!0),h.done((function(){for(i in g||dt([t]),J.remove(t,"fxshow"),d)E.style(t,i,d[i])}))),l=de(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?pe.prefilters.unshift(t):pe.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=E.isEmptyObject(t),r=E.speed(e,n,i),a=function(){var e=pe(this,E.extend({},t),r);(o||J.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",r=E.timers,a=J.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&ue.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||E.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=J.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=E.timers,a=i?i.length:0;for(n.finish=!0,E.queue(this,t,[]),o&&o.stop&&o.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<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(t,e){var n=E.fn[e];E.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(he(e,!0),t,i,o)}})),E.each({slideDown:he("show"),slideUp:he("hide"),slideToggle:he("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){E.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),ae=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){se||(se=!0,ce())},E.fx.stop=function(){se=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var o=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(o)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var ge,me=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return Q(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?E.prop(t,e,n):(1===r&&E.isXMLDoc(t)||(o=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?ge:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&A(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(H);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),ge={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=me[e]||E.find.attr;me[e]=function(t,e,i){var o,r,a=e.toLowerCase();return i||(r=me[a],me[a]=o,o=null!=n(t,e,i)?a:null,me[a]=r),o}}));var ve=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function ye(t){return(t.match(H)||[]).join(" ")}function we(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(H)||[]}E.fn.extend({prop:function(t,e){return Q(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&E.isXMLDoc(t)||(e=E.propFix[e]||e,o=E.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(t){var e,n,i,o,r,a,s,l=0;if(v(t))return this.each((function(e){E(this).addClass(t.call(this,e,we(this)))}));if((e=be(t)).length)for(;n=this[l++];)if(o=we(n),i=1===n.nodeType&&" "+ye(o)+" "){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=ye(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,a,s,l=0;if(v(t))return this.each((function(e){E(this).removeClass(t.call(this,e,we(this)))}));if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;n=this[l++];)if(o=we(n),i=1===n.nodeType&&" "+ye(o)+" "){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=ye(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):v(t)?this.each((function(n){E(this).toggleClass(t.call(this,n,we(this),e),e)})):this.each((function(){var e,o,r,a;if(i)for(o=0,r=E(this),a=be(t);e=a[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=we(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ye(we(n))+" ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g;E.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=v(t),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,E(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=E.map(o,(function(t){return null==t?"":t+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(xe,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:ye(E.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(e=E(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=E.makeArray(e),a=o.length;a--;)((i=o[a]).selected=E.inArray(E.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},m.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in i;var Ce=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,n,o){var r,a,s,l,u,c,f,h,p=[n||y],g=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Ce.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[E.expando]?t:new E.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),f=E.event.special[g]||{},o||!f.trigger||!1!==f.trigger.apply(n,e))){if(!o&&!f.noBubble&&!_(n)){for(l=f.delegateType||g,Ce.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||i)}for(r=0;(a=p[r++])&&!t.isPropagationStopped();)h=a,t.type=r>1?l:f.bindType||g,(c=(J.get(a,"events")||Object.create(null))[t.type]&&J.get(a,"handle"))&&c.apply(a,e),(c=u&&a[u])&&c.apply&&Y(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!Y(n)||u&&v(n[g])&&!_(n)&&((s=n[u])&&(n[u]=null),E.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Ee),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Ee),E.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,n){var i=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(i,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each((function(){E.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),m.focusin||E.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){E.event.simulate(e,t.target,E.event.fix(t))};E.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,e);o||i.addEventListener(t,n,!0),J.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,e)-1;o?J.access(i,e,o):(i.removeEventListener(t,n,!0),J.remove(i,e))}}}));var Te=i.location,Se={guid:Date.now()},ke=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var De=/\[\]$/,Ie=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Ne=/^(?:input|select|textarea|keygen)/i;function Le(t,e,n,i){var o;if(Array.isArray(e))E.each(e,(function(e,o){n||De.test(t)?i(t,o):Le(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(o in e)Le(t+"["+o+"]",e[o],n,i)}E.param=function(t,e){var n,i=[],o=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){o(this.name,this.value)}));else for(n in t)Le(n,t[n],e,o);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Ne.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}})):{name:e.name,value:n.replace(Ie,"\r\n")}})).get()}});var Oe=/%20/g,je=/#.*$/,Re=/([?&])_=[^&]*/,Pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,He=/^\/\//,qe={},Fe={},ze="*/".concat("*"),Be=y.createElement("a");function Ue(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(H)||[];if(v(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function We(t,e,n,i){var o={},r=t===Fe;function a(s){var l;return o[s]=!0,E.each(t[s]||[],(function(t,s){var u=s(e,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)})),l}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Qe(t,e){var n,i,o=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&E.extend(!0,t,i),t}Be.href=Te.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,E.ajaxSettings),e):Qe(E.ajaxSettings,t)},ajaxPrefilter:Ue(qe),ajaxTransport:Ue(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,r,a,s,l,u,c,f,h,d=E.ajaxSetup({},e),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?E(p):E.event,m=E.Deferred(),v=E.Callbacks("once memory"),_=d.statusCode||{},w={},b={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Pe.exec(r);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,e){return null==u&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)C.always(t[C.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),T(0,e),this}};if(m.promise(C),d.url=((t||d.url||Te.href)+"").replace(He,Te.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(H)||[""],null==d.crossDomain){l=y.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Be.protocol+"//"+Be.host!=l.protocol+"//"+l.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=E.param(d.data,d.traditional)),We(qe,d,e,C),u)return C;for(f in(c=E.event&&d.global)&&0==E.active++&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Me.test(d.type),o=d.url.replace(je,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Oe,"+")):(h=d.url.slice(o.length),d.data&&(d.processData||"string"==typeof d.data)&&(o+=(ke.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(o=o.replace(Re,"$1"),h=(ke.test(o)?"&":"?")+"_="+Se.guid+++h),d.url=o+h),d.ifModified&&(E.lastModified[o]&&C.setRequestHeader("If-Modified-Since",E.lastModified[o]),E.etag[o]&&C.setRequestHeader("If-None-Match",E.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ze+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||u))return C.abort();if(x="abort",v.add(d.complete),C.done(d.success),C.fail(d.error),n=We(Fe,d,e,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,d]),u)return C;d.async&&d.timeout>0&&(s=i.setTimeout((function(){C.abort("timeout")}),d.timeout));try{u=!1,n.send(w,T)}catch(t){if(u)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,a,l){var f,h,y,w,b,x=e;u||(u=!0,s&&i.clearTimeout(s),n=void 0,r=l||"",C.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(w=function(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(d,C,a)),!f&&E.inArray("script",d.dataTypes)>-1&&(d.converters["text script"]=function(){}),w=function(t,e,n,i){var o,r,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=u[l+" "+r]||u["* "+r]))for(o in u)if((s=o.split(" "))[1]===r&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(d,w,C,f),f?(d.ifModified&&((b=C.getResponseHeader("Last-Modified"))&&(E.lastModified[o]=b),(b=C.getResponseHeader("etag"))&&(E.etag[o]=b)),204===t||"HEAD"===d.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,f=!(y=w.error))):(y=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",f?m.resolveWith(p,[h,x,C]):m.rejectWith(p,[C,x,y]),C.statusCode(_),_=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[C,d,f?h:y]),v.fireWith(p,[C,x]),c&&(g.trigger("ajaxComplete",[C,d]),--E.active||E.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],(function(t,e){E[e]=function(t,n,i,o){return v(n)&&(o=o||i,i=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:o,data:n,success:i},E.isPlainObject(t)&&t))}})),E.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=E(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 v(t)?this.each((function(e){E(this).wrapInner(t.call(this,e))})):this.each((function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){E(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},$e=E.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,E.ajaxTransport((function(t){var e,n;if(m.cors||$e&&!t.crossDomain)return{send:function(o,r){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Ve[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),E.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 E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Xe,Ge=[],Ye=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||E.expando+"_"+Se.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",(function(t,e,n){var o,r,a,s=!1!==t.jsonp&&(Ye.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ye,"$1"+o):!1!==t.jsonp&&(t.url+=(ke.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||E.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=i[o],i[o]=function(){a=arguments},n.always((function(){void 0===r?E(i).removeProp(o):i[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(o)),a&&v(r)&&r(a[0]),a=r=void 0})),"script"})),m.createHTMLDocument=((Xe=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xe.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(i)):e=y),r=!n&&[],(o=N.exec(t))?[e.createElement(o[1])]:(o=Ct([t],e,r),r&&r.length&&E(r).remove(),E.merge([],o.childNodes)));var i,o,r},E.fn.load=function(t,e,n){var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=ye(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&E.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,a.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,r||[t.responseText,e,t])}))}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,(function(e){return t===e.elem})).length},E.offset={setOffset:function(t,e,n){var i,o,r,a,s,l,u=E.css(t,"position"),c=E(t),f={};"static"===u&&(t.style.position="relative"),s=c.offset(),r=E.css(t,"top"),l=E.css(t,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(a=(i=c.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),v(e)&&(e=e.call(t,n,E.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+o),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){E.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),o.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-E.css(i,"marginTop",!0),left:e.left-o.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||at}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;E.fn[t]=function(i){return Q(this,(function(t,i,o){var r;if(_(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o}),t,i,arguments.length)}})),E.each(["top","left"],(function(t,e){E.cssHooks[e]=$t(m.pixelPosition,(function(t,n){if(n)return n=Vt(t,e),Bt.test(n)?E(t).position()[e]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){E.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return Q(this,(function(e,n,o){var r;return _(e)?0===i.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===o?E.css(e,n,s):E.style(e,n,o,s)}),e,a?o:void 0,a)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){E.fn[e]=function(t){return this.on(e,t)}})),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.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){E.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ke=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=s.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(s.call(arguments)))}).guid=t.guid=t.guid||E.guid++,o},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=A,E.isFunction=v,E.isWindow=_,E.camelCase=G,E.type=x,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},void 0===(n=function(){return E}.apply(e,[]))||(t.exports=n);var Je=i.jQuery,Ze=i.$;return E.noConflict=function(t){return i.$===E&&(i.$=Ze),t&&i.jQuery===E&&(i.jQuery=Je),E},void 0===o&&(i.jQuery=i.$=E),E}))},425:()=>{},981:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ut});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var r=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:u(l(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var f=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?f:10===t?h:f||h}function p(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function g(t){return null!==t.parentNode?g(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(l):l;var u=g(t);return u.host?m(u.host,e):m(t,g(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),o=v(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function y(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function w(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function b(t){var e=t.body,n=t.documentElement,i=d(10)&&getComputedStyle(n);return{height:w("Height",e,n,i),width:w("Width",e,n,i)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),E=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function S(t){return T({},t,{right:t.left+t.width,bottom:t.top+t.height})}function k(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?b(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,u=t.offsetWidth-a,c=t.offsetHeight-l;if(u||c){var f=s(t);u-=y(f,"x"),c-=y(f,"y"),o.width-=u,o.height-=c}return S(o)}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(10),o="HTML"===e.nodeName,r=k(t),a=k(e),l=u(t),c=s(e),f=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=S({top:r.top-a.top-f,left:r.left-a.left-h,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var g=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);p.top-=f-g,p.bottom-=f-g,p.left-=h-m,p.right-=h-m,p.marginTop=g,p.marginLeft=m}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=_(p,e)),p}function I(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=D(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return S(l)}function A(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=l(t);return!!n&&A(n)}function N(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function L(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?N(t):m(t,c(e));if("viewport"===i)r=I(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=u(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var f=D(s,a,o);if("HTML"!==s.nodeName||A(a))r=f;else{var h=b(t.ownerDocument),d=h.height,p=h.width;r.top+=f.top-f.marginTop,r.bottom=d+f.top,r.left+=f.left-f.marginLeft,r.right=p+f.left}}var g="number"==typeof(n=n||0);return r.left+=g?n:n.left||0,r.top+=g?n:n.top||0,r.right-=g?n:n.right||0,r.bottom-=g?n:n.bottom||0,r}function O(t){return t.width*t.height}function j(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=L(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return T({key:t},s[t],{area:O(s[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function R(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?N(e):m(e,c(n));return D(n,o,i)}function P(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function M(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function H(t,e,n){n=n.split("-")[0];var i=P(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[u]:e[M(s)],o}function q(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function F(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=q(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=S(e.offsets.popper),e.offsets.reference=S(e.offsets.reference),e=n(e,t))})),e}function z(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=j(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=F(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function B(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function U(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function W(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Q(t){var e=t.ownerDocument;return e?e.defaultView:window}function V(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||V(u(r.parentNode),e,n,i),i.push(r)}function $(t,e,n,i){n.updateBound=i,Q(t).addEventListener("resize",n.updateBound,{passive:!0});var o=u(t);return V(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function X(){this.state.eventsEnabled||(this.state=$(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Y(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function K(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var J=i&&/Firefox/i.test(navigator.userAgent);function Z(t,e,n){var i=q(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o){var r="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}var tt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],et=tt.slice(3);function nt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=et.indexOf(t),i=et.slice(n+1).concat(et.slice(0,n));return e?i.reverse():i}var it="flip",ot="clockwise",rt="counterclockwise";function at(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(q(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return S(s)[e]/100*r}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){Y(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var st={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:E({},l,r[l]),end:E({},l,r[l]+r[u]-a[u])};t.offsets.popper=T({},a,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:at(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var i=U("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=L(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var u=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),E({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),E({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=T({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Z(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",f=u?"Top":"Left",h=f.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",g=P(i)[c];l[p]-g<a[h]&&(t.offsets.popper[h]-=a[h]-(l[p]-g)),l[h]+g>a[p]&&(t.offsets.popper[h]+=l[h]+g-a[p]),t.offsets.popper=S(t.offsets.popper);var m=l[h]+l[c]/2-g/2,v=s(t.instance.popper),_=parseFloat(v["margin"+f]),y=parseFloat(v["border"+f+"Width"]),w=m-t.offsets.popper[h]-_-y;return w=Math.max(Math.min(a[c]-g,w),0),t.arrowElement=i,t.offsets.arrow=(E(n={},h,Math.round(w)),E(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=L(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=M(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case it:a=[i,o];break;case ot:a=nt(i);break;case rt:a=nt(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=M(i);var u=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===i&&f(u.right)>f(c.left)||"right"===i&&f(u.left)<f(c.right)||"top"===i&&f(u.bottom)>f(c.top)||"bottom"===i&&f(u.top)<f(c.bottom),d=f(u.left)<f(n.left),p=f(u.right)>f(n.right),g=f(u.top)<f(n.top),m=f(u.bottom)>f(n.bottom),v="left"===i&&d||"right"===i&&p||"top"===i&&g||"bottom"===i&&m,_=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(_&&"start"===r&&d||_&&"end"===r&&p||!_&&"start"===r&&g||!_&&"end"===r&&m),w=!!e.flipVariationsByContent&&(_&&"start"===r&&p||_&&"end"===r&&d||!_&&"start"===r&&m||!_&&"end"===r&&g),b=y||w;(h||v||b)&&(t.flipped=!0,(h||v)&&(i=a[l+1]),b&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=T({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=F(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=M(e),t.offsets.popper=S(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Z(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=q(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=q(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==r?r:e.gpuAcceleration,s=p(t.instance.popper),l=k(s),u={position:o.position},c=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),u=r(i.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),h=e?c||f||l%2==u%2?r:a:s,d=e?r:s;return{left:h(l%2==1&&u%2==1&&!f&&e?i.left-1:i.left),top:d(i.top),bottom:d(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!J),f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",d=U("transform"),g=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,g="right"===h?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&d)u[d]="translate3d("+g+"px, "+m+"px, 0)",u[f]=0,u[h]=0,u.willChange="transform";else{var v="bottom"===f?-1:1,_="right"===h?-1:1;u[f]=m*v,u[h]=g*_,u.willChange=f+", "+h}var y={"x-placement":t.placement};return t.attributes=T({},y,t.attributes),t.styles=T({},u,t.styles),t.arrowStyles=T({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return K(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&K(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=R(o,e,t,n.positionFixed),a=j(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),K(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},lt=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=T({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(T({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=T({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return T({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return C(t,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),t}();lt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,lt.placements=tt,lt.Defaults=st;const ut=lt},155:t=>{var e,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&h())}function h(){if(!u){var t=a(f);u=!0;for(var e=l.length;e;){for(s=l,l=[];++c<e;)s&&s[c].run();c=-1,e=l.length}s=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||u||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}},e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.m=t,n.x=t=>{},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={773:0},e=[[80],[425]],i=t=>{},o=(o,r)=>{for(var a,s,[l,u,c,f]=r,h=0,d=[];h<l.length;h++)s=l[h],n.o(t,s)&&t[s]&&d.push(t[s][0]),t[s]=0;for(a in u)n.o(u,a)&&(n.m[a]=u[a]);for(c&&c(n),o&&o(r);d.length;)d.shift()();return f&&e.push.apply(e,f),i()},r=self.webpackChunk=self.webpackChunk||[];function a(){for(var i,o=0;o<e.length;o++){for(var r=e[o],a=!0,s=1;s<r.length;s++){var l=r[s];0!==t[l]&&(a=!1)}a&&(e.splice(o--,1),i=n(n.s=r[0]))}return 0===e.length&&(n.x(),n.x=t=>{}),i}r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r));var s=n.x;n.x=()=>(n.x=s||(t=>{}),(i=a)())})(),n.x()})();
//# sourceMappingURL=app.js.map